.page-home {
  --home-gap: clamp(56px, 8vw, 108px);
  --home-hot: rgba(53, 200, 255, .55);
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(14px, 2vw, 26px) var(--gut) 0;
}

.page-home .hero-frame {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: min(88vh, 880px);
  padding: clamp(40px, 7vw, 96px) clamp(22px, 4.6vw, 72px) clamp(38px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(242, 237, 228, .035) 0 1px, transparent 1px 46px);
}

.page-home .hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(212, 167, 44, .5) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 72% 62%, rgba(53, 200, 255, .32) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 44% 84%, rgba(240, 212, 138, .38) 0 1px, transparent 1.6px);
  background-size: 200px 200px, 260px 260px, 320px 320px;
  animation: home-drift 34s linear infinite;
}

@keyframes home-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 200px -200px, -260px 260px, 320px -320px; }
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  max-width: 820px;
  translate: 0 -4%;
}

.page-home .hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .32em;
  color: var(--gold);
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(38px, 8.4vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 0 72px rgba(212, 167, 44, .2);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 32em;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--gray);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: clamp(6px, 1.2vw, 16px);
}

.page-home .hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gray);
}

.page-home .hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(143, 168, 147, .16);
}

.page-home .hero-figure {
  position: absolute;
  right: -5%;
  bottom: -8%;
  z-index: 1;
  width: min(56%, 620px);
  margin: 0;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 68% 78%, #000 40%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 68% 78%, #000 40%, transparent 78%);
}

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

/* ---------- 章节通用 ---------- */
.page-home .section {
  position: relative;
  padding: var(--home-gap) var(--gut);
}

.page-home .chapter-band {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.page-home .chapter-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--clay) 42%, rgba(192, 118, 74, 0) 100%);
}

.page-home .chapter-band .band-num {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: .12em;
  color: var(--gold);
}

.page-home .chapter-band .band-txt {
  font-size: clamp(12px, 1.2vw, 13px);
  letter-spacing: .3em;
  color: var(--gray);
}

.page-home .sec-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .sec-sub {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--gray);
}

.page-home .link-neon {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 200, 255, .35);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}

.page-home .link-neon:hover,
.page-home .link-neon:focus-visible {
  color: var(--gold-lt);
  border-bottom-color: var(--gold-lt);
}

/* ---------- 7/5 与 5/7 非对称栅格 ---------- */
.page-home .home-split {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  grid-template-columns: 1fr;
}

@media (min-width: 920px) {
  .page-home .home-split-75 { grid-template-columns: 7fr 5fr; }
  .page-home .home-split-57 { grid-template-columns: 5fr 7fr; }
}

.page-home .split-main,
.page-home .split-side,
.page-home .split-media,
.page-home .split-text {
  min-width: 0;
}

/* ---------- 01 自检 ---------- */
.page-home .check-list {
  list-style: none;
  margin: clamp(26px, 3.2vw, 42px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--clip-md);
  transition: border-color .32s var(--ease), background .32s var(--ease);
}

.page-home .check-item:hover {
  border-color: rgba(212, 167, 44, .55);
  background: #151922;
}

.page-home .check-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 3px;
}

.page-home .check-h {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold-lt);
}

.page-home .check-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .check-aside {
  padding: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(160deg, rgba(212, 167, 44, .09), rgba(18, 21, 26, .92) 48%);
  border: 1px solid var(--line);
  clip-path: var(--clip-lg);
  align-self: start;
}

.page-home .aside-h {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .aside-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .aside-item {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-home .aside-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .aside-item .tag {
  justify-self: start;
}

.page-home .aside-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .aside-link {
  display: inline-block;
  font-size: 14.5px;
}

/* ---------- 02 步骤树 ---------- */
.page-home .device-figure {
  margin: 0;
}

.page-home .device-figure .figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  clip-path: var(--clip-md);
}

.page-home .device-figure .figure-cap {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .steps {
  list-style: none;
  margin: clamp(26px, 3.2vw, 40px) 0 0;
  padding: 0;
  display: grid;
}

.page-home .step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding-bottom: clamp(20px, 2.6vw, 30px);
  cursor: pointer;
  outline: none;
}

.page-home .step:last-child {
  padding-bottom: 0;
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}

.page-home .step:last-child::before {
  display: none;
}

.page-home .step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .step-body {
  padding-top: 2px;
}

.page-home .step-h {
  margin: 0 0 6px;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  color: var(--paper);
  transition: color .3s var(--ease);
}

.page-home .step-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .step:hover .step-num,
.page-home .step:focus-visible .step-num,
.page-home .step.is-lit .step-num,
.page-home .step.step-on .step-num {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold-lt);
  box-shadow: 0 0 0 6px rgba(212, 167, 44, .14);
}

