.page-home {
  --home-gap: clamp(16px, 3vw, 28px);
  --home-pad-y: clamp(44px, 7vw, 92px);
  position: relative;
  background:
    radial-gradient(120% 55% at 82% 0%, rgba(53, 240, 200, 0.07), transparent 62%),
    radial-gradient(90% 45% at 6% 18%, rgba(124, 108, 245, 0.08), transparent 68%),
    var(--deep-ink-950);
  color: var(--text-slate-100);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 7vw, 88px);
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% 24% -12%;
  background:
    radial-gradient(58% 58% at 74% 22%, rgba(53, 240, 200, 0.16), transparent 66%),
    radial-gradient(44% 44% at 10% 6%, rgba(124, 108, 245, 0.14), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.page-home .home-hero__crumbs {
  margin-bottom: clamp(16px, 2.4vw, 24px);
}

.page-home .home-hero__eyebrow {
  margin: 0 0 14px;
  font-size: var(--step--1);
  letter-spacing: 0.26em;
  color: var(--signal-cyan-400);
  text-transform: uppercase;
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 8vw, var(--step-5));
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-slate-100);
  text-wrap: balance;
}

.page-home .home-hero__lede {
  margin: 0 0 clamp(24px, 4vw, 34px);
  max-width: 36em;
  font-size: var(--step-1);
  line-height: 1.78;
  color: var(--text-slate-400);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .home-hero__actions .btn {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.page-home .home-hero__actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(53, 240, 200, 0.18);
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 300px;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-600);
  background: linear-gradient(158deg, var(--deep-ink-850), var(--deep-ink-950) 64%);
  overflow: hidden;
}

.page-home .home-hero__shot {
  position: absolute;
  inset: 0;
}

.page-home .home-hero__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 28, 0.12) 0%, rgba(7, 13, 28, 0.72) 78%);
  pointer-events: none;
}

.page-home .home-hero__badge {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  left: clamp(12px, 2vw, 20px);
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(53, 240, 200, 0.4);
  background: rgba(7, 13, 28, 0.6);
  color: var(--signal-cyan-400);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.page-home .home-hero__chart {
  position: absolute;
  left: 6%;
  bottom: 6%;
  width: 88%;
  height: auto;
  z-index: 2;
  padding: 12px 14px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-600);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
}

.page-home .home-hero__grid-lines {
  opacity: 0.5;
}

.page-home .home-hero__line {
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  animation: home-chart-draw 2.2s ease-out 0.25s forwards;
}

.page-home .home-hero__area {
  opacity: 0;
  animation: home-chart-fade 1s ease-out 1.1s forwards;
}

.page-home .home-hero__dots circle {
  opacity: 0;
  animation: home-chart-fade 0.6s ease-out 1.5s forwards;
}

@keyframes home-chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes home-chart-fade {
  to { opacity: 1; }
}

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

.page-home .home-section + .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal-cyan-700) 22%, rgba(53, 240, 200, 0.1) 62%, transparent);
}

.page-home .home-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 30px);
  align-items: start;
  margin-bottom: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(16px, 2.4vw, 24px);
  border-bottom: 1px solid rgba(34, 56, 104, 0.55);
}

.page-home .home-head--flush {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.page-home .home-head__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--signal-cyan-400);
}

.page-home .home-head__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--text-slate-100);
}

.page-home .home-head__sub {
  margin: 0;
  max-width: 46em;
  font-family: var(--font-serif);
  font-size: var(--step-0);
  line-height: 1.82;
  color: var(--text-slate-400);
}

/* ---------- 栏目索引带 ---------- */
.page-home .home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 85%);
  gap: var(--home-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.page-home .home-rail:focus-visible {
  outline: 2px solid var(--signal-cyan-400);
  outline-offset: 6px;
  border-radius: var(--radius-md);
}

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

.page-home .home-rail::-webkit-scrollbar-thumb {
  background: var(--ink-600);
  border-radius: 999px;
}

.page-home .home-rail__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-600);
  background: linear-gradient(166deg, var(--ink-700), var(--deep-ink-850));
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .home-rail__card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 240, 200, 0.5);
}

.page-home .home-rail__figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

.page-home .home-rail__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  flex: 1;
}

.page-home .home-rail__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-slate-100);
}

.page-home .home-rail__text {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--text-slate-400);
}

.page-home .home-rail__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--archive-amber-400);
}

.page-home .home-rail__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-start;
  padding-top: 6px;
  font-weight: 600;
  color: var(--signal-cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 200, 0.35);
}

.page-home .home-rail__link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.page-home .home-rail__link:hover::after {
  transform: translateX(4px);
}

