.page-home {
  --home-card: linear-gradient(150deg, rgba(20, 31, 58, .92), rgba(11, 18, 36, .96));
  --home-card-deep: linear-gradient(150deg, rgba(20, 31, 58, .82), rgba(5, 8, 15, .96));
  --home-cut-lg: 26px;
  --home-cut-sm: 18px;
  position: relative;
  overflow-x: clip;
}

/* ============ 首屏 ============ */
.page-home .hero {
  position: relative;
  padding: 14px 0 46px;
  isolation: isolate;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -34%;
  left: -14%;
  right: -14%;
  height: 156%;
  background:
    radial-gradient(52% 44% at 18% 26%, rgba(58, 208, 222, .18), transparent 68%),
    radial-gradient(46% 42% at 84% 20%, rgba(215, 168, 78, .20), transparent 70%),
    radial-gradient(50% 44% at 58% 94%, rgba(23, 185, 138, .14), transparent 72%);
  pointer-events: none;
}

.page-home .hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .hero__copy .display {
  margin: 0 0 16px;
}

.page-home .hero__lede {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.72;
  color: var(--body-text);
  max-width: 26em;
}

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

.page-home .hero__visual.panel {
  padding: 0;
  overflow: hidden;
  background: var(--home-card-deep);
}

.page-home .hero-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(68% 56% at 50% 28%, rgba(58, 208, 222, .16), transparent 72%),
    linear-gradient(160deg, #101A31, #05080F);
}

.page-home .hero-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
}

.page-home .hero-stage__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}

.page-home .grain-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .grain-switch {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(5, 8, 15, .74);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-home .grain-switch label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mist);
  cursor: pointer;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.page-home .grain-switch label:hover {
  color: var(--ivory);
}

.page-home #grain-d:checked ~ .grain-switch label[for="grain-d"],
.page-home #grain-w:checked ~ .grain-switch label[for="grain-w"],
.page-home #grain-m:checked ~ .grain-switch label[for="grain-m"] {
  color: var(--void);
  background: linear-gradient(120deg, var(--gold), var(--gold-hi));
}

.page-home .hero-wave {
  position: absolute;
  left: 7%;
  bottom: 9%;
  width: 86%;
  height: 26%;
  z-index: 2;
}

.page-home .hero-wave__line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition: opacity 240ms var(--ease);
}

.page-home .hero-wave__line--d { stroke: var(--jade); }
.page-home .hero-wave__line--w { stroke: var(--cyan); }
.page-home .hero-wave__line--m { stroke: var(--gold); }

.page-home #grain-d:checked ~ .hero-wave .hero-wave__line--d,
.page-home #grain-w:checked ~ .hero-wave .hero-wave__line--w,
.page-home #grain-m:checked ~ .hero-wave .hero-wave__line--m {
  opacity: 1;
}

/* ============ 主题带 ============ */
.page-home .bands {
  padding-top: 4px;
}

.page-home .bands__head {
  margin-bottom: 22px;
}

.page-home .bands__list {
  display: grid;
  gap: 10px;
}

.page-home .band {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ivory);
  background-color: transparent;
  background-image:
    linear-gradient(90deg, var(--gold) 0 3px, transparent 3px),
    linear-gradient(100deg, rgba(20, 31, 58, .88), rgba(11, 18, 36, .94));
  background-repeat: no-repeat;
  clip-path: polygon(0 0, calc(100% - var(--home-cut-sm)) 0, 100% var(--home-cut-sm), 100% 100%, var(--home-cut-sm) 100%, 0 calc(100% - var(--home-cut-sm)));
  transition: transform 200ms var(--ease), background-image 200ms var(--ease);
}

.page-home .band:hover,
.page-home .band:focus-visible {
  transform: translateX(6px);
  background-image:
    linear-gradient(90deg, var(--gold-hi) 0 3px, transparent 3px),
    linear-gradient(100deg, rgba(24, 37, 68, .96), rgba(11, 18, 36, .98));
}

