/* ============================================================
   /assets/site.css — 澳门沙金安装 共享外壳
   01 重置  02 变量  03 中文排版  04 页头  05 页脚
   06 通用组件  07 响应式  08 动效降级
   ============================================================ */

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol { margin: 0; }

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

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

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

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

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

hr { border: 0; }

/* ---------- 02 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #141414;
  --charcoal: #1F1E1B;
  --sand: #C9A227;
  --sand-deep: #8C6F1A;
  --gold-lite: #E3C766;
  --stone: #E8DCC8;
  --paper: #F5EFE3;
  --sea: #1F3A5F;
  --sea-deep: #16293F;
  --fog: #8C877D;
  --moss: #5E7A57;

  /* 线 */
  --line: rgba(232, 220, 200, 0.13);
  --line-soft: rgba(232, 220, 200, 0.07);
  --line-gold: rgba(201, 162, 39, 0.42);
  --grid-line: rgba(232, 220, 200, 0.065);

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

  /* 度量 */
  --w-max: 1240px;
  --gutter: 20px;
  --header-h: 70px;

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

/* ---------- 03 中文排版与基座 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--stone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.15;
  letter-spacing: 0.08em;
}

h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: 0.1em; }
h2 { font-size: 28px; }
h3 { font-family: var(--f-sans); font-size: 18px; letter-spacing: 0.06em; }
h4 { font-family: var(--f-sans); font-size: 16px; letter-spacing: 0.06em; }

p { max-width: 68ch; }

a { transition: color 0.18s var(--ease), border-color 0.18s var(--ease); }

:focus-visible {
  outline: 2px solid var(--gold-lite);
  outline-offset: 3px;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

main#main-content { padding-top: var(--header-h); }
main#main-content.flush-top { padding-top: 0; }

/* ---------- 04 页头 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--sand);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--ease),
              border-color 0.24s var(--ease),
              backdrop-filter 0.24s var(--ease);
}

.site-header.is-solid {
  background-color: rgba(20, 20, 20, 0.94);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom-color: var(--line-gold);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--sand-deep), var(--sand) 55%, var(--gold-lite));
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}
.site-header.is-solid .scroll-progress { opacity: 1; }

.header-inner {
  width: 100%;
  max-width: var(--w-max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-seal,
.footer-seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-lite);
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(148deg, rgba(201, 162, 39, 0.28), rgba(31, 30, 27, 0.9) 62%),
    var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.6);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-ver {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fog);
  line-height: 1.2;
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(232, 220, 200, 0.76);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.nav-link:hover { color: var(--gold-lite); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold-lite); font-weight: 700; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold-lite); }

.nav-extra { display: none; }

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.header-mail {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fog);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}
.header-mail:hover { color: var(--gold-lite); border-bottom-color: var(--line-gold); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--stone);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-gold); color: var(--gold-lite); }

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after { position: absolute; top: 6px; left: 0; }

.nav-toggle-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* ---------- 05 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background-color: var(--ink);
  border-top: 1px solid var(--line-gold);
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 64px);
  background-position: center top;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

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

.footer-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
  line-height: 1.3;
  margin-top: 14px;
  max-width: none;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(232, 220, 200, 0.62);
  max-width: 30ch;
}

.footer-mono {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fog);
  max-width: none;
}

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

.footer-title {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.footer-list a {
  color: rgba(232, 220, 200, 0.72);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-list a:hover { color: var(--gold-lite); border-bottom-color: var(--line-gold); }

.footer-contact { gap: 9px; }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: rgba(232, 220, 200, 0.7);
  max-width: 32ch;
}

.footer-key {
  flex: 0 0 auto;
  min-width: 34px;
  padding-top: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.footer-meta {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--fog);
  max-width: 30ch;
}

.footer-link-strong {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  border: 1px solid var(--line-gold);
  color: var(--gold-lite);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}
.footer-link-strong:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.footer-base {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog);
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a { color: var(--fog); border-bottom: 1px solid transparent; }
.footer-legal a:hover { color: var(--gold-lite); border-bottom-color: var(--line-gold); }

/* ---------- 06 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--flush { padding-block: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sand);
  flex: 0 0 auto;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-title { max-width: 22ch; }

.lede {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(232, 220, 200, 0.72);
  max-width: 60ch;
}

.mono { font-family: var(--f-mono); letter-spacing: 0.08em; }
.muted { color: var(--fog); }

.rule {
  height: 1px;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 44px);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--moss);
  flex: 0 0 auto;
}
.status-dot--gold { background: var(--sand); }
.status-dot--sea { background: var(--sea); }

/* 栅格 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn-primary {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-lite); border-color: var(--gold-lite); }
.btn-primary:active { background: var(--sand-deep); border-color: var(--sand-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-gold);
  color: var(--gold-lite);
}
.btn-ghost:hover { background: rgba(201, 162, 39, 0.1); border-color: var(--sand); }

.btn-quiet {
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--line-gold);
  color: var(--gold-lite);
  white-space: nowrap;
}
.btn-quiet:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

/* Bento 信息板 */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.bento-cell {
  background: var(--charcoal);
  padding: clamp(18px, 2.4vw, 30px);
  min-width: 0;
}

