.page-products {
  --pp-gap: clamp(16px, 2.2vw, 28px);
  --pp-panel: #0C1424;
  --pp-line-dash: rgba(147, 161, 184, .28);
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-products .tools-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-products .tools-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(88% 70% at 84% 4%, rgba(43, 232, 181, .16), transparent 62%),
    radial-gradient(70% 60% at 6% 96%, rgba(255, 177, 60, .10), transparent 60%),
    var(--ink);
}

.page-products .tools-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 42%;
  opacity: .32;
}

.page-products .tools-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, var(--ink) 8%, rgba(5, 7, 13, .62) 50%, rgba(5, 7, 13, .18) 100%);
}

.page-products .tools-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(147, 161, 184, .16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 76%);
}

.page-products .tools-hero-inner {
  position: relative;
  z-index: 2;
}

.page-products .tools-hero .crumbs {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-products .tools-hero h1 {
  margin: 12px 0 clamp(18px, 2.4vw, 28px);
  max-width: 17ch;
  letter-spacing: -.02em;
  line-height: .98;
}

.page-products .tools-lede {
  max-width: 62ch;
  margin: 0 0 clamp(24px, 3.4vw, 40px);
  color: var(--steel);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(26px, 3.4vw, 40px);
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.page-products .hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: rgba(12, 20, 36, .82);
}

.page-products .stat-num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -.02em;
}

.page-products .hero-stats li:nth-child(2) .stat-num { color: var(--gold); }
.page-products .hero-stats li:nth-child(4) .stat-num { color: var(--paper); }

.page-products .stat-label {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: .02em;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 章节索引 ---------- */
.page-products .tools-index {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(12, 20, 36, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.page-products .tools-index-inner {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .tools-index-inner::-webkit-scrollbar { display: none; }

.page-products .toc-link {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-products .toc-link:hover,
.page-products .toc-link:focus-visible {
  color: var(--paper);
  border-color: var(--line-2);
}

.page-products .toc-link[aria-current="true"] {
  color: var(--ink);
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 600;
}

/* ---------- 通用章节 ---------- */
.page-products .section {
  padding-block: clamp(56px, 8vw, 104px);
}

.page-products .section-head {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-products .section-head h2 {
  margin: 12px 0 14px;
  max-width: 20ch;
  letter-spacing: -.015em;
}

.page-products .section-note {
  max-width: 66ch;
  margin: 0;
  color: var(--steel);
  line-height: 1.8;
}

/* ---------- 工具总览 ---------- */
.page-products .tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  border-radius: var(--r-card);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.page-products .tool-card:hover,
.page-products .tool-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--neon);
}

.page-products .tool-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-products .tool-index {
  font-size: 13px;
  color: var(--steel);
  letter-spacing: .16em;
}

.page-products .tool-card .card-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.page-products .tool-card .card-body {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.78;
  flex: 1 1 auto;
}

.page-products .card-link {
  align-self: flex-start;
  color: var(--neon);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 232, 181, .4);
  padding-bottom: 2px;
}

.page-products .card-link:hover { border-bottom-color: var(--neon); }

/* ---------- 工具分区：左动线 右参数 ---------- */
.page-products .tool-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .tool-flow {
  order: 2;
}

.page-products .tool-spec {
  order: 1;
  padding: 24px 22px;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--stand), var(--court));
  border: 1px solid var(--line);
}

.page-products .flow-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: .04em;
}

.page-products .flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.page-products .flow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 0 0 24px;
}

.page-products .flow-steps li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(43, 232, 181, .5), rgba(147, 161, 184, .1));
}

.page-products .flow-steps li:last-child { padding-bottom: 0; }
.page-products .flow-steps li:last-child::before { display: none; }

.page-products .step-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--neon);
  font-size: 12px;
  background: var(--ink);
}

.page-products .step-name {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.page-products .step-text {
  margin: 0;
  color: var(--steel);
  font-size: 14.5px;
  line-height: 1.78;
}

.page-products .spec-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.page-products .spec-list {
  margin: 0;
}

.page-products .spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--pp-line-dash);
}

.page-products .spec-row:last-child { border-bottom: none; }

.page-products .spec-row dt {
  color: var(--steel);
  font-size: 14px;
}

.page-products .spec-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--paper);
  text-align: right;
}

.page-products .spec-foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 关注列表独占一屏 ---------- */
.page-products .watch-stage {
  background: linear-gradient(180deg, var(--ink), var(--court) 42%, var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .watch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .watch-lead {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
}

.page-products .watch-points {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .watch-points li {
  position: relative;
  padding-left: 20px;
  color: var(--steel);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .watch-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
}

.page-products .watch-points strong {
  color: var(--paper);
  font-weight: 700;
}

.page-products .watch-note {
  margin: 0;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 177, 60, .07);
  color: var(--steel);
  font-size: 14px;
  line-height: 1.78;
}

.page-products .watch-panel {
  padding: 18px 16px 8px;
  border-radius: var(--r-lg);
  background: var(--pp-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-products .watch-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-products .watch-panel-title {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--steel);
}

.page-products .watch-needle {
  width: 104px;
  height: 24px;
  flex: 0 0 auto;
}

.page-products .watch-timeline {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  max-height: 460px;
  overflow-y: auto;
}

.page-products .watch-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(43, 232, 181, .6), rgba(147, 161, 184, .14));
}

.page-products .watch-timeline .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 12px;
  padding: 12px 0 12px 20px;
  border-bottom: 1px dashed var(--pp-line-dash);
}

.page-products .watch-timeline .timeline-item:last-child { border-bottom: none; }

