/* ============================================================
   PG主站 · 共享样式 /assets/site.css
   夜间档案室 × 数据控制台
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0F0E;
  --ink-green: #10231F;
  --ink-green-2: #16352E;
  --cyan: #00E5C3;
  --amber: #FFB020;
  --mist: #E6F2EE;
  --sage: #8FA8A1;
  --blue: #2D9CDB;
  --rose: #FF5C7A;
  --gold-dark: #7A5A18;

  --mist-80: rgba(230, 242, 238, .8);
  --mist-60: rgba(230, 242, 238, .6);
  --line: rgba(143, 168, 161, .18);
  --line-strong: rgba(122, 90, 24, .55);
  --line-cyan: rgba(0, 229, 195, .35);

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4.2vw, 48px);
  --main-top: 96px;
  --radius: 3px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 84% -12%, rgba(0, 229, 195, .10), transparent 62%),
    radial-gradient(46vw 46vw at 4% 16%, rgba(255, 176, 32, .055), transparent 64%);
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--mist);
}
h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { text-wrap: pretty; }
::selection { background: var(--cyan); color: #04211C; }

.link:
a.link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
a.link:hover { color: var(--amber); }

/* ---------- 4. 可访问性 ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04211C;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 5. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
#main-content { position: relative; z-index: 1; padding-top: var(--main-top); }
.section { padding-block: clamp(44px, 7vw, 96px); }
.section--tight { padding-block: clamp(26px, 4vw, 52px); }
.section-head { max-width: 62ch; margin-bottom: clamp(22px, 3vw, 40px); }
.divider {
  height: 1px; border: 0; margin: clamp(26px, 4vw, 50px) 0;
  background: linear-gradient(90deg, rgba(122, 90, 24, .85), rgba(122, 90, 24, 0));
}

/* ---------- 6. 文字工具 ---------- */
.mono { font-family: var(--font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .16em;
  color: var(--amber); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--amber); opacity: .8;
}
.section-title { margin: .35em 0 .6em; }
.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  color: var(--mist-80);
  max-width: 68ch;
}
.text-sage { color: var(--sage); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--cyan { background: var(--cyan); color: #04211C; border-color: var(--cyan); }
.btn--cyan:hover { background: #3DF0D6; border-color: #3DF0D6; }
.btn--ghost { background: transparent; color: var(--mist); border-color: rgba(230, 242, 238, .32); }
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 229, 195, .07); }
.btn--amber { background: transparent; color: var(--amber); border-color: rgba(255, 176, 32, .5); }
.btn--amber:hover { background: rgba(255, 176, 32, .12); border-color: var(--amber); }
.btn--block { width: 100%; }

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--sage);
}
.tag--cyan { color: var(--cyan); border-color: var(--line-cyan); background: rgba(0, 229, 195, .08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .08); }
.tag--rose { color: var(--rose); border-color: rgba(255, 92, 122, .45); background: rgba(255, 92, 122, .08); }
.tag--blue { color: var(--blue); border-color: rgba(45, 156, 219, .45); background: rgba(45, 156, 219, .08); }

/* ---------- 9. 页头 ---------- */
.pg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(11, 15, 14, .88), rgba(11, 15, 14, .28) 70%, rgba(11, 15, 14, 0));
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pg-header[data-scrolled="true"] {
  background: var(--ink-green);
  box-shadow: 0 1px 0 rgba(0, 229, 195, .18), 0 18px 42px rgba(0, 0, 0, .5);
}
.pg-header__rail {
  display: none;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 28px;
  line-height: 28px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sage);
  border-bottom: 1px solid rgba(122, 90, 24, .4);
  overflow: hidden;
  transition: height .3s var(--ease), opacity .3s var(--ease), border-color .3s var(--ease);
}
@media (min-width: 900px) { .pg-header__rail { display: block; } }
.pg-header[data-scrolled="true"] .pg-header__rail { height: 0; opacity: 0; border-color: transparent; }

