.page-home {
  --home-cut: 16px;
  --home-cut-sm: 9px;
}

/* ============ 1. 框景首屏 ============ */
.page-home .hero-frame {
  padding: clamp(12px, 2.4vw, 26px) var(--gutter);
  background: var(--night);
}

.page-home .hero-frame__window {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  min-height: clamp(360px, 52vh, 560px);
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
  background: var(--night-lift);
}

.page-home .hero-frame__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  z-index: 0;
  filter: saturate(0.78) contrast(1.06);
}

.page-home .hero-frame__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 27, 58, 0.97) 0%, rgba(11, 27, 58, 0.84) 46%, rgba(10, 61, 36, 0.74) 100%);
}

.page-home .hero-frame__rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 3;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(228, 255, 74, 0.15) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(228, 255, 74, 0.55) 0 1px, transparent 1px 90px);
  background-size: 100% 100%, 100% 60%;
  background-position: left top, left top;
  background-repeat: repeat-x, repeat-x;
}

.page-home .hero-frame__rail--top {
  top: 0;
  border-top: 1px solid rgba(228, 255, 74, 0.32);
}

.page-home .hero-frame__rail--bottom {
  bottom: 0;
  transform: scaleY(-1);
  border-top: 1px solid rgba(228, 255, 74, 0.32);
}

.page-home .hero-frame__inner {
  position: relative;
  z-index: 2;
  padding: clamp(38px, 5.5vw, 76px) clamp(20px, 4vw, 58px);
}

.page-home .hero-frame__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.page-home .hero-frame__lead {
  max-width: 46ch;
}

.page-home .hero-frame__sub {
  margin-top: 18px;
  color: rgba(244, 247, 241, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.page-home .hero-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero-frame__dial {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 6px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(228, 255, 74, 0.46);
  background: rgba(10, 61, 36, 0.4);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .hero-frame__dial-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .hero-frame__dial-num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(74px, 12vw, 120px);
  line-height: 0.82;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.page-home .hero-frame__dial-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.page-home .hero-frame__dial-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(244, 247, 241, 0.6);
}

.page-home .hero-frame__dial .rot-label {
  position: absolute;
  right: 8px;
  bottom: 16px;
  color: rgba(228, 255, 74, 0.45);
}

/* ============ 2. 联赛横向索引带 ============ */
.page-home .league-band {
  padding: clamp(48px, 7vw, 92px) 0 clamp(44px, 6vw, 84px);
  background: var(--paper);
}

.page-home .band-head {
  max-width: 62%;
  margin-bottom: 26px;
}

.page-home .band-head__title {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.24;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

.page-home .band-head__lede {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #3d4a41;
}

.page-home .league-band .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(140, 156, 144, 0.36);
  border: 1px solid rgba(140, 156, 144, 0.36);
}

.page-home .league-card {
  position: relative;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 15px 14px 17px;
  background: var(--paper);
  transition: background-color 0.2s ease;
}

.page-home .league-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.24s ease;
}

.page-home .league-card:hover,
.page-home .league-card:focus-within {
  background: #ffffff;
}

.page-home .league-card:hover::after {
  transform: scaleY(1);
}

.page-home .league-card__abbr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .league-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

.page-home .league-card__round {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.page-home .league-card__nums {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 3px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 27px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.page-home .league-card__dash {
  color: var(--mist);
  font-weight: 400;
  padding: 0 2px;
}

.page-home .league-card__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--pen);
}

.page-home .league-card__line--playoff {
  color: var(--green);
}

.page-home .league-card__line b {
  font-weight: 700;
}

/* ============ 3. 升降级推进轴 ============ */
.page-home .advance-band {
  padding: clamp(48px, 7vw, 92px) 0 clamp(50px, 7vw, 96px);
  background: var(--paper);
  border-top: 1px solid rgba(140, 156, 144, 0.34);
}

.page-home .advance-band__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .advance-band__title {
  margin-top: 12px;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.24;
  color: var(--graphite);
}

.page-home .advance-band__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #3d4a41;
}

.page-home .advance-band__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}

.page-home .advance-band__key {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #4b584f;
}

.page-home .advance-band__key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background: linear-gradient(90deg, var(--green), #1da45b);
}

.page-home .advance-band__key--line::before {
  width: 2px;
  height: 14px;
  left: 5px;
  background: var(--pen);
}

.page-home .advance-band__source {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .advance-band__rows {
  display: grid;
  gap: 0;
}

.page-home .axis-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0 16px;
  border-bottom: 1px dashed rgba(140, 156, 144, 0.42);
}

.page-home .axis-row__abbr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.page-home .axis-row__track {
  position: relative;
  height: 10px;
  background: rgba(10, 61, 36, 0.1);
}

.page-home .axis-row__span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  background: linear-gradient(90deg, var(--green) 0%, #1da45b 100%);
}

.page-home .axis-row__line {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: var(--line);
  width: 2px;
  background: var(--pen);
}

.page-home .axis-row__line--playoff {
  background: var(--green-deep);
}

.page-home .axis-row__line i {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  color: var(--pen);
  white-space: nowrap;
}

.page-home .axis-row__line--playoff i {
  color: var(--green-deep);
}

/* ============ 4. 对比条区 ============ */
.page-home .compare-zone {
  padding: clamp(48px, 7vw, 92px) 0 clamp(50px, 7vw, 96px);
  background: var(--night);
  color: var(--paper);
}

