.page-products {
  --pp-pad: clamp(20px, 3.4vw, 40px);
  --pp-gap: clamp(16px, 2.6vw, 28px);
  --pp-line: rgba(201, 168, 106, 0.32);
  --pp-line-soft: rgba(201, 168, 106, 0.14);
  --pp-zebra-a: rgba(15, 37, 89, 0.88);
  --pp-zebra-b: rgba(22, 53, 127, 0.55);
  background-color: var(--royal-deep);
  color: var(--warm-white);
  font-family: var(--font-sans);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.page-products img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- 首屏：当前稳定版主卡 ---------- */
.pp-hero {
  padding: clamp(24px, 4vw, 52px) 0 clamp(16px, 2.4vw, 28px);
}

.pp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
  margin-top: clamp(18px, 2.6vw, 30px);
}

.pp-stable {
  position: relative;
  border: 2px solid var(--champagne);
  background: linear-gradient(155deg, #16357F 0%, #0E2455 55%, #0B1E4B 100%);
  box-shadow: var(--shadow-hard);
  padding: var(--pp-pad);
}

.pp-stable::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--pp-line-soft);
  pointer-events: none;
}

.pp-stable__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
  color: var(--warm-white);
}

.pp-stable__lead {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.78;
  color: #DCE3F4;
}

.pp-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  border-top: 2px solid var(--champagne);
  border-bottom: 1px solid var(--pp-line);
  padding: 14px 0;
  margin-bottom: 20px;
}

.pp-badge__label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--champagne-light);
}

.pp-badge__v {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--champagne);
}

.pp-badge__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.pp-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.pp-points li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.65;
  color: #E8EDFA;
}

.pp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--amber);
}

.pp-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pp-terms .royal-tag {
  border: 1px solid var(--pp-line);
  color: var(--champagne-light);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 4px 11px;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pp-hero__figure {
  position: relative;
  margin: 0;
  min-height: 220px;
  border: 2px solid var(--pp-line);
  background: #0A1A3F;
  overflow: hidden;
}

.pp-hero__figure img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.pp-hero__figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--champagne-light);
  background: linear-gradient(0deg, rgba(11, 30, 75, 0.94), rgba(11, 30, 75, 0));
}

/* ---------- 章节刻度条 ---------- */
.pp-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 10px;
  margin: clamp(18px, 3vw, 32px) 0 0;
  border-top: 1px solid var(--pp-line-soft);
  border-bottom: 1px solid var(--pp-line-soft);
  scrollbar-width: thin;
}

.pp-rail__link {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pp-rail__link:hover,
.pp-rail__link:focus-visible {
  color: var(--champagne-light);
  border-color: var(--pp-line);
}

.pp-rail__link.is-active {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 通用章节 ---------- */
.pp-sec {
  padding: clamp(34px, 5.2vw, 64px) 0;
}

.pp-sec__head {
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pp-h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
  color: var(--warm-white);
}

.pp-p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.78;
  color: #CFD8EE;
}

.pp-p--tight {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- 图 ---------- */
.pp-figure {
  margin: 0 0 clamp(20px, 3vw, 30px);
  border: 1px solid var(--pp-line);
  background: #0A1A3F;
  overflow: hidden;
}

.pp-figure img {
  width: 100%;
  object-fit: cover;
}

.pp-figure--axis img {
  max-height: 260px;
}

.pp-figure--wide img {
  max-height: 300px;
}

.pp-figure--square img {
  max-height: 420px;
}

.pp-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--pp-line-soft);
}

/* ---------- 历史版本时间线 ---------- */
.pp-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  border-left: 2px solid var(--pp-line);
}

.pp-tl__item {
  position: relative;
  padding: 0 0 28px 22px;
}

.pp-tl__item:last-child {
  padding-bottom: 0;
}

.pp-tl__item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--royal-deep);
  border: 2px solid var(--champagne);
}

.pp-tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.pp-tl__v {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1;
  color: var(--champagne);
  letter-spacing: -0.01em;
}

.pp-tl__when {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.pp-tl__why {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.72;
  color: #CFD8EE;
  max-width: 62ch;
}

.pp-details {
  border: 1px solid var(--pp-line-soft);
  background: rgba(22, 53, 127, 0.32);
  max-width: 62ch;
}

.pp-details summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--champagne-light);
}

