.page-products {
  --rail-w: 236px;
  --gap-chapter: clamp(56px, 8vw, 112px);
  display: block;
  background: var(--abyss);
  color: var(--score-white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

.page-products p {
  margin: 0 0 1.2em;
}

.page-products a {
  color: inherit;
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  padding: calc(var(--header-h) + 26px) 0 clamp(34px, 6vw, 62px);
  background:
    radial-gradient(110% 80% at 88% -20%, rgba(53, 240, 208, 0.13), transparent 62%),
    linear-gradient(180deg, var(--abyss) 0%, var(--sea-slab) 100%);
  border-bottom: 1px solid var(--line-dim);
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.55;
}

.page-products .prod-hero-grid {
  display: grid;
  gap: clamp(26px, 5vw, 46px);
  margin-top: 24px;
}

.page-products h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 12px 0 18px;
  max-width: 22ch;
}

.page-products .lede {
  color: rgba(245, 249, 251, 0.86);
  max-width: 60ch;
  margin-bottom: 1em;
}

.page-products .hero-note {
  color: var(--steel-mist);
  font-size: 15px;
  max-width: 56ch;
  margin: 0;
}

.page-products .preview-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-mist);
  margin: 0 0 10px;
}

.page-products .chapter-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dim);
}

.page-products .chapter-preview a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 160ms var(--ease), padding-left 160ms var(--ease);
}

.page-products .chapter-preview a:hover,
.page-products .chapter-preview a:focus-visible {
  color: var(--neon-cyan);
  padding-left: 6px;
}

.page-products .pv-no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
}

.page-products .hero-metrics {
  list-style: none;
  margin: clamp(30px, 5vw, 50px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dim);
  border: 1px solid var(--line-dim);
}

.page-products .hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(4, 9, 17, 0.74);
}

.page-products .hm-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--score-white);
}

.page-products .hm-label {
  font-size: 13px;
  color: var(--steel-mist);
}

/* ---------- 主体骨架 ---------- */
.page-products .prod-shell {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(44px, 7vw, 96px);
}

.page-products .prod-body {
  min-width: 0;
}

.page-products .rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-dim);
  -webkit-overflow-scrolling: touch;
}

.page-products .rail-link {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel-mist);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--line-dim);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-products .rail-link:hover {
  color: var(--score-white);
  border-color: rgba(53, 240, 208, 0.4);
}

.page-products .rail-link.is-active {
  color: var(--neon-cyan);
  border-color: rgba(53, 240, 208, 0.55);
  background: rgba(53, 240, 208, 0.07);
}

/* ---------- 章节 ---------- */
.page-products .chapter {
  padding-top: var(--gap-chapter);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.page-products .prod-body > .chapter:first-child {
  padding-top: 0;
}

.page-products .chapter-param {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 2px solid rgba(53, 240, 208, 0.3);
}

.page-products .chapter-param--alert {
  color: var(--signal-orange);
  border-top-color: rgba(255, 106, 31, 0.45);
}

.page-products .chapter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  max-width: 24ch;
}

.page-products .chapter p {
  color: rgba(245, 249, 251, 0.8);
  max-width: 68ch;
}

.page-products .chapter strong {
  color: var(--score-white);
  font-weight: 700;
}

.page-products .chapter a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 图片块 ---------- */
.page-products .data-figure {
  margin: 26px 0;
  border: 1px solid var(--line-dim);
  background: var(--sea-slab);
}

.page-products .data-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .data-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel-mist);
  padding: 10px 14px;
  border-top: 1px solid var(--line-dim);
}

.page-products .data-figure--lead {
  box-shadow: var(--shadow-hard);
}

/* ---------- 左右分栏 ---------- */
.page-products .split {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  margin-top: 6px;
}

/* ---------- 窗口布局示意 ---------- */
.page-products .layout-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.page-products .layout-card {
  border: 1px solid var(--line-dim);
  background: var(--sea-slab);
  padding: 10px;
}

.page-products .layout-grid {
  display: grid;
  gap: 5px;
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}

.page-products .layout-grid span {
  display: block;
  background: var(--grid-slate);
  border: 1px solid var(--line-dim);
  transition: background 240ms var(--ease);
}

.page-products .layout-grid span:first-child {
  background: linear-gradient(135deg, rgba(53, 240, 208, 0.22), rgba(16, 41, 59, 0.95));
  border-color: rgba(53, 240, 208, 0.55);
}

.page-products .layout-card:hover .layout-grid span {
  background: rgba(16, 41, 59, 0.9);
}

.page-products .lv-1 { grid-template-columns: 1fr; }
.page-products .lv-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-products .lv-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.page-products .lv-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }

.page-products .layout-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel-mist);
}

/* ---------- 折叠说明 ---------- */
.page-products .chapter-fold {
  margin: 24px 0 0;
  border: 1px solid var(--line-dim);
  background: rgba(10, 24, 38, 0.72);
}

.page-products .chapter-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--score-white);
  transition: color 160ms var(--ease);
}

.page-products .chapter-fold > summary::-webkit-details-marker {
  display: none;
}

.page-products .chapter-fold > summary::before {
  content: "+";
  color: var(--neon-cyan);
  font-size: 16px;
  line-height: 1;
}

.page-products .chapter-fold[open] > summary::before {
  content: "–";
}

.page-products .chapter-fold > summary:hover {
  color: var(--neon-cyan);
}

.page-products .fold-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line-dim);
}

.page-products .fold-body p {
  margin-top: 14px;
  margin-bottom: 0.8em;
  font-size: 16px;
}

