.page-home {
  --home-gutter: clamp(18px, 4vw, 56px);
  --home-hairline: rgba(176, 122, 60, 0.42);
  display: block;
  background: var(--ink);
  color: var(--mist);
  overflow-x: clip;
}

/* ---------- 右侧章节索引 ---------- */
.page-home .index-rail {
  display: none;
}

@media (min-width: 1280px) {
  .page-home .index-rail {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 9px;
    border-radius: 999px;
    background: rgba(14, 16, 19, 0.66);
    border: 1px solid var(--home-hairline);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.page-home .index-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--graphite);
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .index-link:hover,
.page-home .index-link.is-active {
  color: var(--ink);
  background: var(--ember-hi);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(74px, 11vw, 138px) 0 clamp(40px, 6vw, 76px);
  background:
    radial-gradient(120% 92% at 8% 0%, rgba(79, 195, 247, 0.12), transparent 62%),
    var(--ink);
}

.page-home .hero-slab {
  position: absolute;
  top: -16%;
  right: -20%;
  width: min(900px, 94%);
  height: 134%;
  z-index: 0;
  background: linear-gradient(148deg, var(--paper) 0%, var(--paper-2) 56%, rgba(232, 85, 45, 0.22) 100%);
  clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 6% 100%);
  opacity: 0.94;
}

@media (max-width: 899px) {
  .page-home .hero-slab {
    top: auto;
    bottom: -8%;
    right: -32%;
    width: 136%;
    height: 54%;
    clip-path: polygon(0 32%, 100% 0%, 100% 100%, 0 100%);
    opacity: 0.9;
  }
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: 1.04fr 0.96fr;
  }
}

.page-home .hero-ctx {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ice);
}

.page-home .hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .hero-lede {
  margin: 0 0 30px;
  max-width: 48ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
  color: rgba(245, 247, 250, 0.78);
}

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

.page-home .hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-hairline);
  box-shadow: var(--shadow);
  background: var(--ink-2);
}

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

/* ---------- 数据仪表盘 ---------- */
.page-home .hero-metrics {
  position: relative;
  z-index: 3;
  margin-top: clamp(46px, 7vw, 88px);
}

.page-home .metric-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-hairline);
  border: 1px solid var(--home-hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95);
}

@media (max-width: 759px) {
  .page-home .metric:last-child {
    grid-column: 1 / -1;
  }
}

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

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

.page-home .metric-num {
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--ember);
}

.page-home .metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .metric-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--graphite);
}

/* ---------- 章节通用 ---------- */
.page-home .chapter {
  position: relative;
  padding: clamp(58px, 9vw, 116px) 0;
}

.page-home .chapter--deep {
  background: var(--ink-2);
}

.page-home .chapter--paper {
  background: var(--paper);
  color: var(--sepia);
}

.page-home .chapter-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.4vw, 28px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

@media (min-width: 900px) {
  .page-home .chapter-head {
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .chapter-head .chapter-figure {
    grid-column: 2;
    margin-top: clamp(20px, 3vw, 34px);
  }
}

.page-home .chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: rgba(232, 85, 45, 0.3);
}

@supports (-webkit-text-stroke: 1px red) {
  .page-home .chapter-num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(232, 85, 45, 0.72);
  }
}

.page-home .chapter-num--sepia {
  color: rgba(36, 27, 22, 0.22);
}

@supports (-webkit-text-stroke: 1px red) {
  .page-home .chapter-num--sepia {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(176, 122, 60, 0.85);
  }
}

.page-home .chapter-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.page-home .chapter-kicker--sepia {
  color: var(--copper);
}

.page-home .chapter-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.18;
  color: var(--mist);
}

.page-home .chapter-title--sepia {
  color: var(--sepia);
}

.page-home .chapter-lede {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: rgba(245, 247, 250, 0.72);
}

.page-home .chapter-lede--sepia {
  color: #4d3d33;
}

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

.page-home .chapter-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 三大板块卡片 ---------- */
.page-home .board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}

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

.page-home .board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  color: var(--sepia);
  border-radius: var(--radius);
  border-top: 3px solid var(--ember);
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.9);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .board:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px -30px rgba(0, 0, 0, 0.95);
}

.page-home .board-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--sepia);
}

.page-home .board-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.3;
  color: var(--sepia);
}

.page-home .board-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #4d3d33;
}

.page-home .board-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 85, 45, 0.45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .board-link:hover {
  color: var(--ember-hi);
  border-color: var(--ember-hi);
}

/* ---------- 角色入口 ---------- */
.page-home .role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 22px);
}

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

.page-home .role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  background: rgba(242, 232, 216, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 195, 247, 0.6);
}

.page-home .role-tag {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--ice);
}

.page-home .role-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
  color: var(--mist);
}

.page-home .role-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(245, 247, 250, 0.72);
}

.page-home .role-more {
  margin-top: 4px;
  border-top: 1px solid rgba(176, 122, 60, 0.3);
  padding-top: 14px;
}

.page-home .role-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ember-hi);
}

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

.page-home .role-more summary::after {
  content: " +";
  font-family: var(--font-mono);
}

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

.page-home .role-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.7);
}

.page-home .role-steps a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 195, 247, 0.4);
}

.page-home .role-steps a:hover {
  color: var(--ember-hi);
  border-color: var(--ember-hi);
}

/* ---------- 档案横带 ---------- */
.page-home .band {
  padding: clamp(34px, 5vw, 58px) 0;
  background: var(--sepia);
  border-top: 1px solid var(--home-hairline);
  border-bottom: 1px solid var(--home-hairline);
}

.page-home .band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .band-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.page-home .band-text {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.85;
  color: var(--paper);
}

.page-home .band-grid .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .page-home .band-grid .btn {
    justify-self: end;
  }
}

/* ---------- 现行与归档 ---------- */
.page-home .version-table {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.page-home .version-caption {
  padding: 12px 16px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--copper);
}

.page-home .data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper);
}

.page-home .data-table th,
.page-home .data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.page-home .data-table thead th {
  background: var(--sepia);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.page-home .data-table td {
  color: #4d3d33;
  border-bottom: 1px solid rgba(36, 27, 22, 0.14);
}

.page-home .data-table .row-head {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--sepia);
  border-bottom: 1px solid rgba(36, 27, 22, 0.14);
  white-space: nowrap;
}

.page-home .data-table tbody tr:hover {
  background: rgba(232, 85, 45, 0.08);
}

.page-home .region-figure {
  margin: clamp(28px, 4vw, 48px) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176, 122, 60, 0.5);
  background: var(--sepia);
}

.page-home .region-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .region-figure figcaption {
  padding: 16px clamp(18px, 3vw, 26px);
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
  background: var(--sepia);
}

/* ---------- 服务响应 ---------- */
.page-home .service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--home-hairline);
  border: 1px solid var(--home-hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.page-home .service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--ink-2);
}

.page-home .service-key {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.page-home .service-val {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-word;
}

.page-home .service-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.4vw, 38px);
}

/* ---------- 收束横带 ---------- */
.page-home .closing {
  position: relative;
  border-top: 1px solid var(--home-hairline);
}

.page-home .closing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.page-home .closing-figure {
  margin: 0;
}

.page-home .closing-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  opacity: 0.85;
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-home .board,
  .page-home .role-card {
    transition: none;
  }
}
