.page-products {
  --pd-cut: 18px;
  --pd-line: rgba(212, 160, 23, 0.3);
  --pd-soft: rgba(143, 163, 191, 0.18);
  --pd-rail-w: 328px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
}

/* ---------- 首屏 ---------- */
.page-products .pd-intro {
  position: relative;
  padding: clamp(24px, 4vw, 50px) 0 clamp(30px, 5vw, 62px);
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(212, 160, 23, 0.18), transparent 62%),
    radial-gradient(70% 90% at 4% 110%, rgba(31, 163, 124, 0.16), transparent 60%),
    linear-gradient(158deg, #14294a 0%, #0b1f3a 52%, #061224 100%);
  border-bottom: 1px solid var(--pd-line);
  overflow: hidden;
}

.page-products .pd-intro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  background:
    linear-gradient(to top, rgba(6, 18, 36, 0.88), transparent),
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(212, 160, 23, 0.05) 26px 27px);
  pointer-events: none;
}

.page-products .pd-intro .breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--mist);
}

.page-products .pd-intro .breadcrumb a {
  color: rgba(245, 241, 230, 0.75);
  text-decoration: none;
}

.page-products .pd-intro .breadcrumb a:hover {
  color: var(--gold-soft);
}

.page-products .pd-intro .eyebrow {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.page-products .pd-intro__title {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  max-width: 20ch;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(27px, 5.2vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-products .pd-intro__lead {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.88;
  color: rgba(245, 241, 230, 0.82);
}

.page-products .pd-facts {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.page-products .pd-facts li {
  padding: 10px 12px;
  border-left: 2px solid var(--pd-line);
  background: rgba(245, 241, 230, 0.045);
}

.page-products .pd-facts b {
  display: block;
  font-family: var(--font-data);
  font-size: 1.12rem;
  color: var(--gold-soft);
  line-height: 1.3;
}

.page-products .pd-facts span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- 主体骨架 ---------- */
.page-products .pd-body {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding-top: clamp(26px, 4vw, 56px);
  padding-bottom: clamp(44px, 6vw, 88px);
}

@media (min-width: 1024px) {
  .page-products .pd-body {
    grid-template-columns: minmax(0, 1fr) var(--pd-rail-w);
    align-items: start;
  }
}

.page-products .pd-main {
  min-width: 0;
}

/* ---------- 功能目录 ---------- */
.page-products .pd-toc {
  position: sticky;
  top: 0;
  z-index: 4;
  margin-bottom: clamp(14px, 2.4vw, 26px);
  padding: 10px 0;
  background: rgba(11, 31, 58, 0.94);
  border-bottom: 1px solid var(--pd-line);
}

.page-products .pd-toc .toc__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-products .pd-toc__list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-products .pd-toc__list li {
  flex: 0 0 auto;
}

.page-products .pd-toc .toc__link {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--pd-soft);
  border-radius: 999px;
  font-size: 0.83rem;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(245, 241, 230, 0.78);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .pd-toc .toc__link:hover,
.page-products .pd-toc .toc__link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold);
}

.page-products .pd-toc .toc__link.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 章节 ---------- */
.page-products .pd-section {
  position: relative;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--pd-soft);
  scroll-margin-top: 76px;
}

.page-products .pd-main > .pd-section:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.page-products .pd-section .section-title {
  margin: 6px 0 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.32;
}

.page-products .pd-text {
  margin: 14px 0 0;
  max-width: 66ch;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.86;
  color: rgba(245, 241, 230, 0.8);
}

.page-products .pd-text a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .pd-text a:hover {
  color: var(--paper);
}

.page-products .pd-text--tight {
  margin-top: 12px;
  font-size: 0.92rem;
}

/* ---------- 图片 ---------- */
.page-products .pd-figure {
  margin: 22px 0 0;
  min-width: 0;
}

.page-products .pd-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  background: var(--ink-2);
}

.page-products .pd-figure figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 三块区域 ---------- */
.page-products .pd-zones {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .page-products .pd-zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-products .pd-zones li {
  padding: 14px 16px;
  background: linear-gradient(152deg, rgba(26, 51, 88, 0.9), rgba(11, 31, 58, 0.92));
  border-top: 2px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-products .pd-zones h3 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.page-products .pd-zones p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(245, 241, 230, 0.76);
}

/* ---------- 排名分栏 ---------- */
.page-products .pd-split {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 760px) {
  .page-products .pd-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    align-items: start;
  }
}

.page-products .pd-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 560px) {
  .page-products .pd-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

.page-products .pd-fields li {
  padding: 9px 0 9px 14px;
  border-left: 1px solid var(--pd-line);
  border-bottom: 1px solid rgba(143, 163, 191, 0.13);
  font-size: 0.86rem;
  line-height: 1.6;
}

.page-products .pd-fields b {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--paper);
}

