.page-home {
  --home-rule: rgba(11, 42, 56, 0.16);
  --home-rule-light: rgba(248, 250, 251, 0.18);
  background: var(--paper);
  color: var(--ink-800);
  overflow-x: clip;
}

.page-home #version-compare,
.page-home #help-index,
.page-home #device-login,
.page-home #quick-paths {
  scroll-margin-top: 96px;
}

.page-home .mono {
  font-family: var(--font-mono);
}

/* ---------- 章节通用 ---------- */

.page-home .section {
  padding: 56px 0;
}

.page-home .section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 30px;
}

.page-home .section-head__num {
  flex: none;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .section-head__body {
  min-width: 0;
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 33px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}

.page-home .section-head__note {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .section-head--light .section-head__title {
  color: var(--white);
}

.page-home .section-head--light .section-head__note {
  color: rgba(248, 250, 251, 0.72);
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: 44px 0 56px;
  background: var(--ink-900);
  color: var(--white);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 240, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 240, 224, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(29px, 5.4vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.015em;
  color: var(--white);
}

.page-home .hero__title::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 20px;
  background: var(--cyan);
}

.page-home .hero__lede {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(248, 250, 251, 0.78);
}

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

.page-home .hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 22px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(37, 240, 224, 0.32);
}

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

.page-home .hero__fact-key {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .hero__fact-val {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--white);
}

.page-home .hero__figure {
  margin: 0;
  border: 1px solid rgba(37, 240, 224, 0.3);
  background: rgba(248, 250, 251, 0.03);
}

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

.page-home .hero__figure .media-frame__caption {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(248, 250, 251, 0.66);
  border-top: 1px solid rgba(248, 250, 251, 0.12);
}

/* ---------- 版本对照 ---------- */

.page-home .version-section {
  background: var(--paper);
}

.page-home .version__figure {
  margin: 0 0 34px;
  border: 1px solid var(--home-rule);
  background: var(--paper-2);
}

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

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

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

.page-home .timeline__card {
  height: 100%;
  padding: 22px 22px 24px;
  background: var(--white);
  border: 1px solid var(--home-rule);
  border-top: 3px solid var(--gray-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .timeline__card:hover {
  border-color: rgba(37, 240, 224, 0.6);
  border-top-color: var(--cyan);
  box-shadow: 0 8px 0 rgba(37, 240, 224, 0.14);
}

.page-home .timeline__item--v2 .timeline__card {
  border-top-color: var(--gold);
}

.page-home .timeline__item--v3 .timeline__card {
  border-top-color: var(--cyan);
}

.page-home .timeline__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-800);
}

.page-home .timeline__item--v3 .timeline__tag {
  color: var(--ink-700);
}

.page-home .timeline__title {
  margin: 6px 0 12px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-800);
}

.page-home .timeline__text {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.78;
  color: var(--gray);
}

.page-home .timeline__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--home-rule);
}

.page-home .timeline__meta-key {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.page-home .timeline__meta-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-800);
}

.page-home .timeline__item--v2 .timeline__meta-val {
  color: #A0742A;
}

.page-home .timeline__item--v3 .timeline__meta-val {
  color: #0E8C83;
}

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

.page-home .version__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--home-rule);
}

.page-home .version__link {
  font-size: 14.5px;
  color: var(--ink-700);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.page-home .version__link:hover {
  color: var(--ink-900);
  text-decoration-color: var(--gold);
}

/* ---------- 帮助索引 ---------- */

.page-home .help-section {
  background: var(--ink-800);
  color: var(--white);
}

.page-home .help__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .help__figure {
  margin: 0;
  border: 1px solid var(--home-rule-light);
}

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

.page-home .help__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(37, 240, 224, 0.32);
}

.page-home .help__grid .index-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(248, 250, 251, 0.16);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-home .help__grid .index-item:hover,
.page-home .help__grid .index-item:focus-visible {
  background: rgba(37, 240, 224, 0.07);
  color: var(--cyan);
}

.page-home .help__grid .index-item__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .help__grid .index-item__title {
  margin: 10px 0 6px;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

.page-home .help__grid .index-item__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(248, 250, 251, 0.66);
}

/* ---------- 换设备登录 ---------- */

.page-home .device-section {
  background: var(--paper-2);
}

.page-home .device__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.page-home .steps__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--home-rule);
}

.page-home .steps__num {
  padding-top: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .steps__title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-800);
}

.page-home .steps__text {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .device__aside {
  padding: 24px 22px 26px;
  background: var(--white);
  border: 1px solid var(--home-rule);
  border-top: 3px solid var(--gold);
}

.page-home .device__aside-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-800);
}

.page-home .device__aside-text {
  margin: 0 0 20px;
  font-size: 14.8px;
  line-height: 1.78;
  color: var(--gray);
}

/* ---------- 快速通道 ---------- */

.page-home .paths-section {
  background: var(--ink-900);
  color: var(--white);
}

.page-home .paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .path-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  border: 1px solid rgba(248, 250, 251, 0.18);
  background: rgba(248, 250, 251, 0.04);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  border-color: var(--cyan);
  background: rgba(37, 240, 224, 0.08);
  transform: translateY(-3px);
}

.page-home .path-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .path-card__title {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--white);
}

.page-home .path-card__text {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.74;
  color: rgba(248, 250, 251, 0.68);
}

.page-home .path-card__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .path-card:hover .path-card__go,
.page-home .path-card:focus-visible .path-card__go {
  color: var(--gold);
}

/* ---------- 收尾 ---------- */

.page-home .closing {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--white);
}

.page-home .closing__skyline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  pointer-events: none;
}

.page-home .closing__inner {
  position: relative;
  z-index: 1;
}

.page-home .closing__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 20px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.page-home .closing__stat {
  padding-top: 16px;
  border-top: 2px solid rgba(37, 240, 224, 0.4);
}

.page-home .closing__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(25px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.page-home .closing__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(248, 250, 251, 0.7);
}

.page-home .closing__note {
  margin: 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(248, 250, 251, 0.76);
}

.page-home .closing__note a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.page-home .closing__note a:hover {
  color: var(--cyan);
}

/* ---------- 微交互与可访问性 ---------- */

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

.page-home .copy-btn {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-800);
  background: transparent;
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .copy-btn:hover {
  background: var(--ink-800);
  color: var(--white);
}

.page-home .copy-btn[data-copied] {
  border-color: var(--gold);
  color: #8A6417;
  background: rgba(217, 164, 65, 0.16);
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-home .section {
    padding: 72px 0;
  }

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

  .page-home .help__grid .index-item {
    padding: 20px 24px 20px 0;
  }

  .page-home .help__grid .index-item:nth-child(odd) {
    border-right: 1px solid rgba(248, 250, 251, 0.16);
  }

  .page-home .help__grid .index-item:nth-child(even) {
    padding-right: 0;
    padding-left: 24px;
  }

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

@media (min-width: 900px) {
  .page-home .section {
    padding: 88px 0;
  }

  .page-home .hero {
    padding: 64px 0 84px;
  }

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

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

  .page-home .timeline__item:nth-child(1) {
    transform: translateY(0);
  }

  .page-home .timeline__item:nth-child(2) {
    transform: translateY(28px);
  }

  .page-home .timeline__item:nth-child(3) {
    transform: translateY(-12px);
  }

  .page-home .help__layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .device__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: start;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .timeline__item,
  .page-home .path-card,
  .page-home .timeline__card {
    transform: none !important;
    transition: none !important;
  }
}
</main>
