.page-products {
  --pd-line: rgba(20, 18, 16, .12);
  --pd-line-light: rgba(246, 241, 230, .18);
  --pd-step-scale: 1;
  --pd-seg: #7FBFA6;
  --pd-seg-gold: var(--chip);
}

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

.page-products .img-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--night), var(--table-green) 70%);
}

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

.page-products [hidden] {
  display: none !important;
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 15vw, 152px) 0 clamp(34px, 5vw, 64px);
  background:
    radial-gradient(120% 90% at 72% -14%, rgba(224, 138, 46, .24), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, var(--table-green) 64%, var(--table-green) 100%);
  color: var(--bone);
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: min(620px, 70vw);
  height: min(620px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 184, 75, .18), transparent 66%);
  pointer-events: none;
}

.page-products .pd-hero-grid {
  display: grid;
  gap: clamp(22px, 3.6vw, 44px);
}

.page-products .pd-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--gold);
}

.page-products .pd-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--bone);
  max-width: 14em;
}

.page-products .pd-hero .lede {
  margin: 0;
  max-width: 34em;
  color: var(--bone-70);
  font-size: 16px;
  line-height: 1.75;
}

.page-products .pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.page-products .pd-hero-actions .link-quiet {
  color: var(--bone-70);
}

.page-products .pd-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.page-products .pd-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  border: 1px solid var(--bone-14);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(246, 241, 230, .09), rgba(246, 241, 230, .02));
}

.page-products .pd-stat--lg {
  grid-column: 1 / -1;
  background: linear-gradient(140deg, rgba(224, 138, 46, .26), rgba(30, 92, 75, .28));
  border-color: rgba(242, 184, 75, .42);
}

.page-products .pd-stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(34px, 7.4vw, 62px);
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
}

.page-products .pd-stat--lg .pd-stat-num {
  font-size: clamp(52px, 12vw, 96px);
  color: var(--bone);
}

.page-products .pd-stat-label {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--bone-70);
}

.page-products .pd-hero-figure {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 4vw, 44px);
}

.page-products .pd-hero-figure .img-frame {
  aspect-ratio: 16 / 7;
}

/* ---------- 房间列表 ---------- */
.page-products .pd-rooms {
  background: var(--bone);
}

.page-products .pd-room-list {
  display: block;
  border-top: 1px solid var(--pd-line);
}

.page-products .pd-room {
  border-bottom: 1px solid var(--pd-line);
}

.page-products .pd-room-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s var(--ease);
}

.page-products .pd-room-row::marker,
.page-products .pd-room-row::-webkit-details-marker {
  display: none;
  content: "";
}

.page-products .pd-room-row:hover {
  background: rgba(226, 218, 200, .38);
}

.page-products .pd-room-row:focus-visible {
  outline: 2px solid var(--chip);
  outline-offset: -2px;
}

.page-products .pd-room-no {
  grid-column: 1;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ash);
}

.page-products .pd-room-name {
  grid-column: 2;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-products .pd-room-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}

.page-products .pd-f {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(226, 218, 200, .48);
}

.page-products .pd-f-k {
  font-size: 12px;
  color: var(--ash);
  letter-spacing: .04em;
}

.page-products .pd-f-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pd-f-v--up {
  color: var(--moss);
}

.page-products .pd-f-v--down {
  color: var(--vermilion);
}

.page-products .pd-room-toggle {
  grid-column: 3;
  justify-self: end;
  position: relative;
  width: 16px;
  height: 16px;
}

.page-products .pd-room-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ash);
  border-bottom: 2px solid var(--ash);
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}

.page-products .pd-room[open] .pd-room-toggle::before {
  transform: rotate(-135deg);
  top: 6px;
}

.page-products .pd-room-detail {
  margin: 0 0 18px 12px;
  padding: 14px 16px 16px;
  border-left: 3px solid var(--chip);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--pd-line);
}

.page-products .pd-room-detail p {
  margin: 0 0 14px;
  max-width: 34em;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.page-products .pd-room-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-room-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--pd-line);
  font-size: 13px;
}

.page-products .pd-room-meta span {
  color: var(--ash);
}

