/* =========================================================
   AB娱乐官方主站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 158px) + 24px);
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1120;
  --panel: #12213A;
  --panel-2: #0E1B2F;
  --paper: #EAF1FA;
  --cyan: #3FE0D0;
  --amber: #F0B24A;
  --coral: #FF6B5E;
  --muted: #8CA2BE;
  --line: #1E3454;
  --teal-deep: #0E8E8A;
  --gold-dark: #8A5A12;

  --rail: 268px;
  --header-h: 158px;
  --shell-max: 1360px;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 全局排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(180deg, rgba(63, 224, 208, .028) 0 1px, transparent 1px 4px),
    radial-gradient(1100px 620px at 92% -8%, rgba(63, 224, 208, .10), transparent 62%),
    radial-gradient(900px 520px at 4% 6%, rgba(240, 178, 74, .065), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
}
h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 900; line-height: 1.02; }
p { line-height: 1.75; }
strong { font-weight: 800; }
em { font-style: normal; color: var(--amber); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  font-family: var(--font-serif);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}
.chapter-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .16em;
  color: var(--amber);
}
.h-section {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 800;
}
.lede {
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--muted);
}
::selection { background: var(--cyan); color: #04161C; }

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-link:focus-visible,
.drawer-link:focus-visible,
.btn:focus-visible { border-radius: 999px; }

/* ---------- 5. 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 28px;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.78;
}
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.125rem; }
.prose ul { margin-top: .8em; padding-left: 1.1em; list-style: none; }
.prose ul li { position: relative; padding-left: .9em; margin-top: .45em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--cyan);
}

/* ---------- 6. 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: calc(100% + var(--rail));
  margin-left: calc(-1 * var(--rail));
  background: linear-gradient(180deg, #0C1729 0%, #0A1120 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .95);
}
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 130;
  padding: 11px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--cyan);
  color: #04161C;
  font-size: .875rem;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.progress-track {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  z-index: 6;
  pointer-events: none;
}
.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform .12s linear;
}

/* 上层：品牌说明与更新提示 */
.header-utility {
  position: relative;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.utility-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 36px;
}
.utility-brandline {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.utility-update {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: live-pulse 2.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 94, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0); }
}
.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.utility-link {
  font-size: .8125rem;
  color: var(--muted);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.utility-link:hover,
.utility-link[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--cyan); }

/* 中层：品牌 */
.header-main { position: relative; }
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--cyan), var(--teal-deep));
  color: #03151B;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  box-shadow: 0 10px 26px -14px rgba(63, 224, 208, .8);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-sub { font-size: .8125rem; color: var(--muted); }
