.page-home {
  --home-gap: 20px;
  --home-pad: 18px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .home-layout {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--home-pad) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

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

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

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

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  left: -30%;
  right: -30%;
  height: 460px;
  background:
    radial-gradient(58% 100% at 28% 0%, rgba(47, 225, 214, 0.16), transparent 68%),
    radial-gradient(52% 100% at 88% 8%, rgba(255, 107, 74, 0.20), transparent 70%);
  pointer-events: none;
}

.page-home .home-hero__ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .home-hero__ctx .mono {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.page-home .home-hero__grid {
  display: grid;
  gap: 24px;
}

.page-home .home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 8.6vw, var(--fs-1));
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}

.page-home .home-hero__sub {
  margin: 0 0 22px;
  max-width: 30ch;
  font-size: var(--fs-4);
  line-height: 1.8;
  color: var(--muted);
}

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

.page-home .home-hero__visual {
  margin: 0;
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 31, 0.05) 30%, rgba(6, 17, 31, 0.75) 100%);
  pointer-events: none;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
}

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

.page-home .home-chapters__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 41, 61, 0.45);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.page-home .home-chapters__link:hover,
.page-home .home-chapters__link:focus-visible {
  border-color: var(--coral);
  background: rgba(255, 107, 74, 0.12);
  transform: translateY(-2px);
}

.page-home .home-chapters__num {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .home-wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 24px;
}

.page-home .home-wave path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
  opacity: 0.45;
  animation: home-wave-drift 12s linear infinite;
}

.page-home .home-wave path:last-child {
  stroke: var(--coral);
  opacity: 0.28;
  animation-delay: -6s;
}

@keyframes home-wave-drift {
  0% { stroke-dasharray: 6 10; stroke-dashoffset: 0; }
  100% { stroke-dasharray: 6 10; stroke-dashoffset: -160; }
}

/* ---------- 通用区块 ---------- */
.page-home .home-sec {
  position: relative;
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.page-home .home-sec__head {
  margin: 0 0 22px;
}

.page-home .home-sec__head--flush {
  margin-bottom: 18px;
}

.page-home .home-sec__idx {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 10px;
}

.page-home .home-sec h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 5.4vw, var(--fs-2));
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-sec__lead {
  margin: 0;
  max-width: 40ch;
  font-size: var(--fs-4);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-more {
  margin: 20px 0 0;
}

.page-home .home-more a {
  display: inline-block;
  color: var(--cyan);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 225, 214, 0.35);
  padding-bottom: 2px;
}

.page-home .home-more a:hover,
.page-home .home-more a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ---------- 02 入口 ---------- */
.page-home .home-entry__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-entry__item {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-m);
  background: linear-gradient(160deg, rgba(22, 41, 61, 0.7), rgba(12, 31, 51, 0.55));
}

.page-home .home-entry__item:nth-child(2) {
  border-left-color: var(--cyan);
  margin-left: 10px;
}

.page-home .home-entry__item:nth-child(3) {
  border-left-color: var(--amber);
  margin-left: 20px;
}

.page-home .home-entry__title {
  margin: 0 0 8px;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

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

/* ---------- 03 版本 ---------- */
.page-home .home-ver {
  overflow: hidden;
}

.page-home .home-ver__bg {
  position: absolute;
  top: -10px;
  right: -60px;
  width: 260px;
  margin: 0;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-ver__bg img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.page-home .home-ver > *:not(.home-ver__bg) {
  position: relative;
  z-index: 1;
}

.page-home .home-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: ver;
}

.page-home .home-timeline__node {
  position: relative;
  padding: 16px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(12, 31, 51, 0.65);
  transition: border-color 200ms ease, background 200ms ease;
}

.page-home .home-timeline__node::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 225, 214, 0.14);
}

.page-home .home-timeline__node--now {
  border-color: rgba(255, 107, 74, 0.55);
  background: rgba(255, 107, 74, 0.09);
}

.page-home .home-timeline__node--now::before {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.18);
}

.page-home .home-timeline__node:hover {
  border-color: var(--cyan);
  background: rgba(22, 41, 61, 0.8);
}

.page-home .home-timeline__tag {
  display: block;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.page-home .home-timeline__node--now .home-timeline__tag {
  color: var(--coral);
}

.page-home .home-timeline__title {
  display: block;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text);
}

.page-home .home-timeline__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-ver__foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-ver__foot .mono {
  color: var(--text);
  font-size: 15px;
}

/* ---------- 04 记录与导出 ---------- */
.page-home .home-records__grid {
  display: grid;
  gap: 22px;
}

.page-home .home-records__fig {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--slate);
}