.page-products .pd-room-meta b {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 段位阶梯 ---------- */
.page-products .pd-ladder-section {
  background: linear-gradient(180deg, var(--bone) 0%, var(--stone) 100%);
}

.page-products .pd-ladder-layout {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-products .pd-ladder {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 4px 2px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .pd-step {
  --h: 34;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(30, 92, 75, .10), rgba(30, 92, 75, .02));
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-products .pd-step:nth-child(2) { --h: 56; }
.page-products .pd-step:nth-child(3) { --h: 78; }
.page-products .pd-step:nth-child(4) { --h: 100; }
.page-products .pd-step:nth-child(5) { --h: 122; }

.page-products .pd-step:hover,
.page-products .pd-step:focus-visible {
  transform: translateY(-4px);
  border-color: var(--chip);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.page-products .pd-step-idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ash);
}

.page-products .pd-step-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--table-green);
}

.page-products .pd-step-unit {
  font-size: 12px;
  color: var(--ash);
}

.page-products .pd-step-name {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-products .pd-step-bar {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: calc(var(--h) * var(--pd-step-scale) * 1px);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--moss);
}

.page-products .pd-step:nth-child(1) .pd-step-bar { background: #2E6B58; }
.page-products .pd-step:nth-child(2) .pd-step-bar { background: #27705A; }
.page-products .pd-step:nth-child(3) .pd-step-bar { background: var(--moss); }
.page-products .pd-step:nth-child(4) .pd-step-bar { background: #C4761F; }
.page-products .pd-step:nth-child(5) .pd-step-bar { background: var(--chip); }

.page-products .pd-step-note {
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ash);
}

.page-products .pd-ladder-fig {
  aspect-ratio: 16 / 10;
}

.page-products .pd-ladder-note {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 34em;
  padding-left: 14px;
  border-left: 3px solid var(--chip);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 残局章节 ---------- */
.page-products .pd-endgame {
  padding: clamp(38px, 5.6vw, 78px) 0;
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(224, 138, 46, .18), transparent 60%),
    linear-gradient(158deg, var(--moss) 0%, var(--table-green) 58%, var(--night) 100%);
  color: var(--bone);
}

.page-products .pd-endgame .section-title {
  color: var(--bone);
}

.page-products .pd-eyebrow-light {
  color: var(--gold);
}

.page-products .pd-note-light {
  color: var(--bone-70);
}

.page-products .pd-endgame-top {
  display: grid;
  gap: clamp(20px, 3.4vw, 40px);
  align-items: center;
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.page-products .pd-ring {
  position: relative;
  justify-self: center;
  width: min(240px, 68vw);
}

.page-products .pd-ring svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pd-ring-track {
  stroke: rgba(246, 241, 230, .14);
}

.page-products .pd-ring-seg {
  stroke: var(--pd-seg);
}

.page-products .pd-ring-seg--gold {
  stroke: var(--pd-seg-gold);
}

.page-products .pd-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0;
  pointer-events: none;
}

.page-products .pd-ring-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 700;
  color: var(--bone);
}

.page-products .pd-ring-unit {
  font-size: 13px;
  color: var(--bone-70);
}

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

.page-products .pd-endgame-facts li {
  padding: 12px 16px;
  border: 1px solid var(--pd-line-light);
  border-radius: var(--radius-md);
  background: rgba(10, 33, 25, .34);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-70);
}

.page-products .pd-endgame-facts b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 20px;
  color: var(--gold);
  margin-right: 6px;
}

.page-products .pd-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 0 0 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--pd-line-light);
}

.page-products .pd-filter-bar .filter-label {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--bone-45);
}

.page-products .pd-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pd-endgame .filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--bone-14);
  border-radius: var(--radius-pill);
  background: rgba(10, 33, 25, .3);
  color: var(--bone-70);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-products .pd-endgame .filter-btn:hover {
  border-color: var(--gold);
  color: var(--bone);
}

.page-products .pd-endgame .filter-btn[aria-pressed="true"] {
  background: var(--chip);
  border-color: var(--chip);
  color: var(--night);
  font-weight: 700;
}

.page-products .pd-endgame .filter-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-products .pd-chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-chapter {
  padding: 14px 16px 16px;
  border: 1px solid var(--pd-line-light);
  border-radius: var(--radius-md);
  background: rgba(246, 241, 230, .07);
  transition: transform .24s var(--ease), background-color .24s var(--ease), border-color .24s var(--ease);
}

.page-products .pd-chapter:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 184, 75, .5);
  background: rgba(246, 241, 230, .12);
}

