/* ===== 首页 · 夜间本地信息控制台 ===== */
.page-home {
  --home-line: rgba(140, 154, 192, .22);
  --home-line-strong: rgba(140, 154, 192, .38);
  --home-glass: rgba(20, 28, 63, .62);
  --home-soft: #C6D0E8;
  --home-band: var(--cyan);
  position: relative;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 封面 ---------- */
.page-home .cover {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 2.6rem) var(--gutter) 2.8rem;
  background:
    radial-gradient(115% 85% at 84% 2%, rgba(95, 227, 222, .15), transparent 62%),
    radial-gradient(85% 70% at 6% 24%, rgba(255, 196, 107, .09), transparent 60%),
    var(--deep);
}
.page-home .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(42, 53, 96, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 53, 96, .5) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  opacity: .55;
  pointer-events: none;
}
.page-home .cover__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}
.page-home .cover__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.page-home .cover__eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.page-home .cover__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.01em;
  max-width: 18ch;
  color: var(--text);
}
.page-home .cover__lede {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(1rem, 1.55vw, 1.08rem);
  line-height: 1.88;
  color: var(--home-soft);
}
.page-home .cover__index {
  list-style: none;
  margin: .3rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--home-line);
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.page-home .cover__index a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--home-soft);
  font-size: .94rem;
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.page-home .cover__index a:hover,
.page-home .cover__index a:focus-visible {
  border-color: var(--home-line-strong);
  background: rgba(95, 227, 222, .07);
  color: var(--text);
}
.page-home .cover__index .mono {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--cyan);
}
.page-home .cover__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem 1.6rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--home-line);
}
.page-home .cover__stats > div {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.page-home .cover__stats dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}
.page-home .cover__stats dd {
  margin: 0;
  font-size: .96rem;
  color: var(--text);
}
.page-home .cover__stats .mono {
  color: var(--amber);
  font-size: 1.15rem;
  letter-spacing: .04em;
}

/* ---------- 骨架 ---------- */
.page-home .body-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  display: grid;
  gap: 2rem;
}
.page-home .content {
  min-width: 0;
}
.page-home .rail {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.page-home .rail__card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: var(--home-glass);
}
.page-home .rail__card--quiet {
  background: rgba(11, 16, 38, .6);
}
.page-home .rail__title {
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.page-home .rail__text {
  margin: 0 0 .9rem;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 章节 ---------- */
.page-home .block {
  position: relative;
  padding: 2.4rem 0;
  scroll-margin-top: calc(var(--header-h) + 1.6rem);
  min-width: 0;
}
.page-home .block--teal { --home-band: #2E8B82; }
.page-home .block--violet { --home-band: #7C63B8; }
.page-home .block--cyan { --home-band: var(--cyan); }
.page-home .block::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  margin-bottom: 1.7rem;
  background: linear-gradient(90deg, var(--home-band) 0%, rgba(42, 53, 96, .3) 62%, transparent 100%);
}
.page-home .block__head {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.page-home .block__num {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  color: var(--home-band);
}
.page-home .block__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  letter-spacing: -.01em;
  color: var(--text);
}
.page-home .block__note {
  margin: 0 0 1.4rem;
  font-size: .98rem;
  line-height: 1.85;
  color: var(--home-soft);
  max-width: 62ch;
}

/* ---------- 图像容器 ---------- */
.page-home .shot {
  margin: 1.4rem 0 0;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(42, 53, 96, .55), rgba(11, 16, 38, .92));
  overflow: hidden;
}
.page-home .shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}
.page-home .shot figcaption {
  padding: .7rem 1rem;
  border-top: 1px solid var(--home-line);
  font-size: .83rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 帮助入口台 ---------- */
.page-home .entry {
  margin: 0 0 .8rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: var(--home-glass);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.page-home .entry[open] {
  border-color: var(--home-line-strong);
}
.page-home .entry__sum {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.page-home .entry__sum::-webkit-details-marker { display: none; }
.page-home .entry__sum::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--cyan);
}
.page-home .entry[open] .entry__sum::after { content: "–"; }
.page-home .entry__name { flex: 1 1 auto; }
.page-home .entry__meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--mist);
}
.page-home .entry__list {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  display: grid;
  gap: .5rem;
}
.page-home .entry__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  padding: .55rem .8rem;
  border-left: 2px solid rgba(95, 227, 222, .38);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(11, 16, 38, .55);
}
.page-home .entry__list a {
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 227, 222, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.page-home .entry__list a:hover,
.page-home .entry__list a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}
.page-home .entry__list span {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 版本对照 ---------- */
.page-home .tabs {
  margin-top: 1.2rem;
}
.page-home .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 1px solid var(--home-line);
  margin-bottom: 1.2rem;
}
.page-home .tab {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .96rem;
  color: var(--mist);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .6rem 1rem;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.page-home .tab:hover {
  color: var(--text);
  background: rgba(42, 53, 96, .4);
}
.page-home .tab[aria-selected="true"] {
  color: var(--deep);
  background: var(--cyan);
  border-color: var(--cyan);
}
.page-home .tabpanel[hidden] { display: none; }
.page-home .diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.page-home .diff-list li {
  display: grid;
  gap: .3rem;
  padding: .85rem 1rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-sm);
  background: rgba(20, 28, 63, .55);
}
.page-home .diff__key {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.page-home .diff__val {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--home-soft);
}

