.page-products {
  --pr-fact-gap: clamp(20px, 4vw, 40px);
  overflow-x: clip;
}

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

.page-products figure {
  margin: 0;
}

.page-products .media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.92);
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  padding-block: clamp(22px, 5vw, 44px) clamp(48px, 9vw, 104px);
}

.page-products .pr-crumbs {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-products .pr-frame {
  position: relative;
  padding: clamp(24px, 4.5vw, 56px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(150deg, rgba(200, 247, 81, .05), transparent 46%),
    linear-gradient(180deg, var(--turf), var(--ink) 88%);
}

.page-products .pr-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 24px 1px, 1px 24px, 24px 1px, 1px 24px;
  background-position: left top, left top, right bottom, right bottom;
}

.page-products .pr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.page-products .pr-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.page-products .pr-hero__sub {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--sage);
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pr-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.page-products .pr-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  background: var(--turf);
}

.page-products .pr-fact__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1;
  color: var(--lime);
}

.page-products .pr-fact__unit {
  margin-left: 2px;
  font-size: 13px;
  color: var(--sage);
}

.page-products .pr-fact__label {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sage);
  line-height: 1.4;
}

/* ---------- 区块标题 ---------- */
.page-products .pr-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-products .chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 96px);
  line-height: .88;
  color: var(--rule);
}

.page-products .pr-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.page-products .pr-head__lead {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--sage);
}

/* ---------- 分段切换 ---------- */
.page-products .pr-switch {
  display: block;
}

.page-products .segmented__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border: 1px solid var(--rule);
  background: var(--turf);
  border-radius: var(--radius);
}

.page-products .segmented__tab {
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.page-products .segmented__tab:hover {
  color: var(--paper);
}

.page-products .segmented__tab[aria-selected="true"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.page-products .segmented__tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-products .pr-panel {
  padding-top: 4px;
}

.page-products .pr-panel[hidden] {
  display: none;
}

.page-products .pr-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

/* ---------- 左右对照 ---------- */
.page-products .compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "axis axis"
    "home away";
  gap: 10px 16px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--rule);
  transition: background-color .18s var(--ease);
}

.page-products .compare-row:hover,
.page-products .compare-row:focus-within {
  background: rgba(87, 227, 184, .06);
}

.page-products .compare-row:hover .compare-cell,
.page-products .compare-row:focus-within .compare-cell {
  box-shadow: 0 0 0 1px rgba(200, 247, 81, .45);
}

.page-products .compare-axis {
  grid-area: axis;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.page-products .compare-axis__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
}

.page-products .compare-axis__hint {
  flex: 1 1 120px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sage);
  text-align: right;
}

.page-products .compare-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 3px 4px;
  border-radius: var(--radius);
  transition: box-shadow .18s var(--ease);
}

.page-products .compare-cell--home {
  grid-area: home;
  flex-direction: row-reverse;
}

.page-products .compare-cell--away {
  grid-area: away;
}

.page-products .compare-val {
  flex: 0 0 auto;
  min-width: 2.4ch;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(19px, 3vw, 27px);
  line-height: 1;
  color: var(--paper);
}

.page-products .compare-cell--lead .compare-val {
  color: var(--lime);
}

.page-products .compare-cell--tie .compare-val {
  color: var(--mint);
}

.page-products .compare-cell .bar {
  flex: 1 1 auto;
  display: block;
  height: 6px;
  overflow: hidden;
  background: #0d1b16;
}

.page-products .compare-cell .bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--bar-value, 0));
  transition: transform .6s var(--ease);
  background: var(--sage);
}

.page-products .compare-cell--home .bar__fill {
  transform-origin: right center;
}

.page-products .compare-cell--lead .bar__fill {
  background: var(--lime);
}

.page-products .compare-cell--tie .bar__fill {
  background: var(--mint);
}

.page-products .compare-cell--trail .bar__fill {
  background: var(--rule);
}

.page-products .pr-shot {
  margin-top: clamp(24px, 4vw, 40px);
}

/* ---------- 电脑版三栏 ---------- */
.page-products .pr-desk {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  margin-top: 10px;
}

.page-products .pr-desk h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.page-products .pr-desk__copy > p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--sage);
}

.page-products .pr-desk__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .pr-desk__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .pr-desk__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--lime);
}

.page-products .pr-desk__list strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--paper);
  font-weight: 700;
}

.page-products .pr-desk-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(22px, 3vw, 32px);
  background: var(--rule);
  border: 1px solid var(--rule);
}

