.page-products {
  background: var(--paper);
  color: var(--text);
}

/* ---------- 首屏 ---------- */
.page-products .pg-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 30px) 0 0;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink) 60%, var(--red-deep) 60%, var(--red-deep) 100%);
  color: var(--paper);
}

.page-products .pg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(116deg, rgba(245, 242, 236, 0.06) 0 1px, transparent 1px 56px);
  pointer-events: none;
}

.page-products .pg-hero > .container {
  position: relative;
  z-index: 1;
}

.page-products .pg-hero .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-products .pg-hero .breadcrumb li {
  color: rgba(245, 242, 236, 0.6);
}

.page-products .pg-hero .breadcrumb a {
  color: rgba(245, 242, 236, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 236, 0.4);
  padding-bottom: 1px;
}

.page-products .hero-grid {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.page-products .eyebrow {
  margin: 0;
  color: var(--mist);
}

.page-products .hero-title {
  margin: 12px 0 0;
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-products .hero-title em {
  display: block;
  font-style: normal;
  color: var(--mist);
}

.page-products .hero-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-light);
}

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

/* 战术板速览 */
.page-products .hero-board {
  border: 2px solid rgba(245, 242, 236, 0.85);
  background: rgba(17, 19, 24, 0.74);
  box-shadow: 8px 8px 0 var(--red);
  padding: 18px 16px 16px;
}

.page-products .board-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 242, 236, 0.6);
}

.page-products .board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .board-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.16);
}

.page-products .board-list li:last-child {
  border-bottom: 0;
}

.page-products .board-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
}

.page-products .board-name {
  font-size: 15px;
  font-weight: 700;
}

.page-products .board-list .tag {
  font-size: 11px;
  white-space: nowrap;
}

.page-products .board-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 242, 236, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 236, 0.55);
}

/* 首屏数据带 */
.page-products .hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0 0 clamp(22px, 4vw, 36px);
  border-top: 2px solid rgba(245, 242, 236, 0.22);
}

.page-products .hero-metrics li {
  padding: 14px 8px 12px 0;
  border-bottom: 2px solid rgba(245, 242, 236, 0.1);
}

.page-products .metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-products .metric-label {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 236, 0.6);
}

/* ---------- 通用区块 ---------- */
.page-products .pg-section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-products .pg-section--mist {
  background: var(--mist);
}

.page-products .pg-section--ink {
  background: var(--ink);
  color: var(--paper);
}

.page-products .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-products .section-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.page-products .section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.page-products .section-lede {
  margin: 2px 0 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
}

.page-products .pg-section--ink .section-lede {
  color: rgba(245, 242, 236, 0.72);
}

.page-products p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .pg-section--ink p a {
  color: var(--mist);
}

/* 图文双栏 */
.page-products .split {
  display: grid;
  gap: 26px;
}

.page-products .split-body > p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
}

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

.page-products .media {
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

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

/* 规格行 */
.page-products .spec-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.page-products .spec-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(28, 31, 38, 0.16);
  font-size: 14.5px;
}

.page-products .spec-key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.page-products .spec-val {
  font-weight: 700;
  text-align: right;
}

.page-products .split-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 6px solid var(--red);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .pg-section--mist .split-note {
  background: rgba(245, 242, 236, 0.92);
}

.page-products #column .split-note {
  margin-top: 26px;
}

/* 目录翻转态装置 */
.page-products .flip-demo {
  margin-top: 24px;
}

.page-products .flip-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.page-products .window {
  max-width: 420px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.page-products .window-bar {
  display: flex;
  gap: 6px;
  padding: 9px 11px;
  background: var(--ink);
}

.page-products .window-bar i {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--steel);
}

.page-products .window-bar i:first-child {
  background: var(--red);
}

.page-products .window-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 168px;
}

.page-products .window-side {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px 10px;
  background: var(--mist);
  border-right: 2px solid var(--ink);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}

.page-products .window-side span {
  display: block;
  height: 7px;
  background: var(--steel);
  opacity: 0.55;
}

