.page-products {
  --pp-edge: rgba(46, 90, 120, .55);
  --pp-edge-soft: rgba(46, 90, 120, .28);
  --pp-gap: clamp(28px, 4vw, 60px);
  --pp-rise: 4px;
}

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

.page-products .pp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px) 0 clamp(52px, 8vw, 96px);
  background: linear-gradient(97deg, var(--night) 0 51.5%, var(--storm-blue) 51.5% 100%);
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: min(540px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 229, 255, .16) 0 1px, transparent 1px 26px);
  pointer-events: none;
  z-index: -1;
}

.page-products .pp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bolt), rgba(0, 229, 255, 0) 72%);
}

.page-products .pp-hero__inner {
  position: relative;
}

.page-products .pp-hero__eyebrow {
  margin: clamp(24px, 4vw, 44px) 0 0;
}

.page-products .pp-hero__title {
  margin: 14px 0 0;
  color: var(--paper);
  font-size: clamp(36px, 7.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 20ch;
}

.page-products .pp-hero__lead {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--grey);
  font-size: clamp(17px, 2.1vw, 21px);
}

.page-products .pp-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: clamp(30px, 5vw, 48px) 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--pp-edge);
}

.page-products .pp-keys li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-products .pp-keys .data {
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 通用章节修正 ---------- */

.page-products .section {
  padding: clamp(52px, 8vw, 96px) 0;
}

.page-products .section__head {
  max-width: 62ch;
}

.page-products .pp-note {
  margin: 20px 0 0;
  max-width: 66ch;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.75;
}

.page-products .pp-caption {
  display: block;
  margin-top: 10px;
  color: var(--grey);
}

/* ---------- 02 总览表 ---------- */

.page-products .pp-overview {
  background: linear-gradient(180deg, rgba(18, 41, 61, 0) 0%, rgba(18, 41, 61, .62) 34%, rgba(18, 41, 61, 0) 100%);
}

.page-products .pp-table-wrap {
  margin-top: clamp(26px, 3.6vw, 42px);
  border: 1px solid var(--pp-edge);
  background: rgba(6, 14, 23, .55);
}

.page-products .pp-compare,
.page-products .pp-corner-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.page-products .pp-compare th,
.page-products .pp-compare td,
.page-products .pp-corner-table th,
.page-products .pp-corner-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.65;
  border-bottom: 1px solid var(--pp-edge-soft);
}

.page-products .pp-compare thead th,
.page-products .pp-corner-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  background: rgba(8, 19, 31, .8);
}

.page-products .pp-compare tbody th,
.page-products .pp-corner-table tbody th {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--bolt);
  white-space: nowrap;
}

.page-products .pp-compare tbody tr:hover td,
.page-products .pp-compare tbody tr:hover th,
.page-products .pp-corner-table tbody tr:hover td,
.page-products .pp-corner-table tbody tr:hover th {
  background: rgba(0, 229, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .38);
}

/* ---------- 03 订阅球队 ---------- */

.page-products .pp-subscribe {
  background: rgba(27, 58, 92, .3);
}

.page-products .pp-subscribe__wrap {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .pp-fields {
  list-style: none;
  margin: clamp(24px, 3.4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pp-edge-soft);
  border: 1px solid var(--pp-edge);
}

.page-products .pp-fields li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 13px 16px;
  background: var(--deep);
}

.page-products .pp-fields li:hover {
  background: rgba(0, 229, 255, .07);
}

.page-products .pp-fields__v {
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.6;
}

.page-products .pp-figure {
  margin: 0;
  min-width: 0;
}

.page-products .pp-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pp-edge);
  background: var(--cloud);
}

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

.page-products .pp-media--team { aspect-ratio: 12 / 7; }
.page-products .pp-media--rounds { aspect-ratio: 35 / 12; }
.page-products .pp-media--subs { aspect-ratio: 5 / 4; }
.page-products .pp-media--corners { aspect-ratio: 16 / 9; }
.page-products .pp-media--console { aspect-ratio: 1 / 1; }

/* ---------- 04 球员轮次 ---------- */

.page-products .pp-rounds {
  background: linear-gradient(180deg, rgba(18, 41, 61, 0), rgba(18, 41, 61, .42) 50%, rgba(18, 41, 61, 0));
}

.page-products .pp-rounds__grid {
  display: grid;
  gap: var(--pp-gap);
  margin-top: clamp(26px, 3.6vw, 42px);
}

.page-products .pp-chart {
  margin: 0;
  padding: 20px 16px 12px;
  border: 1px solid var(--pp-edge);
  background: rgba(6, 14, 23, .6);
  overflow-x: auto;
}

.page-products .pp-chart__svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.page-products .pp-chart__axis {
  stroke: var(--steel);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}

.page-products .pp-tick--played { fill: var(--paper); }
.page-products .pp-tick--rotate { fill: var(--yellow); }
.page-products .pp-tick--cup { fill: none; stroke: var(--bolt); stroke-width: 2.5; }

