.page-home {
  --home-glow-green: 0 0 28px rgba(76, 255, 176, 0.3);
  display: block;
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 16px 0 10px;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -20%;
  width: 78%;
  height: 172%;
  background: linear-gradient(158deg, rgba(198, 75, 255, 0.22) 0%, rgba(43, 231, 245, 0.08) 48%, rgba(11, 6, 22, 0) 74%);
  transform: rotate(-6deg);
  pointer-events: none;
}

.page-home .hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .hero__main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 372px;
  display: flex;
  align-items: flex-end;
  padding: 24px 18px 30px;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 74% 100%, 0 100%);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  opacity: 0.55;
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(178deg, rgba(11, 6, 22, 0.16) 0%, rgba(11, 6, 22, 0.78) 52%, rgba(11, 6, 22, 0.97) 100%),
    repeating-linear-gradient(0deg, rgba(242, 244, 255, 0.045) 0 1px, transparent 1px 4px);
}

.page-home .hero__copy {
  position: relative;
  max-width: 36ch;
}

.page-home .hero__crumbs {
  margin-bottom: 14px;
}

.page-home .hero__h1 {
  margin: 0;
  font-size: clamp(36px, 10vw, 78px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow:
    0 0 18px rgba(76, 255, 176, 0.42),
    0 0 46px rgba(198, 75, 255, 0.3);
}

.page-home .hero__h1sub {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(20px, 4.6vw, 38px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--green);
  text-shadow: none;
}

.page-home .hero__lead {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.74;
  color: var(--mute);
}

.page-home .hero__index {
  position: relative;
  padding: 22px 18px 24px;
  background:
    linear-gradient(180deg, rgba(76, 255, 176, 0.09), rgba(23, 16, 41, 0) 44%),
    var(--ink-2);
  clip-path: var(--cut);
}

.page-home .hero__index::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 58%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--magenta));
}

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

.page-home .hero__path {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  text-decoration: none;
  color: var(--paper);
  background: rgba(11, 6, 22, 0.6);
  clip-path: var(--cut-xs);
  border-left: 2px solid var(--edge);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.page-home .hero__path:hover,
.page-home .hero__path:focus-visible {
  background: rgba(43, 231, 245, 0.1);
  border-left-color: var(--cyan);
  transform: translateX(3px);
}

.page-home .hero__path-idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--cyan);
  border: 1px solid var(--edge);
  background: rgba(43, 231, 245, 0.08);
  clip-path: var(--cut-xs);
}

.page-home .hero__path-text {
  display: block;
  min-width: 0;
}

.page-home .hero__path-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .hero__path-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.52;
  color: var(--mute);
}

/* ---------- 三条通道 ---------- */
.page-home .lanes {
  padding: 48px 0 8px;
}

.page-home .lanes__head {
  max-width: 62ch;
}

.page-home .lanes__head .arc-h2 {
  margin-top: 8px;
}

.page-home .lanes__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  background: var(--ink-2);
  clip-path: var(--cut);
}

.page-home .lane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.page-home .lane--a::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.page-home .lane--b::before { background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.page-home .lane--c::before { background: linear-gradient(90deg, var(--mango), var(--cherry)); }

.page-home .lane__id {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.page-home .lane__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--paper);
}

.page-home .lane__desc {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.74;
  color: var(--mute);
}

.page-home .lane__fit {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mango);
}

.page-home .lane .arc-btn {
  margin-top: 6px;
  align-self: flex-start;
}

/* ---------- 果盘轮盘 ---------- */
.page-home .wheelsec {
  padding: 54px 0 16px;
}

.page-home .wheelsec__head {
  max-width: 68ch;
}

.page-home .wheelsec__head .arc-h2 {
  margin-top: 8px;
}

.page-home .wheelsec__head .arc-lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.74;
  color: var(--mute);
}

