/* ============================================
   首页 page-home —— 框景首屏 + 连续画布
   ============================================ */

.page-home {
  --home-rail: 216px;
  --home-status: 292px;
  background: var(--void);
  color: var(--ink);
  overflow-x: clip;
}

/* ---------- 通用区块 ---------- */
.page-home .band {
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .band--deep {
  background: linear-gradient(180deg, var(--void) 0%, var(--deep) 24%, var(--deep) 76%, var(--void) 100%);
}

.page-home .band--closing {
  border-bottom: 0;
}

.page-home .band-head {
  max-width: 46em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .band-head h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .band-lead {
  margin: 16px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-dim);
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ============================================
   首屏：带刻度的窗口框景
   ============================================ */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 26px) var(--pad-x) clamp(32px, 5vw, 60px);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 16% 8%, rgba(7, 11, 28, 0.35) 0%, rgba(7, 11, 28, 0.94) 70%),
    linear-gradient(180deg, rgba(7, 11, 28, 0.4) 0%, var(--void) 96%);
}

.page-home .hero-frame {
  position: relative;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 51, 0.5) 0%, rgba(7, 11, 28, 0.74) 100%);
  backdrop-filter: blur(3px);
  box-shadow: var(--shadow-deep);
}

/* 刻度导轨 */
.page-home .hero-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 14px;
  right: 14px;
  height: 8px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    var(--steel) 0 1px,
    transparent 1px 26px
  );
  opacity: 0.85;
}

/* 右上角标 */
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-top-right-radius: var(--radius);
}

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

/* 左侧索引刻度 */
.page-home .hero-index-label {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-home .hero-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .hero-index-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .hero-index-list a:hover,
.page-home .hero-index-list a:focus-visible {
  color: var(--ink);
  border-left-color: var(--orange);
  background: rgba(255, 122, 47, 0.08);
  outline: none;
}

.page-home .hero-index-list .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* 中央入口速览 */
.page-home .hero-context {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.page-home .hero-center h1 {
  margin: 16px 0 0;
  max-width: 15em;
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero-lead {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-dim);
}

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

/* 右下悬挂状态面板 */
.page-home .hero-status {
  width: min(100%, var(--home-status));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  justify-self: start;
}

.page-home .status-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-home .status-list {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.page-home .status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-soft);
}

.page-home .status-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .status-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.page-home .status-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
}

/* ============================================
   入口索引
   ============================================ */
.page-home .entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.page-home .entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 20px clamp(16px, 3vw, 30px);
  border-bottom: 1px solid rgba(36, 28, 18, 0.13);
  transition: background 0.2s var(--ease);
}

.page-home .entry-row:last-child {
  border-bottom: 0;
}

.page-home .entry-row:hover {
  background: var(--cream-warm);
}

.page-home .entry-num {
  flex: 0 0 auto;
  width: 2.4em;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.page-home .entry-main {
  flex: 1 1 300px;
  min-width: 0;
}

.page-home .entry-main h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.page-home .entry-main h3 a {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 28, 18, 0.25);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .entry-main h3 a:hover,
.page-home .entry-main h3 a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
  outline: none;
}

.page-home .entry-main p {
  margin: 6px 0 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(36, 28, 18, 0.72);
}

.page-home .entry-row > .tag {
  flex: 0 0 auto;
  align-self: center;
}

/* ============================================
   分栏结构
   ============================================ */
.page-home .split {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.page-home .split-body h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .split-body p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-dim);
}

.page-home .split-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
}

/* 步骤列表 */
.page-home .steps {
  counter-reset: hs;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .steps li {
  counter-increment: hs;
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cyan);
  border-radius: 8px;
  background: var(--glass);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.page-home .steps li::before {
  content: counter(hs, decimal-leading-zero);
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .steps li strong {
  color: var(--ink);
  font-weight: 700;
}

/* ============================================
   本月更新要点
   ============================================ */
.page-home .update-grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-home .update-facts {
  display: grid;
  gap: 22px;
}

.page-home .fact {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 51, 0.85) 0%, rgba(7, 11, 28, 0.6) 100%);
}

.page-home .fact-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.page-home .fact-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.page-home .fact p {
  margin: 12px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-dim);
}

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

/* ============================================
   栏目速览
   ============================================ */
.page-home .column-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .column-item {
  display: block;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--glass);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), background 0.22s var(--ease);
}

.page-home .column-item:hover,
.page-home .column-item:focus-visible {
  border-color: var(--cyan);
  background: rgba(33, 230, 210, 0.07);
  transform: translateY(-3px);
  outline: none;
}

.page-home .column-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.page-home .column-item h3 {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .column-item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-dim);
}

/* ============================================
   地区访问体验
   ============================================ */
.page-home .region-stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .region-stats li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-dim);
}

.page-home .region-stats li:last-child {
  border-bottom: 0;
}

.page-home .region-num {
  flex: 0 0 auto;
  min-width: 4.4em;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mint);
}

/* ============================================
   咨询与反馈
   ============================================ */
.page-home .closing-panel {
  max-width: 62em;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(122, 92, 255, 0.14) 0%, rgba(7, 11, 28, 0.82) 55%, rgba(33, 230, 210, 0.1) 100%);
}

.page-home .closing-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .closing-panel p {
  margin: 16px 0 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-dim);
}

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

/* ============================================
   响应式
   ============================================ */
@media (min-width: 640px) {
  .page-home .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: var(--home-rail) minmax(0, 1fr) var(--home-status);
    gap: 32px;
    align-items: start;
  }

  .page-home .hero-index {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .hero-status {
    align-self: end;
    margin-top: 40px;
    justify-self: end;
  }

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

  .page-home .split--flip .split-media {
    order: -1;
  }

  .page-home .update-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-home .entry-num {
    font-size: 16px;
  }
}

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

@media (max-width: 639px) {
  .page-home .hero-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .entry-num {
    width: 2em;
  }

  .page-home .hero-actions .btn,
  .page-home .closing-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-index-list a,
  .page-home .entry-row,
  .page-home .entry-main h3 a,
  .page-home .column-item {
    transition: none;
  }

  .page-home .column-item:hover,
  .page-home .column-item:focus-visible {
    transform: none;
  }
}
