/* ============================================================
   首页 · 夜间记分牌
   所有选择器限定在 .page-home 作用域内
   ============================================================ */

.page-home {
  color: var(--paper);
  font-family: var(--font-body);
}

/* ---------------- 首屏封面 ---------------- */

.page-home .hero-cover {
  position: relative;
  padding-block: clamp(38px, 7vw, 84px) clamp(30px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(43, 240, 196, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 240, 196, .05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 62% 12%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 75% at 62% 12%, #000 18%, transparent 78%);
  pointer-events: none;
}

.page-home .hero-cover__head {
  position: relative;
  max-width: 30ch;
  margin-bottom: clamp(26px, 4.5vw, 52px);
}

.page-home .hero-cover__head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
}

.page-home .hero-cover__head .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.page-home .hero-cover .display {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .hero-cover__lead {
  margin-top: 20px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* 左侧时间轴 */

.page-home .hero-cover__rail {
  position: relative;
  padding: 20px 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 86%);
}

.page-home .rail-caption {
  display: block;
  margin: 0 0 14px;
  padding-left: 6px;
  color: var(--amber);
  letter-spacing: .16em;
  font-size: 11px;
}

.page-home .kickoff-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .kickoff {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 22px;
  border-radius: var(--r-sm);
  transition: background-color .18s var(--ease);
}

.page-home .kickoff::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rail);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}

.page-home .kickoff:hover,
.page-home .kickoff:focus-within {
  background: var(--ink-700);
}

.page-home .kickoff:hover::before,
.page-home .kickoff:focus-within::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(43, 240, 196, .18);
}

.page-home .kickoff--live::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 176, 58, .16);
}

.page-home .kickoff__time {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--mint-soft);
  letter-spacing: -.01em;
}

.page-home .kickoff--live .kickoff__time {
  color: var(--amber);
}

.page-home .kickoff__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .kickoff__league {
  font-size: 14px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .kickoff__note {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .kickoff .tag {
  font-size: 11px;
  padding: 3px 10px;
}

/* 右侧记分牌 */

.page-home .hero-cover__board {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rail);
  background: var(--ink-700);
}

.page-home .board-head__label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
}

.page-home .board-head__hint {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.page-home .board-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(14px, 4vw, 38px);
  padding: 24px 20px 8px;
}

.page-home .board-score__side {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .14em;
}

.page-home .board-score__num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -.03em;
}

.page-home .board-score__num i {
  font-style: normal;
  color: var(--mint);
  margin: 0 .08em;
}

.page-home .board-chart {
  position: relative;
  margin: 10px 12px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-900);
  aspect-ratio: 16 / 9;
}

.page-home .board-chart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  mix-blend-mode: screen;
}

.page-home .board-chart__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .board-chart__line circle {
  transition: transform .18s var(--ease), r .18s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.page-home .board-chart__line circle:hover {
  r: 7;
}

.page-home .board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 22px;
}

.page-home .board-stats {
  list-style: none;
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  margin: 0;
  padding: 0;
}

.page-home .board-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .board-stats .numeric {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint-soft);
  line-height: 1.1;
}

.page-home .board-stats span:last-child {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
}

/* ---------------- 控球率走势 ---------------- */

.page-home .home-possession {
  padding-block: clamp(46px, 7vw, 92px);
  border-top: 2px solid var(--mint);
}

.page-home .possession-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 52px);
  align-items: center;
}

.page-home .possession-copy .section-title {
  margin-top: 14px;
  max-width: 22ch;
}

.page-home .possession-copy > p {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .possession-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .possession-points li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.72;
  color: var(--paper);
}

.page-home .possession-points li::before {
  content: "";
  margin-top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(43, 240, 196, .12);
}

.page-home .possession-copy .btn {
  margin-top: 28px;
}

.page-home .possession-visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  overflow: hidden;
  background: var(--ink-800);
}

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

.page-home .possession-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--mint-soft);
  letter-spacing: .16em;
  font-size: 11px;
}

/* ---------------- 联赛专题目录 ---------------- */

.page-home .home-leagues {
  padding-block: clamp(46px, 7vw, 92px);
  background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 25, .75) 32%, transparent 100%);
}

.page-home .leagues-head {
  display: grid;
  gap: 14px;
  max-width: 46ch;
  margin-bottom: clamp(22px, 3.5vw, 38px);
}

