/* =========================================================
   小鸟棋牌体育 / assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、通用组件
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13.6px, 17px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
ul, ol { padding-left: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }

:root {
  --mist: #6E8FA3;
  --jade: #0F5C5A;
  --jade-deep: #0A3F3E;
  --charcoal: #151A1D;
  --moss: #2F9E75;
  --amber: #F2B33D;
  --amber-deep: #8A5D00;
  --heart: #D94F5C;
  --volt: #4DD0E1;
  --paper: #F7F4EE;
  --slate: #B9C7D1;
  --violet: #7C6CF0;

  --ink: #151A1D;
  --ink-soft: #4C585F;
  --line: rgba(21, 26, 29, 0.12);
  --line-invert: rgba(247, 244, 238, 0.16);
  --on-dark: rgba(247, 244, 238, 0.78);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shell: 1180px;
  --narrow: 760px;
  --gutter: clamp(18px, 4vw, 40px);

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

/* ---------- 焦点 ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.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;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #2A1E05;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--moss), var(--volt) 45%, var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(120% 150% at 6% -30%, rgba(110, 143, 163, 0.55) 0%, rgba(110, 143, 163, 0) 58%),
    radial-gradient(90% 130% at 102% -10%, rgba(77, 208, 225, 0.20) 0%, rgba(77, 208, 225, 0) 62%),
    linear-gradient(180deg, #106363 0%, var(--jade) 42%, var(--jade-deep) 100%);
  border-bottom: 3px solid var(--amber);
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(21, 26, 29, 0) 0%, rgba(21, 26, 29, 0.18) 100%);
  pointer-events: none;
}

.masthead {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.masthead__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px) 0 clamp(14px, 2vw, 20px);
}

.masthead__brand { text-align: center; }

.brandmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.08em;
}
.brandmark__name { display: inline-block; }
.brandmark__suffix {
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--amber);
  text-indent: 0.34em;
}
.brandmark:hover .brandmark__name { color: var(--amber); }
.brandmark__name { transition: color 0.18s ease; }

.masthead__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: rgba(247, 244, 238, 0.6);
}

.query-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 244, 238, 0.26);
  background: rgba(247, 244, 238, 0.07);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.query-chip:hover {
  border-color: var(--amber);
  background: rgba(242, 179, 61, 0.14);
  transform: translateY(-2px);
}
.query-chip__label { white-space: nowrap; }
.query-chip__code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: rgba(242, 179, 61, 0.2);
  color: var(--amber);
}

.member-gate {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #2A1E05;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 0 rgba(10, 40, 40, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.member-gate:hover {
  background: #FFC757;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(10, 40, 40, 0.45);
}
.member-gate__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--heart);
  box-shadow: 0 0 0 3px rgba(217, 79, 92, 0.3);
}

/* ---------- 导航 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto clamp(10px, 2vw, 14px);
  padding: 12px 18px;
  border: 1px solid rgba(247, 244, 238, 0.26);
  border-radius: var(--r-pill);
  background: rgba(247, 244, 238, 0.07);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(247, 244, 238, 0.14); border-color: var(--amber); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.primary-nav {
  padding-bottom: clamp(8px, 1.4vw, 14px);
  border-top: 1px solid rgba(247, 244, 238, 0.15);
}
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px clamp(2px, 1.2vw, 10px);
  list-style: none;
  margin: 0;
  padding: clamp(6px, 1vw, 10px) 0 0;
}
.primary-nav__list a {
  position: relative;
  display: block;
  padding: 12px 15px 11px;
  border-radius: var(--r-pill);
  color: rgba(247, 244, 238, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.primary-nav__list a:hover { color: var(--paper); background: rgba(247, 244, 238, 0.09); }
.primary-nav__list a:hover::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"] {
  background: var(--amber);
  color: #2A1E05;
}
.primary-nav__list a[aria-current="page"]::after { display: none; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #161C20 0%, #10151A 100%);
  color: var(--on-dark);
  padding: clamp(42px, 6vw, 76px) 0 clamp(26px, 4vw, 40px);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--moss), var(--volt) 48%, var(--amber));
}

.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: grid;
  gap: clamp(24px, 3.4vw, 38px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line-invert);
}

.footer-brand-block { min-width: 0; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.footer-tagline {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(247, 244, 238, 0.5);
}

.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--amber);
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  display: inline-block;
  color: rgba(247, 244, 238, 0.76);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover { color: var(--volt); transform: translateX(5px); }

/* 旧版栏目折叠 */
.legacy-panel {
  border: 1px solid var(--line-invert);
  border-radius: var(--r-lg);
  background: rgba(247, 244, 238, 0.04);
  padding: 2px clamp(16px, 2vw, 22px);
}
.legacy-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.legacy-panel__summary::-webkit-details-marker { display: none; }
.legacy-panel__summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.legacy-panel[open] .legacy-panel__summary::after { transform: rotate(-135deg); }
.legacy-panel__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 18px;
}
.legacy-panel__grid a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  background: rgba(247, 244, 238, 0.06);
  color: rgba(247, 244, 238, 0.78);
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.legacy-panel__grid a:hover {
  background: var(--amber);
  color: #2A1E05;
  transform: translateY(-2px);
}

