/* ============================================================
   page-home —— 赛前大屏 / 夜场记分牌
   作用域：.page-home
   ============================================================ */

.page-home {
  position: relative;
  overflow-x: hidden;
  background: var(--ink-900);
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 3.25rem;
  background:
    radial-gradient(920px 560px at 84% 2%, rgba(53, 240, 138, .14), transparent 64%),
    radial-gradient(700px 460px at 2% 98%, rgba(255, 122, 47, .12), transparent 68%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 68%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 24%;
  opacity: .4;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .38) 60%, transparent 97%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .38) 60%, transparent 97%);
}

.page-home .home-hero__beam {
  position: absolute;
  z-index: -1;
  left: -24%;
  top: 30%;
  width: 148%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(53, 240, 138, .9) 40%, rgba(255, 122, 47, .8) 68%, transparent 100%);
  opacity: .5;
  transform: rotate(-12deg);
  transform-origin: left center;
  box-shadow: 0 0 46px rgba(53, 240, 138, .38);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding-top: 1rem;
}

.page-home .home-hero__rail {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .home-hero__title {
  margin: .85rem 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.55rem, 8.8vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--paper);
  max-width: 13ch;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--neon);
}

.page-home .home-hero__lede {
  margin: 1.35rem 0 0;
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1.6rem 0 0;
  padding: .45rem 1rem;
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--neon);
  border: 1px solid rgba(53, 240, 138, .42);
  border-radius: var(--radius-pill);
  background: rgba(53, 240, 138, .08);
}

.page-home .home-hero__pills {
  display: grid;
  gap: .8rem;
}

.page-home .home-hero__pills-label {
  margin: 0 0 .1rem;
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .home-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.page-home .home-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "tag title"
    "tag text";
  align-items: center;
  column-gap: .9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(15, 31, 58, .92), rgba(10, 21, 38, .88));
  color: var(--paper);
  text-decoration: none;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .home-pill:hover,
.page-home .home-pill:focus-visible {
  transform: translateY(-6px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(53, 240, 138, .32), 0 20px 44px -24px rgba(53, 240, 138, .6);
}

.page-home .home-pill__tag {
  grid-area: tag;
  align-self: center;
  padding: .3rem .55rem;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--neon-ink);
  background: var(--neon);
  border-radius: var(--radius-pill);
}

.page-home .home-pill__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .home-pill__text {
  grid-area: text;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 章节跳转条 ---------- */

.page-home .home-jump {
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  background: rgba(5, 11, 22, .55);
  padding: 1rem 0;
}

.page-home .home-jump .jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 章节通用 ---------- */

.page-home .home-chapter {
  padding: clamp(3rem, 6vw, 5.25rem) 0;
  scroll-margin-top: calc(var(--header-h-solid) + 1.25rem);
}

.page-home #chapter-02 {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 31, 58, .58) 22%, rgba(15, 31, 58, .58) 78%, transparent 100%);
}

.page-home .home-chapter__grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-chapter__link {
  justify-self: start;
}

/* ---------- 01 赛程 ---------- */

.page-home .home-count {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: .55rem;
  padding: 1.6rem 1.65rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(420px 220px at 6% 0%, rgba(53, 240, 138, .16), transparent 72%),
    var(--ink-800);
}

.page-home .home-count__value {
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 13vw, 6.4rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .home-count__unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--paper);
}

.page-home .home-count__note {
  grid-column: 1 / -1;
  margin: .95rem 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-board {
  position: relative;
  margin: 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.page-home .home-board img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06);
}

.page-home .home-board figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .35rem .8rem;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--paper);
  background: rgba(5, 11, 22, .76);
  border: 1px solid rgba(53, 240, 138, .3);
  border-radius: var(--radius-pill);
}

/* ---------- 02 两条主线 ---------- */

.page-home .home-lanes {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.25rem;
}

.page-home .home-lane {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.7rem 1.6rem 1.5rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
}

.page-home .home-lane--archive {
  background: linear-gradient(158deg, rgba(15, 31, 58, .96), rgba(10, 21, 38, .92));
}

.page-home .home-lane--data {
  background: linear-gradient(158deg, rgba(6, 36, 24, .88), rgba(10, 21, 38, .94));
  border-color: rgba(53, 240, 138, .34);
}

