.page-home {
  --home-section-y: clamp(3.25rem, 8vw, 6.5rem);
  --home-rail-card: min(78vw, 330px);
  background: var(--ink-900);
  color: var(--mist);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + 1.25rem);
  padding-bottom: var(--home-section-y);
  background: var(--ink-900);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 62% at 80% 14%, rgba(255, 61, 139, 0.26), transparent 66%),
    radial-gradient(62% 58% at 10% 78%, rgba(37, 230, 216, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(7, 19, 31, 0.66) 0%, rgba(7, 19, 31, 0.88) 58%, var(--ink-900) 100%);
}

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

.page-home .hero-inner .breadcrumb {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(1rem, 3vw, 1.75rem);
}

.page-home .hero-title {
  display: flex;
  flex-direction: column;
  margin: 0.85rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.page-home .hero-title__soft {
  font-weight: 300;
  color: var(--cyan);
}

.page-home .hero-lead {
  max-width: 46ch;
  color: rgba(232, 241, 245, 0.86);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.9rem 0 0;
  padding-top: 1.1rem;
  border-top: var(--hair-cyan);
}

.page-home .hero-stats dt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--steel);
}

.page-home .hero-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* 顶部入口卡 */
.page-home .hero-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 230, 216, 0.34);
  background: rgba(27, 58, 75, 0.74);
  box-shadow: 0 28px 62px -32px rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.page-home .hero-entry__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.page-home .hero-entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.page-home .hero-entry__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.1), rgba(7, 19, 31, 0.75));
}

.page-home .hero-entry__node {
  position: absolute;
  top: 26%;
  right: 24%;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(37, 230, 216, 0.16), 0 0 28px 6px rgba(37, 230, 216, 0.6);
  animation: home-node-pulse 3.8s var(--ease) infinite;
}

@keyframes home-node-pulse {
  0%, 100% { opacity: 0.62; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.14); }
}

.page-home .hero-entry__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.25rem 1.4rem;
}

.page-home .hero-entry__code {
  margin: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .hero-entry__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-home .hero-entry__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(232, 241, 245, 0.8);
}

.page-home .hero-entry__body .btn {
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* 三步 */
.page-home .hero-steps {
  display: grid;
  gap: 1rem;
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-steps li {
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(232, 241, 245, 0.2);
}

.page-home .hero-step__num {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .hero-steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}

.page-home .hero-steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 第二栏滑轨 ---------- */
.page-home .rail-head {
  display: grid;
  gap: 1.75rem;
}

.page-home .rail-title,
.page-home .balance-title,
.page-home .zones-title {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .rail-head__copy .lead,
.page-home .balance-lead,
.page-home .zones-lead {
  max-width: 58ch;
  color: rgba(232, 241, 245, 0.8);
}

.page-home .rail-head__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 61, 139, 0.28);
}

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

.page-home .rail-head__media figcaption {
  padding: 0.7rem 0.95rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--steel);
  background: var(--ink-800);
}

.page-home .rail-scroller {
  margin-top: 1.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 230, 216, 0.5) transparent;
}

.page-home .rail-scroller::-webkit-scrollbar {
  height: 6px;
}

.page-home .rail-scroller::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(37, 230, 216, 0.5);
}

.page-home .rail-track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1rem;
  list-style: none;
}

.page-home .rail-card {
  scroll-snap-align: start;
  flex: 0 0 var(--home-rail-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 241, 245, 0.1);
  border-left: 3px solid var(--cyan);
  background: var(--ink-800);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.page-home .rail-card:hover,
.page-home .rail-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(37, 230, 216, 0.5);
}

.page-home .rail-card--season {
  border-left-color: var(--magenta);
  background: linear-gradient(160deg, rgba(255, 61, 139, 0.14), var(--ink-800) 62%);
}

.page-home .rail-card__code {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .rail-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.page-home .rail-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(232, 241, 245, 0.78);
}

.page-home .rail-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 169, 255, 0.4);
  align-self: flex-start;
}

.page-home .rail-card__link:hover,
.page-home .rail-card__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .rail-hint {
  margin: 0.2rem auto 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 36 / 12 / 48 ---------- */
.page-home .balance-figure {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.page-home .balance-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 241, 245, 0.12);
  background: var(--ink-800);
}

