.page-products {
  --pt-line: rgba(110, 98, 82, 0.42);
  --pt-line-soft: rgba(110, 98, 82, 0.22);
  --pt-dark-line: rgba(232, 220, 192, 0.16);
  --pt-gap: clamp(18px, 3vw, 34px);
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ---------- 首屏 ---------- */

.page-products .pt-hero {
  position: relative;
  padding-block: clamp(18px, 3vw, 30px) clamp(44px, 6vw, 76px);
  background:
    repeating-linear-gradient(90deg, rgba(232, 220, 192, 0.045) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(232, 220, 192, 0.045) 0 1px, transparent 1px 52px),
    radial-gradient(130% 120% at 12% -10%, #16352c 0%, var(--night) 62%);
  color: var(--paper);
}

.page-products .pt-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(232, 220, 192, 0.62);
}

.page-products .pt-hero .breadcrumb a {
  color: var(--seal);
  text-decoration: none;
}

.page-products .pt-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-products .pt-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(23px, 4vw, 40px);
}

.page-products .pt-hero__eyebrow {
  color: var(--seal);
  margin: 0 0 12px;
}

.page-products .pt-hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.16;
  font-weight: 700;
  max-width: 20ch;
}

.page-products .pt-hero__dek {
  margin: clamp(16px, 2.5vw, 22px) 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(232, 220, 192, 0.82);
}

.page-products .pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .pt-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--pt-dark-line);
}

.page-products .pt-fact dt {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 220, 192, 0.58);
}

.page-products .pt-fact dd {
  margin: 4px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--seal);
}

/* ---------- 纸面画布 ---------- */

.page-products .pt-canvas {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 16px 26px -24px rgba(0, 0, 0, 0.95);
}

.page-products .pt-sec {
  padding-block: clamp(44px, 6vw, 84px);
}

.page-products .pt-canvas .pt-sec + .pt-sec {
  border-top: 1px solid var(--pt-line-soft);
}

.page-products .pt-head {
  max-width: 74ch;
}

.page-products .pt-head .label {
  color: var(--rust);
}

.page-products .pt-head h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.28;
}

.page-products .pt-head__dek {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.78;
  color: #4a4034;
}

/* ---------- 对照台演示 ---------- */

.page-products .pt-board__hint {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ash);
  max-width: 70ch;
}

.page-products .pt-board {
  margin-top: 16px;
  background: var(--paper-light);
  border: 1px solid rgba(27, 21, 18, 0.4);
  box-shadow: 8px 8px 0 -2px rgba(27, 21, 18, 0.12), 0 28px 50px -42px rgba(0, 0, 0, 0.9);
}

.page-products .pt-board__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px clamp(12px, 2vw, 20px);
  background: var(--night-2);
  color: var(--paper);
}

.page-products .pt-board__bar .label {
  color: rgba(232, 220, 192, 0.7);
}

.page-products .pt-board__code {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--seal);
}

.page-products .pt-board__legend,
.page-products .pt-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 52px;
  gap: 6px 12px;
  align-items: center;
  padding: 12px clamp(12px, 2vw, 20px);
}

.page-products .pt-board__legend {
  padding-block: 10px 8px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
  border-bottom: 1px solid var(--pt-line);
}

.page-products .pt-board__legend span:nth-child(n + 4) {
  display: none;
}

.page-products .pt-row {
  border-bottom: 1px solid var(--pt-line-soft);
  transition: background 0.28s var(--ease);
}

.page-products .pt-row:last-child {
  border-bottom: 0;
}

.page-products .pt-row:hover {
  background: rgba(240, 90, 36, 0.07);
}

.page-products .pt-row.is-live {
  background: rgba(240, 90, 36, 0.11);
}