/* ---------- 数字快照 ---------- */
.page-home .home-snapshot {
  position: relative;
  isolation: isolate;
}

.page-home .home-snapshot__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  overflow: hidden;
}

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

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.page-home .home-stat {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-600);
  background: linear-gradient(170deg, rgba(22, 38, 74, 0.96), rgba(12, 23, 48, 0.96));
}

.page-home .home-stat::after {
  content: "";
  position: absolute;
  right: -34%;
  bottom: -58%;
  width: 168px;
  height: 168px;
  background: radial-gradient(circle, rgba(53, 240, 200, 0.18), transparent 70%);
  pointer-events: none;
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-slate-100);
}

.page-home .home-stat__unit {
  margin-left: 0.22em;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--archive-amber-400);
  vertical-align: super;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 12px;
  font-size: var(--step-0);
  line-height: 1.66;
  color: var(--text-slate-400);
}

.page-home .home-snapshot__foot {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--text-slate-400);
}

.page-home .home-snapshot__foot a {
  color: var(--signal-cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 200, 0.35);
  margin-left: 0.4em;
}

/* ---------- 归档通道 ---------- */
.page-home .home-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.page-home .home-archive__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-600);
  overflow: hidden;
}

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

.page-home .home-archive__figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(124, 108, 245, 0.22));
  pointer-events: none;
}

.page-home .home-archive__list {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 clamp(22px, 3vw, 30px);
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-archive__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--step-0);
  line-height: 1.76;
  color: var(--text-slate-400);
}

.page-home .home-archive__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--archive-violet-500);
}

.page-home .home-archive__cta {
  transition: transform 0.26s ease;
}

.page-home .home-archive__cta:hover {
  transform: translateY(-3px);
}

/* ---------- 帮助与反馈 ---------- */
.page-home .home-support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-support__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3.6vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-600);
  background: linear-gradient(168deg, var(--ink-700), var(--deep-ink-850));
}

.page-home .home-support__panel--help {
  box-shadow: inset 0 1px 0 rgba(53, 240, 200, 0.45);
}

.page-home .home-support__panel--feedback {
  box-shadow: inset 0 1px 0 rgba(255, 176, 46, 0.5);
}

.page-home .home-support__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--text-slate-100);
}

.page-home .home-support__text {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--text-slate-400);
}

.page-home .home-support__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-top: 6px;
  font-weight: 600;
  color: var(--signal-cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 200, 0.35);
}

.page-home .home-support__link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.page-home .home-support__link:hover::after {
  transform: translateX(4px);
}

/* ---------- 收尾信息带 ---------- */
.page-home .home-outro {
  padding: clamp(36px, 6vw, 68px) 0 clamp(48px, 8vw, 88px);
}

.page-home .home-outro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 36px);
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-600);
  background: linear-gradient(142deg, rgba(12, 23, 48, 0.96), rgba(7, 13, 28, 0.96));
}

.page-home .home-outro__num {
  display: block;
  margin-bottom: 10px;
}

.page-home .home-outro__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-slate-100);
}

.page-home .home-outro__text {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--text-slate-400);
}

.page-home .home-outro__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-outro__list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 56, 104, 0.6);
  font-size: var(--step-0);
  color: var(--text-slate-100);
  word-break: break-word;
}

.page-home .home-outro__k {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--text-slate-400);
}

.page-home .home-outro__legal {
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .home-outro__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .home-outro__links a {
  color: var(--signal-cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 240, 200, 0.35);
  font-size: var(--step-0);
}

.page-home .home-outro__icp,
.page-home .home-outro__domain {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-slate-400);
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 640px) {
  .page-home .home-rail {
    grid-auto-columns: minmax(320px, 58%);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .home-hero__visual {
    aspect-ratio: 4 / 5;
    min-height: 520px;
  }

  .page-home .home-rail {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    overflow-x: visible;
    padding-bottom: 4px;
    scroll-snap-type: none;
  }

  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .home-stat:nth-child(2) {
    margin-top: 30px;
  }

  .page-home .home-stat:nth-child(4) {
    margin-top: 30px;
  }

  .page-home .home-archive__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-home .home-support__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-outro__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-home .home-rail {
    gap: clamp(20px, 2.2vw, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__line,
  .page-home .home-hero__area,
  .page-home .home-hero__dots circle {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .page-home .home-hero__actions .btn,
  .page-home .home-rail__card,
  .page-home .home-rail__link::after,
  .page-home .home-support__link::after,
  .page-home .home-archive__cta {
    transition: none;
  }
}
