.page-home {
  --home-spine: 96px;
  --home-panel: 980px;
  --paper-ink: #2E3644;
  --paper-ink-soft: #5A6478;
  display: block;
  background: var(--c-ink);
  color: var(--c-mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(36px, 5vw, 68px) 0 clamp(48px, 6vw, 92px);
  background: var(--c-ink);
  border-bottom: 1px solid var(--c-grid);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 48, 74, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 48, 74, 0.6) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.55;
  pointer-events: none;
}

.page-home .home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "ctx"
    "title"
    "lede"
    "actions"
    "visual"
    "legend"
    "index";
  row-gap: 26px;
}

.page-home .hero-ctx { grid-area: ctx; margin: 0; color: var(--c-brand); }
.page-home .hero-title { grid-area: title; margin: 0; }
.page-home .hero-lede { grid-area: lede; margin: 0; }
.page-home .hero-actions { grid-area: actions; }
.page-home .home-hero-visual { grid-area: visual; }
.page-home .hero-legend { grid-area: legend; }
.page-home .hero-index { grid-area: index; }

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--c-paper);
}

.page-home .hero-title-line { display: block; }

.page-home .hero-title-line--accent {
  color: var(--c-brand);
  font-weight: 300;
}

.page-home .hero-lede {
  max-width: 44ch;
  color: var(--c-mist);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
}

.page-home .hero-actions {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-actions .btn { white-space: nowrap; }

.page-home .hero-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-lead);
}

.page-home .swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: 1px;
}

.page-home .swatch--brand { background: var(--c-brand); }
.page-home .swatch--cyan { background: var(--c-cyan); }
.page-home .swatch--amber { background: var(--c-amber); }

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--c-grid);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-lead);
}

.page-home .home-hero-visual {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 240px;
  background: var(--c-brand);
  overflow: hidden;
}

.page-home .home-hero-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 10px;
  background: var(--c-brand-deep);
}

.page-home .home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.92;
}

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "ctx     visual"
      "title   visual"
      "lede    visual"
      "actions visual"
      "legend  visual"
      "index   index";
    column-gap: clamp(32px, 4vw, 72px);
    row-gap: 24px;
  }

  .page-home .home-hero-visual { min-height: 320px; }
  .page-home .home-hero-visual img { min-height: 320px; }
}

/* ---------- 纵向通道 ---------- */
.page-home .home-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--c-ink);
}

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

@media (min-width: 1024px) {
  .page-home .home-flow {
    grid-template-columns: var(--home-spine) minmax(0, 1fr);
  }

  .page-home .home-spine {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
    height: calc(100vh - 128px);
    border-right: 1px solid var(--c-grid);
  }

  .page-home .spine-rail {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 0;
  }

  .page-home .spine-word {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.34em;
    color: var(--c-lead);
    text-transform: uppercase;
  }

  .page-home .spine-scale {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .page-home .spine-scale::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--c-grid);
    transform: translateX(-0.5px);
  }

  .page-home .spine-scale li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .spine-scale li::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    background: transparent;
    border: 1px solid var(--c-cyan);
  }

  .page-home .spine-scale li:nth-child(1)::before { background: var(--c-cyan); }
  .page-home .spine-scale li:nth-child(2)::before { background: rgba(43, 227, 208, 0.72); }
  .page-home .spine-scale li:nth-child(3)::before { background: rgba(43, 227, 208, 0.46); }
  .page-home .spine-scale li:nth-child(4)::before { background: rgba(243, 241, 234, 0.4); border-color: var(--c-paper); }
  .page-home .spine-scale li:nth-child(5)::before { background: rgba(243, 241, 234, 0.7); border-color: var(--c-paper); }
  .page-home .spine-scale li:nth-child(6)::before { background: var(--c-paper); border-color: var(--c-paper); }
}

.page-home .home-flow-body { min-width: 0; }

/* ---------- 区块通用 ---------- */
.page-home .flow-section {
  padding: clamp(64px, 7vw, 112px) var(--gutter);
  border-bottom: 1px solid var(--c-grid);
}

.page-home .flow-section:last-child { border-bottom: 0; }

.page-home .flow-section--hull { background: var(--c-hull); }

.page-home .flow-inner {
  max-width: var(--home-panel);
  margin: 0 auto;
}

.page-home .flow-section .eyebrow {
  color: var(--c-brand);
  margin-bottom: 14px;
}

.page-home .flow-section .section-title {
  margin: 0 0 28px;
  color: var(--c-paper);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .flow-copy {
  max-width: 40ch;
  margin: 0 0 18px;
}

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

.page-home .flow-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 860px) {
  .page-home .flow-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .flow-split--reverse .flow-copy { order: 2; }
  .page-home .flow-split--reverse .flow-figure { order: 1; }
}

