.page-home {
  display: block;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
}

.page-home .eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--spring-green);
}

.page-home .section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--cream);
}

.page-home .section-lead,
.page-home .band-lead {
  margin: 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(242, 234, 217, .72);
}

.page-home .band-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .text-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 155, 240, .4);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.page-home .media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .btn:focus-visible,
.page-home .theme-toggle:focus-visible,
.page-home .text-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

.page-home .hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px) 0 clamp(36px, 6vw, 72px);
  background:
    radial-gradient(110% 85% at 82% 0%, rgba(45, 155, 240, .16), transparent 62%),
    radial-gradient(85% 75% at 6% 100%, rgba(255, 90, 54, .13), transparent 64%),
    var(--ink);
}

.page-home .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6;
}

.page-home .hero-diag {
  position: absolute;
  top: -6%;
  right: 0;
  width: 66%;
  height: 112%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(45, 155, 240, .24), rgba(255, 90, 54, .14) 58%, transparent 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.page-home .hero-left h1 {
  margin: 0 0 16px;
  max-width: 13em;
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--cream);
}

.page-home .hero-lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: rgba(242, 234, 217, .78);
}

.page-home .hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  max-width: 460px;
  list-style: none;
}

.page-home .hero-metric {
  display: block;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  background: rgba(14, 17, 22, .62);
}

.page-home .hero-metric--cool {
  border-top-color: var(--spring-yellow);
}

.page-home .metric-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
}

.page-home .metric-unit {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--spring-yellow);
}

.page-home .hero-metric--cool .metric-unit {
  color: var(--ice);
}

.page-home .metric-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 234, 217, .64);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-right {
  display: grid;
  gap: 16px;
}

.page-home .hero-shot {
  aspect-ratio: 16 / 9;
}

.page-home .hero-under {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .hero-fixtures {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .fixture-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "tag time"
    "meta meta";
  align-items: center;
  gap: 6px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--season-accent);
  background: rgba(14, 17, 22, .8);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .fixture-card:nth-child(2) {
  padding-block: 18px;
  border-left-color: var(--spring-green);
}

.page-home .fixture-card:nth-child(3) {
  padding-block: 14px;
  border-left-color: var(--ice);
}

.page-home .fixture-card:hover,
.page-home .fixture-card:focus-within {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.page-home .fixture-card .tag {
  grid-area: tag;
  justify-self: start;
}

.page-home .fixture-time {
  grid-area: time;
  justify-self: end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
}

.page-home .fixture-meta {
  grid-area: meta;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 234, 217, .62);
}

.page-home .phone-frame {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  border-color: var(--line-strong);
}

/* ---------- 赛程条带 ---------- */

.page-home .fixture-band {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(27, 21, 16, .7), rgba(14, 17, 22, 0));
}

.page-home .fixture-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(212px, 232px);
  gap: 12px;
  margin: 0;
  padding: 4px 0 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.page-home .fixture-item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 21, 16, .92), rgba(14, 17, 22, .92));
  scroll-snap-align: start;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .fixture-item:hover,
.page-home .fixture-item:focus-within {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.page-home .fixture-item .tag {
  justify-self: start;
}

.page-home .fixture-item .fixture-time {
  justify-self: start;
  font-size: 30px;
}

.page-home .fixture-item .fixture-meta {
  font-size: 14px;
  color: rgba(242, 234, 217, .82);
}

.page-home .fixture-state {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ice);
}

/* ---------- 联赛导航 ---------- */

.page-home .league-band {
  border-block: 1px solid var(--line-soft);
  background: rgba(27, 21, 16, .55);
}

.page-home .league-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.page-home .league-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
  max-width: 460px;
}

.page-home .league-stat {
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  background: rgba(14, 17, 22, .6);
}

.page-home .stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(242, 234, 217, .64);
}

.page-home .league-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.page-home .league-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: flex-start;
}

.page-home .league-chips li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(242, 234, 217, .8);
  background: rgba(14, 17, 22, .5);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .league-chips li:hover {
  border-color: var(--spring-green);
  color: var(--cream);
}

.page-home .league-chips li:nth-child(4n + 1) {
  border-left: 2px solid var(--spring-green);
}

.page-home .league-chips li:nth-child(4n + 2) {
  border-left: 2px solid var(--orange);
}

.page-home .league-chips li:nth-child(4n + 3) {
  border-left: 2px solid var(--amber);
}

.page-home .league-chips li:nth-child(4n + 4) {
  border-left: 2px solid var(--ice);
}

/* ---------- 交锋回溯 ---------- */

.page-home .h2h-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