.page-products .pr-deskcol {
  padding: clamp(18px, 3vw, 26px);
  background: var(--panel);
}

.page-products .pr-deskcol h4 {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pr-deskcol p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sage);
}

/* ---------- 十二维度 ---------- */
.page-products .pr-dims__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.page-products .pr-dims__art .media-frame__caption,
.page-products .pr-dims__art figcaption {
  margin-top: 10px;
}

.page-products .pr-dims__list {
  border-top: 1px solid var(--rule);
}

.page-products .pr-dim {
  border-bottom: 1px solid var(--rule);
}

.page-products .pr-dim__sum {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 18px;
  align-items: baseline;
  gap: 4px 12px;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
}

.page-products .pr-dim__sum::-webkit-details-marker {
  display: none;
}

.page-products .pr-dim__num {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sage);
  transition: color .2s var(--ease);
}

.page-products .pr-dim__name {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-products .pr-dim__hint {
  grid-column: 2 / 4;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sage);
}

.page-products .pr-dim__sum::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: rotate(-45deg);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .pr-dim[open] .pr-dim__sum::after {
  transform: rotate(45deg);
  border-color: var(--lime);
}

.page-products .pr-dim[open] .pr-dim__num {
  color: var(--lime);
}

.page-products .pr-dim__sum:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.page-products .pr-dim__body {
  margin: 0 0 18px 0;
  padding-left: calc(2.6rem + 12px);
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--sage);
}

/* ---------- 路径 ---------- */
.page-products .pr-path__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.page-products .pr-tree {
  display: none;
}

.page-products .pr-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.page-products .pr-step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 2px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.page-products .pr-step__num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
}

.page-products .pr-step h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pr-step p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .pr-step__meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-products .pr-step__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 247, 81, .4);
}

.page-products .pr-step__link:hover {
  border-bottom-color: var(--lime);
}

.page-products .pr-path__note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .pr-path__note a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(87, 227, 184, .4);
}

.page-products .pr-path__note a:hover {
  border-bottom-color: var(--mint);
}

/* ---------- 场景 ---------- */
.page-products .pr-scenes__art {
  margin-bottom: clamp(22px, 3.5vw, 36px);
}

.page-products .pr-scenes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.page-products .pr-scene {
  padding: clamp(20px, 3vw, 30px);
  background: var(--turf);
}

.page-products .pr-scene h3 {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pr-scene p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--sage);
}

/* ---------- 结尾 ---------- */
.page-products .pr-cta__box {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(200, 247, 81, .08), transparent 58%),
    linear-gradient(180deg, var(--panel), var(--turf));
}

.page-products .pr-cta h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -.02em;
  line-height: 1.14;
}

.page-products .pr-cta__copy p {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--sage);
}

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

.page-products .pr-cta__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.page-products .pr-cta__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  font-size: 13px;
  color: var(--sage);
}

.page-products .pr-cta__facts strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.page-products .pr-cta__foot {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .pr-cta__foot a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 169, 63, .45);
}

.page-products .pr-cta__foot a:hover {
  border-bottom-color: var(--amber);
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 760px) {
  .page-products .pr-head {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .page-products .pr-desk-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pr-scenes__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pr-tree {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
  }
}

@media (min-width: 900px) {
  .page-products .pr-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr);
    align-items: end;
    gap: clamp(32px, 5vw, 72px);
  }

  .page-products .pr-hero__facts {
    grid-template-columns: 1fr;
  }

  .page-products .pr-fact {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 16px 18px;
  }

  .page-products .pr-desk {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }

  .page-products .pr-dims__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-products .pr-path__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-products .pr-cta__box {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (min-width: 860px) {
  .page-products .compare-row {
    grid-template-columns: minmax(0, 1fr) 172px minmax(0, 1fr);
    grid-template-areas: "home axis away";
    align-items: center;
    gap: 24px;
    padding: 20px 10px;
  }

  .page-products .compare-axis {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 0 10px;
  }

  .page-products .compare-axis__hint {
    flex: 0 0 auto;
    text-align: center;
  }

  .page-products .compare-axis::before,
  .page-products .compare-axis::after {
    content: "";
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 1px;
    background-image: repeating-linear-gradient(to bottom, var(--rule) 0 6px, transparent 6px 14px);
  }

  .page-products .compare-axis::before {
    left: -10px;
  }

  .page-products .compare-axis::after {
    right: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .compare-cell .bar__fill,
  .page-products .compare-row,
  .page-products .compare-cell,
  .page-products .pr-dim__sum::after {
    transition: none;
  }
}

.page-products {
  --bar-value: inherit;
}
