/* ============================================================
   亿博主页 · 共享样式 /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, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, hr { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F5F0E6;
  --paper-2: #ECE4D6;
  --ink: #131A24;
  --dusk: #2C4664;
  --dusk-soft: #7C97B8;
  --sand: #C4A03C;
  --sand-soft: #E6D3A4;
  --brick: #8F3A2C;
  --brick-soft: #B35B4A;
  --ash: #5E5A52;

  --line: rgba(19, 26, 36, 0.14);
  --line-soft: rgba(19, 26, 36, 0.08);
  --line-dusk: rgba(124, 151, 184, 0.55);

  --shell: 1180px;
  --gutter: 64px;
  --header-h: 104px;

  --s1: 14px; --s2: 17px; --s3: 20px; --s4: 26px; --s5: 34px; --s6: 48px; --s7: 64px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

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

@media (max-width: 1080px) { :root { --gutter: 32px; } }
@media (max-width: 680px) { :root { --gutter: 20px; --header-h: 96px; } }

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--s2);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-weight: 900; line-height: 1.22; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.16; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: var(--s3); font-weight: 700; letter-spacing: 0; }

p { max-width: 660px; }
strong, b { font-weight: 700; }

.mono { font-family: var(--font-mono); font-size: 0.94em; letter-spacing: 0.06em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* ---------- 4. 布局基础 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--paper-2); }
.section--flush { border-top: 0; }

.rule { height: 1px; background: var(--line); border: 0; }
.stack > * + * { margin-top: 20px; }

.cols { display: grid; gap: 32px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .cols--2, .cols--3 { grid-template-columns: 1fr; }
  .cols--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 5. 排版组件 ---------- */
.t-hero { font-size: clamp(34px, 4.6vw, 64px); font-weight: 900; line-height: 1.16; letter-spacing: -0.01em; }
.t-section { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.22; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--dusk);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sand);
}

.index { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; color: var(--sand); }
.index--rule::after { content: ""; display: block; width: 32px; height: 2px; background: var(--sand); margin-top: 12px; }

.lede { font-size: var(--s3); line-height: 1.7; color: var(--dusk); max-width: 660px; }
.prose { max-width: 660px; }
.prose p + p { margin-top: 18px; }
.meta { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.04em; color: var(--ash); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--dusk);
  color: var(--dusk);
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  background: transparent;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { background: var(--dusk); color: var(--paper); }
.btn--primary { border-color: var(--brick); background: var(--brick); color: var(--paper); }
.btn--primary:hover { background: var(--brick-soft); border-color: var(--brick-soft); color: var(--paper); }
.btn--ghost { border-color: var(--line-dusk); color: var(--ash); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--dusk-soft); }
.btn__mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; opacity: 0.85; }

/* ---------- 7. 标签与状态 ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  padding: 5px 8px; background: var(--sand-soft); color: var(--ink);
}
.tag--dusk { background: rgba(44, 70, 100, 0.12); color: var(--dusk); }
.tag--brick { background: rgba(143, 58, 44, 0.12); color: var(--brick); }

.status {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  padding: 4px 7px; background: var(--sand-soft); color: var(--ink); white-space: nowrap;
}
.status--ok { background: rgba(44, 70, 100, 0.14); color: var(--dusk); }

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 20px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ash);
}
.crumbs a:hover { color: var(--brick); }
.crumbs__sep { color: var(--dusk-soft); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 9. 图片容器（供页面阶段使用） ---------- */
.figure { margin: 0; }
.figure__inner {
  position: relative; overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-dusk);
  aspect-ratio: 16 / 9;
}
.figure__inner img { width: 100%; height: 100%; object-fit: cover; }
.figure--wide .figure__inner { aspect-ratio: 21 / 9; }
.figure--square .figure__inner { aspect-ratio: 1 / 1; }
.figure--tall .figure__inner { aspect-ratio: 3 / 4; }
.figure__inner::before,
.figure__inner::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--sand); opacity: 0.9;
}
.figure__inner::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.figure__inner::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.figure__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--dusk-soft);
  background-image:
    linear-gradient(to right, rgba(124, 151, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 151, 184, 0.16) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 0 0;
}
.figure__cap { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.04em; color: var(--ash); }

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

