.page-home {
  display: block;
}

/* ============ HERO ============ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 7vw, 92px) 0 clamp(26px, 3.5vw, 46px);
  border-bottom: 1px solid var(--line);
}

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

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

.page-home .hero__glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 205deg at 80% 4%, rgba(243, 232, 91, 0.22), rgba(243, 232, 91, 0) 30%),
    repeating-linear-gradient(90deg, rgba(36, 64, 94, 0) 0 118px, rgba(36, 64, 94, 0.5) 118px 120px),
    repeating-linear-gradient(180deg, rgba(36, 64, 94, 0) 0 118px, rgba(36, 64, 94, 0.4) 118px 120px),
    linear-gradient(102deg, rgba(10, 26, 47, 0.96) 0%, rgba(10, 26, 47, 0.78) 44%, rgba(10, 26, 47, 0.92) 100%);
}

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

.page-home .hero__kicker {
  margin: 0 0 16px;
  color: var(--grass);
}

.page-home .hero__title {
  margin: 0 0 20px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 8.2vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__title span {
  color: var(--score);
}

.page-home .hero__lead {
  max-width: 56ch;
  margin: 0 0 26px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.84);
}

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

/* 倒计时 */
.page-home .countdown {
  margin-top: 30px;
  padding: 18px 20px 16px;
  background: rgba(18, 38, 60, 0.88);
  border-color: rgba(243, 232, 91, 0.35);
}

.page-home .countdown__label {
  margin: 0 0 10px;
  color: var(--muted);
}

.page-home .countdown__clock {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.page-home .countdown__clock i {
  font-style: normal;
  opacity: 0.55;
}

.page-home .countdown__meta {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.page-home .countdown__track {
  height: 4px;
  background: rgba(36, 64, 94, 0.85);
  overflow: hidden;
}

.page-home .countdown__track span {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--grass), var(--score));
}

.page-home .countdown__next {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 今晚三场 */
.page-home .hero__tonight {
  position: relative;
  z-index: 2;
  margin-top: clamp(30px, 4vw, 54px);
}

.page-home .tonight__head {
  margin: 0 0 12px;
  color: var(--muted);
}

.page-home .tonight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .tonight__item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.page-home .tonight__time {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.page-home .tonight__name {
  margin: 0;
  font-size: 0.98rem;
  color: var(--paper);
}

.page-home .tonight__venue {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-home .tonight__item .tag {
  justify-self: start;
  margin-top: 8px;
}

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

@media (min-width: 1024px) {
  .page-home .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
  }

  .page-home .countdown {
    margin-top: 4px;
  }
}

/* ============ 章节通用 ============ */
.page-home .chapter {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0;
  border-bottom: 1px solid rgba(36, 64, 94, 0.6);
}

.page-home .chapter:last-of-type {
  border-bottom: 0;
}

.page-home .sec-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.page-home .sec-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--grass);
  font-variant-numeric: tabular-nums;
  transition: color 200ms var(--ease);
}

.page-home .chapter[data-active] .sec-num {
  color: var(--sprout);
}

.page-home .sec-title {
  margin: 0 0 12px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .sec-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

@media (min-width: 900px) {
  .page-home .sec-head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
}

/* ============ 周末排期 ============ */
.page-home .weekend__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-home .weekend__body {
  display: grid;
  gap: 26px;
}

.page-home .sched {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .sched__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms var(--ease);
}

.page-home .sched__row:nth-child(odd) {
  background: rgba(18, 38, 60, 0.42);
}

.page-home .sched__row:hover {
  background: rgba(51, 178, 124, 0.1);
}

.page-home .sched__when {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .sched__day {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-home .sched__time {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.page-home .sched__name {
  font-size: 0.98rem;
  color: var(--paper);
}

.page-home .sched__venue {
  font-size: 0.84rem;
  color: var(--muted);
}

.page-home .sched__row .tag {
  justify-self: start;
  margin-top: 4px;
}

.page-home .weekend__aside {
  align-self: start;
}

.page-home .weekend__figure {
  margin: 0;
}

.page-home .weekend__caption {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 720px) {
  .page-home .sched__row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1.5fr) minmax(0, 1.1fr) 96px;
    align-items: center;
    gap: 14px;
  }

  .page-home .sched__row .tag {
    justify-self: end;
    margin-top: 0;
  }
}

@media (min-width: 1080px) {
  .page-home .weekend__body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
  }
}

/* ============ 名单与赔率 ============ */
.page-home .focus {
  display: grid;
  gap: 20px;
}

.page-home .focus__card {
  padding: clamp(16px, 2.4vw, 26px);
}

.page-home .focus__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-home .focus__match {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--paper);
}

