.page-home {
  --home-panel: linear-gradient(160deg, rgba(24, 39, 71, 0.68) 0%, rgba(5, 10, 24, 0.92) 100%);
  --home-panel-soft: linear-gradient(180deg, rgba(12, 21, 48, 0.9) 0%, rgba(5, 10, 24, 0.7) 100%);
  --home-rail: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

/* ---------- 页面通用 ---------- */

.page-home .section {
  position: relative;
  padding: 56px 0;
}

.page-home .section__head {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-home .section__head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin: 10px 0 14px;
}

.page-home .section__head .lede {
  color: var(--cloud-soft);
  font-size: var(--step-5);
  line-height: 1.78;
  margin: 0;
}

.page-home .panel {
  background: var(--home-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.page-home .panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.page-home .section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step-6);
  letter-spacing: 0.16em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.page-home__crumbs {
  margin-top: 18px;
}

/* ---------- 01 首屏拼贴 ---------- */

.page-home .section.home-hero {
  overflow: hidden;
  padding: 24px 0 64px;
}

.page-home .home-hero__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 10% 0%, rgba(5, 10, 24, 0) 0%, rgba(5, 10, 24, 0.82) 58%, var(--ink-950) 100%),
    linear-gradient(198deg, rgba(244, 169, 58, 0.08) 0%, rgba(5, 10, 24, 0) 46%);
}

.page-home .home-hero__beam {
  position: absolute;
  top: -12%;
  left: -6%;
  width: 112%;
  height: 124%;
  z-index: 0;
  opacity: 0.68;
  pointer-events: none;
  animation: home-breathe 8s ease-in-out infinite;
}

@keyframes home-breathe {
  0%, 100% { opacity: 0.64; }
  50% { opacity: 0.7; }
}

.page-home .hero-collage {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.page-home .home-hero .panel {
  padding: 22px;
  backdrop-filter: blur(2px);
}

.page-home .home-hero__lead {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  padding: 30px 24px 56px;
  background: linear-gradient(155deg, rgba(24, 39, 71, 0.82) 0%, rgba(5, 10, 24, 0.94) 100%);
}

.page-home .home-hero__lead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin: 12px 0 18px;
}

.page-home .home-hero__lead .lede {
  max-width: 44ch;
  margin: 0 0 26px;
  color: var(--cloud-soft);
  font-size: var(--step-5);
  line-height: 1.78;
}

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

.page-home .home-hero__spot-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5.4vw, 2.7rem);
  line-height: 1;
  color: var(--dawn);
  margin: 10px 0 8px;
}

.page-home .home-hero__spot-label {
  margin: 0;
  font-size: var(--step-6);
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-hero__big {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 6.4vw, 3.6rem);
  line-height: 1;
  color: var(--cloud);
  margin: 10px 0 6px;
}

.page-home .home-hero__big-label {
  margin: 0;
  font-size: var(--step-5);
  color: var(--cloud-soft);
}

.page-home .home-hero__note {
  margin: 8px 0 0;
  font-size: var(--step-6);
  color: var(--mist);
}

.page-home .home-hero__track {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 22px 58px 22px 22px;
  text-decoration: none;
  color: var(--cloud);
}

.page-home .home-hero__track-text {
  font-size: var(--step-5);
  line-height: 1.7;
  color: var(--cloud-soft);
  max-width: 62ch;
}

.page-home .home-hero__track-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--step-3);
  color: var(--dawn);
  transition: transform 320ms var(--ease);
}

.page-home .home-hero__track:hover .home-hero__track-arrow {
  transform: translate(4px, -50%);
}

@media (min-width: 880px) {
  .page-home .hero-collage {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    grid-template-areas:
      "lead spot"
      "lead today"
      "track track";
    align-items: stretch;
  }

  .page-home .home-hero__lead { grid-area: lead; }
  .page-home .home-hero__spot { grid-area: spot; }
  .page-home .home-hero__today { grid-area: today; }
  .page-home .home-hero__track { grid-area: track; }
}

/* ---------- 02 赛事日历 ---------- */

.page-home .home-calendar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-rail);
}

.page-home .home-calendar__row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 6px;
  border-bottom: var(--home-rail);
}

.page-home .home-calendar__row:hover {
  background: rgba(24, 39, 71, 0.4);
}

.page-home .home-calendar__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-4);
  color: var(--dawn);
}

.page-home .home-calendar__sport {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: var(--step-4);
  color: var(--cloud);
  font-weight: 500;
}

.page-home .home-calendar__stage {
  font-size: var(--step-6);
  color: var(--mist);
  letter-spacing: 0.06em;
}

.page-home .home-calendar__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-5);
  color: var(--cloud-soft);
}

.page-home .home-calendar__aside {
  margin-top: 24px;
}

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

.page-home .home-calendar__figure img,
.page-home .home-follow__figure img,
.page-home .home-rank__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.page-home .home-calendar__week-title {
  margin: 40px 0 14px;
}

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

.page-home .home-week__day {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
  border: var(--home-rail);
  border-radius: var(--radius);
  background: var(--home-panel-soft);
}

.page-home .home-week__day--peak {
  border-color: rgba(244, 169, 58, 0.42);
}

.page-home .home-week__track {
  display: flex;
  align-items: flex-end;
  height: 58px;
}

.page-home .home-week__bar {
  display: block;
  width: 8px;
  height: var(--h, 40%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--dawn) 0%, rgba(244, 169, 58, 0.18) 100%);
}

