.page-home {
  --home-radius: 28px;
  --home-radius-sm: 16px;
  --home-line: rgba(30, 75, 122, .72);
  display: block;
  background: var(--midnight);
  color: var(--ice);
  overflow-x: clip;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  letter-spacing: -.01em;
  color: var(--ice);
}

.page-home p {
  margin: 0;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .lede {
  color: var(--ink-70);
  line-height: 1.78;
  font-size: clamp(15px, 1.05vw + 12px, 18px);
  max-width: 62ch;
}

/* ---------- 首屏 ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 13vw, 148px) clamp(72px, 10vw, 128px);
  overflow: hidden;
}

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

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: .46;
  filter: saturate(.9) contrast(1.06);
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 20, 40, .62) 0%, rgba(11, 30, 58, .86) 58%, var(--midnight) 100%),
    radial-gradient(78% 58% at 84% 8%, rgba(0, 229, 255, .2), transparent 62%),
    radial-gradient(58% 48% at 4% 94%, rgba(255, 107, 53, .16), transparent 64%);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(44px, 7vw, 104px);
  background: var(--abyss);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 229, 255, .34);
  border-radius: 999px;
  background: rgba(0, 229, 255, .07);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.home-hero__title {
  font-size: clamp(42px, 7.6vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.home-hero__title em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(100deg, var(--cyan) 0%, #7df1ff 42%, var(--signal) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__lede {
  margin-top: clamp(18px, 2.4vw, 26px);
}

.home-hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
}

.home-hero__mark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--home-line);
  background: linear-gradient(180deg, rgba(18, 48, 90, .78), rgba(6, 20, 40, .7));
}

.home-hero__mark .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--ice);
}

.home-hero__mark small {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: .08em;
}

.home-hero__mark:first-child {
  border-color: rgba(0, 229, 255, .58);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .12);
}

.home-hero__mark:nth-child(2) .num {
  color: var(--whistle);
}

.home-hero__mark:nth-child(3) .num {
  color: var(--signal);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.2vw, 38px);
}

.home-hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--panel);
  height: clamp(230px, 46vw, 400px);
}

.home-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 30, 58, 0) 40%, rgba(6, 20, 40, .92) 100%);
  pointer-events: none;
}

.home-hero__figure-cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-80);
  line-height: 1.5;
}

/* ---------- 三档时间轴 ---------- */
.home-windows {
  background: var(--abyss);
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid rgba(30, 75, 122, .38);
}

.home-windows__head {
  max-width: 780px;
}

.home-windows__tick {
  width: 100%;
  height: 24px;
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  display: block;
  color: var(--steel);
  overflow: visible;
}

.page-home .tick--a {
  fill: var(--cyan);
}

.page-home .tick--b {
  fill: var(--whistle);
}

.page-home .tick--c {
  fill: var(--signal);
}

.home-windows__jump {
  list-style: none;
  margin: clamp(14px, 1.8vw, 20px) 0 0;
  padding: 0;
}

.home-windows__jump a {
  text-decoration: none;
}

.home-windows__rail {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(26px, 3.4vw, 40px);
}

.window-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--home-radius);
  position: relative;
  overflow: hidden;
}

.window-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: .8;
}

.window-card__stamp {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.window-card h3 {
  font-size: clamp(19px, 1.4vw + 14px, 24px);
  line-height: 1.28;
}

.window-card > p {
  color: var(--ink-70);
  line-height: 1.76;
  font-size: 15px;
}

.window-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--mist);
}

.window-card__list li {
  position: relative;
  padding-left: 16px;
}

.window-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 2px;
  background: var(--cyan);
}

.window-card .btn {
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
}

.window-card#home-6h::before {
  background: linear-gradient(180deg, var(--signal), transparent);
}

.window-card#home-6h .window-card__stamp {
  color: var(--signal);
}

.window-card#home-24h::before {
  background: linear-gradient(180deg, var(--whistle), transparent);
}

.window-card#home-24h .window-card__stamp {
  color: var(--whistle);
}

.window-card#home-72h .window-card__list li::before,
.window-card#home-24h .window-card__list li::before,
.window-card#home-6h .window-card__list li::before {
  background: currentColor;
  opacity: .55;
}

.window-card#home-72h .window-card__list {
  color: var(--cyan);
}

.window-card#home-24h .window-card__list {
  color: var(--whistle);
}

.window-card#home-6h .window-card__list {
  color: var(--signal);
}

/* ---------- 焦点数据带 ---------- */
.home-scale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 100px);
  background: var(--midnight);
}

.home-scale__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
  pointer-events: none;
}

.home-scale__texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-scale__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(72% 62% at 12% 0%, rgba(0, 229, 255, .14), transparent 62%),
              linear-gradient(180deg, rgba(11, 30, 58, .72), rgba(11, 30, 58, .95));
}

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

.home-scale__head {
  max-width: 620px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.home-scale__grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.scale-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-sm);
  background: linear-gradient(160deg, rgba(18, 48, 90, .62), rgba(6, 20, 40, .5));
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.scale-item:hover {
  border-color: rgba(0, 229, 255, .62);
  transform: translateY(-2px);
}

.scale-item dt {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 700;
  min-width: 2.6ch;
}

.scale-item__plus {
  color: var(--signal);
  font-size: .72em;
  vertical-align: super;
}

.scale-item dd {
  margin: 0;
  display: grid;
  gap: 4px;
}

