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

/* ===== 封面首屏 ===== */
.page-home .hero {
  position: relative;
  min-height: 92svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 60px;
  overflow: hidden;
  isolation: isolate;
}

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

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.58;
  filter: saturate(1.05) contrast(1.06);
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 12% 88%, rgba(226, 49, 74, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(11, 27, 43, 0.55) 0%, rgba(11, 27, 43, 0.72) 52%, var(--night) 100%);
}

.page-home .hero__waveform {
  position: absolute;
  right: -4%;
  bottom: 8%;
  width: min(620px, 78%);
  height: auto;
  aspect-ratio: 5 / 1;
  color: var(--heart);
  opacity: 0.42;
  z-index: -1;
  pointer-events: none;
}

.page-home .hero__waveform path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: home-wave 6s linear infinite;
}

@keyframes home-wave {
  0% { stroke-dashoffset: 1400; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1400; }
}

.page-home .hero__kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--stand);
  text-transform: uppercase;
}

.page-home .hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(7, 19, 32, 0.6);
}

.page-home .hero__lead {
  margin: 0;
  max-width: 30em;
  font-size: clamp(15px, 3.6vw, 18px);
  line-height: 1.75;
  color: var(--fog);
}

.page-home .hero__pills {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 斜切数据带 ===== */
.page-home .slant {
  position: relative;
  margin-top: -34px;
  padding: 46px 0 18px;
  background: linear-gradient(96deg, var(--heart) 0%, var(--stand) 58%, var(--heart) 100%);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.page-home .slant__text {
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--night-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

/* ===== 章节舞台 ===== */
.page-home .stage {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.page-home .rail {
  display: none;
}

.page-home .stage__body {
  min-width: 0;
}

@media (min-width: 1000px) {
  .page-home .stage {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 44px;
    align-items: start;
  }

  .page-home .rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: calc(var(--header-h) + 30px);
    padding: 72px 0 0;
  }

  .page-home .rail__label {
    margin-bottom: 12px;
    padding-left: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--fog);
    opacity: 0.6;
  }

  .page-home .rail__link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    color: var(--fog);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease);
  }

  .page-home .rail__link i {
    font-family: var(--font-num);
    font-style: normal;
    font-size: 11px;
    opacity: 0.62;
  }

  .page-home .rail__link:hover {
    color: var(--cream);
    background: rgba(245, 241, 232, 0.07);
  }

  .page-home .rail__link.is-active {
    color: var(--lime);
    border-left-color: var(--heart);
    background: rgba(226, 49, 74, 0.12);
  }
}

/* ===== 章节通用 ===== */
.page-home .chapter {
  padding: 62px 0;
  border-top: 1px solid rgba(201, 210, 218, 0.14);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-home .chapter:first-child {
  border-top: 0;
}

.page-home .chapter__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
}

.page-home .chapter__num {
  flex: none;
  padding-top: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stand);
}

.page-home .chapter__heading {
  min-width: 0;
}

.page-home .chapter__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 5.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-home .chapter__sub {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog);
}

/* ===== 01 比分牌 ===== */
.page-home .snap {
  display: grid;
  gap: 14px;
}

.page-home .snap__cell {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 210, 218, 0.16);
  background: linear-gradient(160deg, var(--night-soft), var(--night-deep));
}

.page-home .snap__cell::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -70px;
  height: 130px;
  background: radial-gradient(ellipse at center, rgba(226, 49, 74, 0.34), transparent 70%);
  pointer-events: none;
}

.page-home .snap__cell .score {
  position: relative;
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.page-home .snap__unit {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--stand);
}

.page-home .snap__note {
  position: relative;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fog);
}

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

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

/* ===== 02 栏目画板 ===== */
.page-home .panels {
  display: grid;
  gap: 16px;
}

.page-home .panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 210, 218, 0.14);
  background: var(--night-soft);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.page-home .panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: var(--pill);
  background: var(--heart);
}

.page-home .panel--news::after { background: var(--heart); }
.page-home .panel--biz::after { background: var(--stand); }
.page-home .panel--history::after { background: var(--lime); }
.page-home .panel--help::after { background: var(--grass); }
.page-home .panel--contact::after { background: var(--fog); }

.page-home a.panel:hover,
.page-home a.panel:focus-visible {
  transform: translateY(-4px);
  border-color: var(--stand);
  background: #16324a;
}

.page-home .panel__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stand);
}

.page-home .panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--cream);
}

.page-home .panel__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--fog);
}

.page-home .panel__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--lime);
}

.page-home .panel--feature {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--night-deep);
}

.page-home .panel--feature::after {
  display: none;
}

.page-home .panel--feature .panel__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  overflow: hidden;
}

.page-home .panel--feature .panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .panel--feature .panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0) 34%, rgba(11, 27, 43, 0.94) 100%);
}

.page-home .panel__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 22px 24px;
}

