.page-home {
  --home-gap: clamp(20px, 3vw, 40px);
  --home-line: rgba(61, 245, 200, .24);
  background: var(--pitch-night);
  color: var(--cream);
  overflow-x: clip;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero-frame {
  position: relative;
  isolation: isolate;
  padding: 4px 0 clamp(44px, 6vw, 78px);
  background:
    radial-gradient(90% 70% at 84% 0%, rgba(61, 245, 200, .13), transparent 62%),
    linear-gradient(180deg, #041d16 0%, var(--pitch-night) 78%);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background-image:
    repeating-linear-gradient(74deg, rgba(61, 245, 200, .085) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(-74deg, rgba(61, 245, 200, .05) 0 1px, transparent 1px 74px);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
}

.page-home .crumbs {
  padding: 0 0 14px;
  font-size: 13px;
}

.page-home .hero-window {
  position: relative;
  display: grid;
  gap: var(--home-gap);
  padding: clamp(30px, 4vw, 52px) clamp(20px, 3.4vw, 44px) clamp(22px, 3.4vw, 44px);
  border: 2px solid rgba(61, 245, 200, .38);
  background: linear-gradient(158deg, rgba(14, 91, 60, .55) 0%, rgba(6, 35, 24, .95) 68%);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .5);
}

.page-home .hero-window::before,
.page-home .hero-window::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--point);
  pointer-events: none;
}

.page-home .hero-window::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .hero-window::after {
  right: -2px;
  bottom: -2px;
  border-top: 0;
  border-left: 0;
}

.page-home .hero-ticks {
  position: absolute;
  top: 11px;
  left: clamp(20px, 3.4vw, 44px);
  right: clamp(20px, 3.4vw, 44px);
  display: flex;
  gap: 8px;
  height: 9px;
}

.page-home .hero-ticks .frame-tick {
  flex: 1 1 0;
  height: 100%;
  background: rgba(61, 245, 200, .16);
  animation: home-tick 1.15s ease-out;
}

.page-home .hero-ticks .frame-tick:nth-child(1) { animation-delay: .05s; }
.page-home .hero-ticks .frame-tick:nth-child(2) { animation-delay: .17s; }
.page-home .hero-ticks .frame-tick:nth-child(3) { animation-delay: .29s; }
.page-home .hero-ticks .frame-tick:nth-child(4) { animation-delay: .41s; }
.page-home .hero-ticks .frame-tick:nth-child(5) { animation-delay: .53s; }
.page-home .hero-ticks .frame-tick:nth-child(6) { animation-delay: .65s; }

@keyframes home-tick {
  0% { background: rgba(61, 245, 200, .14); }
  45% { background: var(--amber); }
  100% { background: rgba(61, 245, 200, .16); }
}

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

.page-home .hero-copy .eyebrow {
  color: var(--amber);
}

.page-home .hero-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--cream);
}

.page-home .hero-copy .lede {
  max-width: 34em;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hero-actions {
  margin-top: 28px;
}

.page-home .hero-media {
  position: relative;
  margin: 0;
  border: 2px solid rgba(61, 245, 200, .22);
  background: var(--pitch-mid);
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.page-home .hero-caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--sage);
  background: rgba(6, 35, 24, .9);
  border-top: 1px solid var(--home-line);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(61, 245, 200, .18);
}

.page-home .hero-stat {
  padding: 16px 0 6px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sage);
}

.page-home .hero-stat .stat-num {
  color: var(--amber);
}

/* ---------- 横向赛程带 ---------- */
.page-home .league-strip .section-title {
  max-width: 22em;
}

.page-home .band {
  margin-top: clamp(24px, 3vw, 38px);
}

.page-home .band-track {
  display: flex;
  gap: 18px;
  padding: 6px clamp(16px, 4vw, 40px) 26px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .band-track.is-dragging {
  cursor: grabbing;
}

.page-home .band-item {
  scroll-snap-align: start;
  flex: 0 0 min(80vw, 316px);
}

.page-home .league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px 20px 22px;
  border: 2px solid rgba(61, 245, 200, .28);
  background: linear-gradient(162deg, var(--pitch-turf) 0%, var(--pitch-mid) 100%);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--point);
  transition: transform .18s ease, box-shadow .18s ease;
}

.page-home .league-card:hover,
.page-home .league-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 var(--point);
}

.page-home .league-no {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  background: var(--point);
  color: var(--cream);
}

.page-home .league-card .tag {
  align-self: flex-start;
}

.page-home .league-name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cream);
}

.page-home .league-stage {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--mint);
}

.page-home .league-note {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 通勤速览 ---------- */
.page-home .commute-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .commute-main {
  min-width: 0;
}

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

.page-home .peak-badge {
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  border: 1px dashed rgba(61, 245, 200, .5);
}

.page-home .commute-steps {
  counter-reset: commute;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .commute-step {
  counter-increment: commute;
  position: relative;
  padding: 20px 0 20px 54px;
  border-top: 1px solid rgba(244, 241, 228, .18);
}

.page-home .commute-step::before {
  content: counter(commute, decimal-leading-zero);
  position: absolute;
  top: 19px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--amber);
}

.page-home .step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .step-body {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .commute-media {
  position: relative;
  margin: 0;
  border: 3px solid var(--mint);
  background: var(--pitch-night);
  box-shadow: 10px 10px 0 rgba(4, 21, 15, .55);
}

.page-home .commute-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .commute-caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sage);
  background: rgba(4, 21, 15, .92);
}

