.page-home {
  --home-gap: clamp(18px, 3vw, 40px);
  --home-rail-w: clamp(170px, 20%, 250px);
  display: block;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-family: var(--font-display);
}

.page-home p {
  margin: 0;
}

.page-home ul,
.page-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding: clamp(22px, 3.6vw, 52px) 0 clamp(34px, 5vw, 76px);
  background:
    radial-gradient(115% 80% at 92% -10%, rgba(255, 107, 44, 0.12), transparent 60%),
    linear-gradient(180deg, var(--c-card) 0%, var(--c-paper) 100%);
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-rail {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background: var(--c-card);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.page-home .home-rail-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 8px;
}

.page-home .home-rail-list {
  display: grid;
  gap: 2px;
}

.page-home .home-rail-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 8px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-tool);
  text-decoration: none;
  color: var(--c-ink);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .home-rail-link:hover,
.page-home .home-rail-link:focus-visible {
  background: rgba(255, 107, 44, 0.09);
  border-left-color: var(--c-orange);
}

.page-home .home-rail-no {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-orange);
}

.page-home .home-rail-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue-900);
}

.page-home .home-version {
  margin-top: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tool);
  background: var(--c-paper);
  overflow: hidden;
}

.page-home .home-version-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  color: var(--c-muted);
}

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

.page-home .home-version-summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-orange);
}

.page-home .home-version[open] .home-version-summary::after {
  content: "−";
}

.page-home .home-version-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-card);
  background: var(--c-blue-900);
  padding: 2px 7px;
  border-radius: var(--radius-tool);
}

.page-home .home-version-body {
  padding: 12px 10px 14px;
  border-top: 1px solid var(--c-line);
  background: var(--c-card);
}

.page-home .home-version-lead {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.page-home .home-version-list {
  display: grid;
  gap: 7px;
}

.page-home .home-version-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-ink);
  line-height: 1.55;
}

.page-home .home-version-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-teal-ink);
  background: var(--c-teal-soft);
  border-radius: 4px;
  padding: 0 5px;
  align-self: start;
}

/* 首屏主区 */

.page-home .home-hero-main {
  min-width: 0;
}

.page-home .home-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--c-orange-ink);
  background: var(--c-orange-soft);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 16px;
}

.page-home .home-hero-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  color: var(--c-blue-900);
  max-width: 14em;
  margin-bottom: 14px;
}

.page-home .home-lead {
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--c-muted);
  max-width: 36em;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .home-search {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow:
    0 0 0 5px rgba(255, 107, 44, 0.1),
    var(--shadow-soft);
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.page-home .home-search-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.page-home .home-search-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-teal-ink);
}

.page-home .home-search-title {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--c-blue-900);
}

.page-home .home-search-text {
  font-size: 14.5px;
  color: var(--c-muted);
  max-width: 42em;
}

.page-home .home-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.page-home .home-search-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-blue-800);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-tool);
  padding: 4px 10px;
}

.page-home .home-search-chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-teal);
}

.page-home .home-search-meta {
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-line);
  padding-top: 11px;
  margin-bottom: 14px;
}

.page-home .home-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero-figure {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--c-card);
}

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

/* ---------- 章节通用 ---------- */

.page-home .home-section {
  padding: clamp(32px, 5.4vw, 76px) 0;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: 96px;
}

.page-home .home-band {
  padding: clamp(32px, 5.4vw, 76px) 0;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.055) 0%, rgba(11, 31, 58, 0) 72%);
}

.page-home .home-band::before {
  content: "";
  display: block;
  height: 3px;
  margin-bottom: clamp(26px, 4vw, 48px);
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-teal) 52%, var(--c-blue-900) 100%);
}

.page-home .home-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-chapter-no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--c-orange-soft);
  -webkit-text-stroke: 1.5px var(--c-orange);
  margin-bottom: 10px;
}

.page-home .home-section-title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--c-blue-900);
  max-width: 13em;
  margin-bottom: 8px;
}

.page-home .home-section-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}

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

/* ---------- 01 检索 ---------- */

.page-home .home-steps {
  display: grid;
  gap: 12px;
}

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  padding: 15px 17px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-step:hover {
  border-color: var(--c-orange);
  transform: translateY(-2px);
}

.page-home .home-step-no {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-tool);
  background: var(--c-orange-soft);
  color: var(--c-orange-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.page-home .home-step-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-blue-900);
  margin-bottom: 4px;
}

.page-home .home-step p {
  font-size: 14.5px;
  color: var(--c-muted);
}

.page-home .home-fields {
  background: var(--c-blue-900);
  border-radius: var(--radius-card);
  padding: clamp(16px, 2.4vw, 24px);
  color: var(--c-card);
}

.page-home .home-fields-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange-soft);
  margin-bottom: 12px;
}

.page-home .home-fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .home-fields-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-tool);
  border: 1px solid rgba(201, 212, 229, 0.35);
  color: var(--c-card);
}

.page-home .home-fields-list .is-live {
  border-color: var(--c-teal);
  color: var(--c-card);
}

.page-home .home-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
}

.page-home .home-fields-note {
  font-size: 13px;
  color: rgba(251, 252, 254, 0.72);
}

.page-home .home-topics {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  padding: 15px 17px;
}

.page-home .home-topics-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue-800);
  margin-bottom: 10px;
}

.page-home .home-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-home .home-topics-list li {
  font-size: 13px;
  color: var(--c-muted);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

/* ---------- 02 / 03 卡片 ---------- */

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

.page-home .home-entry-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  padding: clamp(15px, 2vw, 22px);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-entry-card:hover {
  border-color: var(--c-orange);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.page-home .home-entry-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-tool);
  background: var(--c-paper);
  object-fit: cover;
}

.page-home .home-entry-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  color: var(--c-blue-900);
}

.page-home .home-entry-text {
  font-size: 14.5px;
  color: var(--c-muted);
}

.page-home .home-more {
  border-top: 1px dashed var(--c-line);
  padding-top: 10px;
}

.page-home .home-more > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-blue-800);
}

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

.page-home .home-more > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-orange);
}

.page-home .home-more[open] > summary::after {
  content: "−";
}

.page-home .home-more p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--c-muted);
}

.page-home .home-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--c-orange);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease);
}

.page-home .home-link::after {
  content: "→";
  font-family: var(--font-mono);
}

.page-home .home-link:hover {
  color: var(--c-orange-deep);
}

/* ---------- 04 概览 ---------- */

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

.page-home .home-op {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-teal);
  border-radius: var(--radius-card);
  padding: 16px 17px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-op:hover {
  border-color: var(--c-orange);
  border-top-color: var(--c-orange);
  transform: translateY(-2px);
}

.page-home .home-op-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-blue-900);
  margin-bottom: 6px;
}

.page-home .home-op-unit {
  font-size: 0.6em;
  color: var(--c-orange);
  margin-left: 1px;
}

.page-home .home-op-label {
  font-size: 13.5px;
  color: var(--c-muted);
}

.page-home .home-cta {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius-card);
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(255, 107, 44, 0.16), transparent 62%),
    var(--c-blue-800);
  color: var(--c-card);
}

.page-home .home-cta-title {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 800;
  color: var(--c-card);
  margin-bottom: 6px;
}

.page-home .home-cta-copy p {
  font-size: 14px;
  color: rgba(251, 252, 254, 0.78);
  max-width: 44em;
}

.page-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */

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

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

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
  }

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

  .page-home .home-section-grid {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
  }

  .page-home .home-section-aside {
    position: sticky;
    top: 96px;
  }

  .page-home .home-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
