.page-home {
  --home-rail-top: 64px;
  --home-ink-soft: #5A7186;
  --home-gold-ink: #8A6114;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home .section {
  scroll-margin-top: calc(var(--home-rail-top) + 56px);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding: clamp(26px, 5vw, 58px) 0 0;
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(217, 164, 65, .10), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, var(--ink) 78%);
  position: relative;
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  padding-bottom: clamp(30px, 5vw, 56px);
}

.page-home .hero-copy h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 8.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: .04em;
  font-weight: 800;
  margin: .28em 0 .42em;
  color: var(--paper);
}

.page-home .hero-copy h1 small {
  display: block;
  font-size: clamp(.86rem, 2.6vw, 1.06rem);
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--mist);
  margin-top: 1em;
}

.page-home .hero-copy .lede {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2.7vw, 1.1rem);
  line-height: 1.9;
  color: #DCE4EB;
  max-width: 54ch;
}

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

.page-home .hero-note {
  margin-top: 22px;
  padding-left: 13px;
  border-left: 2px solid var(--amber);
  font-size: .84rem;
  line-height: 1.75;
  color: var(--mist);
  max-width: 40ch;
}

.page-home .hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .hero-shot {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-home .hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.page-home .hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 78% 22%, rgba(217, 164, 65, .16), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(11, 31, 51, .62) 100%);
  pointer-events: none;
}

.page-home .hero-card {
  position: relative;
  z-index: 2;
  margin: -58px 0 0 clamp(10px, 4%, 30px);
  max-width: 320px;
  padding: 15px 17px;
  background: rgba(18, 48, 74, .94);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--amber);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.page-home .hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.page-home .hero-card-state {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--ok);
}

.page-home .hero-card-title {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 4px;
}

.page-home .hero-card-meta {
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--mist);
  margin: 0;
}

.page-home .signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .signal-strip li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 数据条 */
.page-home .stat-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .stat-rail li {
  background: var(--ink);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .stat-num {
  font-family: var(--f-mono);
  font-size: clamp(1.3rem, 4vw, 1.72rem);
  letter-spacing: .02em;
  color: var(--amber);
  line-height: 1.1;
}

.page-home .stat-label {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 章节导航 ---------- */
.page-home .chapter-rail {
  position: sticky;
  top: var(--home-rail-top);
  z-index: 4;
  background: rgba(11, 31, 51, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.page-home .chapter-rail ol {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 9px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-home .chapter-rail ol::-webkit-scrollbar {
  display: none;
}

.page-home .chapter-rail a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.page-home .chapter-rail a .mono-text {
  font-size: .68rem;
  color: var(--line-2);
}

.page-home .chapter-rail a:hover,
.page-home .chapter-rail a:focus-visible,
.page-home .chapter-rail a[aria-current],
.page-home .chapter-rail a.is-active {
  color: var(--amber);
  border-color: rgba(217, 164, 65, .42);
  background: rgba(217, 164, 65, .08);
}

.page-home .chapter-rail a:hover .mono-text,
.page-home .chapter-rail a[aria-current] .mono-text,
.page-home .chapter-rail a.is-active .mono-text {
  color: var(--amber);
}

/* ---------- 指南章节（米白阅读区） ---------- */
.page-home .home-guide {
  --line: rgba(11, 31, 51, .14);
  --line-2: rgba(11, 31, 51, .3);
  --mist: var(--home-ink-soft);
  --accent-text: var(--home-gold-ink);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-home .guide-grid {
  display: grid;
  gap: clamp(26px, 4.5vw, 54px);
  align-items: center;
}

.page-home .guide-figure {
  margin: 0;
  min-width: 0;
}

.page-home .guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid rgba(11, 31, 51, .12);
}

.page-home .guide-figure figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--home-ink-soft);
}

.page-home .guide-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.42rem, 4.2vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: .03em;
  font-weight: 800;
  margin: .35em 0 .7em;
  color: var(--ink);
}

.page-home .guide-body > p {
  font-size: .96rem;
  line-height: 1.95;
  color: #24374A;
  margin: 0 0 1em;
}

.page-home .step-list {
  list-style: none;
  margin: 26px 0 18px;
  padding: 0;
  border-top: 1px solid rgba(11, 31, 51, .14);
}

.page-home .step-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(11, 31, 51, .14);
  font-size: .93rem;
  line-height: 1.85;
  color: #24374A;
}

.page-home .step-list .mono-text {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--home-gold-ink);
  padding-top: .25em;
}