.page-products .watch-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stand);
  border: 1px solid var(--line-2);
}

.page-products .watch-timeline .is-pinned::before {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(43, 232, 181, .16);
}

.page-products .watch-timeline .timeline-time {
  grid-column: 1;
  color: var(--steel);
  font-size: 13px;
  padding-top: 2px;
}

.page-products .watch-timeline .timeline-title {
  grid-column: 2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.page-products .watch-timeline .timeline-meta {
  grid-column: 2;
  color: var(--steel);
  font-size: 12.5px;
}

.page-products .pin-flag {
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .1em;
}

.page-products .watch-timeline .is-more .timeline-title { color: var(--steel); font-weight: 400; }

.page-products .watch-figure {
  margin: 0;
  align-self: start;
}

/* ---------- 赛程对比 ---------- */
.page-products .compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .compare-figure {
  margin: 0;
}

.page-products .compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-products .compare-hint {
  margin: 0 0 20px;
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.7;
}

.page-products .compare-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 22px;
  padding: 14px 6px 6px;
  border-radius: var(--r-card);
  background:
    linear-gradient(180deg, rgba(23, 35, 58, .78), rgba(12, 20, 36, .55));
  border: 1px solid var(--line);
}

.page-products .spec-list.compact .spec-row { padding: 10px 0; }

/* ---------- 集锦收藏夹 ---------- */
.page-products .clip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .clip-figure {
  margin: 0 0 20px;
}

.page-products .clip-lead {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.82;
}

.page-products .clip-groups {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-products .clip-group {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(23, 35, 58, .55);
  overflow: hidden;
}

.page-products .clip-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s var(--ease);
}

.page-products .clip-group summary::-webkit-details-marker { display: none; }

.page-products .clip-group summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--steel);
  margin-left: 4px;
}

.page-products .clip-group[open] summary {
  background: rgba(43, 232, 181, .09);
  border-bottom: 1px solid var(--line);
}

.page-products .clip-group[open] summary::after { content: "–"; color: var(--neon); }

.page-products .clip-group-name { flex: 1 1 auto; }

.page-products .clip-group-count {
  font-size: 12px;
  color: var(--gold);
}

.page-products .clip-list {
  margin: 0;
  padding: 8px 18px 16px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .clip-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .clip-time {
  color: var(--neon);
  font-size: 12.5px;
}

.page-products .clip-foot {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 数据导出 ---------- */
.page-products .export-section {
  background: linear-gradient(180deg, var(--court), var(--teal) 88%, var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .export-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.page-products .export-lead {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
}

.page-products .export-note {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.8;
}

.page-products .export-table-wrap {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, .55);
  padding: 6px 6px 12px;
  overflow-x: auto;
}

.page-products .export-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 380px;
}

.page-products .export-table th {
  text-align: left;
  padding: 12px 12px;
  color: var(--steel);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line-2);
}

.page-products .export-table td {
  padding: 10px 12px;
  color: var(--steel);
}

.page-products .export-table td:first-child {
  color: var(--neon);
  font-size: 12.5px;
}

.page-products .export-table tbody tr:nth-child(odd) { background: rgba(23, 35, 58, .5); }
.page-products .export-table tbody tr:nth-child(even) { background: rgba(12, 20, 36, .35); }

.page-products .export-preview {
  margin: 14px 6px 0;
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: .04em;
}

.page-products .export-figure {
  margin: 0;
}

/* ---------- 上手流程 ---------- */
.page-products .start-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .start-step {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23, 35, 58, .8), rgba(12, 20, 36, .6));
  transition: border-color .26s var(--ease), transform .26s var(--ease);
}

.page-products .start-step:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
}

.page-products .start-step .step-no {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  font-size: 11px;
}

.page-products .start-step .step-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.page-products .start-actions {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, .72);
}

.page-products .start-line {
  margin: 0;
  color: var(--steel);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-products .start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .start-history {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .start-history a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 232, 181, .4);
}

/* ---------- 响应式 ---------- */
@media (min-width: 680px) {
  .page-products .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .clip-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .clip-group:last-of-type { grid-column: 1 / -1; }

  .page-products .start-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-products .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .page-products .tool-grid > .tool-card:nth-child(2) { margin-top: 30px; }
  .page-products .tool-grid > .tool-card:nth-child(4) { margin-top: 18px; }

  .page-products .tool-split {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: clamp(28px, 4vw, 52px);
  }

  .page-products .tool-flow { order: 1; }
  .page-products .tool-spec { order: 2; }

  .page-products .compare-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: clamp(28px, 4vw, 52px);
  }

  .page-products .clip-grid {
    grid-template-columns: 6fr 6fr;
    gap: clamp(28px, 4vw, 52px);
  }

  .page-products .clip-groups { grid-template-columns: 1fr; }
  .page-products .clip-group:last-of-type { grid-column: auto; }

  .page-products .export-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: clamp(28px, 4vw, 52px);
  }

  .page-products .start-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .start-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1060px) {
  .page-products .watch-stage {
    min-height: 88vh;
    display: flex;
    align-items: center;
  }

  .page-products .watch-stage .shell { width: 100%; }

  .page-products .watch-grid {
    grid-template-columns: 4fr 5fr 3fr;
    align-items: start;
    gap: clamp(20px, 2.6vw, 36px);
  }

  .page-products .watch-timeline { max-height: 520px; }
}

@media (min-width: 1200px) {
  .page-products .tools-hero h1 { max-width: 15ch; }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tool-card,
  .page-products .start-step,
  .page-products .toc-link {
    transition: none;
  }

  .page-products .tool-card:hover,
  .page-products .start-step:hover {
    transform: none;
  }
}