.page-home .balance-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.page-home .balance-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--steel);
}

.page-home .balance-cell--base .balance-num {
  color: var(--mist);
}

.page-home .balance-cell--season {
  border-color: rgba(255, 61, 139, 0.4);
  background: linear-gradient(150deg, rgba(255, 61, 139, 0.18), rgba(13, 34, 51, 0.94));
}

.page-home .balance-cell--season .balance-num {
  color: var(--magenta);
}

.page-home .balance-cell--total {
  border-color: rgba(37, 230, 216, 0.45);
  background: linear-gradient(150deg, rgba(37, 230, 216, 0.16), rgba(13, 34, 51, 0.94));
}

.page-home .balance-cell--total .balance-num {
  color: var(--cyan);
}

.page-home .balance-op {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--steel);
}

.page-home .balance-cols {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.9rem;
}

.page-home .balance-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
}

.page-home .balance-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair-mist);
}

.page-home .balance-col li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.15rem;
  border-bottom: var(--hair-mist);
  font-size: 0.9375rem;
  color: rgba(232, 241, 245, 0.86);
}

.page-home .balance-col li .coord {
  color: var(--cyan);
  font-size: 0.875rem;
}

.page-home .balance-col p {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(232, 241, 245, 0.78);
}

/* ---------- 老用户回访 ---------- */
.page-home .return-grid {
  display: grid;
  gap: 2rem;
}

.page-home .return-grid h2 {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .return-grid .lead {
  color: rgba(232, 241, 245, 0.8);
}

.page-home .return-list {
  position: relative;
  margin: 1.6rem 0 1.5rem;
  padding: 0 0 0 1.7rem;
  list-style: none;
  display: grid;
  gap: 1.05rem;
}

.page-home .return-list::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
}

.page-home .return-list li {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(232, 241, 245, 0.82);
}

.page-home .return-list li::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--cyan);
}

.page-home .return-list strong {
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.35rem;
}

.page-home .return-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(37, 230, 216, 0.22);
}

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

.page-home .return-media figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--steel);
  background: var(--ink-800);
}

/* ---------- 七个坐标区 ---------- */
.page-home .zone-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--hair-mist);
}

.page-home .zone-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 1rem;
  padding: 1.25rem 0.25rem;
  border-bottom: var(--hair-mist);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}

.page-home .zone-item:hover,
.page-home .zone-item:focus-within {
  padding-left: 0.9rem;
  background: linear-gradient(90deg, rgba(37, 230, 216, 0.12), transparent 72%);
}

.page-home .zone-num {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .zone-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.page-home .zone-body p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(232, 241, 245, 0.76);
}

.page-home .zone-link {
  font-size: 0.875rem;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 169, 255, 0.4);
}

.page-home .zone-link:hover,
.page-home .zone-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 服务与合作 ---------- */
.page-home .service-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .service-card {
  padding: clamp(1.4rem, 4vw, 2.1rem);
  border-radius: var(--radius);
}

.page-home .service-card h2 {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.page-home .service-card > p {
  margin: 0 0 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.page-home .service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.page-home .service-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(7, 19, 31, 0.16);
  font-size: 0.9375rem;
}

.page-home .service-list a {
  font-weight: 600;
  color: var(--paper-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 79, 138, 0.45);
}

.page-home .service-list a:hover,
.page-home .service-list a:focus-visible {
  border-bottom-color: var(--paper-link);
}

.page-home .service-card--dark {
  background: var(--ink-800);
  border: 1px solid rgba(37, 230, 216, 0.22);
}

.page-home .service-card--dark h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-home .service-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .service-dl div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--hair-mist);
}

.page-home .service-dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .service-dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-home .service-dl dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-word;
}

.page-home .service-note {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-home .hero-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .page-home .balance-figure {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr);
    align-items: stretch;
    gap: 0.9rem;
  }

  .page-home .balance-cols {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
  }

  .page-home .rail-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
  }

  .page-home .service-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    align-items: start;
  }

  .page-home .return-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 1080px) {
  .page-home .hero-entry__media {
    aspect-ratio: 3 / 4;
  }

  .page-home .zone-item {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-entry__node {
    animation: none;
  }

  .page-home .rail-card,
  .page-home .zone-item {
    transition: none;
  }
}