/* ---------- 11. 头部 · 外壳 ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 120;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 8px; }

/* 资料带 */
.band { background: var(--ink); color: var(--paper); }
.band__inner { display: flex; align-items: center; gap: 28px; height: 40px; }
.band__label {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--sand);
  padding-right: 14px; border-right: 1px solid rgba(245, 240, 230, 0.25);
  white-space: nowrap;
}
.band__list { display: flex; align-items: center; gap: 26px; min-width: 0; }
.band__item {
  position: relative; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1; letter-spacing: 0.04em;
  white-space: nowrap;
}
.band__no { color: var(--sand); }
.band__title { color: rgba(245, 240, 230, 0.86); }
.band__note {
  position: absolute; top: calc(100% + 10px); left: 0; width: 300px; z-index: 80;
  padding: 10px 14px;
  background: var(--ink); color: rgba(245, 240, 230, 0.9);
  border-left: 2px solid var(--sand);
  font-family: var(--font-sans); font-size: 12px; line-height: 1.7; letter-spacing: 0.02em; white-space: normal;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
}
.band__item:hover .band__note,
.band__item:focus .band__note,
.band__item:focus-within .band__note { opacity: 1; visibility: visible; }
.band__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.band__action {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--paper);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(196, 160, 60, 0.6);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.band__action:hover { color: var(--sand); border-color: var(--sand); }

/* 命令栏 */
.cmdbar {
  position: relative; height: 64px; background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: height 0.18s var(--ease);
}
.cmdbar__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.site-header[data-stuck] .cmdbar { height: 48px; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--dusk); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.brand__name { font-size: 16px; font-weight: 900; letter-spacing: 0.02em; white-space: nowrap; }
.brand__index {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--sand);
  padding-left: 10px; border-left: 1px solid var(--line-dusk);
}

.nav { min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { flex: 0 0 auto; }
.nav__link {
  position: relative; display: flex; align-items: baseline; gap: 6px;
  padding: 8px 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ash);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__no { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; color: var(--dusk-soft); }
.nav__label { display: inline; }
.nav__link[aria-current="page"] { color: var(--dusk); }
.nav__link[aria-current="page"] .nav__no { color: var(--sand); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--sand);
}

.cmdbar__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-dusk);
  font-size: 13px; font-weight: 500; color: var(--dusk);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.tool:hover { background: var(--paper-2); border-color: var(--dusk); }
.tool__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--dusk-soft);
  transition: background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.tool[aria-expanded="true"] { border-color: var(--dusk); background: var(--sand-soft); color: var(--ink); }
.tool[aria-expanded="true"] .tool__dot { background: var(--dusk); box-shadow: 0 0 0 3px rgba(44, 70, 100, 0.18); }

.search { position: relative; }
.search__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid transparent;
  font-size: 13px; color: var(--ash);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.search__trigger:hover { color: var(--ink); border-color: var(--line-dusk); }
.search__key {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid var(--line-dusk);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--dusk);
}
.search__panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 320px; z-index: 85;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--dusk-soft);
  border-top: 3px solid var(--dusk);
  box-shadow: 0 14px 30px -22px rgba(19, 26, 36, 0.65);
}
.search__label {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--sand);
}
.search__input {
  width: 100%; padding: 9px 10px;
  border: 1px solid var(--line-dusk); background: var(--paper-2); color: var(--ink);
  font-size: 15px;
}
.search__input::placeholder { color: var(--dusk-soft); }
.search__hint { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ash); max-width: none; }
.search__go {
  display: inline-block; margin-top: 12px; padding-bottom: 3px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--brick);
  border-bottom: 1px solid var(--brick-soft);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.search__go:hover { color: var(--brick-soft); border-color: var(--brick-soft); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--sand); transition: width 0.1s linear; }