.page-home .step-list strong {
  color: var(--ink);
  font-weight: 700;
}

.page-home .guide-tail {
  font-size: .88rem !important;
  line-height: 1.85;
  color: var(--home-ink-soft) !important;
  padding-left: 13px;
  border-left: 2px solid var(--amber);
  margin-bottom: 24px !important;
}

/* ---------- 两栏对照 ---------- */
.page-home .home-compare {
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(47, 158, 143, .10), transparent 62%),
    var(--night);
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-home .compare-head {
  max-width: 64ch;
}

.page-home .compare-head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4.2vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: .03em;
  font-weight: 800;
  margin: .35em 0 .6em;
  color: var(--paper);
}

.page-home .compare-head p {
  font-size: .95rem;
  line-height: 1.9;
  color: #CBD8E2;
  margin: 0;
}

.page-home .compare-figure {
  margin: 28px 0 0;
}

.page-home .compare-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  filter: saturate(.9);
}

.page-home .compare-grid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.page-home .compare-col {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .compare-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .compare-col-title .mono-text {
  font-size: .7rem;
  padding: 3px 8px;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: var(--r);
  color: var(--amber);
}

.page-home .compare-card {
  padding: 16px 17px;
  background: rgba(11, 31, 51, .55);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(217, 164, 65, .72);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.page-home .compare-num {
  margin: 0 0 7px;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .compare-card h3 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 1.02rem;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--paper);
}

.page-home .compare-card p:last-child {
  margin: 0;
  font-size: .86rem;
  line-height: 1.85;
  color: #C4D2DD;
}

.page-home .compare-scale {
  display: none;
}

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

/* ---------- 故障日志 ---------- */
.page-home .home-fault {
  background: var(--ink);
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-home .fault-head {
  max-width: 60ch;
  margin-bottom: 26px;
}

.page-home .fault-head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4.2vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: .03em;
  font-weight: 800;
  margin: .35em 0 .6em;
  color: var(--paper);
}

.page-home .fault-head p {
  font-size: .94rem;
  line-height: 1.9;
  color: var(--mist);
  margin: 0;
}

.page-home .fault-shell {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.page-home .fault-board {
  position: relative;
  min-width: 0;
}

.page-home .fault-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-home .fault-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .fault-tabs label {
  cursor: pointer;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .03em;
  color: var(--mist);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.page-home .fault-tabs label:hover {
  color: var(--paper);
  border-color: var(--line-2);
}

.page-home #fault-all:checked ~ .fault-tabs label[for="fault-all"],
.page-home #fault-open:checked ~ .fault-tabs label[for="fault-open"],
.page-home #fault-login:checked ~ .fault-tabs label[for="fault-login"],
.page-home #fault-slow:checked ~ .fault-tabs label[for="fault-slow"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.page-home #fault-all:focus-visible ~ .fault-tabs label[for="fault-all"],
.page-home #fault-open:focus-visible ~ .fault-tabs label[for="fault-open"],
.page-home #fault-login:focus-visible ~ .fault-tabs label[for="fault-login"],
.page-home #fault-slow:focus-visible ~ .fault-tabs label[for="fault-slow"] {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.page-home #fault-open:checked ~ .fault-list .fault-item:not(.fault-item--open),
.page-home #fault-login:checked ~ .fault-list .fault-item:not(.fault-item--login),
.page-home #fault-slow:checked ~ .fault-list .fault-item:not(.fault-item--slow) {
  display: none;
}

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

.page-home .fault-item {
  padding: 15px 16px 16px;
  background: rgba(18, 48, 74, .5);
  border: 1px solid var(--line);
  border-left: 2px solid var(--mist);
  border-radius: var(--r);
}

.page-home .fault-item--open {
  border-left-color: var(--signal);
}

.page-home .fault-item--login {
  border-left-color: var(--fault);
}

.page-home .fault-item--slow {
  border-left-color: var(--amber);
}

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

.page-home .fault-time {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .fault-item h3 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: .98rem;
  letter-spacing: .03em;
  font-weight: 700;
  color: var(--paper);
}

.page-home .fault-item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.85;
  color: #BECCD8;
}

.page-home .fault-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-home .fault-figure {
  margin: 0;
}

.page-home .fault-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  filter: saturate(.8) contrast(1.04);
}

