.page-home {
  --home-gutter: clamp(18px, 3.4vw, 40px);
  --home-block: clamp(64px, 8vw, 116px);
  --home-cut: 34px;
  display: block;
  color: var(--text);
}

/* ---------- 通用小节头部 ---------- */
.page-home .home-slate__index,
.page-home .home-pulse__index,
.page-home .home-keep__index,
.page-home .home-bigscreen__index,
.page-home .home-index__idx,
.page-home .home-local__idx,
.page-home .home-close__idx {
  margin: 0 0 10px;
  color: var(--pulse);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.page-home .section__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-home .home-slate__lede,
.page-home .home-pulse__lede,
.page-home .home-keep__lede,
.page-home .home-bigscreen__lede,
.page-home .home-index__lede,
.page-home .home-local__lede {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 52px) 0 clamp(46px, 6.5vw, 86px);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(115% 78% at 84% 14%, rgba(198, 255, 61, 0.13) 0%, transparent 54%),
    radial-gradient(95% 70% at 6% 96%, rgba(255, 122, 26, 0.11) 0%, transparent 58%);
  pointer-events: none;
}

.page-home .home-hero__shell {
  position: relative;
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.page-home .home-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

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

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(46px, 11.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--text);
}

.page-home .home-hero__title-em {
  color: var(--pulse);
  position: relative;
}

.page-home .home-hero__title-em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.06em;
  bottom: 0.06em;
  height: 6px;
  background: linear-gradient(90deg, var(--pulse), rgba(198, 255, 61, 0));
}

.page-home .home-hero__lede {
  margin: 0 0 26px;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  opacity: 0.88;
}

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

.page-home .home-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-hero__fact dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-home .home-hero__fact dd {
  margin: 0;
  color: var(--pulse);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), 0 100%);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.03);
}

.page-home .home-hero__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(198, 255, 61, 0), var(--pulse), rgba(198, 255, 61, 0));
  animation: home-scan 3.6s ease-in-out infinite;
  z-index: 2;
}

@keyframes home-scan {
  0% { left: 4%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 94%; opacity: 0; }
}

.page-home .home-hero__caption {
  display: block;
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-hero__side {
  position: absolute;
  top: clamp(26px, 4.5vw, 52px);
  right: 0;
  display: none;
}

/* ---------- 赛程 ---------- */
.page-home .home-slate {
  padding: var(--home-block) 0;
}

.page-home .home-slate__head {
  max-width: 60ch;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.page-home .home-slate__grid {
  display: grid;
  gap: 18px;
}

.page-home .home-slate__live {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-slate__match {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 0;
  font-size: clamp(30px, 6vw, 52px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.page-home .home-slate__num {
  color: var(--pulse);
  font-weight: 700;
}

.page-home .home-slate__colon {
  color: var(--line);
}

.page-home .home-slate__spark {
  width: 100%;
  height: 56px;
  color: var(--cyan);
  opacity: 0.9;
}

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

.page-home .home-slate__next-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  background: var(--ink-800);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .home-slate__next-item:hover {
  border-left-color: var(--pulse);
  transform: translateX(4px);
}

.page-home .home-slate__next-time {
  font-size: 17px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.page-home .home-slate__next-desc {
  font-size: 14px;
  color: var(--muted);
}

.page-home .home-slate__next-state {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--kick);
  white-space: nowrap;
}

/* ---------- 数据脉冲带 ---------- */
.page-home .home-pulse {
  padding: var(--home-block) 0;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0) 0%, var(--ink-800) 22%, var(--ink-800) 78%, rgba(13, 20, 36, 0) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-pulse__head {
  margin-bottom: clamp(22px, 3.4vw, 36px);
}

.page-home .home-pulse__rail {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 4px 0 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

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

.page-home .home-pulse__rail::-webkit-scrollbar-thumb {
  background: var(--line);
}

.page-home .home-pulse__item {
  flex: 0 0 min(300px, 76vw);
  scroll-snap-align: start;
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.page-home .home-pulse__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pulse), var(--cyan));
  opacity: 0.85;
}

.page-home .home-pulse__item:hover {
  border-color: var(--pulse);
}

.page-home .home-pulse__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.page-home .home-pulse__num {
  color: var(--text);
  font-weight: 700;
}

.page-home .home-pulse__sep {
  color: var(--line);
}

.page-home .home-pulse__event {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.page-home .home-pulse__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 收藏与提醒 ---------- */
.page-home .home-keep {
  padding: var(--home-block) 0;
}

.page-home .home-keep__grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

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

.page-home .home-keep__intro .btn {
  margin-top: 22px;
}

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

.page-home .home-keep__step {
  padding: 20px 20px 22px;
  border: 1px solid var(--line-soft);
  background: var(--ink-800);
  position: relative;
}

.page-home .home-keep__step:nth-child(2) {
  border-color: rgba(198, 255, 61, 0.4);
}

.page-home .home-keep__step-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pulse);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.page-home .home-keep__step-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

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

.page-home .home-keep__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.page-home .home-keep__chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-keep__chip.is-on {
  color: var(--ink-900);
  background: var(--kick);
  border-color: var(--kick);
  font-weight: 700;
}

/* ---------- 大屏观赛 ---------- */
.page-home .home-bigscreen {
  padding: var(--home-block) 0;
  background: var(--ink-800);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-bigscreen__grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}

.page-home .home-bigscreen__figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% var(--home-cut), 100% 100%, 0 calc(100% - var(--home-cut)));
  box-shadow: var(--shadow-soft);
}

.page-home .home-bigscreen__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(1.12);
}

.page-home .home-bigscreen__steps {
  display: grid;
  gap: 14px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .home-bigscreen__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-bigscreen__steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-bigscreen__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-900);
  background: var(--pulse);
  font-size: 13px;
  font-weight: 700;
}