.pp-details summary::-webkit-details-marker {
  display: none;
}

.pp-details summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  font-weight: 700;
  color: var(--amber);
}

.pp-details[open] summary::before {
  content: "–";
}

.pp-details[open] summary {
  border-bottom: 1px solid var(--pp-line-soft);
}

.pp-details__body {
  padding: 12px 14px 14px;
}

.pp-details__body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.94rem;
  line-height: 1.68;
  color: #CFD8EE;
}

/* ---------- 适配矩阵 ---------- */
.pp-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--pp-line);
  background: rgba(22, 53, 127, 0.24);
}

.pp-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.pp-matrix th,
.pp-matrix td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pp-line-soft);
  vertical-align: top;
}

.pp-matrix thead th {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--champagne-light);
  background: rgba(11, 30, 75, 0.78);
  white-space: nowrap;
}

.pp-matrix tbody th {
  font-weight: 700;
  font-size: 1rem;
  color: var(--warm-white);
  white-space: nowrap;
}

.pp-cell {
  display: inline-block;
  padding: 5px 11px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pp-cell--a {
  background: var(--champagne);
  color: #0B1E4B;
}

.pp-cell--b {
  background: var(--royal-bright);
  color: #F2F5FF;
}

.pp-cell--c {
  border: 1px solid var(--champagne);
  color: var(--champagne-light);
}

.pp-cell__note {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.pp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.pp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pp-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  flex: 0 0 auto;
}

/* ---------- 文档对应 ---------- */
.pp-docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
  align-items: start;
}

.pp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pp-line);
}

.pp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--champagne-light);
  background: var(--royal-core);
}

.pp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pp-line-soft);
  color: #D8DFF2;
  line-height: 1.65;
  vertical-align: top;
}

.pp-table tbody tr:nth-child(odd) {
  background: var(--pp-zebra-a);
}

.pp-table tbody tr:nth-child(even) {
  background: var(--pp-zebra-b);
}

.pp-table__group th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
  background: rgba(11, 30, 75, 0.96);
  border-bottom: 1px solid var(--pp-line);
}

.pp-docname {
  font-weight: 600;
  color: var(--warm-white);
}

.pp-table td.pp-right {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--champagne);
  white-space: nowrap;
}

.pp-pill {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--champagne-light);
  color: #0B1E4B;
  white-space: nowrap;
}

/* ---------- 下载前提示 ---------- */
.pp-tips {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--champagne);
  box-shadow: var(--shadow-hard);
  padding: clamp(22px, 4vw, 44px);
}

.pp-tips__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pp-tips__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.pp-tips__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 30, 75, 0.96) 0%, rgba(11, 30, 75, 0.84) 55%, rgba(11, 30, 75, 0.42) 100%);
}

.pp-tips__inner {
  position: relative;
  z-index: 1;
}

.pp-tips__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.pp-tips__item {
  border-top: 2px solid var(--champagne);
  padding-top: 12px;
}

.pp-tips__no {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--champagne);
  margin-bottom: 6px;
}

.pp-tips__t {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--warm-white);
}

.pp-tips__d {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: #CFD8EE;
}

/* ---------- 延伸入口 ---------- */
.pp-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
  margin-top: clamp(24px, 4vw, 40px);
}

.pp-next a {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--warm-white);
  border: 1px solid var(--pp-line);
  background: rgba(22, 53, 127, 0.38);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pp-next a:hover,
.pp-next a:focus-visible {
  border-color: var(--amber);
  box-shadow: 6px 6px 0 rgba(224, 138, 46, 0.35);
}

.pp-next__t {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pp-next__d {
  display: block;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.pp-foot-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

.pp-foot-note a {
  color: var(--champagne-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pp-foot-note a:hover,
.pp-foot-note a:focus-visible {
  color: var(--amber);
}

.pp-top {
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.pp-top .royal-to-top {
  color: var(--champagne-light);
  letter-spacing: 0.08em;
  font-size: 14px;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 760px) {
  .pp-tips__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .pp-next {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-figure--square img {
    max-height: 520px;
  }
}

@media (min-width: 900px) {
  .pp-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }

  .pp-docs {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }

  .pp-figure--axis img {
    max-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-rail__link,
  .page-products .pp-next a {
    transition: none;
  }
}
