.page-home {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  color: var(--ivory);
  margin: 0;
}

.page-home h1 {
  font-size: clamp(30px, 6.4vw, 56px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home h2 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home h3 {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 14px;
}

.page-home .lede {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-deep);
}

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

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(30px, 5vw, 64px) 0 clamp(36px, 6vw, 76px);
  background:
    radial-gradient(90% 70% at 88% -12%, rgba(212, 164, 76, 0.18), transparent 62%),
    radial-gradient(70% 60% at -10% 110%, rgba(143, 163, 173, 0.12), transparent 66%);
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

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

.page-home .hero__facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-home .hero__facts li {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .hero__facts .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 5px;
}

.page-home .hero__visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: var(--panel-deep);
  box-shadow: 0 24px 60px -40px rgba(212, 164, 76, 0.6);
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-home .chapter-rail {
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .chapter-rail__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin: 0 0 12px;
}

.page-home .chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.page-home .chapter-item a {
  display: block;
  height: 100%;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(165deg, rgba(18, 38, 58, 0.92), rgba(11, 27, 43, 0.92));
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .chapter-item a:hover,
.page-home .chapter-item a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  background: linear-gradient(165deg, rgba(212, 164, 76, 0.16), rgba(11, 27, 43, 0.96));
}

.page-home .chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-home .chapter-name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--ivory);
}

.page-home .chapter-note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- 双卡 ---------- */
.page-home .dual {
  padding: clamp(40px, 7vw, 88px) 0;
}

.page-home .dual__head {
  max-width: 680px;
}

.page-home .dual__grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 3vw, 36px);
}

.page-home .dual-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
}

.page-home .dual-card--gold {
  background: linear-gradient(155deg, rgba(212, 164, 76, 0.13), rgba(18, 38, 58, 0.96) 58%);
  border: 1px solid var(--line-gold);
}

.page-home .dual-card--steel {
  background: linear-gradient(155deg, rgba(143, 163, 173, 0.16), rgba(15, 33, 51, 0.96) 58%);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.page-home .dual-card--steel:hover {
  border-color: rgba(143, 163, 173, 0.5);
}

.page-home .dual-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .dual-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .route-compare {
  display: grid;
  gap: 8px;
}

.page-home .route-compare__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  background: rgba(11, 27, 43, 0.6);
  font-size: 13px;
}

.page-home .route-compare__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .route-compare__val {
  flex: 1 1 150px;
  color: var(--mist);
}

.page-home .route-compare__mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

.page-home .route-compare__row--new {
  border-color: var(--line-gold);
  background: rgba(212, 164, 76, 0.12);
}

.page-home .route-compare__row--new .route-compare__key,
.page-home .route-compare__row--new .route-compare__mark {
  color: var(--amber);
}

.page-home .route-compare__row--new .route-compare__val {
  color: var(--ivory);
}

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

.page-home .dual-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .dual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.page-home .dual-card--steel .dual-list li::before {
  background: var(--steel);
}

/* ---------- 帮助索引时间轴 ---------- */
.page-home .index {
  padding: clamp(40px, 7vw, 88px) 0;
  background: linear-gradient(180deg, rgba(18, 38, 58, 0.6), transparent 65%);
}

.page-home .index__head {
  display: grid;
  gap: 20px;
  align-items: end;
}

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

.page-home .index__legend li {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  color: var(--steel);
  background: rgba(11, 27, 43, 0.55);
}

.page-home .index__body {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(26px, 4vw, 42px);
}

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

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-gold), var(--line-soft));
}

.page-home .timeline__item {
  position: relative;
  margin-bottom: 12px;
}

.page-home .timeline__item:last-child {
  margin-bottom: 0;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 164, 76, 0.16);
}

.page-home .timeline__card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home .timeline__card:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.page-home .timeline__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.page-home .timeline .date-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.page-home .timeline .tag {
  font-size: 11.5px;
}

.page-home .timeline__card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.page-home .timeline__card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .index__figure figcaption,
.page-home .flow__media figcaption {
  padding: 12px 14px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 版本与条款 ---------- */
.page-home .versions {
  padding: clamp(40px, 7vw, 88px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(15, 33, 51, 0.92), rgba(11, 27, 43, 0.97));
}

.page-home .versions__stats {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
  grid-template-columns: 1fr;
}

.page-home .stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(18, 38, 58, 0.7);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .stat__label {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .compare-wrap {
  margin-top: clamp(22px, 3vw, 32px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(18, 38, 58, 0.62);
}

.page-home .compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.page-home .compare caption {
  text-align: left;
  padding: 14px 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .compare th,
.page-home .compare td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .compare thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .compare tbody th {
  font-weight: 600;
  color: var(--ivory);
}

.page-home .compare td {
  color: var(--mist);
}

.page-home .compare tr:last-child th,
.page-home .compare tr:last-child td {
  border-bottom: none;
}

.page-home .compare .is-changed {
  background: rgba(143, 163, 173, 0.14);
  box-shadow: inset 3px 0 0 var(--steel);
}

.page-home .compare .is-new {
  background: rgba(212, 164, 76, 0.12);
  box-shadow: inset 3px 0 0 var(--gold);
  color: var(--amber);
}

.page-home .versions__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--steel);
}

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

/* ---------- 联络分流 ---------- */
.page-home .flow {
  padding: clamp(40px, 7vw, 88px) 0;
}

.page-home .flow__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.page-home .flow__list {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .flow__list li {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-left: 2px solid var(--line-gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(18, 38, 58, 0.6);
}

.page-home .flow__list strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ivory);
}

.page-home .flow__list span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .flow__media {
  margin: 0;
}

/* ---------- 断点 ---------- */
@media (min-width: 520px) {
  .page-home .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 880px) {
  .page-home .dual__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .page-home .index__head {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

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

@media (min-width: 940px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .index__body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .index__figure {
    position: sticky;
    top: 96px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .chapter-item a,
  .page-home .timeline__card,
  .page-home .dual-card--steel {
    transition: none;
  }

  .page-home .chapter-item a:hover,
  .page-home .timeline__card:hover {
    transform: none;
  }
}