.page-products .pt-row__no {
  font-size: 18px;
  color: var(--ash);
  padding-left: 8px;
  border-left: 2px solid transparent;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-products .pt-row.is-live .pt-row__no,
.page-products .pt-row:hover .pt-row__no {
  color: var(--signal);
  border-left-color: var(--signal);
}

.page-products .pt-row__match {
  font-size: 16px;
  color: var(--ink);
}

.page-products .pt-row__match i {
  font-style: normal;
  color: var(--ash);
  font-size: 13px;
  padding-inline: 2px;
}

.page-products .pt-row__score {
  font-size: 16px;
  text-align: right;
  color: var(--ink);
}

.page-products .pt-row.is-live .pt-row__score {
  color: var(--rust);
}

.page-products .pt-row__sub,
.page-products .pt-row__goals {
  grid-column: 2 / -1;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4034;
  transition: transform 0.3s var(--ease);
}

.page-products .pt-row:hover .pt-row__sub,
.page-products .pt-row:hover .pt-row__goals {
  transform: translateX(4px);
}

.page-products .pt-row__goals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.page-products .pt-row__lab {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ash);
  font-weight: 400;
}

.page-products .pt-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
}

.page-products .pt-dot--home {
  background: var(--signal);
}

.page-products .pt-dot--away {
  background: var(--away);
}

.page-products .pt-canvas .ledger-note {
  margin-top: clamp(18px, 3vw, 26px);
  max-width: 62ch;
}

/* ---------- 图片 ---------- */

.page-products .pt-fig {
  margin: 0;
}

.page-products .pt-fig .media {
  border: 1px solid rgba(27, 21, 18, 0.25);
  background: rgba(27, 21, 18, 0.06);
}

.page-products .pt-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pt-fig__cap {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ash);
}

.page-products .pt-fig--wide {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-products .pt-night-band .pt-fig .media {
  border-color: rgba(232, 220, 192, 0.22);
  background: rgba(232, 220, 192, 0.06);
}

.page-products .pt-night-band .pt-fig__cap {
  color: rgba(232, 220, 192, 0.62);
}

/* ---------- 分栏 ---------- */

.page-products .pt-split {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(24px, 4vw, 40px);
}

/* ---------- 五种进档方式 ---------- */

.page-products .pt-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pt-line);
}

.page-products .pt-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 14px;
  padding: clamp(16px, 2.4vw, 22px) 0;
  border-bottom: 1px solid var(--pt-line);
  transition: background 0.25s var(--ease);
}

.page-products .pt-entry:hover {
  background: rgba(232, 179, 60, 0.14);
}

.page-products .pt-entry__no {
  font-size: 13px;
  color: var(--signal);
  padding-top: 5px;
}

.page-products .pt-entry h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.page-products .pt-entry__tag {
  margin-left: 8px;
  vertical-align: 3px;
}

.page-products .pt-entry p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: #4a4034;
}

/* ---------- 安卓版 ---------- */

.page-products .pt-night-band {
  padding-block: clamp(44px, 6vw, 84px);
  background:
    repeating-linear-gradient(90deg, rgba(232, 220, 192, 0.05) 0 1px, transparent 1px 52px),
    var(--night-2);
  color: var(--paper);
  border-block: 1px solid rgba(0, 0, 0, 0.55);
}

.page-products .pt-night-band .label {
  color: var(--seal);
}

.page-products .pt-night-band h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--paper);
}

.page-products .pt-night-band p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 220, 192, 0.82);
  max-width: 62ch;
}

.page-products .pt-split--android {
  margin-top: 0;
}

.page-products .pt-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: clamp(20px, 3vw, 28px) 0 0;
}

.page-products .pt-spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pt-dark-line);
}

.page-products .pt-spec dt {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 220, 192, 0.58);
}

.page-products .pt-spec dd {
  margin: 0;
  font-size: 14px;
  text-align: right;
  color: var(--seal);
}

.page-products .pt-android__btn {
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------- 导出 ---------- */

.page-products .pt-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pt-line);
}

.page-products .pt-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pt-line-soft);
}

.page-products .pt-field__name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-products .pt-field__name::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--ash);
}

.page-products .pt-field--home .pt-field__name::before {
  background: var(--signal);
}

.page-products .pt-field--away .pt-field__name::before {
  background: var(--away);
}

.page-products .pt-field__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4034;
}

.page-products .pt-export__aside {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  align-content: start;
}

.page-products .pt-meter {
  padding: 16px;
  border: 1px solid rgba(27, 21, 18, 0.28);
  background: var(--paper-light);
}

.page-products .pt-meter__bar {
  position: relative;
  height: 10px;
  border: 1px solid var(--pt-line);
  background: rgba(27, 21, 18, 0.08);
}