.pg-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  transition: min-height .3s var(--ease);
}
@media (min-width: 900px) {
  .pg-header__inner { gap: clamp(20px, 3vw, 44px); min-height: 76px; }
}
.pg-header[data-scrolled="true"] .pg-header__inner { min-height: 58px; }

/* 品牌 */
.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--mist);
}
.pg-brand__mark {
  position: relative;
  width: 22px; height: 22px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 229, 195, .3), rgba(255, 176, 32, .16));
  flex: 0 0 auto;
}
.pg-brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cyan);
  opacity: .85;
}
.pg-brand__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .06em;
}
.pg-brand__sub {
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--sage);
  padding-left: 10px;
  border-left: 1px solid rgba(143, 168, 161, .4);
}
@media (max-width: 520px) { .pg-brand__sub { display: none; } }
.pg-brand--footer .pg-brand__mark { width: 26px; height: 26px; }
.pg-brand--footer .pg-brand__text { font-size: 20px; }

/* 导航 */
.pg-nav { display: flex; flex: 1 1 auto; justify-content: center; min-width: 0; }
.pg-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}
.pg-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  font-size: 15px;
  color: var(--mist);
  opacity: .82;
  white-space: nowrap;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.pg-nav__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--sage);
  transition: color .2s var(--ease);
}
.pg-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.pg-nav__link:hover { opacity: 1; color: var(--cyan); }
.pg-nav__link:hover::after { transform: scaleX(1); }
.pg-nav__link[aria-current="page"] { opacity: 1; color: var(--cyan); }
.pg-nav__link[aria-current="page"]::before { color: var(--amber); }
.pg-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.pg-nav__foot { display: none; }

.pg-header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* 移动导航按钮 */
.pg-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(16, 53, 46, .7);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  color: var(--mist);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pg-nav-toggle:hover { border-color: var(--cyan); }
.pg-nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.pg-nav-toggle__bar {
  display: block; width: 18px; height: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.pg-nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--sage);
}
.pg-header[data-open="true"] .pg-nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pg-header[data-open="true"] .pg-nav-toggle__bar:nth-child(2) { opacity: 0; }
.pg-header[data-open="true"] .pg-nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(122, 90, 24, .35);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width .12s linear;
}

/* 移动端导航面板 */
@media (max-width: 959px) {
  .pg-header__cta { display: none; }
  .pg-nav-toggle { display: inline-flex; }
  .pg-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6px var(--gutter) 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(16, 35, 31, .98);
    border-top: 1px solid var(--line-cyan);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 44px rgba(0, 0, 0, .55);
  }
  .pg-header[data-open="true"] .pg-nav { display: flex; animation: nav-in .24s var(--ease) both; }
  .pg-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .pg-nav__link {
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(143, 168, 161, .14);
  }
  .pg-nav__link::after { display: none; }
  .pg-nav__foot { display: block; margin-top: 20px; }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 10. 页脚 ---------- */
.pg-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 120px);
  background: var(--ink-green);
  border-top: 1px solid var(--line-strong);
  overflow: hidden;
}
.pg-footer__glow {
  position: absolute;
  left: 34%; right: -20%; bottom: -70%;
  height: 340px;
  background: radial-gradient(closest-side, rgba(0, 229, 195, .16), transparent 72%);
  pointer-events: none;
}
.pg-footer__inner { position: relative; padding-block: clamp(38px, 6vw, 72px) 0; }
.pg-footer__grid {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .pg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pg-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.35fr; } }