/* 资料卡 */
.card {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.2vw, 28px);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
  pointer-events: none;
}

.card:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  line-height: 1.35;
  max-width: none;
}

.card-meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fog);
  white-space: nowrap;
}

.card-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(232, 220, 200, 0.75);
}

/* 渐变视觉面板 */
.grad-panel {
  position: relative;
  border: 1px solid var(--line-gold);
  background-color: var(--charcoal);
  background-image:
    radial-gradient(120% 90% at 82% 0%, rgba(227, 199, 102, 0.22), transparent 55%),
    radial-gradient(95% 85% at 8% 100%, rgba(31, 58, 95, 0.6), transparent 62%),
    linear-gradient(160deg, rgba(201, 162, 39, 0.06), transparent 70%);
  overflow: hidden;
}

.grad-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 44px);
  pointer-events: none;
}

/* 反相 / 对照面板 */
.panel-paper {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--paper);
}
.panel-paper h1,
.panel-paper h2,
.panel-paper h3,
.panel-paper h4 { color: var(--ink); }
.panel-paper .lede { color: rgba(20, 20, 20, 0.72); }
.panel-paper .card-meta { color: rgba(20, 20, 20, 0.55); }

.panel-sea {
  background: linear-gradient(152deg, var(--sea-deep), var(--sea));
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: clamp(20px, 3vw, 36px);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  width: 100%;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.92);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(142deg, rgba(201, 162, 39, 0.16), transparent 46%, rgba(31, 58, 95, 0.3));
  mix-blend-mode: screen;
  pointer-events: none;
}

.media-frame--flat::after { display: none; }

.media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--fog);
  text-align: center;
  background-image:
    repeating-linear-gradient(45deg, var(--line-soft) 0 1px, transparent 1px 14px);
}

/* 标签带 */
.tag-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag {
  display: inline-block;
  padding: 7px 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(232, 220, 200, 0.72);
  border: 1px solid var(--line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tag:hover { color: var(--gold-lite); border-color: var(--line-gold); }

/* 主题筛选 */
.filter-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(31, 30, 27, 0.72);
}

.filter-btn {
  padding: 9px 15px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(232, 220, 200, 0.7);
  border: 1px solid var(--line);
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.filter-btn:hover { color: var(--gold-lite); border-color: var(--line-gold); }
.filter-btn[aria-pressed="true"] {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
  font-weight: 700;
}

.filter-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

[data-filter-item].is-hidden { display: none; }

/* 面包屑与版本条 */
.crumb {
  border-bottom: 1px solid var(--line);
  background: rgba(31, 30, 27, 0.5);
}

.crumb-inner {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 11px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.crumb-inner a:hover { color: var(--gold-lite); }
.crumb-sep { color: var(--line-gold); }
.crumb-inner [aria-current="page"] { color: var(--stone); }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fog);
}

.ver-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-gold);
  color: var(--gold-lite);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.timeline-node {
  position: relative;
  padding: 0 0 28px 10px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border: 1px solid var(--line-gold);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.timeline-node.is-active::before {
  background: var(--sand);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

/* 对比表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-metal {
  width: 100%;
  min-width: 540px;
  border: 1px solid var(--line-gold);
  font-size: 14px;
}

.table-metal th,
.table-metal td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-metal thead th {
  background: rgba(31, 58, 95, 0.42);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table-metal tbody tr:hover { background: rgba(201, 162, 39, 0.06); }
.table-metal tbody tr:last-child td { border-bottom: 0; }

/* 双栏并置 */
.dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 07 响应式 ---------- */
@media (max-width: 1300px) {
  .header-mail { display: none; }
}

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-12 { grid-column: span 12; }

  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento-cell { grid-column: span 12; }
  .bento-cell--full { grid-column: span 12; }
  .bento-cell--narrow { grid-column: span 4; }
  .bento-cell--half { grid-column: span 6; }
  .bento-cell--wide { grid-column: span 8; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .dual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .footer-inner { grid-template-columns: 1.6fr 0.9fr 0.9fr 1.1fr; }
}

/* 移动 / 平板：抽屉式导航 */
@media (max-width: 980px) {
  :root { --header-h: 62px; }

  .header-inner { gap: 12px; }
  .brand-name { font-size: 15px; letter-spacing: 0.1em; }
  .brand-ver { font-size: 9.5px; }
  .brand-seal,
  .footer-seal { width: 28px; height: 28px; font-size: 14px; }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 10px; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 18px var(--gutter) 48px;
    overflow-y: auto;
    background-color: rgba(20, 20, 20, 0.985);
    border-top: 1px solid var(--line-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease),
                transform 0.2s var(--ease),
                visibility 0.2s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--gold-lite);
    border-bottom-color: var(--line-gold);
    box-shadow: inset 2px 0 0 var(--sand);
    padding-left: 12px;
  }

  .nav-extra {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding-top: 26px;
  }

  .nav-extra .btn { width: 100%; }

  .nav-extra-link {
    font-family: var(--f-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--fog);
    word-break: break-all;
  }
  .nav-extra-link:hover { color: var(--gold-lite); }

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

  .footer-base { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand-ver { display: none; }
  .nav-toggle-label { display: none; }
}

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

  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .site-nav { transform: none; }
}