.page-home .compare-zone__head {
  max-width: 64%;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.page-home .compare-zone__title {
  margin-top: 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.22;
  color: var(--paper);
}

.page-home .compare-zone__lede {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 247, 241, 0.78);
}

.page-home .metric-switch {
  display: inline-flex;
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid rgba(228, 255, 74, 0.28);
  background: rgba(24, 43, 77, 0.7);
  clip-path: polygon(
    var(--home-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--home-cut-sm)),
    calc(100% - var(--home-cut-sm)) 100%,
    0 100%,
    0 var(--home-cut-sm)
  );
}

.page-home .metric-switch__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 18px;
  font-family: var(--font-cn);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(244, 247, 241, 0.68);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.page-home .metric-switch__btn:hover {
  color: var(--paper);
}

.page-home .metric-switch__btn[aria-pressed="true"] {
  color: var(--graphite);
  background: var(--neon);
  border-color: var(--neon);
}

.page-home .compare-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}

.page-home .compare-layout__side {
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-home .compare-layout__side .img-frame {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 156, 144, 0.3);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .compare-layout__side img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.page-home .compare-layout__side--pen .img-frame {
  border-color: rgba(255, 90, 43, 0.44);
}

.page-home .compare-layout__side--sub .img-frame {
  border-color: rgba(52, 198, 224, 0.44);
}

.page-home .compare-layout__side figcaption {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(244, 247, 241, 0.62);
}

.page-home .compare-layout__bars {
  display: grid;
  gap: 20px;
}

.page-home .compare-bars__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-transform: uppercase;
}

.page-home .compare-bar__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.page-home .compare-bar__label {
  font-size: 14px;
  color: rgba(244, 247, 241, 0.86);
}

.page-home .compare-bar__track {
  position: relative;
  display: block;
  height: 14px;
  background: rgba(24, 43, 77, 0.92);
  border: 1px solid rgba(140, 156, 144, 0.26);
  overflow: hidden;
}

.page-home .compare-bar__fill {
  display: block;
  height: 100%;
  width: calc(var(--value, 0) * 1%);
  background: var(--sub);
  transition: width 0.24s ease, background 0.2s ease;
}

.page-home .compare-bar__fill--stoppage {
  background: linear-gradient(90deg, var(--pen) 0%, var(--pen-tail) 100%);
  width: calc(var(--value, 0) * 1%);
}

.page-home .compare-bar__track:hover .compare-bar__fill {
  transform: translateX(4px);
}

.page-home .compare-bar__value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--neon);
  text-align: right;
}

.page-home .compare-bars__foot {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(244, 247, 241, 0.58);
}

/* ============ 5. 复盘入口 ============ */
.page-home .replay-zone {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 clamp(60px, 8vw, 112px);
  background: var(--night-lift);
  isolation: isolate;
}

.page-home .replay-zone__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 0;
  filter: saturate(0.7) contrast(1.08);
}

.page-home .replay-zone__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(24, 43, 77, 0.9) 0%, rgba(11, 27, 58, 0.95) 100%);
}

.page-home .replay-zone__inner {
  position: relative;
  z-index: 2;
}

.page-home .replay-zone__head {
  max-width: 62%;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .replay-zone__title {
  margin-top: 12px;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.24;
  color: var(--paper);
}

.page-home .replay-zone__lede {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 247, 241, 0.74);
}

.page-home .replay-paths {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(140, 156, 144, 0.26);
}

.page-home .replay-paths__item {
  border-bottom: 1px solid rgba(140, 156, 144, 0.26);
}

.page-home .replay-paths__link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas:
    "idx name"
    "idx desc";
  gap: 6px 16px;
  padding: 20px 4px 22px;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.24s ease;
}

.page-home .replay-paths__link:hover,
.page-home .replay-paths__link:focus-visible {
  background: rgba(228, 255, 74, 0.05);
  padding-left: 12px;
}

.page-home .replay-paths__idx {
  grid-area: idx;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(228, 255, 74, 0.66);
}

.page-home .replay-paths__name {
  grid-area: name;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.page-home .replay-paths__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(244, 247, 241, 0.64);
  max-width: 62ch;
}

/* ============ 响应式 ============ */
@media (min-width: 720px) {
  .page-home .league-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .compare-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .compare-bar__row {
    grid-template-columns: 110px minmax(0, 1fr) 54px;
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-frame__grid {
    grid-template-columns: 9fr 3fr;
    align-items: end;
  }

  .page-home .hero-frame__dial {
    justify-items: end;
    text-align: right;
  }

  .page-home .advance-band__layout {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .league-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .page-home .compare-layout {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
  }
}

@media (max-width: 719px) {
  .page-home .band-head,
  .page-home .compare-zone__head,
  .page-home .replay-zone__head {
    max-width: 100%;
  }

  .page-home .compare-layout__side img {
    aspect-ratio: 16 / 9;
  }

  .page-home .axis-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .page-home .compare-bar__row {
    grid-template-columns: 76px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .page-home .compare-bar__label {
    font-size: 13px;
  }

  .page-home .compare-bar__value {
    font-size: 19px;
  }

  .page-home .hero-frame__dial {
    padding: 16px 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .compare-bar__fill,
  .page-home .league-card,
  .page-home .league-card::after,
  .page-home .replay-paths__link,
  .page-home .metric-switch__btn {
    transition: none;
  }

  .page-home .compare-bar__track:hover .compare-bar__fill {
    transform: none;
  }
}

.page-home {
  --from: 1rem;
  --to: 1rem;
  --value: 1rem;
}