.page-products .pt-meter__fill {
  display: block;
  height: 100%;
  width: 64%;
  background: linear-gradient(90deg, var(--signal), var(--seal));
  transition: width 0.4s var(--ease);
}

.page-products .pt-meter__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 9px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
}

.page-products .pt-meter__note {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4034;
}

/* ---------- 场景 ---------- */

.page-products .pt-scenes {
  display: grid;
  gap: 0;
  margin-top: clamp(22px, 3.4vw, 36px);
}

.page-products .pt-scene {
  padding: 20px 0;
  border-top: 1px solid var(--pt-line);
}

.page-products .pt-scene h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.page-products .pt-scene p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: #4a4034;
}

/* ---------- 版本线 ---------- */

.page-products .pt-version {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-products .pt-ver {
  position: relative;
  padding: 22px 0 22px 22px;
  border-left: 1px solid var(--pt-line);
}

.page-products .pt-ver::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 30px;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.page-products .pt-ver__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  cursor: pointer;
  list-style: none;
}

.page-products .pt-ver__sum::-webkit-details-marker {
  display: none;
}

.page-products .pt-ver__sum::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ash);
}

.page-products .pt-ver[open] .pt-ver__sum::after {
  content: "−";
  color: var(--signal);
}

.page-products .pt-ver__year {
  font-size: 13px;
  color: var(--rust);
  letter-spacing: 0.04em;
}

.page-products .pt-ver__title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}

.page-products .pt-ver__body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4034;
  max-width: 56ch;
}

/* ---------- 结尾 ---------- */

.page-products .pt-cta {
  padding-block: clamp(44px, 6vw, 84px);
  background:
    repeating-linear-gradient(0deg, rgba(232, 220, 192, 0.04) 0 1px, transparent 1px 52px),
    var(--night);
  color: var(--paper);
}

.page-products .pt-cta .label {
  color: var(--seal);
}

.page-products .pt-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
}

.page-products .pt-cta__dek {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 220, 192, 0.82);
}

.page-products .pt-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: clamp(24px, 3.4vw, 34px);
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-products .pt-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .page-products .pt-field {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    align-items: baseline;
  }
}

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

  .page-products .pt-scene {
    padding: 24px 26px 24px 0;
  }

  .page-products .pt-scene + .pt-scene {
    border-left: 1px solid var(--pt-line-soft);
    padding-left: 26px;
  }

  .page-products .pt-version {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 26px;
  }

  .page-products .pt-ver {
    border-left: 0;
    border-top: 1px solid var(--pt-line);
    padding: 28px 16px 20px 0;
  }

  .page-products .pt-ver::before {
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
  }
}

@media (min-width: 900px) {
  .page-products .pt-hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.7fr);
    align-items: end;
  }

  .page-products .pt-hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    border-top: 0;
    border-left: 1px solid var(--pt-dark-line);
    padding: 4px 0 4px 24px;
  }

  .page-products .pt-board__legend,
  .page-products .pt-row {
    grid-template-columns: 56px minmax(0, 1.15fr) 64px minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 10px 18px;
  }

  .page-products .pt-board__legend span:nth-child(n + 4) {
    display: block;
  }

  .page-products .pt-row__sub {
    grid-column: 4;
  }

  .page-products .pt-row__goals {
    grid-column: 5;
  }

  .page-products .pt-row__lab {
    display: none;
  }

  .page-products .pt-split--entries {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-products .pt-split--entries .pt-fig {
    position: sticky;
    top: 32px;
  }

  .page-products .pt-entry {
    grid-template-columns: 56px minmax(0, 230px) minmax(0, 1fr);
    align-items: baseline;
  }

  .page-products .pt-entry__no {
    padding-top: 2px;
  }

  .page-products .pt-entry p {
    margin-top: 0;
  }

  .page-products .pt-split--android {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pt-split--export {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .page-products .pt-export__aside .pt-fig .media {
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pt-row,
  .page-products .pt-row__no,
  .page-products .pt-row__sub,
  .page-products .pt-row__goals,
  .page-products .pt-entry,
  .page-products .pt-meter__fill {
    transition: none;
  }

  .page-products .pt-row:hover .pt-row__sub,
  .page-products .pt-row:hover .pt-row__goals {
    transform: none;
  }
}
