/* ==========================================================================
   威利斯人棋牌 · /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,
figure, blockquote, ul, ol, dl, dd, fieldset {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

table { width: 100%; border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0B1F1A;
  --ink-700: #12332B;
  --ink-500: #1E4D40;
  --felt-300: #2F7A64;
  --gold-600: #A9822F;
  --gold-300: #E3C070;
  --cyan-400: #35E0D0;
  --orange-500: #FF7A2F;
  --paper-050: #F2F5F0;
  --slate-400: #8FA39B;
  --text-body: #C9D6D1;
  --text-dim: #A9BCB4;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-cut: 14px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --hairline: 1px solid var(--ink-500);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(47, 122, 100, .26), transparent 68%),
    radial-gradient(900px 520px at 4% 108%, rgba(169, 130, 47, .12), transparent 70%),
    var(--ink-900);
  color: var(--paper-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

p {
  max-width: 44em;
  color: var(--text-body);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--paper-050);
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.01em; }

strong, b { font-weight: 700; }

::selection {
  background: var(--gold-300);
  color: var(--ink-900);
}

/* ---------- 4. 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.divider {
  height: 1px;
  border: 0;
  background: var(--ink-500);
  margin-block: clamp(24px, 3vw, 40px);
}

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 5. 章节与标题组件 ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-600);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--paper-050);
}

.lede {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color .16s var(--ease),
    color .16s var(--ease),
    border-color .16s var(--ease),
    transform .16s var(--ease);
}

.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }

.btn--primary {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: #08150F;
}
.btn--primary:hover { background: var(--gold-300); border-color: var(--gold-300); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: rgba(169, 130, 47, .6);
  color: var(--gold-300);
}
.btn--ghost:hover { background: rgba(169, 130, 47, .16); border-color: var(--gold-300); }

.btn--cyan {
  background: transparent;
  border-color: rgba(53, 224, 208, .5);
  color: var(--cyan-400);
}
.btn--cyan:hover { background: rgba(53, 224, 208, .14); color: #D6FBF6; }

.btn--paper { background: var(--paper-050); border-color: var(--paper-050); color: var(--ink-900); }
.btn--paper:hover { background: #FFFFFF; }

/* ---------- 7. 芯片 / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  background: rgba(18, 51, 43, .72);
  color: #CFDCD6;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color .16s var(--ease),
    border-color .16s var(--ease),
    color .16s var(--ease);
}
.chip:hover { border-color: var(--gold-600); color: var(--gold-300); }
.chip[data-active="true"] {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: #08150F;
  font-weight: 700;
}
.chip__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  opacity: .78;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(53, 224, 208, .45);
  border-radius: 4px;
  background: rgba(53, 224, 208, .1);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--gold {
  border-color: rgba(169, 130, 47, .55);
  background: rgba(169, 130, 47, .12);
  color: var(--gold-300);
}
.tag--orange {
  border-color: rgba(255, 122, 47, .5);
  background: rgba(255, 122, 47, .1);
  color: var(--orange-500);
}

/* ---------- 8. 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-cut);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(227, 192, 112, .18);
  transition:
    border-color .16s var(--ease),
    background-color .16s var(--ease);
}
.panel:hover {
  border-color: var(--gold-600);
  background: linear-gradient(170deg, var(--ink-700), var(--ink-900));
}

.panel--paper {
  background: var(--paper-050);
  border-color: #D3DBD4;
  color: var(--ink-900);
  box-shadow: none;
}
.panel--paper:hover { background: #FFFFFF; border-color: var(--gold-600); }
.panel--paper h1,
.panel--paper h2,
.panel--paper h3 { color: var(--ink-900); }
.panel--paper p { color: #2A3B35; }

.panel--cyan { border-color: rgba(53, 224, 208, .42); }
.panel--cyan:hover { border-color: var(--cyan-400); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs { margin-bottom: clamp(18px, 2.4vw, 28px); }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate-400);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--ink-500);
}

.breadcrumbs__link {
  color: #C9D6D1;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.breadcrumbs__link:hover { color: var(--gold-300); border-bottom-color: var(--gold-300); }

.breadcrumbs__item[aria-current="page"] { color: var(--gold-300); }

/* ---------- 10. 图片容器基座 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-cut);
  background: var(--ink-700);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(143, 163, 155, .92);
  background: repeating-linear-gradient(135deg, rgba(47, 122, 100, .18) 0 12px, rgba(11, 31, 26, .35) 12px 24px);
}

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-050);
  background: linear-gradient(0deg, rgba(11, 31, 26, .94), rgba(11, 31, 26, 0));
}

/* ---------- 11. 页首跳转 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-300);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 12. 头部：悬浮胶囊 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px var(--gutter) 0;
  background: linear-gradient(180deg, rgba(11, 31, 26, .97) 0%, rgba(11, 31, 26, .78) 64%, rgba(11, 31, 26, 0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-rail {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
}

.header-capsule {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: 66px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--ink-500);
  border-radius: 999px;
  background: rgba(18, 51, 43, .94);
  box-shadow:
    0 1px 0 rgba(227, 192, 112, .16),
    0 22px 44px -32px #000;
  transition:
    background-color .22s var(--ease),
    border-color .22s var(--ease),
    min-height .22s var(--ease);
}

.site-header[data-scrolled="true"] .header-capsule {
  min-height: 58px;
  background: rgba(11, 31, 26, .98);
  border-color: rgba(169, 130, 47, .55);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  transition: background-color .16s var(--ease);
}
.brand:hover { background: rgba(47, 122, 100, .22); }

.brand-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--gold-600);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(169, 130, 47, .38), rgba(11, 31, 26, .12));
  transform: rotate(45deg);
}
.brand-glyph__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, .18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--paper-050);
}
.brand-text__line {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate-400);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #CFDCD6;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}
.nav-link:hover { color: var(--gold-300); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  background: var(--gold-600);
  color: #08150F;
  font-weight: 700;
}
.nav-link[aria-current="page"]::after { display: none; }

/* 常驻入口 */
.nav-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--ink-500);
}