.page-home .home-week__day--peak .home-week__bar {
  background: linear-gradient(180deg, var(--arena) 0%, rgba(226, 74, 63, 0.2) 100%);
}

.page-home .home-week__name {
  font-size: var(--step-6);
  color: var(--mist);
  letter-spacing: 0.06em;
}

.page-home .home-week__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-5);
  color: var(--cloud);
}

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

@media (min-width: 880px) {
  .page-home .home-calendar__aside {
    margin-top: 0;
    padding-left: 24px;
  }
}

/* ---------- 03 两条通道 ---------- */

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

.page-home .home-lane {
  padding: 26px 24px;
}

.page-home .home-lane__title,
.page-home .home-rank__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.3;
  color: var(--cloud);
  margin: 0 0 14px;
}

.page-home .home-lane__text {
  margin: 0 0 20px;
  color: var(--cloud-soft);
  font-size: var(--step-5);
  line-height: 1.78;
}

.page-home .home-lane__chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-lane__meta {
  margin: 0 0 22px;
  font-size: var(--step-6);
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-rank {
  padding: 22px;
}

.page-home .home-rank__figure {
  margin: 0 0 20px;
}

.page-home .home-rank__figure img {
  aspect-ratio: 3 / 2;
}

.page-home .home-rank__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-rank__list li {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: var(--home-rail);
  border-radius: var(--radius);
  background: rgba(5, 10, 24, 0.55);
}

.page-home .home-rank__pos {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-5);
  color: var(--mist);
}

.page-home .home-rank__trend {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-6);
  color: var(--mist);
}

.page-home .home-rank__trend--up { color: var(--polar); }
.page-home .home-rank__trend--down { color: var(--arena); }

.page-home .home-rank__score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-4);
  color: var(--cloud);
}

.page-home .home-rank__form {
  font-size: var(--step-6);
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-rank__hint {
  margin: 18px 0 20px;
  font-size: var(--step-6);
  line-height: 1.7;
  color: var(--mist);
}

@media (max-width: 620px) {
  .page-home .home-rank__list li {
    grid-template-columns: 34px 42px minmax(0, 1fr);
  }

  .page-home .home-rank__form {
    grid-column: 3 / -1;
    white-space: normal;
  }
}

/* ---------- 04 关注列表 ---------- */

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

.page-home .home-follow__figure img {
  aspect-ratio: 4 / 3;
}

.page-home .home-follow__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .home-follow__row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: var(--home-rail);
  border-radius: var(--radius);
  background: var(--home-panel-soft);
}

.page-home .home-follow__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-5);
  color: var(--dawn);
}

.page-home .home-follow__name {
  font-size: var(--step-5);
  color: var(--cloud);
}

.page-home .home-follow__state {
  font-family: var(--font-mono);
  font-size: var(--step-6);
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-follow__state--done { color: var(--data); }
.page-home .home-follow__state--live { color: var(--arena); }

.page-home .home-follow__note {
  margin: 0 0 22px;
  font-size: var(--step-5);
  line-height: 1.78;
  color: var(--cloud-soft);
}

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

  .page-home .home-follow__state {
    grid-column: 2 / -1;
  }
}

/* ---------- 05 版本条 ---------- */

.page-home .home-versions__strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: var(--home-rail);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-versions__item {
  background: rgba(12, 21, 48, 0.9);
  padding: 22px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-home .home-versions__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-3);
  color: var(--cloud);
  margin: 0;
}

.page-home .home-versions__label {
  margin: 0;
  font-size: var(--step-6);
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-versions__foot {
  margin: 22px 0 0;
  font-size: var(--step-5);
  line-height: 1.78;
  color: var(--cloud-soft);
}

.page-home .home-versions__link {
  color: var(--dawn);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 169, 58, 0.4);
  margin-left: 6px;
}

.page-home .home-versions__link:hover {
  border-bottom-color: var(--dawn);
}

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

/* ---------- 06 数据规模 ---------- */

.page-home .home-scale__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .home-scale__item {
  padding: 24px 22px;
}

.page-home .home-scale__item .stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.4vw, 2.6rem);
  line-height: 1;
  margin: 0 0 8px;
}

.page-home .home-scale__item .stat__label {
  margin: 0;
  font-size: var(--step-4);
  color: var(--cloud);
}

.page-home .home-scale__note {
  margin: 14px 0 0;
  font-size: var(--step-6);
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-scale__foot {
  margin: 28px 0 0;
  font-size: var(--step-5);
  line-height: 1.78;
  color: var(--cloud-soft);
}

.page-home .home-scale__foot a {
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 141, 245, 0.38);
}

.page-home .home-scale__foot a:hover {
  border-bottom-color: var(--data);
}

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

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

/* ---------- 收尾 ---------- */

.page-home .home-closing {
  padding: 72px 0 120px;
  position: relative;
}

.page-home .home-closing::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 169, 58, 0.42), rgba(244, 169, 58, 0) 62%);
}

.page-home .home-closing h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin: 12px 0 16px;
  max-width: 22ch;
}

.page-home .home-closing__text {
  max-width: 52ch;
  margin: 0 0 26px;
  font-size: var(--step-5);
  line-height: 1.78;
  color: var(--cloud-soft);
}

/* ---------- 动效降级 ---------- */

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

  .page-home .panel,
  .page-home .home-hero__track-arrow {
    transition: none;
  }

  .page-home .panel:hover,
  .page-home .home-hero__track:hover .home-hero__track-arrow {
    transform: none;
  }
}

.page-home {
  --h: 1rem;
}