.page-home .band__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .06em;
  color: var(--gold);
}

.page-home .band__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .band__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .band__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
}

.page-home .band__desc {
  font-size: 15px;
  line-height: 1.68;
  color: var(--mist);
}

/* ============ 光轨过渡 ============ */
.page-home .light-trail {
  position: relative;
  margin: 34px 0;
}

.page-home .light-trail img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .light-trail figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .9));
}

/* ============ 数据面板 ============ */
.page-home .metrics__head {
  margin-bottom: 22px;
}

.page-home .metrics__grid {
  display: grid;
  gap: 26px;
}

.page-home .metrics__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--home-cut-sm)) 0, 100% var(--home-cut-sm), 100% 100%, var(--home-cut-sm) 100%, 0 calc(100% - var(--home-cut-sm)));
}

.page-home .stat {
  padding: 22px 18px;
  background: var(--home-card);
}

.page-home .stat .data-number {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1;
  color: var(--ivory);
}

.page-home .stat__unit {
  font-size: .42em;
  margin-left: 4px;
  color: var(--gold);
}

.page-home .stat__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--mist);
}

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

/* ============ 上手三步 + 疑问 ============ */
.page-home .start__grid {
  display: grid;
  gap: 28px;
}

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

.page-home .step {
  background: var(--home-card);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .step > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
  transition: color 160ms var(--ease);
}

.page-home .step > summary::-webkit-details-marker { display: none; }

.page-home .step > summary:hover { color: var(--gold-hi); }

.page-home .step > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .step[open] > summary::after { content: "−"; }

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-home .step__title { min-width: 0; }

.page-home .step > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .quick-answers {
  padding: 4px 0 0;
}

.page-home .quick-answers__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
}

.page-home .qa {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .qa > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ivory);
}

.page-home .qa > summary::-webkit-details-marker { display: none; }

.page-home .qa > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: color 160ms var(--ease);
}

.page-home .qa[open] > summary::after { content: "−"; }

.page-home .qa > summary:hover { color: var(--gold-hi); }

.page-home .qa > p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

/* ============ 本地专题 ============ */
.page-home .shaanxi__panel.panel {
  padding: 0;
  overflow: hidden;
  background: var(--home-card-deep);
  display: grid;
}

.page-home .shaanxi__figure {
  margin: 0;
  min-height: 180px;
}

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

.page-home .shaanxi__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
}

.page-home .shaanxi__copy .section-title { margin: 0; }

.page-home .shaanxi__copy .prose { margin: 0; }

/* ============ 收尾 ============ */
.page-home .closer__inner.panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  background: var(--home-card);
  border-left: 3px solid var(--jade);
}

.page-home .closer__copy h2 {
  margin: 0 0 6px;
}

.page-home .closer__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mist);
}

/* ============ 响应式 ============ */
@media (min-width: 760px) {
  .page-home .hero {
    padding: 24px 0 60px;
  }

  .page-home .light-trail figcaption {
    padding: 56px 34px 22px;
    font-size: 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: 6fr 6fr;
    gap: 52px;
  }

  .page-home .metrics__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .page-home .start__grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
  }

  .page-home .shaanxi__panel.panel {
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
  }

  .page-home .shaanxi__copy {
    padding: 36px 34px;
    justify-content: center;
  }

  .page-home .closer__inner.panel {
    padding: 32px 34px;
  }

  .page-home .step > summary {
    font-size: 18px;
  }
}

@media (min-width: 1180px) {
  .page-home .bands__list {
    gap: 12px;
  }

  .page-home .band {
    padding: 22px 28px;
  }
}

@media (max-width: 420px) {
  .page-home .hero-stage {
    aspect-ratio: 1 / 1;
  }

  .page-home .band {
    padding: 16px 16px;
    gap: 12px;
  }

  .page-home .band__num {
    font-size: 17px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .band,
  .page-home .hero-wave__line,
  .page-home .grain-switch label {
    transition: none;
  }
}