.page-products .pp-tick--out line {
  stroke: var(--alert);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.page-products .pp-chart__tick {
  fill: var(--grey);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.page-products .pp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--grey);
  font-size: 13px;
}

.page-products .pp-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-products .pp-legend__dot {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--paper);
}

.page-products .pp-legend__dot--played { border-radius: 50%; }
.page-products .pp-legend__dot--rotate { background: var(--yellow); }
.page-products .pp-legend__dot--cup {
  background: none;
  border: 2px solid var(--bolt);
  transform: rotate(45deg);
}
.page-products .pp-legend__dot--out {
  background: none;
  position: relative;
}
.page-products .pp-legend__dot--out::before,
.page-products .pp-legend__dot--out::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto 0;
  height: 2px;
  background: var(--alert);
}
.page-products .pp-legend__dot--out::before { transform: rotate(45deg); }
.page-products .pp-legend__dot--out::after { transform: rotate(-45deg); }

.page-products .pp-rounds__text {
  margin-top: clamp(22px, 3vw, 32px);
}

/* ---------- 05 替补贡献 ---------- */

.page-products .pp-subs__text {
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .pp-tags {
  display: grid;
  gap: 16px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-tag {
  background: var(--cloud);
  border: 1px solid var(--steel);
  border-radius: 2px;
  padding: 18px 18px 20px;
  box-shadow: 4px 4px 0 rgba(0, 229, 255, .16), 10px 10px 0 rgba(8, 19, 31, .55);
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

.page-products .pp-tag:hover,
.page-products .pp-tag:focus-within {
  border-color: var(--bolt);
  box-shadow: 4px 4px 0 rgba(0, 229, 255, .34), 10px 10px 0 rgba(8, 19, 31, .62);
}

.page-products .pp-tag__idx {
  display: block;
  color: var(--bolt);
  font-size: 12px;
  letter-spacing: .08em;
}

.page-products .pp-tag__name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-products .pp-tag__desc {
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .pp-subs__wrap {
  display: grid;
  gap: var(--pp-gap);
  margin-top: clamp(32px, 4.6vw, 52px);
}

.page-products .pp-subs__aside .prose {
  margin-top: 0;
}

/* ---------- 06 角球数对照 ---------- */

.page-products .pp-corners {
  background: rgba(27, 58, 92, .3);
}

.page-products .pp-corners__grid {
  display: grid;
  gap: var(--pp-gap);
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-products .pp-slider {
  margin: clamp(26px, 3.6vw, 38px) 0 0;
  padding: 22px 4px 0;
}

.page-products .pp-slider__track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--steel);
}

.page-products .pp-slider__fill {
  position: absolute;
  left: 76%;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 229, 255, .35), var(--bolt));
}

.page-products .pp-slider__knob {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--bolt);
}

.page-products .pp-slider__knob--start { left: 76%; }
.page-products .pp-slider__knob--end { left: 100%; }

.page-products .pp-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--grey);
  font-size: 12px;
}

.page-products .pp-corner-table tbody tr:nth-child(even) td,
.page-products .pp-corner-table tbody tr:nth-child(even) th {
  background: rgba(46, 90, 120, .14);
}

.page-products .pp-corner-table td.mono {
  color: var(--paper);
  font-weight: 700;
}

.page-products .pp-corner-table td.data--key {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ---------- 07 版本与更新 ---------- */

.page-products .pp-versions__wrap {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .pp-stages {
  list-style: none;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--steel);
}

.page-products .pp-stage {
  position: relative;
  padding: 0 0 24px 22px;
}

.page-products .pp-stage:last-child {
  padding-bottom: 0;
}

.page-products .pp-stage::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--bolt);
}

.page-products .pp-stage__mark {
  color: var(--grey);
  font-size: 12px;
  letter-spacing: .08em;
}

.page-products .pp-stage__name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-products .pp-stage__desc {
  margin: 6px 0 0;
  max-width: 44ch;
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.7;
}

.page-products .pp-versions__body .prose {
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-products .pp-next {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--pp-edge);
  display: grid;
  gap: 18px;
}

.page-products .pp-next__text {
  margin: 0;
  max-width: 58ch;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.75;
}

.page-products .pp-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

@media (min-width: 640px) {
  .page-products .pp-keys {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .pp-tags > li:nth-child(even) {
    margin-top: 26px;
  }
}

@media (min-width: 900px) {
  .page-products .pp-subscribe__wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
  }

  .page-products .pp-rounds__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-products .pp-subs__wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pp-corners__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
  }

  .page-products .pp-versions__wrap {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
  }

  .page-products .pp-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .page-products .pp-tags > li:nth-child(even) {
    margin-top: 30px;
  }

  .page-products .pp-next {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .page-products .pp-hero__title {
    max-width: 18ch;
  }
}
