/* ==========================================================================
   博盈平台 · boying-portal.com.cn
   /assets/site.css — 共享外壳样式（潮汐控制台）
   深潮蓝骨架 / 雾白纸面 / 珊瑚橙入口 / 沙金刻度
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, picture, 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 { width: 100%; border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --tide-900: #0A1A22;
  --tide-800: #0B2E3F;
  --tide-700: #144A63;
  --tide-600: #1E6B87;
  --paper: #F4F1EA;
  --paper-dim: #E7E1D5;
  --sand: #C8A55B;
  --coral: #FF6B4A;
  --coral-deep: #D9482A;
  --gray: #6B7C86;

  --rail-w: 88px;
  --rail-open: 236px;
  --bar-h: 60px;

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-s: 8px;
  --r-m: 16px;
  --r-l: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .68, .28, 1);
  --hair: rgba(11, 46, 63, .14);
  --shadow-dock: 0 30px 70px rgba(10, 26, 34, .35);
  --shadow-card: 0 16px 36px rgba(11, 46, 63, .08);
}

/* ---------- 3. Base type ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .012em;
  color: var(--tide-900);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

::selection { background: var(--coral); color: var(--tide-900); }

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

/* ---------- 4. 主内容让位 ---------- */
#main-content,
.site-main {
  display: block;
  margin-inline-start: var(--rail-w);
  min-height: 60vh;
}

/* ---------- 5. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.6vw, 64px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .06em;
  font-size: .82em;
}

.index-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.index-line::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 1px;
  background: var(--sand);
}

.tex-grid {
  background-image:
    linear-gradient(rgba(244, 241, 234, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .055) 1px, transparent 1px);
  background-size: 34px 34px;
}

.ruler {
  height: 10px;
  background-image: repeating-linear-gradient(90deg, rgba(11, 46, 63, .35) 0 1px, transparent 1px 12px);
  background-repeat: repeat-x;
}

.tide-meter {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 165, 91, .9), rgba(200, 165, 91, 0));
}
.tide-meter__label {
  display: block;
  margin-block-start: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--gray);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(200, 165, 91, .55);
  background: rgba(200, 165, 91, .1);
  color: #8A6D24;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.tag--coral { border-color: rgba(255, 107, 74, .5); background: rgba(255, 107, 74, .12); color: var(--coral-deep); }
.tag--sand { border-color: rgba(200, 165, 91, .55); background: rgba(200, 165, 91, .1); color: #8A6D24; }
.tag--ink { border-color: rgba(244, 241, 234, .25); background: rgba(244, 241, 234, .08); color: var(--paper); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--coral { background: var(--coral); color: var(--tide-900); box-shadow: 0 8px 20px rgba(255, 107, 74, .3); }
.btn--coral:hover { background: #FF8567; }
.btn--coral:active { background: var(--coral-deep); color: #fff; }

.btn--ghost { background: rgba(244, 241, 234, .06); border-color: rgba(200, 165, 91, .5); color: var(--paper); }
.btn--ghost:hover { background: rgba(200, 165, 91, .16); }

.btn--outline { background: transparent; border-color: rgba(11, 46, 63, .28); color: var(--tide-800); }
.btn--outline:hover { border-color: var(--tide-800); background: rgba(11, 46, 63, .04); }

.btn--quiet { background: rgba(11, 46, 63, .06); color: var(--tide-700); }
.btn--quiet:hover { background: rgba(11, 46, 63, .11); }

.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--tide-900);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 8. 侧边轨道 ========== */
.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 60;
  width: var(--rail-w);
  overflow: hidden auto;
  background: var(--tide-800);
  color: var(--paper);
  border-inline-end: 1px solid rgba(200, 165, 91, .22);
  transition: width .24s var(--ease), box-shadow .24s var(--ease);
}
.site-header:hover,
.site-header:focus-within { width: var(--rail-open); box-shadow: var(--shadow-dock); }

.site-header__inner {
  position: relative;
  z-index: 3;
  width: var(--rail-open);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 20px 14px 26px;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--coral), var(--coral-deep));
}
.brand__tide {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 6px 0 rgba(244, 241, 234, .75), 0 -6px 0 rgba(244, 241, 234, .75);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--paper); line-height: 1.35; }
.brand__sub { font-size: 11px; letter-spacing: .12em; color: rgba(244, 241, 234, .6); }

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(200, 165, 91, .45);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .1em;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: background-color .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 轨道主体 */
.site-header__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 26px;
  min-height: 0;
}

