.page-products {
  --pp-rail: 84px;
  background: var(--paper);
  color: var(--ink-text);
  overflow-x: hidden;
}

.page-products h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0.35rem 0 0.75rem;
}

.page-products h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.page-products p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

/* ---------- hero ---------- */
.page-products .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--score);
  padding: 1.5rem 0 3rem;
}

.page-products .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-products .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-products .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(158deg, rgba(7, 19, 31, 0.93) 0%, rgba(11, 59, 46, 0.86) 56%, rgba(7, 19, 31, 0.97) 100%);
}

.page-products .hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 58%;
  height: 130%;
  z-index: -1;
  background: linear-gradient(205deg, rgba(200, 255, 61, 0.22), rgba(31, 138, 91, 0) 64%);
  clip-path: polygon(30% 0, 100% 0, 74% 100%, 0 100%);
}

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

.page-products .hero .breadcrumbs {
  margin-bottom: 1.25rem;
}

.page-products .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 8.4vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0.4rem 0 1rem;
  max-width: 15ch;
  color: var(--score);
}

.page-products .hero__lead {
  max-width: 60ch;
  color: var(--on-dark-mid);
  font-size: 1rem;
}

.page-products .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0 2rem;
}

.page-products .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--lime-line);
}

.page-products .stat__num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
}

.page-products .stat__label {
  font-size: 0.8rem;
  color: var(--on-dark-weak);
  letter-spacing: 0.02em;
}

/* ---------- boards & heads ---------- */
.page-products .board {
  padding: 2.75rem 0;
}

.page-products .board--paper {
  background: var(--paper);
}

.page-products .board--deep {
  background: var(--green-deep);
  color: var(--on-dark-strong);
}

.page-products .board--ink {
  background: var(--ink);
  color: var(--on-dark-strong);
}

.page-products .board--deep p,
.page-products .board--ink p {
  color: var(--on-dark-mid);
}

.page-products .head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.85rem;
}

.page-products .head__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--green-mid);
}

.page-products .head__num--lime {
  color: var(--lime);
}

.page-products .section-lead {
  max-width: 66ch;
  font-size: 0.98rem;
}

.page-products .fineprint {
  font-size: 0.82rem;
  color: #4a5c53;
  line-height: 1.65;
  margin: 0.85rem 0 0;
}

.page-products .board--deep .fineprint,
.page-products .board--ink .fineprint {
  color: var(--on-dark-weak);
}

/* ---------- 01 球队库 ---------- */
.page-products .library {
  display: grid;
  gap: 1.5rem;
}

.page-products .rail {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.page-products .rail__tick {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #56685e;
  border: 1px solid rgba(169, 182, 174, 0.55);
  border-radius: 6px;
  background: rgba(247, 251, 244, 0.7);
}

.page-products .rail__tick--on {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 600;
}

.page-products .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.page-products .filter {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 138, 91, 0.35);
  color: #2c4b3e;
  background: #fff;
}

.page-products .filter--on {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--score);
}

.page-products .filter--muted {
  border-style: dashed;
  color: #5d7168;
  background: transparent;
}

.page-products .fixtures {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(169, 182, 174, 0.5);
}

.page-products .fixtures__row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(169, 182, 174, 0.34);
  font-size: 0.9rem;
}

.page-products .fixtures__row .tag {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 0.15rem;
}

.page-products .fx__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #7d8d85;
}

.page-products .fx__team {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.page-products .fx__team--away {
  text-align: right;
}

.page-products .fx__score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(31, 138, 91, 0.12);
  color: #12503a;
  white-space: nowrap;
}

.page-products .library__aside .media-frame {
  margin: 0 0 1rem;
}

.page-products .ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #34483d;
}

.page-products .ticks li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(169, 182, 174, 0.6);
}

.page-products .ticks .num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green-mid);
  font-size: 1rem;
}

/* ---------- 02 版本对比 ---------- */
.page-products .dims {
  list-style: none;
  margin: 0 0 1.85rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-products .dims__item {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(247, 251, 244, 0.07);
  border: 1px solid var(--dark-line);
  border-left: 2px solid rgba(200, 255, 61, 0.5);
}

.page-products .dims__no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.page-products .dims__item h3 {
  color: var(--score);
  margin-top: 0.25rem;
}

.page-products .dims__item p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--on-dark-mid);
}

.page-products .modes {
  display: grid;
  gap: 0.9rem;
}

.page-products .modes__card {
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(7, 19, 31, 0.32);
  border: 1px solid var(--dark-line);
}

.page-products .modes__card--accent {
  background: linear-gradient(150deg, rgba(31, 138, 91, 0.42), rgba(7, 19, 31, 0.5));
  border-color: rgba(200, 255, 61, 0.42);
}

.page-products .modes__card h3 {
  color: var(--score);
}

.page-products .modes__card p {
  margin: 0;
  font-size: 0.88rem;
}

/* ---------- 03 排名两版 ---------- */
.page-products .mirror {
  display: grid;
  gap: 1rem;
}

.page-products .mirror__col {
  padding: 0.9rem;
  border-radius: var(--radius);
  background: rgba(247, 251, 244, 0.05);
  border: 1px solid var(--dark-line);
}