.page-products .pd-fields span {
  display: block;
  color: var(--mist);
  font-size: 0.8rem;
}

.page-products .pd-figure--narrow {
  margin-top: 0;
  max-width: 420px;
}

/* ---------- 重点场次筛选 ---------- */
.page-products .pd-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(18, 41, 74, 0.75);
  border: 1px solid var(--pd-soft);
  border-left: 3px solid var(--gold);
}

.page-products .pd-filter__chip {
  padding: 5px 12px;
  border: 1px solid var(--pd-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(245, 241, 230, 0.72);
}

.page-products .pd-filter__chip--on {
  background: rgba(200, 64, 42, 0.16);
  border-color: var(--vermilion);
  color: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(200, 64, 42, 0.08);
}

.page-products .pd-filter__hint {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--jade);
}

/* ---------- 版本对照 ---------- */
.page-products .pd-compare {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 780px) {
  .page-products .pd-compare {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    align-items: stretch;
  }
}

.page-products .pd-compare__pane {
  padding: 16px 18px;
  background: rgba(59, 42, 90, 0.38);
  border: 1px solid rgba(143, 163, 191, 0.22);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-products .pd-compare__pane--new {
  background: rgba(31, 163, 124, 0.13);
  border-color: rgba(31, 163, 124, 0.42);
}

.page-products .pd-compare__pane h3 {
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.page-products .pd-compare__pane--new h3 {
  color: #8fe3c8;
}

.page-products .pd-compare__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .pd-compare__list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(245, 241, 230, 0.8);
}

.page-products .pd-compare__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.page-products .pd-compare__divider {
  display: none;
}

@media (min-width: 780px) {
  .page-products .pd-compare__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  }

  .page-products .pd-compare__divider::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--ink);
  }
}

/* ---------- 步骤 ---------- */
.page-products .pd-steps {
  list-style: none;
  counter-reset: pdstep;
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
}

.page-products .pd-steps li {
  counter-increment: pdstep;
  position: relative;
  padding-left: 56px;
}

.page-products .pd-steps li::before {
  content: "0" counter(pdstep);
  position: absolute;
  left: 0;
  top: -2px;
  padding: 5px 7px;
  font-family: var(--font-data);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--gold-soft);
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid var(--pd-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.page-products .pd-steps h3 {
  margin: 0 0 4px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .pd-steps p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(245, 241, 230, 0.76);
}

/* ---------- 更新节奏 ---------- */
.page-products .pd-cadence {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .page-products .pd-cadence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-products .pd-cadence li {
  padding: 13px 16px;
  background: rgba(245, 241, 230, 0.045);
  border-left: 3px solid var(--gold);
}

.page-products .pd-cadence b {
  display: block;
  font-family: var(--font-title);
  font-size: 0.94rem;
  color: var(--paper);
}

.page-products .pd-cadence span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 右侧排名栏 ---------- */
.page-products .pd-rail {
  display: none;
}

@media (min-width: 1024px) {
  .page-products .pd-rail {
    display: block;
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }
}

.page-products .pd-rail__inner {
  padding: 16px;
  background: linear-gradient(160deg, rgba(18, 41, 74, 0.96), rgba(11, 31, 58, 0.98));
  border: 1px solid var(--pd-line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-products .pd-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-products .pd-rail__badge {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding-left: 8px;
}

.page-products .pd-mini {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 0.82rem;
}

.page-products .pd-mini__caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--mist);
  letter-spacing: 0.06em;
}

.page-products .pd-mini th {
  text-align: right;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  border-bottom: 1px solid var(--pd-line);
}

.page-products .pd-mini th:first-child,
.page-products .pd-mini td:first-child {
  text-align: left;
}

.page-products .pd-mini td {
  text-align: right;
  padding: 8px;
  color: rgba(245, 241, 230, 0.88);
  border-bottom: 1px solid rgba(143, 163, 191, 0.13);
}

.page-products .pd-mini tbody tr:nth-child(-n + 3) td:first-child {
  color: var(--gold-soft);
  font-weight: 700;
}

.page-products .pd-rail__note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.68;
  color: var(--mist);
}

.page-products .pd-rail__links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.page-products .pd-rail__links .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ---------- 窄屏收束 ---------- */
@media (max-width: 559px) {
  .page-products .pd-figure--narrow {
    max-width: 100%;
  }

  .page-products .pd-filter__hint {
    margin-left: 0;
  }

  .page-products .pd-section .section-title {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-toc .toc__link {
    transition: none;
  }
}
