/* ==========================================================================
   梦想棋牌 777 CN · 共享样式 /assets/site.css
   深空蓝黑打底 + 霓虹紫 / 电光青 / 香槟金 / 余烬橙点色
   ========================================================================== */

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

* { margin: 0; }

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

img, svg, video { max-width: 100%; }

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

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --void: #0A0E1C;
  --panel: #141A31;
  --parchment: #F2E7CF;
  --brown: #2A2118;
  --violet: #8E63FF;
  --cyan: #3FE0C8;
  --champagne: #E3C37C;
  --ember: #E4572E;
  --mist: #A6AECB;
  --text: #EDEFF7;

  --line: rgba(142, 99, 255, .18);
  --line-strong: rgba(142, 99, 255, .45);
  --line-cyan: rgba(63, 224, 200, .42);

  --hard-shadow: 6px 6px 0 rgba(0, 0, 0, .48);
  --hard-shadow-sm: 3px 3px 0 rgba(0, 0, 0, .5);
  --hard-shadow-paper: 6px 6px 0 rgba(42, 33, 24, .32);

  --shell: 1240px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --header-h: 84px;

  --font-heading: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Courier New", monospace;
}

/* ---------- 中文排版与页面底色 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 640px at 84% -10%, rgba(142, 99, 255, .22), transparent 62%),
    radial-gradient(900px 540px at 2% 16%, rgba(63, 224, 200, .10), transparent 60%),
    radial-gradient(760px 480px at 62% 102%, rgba(228, 87, 46, .10), transparent 66%);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* 扫描线纹理（全局装饰，不拦截交互） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, .024) 0 1px,
    transparent 1px 3px
  );
  opacity: .55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

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

strong { color: var(--champagne); font-weight: 700; }

::selection { background: var(--violet); color: #F6F2FF; }

/* ---------- 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.u-mono { font-family: var(--font-mono); letter-spacing: .02em; }
.u-mist { color: var(--mist); }
.u-gold { color: var(--champagne); }
.u-cyan { color: var(--cyan); }
.u-ember { color: var(--ember); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 22px;
  background: var(--champagne);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: transform .18s ease;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease,
    color .18s ease, border-color .18s ease;
}

.btn--sm { padding: 7px 14px; font-size: 13px; }

.btn--solid {
  background: linear-gradient(135deg, var(--violet), #6B3FE8);
  color: #F8F5FF;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 1px rgba(142, 99, 255, .5), var(--hard-shadow-sm);
}
.btn--solid:hover {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 1px rgba(142, 99, 255, .85), 0 0 22px rgba(142, 99, 255, .48),
    2px 2px 0 rgba(0, 0, 0, .5);
}

.btn--ghost {
  background: rgba(142, 99, 255, .10);
  color: var(--cyan);
  border-color: var(--line-cyan);
}
.btn--ghost:hover {
  background: rgba(63, 224, 200, .14);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(63, 224, 200, .26);
}

.btn--gold {
  background: linear-gradient(135deg, var(--champagne), #C9A24E);
  color: var(--brown);
  border-color: rgba(42, 33, 24, .45);
  box-shadow: var(--hard-shadow-sm);
}
.btn--gold:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: clamp(10px, 1.5vw, 16px) var(--gutter) 0;
  transition: padding .24s ease;
}
.site-header.is-shrunk { padding-top: 6px; }

.header-inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  padding: 7px clamp(10px, 1.2vw, 16px);
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 21, 40, .88);
  backdrop-filter: blur(12px);
  box-shadow: var(--hard-shadow);
  transition: border-color .24s ease, box-shadow .24s ease;
}
.site-header.is-shrunk .header-inner {
  border-color: var(--line-strong);
  box-shadow: var(--hard-shadow-sm);
}

/* 胶囊下方的刻度装饰 */
.header-inner::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -7px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 1px,
    transparent 1px 12px
  );
  opacity: .65;
  pointer-events: none;
}

/* 品牌浮岛 */
.brand-island { display: flex; align-items: center; min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--void);
  background: linear-gradient(140deg, var(--champagne), var(--ember));
  box-shadow: 0 0 0 2px rgba(10, 14, 28, .65), 0 0 18px rgba(227, 195, 124, .32);
}

.brand__stack { display: flex; flex-direction: column; min-width: 0; }

.brand__line {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
}

