.page-home {
  --home-dock: 128px;
  --home-rail-pad: clamp(20px, 5vw, 68px);
  --home-line: rgba(203, 215, 230, .85);
  position: relative;
  overflow-x: clip;
}

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

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 74%);
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 8%, transparent 74%);
  opacity: .55;
  pointer-events: none;
}

.page-home .home-hero__glyph {
  position: absolute;
  right: 2%;
  bottom: -2%;
  z-index: -1;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 15rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--dusk);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.page-home .home-context {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

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

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

.page-home .home-dock {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.page-home .home-dock::-webkit-scrollbar { display: none; }

.page-home .dock-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius-md);
}

.page-home .dock-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--blueprint);
  background: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  color: var(--lake);
  box-shadow: 0 14px 26px -22px rgba(23, 26, 31, .8);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.page-home .dock-item:hover .dock-dot,
.page-home .dock-item:focus-visible .dock-dot {
  background: var(--lake);
  color: #fff;
  transform: translateY(-3px);
}

.page-home .dock-label {
  font-family: var(--font-module);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.page-home .home-ring {
  margin: 0;
  max-width: 190px;
  align-self: center;
}

.page-home .home-ring img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  animation: home-spin 42s linear infinite;
}

@keyframes home-spin {
  to { transform: rotate(360deg); }
}

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

.page-home .home-hero__intro h1 {
  margin: .18em 0 .5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .home-hero__intro .lede {
  max-width: 42ch;
  color: var(--ink-soft);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.page-home .home-metrics {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--blueprint);
}

.page-home .metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dusk);
  line-height: 1;
}

.page-home .metric-num i {
  font-style: normal;
  font-size: .82rem;
  margin-left: 3px;
  color: var(--ink-mute);
}

.page-home .metric-txt {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

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

.page-home .home-screen {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

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

.page-home .home-screen__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-home .screen-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blueprint);
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-module);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.page-home .screen-chip:hover,
.page-home .screen-chip:focus-visible {
  border-color: var(--lake);
  color: var(--lake);
  transform: translateY(-2px);
}

.page-home .home-screen__strip .pill--dusk {
  color: var(--dusk);
  border-color: rgba(91, 75, 138, .4);
}

/* ---------- 章节条 ---------- */
.page-home .home-toc {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 10px 0;
}

.page-home .home-toc__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blueprint);
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  scrollbar-width: none;
}
.page-home .home-toc__inner::-webkit-scrollbar { display: none; }

.page-home .home-toc__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--ink-mute);
  flex: 0 0 auto;
}

.page-home .home-toc__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.page-home .home-toc__list a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-module);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}

.page-home .home-toc__list a:hover,
.page-home .home-toc__list a:focus-visible {
  background: var(--lake);
  color: #fff;
}

/* ---------- 帮助中心 ---------- */
.page-home .home-help__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .home-help__copy h2,
.page-home .section-head h2,
.page-home .home-versions__intro h2,
.page-home .home-trust__copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: .2em 0 .55em;
}

.page-home .home-help__copy p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.page-home .home-help__copy .btn { margin-top: 14px; }

.page-home .home-help__panel {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--blueprint);
  box-shadow: var(--shadow-card);
}

.page-home .panel-title {
  margin: 0 0 16px;
  font-family: var(--font-module);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

.page-home .help-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-home .help-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-module);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}

.page-home .help-cats a:hover,
.page-home .help-cats a:focus-visible {
  background: var(--lake);
  color: #fff;
  transform: translateX(3px);
}

.page-home .cat-idx {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--lake);
}

.page-home .help-cats a:hover .cat-idx,
.page-home .help-cats a:focus-visible .cat-idx { color: #fff; }

.page-home .panel-foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--blueprint);
  font-size: .84rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

.page-home .panel-foot .pill {
  margin-right: 8px;
}

/* ---------- 人群 ---------- */
.page-home .audience-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 34px;
}

