/* ==========================================================================
   优发国开服 · 共享样式表 /assets/site.css
   赛博边陲电台风 · 深空蓝底 + 信号橙 / 电路青
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
th, td { text-align: left; }
details summary::-webkit-details-marker { display: none; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-900: #060E1A;
  --ink-800: #0B1B33;
  --ink-700: #12294A;
  --signal: #FF6A2B;
  --circuit: #2FD8D0;
  --lemon: #D8FF3E;
  --violet: #7A5CFF;
  --mist: #F2F6FF;
  --rock: #8B9AB3;
  --ochre: #C96B3F;

  --line: rgba(139, 154, 179, 0.22);
  --line-strong: rgba(139, 154, 179, 0.38);
  --circuit-line: rgba(47, 216, 208, 0.36);

  --font-display: "Archivo Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", "Courier New", monospace;

  --wrap: 1200px;
  --gutter: 20px;
  --cut: 20px;
  --cut-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(115deg, rgba(242, 246, 255, 0.028) 0 1px, transparent 1px 9px),
    radial-gradient(1200px 620px at 82% -12%, rgba(47, 216, 208, 0.16), transparent 62%),
    radial-gradient(900px 520px at 6% 6%, rgba(255, 106, 43, 0.12), transparent 64%);
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: 0.02em;
  color: var(--mist);
}

h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.22; }
h2 { font-size: clamp(23px, 3.2vw, 30px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); }
h4 { font-size: 17px; letter-spacing: 0.04em; }

p { max-width: 46ch; }
p + p { margin-top: 0.9em; }

strong { color: var(--mist); font-weight: 700; }
em { font-family: var(--font-serif); font-style: normal; }

::selection { background: var(--signal); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 3px;
}

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.serif { font-family: var(--font-serif); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 120;
  padding: 11px 18px;
  background: var(--lemon);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 脉冲圆点 */
.pulse-dot,
.to-top__dot {
  display: inline-block;
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  animation: dot-breathe 3s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.82); }
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(255, 106, 43, 0); opacity: 0.76; }
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(216, 255, 62, 0); opacity: 0.68; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  white-space: nowrap;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.btn::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.btn--signal {
  background: var(--signal);
  color: var(--ink-900);
}
.btn--signal:hover { background: var(--lemon); }

.btn--ghost {
  background: rgba(11, 27, 51, 0.7);
  color: var(--circuit);
  box-shadow: inset 0 0 0 1px var(--circuit-line);
}
.btn--ghost:hover {
  background: rgba(47, 216, 208, 0.14);
  color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--circuit);
}

.btn--sm { padding: 9px 16px; font-size: 12.5px; letter-spacing: 0.12em; }

/* ---------- 6. 头部 · 信号条 + 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 14, 26, 0.94);
  backdrop-filter: blur(10px);
}

.signal-strip {
  max-height: 34px;
  overflow: hidden;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-scrolled] .signal-strip {
  max-height: 0;
  opacity: 0;
}

.signal-strip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 33px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--rock);
  text-transform: uppercase;
}
.signal-strip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-strip__note {
  margin-left: auto;
  color: var(--circuit);
  white-space: nowrap;
}

.cmd-bar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 41, 74, 0.95), rgba(11, 27, 51, 0.95));
}

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  transition: min-height 0.28s var(--ease);
}
.site-header[data-scrolled] .cmd-bar__inner { min-height: 56px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  background: rgba(47, 216, 208, 0.1);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: inset 0 0 0 1px rgba(47, 216, 208, 0.5);
}

.brand__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: dot-breathe 3s ease-in-out infinite;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--circuit);
}

/* 命令栏导航 */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 9px 12px 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rock);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.site-nav__list a::before {
  content: attr(data-nav-index);
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(139, 154, 179, 0.7);
  vertical-align: 2px;
}

.site-nav__list a:hover {
  color: var(--mist);
  background: rgba(242, 246, 255, 0.06);
}

.site-nav__list a[aria-current="page"] {
  color: var(--mist);
  background: rgba(255, 106, 43, 0.12);
}
.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
}

.cmd-bar__cta { flex: none; margin-left: 8px; }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-toggle:hover { color: var(--lemon); box-shadow: inset 0 0 0 1px var(--lemon); }

.nav-toggle__bars {
  position: relative;
  width: 16px; height: 10px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--circuit);
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--circuit), var(--lemon) 55%, var(--signal));
  pointer-events: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  background: var(--ink-900);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--signal) 0 15%,
    var(--circuit) 15% 32%,
    rgba(122, 92, 255, 0.9) 32% 40%,
    transparent 40%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.25fr 1.2fr;
  gap: clamp(22px, 3.4vw, 52px);
  padding: clamp(36px, 5vw, 68px) 0 clamp(24px, 3vw, 38px);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--circuit);
}

.footer-col__text {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--rock);
}

.footer-links { display: grid; gap: 10px; }
.footer-links a {
  font-size: 15px;
  color: var(--mist);
  opacity: 0.85;
  transition: color 0.16s var(--ease), opacity 0.16s var(--ease), padding-left 0.16s var(--ease);
}
.footer-links a:hover {
  color: var(--lemon);
  opacity: 1;
  padding-left: 4px;
}

.footer-meta { display: grid; gap: 13px; }
.footer-meta__k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rock);
}
.footer-meta__v {
  display: block;
  font-size: 15px;
  color: var(--mist);
  word-break: break-word;
}

.footer-stamp {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rock);
}

.footer-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(139, 154, 179, 0.16);
  font-size: 12.5px;
  color: var(--rock);
}
.footer-baseline__item { max-width: none; }
.footer-baseline__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(6, 14, 26, 0.9);
  color: var(--circuit);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 0 1px var(--circuit-line);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), color 0.16s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { color: var(--lemon); box-shadow: inset 0 0 0 1px var(--lemon); }