.page-home .step:hover .step-h,
.page-home .step:focus-visible .step-h,
.page-home .step.is-lit .step-h {
  color: var(--gold-lt);
}

/* ---------- 03 问题分流 ---------- */
.page-home .routing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.page-home .routing-figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.page-home .routing-figure .figure-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}

.page-home .routing-inner {
  position: relative;
  z-index: 1;
}

.page-home .routing-list {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .page-home .routing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .page-home .routing-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.page-home .routing-item {
  min-width: 0;
}

.page-home .routing-item a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: clamp(20px, 2.4vw, 28px);
  background: rgba(18, 21, 26, .88);
  border: 1px solid var(--line);
  clip-path: var(--clip-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .32s var(--ease), background .32s var(--ease), transform .32s var(--ease);
}

.page-home .routing-item a:hover,
.page-home .routing-item a:focus-visible {
  border-color: var(--home-hot);
  background: rgba(18, 21, 26, .98);
  transform: translateY(-4px);
}

.page-home .routing-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

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

.page-home .routing-h {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.35;
}

.page-home .routing-p {
  display: block;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease), opacity .38s var(--ease);
}

.page-home .routing-item a:hover .routing-p,
.page-home .routing-item a:focus-visible .routing-p {
  max-height: 8em;
  opacity: 1;
}

.page-home .routing-go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gray);
  transition: color .3s var(--ease);
}

.page-home .routing-item a:hover .routing-go,
.page-home .routing-item a:focus-visible .routing-go {
  color: var(--neon);
}

/* 无悬停能力或窄屏时，提示常显 */
@media (hover: none), (max-width: 899px) {
  .page-home .routing-p {
    max-height: 8em;
    opacity: 1;
  }
}

/* ---------- 04 服务规模 ---------- */
.page-home .stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 3.4vw, 44px);
  background: var(--line);
  border: 1px solid var(--line);
}

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

.page-home .stat-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--ink);
}

.page-home .stat-cell .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(212, 167, 44, .28);
}

.page-home .stat-cell .stat-label {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--gray);
}

.page-home .scale-notes {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: grid;
  gap: 16px;
  max-width: 78ch;
}

.page-home .scale-notes p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--gray);
}

.page-home .scale-notes p:first-child {
  padding-left: 18px;
  border-left: 3px solid rgba(212, 167, 44, .7);
  color: var(--paper);
}

/* ---------- 05 竞技场 ---------- */
.page-home .arena {
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(212, 167, 44, .1), transparent 62%),
    radial-gradient(90% 70% at 6% 100%, rgba(192, 118, 74, .09), transparent 60%),
    var(--ink);
}

.page-home .arena-grid {
  display: grid;
  gap: clamp(30px, 4vw, 58px);
  grid-template-columns: 1fr;
  align-items: center;
}

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

.page-home .arena-facts {
  margin: clamp(22px, 2.8vw, 34px) 0 clamp(22px, 2.8vw, 32px);
  display: grid;
  gap: 12px;
}

.page-home .arena-fact {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .arena-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--moss);
}

.page-home .arena-v {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .arena-figure {
  margin: 0;
}

.page-home .arena-figure .figure-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  clip-path: var(--clip-lg);
}

.page-home .arena-figure .figure-cap {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 尾段 ---------- */
.page-home .outro {
  padding: clamp(0px, 2vw, 24px) var(--gut) clamp(56px, 8vw, 104px);
}

.page-home .outro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(120deg, rgba(212, 167, 44, .12), rgba(8, 9, 12, .94) 58%);
  border: 1px solid var(--line);
  clip-path: var(--clip-lg);
}

.page-home .outro-text {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(15.5px, 1.7vw, 19px);
  line-height: 1.75;
  color: var(--paper);
}

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

/* ---------- 窄屏适配 ---------- */
@media (max-width: 620px) {
  .page-home .hero-frame {
    min-height: auto;
    justify-content: flex-start;
    padding: clamp(34px, 9vw, 52px) 18px clamp(32px, 9vw, 48px);
  }

  .page-home .hero-inner {
    translate: none;
  }

  .page-home .hero-figure {
    position: static;
    width: 100%;
    margin-top: clamp(22px, 6vw, 34px);
    opacity: .9;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-home .arena-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-home .outro-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ---------- 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-particles {
    animation: none;
  }

  .page-home .routing-item a:hover {
    transform: none;
  }

  .page-home .routing-p,
  .page-home .step-num,
  .page-home .routing-go {
    transition: none;
  }
}