.page-home .home-records__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.page-home .home-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.page-home .home-cards__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.page-home .home-cards__item--red {
  background: var(--red);
  box-shadow: inset 0 0 0 1px rgba(6, 17, 31, 0.35);
}

.page-home .home-cards__item--amber {
  background: var(--amber);
  color: var(--ink);
}

.page-home .home-cards__tip {
  flex: 1 1 160px;
  min-width: 140px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.page-home .home-facts li {
  background: var(--slate);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-facts__v {
  font-size: 20px;
  color: var(--cyan);
  line-height: 1.2;
}

.page-home .home-facts__k {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

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

.page-home .home-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.page-home .home-chips li.is-on {
  border-color: var(--coral);
  color: var(--text);
  background: rgba(255, 107, 74, 0.14);
}

/* ---------- 05 小屏 ---------- */
.page-home .home-mobile__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .home-points li {
  position: relative;
  padding: 9px 12px 9px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 14px;
  color: var(--text);
  background: rgba(22, 41, 61, 0.5);
}

.page-home .home-points li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .home-mobile__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 2px solid var(--coral);
}

.page-home .home-stat__num {
  font-size: 24px;
  line-height: 1.1;
  color: var(--text);
}

.page-home .home-stat__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-phone {
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 41, 61, 0.95), rgba(12, 31, 51, 0.95));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.page-home .home-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
}

/* ---------- 06 信任与专题 ---------- */
.page-home .home-trust__stats {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.page-home .home-trust__stats li {
  background: var(--ink-2);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-trust__num {
  font-size: 22px;
  line-height: 1.15;
  color: var(--coral);
}

.page-home .home-trust__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

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

.page-home .home-trust__notes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-trust__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.page-home .home-topics__heading {
  margin: 0 0 12px;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--text);
}

.page-home .home-topics {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.page-home .home-topics__item {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--ink-2);
  transition: background 200ms ease;
}

.page-home .home-topics__item:hover {
  background: var(--slate);
}

.page-home .home-topics__tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .home-topics__title {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
}

.page-home .home-topics__title:hover,
.page-home .home-topics__title:focus-visible {
  color: var(--coral);
}

.page-home .home-topics__meta {
  font-size: 13px;
  color: var(--muted);
}

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

.page-home .home-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.page-home .home-links a:hover,
.page-home .home-links a:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home {
    --home-pad: 28px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-hero__visual img {
    aspect-ratio: 16 / 9;
  }

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

  .page-home .home-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .page-home .home-topics__item {
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 16px;
  }

  .page-home .home-topics__tag {
    grid-row: 1 / span 2;
  }

  .page-home .home-topics__meta {
    grid-column: 2;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-top: 40px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    gap: 32px;
  }

  .page-home .home-hero__lead {
    align-self: center;
  }

  .page-home .home-hero__visual img {
    aspect-ratio: 4 / 5;
    height: 100%;
  }

  .page-home .home-chapters {
    margin-top: 32px;
    gap: 10px;
  }

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

  .page-home .home-entry__item:nth-child(2) {
    margin-left: 0;
    margin-top: 18px;
  }

  .page-home .home-entry__item:nth-child(3) {
    margin-left: 0;
    margin-top: 36px;
  }

  .page-home .home-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 14px;
    position: relative;
  }

  .page-home .home-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1px;
    background: linear-gradient(90deg, var(--line) 0%, var(--cyan) 45%, var(--coral) 100%);
    z-index: 0;
  }

  .page-home .home-timeline__node {
    padding: 20px 16px 16px;
    z-index: 1;
  }

  .page-home .home-timeline__node::before {
    left: 16px;
    top: -14px;
  }

  .page-home .home-records__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 32px;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
  }

  .page-home .home-phone {
    max-width: 300px;
  }

  .page-home .home-ver__bg {
    width: 380px;
    right: -80px;
    top: -30px;
    opacity: 0.3;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-pad: 32px;
  }

  .page-home .home-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 28px;
    padding-bottom: 96px;
  }

  .page-home .home-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 96px;
    align-self: start;
    padding-top: 46px;
    border-right: 1px solid var(--line);
    min-height: 240px;
  }

  .page-home .home-rail__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .page-home .home-rail__item {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 0 8px 12px;
    border-left: 2px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
  }

  .page-home .home-rail__item:hover,
  .page-home .home-rail__item:focus-visible {
    color: var(--text);
    border-left-color: var(--cyan);
  }

  .page-home .home-rail__item.is-active {
    color: var(--coral);
    border-left-color: var(--coral);
  }

  .page-home .home-sec {
    padding-top: 56px;
    margin-top: 44px;
  }
}

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

  .page-home .home-chapters__link {
    transition: none;
  }

  .page-home .home-chapters__link:hover,
  .page-home .home-chapters__link:focus-visible {
    transform: none;
  }
}