.page-home .home-lane__kicker {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--orange);
}

.page-home .home-lane__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .home-lane__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-lane__link {
  margin-top: auto;
  padding-top: .9rem;
  align-self: flex-start;
  font-weight: 600;
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 138, .45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-lane__link::after {
  content: " →";
}

.page-home .home-lane__link:hover,
.page-home .home-lane__link:focus-visible {
  color: var(--neon-strong);
  border-color: var(--neon);
}

.page-home .home-band {
  margin: 2.25rem 0 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.page-home .home-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  opacity: .92;
}

/* ---------- 03 三步 ---------- */

.page-home .home-steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-step {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 31, 58, .9), rgba(10, 21, 38, .9));
}

.page-home .home-step__num {
  align-self: flex-start;
  padding: .28rem .75rem;
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--neon);
  border: 1px solid rgba(53, 240, 138, .45);
  border-radius: var(--radius-pill);
}

.page-home .home-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-step__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-step .btn {
  align-self: flex-start;
  margin-top: .35rem;
}

.page-home .home-steps__visual {
  margin-top: 2rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

/* ---------- 04 收束 ---------- */

.page-home .home-signoff__body {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(255, 122, 47, .12), transparent 70%),
    linear-gradient(120deg, rgba(15, 31, 58, .9), rgba(5, 11, 22, .82));
}

.page-home .home-signoff__text {
  margin: 0;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--paper);
}

.page-home .home-signoff__aside {
  margin: .85rem 0 0;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-signoff__aside a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 138, .45);
  transition: border-color var(--dur) var(--ease);
}

.page-home .home-signoff__aside a:hover,
.page-home .home-signoff__aside a:focus-visible {
  border-color: var(--neon);
}

.page-home .home-signoff__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-content: flex-start;
}

/* ---------- 桌面端 ---------- */

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 3rem;
    row-gap: 2rem;
    min-height: 58vh;
    padding-top: 2rem;
  }

  .page-home .home-hero__copy {
    grid-column: 1;
    align-self: center;
  }

  .page-home .home-hero__pills {
    grid-column: 2;
    align-self: end;
    justify-self: end;
    width: min(100%, 25rem);
  }

  .page-home .home-pill-list > li:nth-child(1) {
    transform: translateX(-1.5rem);
  }

  .page-home .home-pill-list > li:nth-child(3) {
    transform: translateX(.9rem);
  }

  .page-home .home-chapter__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    grid-template-areas:
      "head head"
      "count board"
      "link board";
    align-items: start;
    column-gap: 2.5rem;
    row-gap: 1.75rem;
  }

  .page-home .home-chapter__grid .section__head {
    grid-area: head;
  }

  .page-home .home-count {
    grid-area: count;
  }

  .page-home .home-board {
    grid-area: board;
  }

  .page-home .home-chapter__link {
    grid-area: link;
    justify-self: start;
  }
}

@media (min-width: 860px) {
  .page-home .home-lanes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .page-home .home-lane--data {
    margin-top: 2.25rem;
  }

  .page-home .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
  }

  .page-home .home-step:nth-child(2) {
    margin-top: 1.75rem;
  }

  .page-home .home-step:nth-child(3) {
    margin-top: 3.5rem;
  }

  .page-home .home-signoff__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2.2rem 2.4rem;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__rail {
    display: block;
    position: absolute;
    left: 0;
    top: .5rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .page-home .home-hero__copy {
    padding-left: 1.75rem;
  }
}

/* ---------- 窄屏收紧 ---------- */

@media (max-width: 560px) {
  .page-home .home-hero__title {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    letter-spacing: -.015em;
  }

  .page-home .home-hero__lede {
    font-size: 1rem;
  }

  .page-home .home-count {
    padding: 1.3rem 1.25rem;
  }

  .page-home .home-count__value {
    font-size: clamp(3rem, 20vw, 4.2rem);
  }

  .page-home .home-signoff__actions .btn {
    width: 100%;
  }

  .page-home .home-steps__visual img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-pill,
  .page-home .home-lane__link,
  .page-home .home-signoff__aside a {
    transition: none;
  }

  .page-home .home-pill:hover,
  .page-home .home-pill:focus-visible {
    transform: none;
  }
}