.pg-footer__col { min-width: 0; }
.pg-footer__text {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-80);
  max-width: 42ch;
}
.pg-footer__meta {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--sage);
}
.pg-footer__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--amber);
}
.pg-footer__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 176, 32, .5), rgba(255, 176, 32, 0));
}
.pg-footer__list { display: grid; gap: 10px; font-size: 14.5px; }
.pg-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mist-80);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pg-footer__link::before {
  content: "";
  width: 7px; height: 1px;
  background: var(--gold-dark);
  flex: 0 0 auto;
  transition: background-color .2s var(--ease);
}
.pg-footer__link:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.pg-footer__link:hover::before { background: var(--cyan); }
.pg-footer__list--stack { gap: 14px; }
.pg-footer__list--stack li { display: grid; gap: 2px; }
.pg-footer__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--sage);
}
.pg-footer__value { font-size: 14.5px; line-height: 1.65; color: var(--mist); overflow-wrap: anywhere; }
.pg-footer__bottom {
  margin-top: clamp(28px, 4vw, 52px);
  padding-block: 18px 26px;
  border-top: 1px solid rgba(122, 90, 24, .45);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sage);
}
.pg-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pg-footer__legal a { color: var(--sage); border-bottom: 1px solid transparent; }
.pg-footer__legal a:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.pg-footer__dot { color: var(--gold-dark); }

/* ---------- 11. 通用内容组件 ---------- */
.split { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
  .split--reverse { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
@media (min-width: 900px) {
  .grid--stagger > *:nth-child(even) { margin-top: clamp(18px, 3vw, 46px); }
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink-green-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-dark);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.card:hover { border-color: var(--line-cyan); border-left-color: var(--cyan); transform: translateY(-2px); }
.card__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--sage);
  margin-bottom: 12px;
}
.card__body { font-size: 15px; line-height: 1.8; color: var(--mist-80); }

/* 图片 / 可视化容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-green-2), var(--ink));
  aspect-ratio: 16 / 10;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(143, 168, 161, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 168, 161, .12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media-frame > * { position: relative; z-index: 1; }
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(11, 15, 14, .92), rgba(11, 15, 14, 0));
}

/* 刻度条 */
.scale { --scale: 0; display: block; }
.scale__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sage);
}
.scale__value { color: var(--amber); }
.scale__track {
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(122, 90, 24, .2);
  overflow: hidden;
}
.scale__fill {
  display: block;
  height: 100%;
  width: calc(var(--scale) * 1%);
  background: linear-gradient(90deg, rgba(0, 229, 195, .9), var(--amber));
  transition: width 1s var(--ease);
}
.scale__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-block: 16px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--sage);
}
.breadcrumb a { color: var(--sage); border-bottom: 1px dotted rgba(143, 168, 161, .5); }
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.breadcrumb__sep { color: var(--gold-dark); }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* 标签页 */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(122, 90, 24, .45);
}
.tabs__btn {
  position: relative;
  appearance: none;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.tabs__btn:hover { color: var(--mist); }
.tabs__btn[aria-selected="true"] {
  color: var(--cyan);
  background: var(--ink-green-2);
  border-color: var(--line-cyan);
}
.tabs__btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--cyan);
}
.tabs__panel { padding-top: clamp(18px, 3vw, 32px); animation: panel-in .28s var(--ease) both; }
.tabs__panel[hidden] { display: none; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 折叠面板 */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  background: transparent;
  border: 0;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.accordion__trigger:hover { color: var(--cyan); }
.accordion__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--amber);
}
.accordion__trigger[aria-expanded="true"] { color: var(--cyan); }
.accordion__trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.accordion__panel-inner {
  padding: 0 4px 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist-80);
}

/* 目录跟随高亮 */
.spy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.spy__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  color: var(--sage);
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.spy__link:hover { color: var(--mist); }
.spy__link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 229, 195, .06);
}

/* 滚动显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(16, 53, 46, .94);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.to-top::before { content: "\2191"; font-size: 16px; line-height: 1; }
.to-top[data-visible="true"] { display: flex; }
.to-top:hover { background: var(--ink-green-2); border-color: var(--cyan); }

/* ---------- 12. 响应式细节 ---------- */
@media (max-width: 959px) {
  :root { --main-top: 84px; }
  .pg-header__inner { min-height: 62px; }
  .pg-header[data-scrolled="true"] .pg-header__inner { min-height: 56px; }
}
@media (max-width: 480px) {
  .pg-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 13. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scale__fill { transition: none; }
}