/* ---------- 本地内容索引 ---------- */
.page-home .region-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}
.page-home .region {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .9rem;
  align-items: baseline;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--home-line);
  transition: background .2s var(--ease);
}
.page-home .region:hover {
  background: rgba(95, 227, 222, .05);
}
.page-home .region__code {
  grid-row: span 2;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
  min-width: 2.6rem;
}
.page-home .region__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.page-home .region__area {
  font-size: .85rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 小屏反馈 ---------- */
.page-home .mobile-grid {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}
.page-home .mobile-grid__text {
  min-width: 0;
}
.page-home .mobile-grid__label {
  margin: 1.3rem 0 .2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.page-home .service-line {
  margin: 0;
  padding: .9rem 1.05rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(31, 78, 74, .28);
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text);
}
.page-home .check-list {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.page-home .check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--home-soft);
}
.page-home .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--cyan);
  border-radius: 2px;
}
.page-home .shot--phone {
  margin-top: 0;
  max-width: 420px;
}

/* ---------- 状态面板 ---------- */
.page-home .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: var(--home-glass);
  -webkit-overflow-scrolling: touch;
}
.page-home .status-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .92rem;
}
.page-home .status-table th,
.page-home .status-table td {
  text-align: left;
  padding: .85rem 1.05rem;
  border-bottom: 1px solid var(--home-line);
  white-space: nowrap;
}
.page-home .status-table th:first-child,
.page-home .status-table td:first-child {
  white-space: normal;
}
.page-home .status-table thead th {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(11, 16, 38, .62);
}
.page-home .status-table tbody tr:last-child td { border-bottom: 0; }
.page-home .status-table tbody tr:hover { background: rgba(95, 227, 222, .05); }
.page-home .status-table .mono {
  font-size: .82rem;
  color: var(--mist);
}
.page-home .pulse {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  color: var(--text);
}
.page-home .pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(95, 227, 222, .18);
}
.page-home .pulse--amber::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 196, 107, .18);
}
.page-home .note {
  margin: 1.1rem 0 0;
  padding: .9rem 1.05rem;
  border-left: 3px solid var(--wine);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(122, 46, 69, .16);
  font-size: .9rem;
  line-height: 1.8;
  color: var(--home-soft);
}

/* ---------- 通用件 ---------- */
.page-home .cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.page-home .btn--block {
  display: block;
  width: 100%;
  text-align: center;
}
.page-home .toc {
  padding: 1rem 1.1rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: var(--glass, rgba(20, 28, 63, .58));
}
.page-home .toc__title {
  margin: 0 0 .7rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}
.page-home .toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}
.page-home .toc__link {
  display: block;
  padding: .5rem .6rem;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--home-soft);
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.page-home .toc__link:hover,
.page-home .toc__link:focus-visible {
  color: var(--text);
  background: rgba(95, 227, 222, .07);
}
.page-home .toc__link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(95, 227, 222, .09);
}

/* ---------- 响应式 ---------- */
@media (max-width: 999px) {
  .page-home .rail { order: 2; }
  .page-home .content { order: 1; }
}

@media (min-width: 820px) {
  .page-home .mobile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
    gap: 2.4rem;
  }
  .page-home .shot--phone { max-width: none; }
}

@media (min-width: 1000px) {
  .page-home .body-grid {
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .page-home .rail {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 1.6rem);
  }
  .page-home .content { order: 2; }
  .page-home .block { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