.nav { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.nav__title { font-size: 11px; letter-spacing: .18em; color: rgba(200, 165, 91, .9); }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__item { min-width: 0; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 8px;
  border-radius: 10px;
  color: rgba(244, 241, 234, .8);
  font-size: 14px;
  line-height: 1.4;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: rgba(244, 241, 234, .08); color: var(--paper); }
.nav__idx { flex: 0 0 auto; font-size: 11px; letter-spacing: .1em; color: rgba(244, 241, 234, .45); }
.nav__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.site-header:hover .nav__label,
.site-header:focus-within .nav__label { opacity: 1; }

.nav__link[aria-current="page"] { background: rgba(255, 107, 74, .14); color: var(--paper); }
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--coral);
}
.nav__link[aria-current="page"] .nav__idx { color: var(--coral); }

/* 轨道 CTA */
.site-header__cta { display: flex; flex-direction: column; gap: 10px; margin-block-start: auto; }
.site-header__cta-btn {
  width: 100%;
  justify-content: flex-start;
  padding-inline: 16px;
  overflow: hidden;
}
.site-header__cta-icon { font-size: 15px; line-height: 1; }
.site-header__cta-text {
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.site-header:hover .site-header__cta-text,
.site-header:focus-within .site-header__cta-text { opacity: 1; }

.site-header__note {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(244, 241, 234, .52);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.site-header:hover .site-header__note,
.site-header:focus-within .site-header__note { opacity: 1; }

/* 无悬停能力的桌面设备：轨道常开 */
@media (hover: none) and (min-width: 901px) {
  :root { --rail-w: var(--rail-open); }
  .nav__label,
  .site-header__note,
  .site-header__cta-text { opacity: 1; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-inline-start: var(--rail-w);
  background: var(--tide-800);
  color: rgba(244, 241, 234, .78);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(200, 165, 91, .6) 0 1px, transparent 1px 14px);
}

.footer__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 72px clamp(20px, 3.6vw, 64px) 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: 48px;
}

.footer__brand { min-width: 0; }
.footer__wordmark {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--paper);
}
.footer__tagline {
  margin-block-start: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 241, 234, .68);
}
.footer__index { margin-block-start: 18px; color: rgba(200, 165, 91, .9); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__col-title {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--sand);
  margin-block-end: 16px;
}
.footer__list li + li { margin-block-start: 10px; }
.footer__link {
  font-size: 15px;
  color: rgba(244, 241, 234, .82);
  border-block-end: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__link:hover { color: var(--coral); border-block-end-color: rgba(255, 107, 74, .5); }

.footer__meta {
  margin-block-start: 56px;
  padding-block-start: 24px;
  border-block-start: 1px solid rgba(244, 241, 234, .12);
  display: grid;
  gap: 10px;
}
.footer__meta-line {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 241, 234, .66);
}
.footer__entry { display: flex; align-items: center; gap: 10px; color: rgba(244, 241, 234, .78); }
.footer__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 24px;
  font-size: 12.5px;
  color: rgba(244, 241, 234, .55);
}
.footer__record { font-size: 12.5px; letter-spacing: .1em; color: rgba(200, 165, 91, .8); }
.footer__copy { font-size: 12.5px; }