.page-home .leagues-head .section-title {
  max-width: 24ch;
}

.page-home .leagues-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .leagues-figure {
  position: relative;
  margin: 0 0 clamp(20px, 3.5vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  overflow: hidden;
  background: var(--ink-800);
}

.page-home .leagues-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  max-width: 100%;
}

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

.page-home .league-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--rail);
  background: var(--ink-800);
  color: inherit;
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .league-card:hover,
.page-home .league-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--mint);
  background: var(--ink-700);
}

.page-home .league-card__mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .08em;
}

.page-home .league-card__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .league-card__meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .league-card__go {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mint);
}

/* ---------------- 新访客三步走 ---------------- */

.page-home .home-steps {
  padding-block: clamp(46px, 7vw, 92px);
}

.page-home .steps-head {
  display: grid;
  gap: 12px;
  max-width: 40ch;
  margin-bottom: clamp(22px, 3.5vw, 36px);
}

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

.page-home .step-item {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  overflow: hidden;
}

.page-home .step-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--mint);
}

.page-home .step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--mint);
  letter-spacing: -.03em;
  margin-bottom: 18px;
}

.page-home .step-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -.01em;
}

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

.page-home .steps-foot {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .steps-foot a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 240, 196, .4);
  padding-bottom: 1px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .steps-foot a:hover,
.page-home .steps-foot a:focus-visible {
  color: var(--mint-soft);
  border-bottom-color: var(--mint-soft);
}

/* ---------------- 老用户通道 ---------------- */

.page-home .home-legacy {
  padding-block: clamp(46px, 7vw, 92px);
}

.page-home .legacy-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border-color: var(--amber);
  background: linear-gradient(140deg, var(--ink-800), var(--ink-900) 62%);
  overflow: hidden;
}

.page-home .legacy-panel::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 58, .16), transparent 68%);
  pointer-events: none;
}

.page-home .legacy-copy {
  position: relative;
  z-index: 1;
}

.page-home .eyebrow--amber {
  color: var(--amber);
}

.page-home .eyebrow--amber::before {
  background: var(--mint);
}

.page-home .legacy-copy .section-title {
  margin-top: 14px;
  max-width: 20ch;
}

.page-home .legacy-copy > p {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

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

.page-home .legacy-notes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .legacy-note {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--rail);
  background: rgba(6, 17, 13, .6);
}

.page-home .legacy-note__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.page-home .legacy-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

/* ---------------- 多端与大屏 ---------------- */

.page-home .home-devices {
  padding-block: clamp(46px, 7vw, 92px) clamp(60px, 9vw, 120px);
  border-top: 2px solid var(--mint);
}

.page-home .devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 52px);
  align-items: center;
}

.page-home .devices-visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--rail);
  overflow: hidden;
  background: var(--ink-800);
}

.page-home .devices-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  max-width: 100%;
}

.page-home .devices-visual figcaption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: var(--amber);
  letter-spacing: .16em;
  font-size: 11px;
}

.page-home .devices-copy .section-title {
  margin-top: 14px;
  max-width: 20ch;
}

.page-home .devices-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .devices-list li {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--rail);
  background: var(--ink-800);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .devices-list li:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
}

.page-home .devices-list .tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
}

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

.page-home .devices-copy .btn {
  margin-top: 26px;
}

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

@media (min-width: 680px) {
  .page-home .hero-cover__head {
    max-width: 26ch;
  }

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

  .page-home .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-cover__grid {
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 24px;
  }

  .page-home .possession-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .page-home .devices-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-home .legacy-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

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

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

@media (min-width: 1200px) {
  .page-home .hero-cover__grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
  }

  .page-home .hero-cover__rail {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .kickoff,
  .page-home .kickoff::before,
  .page-home .league-card,
  .page-home .devices-list li,
  .page-home .board-chart__line circle,
  .page-home .steps-foot a {
    transition: none;
  }

  .page-home .kickoff:hover,
  .page-home .kickoff:focus-within,
  .page-home .league-card:hover,
  .page-home .league-card:focus-visible,
  .page-home .devices-list li:hover {
    transform: none;
  }

  .page-home .board-chart__line circle:hover {
    r: 4.5;
  }
}
