.page-home {
  --home-pad: clamp(44px, 7vw, 88px);
  --home-line: var(--edge);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 52px) 0 clamp(38px, 6vw, 76px);
  border-bottom: 1px solid var(--edge);
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(255, 138, 61, 0.16), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(79, 191, 160, 0.14), transparent 66%),
    var(--ink);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.26;
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: min(560px, 82%);
  height: 128%;
  background: linear-gradient(160deg, rgba(19, 41, 61, 0.95), rgba(10, 26, 42, 0.15));
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 86%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.page-home .hero-title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .hero-lead {
  margin: 16px 0 0;
  max-width: 48ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--mist);
}

.page-home .hero-changes {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--edge);
  display: grid;
  gap: 14px;
}

.page-home .hero-change {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hero-change b {
  color: var(--paper);
  font-weight: 700;
}

.page-home .hero-change-no {
  padding-top: 3px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

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

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

.page-home .hero-figure {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-home .hero-figure::after {
  content: "网格示意";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(10, 26, 42, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--celadon);
  position: absolute;
}

.page-home .hero-cap {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.page-home .figure {
  position: relative;
}

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

.page-home .figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(10, 26, 42, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

/* ---------- 章节骨架 ---------- */
.page-home .chapter-block {
  padding: var(--home-pad) 0;
  border-bottom: 1px solid var(--edge);
}

.page-home .chapter-wrap {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.page-home .chapter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .chapter-no {
  line-height: 0.9;
  color: var(--edge);
  transition: color 240ms var(--ease);
}

.page-home .chapter-block.is-active .chapter-no {
  color: var(--amber);
}

.page-home .chapter-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.page-home .chapter-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}

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

/* ---------- 卡片 ---------- */
.page-home .why-grid {
  display: grid;
  gap: var(--gap);
}

.page-home .why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 24px);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-home .why-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--paper);
}

.page-home .why-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .why-figure {
  margin: 0 0 4px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--celadon);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 191, 160, 0.45);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .link-more::after {
  content: "→";
}

.page-home .link-more:hover,
.page-home .link-more:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(255, 138, 61, 0.6);
}

@media (hover: hover) {
  .page-home .why-card:hover {
    transform: translateY(-4px);
  }
}

/* ---------- 步骤 ---------- */
.page-home .steps-layout {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

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

.page-home .step {
  position: relative;
  padding: 2px 0 2px 20px;
  border-left: 1px solid var(--edge);
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--celadon);
}

.page-home .step-no {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--celadon);
}

.page-home .step h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--paper);
}

.page-home .step p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .step-figure {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
}

/* ---------- 通栏公告 ---------- */
.page-home .band {
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background:
    linear-gradient(96deg, rgba(255, 138, 61, 0.16), rgba(19, 41, 61, 0.92) 58%),
    var(--ink-deep);
}

.page-home .band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}

.page-home .band-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .band-text strong {
  color: var(--paper);
  font-weight: 700;
}

.page-home .band-link {
  flex: none;
}

/* ---------- 数据 ---------- */
.page-home .chapter-block--stats {
  background: linear-gradient(180deg, rgba(19, 41, 61, 0.72), rgba(10, 26, 42, 0.4));
}

.page-home .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--ink-deep);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--amber);
}

.page-home .stat-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog);
}

.page-home .facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 22px;
  border-right: 1px solid var(--edge);
}

.page-home .facts li:last-child {
  border-right: 0;
  padding-right: 0;
}

.page-home .facts .mono {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--celadon);
}

/* ---------- 分类速览（纸白区） ---------- */
.page-home .chapter-block--paper {
  background: var(--paper);
  color: var(--ink-text);
  border-bottom: 1px solid var(--hair-line);
}

.page-home .chapter-block--paper .chapter-no {
  color: #C7BCA8;
}

.page-home .chapter-block--paper.is-active .chapter-no {
  color: var(--clay);
}

.page-home .chapter-block--paper .chapter-kicker {
  color: var(--clay);
}

.page-home .chapter-block--paper .chapter-title {
  color: var(--ink-text);
}

.page-home .tree-figure {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--hair-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rice);
}

.page-home .tree-figure figcaption {
  background: rgba(20, 33, 46, 0.82);
  color: var(--paper);
}

.page-home .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hair-line);
  border: 1px solid var(--hair-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .cat-item {
  display: grid;
  gap: 5px;
  padding: 15px 16px 17px;
  background: var(--rice);
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease);
}

.page-home .cat-no {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--clay);
}

.page-home .cat-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-text);
}

.page-home .cat-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4A5560;
}

.page-home .cat-item:hover {
  background: #EFE9DD;
  box-shadow: inset 3px 0 0 var(--celadon);
}

/* ---------- 问答 ---------- */
.page-home .faq {
  border-top: 1px solid var(--edge);
}

.page-home .faq-item {
  border-bottom: 1px solid var(--edge);
}

.page-home .faq-q {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--paper);
}

.page-home .faq-q::-webkit-details-marker {
  display: none;
}

.page-home .faq-q::before {
  content: "+";
  flex: none;
  width: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--celadon);
}

.page-home .faq-item[open] .faq-q::before {
  content: "−";
  color: var(--amber);
}

.page-home .faq-a {
  padding: 0 0 18px 28px;
}

.page-home .faq-a p {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .faq-more {
  margin-top: 22px;
}

/* ---------- 下一步 ---------- */
.page-home .next-grid {
  display: grid;
  gap: var(--gap);
}

.page-home .next-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--ink-deep);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.page-home .next-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--paper);
}

.page-home .next-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .next-card .tag {
  align-self: flex-start;
}

@media (hover: hover) {
  .page-home .next-card:hover {
    transform: translateY(-4px);
    border-color: var(--celadon);
  }
}

.page-home .next-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

.page-home .next-note a {
  color: var(--celadon);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 191, 160, 0.45);
}

.page-home .next-note a:hover {
  color: var(--amber);
  border-bottom-color: rgba(255, 138, 61, 0.6);
}

/* ---------- 中等屏幕 ---------- */
@media (min-width: 760px) {
  .page-home .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .why-card--figure {
    transform: translateY(24px);
  }

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

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

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

  .page-home .next-card:nth-child(2) {
    transform: translateY(20px);
  }

  @media (hover: hover) {
    .page-home .next-card:nth-child(2):hover {
      transform: translateY(16px);
    }
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .hero-visual {
    margin-top: 32px;
  }

  .page-home .chapter-wrap {
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
  }

  .page-home .chapter {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-home .steps-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .page-home .step-figure {
    position: sticky;
    top: 96px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .why-card,
  .page-home .next-card,
  .page-home .chapter-no,
  .page-home .cat-item,
  .page-home .link-more {
    transition: none;
  }

  .page-home .why-card--figure,
  .page-home .next-card:nth-child(2) {
    transform: none;
  }
}
