/* ==========================================================================
   快盈3 · 全站共享样式  /assets/site.css
   深靛蓝基底 · 电光青数据线 · 暖金行动色 · 霓虹紫版本标记
   印刷边框 / 编辑部目录 / 纵向叙事长卷
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 72px) + 24px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, pre { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { width: 100%; border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-ink: #020617;
  --c-indigo: #0B1B3A;
  --c-slate: #1E293B;
  --c-cyan: #00E5FF;
  --c-cyan-soft: #67E8F9;
  --c-gold: #FFB454;
  --c-gold-soft: #FDE68A;
  --c-violet: #A855F7;
  --c-mist: #94A3B8;
  --c-paper: #F8FAFC;

  --line: rgba(148, 163, 184, .22);
  --line-cyan: rgba(103, 232, 249, .40);
  --line-gold: rgba(255, 180, 84, .45);
  --line-violet: rgba(168, 85, 247, .42);
  --surface: rgba(30, 41, 59, .62);
  --surface-deep: rgba(2, 6, 23, .74);

  --font-display: 'Archivo Narrow', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Noto Sans Mono CJK SC', monospace;

  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-indigo);
  background-image:
    radial-gradient(880px 520px at 88% -6%, rgba(0, 229, 255, .14), transparent 62%),
    radial-gradient(720px 480px at 2% 14%, rgba(168, 85, 247, .15), transparent 60%),
    linear-gradient(180deg, #0B1B3A 0%, #091630 46%, #0B1B3A 100%);
  color: var(--c-paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .01em;
}

h1 { font-size: clamp(34px, 6vw, 76px); }
h2 { font-size: clamp(27px, 4.2vw, 50px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; }
h4 { font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; }

p { max-width: 68ch; }
strong { color: var(--c-paper); font-weight: 600; }
small { font-size: 12.5px; color: var(--c-mist); }

.num,
.num--mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-main {
  display: block;
  padding-top: var(--header-h);
}

.section {
  position: relative;
  padding: clamp(52px, 7vw, 104px) 0;
}

.section--slate { background: rgba(30, 41, 59, .55); }
.section--ink { background: var(--c-ink); }
.section--paper {
  background: var(--c-paper);
  color: var(--c-ink);
}
.section--paper .section__lead,
.section--paper p { color: #334155; }
.section--paper .eyebrow { color: #0E7490; }
.section--paper .eyebrow::before { background: #0E7490; }

.section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 44px);
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--c-gold);
  margin-bottom: 10px;
}

.section__title { margin-top: 6px; }

.section__lead {
  max-width: 56ch;
  color: var(--c-mist);
  font-size: clamp(14.5px, 1.5vw, 17px);
  margin-top: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--c-cyan-soft);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-cyan);
}

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--c-mist);
  writing-mode: vertical-rl;
  padding: 6px 0;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--c-cyan), rgba(168, 85, 247, .6) 55%, transparent);
  margin: 0;
}

/* ---------- 5. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--c-paper);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 rgba(0, 229, 255, .34);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--c-gold-soft);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0, 229, 255, .5);
}

.btn--cyan {
  background: var(--c-cyan);
  color: var(--c-ink);
  box-shadow: 3px 3px 0 rgba(168, 85, 247, .42);
}
.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: var(--c-cyan-soft);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(168, 85, 247, .55);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--c-paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.btn--block { width: 100%; }

/* ---------- 7. skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 210;
  padding: 10px 16px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 8. 品牌块 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--c-paper);
}

.brand__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--c-ink);
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-cyan-soft) 52%, var(--c-gold) 100%);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(168, 85, 247, .6);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.brand:hover .brand__mark {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(168, 85, 247, .75);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--c-cyan-soft);
}

/* ---------- 9. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(11, 27, 58, .95);
  border-bottom-color: var(--line-cyan);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.header__brand { flex: 0 0 auto; }

.header__nav { margin-left: auto; }

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

.nav__item--action { display: none; }

.nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--c-paper);
  border-bottom-color: var(--c-cyan);
}

.nav__link[aria-current="page"] {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
  background: rgba(0, 229, 255, .08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--c-paper);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.nav-toggle__bars { display: grid; gap: 4px; }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 10. 阅读进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(148, 163, 184, .12);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-cyan-soft) 45%, var(--c-gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 11. 左侧更新日志滑轨 ---------- */
.log-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
}

.log-rail__toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 16px 9px;
  background: rgba(11, 27, 58, .92);
  border: 1px solid var(--line-cyan);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.log-rail__toggle:hover,
.log-rail__toggle:focus-visible {
  background: var(--c-cyan);
  color: var(--c-ink);
  border-color: var(--c-cyan);
}

.log-rail__toggle-text { margin-bottom: 10px; }

.log-rail__toggle-count {
  color: var(--c-gold);
  letter-spacing: .08em;
}
.log-rail__toggle:hover .log-rail__toggle-count { color: var(--c-ink); }

.log-rail__panel {
  width: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  border: 0 solid var(--line-cyan);
  border-left: none;
  background: var(--surface-deep);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: width .3s var(--ease), padding .3s var(--ease),
              opacity .22s var(--ease), visibility .22s var(--ease),
              border-width .3s var(--ease);
}

.log-rail[data-open] .log-rail__panel {
  width: min(300px, 74vw);
  padding: 18px 16px;
  visibility: visible;
  opacity: 1;
  border-width: 1px;
}

.log-rail__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--c-mist);
  margin-bottom: 12px;
}

.log-rail__list { display: grid; gap: 10px; }

.log-rail__item {
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 2px solid var(--line-violet);
}
.log-rail__item:hover { border-left-color: var(--c-violet); }

.log-rail__ver {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-cyan);
  letter-spacing: .08em;
}

