/* ==========================================================
   首页 · page-home
   ========================================================== */

.page-home {
  --home-figure-radius: var(--radius-l);
  --home-hair: rgba(58, 68, 112, 0.5);
  display: block;
}

/* ---------- 通用小件 ---------- */
.page-home .home-hero { padding: 28px 0 56px; }

.page-home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .page-home .hero-split {
    grid-template-columns: 55fr 45fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
  }
}

/* ---------- 首屏叙述 ---------- */
.page-home .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.page-home .hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 214, 200, 0.85);
  animation: homePulse 2.4s var(--ease) infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.8); }
}

.page-home .hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
  color: var(--star);
}

.page-home .hero-lede {
  margin: 0 0 30px;
  max-width: 34em;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.85;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .hero-domain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 20px;
  border-top: 1px solid var(--home-hair);
}

.page-home .hero-domain-label {
  color: var(--text-faint);
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.page-home .hero-code {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--star);
  background: rgba(123, 92, 255, 0.16);
  padding: 5px 10px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(123, 92, 255, 0.3);
}

.page-home .hero-copy-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: transparent;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-s);
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .hero-copy-btn:hover {
  color: var(--star);
  border-color: rgba(53, 214, 200, 0.6);
  background: rgba(53, 214, 200, 0.1);
}

.page-home .hero-copy-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 首屏星图 ---------- */
.page-home .hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--home-figure-radius);
  overflow: hidden;
  border: 1px solid var(--home-hair);
  background:
    radial-gradient(circle at 28% 22%, rgba(123, 92, 255, 0.34), transparent 58%),
    radial-gradient(circle at 78% 72%, rgba(53, 214, 200, 0.2), transparent 56%),
    var(--ink-800);
}

@media (min-width: 960px) {
  .page-home .hero-visual { aspect-ratio: 4 / 5; }
}

.page-home .hero-stars {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    radial-gradient(1.6px 1.6px at 11% 16%, rgba(242, 244, 250, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 27% 58%, rgba(242, 244, 250, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 46% 24%, rgba(242, 244, 250, 0.9), transparent),
    radial-gradient(1.1px 1.1px at 63% 74%, rgba(242, 244, 250, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 79% 34%, rgba(242, 244, 250, 0.85), transparent),
    radial-gradient(1.1px 1.1px at 88% 62%, rgba(242, 244, 250, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 19% 86%, rgba(242, 244, 250, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 55% 46%, rgba(242, 244, 250, 0.55), transparent),
    radial-gradient(1px 1px at 36% 92%, rgba(242, 244, 250, 0.6), transparent),
    radial-gradient(1.6px 1.6px at 71% 8%, rgba(242, 244, 250, 0.8), transparent);
}

.page-home .hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .orbit-path {
  fill: none;
  stroke: url(#homeOrbGrad);
  stroke-width: 1;
  opacity: 0.75;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: homeDraw 1.6s var(--ease) forwards;
}

.page-home .orbit-path--b { animation-delay: 0.18s; opacity: 0.55; }
.page-home .orbit-path--c { animation-delay: 0.34s; opacity: 0.4; }

@keyframes homeDraw {
  to { stroke-dashoffset: 0; }
}

.page-home .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  mix-blend-mode: screen;
}

/* ---------- 三栏骨架 ---------- */
.page-home .rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1000px) {
  .page-home .rail-layout {
    grid-template-columns: 52px minmax(0, 1fr) 296px;
    gap: clamp(28px, 3.4vw, 48px);
    align-items: start;
  }
}

.page-home .rail { display: none; }

@media (min-width: 1000px) {
  .page-home .rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: calc(var(--header-h) + 36px);
    align-self: start;
    min-height: 220px;
  }
}

.page-home .rail-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(53, 214, 200, 0.42);
  border-radius: 999px;
  padding: 7px 6px;
  width: 34px;
  text-align: center;
}

.page-home .rail-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(53, 214, 200, 0.5), rgba(58, 68, 112, 0.1));
}

/* ---------- 入口自检 ---------- */
.page-home .selfcheck-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-hair);
}

.page-home .selfcheck-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--home-hair);
}

@media (min-width: 620px) {
  .page-home .selfcheck-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
  }
}

.page-home .selfcheck-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding-top: 4px;
}

.page-home .selfcheck-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--star);
  line-height: 1.5;
}