.page-home .fault-advice {
  padding: 20px 18px;
  background: rgba(217, 164, 65, .07);
  border: 1px solid rgba(217, 164, 65, .34);
  border-radius: var(--r);
}

.page-home .fault-advice h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--amber);
}

.page-home .fault-advice p {
  margin: 0 0 16px;
  font-size: .86rem;
  line-height: 1.85;
  color: #CBD8E2;
}

/* ---------- 索引卡片墙 ---------- */
.page-home .home-index {
  background:
    radial-gradient(85% 65% at 88% 8%, rgba(47, 158, 143, .16), transparent 64%),
    var(--deep);
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-home .index-head {
  max-width: 56ch;
  margin-bottom: 28px;
}

.page-home .index-head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 4.2vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: .03em;
  font-weight: 800;
  margin: .35em 0 0;
  color: var(--paper);
}

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

.page-home .bento-item {
  padding: 20px 18px;
  background: rgba(11, 31, 51, .58);
  border: 1px solid rgba(143, 166, 184, .2);
  border-radius: var(--r);
  min-width: 0;
}

.page-home .bento-num {
  margin: 0 0 12px;
  font-size: .7rem;
  letter-spacing: .16em;
  color: rgba(232, 215, 176, .72);
}

.page-home .bento-item h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 1.04rem;
  line-height: 1.5;
  letter-spacing: .03em;
  font-weight: 700;
  color: var(--paper);
}

.page-home .bento-item p {
  margin: 0 0 8px;
  font-size: .86rem;
  line-height: 1.85;
  color: #C2D0DB;
}

.page-home .bento-item p:last-child {
  margin-bottom: 0;
}

.page-home .bento-a {
  border-top: 2px solid var(--amber);
}

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

.page-home .bento-list li {
  position: relative;
  padding-left: 18px;
  font-size: .84rem;
  line-height: 1.75;
  color: #C2D0DB;
}

.page-home .bento-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--amber);
}

.page-home .bento-contact {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-home .bento-contact p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .85rem;
}

.page-home .bento-label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--mist);
  min-width: 62px;
}

.page-home .bento-contact .mono-text {
  font-size: .84rem;
  color: var(--sand);
  word-break: break-all;
}

.page-home .bento-contact .copy-btn {
  padding: 3px 10px;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--amber);
  background: transparent;
  border: 1px solid rgba(217, 164, 65, .42);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.page-home .bento-contact .copy-btn:hover {
  background: rgba(217, 164, 65, .14);
}

.page-home .bento-icp {
  font-size: .76rem !important;
  letter-spacing: .06em;
  color: var(--mist) !important;
  margin-top: 14px !important;
}

/* ---------- 尾部引导 ---------- */
.page-home .home-cta {
  background: var(--night);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0;
}

.page-home .cta-inner {
  max-width: 62ch;
}

.page-home .home-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(1.34rem, 4vw, 1.9rem);
  letter-spacing: .04em;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 .6em;
  color: var(--paper);
}

.page-home .home-cta p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.9;
  color: #CBD8E2;
}

.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .stat-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
  }

  .page-home .guide-grid {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  }

  .page-home .compare-grid {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .page-home .compare-scale {
    display: block;
    align-self: stretch;
    width: 1px;
    margin: 8px auto 0;
    background:
      repeating-linear-gradient(
        to bottom,
        var(--line-2) 0,
        var(--line-2) 1px,
        transparent 1px,
        transparent 14px
      );
  }

  .page-home .compare-col:first-child {
    padding-right: 22px;
  }

  .page-home .compare-col:last-child {
    padding-left: 22px;
  }

  .page-home .fault-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .bento-a {
    grid-column: span 2;
    grid-row: span 2;
    padding: 26px 24px;
  }

  .page-home .bento-b {
    grid-column: span 2;
  }

  .page-home .bento-e {
    grid-column: span 2;
  }

  .page-home .bento-f {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .chapter-rail a,
  .page-home .fault-tabs label,
  .page-home .bento-contact .copy-btn {
    transition: none;
  }
}