.page-products .pd-chapter-idx {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-products .pd-chapter-title {
  margin: 6px 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--bone);
}

.page-products .pd-chapter-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone-45);
}

.page-products .pd-endgame-fig {
  aspect-ratio: 21 / 9;
  margin: clamp(24px, 3.6vw, 38px) 0 0;
}

/* ---------- 出牌节奏 ---------- */
.page-products .pd-tempo {
  background: var(--bone);
}

.page-products .pd-tempo-grid {
  display: grid;
  gap: clamp(20px, 3.2vw, 40px);
  align-items: center;
}

.page-products .pd-tempo-fig {
  aspect-ratio: 1 / 1;
  max-width: 460px;
}

.page-products .pd-tempo-copy .section-title {
  margin-top: 6px;
  color: var(--ink);
}

.page-products .pd-tempo-copy p {
  margin: 0 0 16px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.page-products .pd-timer-bars {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--stone);
}

.page-products .pd-timerow {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
}

.page-products .pd-timerow-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ash);
}

.page-products .pd-timerow-bar {
  display: block;
  height: 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 18, 16, .08);
  overflow: hidden;
}

.page-products .pd-timerow-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.page-products .pd-timerow-fill--old {
  width: 100%;
  background: var(--ash);
}

.page-products .pd-timerow-fill--new {
  width: 64%;
  background: var(--chip);
}

.page-products .pd-timerow-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.page-products .pd-tempo-note {
  padding-left: 14px;
  border-left: 3px solid var(--chip);
  color: var(--ash) !important;
}

/* ---------- 版本对照 ---------- */
.page-products .pd-version {
  background: linear-gradient(180deg, var(--bone) 0%, var(--stone) 92%);
}

.page-products .pd-version-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.page-products .pd-compare {
  border: 1px solid var(--pd-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bone);
}

.page-products .pd-compare-row {
  display: grid;
  grid-template-columns: minmax(88px, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: baseline;
  padding: 13px 14px;
  border-top: 1px solid var(--pd-line);
  font-size: 14px;
  color: var(--ink);
}

.page-products .pd-compare-row--head {
  border-top: 0;
  background: var(--table-green);
  color: var(--bone-70);
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 600;
}

.page-products .pd-c-key {
  font-weight: 700;
}

.page-products .pd-c-new {
  color: var(--moss);
  font-weight: 700;
}

.page-products .pd-compare-row .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

.page-products .pd-version-fig {
  aspect-ratio: 12 / 7;
}

.page-products .pd-version-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  max-width: 34em;
  padding-left: 14px;
  border-left: 3px solid var(--chip);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 延伸入口 ---------- */
.page-products .pd-more {
  padding: clamp(34px, 5vw, 64px) 0;
  background: var(--night);
  color: var(--bone);
}

.page-products .pd-more-title {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--bone);
}

.page-products .pd-more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .pd-more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--bone-14);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(30, 92, 75, .5), rgba(10, 33, 25, .5));
  text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-products .pd-more-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.page-products .pd-more-card:focus-visible {
  outline: 2px solid var(--chip);
  outline-offset: 3px;
}

.page-products .pd-more-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-products .pd-more-t {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bone-70);
}

/* ---------- 响应式 ---------- */
@media (max-width: 639px) {
  .page-products {
    --pd-step-scale: .62;
  }

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

  .page-products .pd-timerow {
    grid-template-columns: 56px minmax(0, 1fr) 50px;
    gap: 8px;
  }

  .page-products .pd-compare-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
    padding: 12px 12px;
    font-size: 13px;
  }
}

@media (min-width: 720px) {
  .page-products .pd-hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: start;
  }

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

  .page-products .pd-room-row {
    grid-template-columns: 42px minmax(150px, 1fr) minmax(0, 2.1fr) 26px;
    padding: 16px 6px;
  }

  .page-products .pd-room-fields {
    grid-column: auto;
  }

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

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

  .page-products .pd-endgame-top {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }

  .page-products .pd-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-products .pd-ladder-layout {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, .82fr);
    align-items: end;
  }

  .page-products .pd-ladder {
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .pd-chapter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pd-tempo-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .page-products .pd-version-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .page-products .pd-hero-figure .img-frame {
    aspect-ratio: 21 / 9;
  }
}
</main>