.page-home .home-bigscreen__steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.88;
}

/* ---------- 排名与球队库 ---------- */
.page-home .home-index {
  padding: var(--home-block) 0;
}

.page-home .home-index__head {
  max-width: 60ch;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.page-home .home-index__split {
  display: grid;
  gap: 18px;
}

.page-home .home-index__card {
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .home-index__card:hover {
  border-color: var(--pulse);
  transform: translateY(-3px);
}

.page-home .home-index__card--rank {
  border-top: 3px solid var(--pulse);
}

.page-home .home-index__card--squad {
  border-top: 3px solid var(--cyan);
}

.page-home .home-index__label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-home .home-index__figure {
  margin: 0 0 6px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.page-home .home-index__card--rank .home-index__figure {
  color: var(--pulse);
}

.page-home .home-index__card--squad .home-index__figure {
  color: var(--cyan);
}

.page-home .home-index__card-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.page-home .home-index__card-body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .home-index__visual {
  margin: 0;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

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

/* ---------- 甘肃 ---------- */
.page-home .home-local {
  padding: var(--home-block) 0;
  position: relative;
}

.page-home .home-local__grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
}

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

.page-home .home-local__figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.85) 100%);
}

.page-home .home-local__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.page-home .home-local__tag {
  display: inline-block;
  margin-bottom: 14px;
}

.page-home .home-local__points {
  display: grid;
  gap: 16px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .home-local__points h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

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

/* ---------- 收尾 ---------- */
.page-home .home-close {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(120deg, rgba(198, 255, 61, 0.08) 0%, rgba(255, 122, 26, 0.06) 100%);
}

.page-home .home-close__inner {
  display: grid;
  gap: 22px;
}

.page-home .home-close__title {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 900;
}

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

/* ---------- 桌面布局 ---------- */
@media (min-width: 720px) {
  .page-home .home-slate__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-keep__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

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

  .page-home .home-keep__step:first-child {
    grid-column: 1 / -1;
  }

  .page-home .home-index__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "rank visual"
      "squad visual";
    align-items: stretch;
  }

  .page-home .home-index__card--rank { grid-area: rank; }
  .page-home .home-index__card--squad { grid-area: squad; }
  .page-home .home-index__visual { grid-area: visual; }

  .page-home .home-index__visual img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 260px;
  }

  .page-home .home-close__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: end;
  }

  .page-home .home-hero__side {
    display: block;
  }

  .page-home .home-bigscreen__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .home-local__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 520px) {
  .page-home .home-slate__next-item {
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }

  .page-home .home-slate__next-state {
    grid-column: 2;
  }

  .page-home .home-slate__match {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__scan {
    animation: none;
    opacity: 0;
  }

  .page-home .home-slate__next-item,
  .page-home .home-index__card {
    transition: none;
  }
}
