.page-products {
  --pd-cut: 20px;
  --pd-cut-sm: 12px;
  --pd-mute: rgba(244, 239, 231, 0.68);
  display: block;
  background: var(--ink-900);
  color: var(--paper-hi);
  padding-bottom: 88px;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-products p {
  margin: 0;
}

.page-products img,
.page-products svg {
  display: block;
  max-width: 100%;
}

.page-products img {
  height: auto;
}

/* ---------- 面包屑 ---------- */
.page-products .pd-crumb {
  padding-top: 28px;
}

.page-products .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite);
}

.page-products .crumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.page-products .crumb a {
  color: var(--graphite);
  text-decoration: none;
}

.page-products .crumb a:hover {
  color: var(--flame);
}

.page-products .crumb [aria-current="page"] {
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.pd-hero {
  display: grid;
  gap: 28px;
  padding: 24px 0 56px;
}

.pd-hero__copy .tag {
  display: inline-block;
  margin-bottom: 16px;
}

.pd-hero h1 {
  font-size: clamp(30px, 7vw, 58px);
  line-height: 1.08;
  max-width: 15ch;
}

.pd-hero__lead {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--pd-mute);
}

.pd-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-facts li {
  background: var(--ink-800);
  padding: 14px 16px;
}

.pd-facts__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
  color: var(--cyan);
}

.pd-facts__l {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--graphite);
}

.page-products .media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pd-cut)), calc(100% - var(--pd-cut)) 100%, 0 100%);
}

.page-products .media img,
.pd-figure img {
  width: 100%;
  object-fit: cover;
}

.page-products figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--graphite);
}

.pd-hero__media figcaption {
  margin-top: 12px;
}

/* ---------- 双栏骨架 ---------- */
.pd-body {
  display: grid;
  gap: 32px;
}

.pd-index {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pd-index__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 14px;
}

.pd-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-index__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.pd-index__list a:hover,
.pd-index__list a:focus-visible {
  border-left-color: var(--flame);
  background: var(--ink-800);
  color: var(--flame-soft);
}

.page-products .pd-index__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite);
}

.pd-sections {
  min-width: 0;
}

/* ---------- 章节 ---------- */
.pd-sec {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 64px;
}

.pd-sec:last-child {
  margin-bottom: 0;
}

.pd-sec__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--flame);
}

.pd-sec h2 {
  margin: 10px 0 12px;
  font-size: clamp(23px, 4.4vw, 34px);
  line-height: 1.18;
  max-width: 20ch;
}

.pd-sec h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.pd-sec__lead {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--pd-mute);
}

.pd-sec p {
  font-size: 15px;
  line-height: 1.72;
}

/* ---------- 赛程与费用 ---------- */
.pd-filter {
  margin-top: 26px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pd-cut-sm)), calc(100% - var(--pd-cut-sm)) 100%, 0 100%);
}

.pd-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.pd-filter__row:last-child {
  border-bottom: 0;
}

.pd-filter__key {
  min-width: 68px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--graphite);
}

.pd-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-filter__chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--paper);
}

.pd-filter__chip--on {
  border-color: var(--flame);
  background: rgba(255, 77, 0, 0.1);
  color: var(--flame-soft);
}

.pd-games {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pd-games li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pd-games__time {
  min-width: 58px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}

.pd-games__name {
  flex: 1 1 160px;
  font-size: 15px;
}

.pd-games__city {
  font-size: 12px;
  color: var(--graphite);
}

.pd-games__fee {
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.pd-notes {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 1px solid var(--flame);
}

.pd-notes p {
  color: var(--pd-mute);
  max-width: 46ch;
}

/* ---------- 收藏 ---------- */
.pd-collect {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.pd-collect__text h3 {
  color: var(--paper-hi);
  margin-top: 20px;
}

.pd-collect__text h3:first-child {
  margin-top: 0;
}

.pd-collect__text p {
  color: var(--pd-mute);
  max-width: 40ch;
}

.pd-tablet {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-800);
  padding: 14px;
}

.pd-tablet__bar {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 14px;
}

.pd-tablet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pd-tablet__cell {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--ink-900);
}

.pd-tablet__cell b {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.pd-tablet__cell span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--graphite);
}

.pd-figure {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  background: var(--ink-800);
  padding: 10px;
}

.pd-figure figcaption {
  margin-top: 10px;
  padding: 0 2px;
}

/* ---------- 记录（反色区） ---------- */
.pd-sec--paper {
  border-top: 0;
  background: var(--paper);
  color: var(--ink-900);
  padding: 30px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pd-cut)), calc(100% - var(--pd-cut)) 100%, 0 100%);
}