.page-products .mirror__col--b {
  border-color: rgba(200, 255, 61, 0.32);
}

.page-products .mirror__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--dark-line);
}

.page-products .mirror__views {
  display: flex;
  gap: 0.3rem;
}

.page-products .view {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  color: var(--on-dark-weak);
  font-family: var(--font-mono);
}

.page-products .view--on {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--score);
}

.page-products .rows {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.page-products .row {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  font-size: 0.88rem;
  border-radius: 4px;
}

.page-products .row__rank {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-weak);
}

.page-products .row__team {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.page-products .row__pts {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
}

.page-products .row--diff {
  position: relative;
  color: var(--ink);
  font-weight: 600;
}

.page-products .row--diff::before {
  content: "";
  position: absolute;
  inset: 0 -4px;
  background: var(--lime);
  transform: skewX(-14deg);
  border-radius: 3px;
  z-index: 0;
}

.page-products .row--diff > * {
  position: relative;
  z-index: 1;
}

.page-products .row--diff .row__rank {
  color: #2c3a1c;
}

.page-products .mirror__note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--on-dark-weak);
}

.page-products .mirror__figure {
  margin: 1.5rem 0 0;
}

/* ---------- 04 iOS 收藏 ---------- */
.page-products .ios {
  display: grid;
  gap: 1.5rem;
}

.page-products .ios__list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-products .ios__list li {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(169, 182, 174, 0.45);
  border-left: 3px solid var(--orange);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-products .ios__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.page-products .ios__media {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.page-products .ios__media .media-frame {
  margin: 0;
}

.page-products .fav-badge {
  position: absolute;
  top: -0.6rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--orange);
  color: #240d02;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 6px rgba(255, 122, 47, 0.18);
}

/* ---------- 05 提醒 ---------- */
.page-products .alerts__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.page-products .alerts__steps {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-products .alerts__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 31, 0.34);
  border: 1px solid var(--dark-line);
}

.page-products .alerts__steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--on-dark-strong);
}

.page-products .step__no {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.page-products .alerts__figure {
  margin: 0;
}

/* ---------- 06 路径 ---------- */
.page-products .tree {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.page-products .tree__line {
  fill: none;
  stroke: rgba(200, 255, 61, 0.45);
  stroke-width: 1.6;
}

.page-products .tree__box {
  fill: rgba(247, 251, 244, 0.06);
  stroke: rgba(200, 255, 61, 0.34);
  stroke-width: 1.4;
}

.page-products .tree__box--root {
  fill: rgba(31, 138, 91, 0.42);
  stroke: var(--lime);
  stroke-width: 2;
}

.page-products .tree__box--end {
  fill: rgba(7, 19, 31, 0.55);
  stroke: rgba(169, 182, 174, 0.4);
}

.page-products .tree__label {
  fill: var(--score);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.page-products .tree__sub {
  fill: rgba(247, 251, 244, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
}

.page-products .scenarios {
  display: grid;
  gap: 0.9rem;
}

.page-products .scenarios__card {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: rgba(247, 251, 244, 0.05);
  border: 1px solid var(--dark-line);
  border-top: 2px solid rgba(200, 255, 61, 0.45);
}

.page-products .scenarios__card h3 {
  color: var(--score);
}

.page-products .scenarios__card p {
  margin: 0;
  font-size: 0.88rem;
}

/* ---------- closing ---------- */
.page-products .closing {
  background: linear-gradient(160deg, var(--green-deep), var(--ink) 78%);
  color: var(--on-dark-strong);
  padding: 2.75rem 0 3.25rem;
}

.page-products .closing h2 {
  color: var(--score);
  max-width: 18ch;
}

.page-products .closing p {
  color: var(--on-dark-mid);
  max-width: 60ch;
  font-size: 0.95rem;
}

.page-products .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

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

  .page-products .fixtures__row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }

  .page-products .fixtures__row .tag {
    grid-column: auto;
    margin-top: 0;
    justify-self: end;
  }

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

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

@media (min-width: 900px) {
  .page-products .hero {
    padding: 2rem 0 4rem;
  }

  .page-products .board {
    padding: 4.25rem 0;
  }

  .page-products .head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 2.4rem;
  }

  .page-products .head__num {
    font-size: 3.2rem;
  }

  .page-products .library {
    grid-template-columns: var(--pp-rail) minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
  }

  .page-products .rail {
    flex-direction: column;
    overflow: visible;
    position: sticky;
    top: 7rem;
    padding-bottom: 0;
  }

  .page-products .rail__tick {
    width: 100%;
  }

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

  .page-products .mirror {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .page-products .ios {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
  }

  .page-products .ios__media {
    margin: 0;
    max-width: 100%;
  }

  .page-products .alerts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.75rem 2.5rem;
    align-items: start;
  }

  .page-products .alerts__tags {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .page-products .alerts__steps {
    margin-bottom: 0;
  }

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

  .page-products .closing__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
  }

  .page-products .closing__actions {
    margin-top: 0;
    justify-content: flex-end;
    max-width: 300px;
  }
}