/* ---------- 10. 区块 / 网格 / 标题组 ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 96px); }
.section--ink { background: var(--tide-800); color: var(--paper); }
.section--ink .section__title { color: var(--paper); }
.section--sand { background: var(--paper-dim); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-block-end: clamp(28px, 3.4vw, 44px);
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.section__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.lead {
  max-width: 64ch;
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--tide-700);
}
.section--ink .lead { color: rgba(244, 241, 234, .78); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }

/* ---------- 11. 卡片 / 便签 / 旁注 ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--r-m);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--shadow-card);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 12px;
}
.card__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.card__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--gray); }
.card__body { font-size: 15.5px; line-height: 1.8; color: var(--tide-700); }
.section--ink .card {
  background: rgba(244, 241, 234, .05);
  border-color: rgba(244, 241, 234, .14);
  color: var(--paper);
  box-shadow: none;
}
.section--ink .card__body { color: rgba(244, 241, 234, .76); }

.memo {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px 14px 14px 4px;
  padding: 20px;
  box-shadow: 7px 9px 0 rgba(11, 46, 63, .06);
}
.memo__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-block-end: 12px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--tide-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.memo__title { font-size: 17px; font-weight: 700; margin-block-end: 6px; }
.memo__text { font-size: 14.5px; line-height: 1.75; color: var(--tide-700); }

.aside-note {
  background: rgba(30, 107, 135, .08);
  border-inline-start: 3px solid var(--sand);
  border-radius: 0 14px 14px 0;
  padding: 18px 20px;
}
.aside-note__title {
  margin-block-end: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--tide-600);
}
.aside-note p { font-size: 14.5px; line-height: 1.78; color: var(--tide-700); }

/* ---------- 12. 图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-m);
  background: linear-gradient(155deg, var(--tide-800), var(--tide-600));
  aspect-ratio: 16 / 10;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(244, 241, 234, .84);
  background: linear-gradient(to top, rgba(10, 26, 34, .72), transparent);
}

/* ---------- 13. 面包屑 / 正文 / 表格 ---------- */
.breadcrumb { padding-block: 18px 0; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__link { color: var(--gray); transition: color .18s var(--ease); }
.breadcrumb__link:hover { color: var(--coral-deep); }
.breadcrumb__sep { color: rgba(107, 124, 134, .55); }
.breadcrumb__item[aria-current="page"] { color: var(--tide-800); font-weight: 600; }

.prose { max-width: 72ch; font-size: 17px; line-height: 1.85; }
.prose > * + * { margin-block-start: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-block-start: 1.9em; }
.prose h3 { font-size: 19px; margin-block-start: 1.6em; }
.prose ul,
.prose ol { padding-inline-start: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-block-start: .4em; }
.prose a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }

.data-table { font-size: 15px; text-align: left; }
.data-table th {
  padding: 10px 14px;
  border-block-end: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
.data-table td {
  padding: 14px;
  border-block-end: 1px solid rgba(11, 46, 63, .08);
  font-variant-numeric: tabular-nums;
}
.data-table tbody tr:nth-child(even) { background: rgba(30, 107, 135, .05); }

/* ---------- 14. 脚本注入：进度潮线与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: var(--rail-w);
  inset-inline-end: 0;
  z-index: 80;
  height: 3px;
  background: rgba(11, 46, 63, .1);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sand), var(--coral));
}

.to-top {
  position: fixed;
  inset-inline-end: 22px;
  inset-block-end: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(200, 165, 91, .4);
  border-radius: var(--r-pill);
  background: var(--tide-800);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(10, 26, 34, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top__pct { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--coral); }
.to-top__text { font-size: 13px; letter-spacing: .02em; }

/* ---------- 15. 入场动效 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html[data-js="on"] [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 平板 ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- 17. 移动端：顶栏 + 抽屉 ---------- */
@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  body.is-nav-open { overflow: hidden; }

  #main-content,
  .site-main { padding-block-start: var(--bar-h); }

  .site-footer { margin-inline-start: 0; }

  .site-header {
    inset: 0 0 auto;
    width: auto;
    height: var(--bar-h);
    overflow: visible;
    border-inline-end: 0;
    border-block-end: 1px solid rgba(200, 165, 91, .22);
  }
  .site-header:hover,
  .site-header:focus-within { width: auto; box-shadow: none; }

  .site-header__inner {
    width: 100%;
    height: var(--bar-h);
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
  }

  .nav-toggle { display: inline-flex; }

  .nav__label,
  .site-header__note,
  .site-header__cta-text { opacity: 1; }

  .site-header__body {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 2;
    width: min(86vw, 326px);
    padding: 26px 20px 30px;
    background: var(--tide-800);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow-dock);
  }
  .site-header[data-open] .site-header__body { transform: none; }
  .site-header[data-open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(10, 26, 34, .6);
  }

  .nav__link { padding: 13px 12px; font-size: 15px; }
  .site-header__cta-btn { justify-content: center; padding-inline: 18px; }

  .scroll-progress { inset-block-start: var(--bar-h); inset-inline-start: 0; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .to-top { inset-inline-end: 14px; inset-block-end: 14px; }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { padding-block-start: 56px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__meta { margin-block-start: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 19. 动效退化 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html[data-js="on"] [data-reveal] { opacity: 1; transform: none; }
  .site-header { transition: none; }
}
