/**
 * 电商视频数据页
 */

  :root {
    --linear-bg: #000000;
    --linear-bg-card: #0a0a0a;
    --linear-text: #f7f8f8;
    --linear-text-muted: #8a8f98;
    --linear-accent: #5e6ad2;
    --linear-hero-top: #060608;
    --linear-hero-mid: #121316;
    --linear-hero-bottom: #2a2b32;
    --linear-hero-floor: #34353d;
    --line: rgba(255,255,255,.07);
    --chip: rgba(255,255,255,.05);
    --modal: #111113;
  }
  * { box-sizing: border-box; }
  .la-ecom {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    background: transparent;
    color: var(--linear-text);
    -webkit-font-smoothing: antialiased;
  }
  body.la-ecom-page .main.la-ecom { background: var(--linear-bg); }
  body.la-ecom-page { background: var(--linear-bg) !important; }
  body.la-ecom-modal-open { overflow: hidden; }

  /* 页头渐变背景（不覆盖站点 .header） */
  .la-ecom-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 28px 28px;
    border-bottom: 0;
    margin-top: 0;
  }
  .la-ecom-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      #000000 0%,
      #0a0a0c 28%,
      var(--linear-hero-bottom) 68%,
      var(--linear-hero-floor) 100%
    );
  }
  .la-ecom-hero-bg:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  }
  .la-ecom-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
  }
  .la-ecom-headline {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    color: var(--linear-text);
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }
  .la-ecom-sub {
    margin: 0 0 0 8px;
    color: #6b7075;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
  }

  .la-ecom-shell { max-width: 1100px; margin: 0 auto; padding: 24px 28px 90px; }

  .la-ecom .day-block { margin-bottom: 36px; }
  .la-ecom .day-label {
    display: flex; align-items: baseline; gap: 10px;
    margin: 0 0 14px;
    color: var(--linear-text-muted); font-size: 13px; font-weight: 500;
  }
  .la-ecom .day-label strong { color: #fff; font-size: 15px; letter-spacing: -0.02em; }

  .la-ecom .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .la-ecom .cats-group { margin-bottom: 10px; }
  .la-ecom .cats-section { margin-bottom: 10px; }
  .la-ecom .cats-sub { margin-bottom: 16px; }
  .la-ecom .cat {
    appearance: none; border: 1px solid transparent; background: transparent;
    color: var(--linear-text-muted); font: inherit; font-size: 13px; font-weight: 500;
    padding: 6px 14px; border-radius: 100px; cursor: pointer;
  }
  .la-ecom .cat-group {
    font-size: 14px; font-weight: 600; padding: 8px 16px;
  }
  .la-ecom .cat-section {
    border-radius: 8px;
  }
  .la-ecom .cat:hover, .la-ecom .cat.active {
    color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08);
  }
  .la-ecom .media-single { grid-template-columns: 84px; }
  .la-ecom .card.card-no-media {
    grid-template-columns: 1fr;
  }
  .la-ecom .card-topic .content,
  body.linear-skin .la-ecom .card-topic .content {
    -webkit-line-clamp: 3;
    font-size: 15px;
    font-weight: 650;
  }
  .la-ecom .card-search .content,
  body.linear-skin .la-ecom .card-search .content {
    -webkit-line-clamp: 2;
    font-size: 15px;
  }
  .la-ecom .topic-thumb {
    display: grid; place-items: center;
    background: linear-gradient(145deg, #1a1b22, #0e0f14);
    cursor: default;
  }
  .la-ecom .topic-mark {
    font-size: 28px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: -0.04em;
  }

  .la-ecom .section-head { margin-bottom: 14px; }
  .la-ecom .section-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; }

  .la-ecom .list { display: flex; flex-direction: column; gap: 12px; }

  .la-ecom .card {
    display: grid; grid-template-columns: 132px 1fr; gap: 16px;
    background: var(--linear-bg-card); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px;
    transition: border-color .2s, box-shadow .2s;
  }
  .la-ecom .card:hover { border-color: rgba(255,255,255,.14); box-shadow: 0 12px 40px rgba(0,0,0,.35); }

  .la-ecom .media { display: grid; grid-template-columns: 84px 40px; gap: 8px; align-items: start; }
  .la-ecom .video {
    position: relative; width: 84px; height: 112px; border-radius: 10px; overflow: hidden;
    background: #111; border: 0; padding: 0; cursor: pointer;
  }
  .la-ecom .video img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .la-ecom .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.18); }
  .la-ecom .play span {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,.55); border: 1.5px solid rgba(255,255,255,.75);
    display: grid; place-items: center;
  }
  .la-ecom .play span:before {
    content: ""; width: 0; height: 0;
    border-style: solid; border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff; margin-left: 2px;
  }
  .la-ecom .product-thumb {
    width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
    background: #151515; border: 1px solid rgba(255,255,255,.08);
    margin-top: 4px; padding: 0; cursor: pointer;
  }
  .la-ecom .product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .la-ecom .body { min-width: 0; }
  .la-ecom .title-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-bottom: 8px; }
  .la-ecom .rank {
    width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
    font-size: 13px; font-weight: 700; background: rgba(255,255,255,.06); color: var(--linear-text-muted);
  }
  .la-ecom .rank.r1 { background: linear-gradient(145deg, #ffd56a, #f0a202); color: #2a1c00; box-shadow: 0 6px 16px rgba(240,162,2,.25); }
  .la-ecom .rank.r2 { background: linear-gradient(145deg, #e8ecf5, #aeb6c8); color: #1c2230; }
  .la-ecom .rank.r3 { background: linear-gradient(145deg, #e8b48a, #c67a45); color: #2a1608; }
  .la-ecom .content,
  body.linear-skin .la-ecom .content,
  body.linear-skin .la-ecom p.content {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  .la-ecom .product-line { margin: 0 0 10px; font-size: 13px; color: var(--linear-text-muted); line-height: 1.45; }
  .la-ecom .product-line button {
    appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
    color: #8ea0f0; font: inherit; font-weight: 500; text-align: left;
  }
  .la-ecom .product-line button:hover { color: #b4c0ff; }

  .la-ecom .author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .la-ecom .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #222; }
  .la-ecom .author-name { margin: 0; font-size: 13px; font-weight: 500; }
  .la-ecom .author-sub { margin: 2px 0 0; color: var(--linear-text-muted); font-size: 12px; }

  .la-ecom .chips-primary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .la-ecom .chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    background: var(--chip); border: 1px solid rgba(255,255,255,.05);
    font-size: 12px; color: var(--linear-text-muted);
  }
  .la-ecom .chip b { color: var(--linear-text); font-weight: 600; font-size: 13px; letter-spacing: -0.02em; }
  .la-ecom .chip.pri { background: rgba(94,106,210,.12); border-color: rgba(94,106,210,.22); }
  .la-ecom .chip.pri b { color: #d5daf8; }
  .la-ecom .chips-secondary { display: none; flex-wrap: wrap; gap: 8px; }
  .la-ecom .card.is-open .chips-secondary { display: flex; }
  .la-ecom .more-btn {
    appearance: none; border: 0; background: transparent; color: var(--linear-text-muted);
    font: inherit; font-size: 12px; cursor: pointer; padding: 0; margin-top: 4px;
  }
  .la-ecom .more-btn:hover { color: #fff; }

  .la-ecom .lock-banner {
    margin-top: 18px;
    padding: 28px 22px;
    border-radius: 14px;
    border: 1px solid rgba(94,106,210,.28);
    background: linear-gradient(180deg, rgba(94,106,210,.14), rgba(255,255,255,.02));
    text-align: center;
  }
  .la-ecom .lock-banner p { margin: 0 0 14px; color: var(--linear-text-muted); font-size: 14px; line-height: 1.6; }
  .la-ecom .lock-banner .vip-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--linear-accent); color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: 10px;
  }
  .la-ecom .lock-banner .vip-btn:hover { opacity: .92; }

  .la-ecom .pager {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px;
  }
  .la-ecom .pager button {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08); background: #0a0a0a; color: var(--linear-text-muted);
    font: inherit; font-size: 13px; cursor: pointer;
  }
  .la-ecom .pager button.active { background: var(--linear-accent); border-color: var(--linear-accent); color: #fff; }
  .la-ecom .pager button:disabled { opacity: .35; cursor: default; }
  .la-ecom .sentinel { height: 1px; margin-top: 24px; }
  .la-ecom .list-end {
    margin: 28px 0 8px;
    padding: 16px 12px;
    text-align: center;
    color: var(--linear-text-muted, #8a8f98);
    font-size: 13px;
    line-height: 1.5;
    border-top: 1px solid var(--linear-border, rgba(255,255,255,.08));
  }
  .la-ecom .loading { text-align: center; color: var(--linear-text-muted); font-size: 13px; padding: 18px 0 0; }
  .la-ecom .loading[hidden] { display: none !important; }

  /* 弹层 */
  .la-ecom .overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.72); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 24px 16px;
  }
  .la-ecom .overlay.show { display: flex; }
  .la-ecom .sheet {
    width: min(820px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    background: var(--modal);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 22px 24px 26px;
  }
  .la-ecom .sheet.sheet-video { width: min(440px, 100%); }
  .la-ecom .sheet.sheet-product { width: min(880px, 100%); }
  .la-ecom .sheet-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 14px;
  }
  .la-ecom .sheet-head h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
  .la-ecom .sheet.sheet-video .sheet-title { display: none; }
  .la-ecom .sheet-close {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04); color: #fff; cursor: pointer; font-size: 18px; line-height: 1;
  }
  .la-ecom .sheet-title {
    margin: 0 0 16px; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -0.015em;
  }
  .la-ecom .video-preview {
    position: relative;
    width: min(100%, 320px);
    margin: 0 auto 16px;
    aspect-ratio: 3 / 4;
    max-height: min(62vh, 520px);
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
  }
  .la-ecom .video-preview img {
    width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  }
  .la-ecom .video-preview .play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(0,0,0,.28);
  }
  .la-ecom .video-preview .play span {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.8);
    display: grid; place-items: center;
  }
  .la-ecom .video-preview .play span:before {
    content: ""; width: 0; height: 0;
    border-style: solid; border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff; margin-left: 4px;
  }
  .la-ecom .sheet-actions {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; align-items: stretch;
  }
  .la-ecom .sheet-actions button, .la-ecom .sheet-actions a {
    display: flex; align-items: center; justify-content: center;
    flex: 1 1 0; width: auto; min-width: 0; min-height: 46px; border-radius: 12px; text-decoration: none;
    font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 0 8px; white-space: nowrap;
  }
  .la-ecom .btn-primary { background: var(--linear-accent); color: #fff; border: 0; }
  .la-ecom .btn-primary:hover { opacity: .92; }
  .la-ecom .btn-ghost {
    background: rgba(255,255,255,.04); color: #fff;
    border: 1px solid rgba(255,255,255,.12);
  }
  .la-ecom .btn-ghost:hover { border-color: rgba(255,255,255,.22); }
  .la-ecom .toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    background: rgba(20,20,24,.95); border: 1px solid rgba(255,255,255,.12);
    color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px;
    z-index: 120; display: none;
  }
  .la-ecom .toast.show { display: block; }

  .la-ecom .detail-section { margin-bottom: 18px; }
  .la-ecom .detail-section h4 {
    margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
  }
  .la-ecom .detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .la-ecom .detail-cell {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px; padding: 12px;
  }
  .la-ecom .detail-cell label {
    display: block; color: var(--linear-text-muted); font-size: 11px; margin-bottom: 6px;
  }
  .la-ecom .detail-cell b { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; word-break: break-all; }
  .la-ecom .detail-empty { color: var(--linear-text-muted); font-size: 13px; }

  @media (max-width: 720px) {
    .la-ecom-shell, .la-ecom-hero { padding-left: 16px; padding-right: 16px; }
    .la-ecom .card { grid-template-columns: 1fr; }
    .la-ecom .media { grid-template-columns: 72px 48px; }
    .la-ecom .video { width: 72px; height: 96px; }
    .la-ecom .detail-grid { grid-template-columns: 1fr; }
    .la-ecom .sheet-actions { flex-wrap: wrap; }
    .la-ecom .sheet-actions button, .la-ecom .sheet-actions a { flex: 1 1 calc(50% - 6px); font-size: 12px; }
  }

.la-ecom-loading{color:var(--linear-text-muted,#8a8f98);font-size:14px;padding:24px 0;}
.la-ecom-empty{color:var(--linear-text-muted,#8a8f98);font-size:14px;padding:40px 0;text-align:center;}

/* 兜底：弹层与升级按钮 */
.la-ecom .overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
}
.la-ecom .lock-banner .vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--linear-accent, #5e6ad2);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 10px;
}
body.la-ecom-page .banner-page {
  display: none !important;
}
/* 演示页：详情弹层 / 画像 / 趋势 / 热评 */
.la-ecom .detail-btn {
  appearance: none; border: 0; background: transparent;
  color: #8ea0f0; font: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer; padding: 0; margin-top: 8px;
}
.la-ecom .detail-btn:hover { color: #b4c0ff; }

.la-ecom .sheet.sheet-detail { width: min(920px, 100%); }
.la-ecom .detail-hero {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px;
}
.la-ecom .detail-cover {
  width: 120px; height: 160px; object-fit: cover; border-radius: 12px;
  background: #111; border: 1px solid rgba(255,255,255,.08);
}
.la-ecom .detail-cover.sm { width: 72px; height: 72px; }

.la-ecom .detail-cell a {
  color: #8ea0f0; text-decoration: none; word-break: break-all;
}
.la-ecom .detail-cell a:hover { color: #b4c0ff; }
.la-ecom .mt8 { margin-top: 8px; }
.la-ecom .mini-label {
  display: block; color: var(--linear-text-muted); font-size: 11px; margin-bottom: 6px;
}
.la-ecom .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.la-ecom .tag {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
  color: #d7d9df; font-size: 12px;
}
.la-ecom .tag i { color: var(--linear-text-muted); font-style: normal; font-size: 11px; }

.la-ecom .trend-box {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 14px 10px;
  overflow: visible;
}
.la-ecom .trend-box-compact {
  margin-top: 10px;
  padding: 10px 16px 12px; /* 左右留白，避免首尾日期被裁切 */
  overflow: visible;
}
.la-ecom .trend-label {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--linear-text-muted);
  font-weight: 500;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.la-ecom .trend-range {
  font-weight: 400;
  color: rgba(255,255,255,.45);
  font-size: 11px;
}
.la-ecom .trend-box-compact .trend-svg { height: 56px; }
.la-ecom .trend-svg { width: 100%; height: 84px; display: block; }
.la-ecom .trend-axis {
  position: relative;
  margin-top: 2px;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}
/* 与折线 SVG 同宽：每个拐点 left% 对齐，日期在点正下方 */
.la-ecom .trend-axis-all {
  display: block;
  height: 18px;
  margin-top: 4px;
  padding-top: 0;
  overflow: visible;
}
.la-ecom .trend-tick {
  position: absolute;
  top: 0;
  /* 与折线拐点同一 x：日期居中在点正下方 */
  transform: translateX(-50%);
  display: block;
  width: 0;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}
.la-ecom .trend-tick em {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.55);
}
.la-ecom .trend-box-compact .trend-tick em { font-size: 9px; }
@media (max-width: 720px) {
  .la-ecom .trend-axis-all { height: 28px; }
  .la-ecom .trend-tick em {
    font-size: 8px;
    display: inline-block;
    transform: rotate(-40deg);
    transform-origin: top center;
  }
}
.la-ecom .trend-meta {
  display: flex; justify-content: space-between;
  margin-top: 4px; color: var(--linear-text-muted); font-size: 12px;
}

.la-ecom .portrait-dim { margin-bottom: 14px; }
.la-ecom .portrait-dim-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  margin-bottom: 8px; font-size: 12px; color: var(--linear-text-muted);
}
.la-ecom .portrait-dim-head b { color: #fff; font-size: 13px; }
.la-ecom .portrait-bars { display: flex; flex-direction: column; gap: 6px; }
.la-ecom .portrait-row {
  display: grid; grid-template-columns: 72px 1fr 56px; gap: 8px; align-items: center;
  font-size: 12px;
}
.la-ecom .portrait-name { color: var(--linear-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-ecom .portrait-track {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden;
}
.la-ecom .portrait-track i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(94,106,210,.7), rgba(142,160,240,.95));
}
.la-ecom .portrait-val { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

.la-ecom .comment-list { display: flex; flex-direction: column; gap: 10px; }
.la-ecom .comment-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.la-ecom .comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #222;
}
.la-ecom .comment-head {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--linear-text-muted); margin-bottom: 4px;
}
.la-ecom .comment-head b { color: #fff; font-weight: 500; }
.la-ecom .comment-body p {
  margin: 0; font-size: 13px; line-height: 1.5; color: #e8e9ec;
}
.la-ecom .detail-hint {
  margin: 8px 0 0; color: var(--linear-text-muted); font-size: 12px; line-height: 1.5;
}

@media (max-width: 720px) {
  .la-ecom .portrait-row { grid-template-columns: 56px 1fr 48px; }
  .la-ecom .detail-cover { width: 96px; height: 128px; }
}
