/* ==========================================================================
   博猫指南 · 全站共享样式  /assets/site.css
   深海蓝主轨 + 暖纸米阅读面 + 猫眼金强调 · 侧边导览式外壳
   ========================================================================== */

/* --- 1. 设计变量 --------------------------------------------------------- */
:root {
  --deep: #0B2A3D;
  --deep-2: #123C55;
  --paper: #F4EDE1;
  --paper-up: #FBF7F0;
  --gold: #D9A231;
  --gold-deep: #8C6314;
  --coral: #D9613F;
  --mint: #3E9C7D;
  --mist: #6E93A8;
  --grey: #C6BCA9;
  --ink: #101B22;

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

  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-lift: 0 26px 52px -34px rgba(11, 42, 61, 0.82);
  --shadow-soft: 0 14px 30px -22px rgba(11, 42, 61, 0.72);

  --shell-max: 1240px;
  --content-max: 1180px;

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--paper);
  background-image:
    radial-gradient(1180px 620px at 92% -12%, rgba(217, 162, 49, 0.13), rgba(217, 162, 49, 0) 62%),
    radial-gradient(920px 540px at -14% 8%, rgba(11, 42, 61, 0.10), rgba(11, 42, 61, 0) 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(217, 162, 49, 0.34); color: var(--ink); }

#main-content { display: block; }

/* --- 3. 中文排版 ---------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--deep);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.15rem + 3.1vw, 3.1rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); font-weight: 800; }
h4 { font-size: 1rem; font-weight: 800; letter-spacing: 0; }
h5 { font-size: 0.92rem; font-weight: 800; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 800; color: var(--deep); }

a { color: var(--deep-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.serif-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.2rem);
  line-height: 1.92;
  color: var(--deep-2);
}

/* --- 4. 布局容器 ---------------------------------------------------------- */
.wrap { width: min(calc(100% - 32px), var(--content-max)); margin-inline: auto; }
.wrap--narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.wrap--wide { width: min(calc(100% - 32px), 1320px); margin-inline: auto; }

.section { padding: clamp(40px, 6vw, 84px) 0; }
.section--tight { padding: clamp(24px, 3.4vw, 46px) 0; }