.page-products .window-side span:first-child {
  background: var(--red);
  opacity: 1;
}

.page-products .window:hover .window-side {
  transform: perspective(520px) rotateY(-18deg) translateX(4px);
}

.page-products .window-main {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 12px;
}

.page-products .window-main b {
  display: block;
  width: 78%;
  height: 9px;
  background: var(--ink-soft);
  opacity: 0.72;
}

.page-products .window-main b:nth-child(2n) {
  width: 56%;
  opacity: 0.3;
}

/* 稳定版栏目索引 */
.page-products .index-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-products .index-card {
  padding: 18px 16px 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink-soft);
}

.page-products .index-card .tag {
  display: inline-block;
  margin-bottom: 10px;
}

.page-products .index-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.page-products .index-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 收藏分组 */
.page-products .fav-groups {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .fav-groups li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.page-products .fav-key {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--red);
}

.page-products .fav-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.page-products .fav-body span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 版本时间线 */
.page-products .timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid rgba(245, 242, 236, 0.28);
}

.page-products .timeline li {
  position: relative;
  padding: 0 0 26px;
}

.page-products .timeline li:last-child {
  padding-bottom: 0;
}

.page-products .timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 2px solid var(--ink);
}

.page-products .tl-year {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-products .timeline h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--paper);
}

.page-products .timeline p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(245, 242, 236, 0.7);
}

/* 版本对比折叠 */
.page-products .version-details {
  margin-top: 28px;
  background: var(--ink-soft);
  border: 2px solid rgba(245, 242, 236, 0.38);
}

.page-products .version-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

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

.page-products .version-details summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--red);
}

.page-products .version-details[open] summary::after {
  content: "－";
}

.page-products .version-details[open] summary {
  border-bottom: 2px solid rgba(245, 242, 236, 0.22);
}

.page-products .vtable-wrap {
  overflow-x: auto;
}

.page-products .vtable {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .vtable th,
.page-products .vtable td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid rgba(245, 242, 236, 0.14);
  color: rgba(245, 242, 236, 0.82);
}

.page-products .vtable th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 236, 0.55);
}

.page-products .vtable tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .ink-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 242, 236, 0.66);
}

/* 获取流程 */
.page-products .start-layout {
  display: grid;
  gap: 26px;
}

.page-products .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .steps li {
  padding: 18px 18px 20px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.page-products .steps li:nth-child(2) {
  background: var(--mist);
}

.page-products .steps li:nth-child(3) {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}

.page-products .step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--red);
}

.page-products .steps h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
}

.page-products .steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .steps li:nth-child(3) p {
  color: rgba(245, 242, 236, 0.74);
}

.page-products .start-help {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: var(--mist);
  border-left: 6px solid var(--red);
  font-size: 14.5px;
  line-height: 1.8;
}

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

  .page-products .hero-metrics li {
    padding: 16px 14px 14px 18px;
    border-bottom: 0;
    border-left: 2px solid rgba(245, 242, 236, 0.16);
  }

  .page-products .hero-metrics li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (min-width: 720px) {
  .page-products .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 16px;
  }

  .page-products .index-card:nth-child(2) {
    margin-top: 18px;
  }
}

@media (min-width: 900px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    align-items: end;
    gap: clamp(32px, 5vw, 64px);
  }

  .page-products .hero-board {
    margin-bottom: 8px;
  }

  .page-products .section-head {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 10px;
    align-items: start;
  }

  .page-products .section-num {
    grid-row: span 2;
    padding-top: 4px;
  }

  .page-products .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
  }

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

  .page-products .split--flip > .media {
    order: 2;
  }

  .page-products .start-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 44px);
    align-items: start;
  }

  .page-products .start-help {
    margin-top: 34px;
  }
}

@media (min-width: 1080px) {
  .page-products .hero-title {
    max-width: 15ch;
  }

  .page-products .hero-lede {
    max-width: 40ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .window-side {
    transition: none;
  }

  .page-products .window:hover .window-side {
    transform: none;
  }
}