.pd-sec--paper .pd-sec__no {
  color: var(--flame);
}

.pd-sec--paper .pd-sec__lead {
  color: rgba(10, 14, 20, 0.7);
}

.pd-sec--paper .pd-figure {
  border-color: rgba(10, 14, 20, 0.16);
  background: var(--paper-hi);
}

.pd-rec {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.pd-rec__item {
  padding: 18px 16px;
  border: 1px solid rgba(10, 14, 20, 0.16);
  background: var(--paper-hi);
}

.pd-rec__item h3 {
  color: var(--ink-900);
}

.pd-rec__item p {
  color: rgba(10, 14, 20, 0.72);
}

.pd-rec__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--flame) !important;
  margin-bottom: 8px;
}

/* ---------- 控球率 ---------- */
.pd-scale {
  margin-top: 26px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.pd-scale__ticks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite);
  text-align: center;
}

.pd-scale__bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  height: 8px;
  margin: 10px 0 16px;
}

.pd-scale__seg {
  background: var(--cyan-deep);
}

.pd-scale__seg--hi {
  background: var(--flame);
}

.pd-scale__note {
  font-size: 13px;
  color: var(--graphite);
}

.pd-chart {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.pd-chart__grid {
  stroke: var(--line);
  stroke-width: 1;
}

.pd-chart__line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pd-chart__dot {
  fill: var(--ink-900);
  stroke: var(--cyan);
  stroke-width: 2;
}

.pd-chart__dot--hot {
  fill: var(--flame);
  stroke: var(--flame-soft);
}

.pd-export {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pd-export li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--flame);
  background: var(--ink-800);
}

.pd-export__k {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--flame-soft);
  min-width: 56px;
}

.pd-export__d {
  flex: 1 1 220px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pd-mute);
}

/* ---------- 版本路线 ---------- */
.pd-route {
  list-style: none;
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  position: relative;
}

.pd-route::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.pd-route__item {
  position: relative;
}

.pd-route__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--flame);
}

.pd-route__item--minor::before {
  border-color: var(--cyan);
  width: 7px;
  height: 7px;
  left: -21px;
}

.pd-route__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.pd-route__item p:not(.pd-route__k) {
  margin-top: 6px;
  color: var(--pd-mute);
  max-width: 34ch;
}

.pd-ends {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pd-ends__col {
  background: var(--ink-800);
  padding: 20px 18px;
}

.pd-ends__col h3 {
  color: var(--paper-hi);
  margin-bottom: 8px;
}

.pd-ends__col p {
  color: var(--pd-mute);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 收尾 ---------- */
.pd-sec--end {
  padding: 28px 22px;
  border: 1px solid var(--flame);
  background: linear-gradient(180deg, rgba(255, 77, 0, 0.12), rgba(10, 14, 20, 0));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pd-cut)), calc(100% - var(--pd-cut)) 100%, 0 100%);
}

.pd-sec--end h2 {
  max-width: 18ch;
}

.pd-sec--end > p {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--pd-mute);
}

.pd-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.pd-links li {
  background: var(--ink-800);
}

.pd-links a {
  display: block;
  padding: 14px 16px;
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.pd-links a:hover,
.pd-links a:focus-visible {
  color: var(--flame-soft);
  background: var(--ink-900);
}

/* ---------- 焦点态 ---------- */
.page-products a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

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

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

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

  .pd-sec--paper {
    padding: 34px 30px;
  }
}

@media (min-width: 980px) {
  .pd-hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: end;
    gap: 56px;
    padding: 40px 0 72px;
  }

  .pd-hero__media {
    transform: translateY(18px);
  }

  .pd-body {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 56px;
  }

  .pd-index {
    position: sticky;
    top: 32px;
    align-self: start;
  }

  .pd-index__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-sec {
    padding-top: 34px;
    margin-bottom: 84px;
  }

  .pd-collect {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: start;
  }

  .pd-tablet__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 0;
    margin-top: 46px;
    border-top: 1px solid var(--line);
    padding-top: 34px;
  }

  .pd-route::before {
    left: 0;
    right: 0;
    top: 4px;
    bottom: auto;
    height: 1px;
    width: auto;
  }

  .pd-route__item::before {
    left: 0;
    top: -34px;
  }

  .pd-route__item--minor::before {
    left: 1px;
    top: -35px;
  }

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

  .pd-scale__ticks,
  .pd-scale__bar {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition: none !important;
    animation: none !important;
  }

  .pd-hero__media {
    transform: none;
  }
}
