.page-home {
  background: var(--paper);
  color: var(--ink);
}

.page-home .breadcrumbs {
  padding: var(--sp-2) var(--sp-3) 0;
}

/* ---------- 开场 ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  padding: 64px var(--sp-3) 96px;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  opacity: .48;
}

.page-home .hero__night {
  position: absolute;
  inset: -2px;
  z-index: -2;
  background: linear-gradient(155deg, var(--night) 0%, rgba(11, 20, 36, .96) 36%, rgba(11, 20, 36, .6) 68%, rgba(240, 166, 43, .24) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 54%, 0 88%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--white);
  max-width: 10em;
}

.page-home .hero__lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sand);
  max-width: 32ch;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.page-home .hero__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(247, 243, 234, .6);
}

.page-home .hero__cut {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 2;
  width: 92px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 6px 6px 0 rgba(5, 8, 15, .45);
}

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

.page-home .hero__cut figcaption {
  padding: 4px 6px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ---------- 联赛轴 ---------- */

.page-home .league__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
  max-width: 660px;
  margin-bottom: var(--sp-4);
}

.page-home .league__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.page-home .league__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 42ch;
}

.page-home .league__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.page-home .league__item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 14px;
  background: var(--paper);
}

.page-home .league__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 180ms var(--ease);
}

.page-home .league__item > * {
  position: relative;
  z-index: 1;
}

.page-home .league__item:hover::before {
  transform: translateX(0);
}

.page-home .league__no {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--flare);
  transition: color 120ms var(--ease);
}

.page-home .league__item:hover .league__no {
  color: var(--ink);
}

.page-home .league__name {
  font-size: 16px;
  font-weight: 600;
}

.page-home .league__side {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.page-home .league__side-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-home .league__ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  width: 100%;
}

.page-home .league__way {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

.page-home .league__way-no {
  font-size: 13px;
  color: var(--gold);
}

.page-home .league__way strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.page-home .league__way p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 赛果带 ---------- */

.page-home .results {
  background: var(--night);
  color: var(--paper);
}

.page-home .results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.page-home .results__intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.page-home .results__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .results__tip {
  margin: 0;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(247, 243, 234, .6);
}

.page-home .results__strip {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(247, 243, 234, .12);
}

.page-home .results__strip::-webkit-scrollbar {
  height: 6px;
}

.page-home .results__strip::-webkit-scrollbar-track {
  background: rgba(247, 243, 234, .12);
}

.page-home .results__strip::-webkit-scrollbar-thumb {
  background: var(--gold);
}

.page-home .match-card {
  flex: 0 0 264px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(240, 166, 43, .32);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .match-card:hover {
  transform: translateY(-2px);
  box-shadow: 10px 12px 0 rgba(255, 90, 47, .42);
}

.page-home .match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.page-home .match-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.page-home .match-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .match-card__home,
.page-home .match-card__away {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .match-card__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
  transition: color 120ms var(--ease);
}

.page-home .match-card:hover .match-card__num {
  color: var(--flare);
}

.page-home .match-card__more {
  align-self: center;
  font-size: 13px;
  letter-spacing: .06em;
}

/* ---------- 稳定版面板 ---------- */

.page-home .build {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-3);
  background: var(--night);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.page-home .build__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.page-home .build__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .build__lede {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(247, 243, 234, .78);
}

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

.page-home .build__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3) var(--sp-2);
  background: var(--night);
}

.page-home .build__stat:last-child {
  grid-column: 1 / -1;
}

.page-home .build__num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-home .build__label {
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(247, 243, 234, .66);
}

.page-home .build__foot {
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-light);
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 243, 234, .72);
}

/* ---------- 四步路径 ---------- */

.page-home .path__grid {
  display: grid;
  gap: var(--sp-5);
}

.page-home .path__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.page-home .path__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 18em;
}

.page-home .path__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .path__steps {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  width: 100%;
}

.page-home .path__step {
  position: relative;
  padding: var(--sp-3) 0 var(--sp-3) 52px;
  border-top: 1px solid var(--ink);
}

.page-home .path__step:last-child {
  border-bottom: 1px solid var(--ink);
}

.page-home .path__no {
  position: absolute;
  left: 0;
  top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-home .path__step h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.page-home .path__step p {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .path__step[data-reveal] {
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}

.has-js .page-home .path__step[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.has-js .page-home .path__step[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.page-home .path__media {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--sand);
}

.page-home .path__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .path__media figcaption {
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

/* ---------- 规模速览 ---------- */

.page-home .scale__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--sp-5) var(--sp-3);
  background: var(--night);
  border: 1px solid var(--ink);
}

.page-home .scale__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .scale__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.page-home .scale__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(205deg, rgba(11, 20, 36, .95) 0%, rgba(11, 20, 36, .78) 55%, rgba(255, 90, 47, .22) 100%);
}

.page-home .scale__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}

.page-home .scale__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .scale__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.page-home .scale__list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-3) var(--sp-2);
  background: rgba(11, 20, 36, .86);
}

.page-home .scale__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-home .scale__cap {
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(247, 243, 234, .7);
}

/* ---------- 收尾入口 ---------- */

.page-home .outro__box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sand);
}

.page-home .outro__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-home .outro__text {
  margin: 0;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .outro__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
}

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

@media (min-width: 600px) {
  .page-home .scale__num {
    font-size: 40px;
  }
}

@media (min-width: 900px) {
  .page-home .league__body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: start;
  }

  .page-home .league__rail {
    grid-template-columns: 1fr;
  }

  .page-home .league__side {
    margin-top: 0;
  }

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

  .page-home .build__stat:last-child {
    grid-column: auto;
  }

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

  .page-home .outro__box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: var(--sp-5) var(--sp-4);
  }
}

@media (min-width: 1024px) {
  .page-home .breadcrumbs {
    padding: var(--sp-3) var(--sp-5) 0;
  }

  .page-home .hero {
    padding: 104px 64px 132px;
  }

  .page-home .hero__night {
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
  }

  .page-home .hero h1 {
    font-size: 56px;
  }

  .page-home .hero__inner {
    max-width: 680px;
  }

  .page-home .hero__cut {
    width: 260px;
    right: 6%;
    bottom: 14%;
    box-shadow: 16px 16px 0 rgba(5, 8, 15, .5);
  }

  .page-home .build {
    padding: var(--sp-6) var(--sp-5);
    box-shadow: 16px 16px 0 var(--sand);
  }

  .page-home .path__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: start;
  }

  .page-home .path__media {
    position: sticky;
    top: 88px;
  }

  .page-home .scale__panel {
    padding: var(--sp-6) var(--sp-5);
  }

  .page-home .league__title,
  .page-home .results__title,
  .page-home .build__title,
  .page-home .path__title,
  .page-home .scale__title,
  .page-home .outro__title {
    font-size: 40px;
  }
}

@media (min-width: 1440px) {
  .page-home .hero h1 {
    font-size: 84px;
    max-width: 8em;
  }

  .page-home .hero__inner {
    max-width: 800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .league__item::before,
  .page-home .match-card,
  .page-home .match-card__num,
  .page-home .path__step[data-reveal] {
    transition: none;
  }

  .has-js .page-home .path__step[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .page-home .match-card:hover {
    transform: none;
  }
}