.log-rail__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-mist);
}

.log-rail__link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.log-rail__link:hover,
.log-rail__link:focus-visible {
  color: var(--c-gold-soft);
  border-bottom-color: var(--c-gold-soft);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-paper);
  margin-top: clamp(40px, 6vw, 80px);
}

.footer__top {
  position: relative;
  padding: clamp(40px, 5vw, 68px) 0 clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(11, 27, 58, .55) 0%, rgba(2, 6, 23, .98) 100%);
  border-top: 1px solid var(--line-cyan);
}
.footer__top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px, 40%);
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer__brand .brand { margin-bottom: 16px; }

.footer__lede {
  max-width: 38ch;
  color: var(--c-mist);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer__cta { margin-top: 4px; }

.footer__col { min-width: 0; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--c-cyan-soft);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer__links { display: grid; gap: 2px; }

.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
  transform: translateX(3px);
}

.footer__contact {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--c-paper);
  letter-spacing: .02em;
  margin-bottom: 6px;
  word-break: break-all;
}

.footer__address {
  font-size: 13.5px;
  color: var(--c-mist);
  line-height: 1.65;
  margin-top: 8px;
}

.footer__note {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--line-gold);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-mist);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  background: var(--c-ink);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.footer__legal,
.footer__region {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mist);
  max-width: none;
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mist);
}

.breadcrumb__link {
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.breadcrumb__sep { color: rgba(148, 163, 184, .5); }

.breadcrumb__current { color: var(--c-paper); }

/* ---------- 14. 卡片 / 标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--line-cyan);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0, 229, 255, .14);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-gold);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.card__body {
  font-size: 15px;
  color: var(--c-mist);
  line-height: 1.7;
}

.card__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-cyan-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 229, 255, .07);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-cyan-soft);
}
.tag--gold {
  background: rgba(255, 180, 84, .09);
  border-color: var(--line-gold);
  color: var(--c-gold-soft);
}
.tag--violet {
  background: rgba(168, 85, 247, .12);
  border-color: var(--line-violet);
  color: #D8B4FE;
}

/* ---------- 15. 图片 / 媒体容器 ---------- */
.media {
  display: block;
  width: 100%;
  margin: 0;
}

.media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--c-ink);
  background-image:
    linear-gradient(135deg, rgba(0, 229, 255, .16) 0%, rgba(168, 85, 247, .16) 58%, rgba(255, 180, 84, .12) 100%);
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(103, 232, 249, .16) 0 1px, transparent 1px 42px);
}

.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--c-mist);
}

.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }

/* ---------- 16. 横向滑轨 ---------- */
.rail {
  display: flex;
  gap: clamp(14px, 2vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-cyan) rgba(148, 163, 184, .15);
}

.rail__item {
  flex: 0 0 clamp(240px, 32vw, 340px);
  scroll-snap-align: start;
}

/* ---------- 17. 折叠面板 ---------- */
.fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fold + .fold { margin-top: 10px; }

.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.fold__head::-webkit-details-marker { display: none; }
.fold__head:hover { color: var(--c-cyan); background: rgba(0, 229, 255, .05); }
.fold__head::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--c-cyan);
}
.fold[open] .fold__head::after { content: "–"; }
.fold[open] .fold__head { border-bottom: 1px solid var(--line); }

.fold__body {
  padding: 14px 18px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--c-mist);
}

/* ---------- 18. 长文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: #CBD5E1;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2,
.prose h3 { color: var(--c-paper); margin-top: 1.8em; }
.prose a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}
.prose a:hover { border-bottom-color: var(--c-cyan); }
.prose ol,
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--c-violet);
  background: rgba(168, 85, 247, .08);
  color: var(--c-paper);
}

/* ---------- 19. 显现动效 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js-ready [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 20. 平板 ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 21. 移动导航 ---------- */
@media (max-width: 960px) {
  .header__actions { margin-left: auto; }
  .header__actions .btn--ghost { display: none; }
  .header__actions .btn { padding: 9px 14px; font-size: 13px; }

  .nav-toggle { display: flex; margin-left: 10px; }

  .header__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin-left: 0;
    max-height: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: rgba(2, 6, 23, .98);
    border-bottom: 1px solid var(--line-cyan);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: max-height .32s var(--ease), opacity .22s var(--ease),
                visibility .22s var(--ease), padding .32s var(--ease);
  }

  .header__nav[data-open] {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    padding: 8px var(--gutter) 24px;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item { border-bottom: 1px solid var(--line); }

  .nav__link {
    padding: 15px 6px;
    font-size: 16px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav__link:hover,
  .nav__link:focus-visible {
    border-bottom: none;
    border-left-color: var(--c-cyan-soft);
  }
  .nav__link[aria-current="page"] {
    border-bottom: none;
    border-left-color: var(--c-cyan);
    padding-left: 14px;
  }

  .nav__item--action {
    display: block;
    border-bottom: none;
    padding-top: 14px;
  }
  .nav__item--action + .nav__item--action { padding-top: 10px; }

  .log-rail {
    top: auto;
    bottom: 92px;
    transform: none;
  }
}

/* ---------- 22. 手机 ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  body { font-size: 15.5px; }

  .brand__mark { width: 34px; height: 34px; font-size: 17px; }
  .brand__name { font-size: 19px; }
  .brand__tagline { display: none; }

  .header__actions .btn { padding: 8px 12px; font-size: 12.5px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  .section__head { flex-direction: column; }
  .annotation { writing-mode: horizontal-tb; }

  .log-rail__toggle { padding: 12px 8px; font-size: 11px; }
  .log-rail { bottom: 76px; }
}

/* ---------- 23. 无障碍 · 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress__bar { transition: none; }
}
