.page-home {
  --hm-rail: 72px;
  --hm-amber-soft: rgba(255, 179, 71, .22);
  --hm-lake-soft: rgba(31, 191, 166, .18);
  --hm-nebula-soft: rgba(107, 75, 224, .28);
  position: relative;
  display: block;
  overflow-x: clip;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(78% 52% at 82% -6%, rgba(107, 75, 224, .24), transparent 62%),
    radial-gradient(58% 44% at 2% 16%, rgba(31, 191, 166, .14), transparent 60%);
}

.page-home [data-section] {
  scroll-margin-top: 5.5rem;
}

/* ---------- 外壳：左轨道 + 内容 ---------- */
.page-home .hm-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: calc(var(--container) + 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.page-home .hm-body {
  min-width: 0;
}

@media (min-width: 1024px) {
  .page-home .hm-shell {
    grid-template-columns: var(--hm-rail) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

/* ---------- 章节轨道 ---------- */
.page-home .hm-rail {
  align-self: start;
  min-width: 0;
}

.page-home .hm-rail__label {
  display: none;
  margin: 0 0 .6rem .3rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--muted);
}

.page-home .hm-rail__list {
  display: flex;
  flex-wrap: nowrap;
  gap: .3rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  scrollbar-width: none;
}

.page-home .hm-rail__list::-webkit-scrollbar {
  display: none;
}

.page-home .hm-rail__link {
  display: block;
  white-space: nowrap;
  padding: .38rem .7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hm-rail__link:hover,
.page-home .hm-rail__link:focus-visible {
  color: var(--aurora);
  border-color: var(--line-strong);
  outline: none;
}

.page-home .hm-rail__link[aria-current="true"] {
  color: var(--deep);
  background: var(--amber);
  border-color: var(--amber);
}

@media (min-width: 1024px) {
  .page-home .hm-rail {
    position: sticky;
    top: 5.5rem;
  }

  .page-home .hm-rail__label {
    display: block;
  }

  .page-home .hm-rail__list {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    border-radius: var(--radius);
    padding: .5rem .3rem;
  }

  .page-home .hm-rail__link {
    padding: .5rem .25rem;
    text-align: center;
    font-size: .68rem;
  }
}

/* ---------- 章节间距 ---------- */
.page-home .yh-section {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.page-home .yh-section:first-child {
  margin-top: 0;
}

/* ---------- 首屏：入口状态 ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(152deg, rgba(11, 16, 48, .96), rgba(5, 8, 24, .99));
  isolation: isolate;
}

.page-home .hm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.page-home .hm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
}

.page-home .hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 88% at 88% 6%, var(--hm-nebula-soft), transparent 62%),
    radial-gradient(92% 72% at 4% 102%, var(--hm-lake-soft), transparent 66%);
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.page-home .hm-hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-size: clamp(1.85rem, 5.4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
}

.page-home .hm-hero .yh-lead {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  line-height: 1.75;
}

.page-home .hm-status {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.page-home .hm-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--lake);
  box-shadow: 0 0 0 0 rgba(31, 191, 166, .55);
  animation: hm-pulse 3.4s var(--ease) infinite;
}

@keyframes hm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 191, 166, .55); }
  60% { box-shadow: 0 0 0 .55rem rgba(31, 191, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 191, 166, 0); }
}

.page-home .hm-hero .yh-copy {
  margin-bottom: 1.5rem;
}

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

/* ---------- 三步动线 ---------- */
.page-home .hm-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-home .hm-step {
  position: relative;
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}

.page-home .hm-step:hover,
.page-home .hm-step:focus-within {
  border-color: var(--aurora);
  box-shadow: 0 0 0 1px rgba(123, 224, 211, .26), 0 20px 44px -28px rgba(123, 224, 211, .55);
  transform: translateY(-4px);
}

.page-home .hm-step__no {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--amber);
}

.page-home .hm-step__title {
  margin: 0 0 .7rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .hm-step__text {
  margin: 0 0 .8rem;
  font-size: .94rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hm-step__note {
  margin: 0 0 1.1rem;
  padding-left: .8rem;
  border-left: 2px solid rgba(31, 191, 166, .45);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--silver, var(--muted));
}

@media (min-width: 900px) {
  .page-home .hm-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
  }

  .page-home .hm-step:nth-child(2) {
    margin-top: 1rem;
  }

  .page-home .hm-step:nth-child(3) {
    margin-top: 2rem;
  }
}

.page-home .hm-route-media {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 8, 24, .6);
}

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

/* ---------- 栏目星群 ---------- */
.page-home .hm-starmap {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(11, 16, 48, .9), rgba(5, 8, 24, .95));
}

.page-home .hm-starmap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: .85;
}

