.page-home {
  --home-gap: clamp(1rem, 3vw, 1.6rem);
  --home-pad-block: clamp(2.75rem, 8vw, 5.5rem);
  display: block;
  color: var(--paper);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(120% 90% at 84% -14%, rgba(34, 211, 238, 0.20), transparent 58%),
    radial-gradient(95% 80% at -10% 110%, rgba(255, 107, 44, 0.18), transparent 62%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--orange) 78%, transparent);
  transform: skewY(-0.9deg);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 51, 0.62) 0%, rgba(11, 22, 51, 0.9) 58%, var(--ink-950) 100%);
}

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

.page-home .home-hero .breadcrumb {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  color: var(--steel);
}

.page-home .home-hero .breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

.page-home .home-hero .breadcrumb a:hover,
.page-home .home-hero .breadcrumb a:focus-visible {
  text-decoration: underline;
}

.page-home .home-hero .eyebrow {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--cyan-line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .home-hero__title {
  margin: 1.1rem 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 48ch;
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
  line-height: 1.8;
  color: rgba(244, 247, 251, 0.78);
}

/* ---------- 三条赛道 ---------- */
.page-home .home-tracks {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-track {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(21, 42, 82, 0.94), rgba(11, 22, 51, 0.9));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.page-home .home-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 4px;
  background: var(--cyan);
  transform: skewX(-24deg);
  transform-origin: left center;
}

.page-home .home-track:nth-child(2)::before {
  background: var(--orange);
}

.page-home .home-track__no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-track:nth-child(2) .home-track__no {
  color: var(--orange);
}

.page-home .home-track__kicker {
  margin: 0.7rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.page-home .home-track__title {
  margin: 0.55rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-track__body {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(244, 247, 251, 0.7);
}

.page-home .home-track__link {
  margin-top: 1.1rem;
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding: var(--home-pad-block) 0;
  border-top: 1px solid var(--line);
  background: var(--ink-950);
}

.page-home .home-section--alt {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
}

.page-home .home-section--deep {
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(255, 107, 44, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}

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

.page-home .home-section__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--orange);
}

.page-home .home-section__title {
  margin: 0.65rem 0 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-section__lede {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(244, 247, 251, 0.72);
}

.page-home .home-section__more {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
}

/* ---------- 版本进展 ---------- */
.page-home .home-versions {
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
  border-top: 1px solid var(--line-2);
}

.page-home .home-version {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: clamp(1.1rem, 3vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-version__no {
  justify-self: start;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--cyan-line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  white-space: nowrap;
}

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

.page-home .home-version__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .home-version__body {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(244, 247, 251, 0.68);
}

/* ---------- 设备入口 ---------- */
.page-home .home-devices__body {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

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

.page-home .home-device-panel {
  margin-top: 1.25rem;
}

.page-home .home-device__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .home-device__list li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line-2);
  font-size: 0.95rem;
  line-height: 1.72;
  color: rgba(244, 247, 251, 0.76);
}

.page-home .home-device__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-device__list .mono {
  color: var(--orange);
  font-size: 0.86rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.page-home .home-device-panel .btn {
  margin-top: 1.25rem;
}

/* ---------- 异常速查 ---------- */
.page-home .home-anomalies-layout {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
}

.page-home .home-anomalies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.page-home .home-anomaly {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .home-anomaly::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--amber);
}

.page-home .home-anomaly:nth-child(3)::before,
.page-home .home-anomaly:nth-child(5)::before {
  background: var(--orange);
}

.page-home .home-anomaly__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}

.page-home .home-anomaly__body {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(244, 247, 251, 0.68);
}

.page-home .home-anomaly__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-line);
}

.page-home .home-anomaly__link:hover,
.page-home .home-anomaly__link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 区域覆盖 ---------- */
.page-home .home-zones-layout {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
}

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

.page-home .home-zone {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.1), rgba(21, 42, 82, 0.55));
}

.page-home .home-zone__no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .home-zone__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

/* ---------- 求助通道 ---------- */
.page-home .home-help__grid {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .home-contact {
  display: grid;
  gap: 0.85rem;
}

.page-home .home-contact__item {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.page-home .home-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-home .home-contact__value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--paper);
  word-break: break-word;
}

.page-home .home-contact .btn {
  margin-top: 0.35rem;
}

.page-home .home-help__list-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .home-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .home-checklist li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 247, 251, 0.76);
}

.page-home .home-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}

.page-home .home-help__note {
  margin: 1.35rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--orange);
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(244, 247, 251, 0.66);
}

/* ---------- 图片容器 ---------- */
.page-home .home-figure {
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ink-800);
  overflow: hidden;
}

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

.page-home .home-figure figcaption {
  padding: 0.85rem 1.05rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--steel);
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-home .home-version {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .home-tracks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
  }

  .page-home .home-track:nth-child(2) {
    margin-top: 2.25rem;
  }

  .page-home .home-track:nth-child(3) {
    margin-top: 4.5rem;
  }

  .page-home .home-devices__body {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
  }

  .page-home .home-anomalies-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    align-items: start;
  }

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

  .page-home .home-anomaly:first-child {
    grid-column: span 2;
  }

  .page-home .home-zones-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .page-home .home-help__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .page-home .home-section__head {
    max-width: 58ch;
  }
}

@media (min-width: 1240px) {
  .page-home .home-track {
    padding: 1.6rem 1.5rem 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-track,
  .page-home .home-figure,
  .page-home .home-version {
    transition: none;
  }
}
