/* ============================================================
   888牌局 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: #0B211B;
  color: #F2DCA9;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0B211B;
  --ink-2: #123129;
  --felt: #1B4A3D;
  --gold: #D9A94C;
  --gold-soft: #F2DCA9;
  --cinnabar: #C4402E;
  --cinnabar-lit: #D4503B;
  --jade: #46D3AE;
  --indigo: #6A63D8;
  --paper: #F5EFE2;
  --stone: #8FA096;

  --line: rgba(217, 169, 76, 0.28);
  --line-soft: rgba(217, 169, 76, 0.13);
  --line-strong: rgba(217, 169, 76, 0.52);
  --veil: rgba(242, 220, 169, 0.82);

  /* 半径 / 间距 */
  --r-1: 4px;
  --r-2: 12px;
  --r-3: 28px;
  --wrap: 1240px;
  --pad-x: clamp(18px, 4vw, 48px);
  --gap: 24px;
  --header-h: 76px;

  /* 字体 */
  --f-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字阶 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-17: 17px;
  --fs-21: 21px;
  --fs-28: 28px;
  --fs-38: clamp(26px, 3.4vw, 38px);
  --fs-56: clamp(32px, 4.6vw, 56px);
  --fs-76: clamp(38px, 6vw, 76px);

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

/* ---------- 3. 全局底纹（棋盘网格 + 绒布光晕） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(217, 169, 76, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(217, 169, 76, 0.06) 1px, transparent 1px),
    radial-gradient(90% 70% at 50% -10%, rgba(27, 74, 61, 0.55) 0%, rgba(11, 33, 27, 0) 68%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

/* ---------- 4. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--gold-soft);
  margin: 0 0 0.55em;
}

h1 { font-size: var(--fs-56); }
h2 { font-size: var(--fs-38); }
h3 { font-size: var(--fs-28); }
h4 { font-size: var(--fs-21); }

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

.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), transparent 88%);
}

/* ---------- 5. 焦点可见 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 130;
  transform: translate(-50%, -160%);
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px #000;
  transition: transform 0.22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 7. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-image: linear-gradient(
    180deg,
    rgba(11, 33, 27, 0.95) 0%,
    rgba(11, 33, 27, 0.62) 58%,
    rgba(11, 33, 27, 0) 100%
  );
  background-color: transparent;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header[data-stuck],
.site-header[data-open] {
  background-image: none;
  background-color: rgba(11, 33, 27, 0.97);
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -30px #000;
}
.site-header[data-stuck] { backdrop-filter: blur(12px); }

/* 公告条 */
.announce-strip {
  overflow: hidden;
  max-height: 46px;
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.site-header[data-stuck] .announce-strip {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.announce-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.announce-tag {
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
}
.announce-text {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.03em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 头部主行 */
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-2);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  background: linear-gradient(148deg, var(--gold-soft) 0%, var(--gold) 58%, #B0803A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 22px -14px rgba(217, 169, 76, 0.95);
  transition: transform 0.2s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }
.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-21);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.brand-line {
  display: block;
  font-size: var(--fs-12);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* 主导航 */
.primary-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  color: rgba(242, 220, 169, 0.72);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link:hover { color: var(--gold-soft); background: rgba(217, 169, 76, 0.1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(27, 74, 61, 0.62);
  color: var(--gold-soft);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(217, 169, 76, 0.14); }
.nav-toggle-box { display: grid; gap: 3px; width: 16px; }
.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 底部牌桌坞 */
.table-dock { display: none; }
.dock-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: var(--r-2);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(242, 220, 169, 0.68);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.dock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}
.dock-link:hover,
.dock-link:focus-visible { color: var(--gold-soft); background: rgba(217, 169, 76, 0.1); }
.dock-link:hover .dock-dot { transform: scale(1.4); opacity: 1; }
.dock-link[aria-current="page"] { color: var(--gold); }
.dock-link[aria-current="page"] .dock-dot { opacity: 1; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn-primary {
  background: var(--cinnabar);
  color: var(--paper);
  box-shadow: 0 12px 26px -16px rgba(196, 64, 46, 0.95);
}
.btn-primary:hover { background: var(--cinnabar-lit); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: rgba(217, 169, 76, 0.38);
}
.btn-ghost:hover { background: rgba(217, 169, 76, 0.13); border-color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-12); letter-spacing: 0.06em; }

/* ---------- 9. 胶囊与筛选 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 74, 61, 0.45);
  color: var(--gold-soft);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.chip-quiet {
  cursor: default;
  font-weight: 500;
  color: var(--stone);
  background: rgba(242, 220, 169, 0.04);
  border-color: var(--line-soft);
}
.chip-quiet:hover { transform: none; color: var(--stone); border-color: var(--line-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 10. 布局容器 ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(52px, 7vw, 104px) 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(18, 49, 41, 0.7), rgba(18, 49, 41, 0.28));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head { max-width: 44em; margin-bottom: clamp(26px, 3.4vw, 44px); }
.section-title { font-size: var(--fs-38); margin: 0 0 12px; }
.section-lede {
  font-size: var(--fs-17);
  line-height: 1.85;
  color: rgba(242, 220, 169, 0.74);
  max-width: 38em;
}

.prose {
  max-width: 38em;
  font-size: var(--fs-17);
  line-height: 1.85;
  color: var(--veil);
}
.prose h2 { margin-top: 1.6em; font-size: var(--fs-28); }
.prose h3 { margin-top: 1.4em; font-size: var(--fs-21); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--gold-soft); }
.prose a { color: var(--gold); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.grid { display: grid; gap: var(--gap); }
.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)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { margin: 0 0 clamp(18px, 2.4vw, 30px); }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--stone);
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "／"; color: rgba(217, 169, 76, 0.4); }
.breadcrumb a {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold-soft); }

/* ---------- 12. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(27, 74, 61, 0.95) 0%, rgba(11, 33, 27, 0.95) 70%),
    var(--ink-2);
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px -44px #000;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }
.figure-cap {
  margin-top: 10px;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--stone);
}
.figure-frame {
  border-radius: var(--r-3);
  overflow: hidden;
}
.figure-frame img { width: 100%; height: auto; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(46px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(27, 74, 61, 0.5) 0%, rgba(11, 33, 27, 0) 66%),
    #0B211B;
  color: var(--stone);
  font-size: var(--fs-14);
  line-height: 1.8;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) var(--pad-x) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(30px, 4.6vw, 68px);
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { min-width: 0; }
.footer-mark {
  font-family: var(--f-display);
  font-size: var(--fs-28);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  margin: 0 0 8px;
  line-height: 1.2;
}
.footer-brand-line {
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 14px;
}
.footer-blurb {
  font-size: var(--fs-14);
  line-height: 1.85;
  color: var(--stone);
  max-width: 30em;
  margin: 0 0 18px;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--f-body);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--gold);
}
.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-link {
  display: inline-block;
  padding: 4px 0;
  font-size: var(--fs-14);
  letter-spacing: 0.03em;
  color: rgba(242, 220, 169, 0.7);
  text-decoration: none;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 18px 32px;
  padding: clamp(26px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item { min-width: 0; }
.contact-key {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 3px;
}
.contact-val {
  display: block;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: rgba(242, 220, 169, 0.86);
  overflow-wrap: anywhere;
}
.contact-val-mono { font-family: var(--f-mono); letter-spacing: 0.02em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 22px 0 30px;
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--stone);
}
.footer-legal,
.footer-copy,
.footer-closing { margin: 0; }
.footer-legal { color: rgba(242, 220, 169, 0.6); }
.footer-copy { font-family: var(--f-mono); color: rgba(242, 220, 169, 0.6); }
.footer-closing { color: var(--gold); letter-spacing: 0.06em; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1119px) {
  :root { --header-h: 64px; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "act act";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: var(--header-h);
    padding: 10px var(--pad-x);
  }

  .brand { grid-area: brand; }
  .brand-mark { width: 36px; height: 36px; font-size: 17px; }
  .brand-name { font-size: var(--fs-17); }
  .brand-line { display: none; }

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

  .primary-nav {
    grid-area: nav;
    display: none;
    margin: 0;
    width: 100%;
    border-top: 1px solid var(--line-soft);
    background: rgba(18, 49, 41, 0.96);
    border-radius: 0 0 var(--r-2) var(--r-2);
  }
  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--pad-x) 14px;
  }
  .nav-list li + li { border-top: 1px solid var(--line-soft); }
  .nav-link {
    padding: 14px 4px;
    border-radius: var(--r-1);
    font-size: var(--fs-17);
    color: rgba(242, 220, 169, 0.84);
  }
  .nav-link[aria-current="page"] { background: rgba(217, 169, 76, 0.1); }
  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 2px;
  }

  .header-actions {
    grid-area: act;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 16px;
    width: 100%;
  }
  .site-header[data-open] .header-actions { display: flex; }

  .table-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(11, 33, 27, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 40px -30px #000;
    backdrop-filter: blur(12px);
  }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

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

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

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; --gap: 16px; }

  body { font-size: 16px; }

  .announce-inner { padding: 7px var(--pad-x); gap: 8px; }
  .announce-text { font-size: 11px; }
  .announce-tag { font-size: 11px; padding: 0 8px; }

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

  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section { padding: clamp(40px, 9vw, 60px) 0; }
}

/* ---------- 15. 减弱动态 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .brand:hover .brand-mark,
  .btn:hover,
  .chip:hover,
  .footer-link:hover { transform: none; }
}