.page-home .audience-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--blueprint);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, border-color .3s ease;
}

.page-home .audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--lake);
}

.page-home .audience-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-module);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
}

.page-home .audience-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .card-path {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-mute);
  padding-top: 8px;
  border-top: 1px dashed var(--blueprint);
}

.page-home .card-link {
  margin-top: auto;
  font-family: var(--font-module);
  font-size: .86rem;
  font-weight: 700;
  color: var(--lake);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

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

/* ---------- 移动端卡片带 ---------- */
.page-home .home-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px var(--home-rail-pad) 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .rail-card {
  flex: 0 0 min(76vw, 288px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}

.page-home .rail-card:hover {
  border-color: var(--dusk);
  background: var(--card);
}

.page-home .rail-idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  color: var(--dusk);
  letter-spacing: .1em;
}

.page-home .rail-card h3 {
  margin: 0;
  font-family: var(--font-module);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .rail-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .rail-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
}

.page-home .home-rail-figure {
  margin: 8px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .rail-note {
  margin: 16px 0 0;
  font-size: .86rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* ---------- 版本 ---------- */
.page-home .home-versions__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .home-versions__intro p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.page-home .version-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 20px;
}

.page-home .version-chip {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blueprint);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.page-home .version-chip.is-active {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

.page-home .version-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}

.page-home .version-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--lake), var(--dusk), transparent);
}

.page-home .version-timeline li {
  position: relative;
  padding: 0 0 26px 4px;
}

.page-home .version-timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--lake);
}

.page-home .version-timeline li:last-child { padding-bottom: 0; }

.page-home .vt-time {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-mute);
}

.page-home .version-timeline h3 {
  margin: 0 0 4px;
  font-family: var(--font-module);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .version-timeline p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ---------- 品牌信任 ---------- */
.page-home .home-trust {
  position: relative;
}

.page-home .home-trust::before {
  content: "";
  position: absolute;
  inset: 8% -10% 0 30%;
  z-index: -1;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(60% 70% at 60% 40%, rgba(91, 75, 138, .16), transparent 70%);
  pointer-events: none;
}

.page-home .home-trust__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.page-home .home-trust__copy p {
  color: var(--ink-soft);
  max-width: 48ch;
}

.page-home .home-trust__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 28px 0 22px;
  padding: 0;
}

.page-home .home-trust__stats div {
  padding-top: 14px;
  border-top: 1px solid var(--blueprint);
}

.page-home .home-trust__stats dt {
  font-size: .8rem;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.page-home .home-trust__stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dusk);
  line-height: 1;
}

.page-home .home-trust__stats dd span {
  font-size: .78rem;
  margin-left: 3px;
  color: var(--ink-mute);
}

.page-home .trust-note {
  font-size: .86rem;
  color: var(--ink-mute);
  line-height: 1.75;
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
  max-width: 46ch;
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .home-trust__figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.page-home .home-trust__figure figcaption {
  padding: 12px 18px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-mute);
}

/* ---------- 平板 ---------- */
@media (min-width: 720px) {
  .page-home .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-help__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .page-home .home-trust__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 桌面 ---------- */
@media (min-width: 980px) {
  .page-home .home-hero { padding: 34px 0 54px; }

  .page-home .home-hero__shell {
    grid-template-columns: var(--home-dock) minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .home-dock {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    gap: 14px;
  }

  .page-home .dock-item {
    padding: 0;
  }

  .page-home .home-ring { max-width: 100%; }

  .page-home .home-hero__intro h1 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }

  .page-home .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .audience-card:first-child { grid-column: span 1; }

  .page-home .home-versions__grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 54px;
  }

  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 54px;
  }

  .page-home .rail-card { flex: 0 0 300px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-ring img { animation: none; }
  .page-home .dock-dot,
  .page-home .audience-card,
  .page-home .screen-chip,
  .page-home .help-cats a { transition: none; }
}