/* 联系方式 */
.footer-contact {
  display: grid;
  gap: 12px;
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line-invert);
}
.footer-contact__row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  font-size: 14px;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(247, 244, 238, 0.45);
}
.footer-contact__value {
  color: rgba(247, 244, 238, 0.88);
  overflow-wrap: anywhere;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.footer-copy { color: rgba(247, 244, 238, 0.55); }
.footer-legal { color: rgba(247, 244, 238, 0.72); }
.footer-note { color: rgba(247, 244, 238, 0.42); }

/* =========================================================
   通用组件
   ========================================================= */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--narrow {
  width: min(100% - (var(--gutter) * 2), var(--narrow));
  margin-inline: auto;
}

.section { padding: clamp(46px, 7vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--mist {
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(110, 143, 163, 0.22) 0%, rgba(110, 143, 163, 0) 70%),
    linear-gradient(180deg, rgba(110, 143, 163, 0.13), rgba(110, 143, 163, 0.04));
}
.section--jade { background: var(--jade); color: var(--paper); }
.section--charcoal { background: var(--charcoal); color: var(--paper); }
.section--jade .eyebrow,
.section--charcoal .eyebrow { color: var(--volt); }
.section--jade .prose a,
.section--charcoal .prose a { color: var(--volt); }

/* 标题层级 */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.h1 { font-size: clamp(32px, 5.2vw, 56px); }
.h2 { font-size: clamp(26px, 3.4vw, 40px); }
.h3 { font-size: clamp(20px, 2.2vw, 28px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--jade);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  flex: none;
}

/* 正文 */
.prose { max-width: 66ch; font-size: 1rem; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin-top: 1.8em; }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 800; }
.prose a {
  color: var(--jade);
  text-decoration: underline;
  text-decoration-color: rgba(15, 92, 90, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--amber-deep); text-decoration-color: var(--amber); }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 1.1em;
  color: var(--ink-soft);
}

/* 网格 */
.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--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 卡片 */
.card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 179, 61, 0.7);
  box-shadow: 0 22px 40px -26px rgba(21, 26, 29, 0.55);
}
.section--jade .card,
.section--charcoal .card {
  background: rgba(247, 244, 238, 0.06);
  border-color: var(--line-invert);
  color: var(--paper);
}

/* 标签与局号 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(15, 92, 90, 0.1);
  color: var(--jade);
  white-space: nowrap;
}
.tag--amber { background: rgba(242, 179, 61, 0.22); color: var(--amber-deep); }
.tag--moss { background: rgba(47, 158, 117, 0.16); color: #1E6B4E; }
.tag--heart { background: rgba(217, 79, 92, 0.15); color: #A32C38; }
.tag--volt { background: rgba(77, 208, 225, 0.2); color: #0B6B77; }

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
  background: rgba(242, 179, 61, 0.22);
  padding: 1px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--amber {
  background: var(--amber);
  color: #2A1E05;
  box-shadow: 0 6px 0 rgba(21, 26, 29, 0.18);
}
.btn--amber:hover { background: #FFC757; transform: translateY(-2px); box-shadow: 0 9px 0 rgba(21, 26, 29, 0.18); }
.btn--jade { background: var(--jade); color: var(--paper); }
.btn--jade:hover { background: #0C6C69; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(242, 179, 61, 0.16); border-color: var(--amber); color: var(--amber-deep); }
.section--jade .btn--ghost:hover,
.section--charcoal .btn--ghost:hover { color: var(--amber); background: rgba(242, 179, 61, 0.14); }

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
}
.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--slate);
}
.breadcrumb a {
  color: var(--jade);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--amber-deep); }
.section--jade .breadcrumb a,
.section--charcoal .breadcrumb a { color: var(--volt); }

/* 图片容器（页面阶段放置图片） */
.img-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(110, 143, 163, 0.42), rgba(15, 92, 90, 0.34) 55%, rgba(21, 26, 29, 0.32));
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(135deg, rgba(247, 244, 238, 0.07) 0 2px, rgba(247, 244, 238, 0) 2px 14px);
  pointer-events: none;
}
.img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(21, 26, 29, 0.74);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .masthead__bar {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding-top: clamp(20px, 5vw, 28px);
  }
  .masthead__brand { order: -1; }
  .query-chip { justify-self: center; }
  .member-gate { justify-self: center; }

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

  .primary-nav { display: none; padding-top: 12px; }
  .site-header[data-open] .primary-nav { display: block; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 4px;
  }
  .primary-nav__list a {
    text-align: center;
    background: rgba(247, 244, 238, 0.07);
    border: 1px solid rgba(247, 244, 238, 0.1);
    padding: 13px 18px;
  }
  .primary-nav__list a::after { display: none; }

  .footer-contact__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .legacy-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-brand-block { grid-column: auto; }
}

/* =========================================================
   动效偏好
   ========================================================= */
@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;
  }
  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .card:hover,
  .query-chip:hover,
  .member-gate:hover,
  .btn:hover,
  .legacy-panel__grid a:hover {
    transform: none;
  }
  .footer-links a:hover { transform: none; }
}