.page-products .fold-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 行式记录 ---------- */
.page-products .ledger {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dim);
}

.page-products .ledger-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dim);
  transition: background 160ms var(--ease), padding-left 160ms var(--ease);
}

.page-products .ledger-row:hover {
  background: rgba(16, 41, 59, 0.5);
  padding-left: 8px;
}

.page-products .ledger-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  padding-top: 4px;
}

.page-products .ledger-title {
  font-weight: 700;
  color: var(--score-white);
  font-size: 16px;
}

.page-products .ledger-meta {
  grid-column: 2;
  color: var(--steel-mist);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 标签体系 ---------- */
.page-products .tag-tree {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 1px solid rgba(53, 240, 208, 0.38);
}

.page-products .tag-node {
  border: 1px solid var(--line-dim);
  background: var(--grid-slate);
}

.page-products .tag-node > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--score-white);
}

.page-products .tag-node > summary::-webkit-details-marker {
  display: none;
}

.page-products .tag-node > summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--steel-mist);
}

.page-products .tag-node[open] > summary::after {
  content: "－";
  color: var(--neon-cyan);
}

.page-products .tag-lv {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  border: 1px solid rgba(53, 240, 208, 0.4);
  padding: 2px 6px;
}

.page-products .tag-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel-mist);
}

.page-products .tag-children {
  padding: 0 14px 14px;
}

.page-products .tag-node--l2 {
  margin-top: 10px;
  background: rgba(16, 41, 59, 0.82);
}

.page-products .tag-node--l3 {
  margin-top: 10px;
  background: rgba(16, 41, 59, 0.58);
}

.page-products .tag-leaf {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--steel-mist);
}

.page-products .chip-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-mist);
  margin: 0 0 8px;
}

.page-products .chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-products .chip {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--steel-mist);
  border: 1px solid var(--line-dim);
  background: var(--grid-slate);
  padding: 6px 12px;
}

.page-products .chip--on {
  color: var(--abyss);
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* ---------- 统计维度 ---------- */
.page-products .stat-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dim);
}

.page-products .stat-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dim);
  transition: background 160ms var(--ease);
}

.page-products .stat-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  padding-top: 4px;
}

.page-products .stat-name {
  font-weight: 700;
  color: var(--score-white);
  font-size: 16px;
}

.page-products .stat-note {
  grid-column: 2;
  font-size: 14px;
  color: var(--steel-mist);
  line-height: 1.55;
}

/* ---------- 多端互通 ---------- */
.page-products .chapter--media {
  position: relative;
  overflow: hidden;
  margin-top: var(--gap-chapter);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line-dim);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.page-products .media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-products .media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-products .media-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 9, 17, 0.95) 28%, rgba(10, 24, 38, 0.72) 100%);
}

.page-products .media-content {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}

.page-products .lane-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.page-products .lane {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dim);
}

.page-products .lane:last-child {
  border-bottom: 1px solid var(--line-dim);
}

.page-products .lane-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.page-products .lane-desc {
  font-size: 16px;
  color: rgba(245, 249, 251, 0.82);
}

/* ---------- 版本刻度 ---------- */
.page-products .scale {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--line-dim);
}

.page-products .scale-tick {
  position: relative;
  display: grid;
  gap: 2px;
}

.page-products .scale-tick::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--cyan-deep);
}

.page-products .scale-tick--now::before {
  background: var(--signal-orange);
}

.page-products .scale-name {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--score-white);
}

.page-products .scale-meta {
  font-size: 13px;
  color: var(--steel-mist);
}

/* ---------- 收尾入口 ---------- */
.page-products .next-band {
  background: var(--sea-slab);
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  padding: clamp(34px, 6vw, 64px) 0;
}

.page-products .next-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.page-products .next-link {
  display: block;
  padding: 18px;
  border: 1px solid var(--line-dim);
  background: rgba(16, 41, 59, 0.6);
  text-decoration: none;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}

.page-products .next-link:hover,
.page-products .next-link:focus-visible {
  border-color: rgba(53, 240, 208, 0.55);
  background: rgba(16, 41, 59, 0.85);
  transform: translateY(-3px);
}

.page-products .next-title {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--score-white);
}

.page-products .next-desc {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel-mist);
}

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

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

  .page-products .ledger-row,
  .page-products .stat-row {
    grid-template-columns: 44px minmax(150px, 220px) minmax(0, 1fr);
    align-items: baseline;
  }

  .page-products .ledger-meta,
  .page-products .stat-note {
    grid-column: 3;
  }

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

  .page-products .scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-dim);
  }

  .page-products .scale-tick::before {
    left: 0;
    top: -30px;
    width: 2px;
    height: 14px;
  }
}

@media (min-width: 980px) {
  .page-products .prod-hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
    align-items: end;
  }

  .page-products .prod-shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }

  .page-products .rail {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line-dim);
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }

  .page-products .rail-link {
    border: 0;
    border-left: 2px solid transparent;
    margin-left: -1px;
    padding: 11px 0 11px 15px;
  }

  .page-products .rail-link.is-active {
    background: linear-gradient(90deg, rgba(53, 240, 208, 0.12), transparent);
    border-left-color: var(--neon-cyan);
  }

  .page-products .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    align-items: start;
  }

  .page-products .split--flip {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  }

  .page-products .split--flip .split-visual {
    order: -1;
  }

  .page-products .stat-note {
    opacity: 0.35;
    transform: translateX(-6px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }

  .page-products .stat-row:hover .stat-note,
  .page-products .stat-row:focus-within .stat-note {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 1120px) {
  .page-products .next-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition: none !important;
    animation: none !important;
  }
}
