.page-home {
  --home-gap: clamp(20px, 3vw, 32px);
  --home-panel-pad: clamp(24px, 4vw, 44px);
  display: block;
  background: var(--ink-900);
  color: var(--text);
}

/* ============ 分屏首屏 ============ */
.page-home .hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 92% at 88% 10%, rgba(37, 227, 196, 0.13), transparent 58%),
    radial-gradient(96% 84% at 2% 96%, rgba(124, 107, 255, 0.12), transparent 62%),
    var(--ink-900);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 52, 80, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 52, 80, 0.42) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 76%);
  pointer-events: none;
}

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

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 5vw, 44px);
  padding-block: clamp(34px, 7vw, 88px);
}

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

.page-home .hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .hero__kicker .mono {
  color: var(--cyan);
  letter-spacing: 0.06em;
}

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

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 7.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-home .hero__title em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.68em;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .hero__lede {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

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

.page-home .hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.page-home .hero__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.page-home .hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

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

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

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

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}

.page-home .hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 23, 38, 0.08) 0%, rgba(10, 23, 38, 0.74) 100%);
  pointer-events: none;
}

.page-home .hero__hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  background: rgba(10, 23, 38, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.page-home .hero__track {
  display: block;
  width: 100%;
  height: 22px;
}

.page-home .hud-base {
  fill: var(--line);
}

.page-home .hud-up {
  fill: var(--cyan);
}

.page-home .hud-down {
  fill: var(--danger);
}

.page-home .hud-ticks {
  stroke: var(--ink-900);
  stroke-width: 24;
  stroke-dasharray: 3 7;
}

.page-home .hud-cursor {
  fill: var(--paper);
}

.page-home .hero__hud-meta {
  display: flex;
  gap: 22px;
  margin: 10px 0 0;
}

.page-home .hero__hud-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero__hud-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .hero__hud-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* ============ 同步节点 ============ */
.page-home .sync__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .sync__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-home .sync__unit {
  margin-left: 4px;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
}

/* ============ 可展开口径说明 ============ */
.page-home .brief {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-800);
}

.page-home .brief > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .brief > summary::-webkit-details-marker {
  display: none;
}

.page-home .brief > summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .brief[open] > summary::before {
  content: "–";
}

.page-home .brief__body {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .brief__body p {
  margin: 0 0 10px;
}

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

.page-home .brief--inline {
  margin: 18px 0;
  background: rgba(10, 23, 38, 0.55);
}

/* ============ 编号章节面板 ============ */
.page-home .chap {
  position: relative;
}

.page-home .chap__panel {
  position: relative;
  overflow: visible;
  padding: var(--home-panel-pad);
  padding-top: clamp(58px, 9vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(158deg, var(--panel) 0%, var(--ink-800) 100%);
}

.page-home .chap__panel::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, var(--cyan) 0 46%, transparent 46%);
  opacity: 0.85;
  pointer-events: none;
}

.page-home .chap__panel--narrow {
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--panel) 100%);
}

.page-home .chap__num {
  position: absolute;
  top: clamp(6px, 1.4vw, 16px);
  left: clamp(14px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: clamp(52px, 13vw, 102px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.page-home .chap__head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.page-home .chap__head .section-title {
  margin: 0 0 12px;
}

.page-home .chap__head .section-sub {
  margin: 0;
  max-width: 62ch;
}

.page-home .chap__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.page-home .chap__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

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

.page-home .chap__text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
}

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

.page-home .chap__text .link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 227, 196, 0.42);
  padding-bottom: 1px;
}

.page-home .chap__text .link:hover,
.page-home .chap__text .link:focus-visible {
  border-bottom-color: var(--cyan);
}

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

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

.page-home .chap__more {
  position: relative;
  z-index: 1;
  margin: clamp(20px, 3vw, 30px) 0 0;
}

/* ============ 步骤路径 ============ */
.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.page-home .steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  border-radius: var(--r);
  background: rgba(10, 23, 38, 0.5);
}

.page-home .steps__idx {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  color: var(--orange);
  background: var(--ink-900);
}

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

/* ============ 过渡视觉 ============ */
.page-home .trans-fig {
  margin: clamp(26px, 4vw, 42px) auto;
}

/* ============ 手机端使用 ============ */
.page-home .mob__panel {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(122deg, rgba(37, 227, 196, 0.08), transparent 46%),
    var(--ink-800);
}

.page-home .mob__panel .section-title {
  margin: 0 0 12px;
}

.page-home .mob__lede {
  margin: 0;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .mob__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.page-home .mob__item {
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: var(--r);
  background: rgba(10, 23, 38, 0.55);
}

.page-home .mob__idx {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .mob__item h3 {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.page-home .mob__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .mob__links {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .mob__links .link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 227, 196, 0.42);
}

.page-home .mob__links .link:hover,
.page-home .mob__links .link:focus-visible {
  border-bottom-color: var(--cyan);
}

/* ============ 收束提示 ============ */
.page-home .closing-line {
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ============ 滚动显现 ============ */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 320ms var(--ease),
    transform 320ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.page-home [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

  .page-home .sync__grid {
    gap: 16px;
  }
}

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

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

  .page-home .hero__hud {
    left: 20px;
    right: auto;
    width: min(360px, 78%);
    bottom: 20px;
    padding: 14px 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 4vw, 58px);
  }

  .page-home .hero__grid::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: calc(41.6% - 1px);
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
    transform: skewX(-7deg);
    pointer-events: none;
  }

  .page-home .hero__bleed {
    display: block;
    position: absolute;
    top: -12%;
    bottom: -12%;
    left: 30%;
    width: 24vw;
    background: linear-gradient(180deg, rgba(37, 227, 196, 0.1), rgba(10, 23, 38, 0) 78%);
    transform: skewX(-9deg);
    pointer-events: none;
  }

  .page-home .chap__body--wide {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .chap__body--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

@media (min-width: 1080px) {
  .page-home .chap:nth-of-type(even) .chap__panel {
    margin-left: clamp(0px, 3vw, 48px);
  }

  .page-home .chap:nth-of-type(odd) .chap__panel {
    margin-right: clamp(0px, 2.4vw, 34px);
  }

  .page-home .steps {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
}

.page-home {
  --reveal-delay: 0.3s;
}
