/* ============ 首页 page-home ============ */

.page-home {
  --home-bleed: clamp(1rem, 3vw, 2.5rem);
  --home-radius: var(--r-lg);
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 18vh, 10rem) 0 clamp(3rem, 8vw, 5.5rem);
  background: var(--ink);
  isolation: isolate;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-grid {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  color: var(--line);
  opacity: .55;
}

.page-home .hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.page-home .hero-glow--a {
  width: clamp(16rem, 46vw, 38rem);
  height: clamp(16rem, 46vw, 38rem);
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity: .3;
}

.page-home .hero-glow--b {
  width: clamp(12rem, 34vw, 28rem);
  height: clamp(12rem, 34vw, 28rem);
  bottom: 2%;
  left: -10%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  opacity: .16;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-title {
  margin: .5rem 0 1.1rem;
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text);
}

.page-home .hero-lede {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

/* 首屏数据条 */

.page-home .hero-toolbar {
  margin-bottom: 1.6rem;
}

.page-home .hero-panels {
  margin-top: .9rem;
}

.page-home .hero-stats {
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 0 .1rem .3rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-home .hero-stats::-webkit-scrollbar {
  display: none;
}

.page-home .hero-stat {
  flex: 0 0 auto;
  min-width: 9.5rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(20, 29, 47, .78);
}

.page-home .hero-stat-k {
  display: block;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .3rem;
}

.page-home .hero-stat-v {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .hero-stat-v .num {
  font-size: 1.3rem;
  margin-right: .1rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0;
}

/* 首屏视觉 */

.page-home .hero-visual {
  position: relative;
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(5, 7, 13, .1) 0%, rgba(5, 7, 13, .78) 88%);
  pointer-events: none;
}

.page-home .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) brightness(.72) contrast(1.12);
}

.page-home .hero-deco {
  position: absolute;
  right: -0.04em;
  bottom: -0.12em;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(46, 125, 255, .55);
  pointer-events: none;
}

/* ---------- 三条主线 ---------- */

.page-home .routes {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background: var(--ink);
}

.page-home .routes-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-home .route-layout {
  display: grid;
  gap: 1.15rem;
}

.page-home .route-block {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.page-home .route-block:hover,
.page-home .route-block:focus-visible {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.page-home .route-block--a {
  background: linear-gradient(158deg, #111d33 0%, #0a1220 100%);
}

.page-home .route-block--b {
  background: linear-gradient(158deg, #151a38 0%, #0a1020 100%);
}

.page-home .route-block--c {
  background: linear-gradient(158deg, #0d1e22 0%, #071114 100%);
}

.page-home .route-index {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--blue);
}

.page-home .route-index.is-violet {
  color: var(--violet);
}

.page-home .route-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
}

.page-home .route-desc {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .route-cta {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue);
}

.page-home .route-visual {
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.page-home .route-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.78);
}

/* ---------- 赛程对比 ---------- */

.page-home .compare {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background: var(--ink-2);
}

.page-home .compare-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-home .compare-shell {
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  display: grid;
  gap: 1.25rem;
}

.page-home .compare-caption {
  padding: 0 0 .8rem;
  text-align: left;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .home-compare-table td.is-up {
  color: var(--green);
  font-weight: 700;
}

.page-home .home-compare-table td.is-alert {
  color: var(--orange);
  font-weight: 700;
}

.page-home .compare-notes {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .compare-note {
  display: grid;
  gap: .3rem;
  padding: .9rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(12, 18, 32, .7);
}

.page-home .compare-note-k {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
}

.page-home .compare-note-k.is-up {
  color: var(--green);
}

.page-home .compare-note-v {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .compare-figure {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.page-home .compare-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--home-radius);
  object-fit: cover;
  filter: saturate(.75) brightness(.8);
}

/* ---------- 换机三步 ---------- */

.page-home .switch {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background: var(--ink);
}

.page-home .switch-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.page-home .switch-steps {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-home .switch-step {
  position: relative;
  padding: 1.5rem 1.4rem 1.5rem 1.6rem;
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #101828 0%, #080d16 100%);
  border-left: 3px solid var(--blue);
}

.page-home .switch-step:last-child {
  border-left-color: var(--green);
}

.page-home .switch-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  margin-bottom: .7rem;
}

.page-home .switch-num.is-up {
  color: var(--green);
}

.page-home .switch-title {
  margin: 0 0 .5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.page-home .switch-step p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .switch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0;
}

/* ---------- 数据节奏 ---------- */

.page-home .refresh {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background: var(--ink-2);
}

.page-home .refresh-panel {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0e1728 0%, #05080f 100%);
}

.page-home .refresh-copy {
  max-width: 42rem;
}

.page-home .refresh-copy .prose {
  margin: 1rem 0 0;
  font-size: .95rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .refresh-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .refresh-stat {
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(20, 29, 47, .6);
}

.page-home .refresh-stat .stat-num {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.page-home .refresh-stat .stat-num.is-up {
  color: var(--green);
}

.page-home .refresh-stat .stat-num.is-alert {
  color: var(--orange);
}

.page-home .refresh-stat .stat-label {
  display: block;
  margin-top: .4rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 收束 ---------- */

.page-home .start {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.page-home .start-inner {
  display: grid;
  gap: 2rem;
}

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

.page-home .start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
}

.page-home .start-visual {
  margin: 0;
}

.page-home .start-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--home-radius);
  object-fit: cover;
  filter: saturate(.8) brightness(.85);
}

.page-home .start-visual .media-caption {
  margin-top: .8rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
}

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

@media (min-width: 620px) {
  .page-home .route-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

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

  .page-home .refresh-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .page-home .compare-shell {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .compare-notes {
    padding-top: .2rem;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }

  .page-home .hero-visual {
    aspect-ratio: 4 / 5;
    margin-right: calc(var(--home-bleed) * -1);
  }

  .page-home .refresh-panel {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
  }

  .page-home .start-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .route-block {
    transition: none;
  }
}
</main>