.nav-quick__link {
  padding: 6px 11px;
  border: 1px dashed rgba(53, 224, 208, .45);
  border-radius: 999px;
  color: var(--cyan-400);
  font-size: 12.5px;
  white-space: nowrap;
  transition:
    background-color .16s var(--ease),
    border-color .16s var(--ease),
    color .16s var(--ease);
}
.nav-quick__link:hover {
  background: rgba(53, 224, 208, .14);
  border-style: solid;
  border-color: var(--cyan-400);
  color: #BFF6F0;
}

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

.version-badge {
  padding: 3px 8px;
  border: 1px solid rgba(169, 130, 47, .55);
  border-radius: 6px;
  background: rgba(169, 130, 47, .12);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.header-cta { flex: 0 0 auto; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(169, 130, 47, .55);
  border-radius: 999px;
  background: rgba(169, 130, 47, .1);
  color: var(--gold-300);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.nav-toggle:hover { background: rgba(169, 130, 47, .22); border-color: var(--gold-300); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度 */
.header-progress {
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(30, 77, 64, .55);
  overflow: hidden;
}
.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300) 62%, var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--ink-500);
  background: var(--ink-900);
  color: var(--slate-400);
}

.footer-belt {
  height: 6px;
  background: repeating-linear-gradient(
    120deg,
    var(--gold-600) 0 12px,
    var(--ink-900) 12px 24px,
    var(--cyan-400) 24px 28px,
    var(--ink-900) 28px 46px
  );
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.01em;
  color: var(--paper-050);
}

.footer-brand__line {
  margin-top: 10px;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-400);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

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

.footer-col__title,
.footer-contact__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer-col__list { display: grid; gap: 9px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14px;
  color: #C6D4CE;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}
.footer-link:hover { color: var(--gold-300); }
.footer-link:hover::after { transform: scaleX(1); }
.footer-link[aria-current="page"] { color: var(--gold-300); font-weight: 600; }

.footer-contact {
  min-width: 0;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--ink-500);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.65;
}

.contact-line__label {
  flex: 0 0 42px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate-400);
}

.contact-line__value {
  color: #DCE6E1;
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid rgba(53, 224, 208, .4);
  border-radius: 5px;
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  vertical-align: middle;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.copy-btn:hover { background: rgba(53, 224, 208, .16); border-color: var(--cyan-400); }
.copy-btn[data-copied="true"] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-900);
}

.footer-legal {
  border-top: 1px solid rgba(30, 77, 64, .85);
  background: rgba(11, 31, 26, .9);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-block: 18px 22px;
  font-size: 12.5px;
  color: var(--slate-400);
}

.footer-legal__copy { max-width: none; color: var(--slate-400); }

.footer-legal__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}
.footer-legal__links a {
  color: #C6D4CE;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-legal__links a:hover { color: var(--gold-300); border-bottom-color: var(--gold-300); }

/* ---------- 14. 显现协议 ---------- */
[data-reveal][data-reveal-active="true"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1280px) {
  .brand-text__line { display: none; }
  .version-badge { display: none; }
}

@media (max-width: 1180px) {
  .header-capsule { gap: 10px; }
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .nav-link::after { left: 10px; right: 10px; }
  .nav-quick__link { padding: 6px 9px; font-size: 12px; }
  .header-cta { padding: 0 14px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--ink-500);
  }
}

@media (max-width: 960px) {
  .site-header { padding-top: 8px; }
  .header-capsule { min-height: 60px; padding: 8px 10px 8px 12px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: min(70vh, 520px);
    padding: 14px;
    border: 1px solid var(--ink-500);
    border-radius: 18px;
    background: rgba(11, 31, 26, .99);
    box-shadow: 0 30px 50px -30px #000;
    overflow-y: auto;
  }

  .site-header[data-open="true"] .primary-nav { display: flex; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-link::after { display: none; }

  .nav-quick {
    gap: 8px;
    padding-top: 12px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ink-500);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-quick::-webkit-scrollbar { display: none; }

  .header-progress { margin-top: 6px; }

  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-brand__line { max-width: 32ch; }
  .footer-legal__links { margin-left: 0; }
}

@media (max-width: 520px) {
  .brand-text__name { font-size: 17px; }
  .brand-glyph { width: 26px; height: 26px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-actions .btn { flex: 1 1 auto; }
  .contact-line { flex-direction: column; gap: 2px; }
  .contact-line__label { flex: none; }
}

/* ---------- 16. 降低动效 ---------- */
@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][data-reveal-active="true"] { opacity: 1; transform: none; }
  .header-progress__bar { transition: none; }
  .nav-link::after,
  .footer-link::after { transition: none; }
}