.page-home .wheelsec__body {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-home .wheelwrap {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.page-home .wheelwrap__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(1px) saturate(1.3);
  pointer-events: none;
}

.page-home .wheel {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0deg 60deg,
    var(--cherry) 60deg 120deg,
    var(--mango) 120deg 180deg,
    var(--cyan) 180deg 240deg,
    var(--magenta) 240deg 300deg,
    var(--mute) 300deg 360deg
  );
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 27%, #000 27.6% 49%, transparent 49.6% 100%);
  mask: radial-gradient(circle at 50% 50%, transparent 0 27%, #000 27.6% 49%, transparent 49.6% 100%);
  filter: drop-shadow(0 0 22px rgba(198, 75, 255, 0.28));
}

.page-home .wheel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(43, 231, 245, 0.15);
}

.page-home .wheel__hub-range {
  font-family: var(--font-mono);
  font-size: clamp(19px, 5.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--green);
}

.page-home .wheel__hub-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.page-home .wheel__hit {
  position: absolute;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: rgba(11, 6, 22, 0.92);
  border: 1px solid var(--edge);
  border-radius: 50%;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-home .wheel__hit:hover,
.page-home .wheel__hit:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: scale(1.12);
}

.page-home .wheel__hit--1 { left: 69%; top: 17.1%; }
.page-home .wheel__hit--2 { left: 88%; top: 50%; }
.page-home .wheel__hit--3 { left: 69%; top: 82.9%; }
.page-home .wheel__hit--4 { left: 31%; top: 82.9%; }
.page-home .wheel__hit--5 { left: 12%; top: 50%; }
.page-home .wheel__hit--6 { left: 31%; top: 17.1%; }

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

.page-home .chs__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 14px;
  background: var(--ink-2);
  clip-path: var(--cut-xs);
  border-left: 2px solid var(--edge);
}

.page-home .chs__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-home .chs__name {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .chs__range {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
}

.page-home .chs__avg {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mango);
}

.page-home .chs__row:nth-child(1) { border-left-color: var(--green); }
.page-home .chs__row:nth-child(2) { border-left-color: var(--cherry); }
.page-home .chs__row:nth-child(3) { border-left-color: var(--mango); }
.page-home .chs__row:nth-child(4) { border-left-color: var(--cyan); }
.page-home .chs__row:nth-child(5) { border-left-color: var(--magenta); }
.page-home .chs__row:nth-child(6) { border-left-color: var(--mute); }

.page-home .chs__row:nth-child(1) .chs__dot { background: var(--green); }
.page-home .chs__row:nth-child(2) .chs__dot { background: var(--cherry); }
.page-home .chs__row:nth-child(3) .chs__dot { background: var(--mango); }
.page-home .chs__row:nth-child(4) .chs__dot { background: var(--cyan); }
.page-home .chs__row:nth-child(5) .chs__dot { background: var(--magenta); }
.page-home .chs__row:nth-child(6) .chs__dot { background: var(--mute); }

.page-home .strip {
  margin: 32px 0 0;
  overflow: hidden;
  clip-path: var(--cut);
  border: 1px solid var(--edge-soft);
  background: var(--ink-2);
}

.page-home .strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  opacity: 0.86;
}

/* ---------- 补题印章 ---------- */
.page-home .stampsec {
  padding: 54px 0 16px;
}

.page-home .stampsec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.page-home .stampsec__copy .arc-h2 {
  margin-top: 8px;
}

.page-home .stampsec__p {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.74;
  color: var(--mute);
}

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

.page-home .stampsec__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--mute);
  background: rgba(23, 16, 41, 0.72);
  clip-path: var(--cut-xs);
  border-left: 2px solid var(--mango);
}

.page-home .stampsec__facts .arc-mono {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--mango);
}

.page-home .stampsec__copy .arc-btn {
  margin-top: 20px;
}