.page-home .focus__round {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--grass);
}

.page-home .focus__meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.page-home .focus__body {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.page-home .xi {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.page-home .xi__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px dashed rgba(36, 64, 94, 0.85);
  font-size: 0.94rem;
}

.page-home .xi__no {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grass);
  font-variant-numeric: tabular-nums;
}

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

.page-home .xi__side {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-home .focus__sub {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .odds {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.page-home .odds__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .odds__label {
  font-size: 0.94rem;
  color: var(--paper);
}

.page-home .odds__val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--odds);
  font-variant-numeric: tabular-nums;
}

.page-home .odds__delta {
  min-width: 62px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--grass);
}

.page-home .odds__delta--down,
.page-home .odds__delta--flat {
  color: var(--muted);
}

.page-home .odds__note {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 820px) {
  .page-home .focus__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 30px;
  }

  .page-home .focus__col--odds {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
}

/* ============ 追分节奏 ============ */
.page-home .pacing__grid {
  display: grid;
  gap: 26px;
}

.page-home .pacing__figure {
  margin: 0;
}

.page-home .timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--grass), rgba(51, 178, 124, 0.12));
}

.page-home .timeline__stop {
  position: relative;
  padding: 0 0 22px;
}

.page-home .timeline__stop:last-child {
  padding-bottom: 0;
}

.page-home .timeline__stop::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--grass);
}

.page-home .timeline__stop--auto::before {
  background: var(--score);
  border-color: var(--score);
  box-shadow: 0 0 0 4px rgba(243, 232, 91, 0.18);
}

.page-home .timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--score);
  font-variant-numeric: tabular-nums;
}

.page-home .timeline__label {
  margin: 4px 0 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.82);
}

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

@media (min-width: 900px) {
  .page-home .pacing__grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }
}

/* ============ 本地覆盖 ============ */
.page-home .mapsec__banner {
  margin: 0 0 clamp(22px, 3vw, 34px);
}

.page-home .mapsec__grid {
  display: grid;
  gap: 26px;
}

.page-home .mapsec__fig {
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  background: linear-gradient(150deg, rgba(18, 38, 60, 0.92), rgba(10, 26, 47, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-paper);
}

.page-home .mapsec__svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.page-home .citylist__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 160ms var(--ease);
}

.page-home .citylist__item:hover {
  border-color: var(--grass);
}

.page-home .citylist__item b {
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .citylist__item span {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

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

@media (min-width: 960px) {
  .page-home .mapsec__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
  }
}

/* ============ 开始使用 ============ */
.page-home .start {
  padding-bottom: clamp(60px, 9vw, 132px);
}

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

.page-home .start__card {
  display: block;
  padding: clamp(18px, 2.6vw, 28px);
  text-decoration: none;
}

.page-home .start__card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--paper);
}

.page-home .start__card p {
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .start__go {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--odds);
}

.page-home .start__foot {
  margin: 26px 0 0;
  max-width: 78ch;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}

@media (min-width: 760px) {
  .page-home .start__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* ============ 右侧章节索引 ============ */
.page-home .side-index {
  display: none;
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.page-home .side-index__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.page-home .side-index__link::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 160ms var(--ease);
}

.page-home .side-index__link:hover,
.page-home .side-index__link:focus-visible {
  color: var(--grass);
}

.page-home .side-index__link:hover::after,
.page-home .side-index__link:focus-visible::after {
  width: 30px;
}

@media (min-width: 1340px) {
  .page-home .side-index {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .sched__row,
  .page-home .citylist__item,
  .page-home .side-index__link,
  .page-home .side-index__link::after,
  .page-home .sec-num {
    transition: none;
  }
}