/* 移动导航按钮 */
.nav-toggle {
  display: none; align-items: center; gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line-dusk);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--dusk);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav-toggle:hover { background: var(--paper-2); border-color: var(--dusk); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bar { display: block; width: 16px; height: 1px; background: currentColor; transition: transform 0.18s var(--ease), opacity 0.18s var(--ease); }
.nav-toggle[aria-expanded="true"] { border-color: var(--dusk); background: var(--sand-soft); color: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

/* 下载看中心浮层 */
.drawer {
  position: fixed;
  top: calc(var(--header-h) + 24px); right: 24px;
  width: 320px; max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  z-index: 70;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--dusk-soft);
  border-top: 3px solid var(--dusk);
  visibility: hidden; opacity: 0;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.drawer[data-open] { visibility: visible; opacity: 1; transform: none; }
.drawer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.drawer__no { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--sand); }
.drawer__title { font-size: var(--s3); font-weight: 900; }
.drawer__close {
  margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--line-dusk); color: var(--ash); font-size: 15px; line-height: 1;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.drawer__close:hover { color: var(--ink); border-color: var(--dusk); background: var(--paper); }
.drawer__note { font-size: 13px; line-height: 1.7; color: var(--ash); padding-bottom: 12px; border-bottom: 1px solid var(--line); max-width: none; }
.drawer__list { margin-top: 4px; }
.drawer__row {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.drawer__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dusk-soft); }
.drawer__link { font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: color 0.15s var(--ease), border-color 0.15s var(--ease); }
.drawer__link:hover { color: var(--brick); border-color: var(--brick-soft); }
.drawer__foot { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.04em; color: var(--ash); max-width: none; }

/* ---------- 12. 页脚 ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--ink); color: var(--ink); }
.footer__top { border-bottom: 1px solid var(--line); }
.footer__top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.brand--footer .brand__mark { background: var(--ink); }
.footer__tagline { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.08em; color: var(--ash); max-width: none; }

.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 48px; padding-bottom: 56px; }
.footer__col { padding: 0 28px; border-left: 1px solid var(--line); }
.footer__col:first-child { padding-left: 0; border-left: 0; }
.footer__col:last-child { padding-right: 0; }
.footer__head {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  color: var(--dusk); margin-bottom: 16px;
}
.footer__list { display: grid; gap: 9px; }
.footer__list a { font-size: 15px; color: var(--ink); border-bottom: 1px solid transparent; transition: color 0.15s var(--ease), border-color 0.15s var(--ease); }
.footer__list a:hover { color: var(--brick); border-color: var(--brick-soft); }
.footer__list--meta { font-size: 13px; line-height: 1.75; color: var(--ash); }
.footer__list--meta a { font-size: 13px; }

.footer__bottom { background: var(--ink); color: var(--paper); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.footer__legal { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.06em; color: rgba(245, 240, 230, 0.82); max-width: none; }
.footer__sep { color: var(--sand); padding: 0 8px; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--paper);
  padding-bottom: 3px; border-bottom: 1px solid rgba(196, 160, 60, 0.6);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.to-top:hover { color: var(--sand); border-color: var(--sand); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer__col { padding: 0 24px 0 0; border-left: 0; }
  .footer__col:nth-child(even) { padding-right: 0; }
}

@media (max-width: 980px) {
  .cmdbar__inner { gap: 12px; }
  .brand { order: 1; }
  .cmdbar__tools { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; display: inline-flex; }

  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    z-index: 55;
    padding: 16px var(--gutter) 48px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
  }
  .nav[data-open] { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { justify-content: space-between; padding: 16px 6px; font-size: var(--s2); color: var(--ink); }
  .nav__link:hover { background: var(--paper-2); }
  .nav__link[aria-current="page"] { background: transparent; color: var(--dusk); border-left: 3px solid var(--sand); padding-left: 14px; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__no { font-size: 12px; }
}

@media (max-width: 900px) {
  .band__list { display: none; }
  .band__inner { gap: 16px; }
}

@media (max-width: 760px) {
  .drawer {
    top: auto; left: 16px; right: 16px; bottom: 16px;
    width: auto; max-height: 72vh;
    transform: translateY(calc(100% + 40px));
  }
  .drawer[data-open] { transform: none; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .tool__label { display: none; }
  .search__text { display: none; }
  .brand__name { font-size: 15px; }
  .band__label { letter-spacing: 0.12em; }
  .footer__grid { grid-template-columns: 1fr; row-gap: 0; padding-top: 32px; padding-bottom: 40px; }
  .footer__col { padding: 20px 0; border-top: 1px solid var(--line); }
  .footer__col:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 520px) {
  .search__panel {
    position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px);
    width: auto;
  }
}

/* ---------- 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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .drawer { transition: none; }
}