.page-home .stampsec__bar {
  display: block;
  margin-top: 20px;
  height: 4px;
  max-width: 320px;
  background: linear-gradient(90deg, var(--mango), var(--magenta), var(--cyan));
  clip-path: var(--cut-xs);
  animation: homeBreath 2.5s ease-in-out infinite;
}

@keyframes homeBreath {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

.page-home .stampsec__fig {
  margin: 0 auto;
  width: min(100%, 320px);
}

.page-home .stampsec__fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(255, 194, 75, 0.26));
}

/* ---------- 机台状态栏 ---------- */
.page-home .board {
  padding: 54px 0 16px;
}

.page-home .board__head .arc-h2 {
  margin-top: 8px;
}

.page-home .board__grid {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .board__cell {
  position: relative;
  padding: 18px 16px 22px;
  background: var(--ink-2);
  clip-path: var(--cut-sm);
  overflow: hidden;
}

.page-home .board__cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.page-home .board__cell:nth-child(1)::after { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.page-home .board__cell:nth-child(2)::after { background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.page-home .board__cell:nth-child(3)::after { background: linear-gradient(90deg, var(--magenta), var(--cherry)); }
.page-home .board__cell:nth-child(4)::after { background: linear-gradient(90deg, var(--cherry), var(--mango)); }

.page-home .board__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.page-home .board__v {
  display: inline-block;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .board__u {
  margin-left: 6px;
  font-size: 14px;
  color: var(--mango);
}

/* ---------- 机房出口 ---------- */
.page-home .exit {
  padding: 54px 0 64px;
}

.page-home .exit__head .arc-h2 {
  margin-top: 8px;
}

.page-home .exit__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .exit__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 24px;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-2);
  clip-path: var(--cut);
  transition: transform 200ms ease, background-color 200ms ease;
}

.page-home .exit__card:hover,
.page-home .exit__card:focus-visible {
  transform: translateY(-4px);
  background: var(--ink-3);
}

.page-home .exit__card-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .exit__card strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.34;
}

.page-home .exit__card span:last-child {
  font-size: 14px;
  line-height: 1.72;
  color: var(--mute);
}

.page-home .exit__card::after {
  content: "→";
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green);
  transition: transform 200ms ease;
}

.page-home .exit__card:hover::after,
.page-home .exit__card:focus-visible::after {
  transform: translateX(4px);
}

.page-home .exit__meta {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .hero__main {
    min-height: 440px;
    padding: 34px 32px 42px;
  }

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

  .page-home .strip {
    margin-top: 38px;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 34px 0 12px;
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
    gap: 0;
    align-items: end;
  }

  .page-home .hero__main {
    min-height: 540px;
    padding: 48px 52px 56px;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 62% 100%, 0 100%);
  }

  .page-home .hero__copy {
    max-width: 80%;
  }

  .page-home .hero__index {
    margin: 0 0 70px -56px;
    padding: 28px 26px 30px 34px;
    z-index: 2;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  }

  .page-home .hero__index::before {
    left: 14px;
  }

  .page-home .lanes {
    padding-top: 62px;
  }

  .page-home .lanes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .page-home .lane--b {
    margin-top: 36px;
  }

  .page-home .lane--c {
    margin-top: 72px;
  }

  .page-home .wheelsec {
    padding-top: 70px;
  }

  .page-home .wheelsec__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
  }

  .page-home .wheelwrap {
    width: min(100%, 400px);
  }

  .page-home .stampsec {
    padding-top: 70px;
  }

  .page-home .stampsec__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .page-home .stampsec__fig {
    margin: 0 0 0 auto;
    width: min(100%, 320px);
  }

  .page-home .board {
    padding-top: 70px;
  }

  .page-home .board__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .exit {
    padding-top: 70px;
  }

  .page-home .exit__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

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

  .page-home .hero__path,
  .page-home .wheel__hit,
  .page-home .exit__card,
  .page-home .exit__card::after {
    transition: none;
  }
}
</main>