.brand-code {
  margin-left: 4px;
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--amber);
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #04161C; }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); color: #1A1004; }
.btn-primary:active { background: var(--teal-deep); border-color: var(--teal-deep); color: #04161C; }
.btn-ghost { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: rgba(63, 224, 208, .08); }
.btn-small { padding: 9px 15px; font-size: .8125rem; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: .8125rem;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[data-open] { border-color: var(--coral); color: var(--coral); }
.nav-toggle[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 下层：六个主要栏目 */
.header-nav {
  position: relative;
  background: #0B1424;
  border-top: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 46px;
}
.nav-list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-item { display: block; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 7px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--paper);
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.nav-link:hover {
  color: var(--cyan);
  background: rgba(63, 224, 208, .08);
  transform: translateY(-2px);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.nav-index { font-size: .6875rem; letter-spacing: .06em; color: var(--amber); }
.nav-side { display: none; }

/* ---------- 7. 索引抽屉 ---------- */
.index-drawer {
  position: fixed;
  left: 0;
  top: calc(var(--header-h) + 1px);
  bottom: 0;
  width: var(--rail);
  z-index: 70;
  padding: 26px 22px 40px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0C1729 0%, #0A1120 58%);
  border-right: 1px solid var(--line);
  transition: box-shadow .24s var(--ease);
}
.index-drawer.is-pinged { box-shadow: inset 0 0 0 2px var(--coral); }
.drawer-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.drawer-title:focus-visible { outline-offset: 4px; }
.drawer-meta { margin-top: 6px; font-size: .75rem; letter-spacing: .08em; color: var(--amber); }
.drawer-groups { display: grid; gap: 22px; margin-top: 20px; }
.drawer-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
}
.drawer-group-no { font-size: .6875rem; color: var(--amber); }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.drawer-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 33, 58, .55);
  font-size: .75rem;
  color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.drawer-tag:hover { color: var(--paper); border-color: var(--cyan); background: rgba(63, 224, 208, .09); }
.drawer-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 208, .35);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.drawer-link::after { content: " →"; }
.drawer-link:hover { color: var(--amber); border-bottom-color: var(--amber); }
.drawer-foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .6875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0A1120 0%, #08101D 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 56%, var(--coral));
}
.footer-inner { padding-top: 58px; padding-bottom: 34px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 2fr;
  gap: 46px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand-name {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  transition: color .18s var(--ease);
}
.footer-brand-name:hover { color: var(--cyan); }
.footer-brand-line { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.footer-code { margin-top: 10px; font-size: .6875rem; letter-spacing: .07em; color: var(--amber); }
.copy-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  text-align: left;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.copy-btn:hover { border-style: solid; border-color: var(--cyan); transform: translateY(-2px); }
.copy-btn-text { font-size: .8125rem; font-weight: 700; color: var(--paper); }
.copy-btn-mail { font-size: .75rem; color: var(--muted); }
.copy-btn.is-copied { border-style: solid; border-color: var(--cyan); background: rgba(63, 224, 208, .09); }
.copy-btn.is-copied .copy-btn-text { color: var(--cyan); }
.copy-btn.is-copied .copy-btn-mail { color: var(--paper); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-col-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--paper);
}
.footer-list { display: grid; gap: 10px; margin-top: 15px; }
.footer-link {
  display: inline-block;
  font-size: .8125rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-info { display: grid; gap: 11px; margin-top: 32px; }
.info-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: baseline;
  font-size: .8125rem;
}
.info-label { letter-spacing: .08em; color: var(--amber); }
.info-value { color: var(--muted); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-icp { font-size: .75rem; letter-spacing: .05em; color: var(--paper); }
.footer-meta { font-size: .75rem; color: var(--muted); }

/* ---------- 9. 浮动工具 ---------- */
.float-tools {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s var(--ease), visibility .24s var(--ease);
}
.float-tools[data-visible] { opacity: 1; visibility: visible; pointer-events: auto; }
.float-btn {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 33, 58, .94);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.float-btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.float-btn-top { border-color: rgba(240, 178, 74, .5); color: var(--amber); }
.float-btn-top:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- 10. 通用页面组件 ---------- */
.section { padding: 60px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: .75rem;
  color: var(--muted);
}
.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { color: var(--line); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--muted);
}
.tag-cyan { color: var(--cyan); border-color: rgba(63, 224, 208, .45); }
.tag-amber { color: var(--amber); border-color: rgba(240, 178, 74, .45); }
.tag-coral { color: var(--coral); border-color: rgba(255, 107, 94, .45); }

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #12213A 0%, #0E1B2F 100%);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.card-title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; }
.card-meta { display: block; margin-bottom: 8px; font-size: .6875rem; letter-spacing: .08em; color: var(--amber); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.divider { height: 1px; border: 0; background: var(--line); }
.rule-band {
  height: 26px;
  margin: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, rgba(63, 224, 208, .16) 0 2px, transparent 2px 10px);
}
.link-arrow {
  display: inline-block;
  font-size: .8125rem;
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 208, .35);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* 图片容器基础规则 */
.figure { margin: 0; }
.figure-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(180deg, rgba(63, 224, 208, .06) 0 2px, transparent 2px 6px),
    linear-gradient(140deg, #12213A 0%, #0A1120 70%);
}
.figure-media img,
.figure-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-media--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(10, 17, 32, .42) 0 1px, transparent 1px 4px);
}
.figure--wide .figure-media { aspect-ratio: 21 / 9; }
.figure--square .figure-media { aspect-ratio: 1 / 1; }
.figure--tall .figure-media { aspect-ratio: 4 / 5; }
.figure-cap { margin-top: 10px; font-size: .75rem; color: var(--muted); }

/* ---------- 11. 断点 ---------- */
@media (min-width: 992px) and (max-width: 1200px) {
  :root { --rail: 238px; }
}

@media (min-width: 992px) {
  .header-utility { height: 36px; }
  .header-main { height: 76px; }
  .header-nav { height: 46px; }
  .header-main-inner { min-height: 0; height: 100%; padding-top: 0; padding-bottom: 0; }
  .nav-inner { min-height: 0; height: 100%; }
}

@media (max-width: 1200px) {
  .brand-code { display: none; }
}

@media (max-width: 991px) {
  :root { --rail: 0px; }

  .site-header { width: 100%; margin-left: 0; }
  .site-header[data-open] { max-height: 100vh; overflow-y: auto; }

  .utility-brandline { display: none; }
  .utility-inner { gap: 14px; }
  .utility-update { font-size: .75rem; white-space: normal; }

  .header-main-inner { min-height: 66px; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-nav { display: none; border-top: 1px solid var(--line); }
  .site-header[data-open] .header-nav {
    display: block;
    animation: panel-in .24s var(--ease) both;
  }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 13px 10px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:hover { transform: none; background: rgba(63, 224, 208, .07); }
  .nav-link[aria-current="page"] { background: rgba(63, 224, 208, .09); }
  .nav-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .index-drawer {
    position: static;
    top: auto;
    bottom: auto;
    width: auto;
    display: none;
    padding: 20px 18px 26px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .site-header[data-open] .index-drawer {
    display: block;
    animation: panel-in .24s var(--ease) both;
  }
  .drawer-groups { gap: 18px; }

  @keyframes panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell, .container { padding: 0 18px; }
  .brand-sub { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand-name { font-size: 1.25rem; }
  .utility-links { gap: 14px; }
  .utility-link { font-size: .75rem; }
  .section { padding: 44px 0; }
  .footer-inner { padding-top: 44px; padding-bottom: 28px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
  .float-tools { right: 14px; bottom: 14px; }
  .rule-band { height: 18px; margin: 30px 0; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 12px; }
}

/* ---------- 12. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