/* 栏目胶囊 */
.nav-island {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.nav-item { display: flex; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease,
    box-shadow .18s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(142, 99, 255, .14);
  border-color: var(--line);
}
.nav-link[aria-current="page"] {
  color: #F8F5FF;
  background: linear-gradient(135deg, var(--violet), #6B3FE8);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 0 0 1px rgba(142, 99, 255, .55), 0 0 16px rgba(142, 99, 255, .42);
}

.nav-actions { display: none; gap: 8px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(63, 224, 200, .10);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.nav-toggle:hover { background: rgba(63, 224, 200, .18); border-color: var(--cyan); }

.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 移动抽屉遮罩（由 JS 创建） */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 6, 14, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

html.nav-open { overflow: hidden; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: linear-gradient(180deg, rgba(20, 26, 49, .94), rgba(10, 14, 28, 1) 58%);
  color: var(--text);
}

.footer-ruler {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 2px,
    transparent 2px 14px
  );
  opacity: .85;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand { display: grid; align-content: start; gap: 16px; }

.footer-brand .brand { color: var(--text); }

.footer-note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 38ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-content: start;
}

.footer-col { display: grid; align-content: start; gap: 12px; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--champagne);
}

.footer-col ul {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer-col a:hover { color: var(--text); border-bottom-color: var(--champagne); }

.footer-contact { display: grid; align-content: start; gap: 14px; }

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.contact-row { display: grid; gap: 3px; }

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

.contact-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--line-strong);
  background: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.copy-btn:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.copy-btn.is-copied { color: var(--cyan); border-bottom-color: var(--cyan); }

.copy-btn__text { overflow-wrap: anywhere; }

.copy-btn__hint {
  flex: 0 0 auto;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--mist);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.copy-btn.is-copied .copy-btn__hint {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--void);
}

.footer-base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}

.footer-meta a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-meta a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-icp { color: var(--champagne); letter-spacing: .04em; }

/* 返回顶部浮岛 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(20, 26, 49, .94);
  color: var(--champagne);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.9);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease,
    border-color .22s ease, color .22s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__track {
  fill: none;
  stroke: rgba(142, 99, 255, .22);
  stroke-width: 3;
}

.to-top__fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset .12s linear;
}

.to-top__arrow { font-size: 17px; line-height: 1; }

/* ==========================================================================
   通用布局与基础组件
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6vw, 88px); }

.rule {
  height: 3px;
  border: 0;
  background: var(--line-strong);
}

.section-head { display: grid; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px); }

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
  margin: 0;
}

.section-title { color: var(--text); }

.section-lede {
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--mist);
}

.section-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(72px, 10vw, 168px);
  line-height: .82;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(227, 195, 124, .5);
  text-stroke: 2px rgba(227, 195, 124, .5);
  user-select: none;
}

.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 30px);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 26, 49, .95), rgba(16, 21, 40, .95));
  box-shadow: var(--hard-shadow);
}

.panel--paper {
  background: var(--parchment);
  color: var(--brown);
  border-color: var(--brown);
  box-shadow: var(--hard-shadow-paper);
}
.panel--paper h1,
.panel--paper h2,
.panel--paper h3 { color: var(--brown); }
.panel--paper a { color: #8A3A18; text-decoration: underline; }
.panel--paper strong { color: #6B2E10; }
.panel--paper .section-lede { color: #4A3B2A; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(142, 99, 255, .10);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--champagne);
}

.tag--cyan {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(63, 224, 200, .08);
}

.tag--ember {
  color: var(--ember);
  border-color: rgba(228, 87, 46, .5);
  background: rgba(228, 87, 46, .10);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--champagne); }

/* 章节目录 */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  font-family: var(--font-mono);
  font-size: 13px;
}

.toc-title {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--champagne);
}

.toc-list {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc-link {
  display: block;
  margin-left: -2px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.toc-link:hover { color: var(--text); }
.toc-link.is-active {
  color: var(--champagne);
  border-left-color: var(--champagne);
  background: rgba(142, 99, 255, .10);
}

/* 网格 */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(142, 99, 255, .10) 0 10px,
    transparent 10px 20px
  );
  box-shadow: var(--hard-shadow);
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top-right-radius: 8px;
  background: rgba(10, 14, 28, .84);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--champagne);
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 900px) {
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  .grid--5-7 { grid-template-columns: 5fr 7fr; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; }

  .grid--chess { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid--chess > *:nth-child(4n + 1) { grid-column: 1 / span 7; }
  .grid--chess > *:nth-child(4n + 2) { grid-column: 8 / span 5; }
  .grid--chess > *:nth-child(4n + 3) { grid-column: 1 / span 5; }
  .grid--chess > *:nth-child(4n + 4) { grid-column: 6 / span 7; }
}

@media (max-width: 1080px) {
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-overlay { display: block; }

  .nav-island {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
    top: auto;
    z-index: 80;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 2 * var(--gutter));
    overflow-y: auto;
    margin-left: 0;
    padding: 16px;
    border: 2px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(14, 19, 38, .98);
    box-shadow: var(--hard-shadow), 0 0 0 100vmax rgba(4, 6, 14, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 48px));
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s ease,
      visibility .28s ease;
  }

  .nav-island[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
  }

  .nav-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav-actions .btn { flex: 1 1 auto; }

  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }

  .brand__tag { display: none; }
  .brand__line { font-size: 12.5px; }
  .brand__mark { width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
  .header-inner::after { left: 8%; right: 8%; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }

  .footer-note { max-width: none; }

  .footer-base { flex-direction: column; align-items: flex-start; }

  .to-top { width: 50px; height: 50px; }
}

@media (max-width: 420px) {
  .brand__line { font-size: 11.5px; }
  .nav-toggle__label { display: none; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
  }

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