.page-home .selfcheck-body p {
  margin: 0 0 8px;
  color: var(--silver);
  line-height: 1.85;
  font-size: 0.98rem;
}

.page-home .selfcheck-where {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 右侧固定通道 ---------- */
.page-home .home-side { min-width: 0; }

@media (min-width: 1000px) {
  .page-home .home-side {
    position: sticky;
    top: calc(var(--header-h) + 36px);
  }
}

.page-home .side-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-l);
  background: var(--ink-800);
  border: 1px solid var(--home-hair);
  overflow: hidden;
}

.page-home .side-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(232, 177, 76, 0));
}

.page-home .side-tag {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.page-home .side-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--star);
}

.page-home .side-text {
  margin: 0 0 18px;
  color: var(--silver);
  font-size: 0.94rem;
  line-height: 1.8;
}

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

.page-home .side-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* ---------- 六组场景 ---------- */
.page-home .home-scenes {
  border-top: 1px solid var(--home-hair);
  border-bottom: 1px solid var(--home-hair);
}

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

.page-home .scene-figure {
  margin: 34px 0 40px;
  border-radius: var(--home-figure-radius);
  overflow: hidden;
  border: 1px solid var(--home-hair);
}

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

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

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

.page-home .scene-card {
  position: relative;
  display: block;
  padding: 24px 22px 22px;
  border-radius: var(--radius-m);
  background: var(--ink-800);
  border: 1px solid var(--home-hair);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(123, 92, 255, var(--tint, 0.12)), transparent 68%);
  pointer-events: none;
}

.page-home .scene-card:hover,
.page-home .scene-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(53, 214, 200, 0.5);
}

.page-home .scene-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .scene-index {
  position: relative;
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .scene-name {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--star);
  line-height: 1.4;
}

.page-home .scene-for {
  position: relative;
  margin: 0 0 6px;
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.72;
}

.page-home .scene-need {
  position: relative;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.72;
}

/* ---------- 编号帮助 ---------- */
.page-home .code-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .code-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 4vw, 60px);
  }
}

.page-home .code-figure {
  margin: 0;
  border-radius: var(--home-figure-radius);
  overflow: hidden;
  border: 1px solid var(--home-hair);
}

.page-home .code-lede {
  margin: 0 0 26px;
  color: var(--silver);
  line-height: 1.85;
}

.page-home .code-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--home-hair);
}

.page-home .code-row a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-hair);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.page-home .code-row a:hover,
.page-home .code-row a:focus-visible {
  background: rgba(123, 92, 255, 0.1);
  text-decoration: none;
}

.page-home .code-row a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .code-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .code-text {
  color: var(--silver);
  font-size: 0.96rem;
  line-height: 1.7;
}

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

/* ---------- 版本说明 ---------- */
.page-home .version-panel {
  position: relative;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 3.6vw, 44px);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 88% 12%, rgba(232, 177, 76, 0.14), transparent 58%),
    var(--ink-800);
  border: 1px solid var(--home-hair);
}

.page-home .version-panel .version-badge {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(232, 177, 76, 0.5);
  border-radius: 999px;
  padding: 5px 14px;
  animation: homeBreathe 2.4s var(--ease) infinite;
}

@keyframes homeBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 177, 76, 0); }
  50% { box-shadow: 0 0 16px rgba(232, 177, 76, 0.28); }
}

.page-home .version-panel h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--star);
}

.page-home .version-text {
  margin: 0 0 24px;
  color: var(--silver);
  line-height: 1.9;
}

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

/* ---------- 服务响应带 ---------- */
.page-home .response-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-l);
  background: var(--ink-800);
  border: 1px solid var(--home-hair);
  border-top: 2px solid var(--gold);
}

@media (min-width: 860px) {
  .page-home .response-band {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    padding: 36px;
  }
}

.page-home .response-figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.page-home .response-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.42;
  color: var(--star);
}

.page-home .response-text {
  margin: 0 0 22px;
  color: var(--silver);
  line-height: 1.9;
  font-size: 0.98rem;
}

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

/* ---------- 进场动效 ---------- */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .orbit-path,
  .page-home .hero-tag-dot,
  .page-home .version-panel .version-badge {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ---------- 图片基础 ---------- */
.page-home .hero-photo,
.page-home .media-frame img {
  max-width: 100%;
  display: block;
}
<<<END>>>

.page-home {
  --reveal-delay: 0.3s;
  --tint: transparent;
}