/* ---------- 赛事面板 ---------- */
.page-home .panel-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(24px, 3vw, 38px);
  align-items: start;
}

.page-home .panel-media {
  margin: 0;
  border: 2px solid rgba(61, 245, 200, .3);
  background: var(--pitch-mid);
}

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

.page-home .panel-caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sage);
  border-top: 1px solid var(--home-line);
}

.page-home .panel-tabs .tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(61, 245, 200, .2);
}

.page-home .panel-tabs .tab {
  appearance: none;
  margin: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--mist);
  background: transparent;
  border: 2px solid rgba(61, 245, 200, .28);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.page-home .panel-tabs .tab:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
}

.page-home .panel-tabs .tab[aria-selected="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--pitch-night);
  font-weight: 700;
}

.page-home .panel-tabs .tab:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.page-home .panel-tabs .tabpanel {
  padding-top: 22px;
}

.page-home .panel-tabs .tabpanel[hidden] {
  display: none;
}

.page-home .panel-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .panel-body {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mist);
}

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

.page-home .panel-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sage);
}

.page-home .panel-points li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--mint);
}

/* ---------- 版本更新 ---------- */
.page-home .version-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(22px, 3vw, 34px);
  align-items: start;
}

.page-home .version-line {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.page-home .version-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0 16px 16px;
  border-bottom: 1px solid rgba(26, 17, 8, .16);
  border-left: 3px solid var(--point);
}

.page-home .version-when {
  font-size: 15px;
  font-weight: 700;
  color: var(--pitch-turf);
}

.page-home .version-what {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(26, 17, 8, .82);
}

.page-home .version-note {
  margin: 20px 0 22px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--mist);
  border-left: 4px solid var(--pitch-turf);
}

.page-home .version-media {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--pitch-night);
}

.page-home .version-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 7;
  object-fit: cover;
}

.page-home .version-caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--pitch-turf);
  background: var(--cream);
  border-top: 2px solid var(--ink);
}

.page-home .version-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .version-stat {
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

.page-home .version-stat .stat-num {
  color: var(--pitch-turf);
}

.page-home .version-stat .stat-label {
  color: rgba(26, 17, 8, .68);
}

/* ---------- 运营底子 ---------- */
.page-home .trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .trust-main {
  min-width: 0;
}

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

.page-home .cert-item {
  padding: 13px 0 13px 22px;
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cream);
  border-top: 1px solid rgba(244, 241, 228, .2);
}

.page-home .cert-item::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 0;
  width: 12px;
  height: 3px;
  background: var(--mint);
}

.page-home .trust-note {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .trust-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

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

.page-home .trust-stat {
  padding: 20px 16px;
  border: 2px solid rgba(61, 245, 200, .3);
  background: rgba(6, 35, 24, .55);
}

.page-home .trust-stat .stat-num {
  color: var(--amber);
}

.page-home .team-block {
  padding: 20px 18px;
  border: 2px solid rgba(61, 245, 200, .3);
  background: linear-gradient(160deg, rgba(10, 59, 39, .9), rgba(6, 35, 24, .9));
}

.page-home .team-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--cream);
}

.page-home .team-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .team-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(61, 245, 200, .16);
  font-size: 15px;
}

.page-home .team-row:first-child {
  border-top: 0;
}

.page-home .team-name {
  color: var(--mist);
}

.page-home .team-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--mint);
}

/* ---------- 结尾 CTA ---------- */
.page-home .home-cta-inner {
  position: relative;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.4vw, 46px);
  border: 2px solid rgba(61, 245, 200, .34);
  background:
    linear-gradient(150deg, rgba(14, 91, 60, .5), rgba(6, 35, 24, .92)),
    repeating-linear-gradient(74deg, rgba(61, 245, 200, .07) 0 1px, transparent 1px 68px);
}

.page-home .cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--cream);
}

.page-home .cta-lede {
  max-width: 40em;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .cta-actions {
  margin-top: 26px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hero-stat {
    padding: 18px 22px 8px 0;
  }

  .page-home .hero-stat + .hero-stat {
    padding-left: 24px;
    border-left: 1px solid rgba(61, 245, 200, .16);
  }

  .page-home .version-row {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-window {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .commute-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .panel-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .version-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .page-home .trust-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (max-width: 560px) {
  .page-home .hero-window {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .5);
  }

  .page-home .band-item {
    flex-basis: 84vw;
  }

  .page-home .trust-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-ticks .frame-tick {
    animation: none;
    background: rgba(61, 245, 200, .3);
  }

  .page-home .league-card,
  .page-home .panel-tabs .tab {
    transition: none;
  }

  .page-home .league-card:hover,
  .page-home .league-card:focus-within,
  .page-home .panel-tabs .tab:hover {
    transform: none;
  }
}