.section--deep {
  position: relative;
  background: var(--deep);
  color: #DCE8EF;
  border-radius: clamp(22px, 3.6vw, 44px);
  padding: clamp(34px, 5vw, 68px) clamp(20px, 3.6vw, 56px);
  overflow: hidden;
}
.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--paper-up); }
.section--deep .serif-lead { color: #C3D5E0; }
.section--deep a { color: var(--gold); }

.section--inset {
  background: var(--paper-up);
  border: 1px solid rgba(16, 27, 34, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 38px);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.stack > * + * { margin-top: 16px; }
.stack--loose > * + * { margin-top: 28px; }

.divider { height: 1px; border: 0; margin: 0; background: rgba(16, 27, 34, 0.14); }

/* --- 5. 跳至主内容 -------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--deep);
  color: var(--paper-up);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--paper-up); }

/* --- 6. 头部：悬浮胶囊导航 ------------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--deep-2), var(--gold) 58%, var(--coral));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 10px clamp(10px, 2.4vw, 28px) 0;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    var(--paper) 62%,
    rgba(244, 237, 225, 0.86) 82%,
    rgba(244, 237, 225, 0) 100%);
  transition: padding 0.24s var(--ease);
}
.site-header[data-condensed="true"] { padding-top: 4px; }

.header-shell {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 7px 8px 7px 14px;
  background: var(--paper-up);
  border: 1px solid rgba(16, 27, 34, 0.12);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: padding 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.site-header[data-condensed="true"] .header-shell {
  padding: 4px 8px 4px 12px;
  box-shadow: 0 16px 30px -24px rgba(11, 42, 61, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep);
}
.brand:hover { color: var(--deep); }
.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--deep);
  transition: color 0.2s var(--ease);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover .brand-mark { color: var(--gold-deep); }
.brand-text { display: block; line-height: 1.1; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* 导航胶囊 */
.nav { flex: 0 1 auto; min-width: 0; margin-inline: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding-inline: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list li { flex: 0 0 auto; scroll-snap-align: center; }

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--deep-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-list a:hover { background: rgba(11, 42, 61, 0.08); color: var(--deep); }
.nav-list a[aria-current="page"] {
  background: var(--deep);
  color: var(--paper-up);
  font-weight: 700;
  box-shadow: 0 8px 18px -12px rgba(11, 42, 61, 0.95);
}

/* 头部右侧操作 */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(11, 42, 61, 0.16);
  border-radius: 50%;
  background: var(--paper);
  color: var(--deep);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.icon-btn:hover { background: var(--deep); color: var(--paper-up); border-color: var(--deep); }
.icon-btn svg { width: 18px; height: 18px; }

/* 移动导航按钮 */
.nav-toggle { display: none; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 快速定位浮层 */
.quick-find {
  position: absolute;
  top: calc(100% + 14px);
  right: 6px;
  z-index: 5;
  width: min(320px, calc(100vw - 44px));
  padding: 16px 14px 12px;
  background: var(--paper-up);
  border: 1px solid rgba(16, 27, 34, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 56px -32px rgba(11, 42, 61, 0.88);
}
.quick-find[hidden] { display: none; }

.quick-find__title {
  margin: 0 0 10px;
  padding-inline: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.quick-find__list { list-style: none; }
.quick-find__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--deep);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.quick-find__list a:hover { background: rgba(11, 42, 61, 0.07); color: var(--deep); }
.quick-find__k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-deep);
}

/* 右下订阅胶囊 */
.subscribe-pill {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 86;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--deep);
  border: 1px solid rgba(217, 162, 49, 0.45);
  color: #F6EFE2;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 24px 46px -26px rgba(11, 42, 61, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
}
.subscribe-pill[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.subscribe-pill:hover { color: #FFF6E4; border-color: var(--gold); }
.subscribe-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 162, 49, 0.22);
}

/* --- 7. 通用按钮 ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--compact { padding: 10px 18px; font-size: 0.88rem; }

.btn--lamp {
  background: linear-gradient(135deg, #E4B247, var(--gold) 55%, #BE8620);
  color: #251A06;
  box-shadow: 0 12px 24px -16px rgba(217, 162, 49, 0.95);
}
.btn--lamp:hover { color: #1B1204; box-shadow: 0 16px 28px -16px rgba(217, 162, 49, 1); }

.btn--deep { background: var(--deep); color: var(--paper-up); }
.btn--deep:hover { background: var(--deep-2); color: var(--paper-up); }

.btn--ghost {
  background: transparent;
  border-color: rgba(11, 42, 61, 0.24);
  color: var(--deep);
}
.btn--ghost:hover { background: rgba(11, 42, 61, 0.07); color: var(--deep); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(244, 237, 225, 0.38);
  color: var(--paper-up);
}
.btn--outline-light:hover { background: rgba(244, 237, 225, 0.12); color: var(--paper-up); }

/* --- 8. 基础组件 ---------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--mist);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: var(--grey); }
.crumbs a { color: var(--deep-2); text-decoration: none; }
.crumbs a:hover { color: var(--coral); text-decoration: underline; }

.page-head { padding: clamp(26px, 4vw, 54px) 0 clamp(16px, 2.4vw, 30px); }
.page-head__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--paper-up);
  border: 1px solid rgba(16, 27, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.card--deep {
  background: var(--deep-2);
  border-color: rgba(217, 162, 49, 0.26);
  color: #DDE9F0;
}
.card--deep h2, .card--deep h3, .card--deep h4 { color: var(--paper-up); }
.card--sunk {
  background: rgba(198, 188, 169, 0.22);
  border-color: rgba(16, 27, 34, 0.08);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 42, 61, 0.09);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.7;
}
.tag--gold { background: rgba(217, 162, 49, 0.20); color: #7A5710; }
.tag--coral { background: rgba(217, 97, 63, 0.16); color: #A03C1F; }
.tag--mint { background: rgba(62, 156, 125, 0.17); color: #236450; }
.tag--outline { background: transparent; border: 1px solid rgba(11, 42, 61, 0.22); }

.note {
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(217, 162, 49, 0.12);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--deep);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 42, 61, 0.14);
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(217, 162, 49, 0.24), rgba(217, 162, 49, 0) 58%),
    linear-gradient(152deg, var(--deep) 0%, var(--deep-2) 100%);
}
.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--flat { aspect-ratio: 4 / 3; }
.media-frame--arch {
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 24% 24% var(--radius-lg) var(--radius-lg);
}

/* --- 9. 页脚 -------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 104px);
  background: var(--ink);
  color: #B9C9D3;
  padding-bottom: 4px;
}

.footer-beacon {
  position: relative;
  height: 48px;
  overflow: hidden;
  border-top: 1px solid rgba(217, 162, 49, 0.28);
  background: linear-gradient(180deg, rgba(217, 162, 49, 0.10), rgba(16, 27, 34, 0));
}
.beacon-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 42%;
  background: linear-gradient(100deg,
    rgba(217, 162, 49, 0) 0%,
    rgba(217, 162, 49, 0.50) 50%,
    rgba(217, 162, 49, 0) 100%);
  transform: skewX(-18deg);
  animation: beam-sweep 9s linear infinite;
}
@keyframes beam-sweep {
  0% { left: -45%; }
  62%, 100% { left: 106%; }
}
.beacon-arc {
  position: absolute;
  right: 8%;
  bottom: -42px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(217, 162, 49, 0.34);
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.beacon-arc--sm {
  right: 5%;
  bottom: -18px;
  width: 62px;
  height: 62px;
  border-color: rgba(110, 147, 168, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 56px);
  width: min(calc(100% - 32px), var(--content-max));
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) 0 clamp(26px, 4vw, 44px);
}

.footer-col { min-width: 0; }

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--paper-up);
  text-decoration: none;
}
.footer-logo:hover { color: var(--gold); }

.footer-tagline {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.85;
  color: #A9BDC9;
  max-width: 30ch;
}
.footer-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(217, 162, 49, 0.78);
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a {
  color: #C5D4DD;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-links--legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 237, 225, 0.14);
}

.footer-contact { list-style: none; }
.footer-contact li + li { margin-top: 12px; }
.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-value {
  display: block;
  font-size: 0.92rem;
  color: #D5E1E8;
  word-break: break-word;
}
.footer-value--mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.footer-note {
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(185, 201, 211, 0.76);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 26px;
  width: min(calc(100% - 32px), var(--content-max));
  margin-inline: auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(244, 237, 225, 0.14);
  font-size: 0.78rem;
  color: rgba(185, 201, 211, 0.72);
}
.footer-base__item { margin: 0; }
.footer-base__motto { font-family: var(--font-serif); color: rgba(217, 162, 49, 0.85); }

/* --- 10. 响应式 ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 92px; }

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

  .nav {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    margin-inline: 0;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 12px;
    background: var(--paper-up);
    border: 1px solid rgba(16, 27, 34, 0.14);
    border-radius: 26px;
    box-shadow: 0 34px 64px -34px rgba(11, 42, 61, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
    z-index: 95;
  }
  .nav[data-open] { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .nav-list li { width: 100%; }
  .nav-list a { padding: 13px 16px; border-radius: 16px; font-size: 1rem; }

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

  .grid--2, .grid--3, .grid--7-5, .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }

  .header-shell { gap: 8px; padding-left: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 0.98rem; }

  .quick-find { left: 4px; right: 4px; width: auto; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; }
}

@media (max-width: 560px) {
  .header-actions .btn--lamp { display: none; }
  .brand-sub { display: none; }
  .icon-btn { width: 38px; height: 38px; }
}

/* --- 11. 无障碍动效降级 --------------------------------------------------- */
@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;
  }

  .beacon-beam { display: none; }
  .subscribe-pill { transform: none; }
  .btn:hover { transform: none; }
}