.page-home .h2h-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  background: rgba(27, 21, 16, .7);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .h2h-card:hover,
.page-home .h2h-card:focus-within {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.page-home .h2h-card .tag {
  justify-self: start;
}

.page-home .h2h-card .card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .h2h-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 234, 217, .72);
}

.page-home .h2h-card--a {
  background: linear-gradient(160deg, rgba(224, 161, 0, .16), rgba(27, 21, 16, .85) 58%);
}

.page-home .h2h-card--b {
  background: linear-gradient(200deg, rgba(168, 199, 232, .12), rgba(27, 21, 16, .85) 62%);
}

.page-home .h2h-card--c {
  background: linear-gradient(180deg, rgba(79, 209, 165, .12), rgba(27, 21, 16, .85) 62%);
}

.page-home .h2h-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-home .h2h-figure-label {
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(242, 234, 217, .6);
}

/* ---------- 上手路径 ---------- */

.page-home .guide-band {
  background: rgba(27, 21, 16, .5);
  border-block: 1px solid var(--line-soft);
}

.page-home .guide-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .guide-path {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: rgba(14, 17, 22, .68);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .guide-path:hover,
.page-home .guide-path:focus-within {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.page-home .guide-step {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--spring-green);
}

.page-home .guide-path .card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .guide-path p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 234, 217, .72);
}

.page-home .guide-path .btn {
  justify-self: start;
  margin-top: 4px;
}

/* ---------- 回访时段 ---------- */

.page-home .commute-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
}

.page-home .commute-media .media {
  aspect-ratio: 4 / 3;
}

.page-home .commute-beats {
  display: grid;
  gap: 18px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .commute-beat {
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--line-strong);
}

.page-home .commute-beat:nth-child(1) {
  border-left-color: var(--orange);
}

.page-home .commute-beat:nth-child(2) {
  border-left-color: var(--spring-green);
}

.page-home .commute-beat:nth-child(3) {
  border-left-color: var(--ice);
}

.page-home .beat-index {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--spring-yellow);
}

.page-home .commute-beat p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(242, 234, 217, .76);
}

.page-home .commute-foot {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(242, 234, 217, .76);
}

/* ---------- 节气收束 ---------- */

.page-home .season-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
}

.page-home .season-close-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .season-close-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}

.page-home .season-close::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 17, 22, .86), rgba(14, 17, 22, .94));
}

.page-home .season-close-inner {
  position: relative;
  z-index: 2;
}

.page-home .season-close .section-lead {
  max-width: 40em;
}

.page-home .season-segs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(22px, 3vw, 34px) 0 20px;
  border: 1px solid var(--line);
}

.page-home .season-seg {
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--ink);
}

.page-home .season-seg--spring {
  background: linear-gradient(135deg, var(--spring-green), var(--spring-yellow));
}

.page-home .season-seg--summer {
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.page-home .season-seg--autumn {
  background: linear-gradient(135deg, var(--amber), var(--ink-2));
  color: var(--cream);
}

.page-home .season-seg--winter {
  background: linear-gradient(135deg, var(--ice), var(--silver));
}

.page-home .season-seg.is-current {
  flex-grow: 2;
  font-weight: 700;
}

.page-home .season-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(14, 17, 22, .7);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.page-home .theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--season-accent);
  box-shadow: 0 0 0 3px var(--season-soft);
}

/* ---------- 响应式 ---------- */

@media (min-width: 600px) {
  .page-home .hero-under {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: end;
  }

  .page-home .phone-frame {
    margin-bottom: -12px;
  }

  .page-home .guide-paths,
  .page-home .h2h-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .hero-left {
    padding-top: 12px;
  }

  .page-home .league-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .commute-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .commute-media {
    position: sticky;
    top: 96px;
  }

  .page-home .h2h-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .h2h-card--a {
    grid-column: span 5;
    min-height: 300px;
  }

  .page-home .h2h-card--b {
    grid-column: span 4;
    min-height: 250px;
    margin-top: 28px;
  }

  .page-home .h2h-card--c {
    grid-column: span 3;
    min-height: 210px;
    margin-top: 56px;
  }

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

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

@media (min-width: 1000px) {
  .page-home .fixture-strip {
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .fixture-card,
  .page-home .fixture-item,
  .page-home .h2h-card,
  .page-home .guide-path,
  .page-home .text-link,
  .page-home .league-chips li,
  .page-home .theme-toggle {
    transition: none;
  }

  .page-home .fixture-card:hover,
  .page-home .fixture-card:focus-within,
  .page-home .fixture-item:hover,
  .page-home .fixture-item:focus-within,
  .page-home .h2h-card:hover,
  .page-home .h2h-card:focus-within,
  .page-home .guide-path:hover,
  .page-home .guide-path:focus-within {
    transform: none;
  }
}