/* ---------- 8. 布局与章节 ---------- */
.page-main { display: block; }
.page-main:focus { outline: none; }

.section { padding: clamp(40px, 6.6vw, 96px) 0; }
.section--tight { padding: clamp(26px, 4vw, 52px) 0; }
.section--deep {
  background: var(--ink-900);
  border-block: 1px solid rgba(139, 154, 179, 0.14);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.grid > * { grid-column: span 12; }

.stack { display: grid; gap: clamp(14px, 2vw, 22px); }
.stack--loose { gap: clamp(24px, 4vw, 48px); }

/* 内页标题区 */
.page-head { padding: clamp(36px, 5.6vw, 78px) 0 clamp(18px, 3vw, 34px); }
.page-head__inner { display: grid; gap: 16px; }
.page-head h1 { max-width: 22ch; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rock);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 9px;
  color: rgba(139, 154, 179, 0.5);
}
.breadcrumb a { color: var(--rock); transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--circuit); }
.breadcrumb__item[aria-current="page"] { color: var(--mist); }

/* 章节标题 */
.section-head { display: grid; gap: 10px; max-width: 34ch; }
.section-head__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--circuit);
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.95;
  color: rgba(242, 246, 255, 0.88);
  max-width: 40ch;
}

.note {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--rock);
  border-left: 2px solid var(--ochre);
  padding-left: 14px;
  max-width: 32ch;
}

/* ---------- 9. 面板 · 呼号标签 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--ink-700);
  border: 1px solid var(--line);
}

.panel--cut {
  border: 0;
  background:
    linear-gradient(180deg, rgba(47, 216, 208, 0.08), rgba(18, 41, 74, 0) 150px),
    var(--ink-700);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
}

.panel--deep {
  background: var(--ink-900);
  border-color: rgba(139, 154, 179, 0.16);
}

.panel--tagged { padding-top: clamp(34px, 4vw, 52px); }

.panel__tag {
  position: absolute;
  top: -12px;
  left: clamp(16px, 2.4vw, 30px);
  z-index: 2;
}

.call-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lemon);
  background: rgba(6, 14, 26, 0.9);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 0 1px rgba(216, 255, 62, 0.42);
}
.call-tag::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lemon);
  animation: tag-pulse 3s ease-in-out infinite;
}
.call-tag--circuit {
  color: var(--circuit);
  box-shadow: inset 0 0 0 1px var(--circuit-line);
}
.call-tag--circuit::before { background: var(--circuit); }

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(142deg, var(--ink-700), var(--ink-900));
  border: 1px solid var(--line);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(242, 246, 255, 0.05) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 7; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(6, 14, 26, 0.92), rgba(6, 14, 26, 0));
  z-index: 2;
}

/* ---------- 11. 数据组件 ---------- */
.log-table {
  width: 100%;
  font-size: 15px;
}
.log-table caption {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rock);
  text-align: left;
}
.log-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--circuit);
  background: rgba(6, 14, 26, 0.55);
  border-bottom: 1px solid var(--circuit-line);
  white-space: nowrap;
}
.log-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(139, 154, 179, 0.16);
  vertical-align: top;
  color: rgba(242, 246, 255, 0.92);
}
.log-table tbody tr:hover td { background: rgba(242, 246, 255, 0.04); }
.log-table .num {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--signal), rgba(47, 216, 208, 0.35));
}
.timeline__item {
  position: relative;
  padding-bottom: 22px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-800);
  box-shadow: inset 0 0 0 2px var(--rock);
}
.timeline__item[data-state="live"]::before {
  background: var(--signal);
  box-shadow: inset 0 0 0 2px var(--signal);
  animation: live-pulse 3s ease-in-out infinite;
}
.timeline__time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--circuit);
}

.fold {
  background: var(--ink-700);
  border: 1px solid var(--line);
}
.fold + .fold { margin-top: 12px; }
.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.fold__head:hover { color: var(--lemon); background: rgba(242, 246, 255, 0.04); }
.fold[open] .fold__head {
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}
.fold__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rock);
  white-space: nowrap;
}
.fold__body {
  padding: 18px;
  background: rgba(6, 14, 26, 0.42);
  font-size: 15.5px;
  color: rgba(242, 246, 255, 0.9);
}

/* ---------- 12. 显现动效 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 75;
    display: none;
    margin-left: 0;
    padding: 10px 0 18px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list a {
    padding: 15px 22px;
    font-size: 16px;
    border-bottom: 1px solid rgba(139, 154, 179, 0.14);
  }
  .site-nav__list a::before { font-size: 10.5px; }
  .site-nav__list a[aria-current="page"] {
    background: rgba(255, 106, 43, 0.12);
    box-shadow: inset 3px 0 0 var(--signal);
  }
  .site-nav__list a[aria-current="page"]::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .cmd-bar__cta { margin-left: 0; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 761px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 1.8; }
  .cmd-bar__inner { gap: 12px; min-height: 64px; }
  .brand__name { font-size: 18px; letter-spacing: 0.12em; }
  .signal-strip__note { display: none; }
  .grid { gap: 16px; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col--brand { grid-column: auto; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .btn--sm { padding: 9px 13px; font-size: 12px; }
  .cmd-bar__cta { display: none; }
  .to-top { right: 14px; bottom: 14px; }
  .log-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- 14. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .pulse-dot,
  .to-top__dot,
  .brand__pulse,
  .call-tag::before,
  .timeline__item[data-state="live"]::before { animation: none; }
  .scroll-progress { transition: none; }
}