.scale-item__label {
  display: block;
  color: var(--ice);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.scale-item__note {
  display: block;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 四条主线 ---------- */
.home-routes {
  background: var(--abyss);
  padding-block: clamp(56px, 8vw, 100px);
  border-top: 1px solid rgba(30, 75, 122, .38);
}

.home-routes__grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(26px, 3.4vw, 40px);
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--home-radius);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.route-card:hover,
.route-card:focus-visible {
  border-color: rgba(0, 229, 255, .66);
  transform: translateY(-2px);
}

.route-card__label {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
  text-transform: none;
}

.route-card h3 {
  font-size: clamp(19px, 1.5vw + 14px, 26px);
  line-height: 1.26;
}

.route-card > p {
  color: var(--ink-70);
  line-height: 1.76;
  font-size: 15px;
}

.route-card__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 255, .4);
  align-self: flex-start;
}

.route-card--b .route-card__label,
.route-card--c .route-card__label {
  color: var(--whistle);
}

.route-card--b .route-card__go,
.route-card--c .route-card__go {
  color: var(--whistle);
  border-bottom-color: rgba(255, 209, 102, .42);
}

.route-card--d .route-card__label,
.route-card--d .route-card__go {
  color: var(--signal);
}

.route-card--d .route-card__go {
  border-bottom-color: rgba(255, 107, 53, .46);
}

/* ---------- 专题回溯带 ---------- */
.home-retrace {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--midnight);
}

.home-retrace__top {
  display: grid;
  gap: clamp(24px, 3.2vw, 40px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.home-retrace__head {
  max-width: 620px;
}

.home-retrace__head .btn {
  margin-top: clamp(18px, 2.2vw, 26px);
  text-decoration: none;
}

.home-retrace__figure {
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--home-line);
  height: clamp(180px, 34vw, 300px);
}

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

.home-retrace__track {
  list-style: none;
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: 0 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: clamp(12px, 1.8vw, 18px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.home-retrace__track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

.retrace-item {
  scroll-snap-align: start;
  position: relative;
  padding: 22px 20px 24px;
  border-radius: var(--home-radius-sm);
  border: 1px solid var(--home-line);
  background: linear-gradient(180deg, rgba(18, 48, 90, .58), rgba(6, 20, 40, .62));
  display: grid;
  gap: 10px;
  align-content: start;
}

.retrace-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 34px;
  height: 3px;
  background: var(--cyan);
}

.retrace-item:nth-child(2)::before {
  background: var(--judge);
}

.retrace-item:nth-child(3)::before {
  background: var(--whistle);
}

.retrace-item:nth-child(4)::before {
  background: var(--signal);
}

.retrace-item__stamp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mist);
}

.retrace-item h3 {
  font-size: 19px;
  line-height: 1.3;
}

.retrace-item p {
  color: var(--ink-70);
  font-size: 14.5px;
  line-height: 1.72;
}

/* ---------- 赛前节奏提示条 ---------- */
.home-beat {
  background: var(--abyss);
  padding-block: clamp(52px, 7vw, 88px);
  border-top: 1px solid rgba(30, 75, 122, .38);
}

.home-beat__bar {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--home-radius);
  border: 1px solid var(--home-line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0, 229, 255, .12), transparent 58%),
    radial-gradient(70% 100% at 0% 100%, rgba(255, 107, 53, .14), transparent 60%),
    linear-gradient(160deg, rgba(18, 48, 90, .74), rgba(6, 20, 40, .82));
}

.home-beat__lead h2 {
  font-size: clamp(24px, 2.2vw + 16px, 36px);
  line-height: 1.18;
  margin-top: 10px;
}

.home-beat__lead p {
  margin-top: 12px;
  color: var(--ink-70);
  line-height: 1.76;
  font-size: 15px;
  max-width: 54ch;
}

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

.home-beat__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--home-radius-sm);
  border: 1px solid rgba(30, 75, 122, .62);
  background: rgba(6, 20, 40, .42);
}

.home-beat__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.home-beat__unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}

.home-beat__text {
  flex: 1 1 180px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-80);
}

.home-beat__list li:nth-child(2) .home-beat__num,
.home-beat__list li:nth-child(2) .home-beat__unit {
  color: var(--whistle);
}

.home-beat__list li:nth-child(3) .home-beat__num,
.home-beat__list li:nth-child(3) .home-beat__unit {
  color: var(--signal);
}

.home-beat__foot {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--mist);
  line-height: 1.7;
  padding-top: 4px;
  border-top: 1px solid rgba(30, 75, 122, .44);
  margin-top: 4px;
}

.home-beat__foot a {
  color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .home-scale__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-retrace__track {
    grid-auto-columns: minmax(260px, 46%);
  }
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr);
    align-items: center;
  }

  .home-hero__figure {
    height: clamp(320px, 36vw, 440px);
  }

  .home-windows__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .home-retrace__top {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  }

  .home-beat__bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .home-beat__lead {
    grid-row: span 2;
  }
}

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

  .home-routes__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .route-card--a {
    grid-column: span 7;
  }

  .route-card--b {
    grid-column: span 5;
  }

  .route-card--c {
    grid-column: span 5;
  }

  .route-card--d {
    grid-column: span 7;
  }

  .home-retrace__track {
    grid-auto-columns: minmax(280px, 31%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .scale-item,
  .page-home .route-card {
    transition: none;
  }

  .page-home .scale-item:hover,
  .page-home .route-card:hover,
  .page-home .route-card:focus-visible {
    transform: none;
  }
}
