.page-home {
  --home-rail: 196px;
  --home-gap: clamp(1.25rem, 3vw, 2.75rem);
  --home-pad: clamp(1.25rem, 3.4vw, 2.5rem);
  background: var(--night);
  color: var(--paper);
  overflow-x: clip;
}

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

.page-home .hero {
  position: relative;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--gutter) clamp(2.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: var(--home-rail) minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .hero__rail {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.page-home .hero__rail-rule {
  width: 2px;
  height: clamp(64px, 11vw, 118px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), rgba(31, 107, 255, 0));
}

.page-home .hero__rail-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  line-height: 1.2;
  color: var(--muted);
}

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

.page-home .hero__title {
  margin-top: 0.85rem;
  max-width: 21ch;
  font-size: clamp(2rem, 5.4vw, 4.05rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__lead {
  margin-top: 1.15rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.75;
  color: var(--silver);
}

.page-home .hero__switch {
  margin-top: 1.6rem;
}

/* ---------- 比分牌 ---------- */

.page-home .scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.page-home .score {
  position: relative;
  padding: 1.05rem 1.15rem 1.2rem;
  background:
    linear-gradient(150deg, rgba(31, 107, 255, 0.16), rgba(31, 107, 255, 0) 48%),
    linear-gradient(160deg, var(--turf-soft), var(--night-deep));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.page-home .score:hover {
  transform: translateY(-4px);
  filter: brightness(1.07);
}

.page-home .score__summary {
  display: grid;
  gap: 0.7rem;
  cursor: pointer;
  list-style: none;
}

.page-home .score__summary::-webkit-details-marker {
  display: none;
}

.page-home .score__summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.page-home .score__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-home .score__round {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.page-home .score__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
}

.page-home .score__team {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .score__team--home {
  text-align: right;
}

.page-home .score__num {
  font-family: var(--font-num);
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--orange);
}

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

.page-home .score__foot {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.page-home .score__more {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--hair-strong);
}

.page-home .score__more p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .hero__media {
  position: relative;
  margin: 2.25rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--turf), var(--night-deep));
}

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

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 46, 33, 0) 46%, rgba(8, 34, 25, 0.78));
}

/* ---------- 轮次时间轴 ---------- */

.page-home .rounds__top {
  align-items: end;
}

.page-home .rounds__head {
  max-width: 32rem;
}

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

.page-home .timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-bottom: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-home .timeline__item {
  scroll-snap-align: start;
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hair);
  background: rgba(16, 22, 26, 0.32);
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 0;
  width: 2px;
  height: 26px;
  border-radius: 999px;
  background: var(--blue);
}

.page-home .timeline__item--now {
  border-color: rgba(255, 122, 33, 0.45);
  background: linear-gradient(160deg, rgba(255, 122, 33, 0.16), rgba(16, 22, 26, 0.4));
}

.page-home .timeline__item--now::before {
  background: var(--orange);
}

.page-home .timeline__round {
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .timeline__state {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-home .timeline__note {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--silver);
}

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

/* ---------- 球队徽章矩阵 ---------- */

.page-home .badges__head {
  max-width: 40rem;
}

.page-home .badges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.page-home .badge {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 46, 33, 0.05);
  border: 1px solid rgba(11, 46, 33, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .badge:hover {
  transform: translateY(-3px);
  background: rgba(11, 46, 33, 0.09);
}

.page-home .badge__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--turf), var(--night));
  color: var(--paper);
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px rgba(200, 242, 76, 0.3);
}

.page-home .badge__name {
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.page-home .badges__count {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(16, 22, 26, 0.66);
}

.page-home .badges__count span {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .badges__cta {
  margin-top: 1.75rem;
}

/* ---------- 赛后复盘 ---------- */

.page-home .reviews__head {
  max-width: 40rem;
}

.page-home .reviews__media {
  margin: 2rem 0 0;
}

.page-home .reviews__grid {
  margin-top: 1.75rem;
}

.page-home .review {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.4rem 1.3rem 1.55rem;
}

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

.page-home .review__headline {
  margin-top: 0.6rem;
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--paper);
}

.page-home .review__hint {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .review__metrics {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
}

.page-home .metric {
  display: grid;
  grid-template-columns: 4.3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--silver);
}

.page-home .metric__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 237, 223, 0.13);
  overflow: hidden;
}

.page-home .metric__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
}

.page-home .metric__value {
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  color: var(--lime);
}

.page-home .reviews__more {
  margin-top: 2rem;
}

/* ---------- 移动端 ---------- */

.page-home .mobile-look {
  background:
    radial-gradient(120% 100% at 6% 0%, rgba(31, 107, 255, 0.3), rgba(31, 107, 255, 0) 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 122, 33, 0.18), rgba(255, 122, 33, 0) 62%),
    var(--night-deep);
}

.page-home .mobile-look__copy {
  min-width: 0;
}

.page-home .mobile-look__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.page-home .mobile-look__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--silver);
}

.page-home .mobile-look__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--lime);
  transform: rotate(45deg);
}

.page-home .mobile-look__cta {
  margin-top: 1.9rem;
}

.page-home .mobile-look__media {
  margin: 0;
}

/* ---------- 常见入口 ---------- */

.page-home .entry__head {
  max-width: 38rem;
}

.page-home .entry__grid {
  margin-top: 1.9rem;
}

.page-home .entry__card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: var(--home-pad);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 46, 33, 0.14);
  background: rgba(11, 46, 33, 0.05);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.page-home .entry__card:hover {
  transform: translateY(-4px);
  background: rgba(11, 46, 33, 0.09);
  box-shadow: var(--shadow-1);
}

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

.page-home .entry__card h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.32;
  color: var(--ink);
}

.page-home .entry__card p {
  font-size: 0.95rem;
  line-height: 1.78;
  color: rgba(16, 22, 26, 0.74);
}

.page-home .entry__go {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-deep);
}

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

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

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

  .page-home .hero__title {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .page-home .mobile-look__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .mobile-look__media {
    order: -1;
    margin-bottom: 1.75rem;
  }

  .page-home .rounds__top {
    align-items: start;
  }
}

@media (max-width: 600px) {
  .page-home .scores {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .timeline {
    grid-auto-columns: minmax(76%, 1fr);
  }

  .page-home .badges__grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.7rem;
  }

  .page-home .badge__mark {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
  }

  .page-home .metric {
    grid-template-columns: 3.9rem minmax(0, 1fr) 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .score,
  .page-home .badge,
  .page-home .entry__card {
    transition: none;
  }

  .page-home .score:hover,
  .page-home .badge:hover,
  .page-home .entry__card:hover {
    transform: none;
  }
}