.page-home .hm-stars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.page-home .hm-star {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 10.5rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(107, 75, 224, .2), rgba(5, 8, 24, .72));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}

.page-home .hm-star::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(154, 165, 196, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 165, 196, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(90% 70% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 70% at 100% 0%, #000, transparent 70%);
}

.page-home .hm-star:hover,
.page-home .hm-star:focus-visible {
  border-color: var(--aurora);
  box-shadow: 0 0 0 1px rgba(123, 224, 211, .3), 0 22px 48px -30px rgba(123, 224, 211, .6);
  transform: translateY(-4px);
  outline: none;
}

.page-home .hm-star--wide {
  border-color: rgba(255, 179, 71, .42);
  background: linear-gradient(148deg, var(--hm-amber-soft), rgba(11, 16, 48, .9));
}

.page-home .hm-star--quiet {
  background: linear-gradient(158deg, rgba(31, 191, 166, .14), rgba(5, 8, 24, .78));
}

.page-home .hm-star__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--amber);
}

.page-home .hm-star__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .hm-star__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .hm-star__foot {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--aurora);
}

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

@media (min-width: 1024px) {
  .page-home .hm-stars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .page-home .hm-star--wide {
    grid-column: span 2;
  }
}

/* ---------- 巡检节奏 ---------- */
.page-home .hm-cadence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-home .hm-figure {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lake);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(31, 191, 166, .12), rgba(5, 8, 24, .7) 62%);
}

.page-home .hm-figure__num {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--aurora);
}

.page-home .hm-figure__label {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
}

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

.page-home .hm-subhead {
  margin: 2.25rem 0 .9rem;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink);
}

.page-home .hm-news {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-news li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(92deg, rgba(31, 191, 166, .1), rgba(5, 8, 24, .5) 58%);
}

.page-home .hm-news__time {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-home .hm-news__text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.72;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-home .hm-news li {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1.25rem;
  }
}

/* ---------- 备用通道 ---------- */
.page-home .hm-backup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(107, 75, 224, .45);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(105% 120% at 0% 0%, rgba(107, 75, 224, .34), transparent 62%),
    linear-gradient(160deg, rgba(11, 16, 48, .92), rgba(5, 8, 24, .97));
}

.page-home .hm-backup h2 {
  margin: .35rem 0 .9rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
}

.page-home .hm-backup p {
  color: var(--muted);
  line-height: 1.75;
}

.page-home .hm-list {
  display: grid;
  gap: .6rem;
  margin: 1.1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.page-home .hm-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .hm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--lake);
  box-shadow: 0 0 0 3px rgba(31, 191, 166, .16);
}

.page-home .hm-backup__media {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 8, 24, .6);
}

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

@media (min-width: 900px) {
  .page-home .hm-backup {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .78fr);
    gap: 2.5rem;
  }
}

/* ---------- 返回顶部 ---------- */
.page-home .hm-totop {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 480px) {
  .page-home .hm-shell {
    padding-inline: .95rem;
  }

  .page-home .hm-hero {
    padding-inline: 1.1rem;
  }

  .page-home .hm-step,
  .page-home .hm-star,
  .page-home .hm-figure {
    padding-inline: 1.05rem;
  }
}
</final>

.page-home {
  --silver: currentColor;
}