@media (min-width: 900px) {
  .page-home .panels {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .panel--feature {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    min-height: 380px;
  }

  .page-home .panel--news {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
  }

  .page-home .panel--biz {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
  }

  .page-home .panel--history {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
  }

  .page-home .panel--help {
    grid-column: 5 / 9;
    grid-row: 3 / 4;
  }

  .page-home .panel--contact {
    grid-column: 9 / 13;
    grid-row: 3 / 4;
  }
}

/* ===== 03 主客场数据 ===== */
.page-home .datagrid {
  display: grid;
  gap: 18px;
}

.page-home .bars-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 255, 61, 0.18);
  background: linear-gradient(155deg, rgba(31, 138, 87, 0.24), rgba(11, 27, 43, 0.94) 66%);
}

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

.page-home .bars__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.page-home .bars__name {
  font-size: 13px;
  color: var(--cream);
}

.page-home .bars__pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .bars__bar {
  display: block;
  height: 9px;
  border-radius: var(--pill);
}

.page-home .bars__bar--home {
  background: linear-gradient(90deg, var(--heart), var(--stand));
}

.page-home .bars__bar--away {
  background: linear-gradient(90deg, rgba(201, 210, 218, 0.52), rgba(201, 210, 218, 0.16));
}

.page-home .bars__row:nth-child(1) .bars__bar--home { width: 88%; }
.page-home .bars__row:nth-child(1) .bars__bar--away { width: 56%; }
.page-home .bars__row:nth-child(2) .bars__bar--home { width: 44%; }
.page-home .bars__row:nth-child(2) .bars__bar--away { width: 79%; }
.page-home .bars__row:nth-child(3) .bars__bar--home { width: 82%; }
.page-home .bars__row:nth-child(3) .bars__bar--away { width: 61%; }
.page-home .bars__row:nth-child(4) .bars__bar--home { width: 73%; }
.page-home .bars__row:nth-child(4) .bars__bar--away { width: 48%; }

.page-home .bars__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--fog);
}

.page-home .bars__key {
  width: 16px;
  height: 6px;
  border-radius: var(--pill);
  display: inline-block;
}

.page-home .bars__key--home {
  background: linear-gradient(90deg, var(--heart), var(--stand));
}

.page-home .bars__key--away {
  margin-left: 8px;
  background: rgba(201, 210, 218, 0.45);
}

.page-home .bars__read {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--cream);
}

.page-home .datagrid__art {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-deep);
  min-height: 240px;
}

.page-home .datagrid__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .datagrid__art figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(11, 27, 43, 0), rgba(11, 27, 43, 0.92));
}

@media (min-width: 860px) {
  .page-home .datagrid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: stretch;
  }
}

/* ===== 04 视频集锦 ===== */
.page-home .reel {
  display: grid;
  gap: 22px;
}

.page-home .reel__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--night-deep);
}

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

.page-home .reel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0) 55%, rgba(11, 27, 43, 0.72) 100%);
  pointer-events: none;
}

.page-home .reel__media .media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(198, 255, 61, 0.45);
  background: rgba(11, 27, 43, 0.8);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.page-home .reel__body .t-card {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 4.4vw, 28px);
  line-height: 1.28;
  color: var(--cream);
}

.page-home .reel__body p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--fog);
}

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

.page-home .reel__facts li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(201, 210, 218, 0.12);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fog);
}

.page-home .reel__facts b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--lime);
}

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

@media (min-width: 820px) {
  .page-home .reel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
  }
}

/* ===== 05 城市看台 ===== */
.page-home .cities {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--heart) rgba(201, 210, 218, 0.14);
  -webkit-overflow-scrolling: touch;
}

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

.page-home .cities::-webkit-scrollbar-thumb {
  background: var(--heart);
  border-radius: var(--pill);
}

.page-home .cities::-webkit-scrollbar-track {
  background: rgba(201, 210, 218, 0.14);
  border-radius: var(--pill);
}

.page-home .city {
  flex: 0 0 min(272px, 78%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 241, 232, 0.16);
  background: linear-gradient(168deg, var(--indigo), var(--wine));
  color: var(--cream);
}

.page-home .city__tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: rgba(198, 255, 61, 0.16);
  border: 1px solid rgba(198, 255, 61, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-home .city__name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--cream);
}

.page-home .city__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(245, 241, 232, 0.82);
}

.page-home .city__meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.6);
}

.page-home .cities__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--fog);
  opacity: 0.7;
}

@media (min-width: 860px) {
  .page-home .city {
    flex: 0 0 300px;
  }
}

/* ===== 06 服务台 ===== */
.page-home .assist {
  display: grid;
  gap: 16px;
}

.page-home .assist__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 210, 218, 0.16);
  background: rgba(245, 241, 232, 0.05);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.page-home .assist__card:hover,
.page-home .assist__card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--heart);
  background: rgba(226, 49, 74, 0.1);
}

.page-home .assist__tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: rgba(226, 49, 74, 0.18);
  border: 1px solid rgba(226, 49, 74, 0.48);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.page-home .assist__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.32;
  color: var(--cream);
}

.page-home .assist__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--fog);
}

.page-home .assist__go {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--lime);
}

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

/* ===== 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__waveform path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .panel,
  .page-home .assist__card,
  .page-home .rail__link {
    transition: none;
  }

  .page-home a.panel:hover,
  .page-home .assist__card:hover {
    transform: none;
  }
}