.page-home .inline-link {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 227, 208, 0.4);
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.page-home .inline-link:hover,
.page-home .inline-link:focus-visible {
  color: var(--c-paper);
  border-bottom-color: var(--c-brand);
}

.page-home .inline-link--dark {
  color: var(--c-brand-deep);
  border-bottom-color: rgba(12, 54, 168, 0.35);
}

.page-home .inline-link--dark:hover,
.page-home .inline-link--dark:focus-visible {
  color: var(--c-brand);
  border-bottom-color: var(--c-brand);
}

/* ---------- 图片与说明牌 ---------- */
.page-home .flow-figure {
  margin: 0;
}

.page-home .flow-figure .figure-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-hull);
  border: 1px solid var(--c-grid);
}

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

.page-home .figure-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-lead);
}

.page-home .figure-caption-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  background: var(--c-brand);
  color: #FFFFFF;
}

/* ---------- 规格条 ---------- */
.page-home .spec-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--c-grid);
}

@media (min-width: 640px) {
  .page-home .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .page-home .spec-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.page-home .spec-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-grid);
}

@media (min-width: 640px) {
  .page-home .spec-item { padding: 18px 20px 18px 0; }
}

.page-home .spec-item dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-lead);
  margin-bottom: 6px;
}

.page-home .spec-item dd {
  margin: 0;
  color: var(--c-paper);
  font-size: 15px;
}

/* ---------- 记录标签 ---------- */
.page-home .record-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .record-tag {
  padding: 5px 14px;
  border: 1px solid var(--c-grid);
  color: var(--c-mist);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}

.page-home .record-tag:hover {
  border-color: var(--c-brand);
  color: var(--c-paper);
}

.page-home .record-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  background: var(--c-hull);
  border-left: 2px solid var(--c-amber);
  font-size: 15px;
  color: var(--c-mist);
}

.page-home .seq-badge {
  display: inline-block;
  min-width: 30px;
  padding: 2px 6px;
  text-align: center;
  border: 1px solid var(--c-amber);
  color: var(--c-paper);
  font-size: 13px;
}

/* ---------- 版本刻度 ---------- */
.page-home .cadence-scale {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--c-grid);
}

@media (min-width: 720px) {
  .page-home .cadence-scale { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.page-home .cadence-scale li {
  position: relative;
  padding: 20px 0 0;
}

.page-home .cadence-scale li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--c-cyan);
}

.page-home .cadence-scale li:nth-child(n + 7)::before { background: var(--c-paper); }

.page-home .cadence-num {
  font-size: 12px;
  color: var(--c-lead);
}

.page-home .cadence-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-lead);
}

/* ---------- 归档入口 ---------- */
.page-home .entry-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--c-grid);
  border: 1px solid var(--c-grid);
}

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

.page-home .entry-card {
  display: block;
  padding: 28px 24px;
  background: var(--c-ink);
  text-decoration: none;
  transition: background var(--dur-micro) var(--ease);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  background: var(--c-brand-deep);
}

.page-home .entry-index {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-brand);
  margin-bottom: 10px;
}

.page-home .entry-card:hover .entry-index { color: var(--c-cyan); }

.page-home .entry-title {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-paper);
  margin-bottom: 8px;
}

.page-home .entry-desc {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-lead);
}

.page-home .entry-card:hover .entry-desc { color: var(--c-mist); }

/* ---------- 纸白分区 ---------- */
.page-home .flow-section--paper {
  background-color: var(--c-paper);
  background-image:
    linear-gradient(to right, rgba(10, 14, 20, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 14, 20, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper-ink);
  border-bottom: 0;
}

.page-home .flow-section--paper .section-title { color: var(--c-ink); }

.page-home .flow-section--paper .eyebrow { color: var(--c-brand-deep); }

.page-home .flow-copy--paper { color: var(--paper-ink); }

.page-home .flow-copy--paper .mono { color: var(--c-ink); }

.page-home .contact-list {
  margin: 28px 0 0;
  border-top: 1px solid rgba(10, 14, 20, 0.16);
}

.page-home .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 14, 20, 0.16);
}

.page-home .contact-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-ink-soft);
  min-width: 84px;
}

.page-home .contact-row dd {
  margin: 0;
  color: var(--c-ink);
  font-size: 15px;
}

.page-home .flow-section--paper .flow-figure .figure-frame {
  background: #FFFFFF;
  border-color: rgba(10, 14, 20, 0.16);
}

.page-home .flow-section--paper .figure-caption { color: var(--paper-ink-soft); }

/* ---------- 焦点可见性 ---------- */
.page-home a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .record-tag,
  .page-home .entry-card,
  .page-home .inline-link {
    transition: none;
  }
}
