/* ============================================================
   鼎利娱乐 · 共享样式表 /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, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0A1A2F;
  --ink-deep: #061020;
  --ink-soft: #0E2440;
  --ink-line: #1F3A5F;
  --amber: #FF8C42;
  --amber-deep: #C45A1A;
  --gold: #FFD166;
  --jade: #3AAFA9;
  --jade-soft: #A8E6CF;
  --cream: #F5F0E8;
  --charcoal: #1E1E1E;
  --gray: #6B7280;

  --bg: var(--ink);
  --fg: var(--cream);
  --fg-muted: rgba(245, 240, 232, 0.68);
  --fg-dim: rgba(245, 240, 232, 0.44);
  --line: rgba(168, 230, 207, 0.16);
  --line-strong: rgba(255, 209, 102, 0.3);
  --surface: rgba(14, 36, 64, 0.72);
  --surface-2: rgba(31, 58, 95, 0.32);

  --font-display: "Oswald", "Bebas Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 76px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 18px 44px rgba(2, 8, 18, 0.46);
  --speed: 0.32s;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--fg);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 10% -12%, rgba(255, 140, 66, 0.17), transparent 62%),
    radial-gradient(880px 520px at 94% 4%, rgba(58, 175, 169, 0.15), transparent 64%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-stretch: 88%;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6.4vw, 76px); }
h2 { font-size: clamp(26px, 4.4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.8vw, 21px); }

p { text-wrap: pretty; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--gold); }

.mono,
code, kbd, samp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.text-amber { color: var(--amber); }
.text-jade { color: var(--jade); }
.text-gold { color: var(--gold); }

::selection { background: rgba(255, 140, 66, 0.32); color: var(--cream); }

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

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

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.main-offset { padding-top: var(--header-h); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(168, 230, 207, 0.12) 55%, transparent);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--gold);
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--speed) ease, border-color var(--speed) ease,
              box-shadow var(--speed) ease, backdrop-filter var(--speed) ease;
}
.site-header[data-scrolled] {
  background: rgba(10, 26, 47, 0.93);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(2, 8, 18, 0.5);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  padding: 5px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.07);
  transition: border-color var(--speed) ease, background-color var(--speed) ease;
}
.brand-mark__bar { display: block; border-radius: 1px; background: var(--amber); }
.brand-mark__bar:nth-child(1) { width: 100%; }
.brand-mark__bar:nth-child(2) { width: 70%; background: var(--jade); }
.brand-mark__bar:nth-child(3) { width: 44%; background: var(--gold); }
.brand:hover .brand-mark { border-color: var(--gold); background: rgba(255, 209, 102, 0.14); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--cream);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--jade);
}

/* 导航 */
.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  letter-spacing: 0.07em;
  color: rgba(245, 240, 232, 0.78);
  transition: color var(--speed) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--speed) ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--amber); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--amber); }

.nav-foot { display: none; }

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--speed) ease, color var(--speed) ease, background-color var(--speed) ease;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 209, 102, 0.08); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { display: block; height: 1.5px; background: var(--gold); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-active .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) 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(-5.5px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* 滚动进度尺 */
.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber), var(--gold) 46%, var(--jade));
  opacity: 0.9;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  padding-top: clamp(46px, 6vw, 84px);
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(255, 140, 66, 0.1), transparent 66%),
    linear-gradient(180deg, rgba(8, 21, 42, 0.96) 0%, #08152A 42%, var(--ink-deep) 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--fg);
}
.footer-inner { padding-bottom: 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3.6vw, 52px);
}

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col--brand { gap: 16px; }

.brand--footer .brand-name { font-size: 18px; }

.footer-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 34ch;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--jade);
}
.footer-meta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.18);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--fg-muted);
  transition: color var(--speed) ease, transform var(--speed) ease;
}
.footer-links a:hover { color: var(--gold); transform: translateX(3px); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; flex-direction: column; gap: 3px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer-contact__val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(168, 230, 207, 0.12);
}
.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a {
  font-size: 12.5px;
  color: var(--fg-dim);
  transition: color var(--speed) ease;
}
.footer-legal a:hover { color: var(--jade-soft); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform var(--speed) ease, background-color var(--speed) ease,
              border-color var(--speed) ease, color var(--speed) ease, box-shadow var(--speed) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: #1B0C02;
  background: linear-gradient(135deg, var(--gold), var(--amber) 52%, var(--amber-deep));
  box-shadow: 0 12px 28px rgba(255, 140, 66, 0.24);
}
.btn--primary:hover { box-shadow: 0 16px 34px rgba(255, 140, 66, 0.34); }

.btn--ghost {
  color: var(--cream);
  background: rgba(255, 209, 102, 0.05);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--gold); border-color: var(--gold); background: rgba(255, 209, 102, 0.13); }

.btn--jade {
  color: #04211F;
  background: linear-gradient(135deg, var(--jade-soft), var(--jade));
}
.btn--jade:hover { box-shadow: 0 14px 30px rgba(58, 175, 169, 0.3); }

.btn--sm { padding: 10px 18px; font-size: 13px; letter-spacing: 0.07em; }

/* ---------- 9. 章节与文本块 ---------- */
.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px);
}
.section--tight { padding-block: clamp(30px, 4.5vw, 62px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 52px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade);
}
.section-title { font-size: clamp(26px, 4.4vw, 52px); }
.section-index {
  font-family: var(--font-mono);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: rgba(255, 209, 102, 0.34);
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .section-index {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 209, 102, 0.45);
  }
}
.lede {
  max-width: 64ch;
  font-size: clamp(15.5px, 1.5vw, 18.5px);
  line-height: 1.8;
  color: var(--fg-muted);
}

/* ---------- 10. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 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)); }
.grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

/* ---------- 11. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) ease, border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card--accent::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(20px, 2.4vw, 30px);
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--jade));
}
.card__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.card__title { font-size: clamp(18px, 2vw, 22px); }
.card__text { font-size: 14.5px; line-height: 1.78; color: var(--fg-muted); }
.card__meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

/* ---------- 12. 标签与图例 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade-soft);
  border: 1px solid rgba(168, 230, 207, 0.24);
  border-radius: 999px;
  background: rgba(58, 175, 169, 0.08);
}
.tag--amber { color: var(--gold); border-color: rgba(255, 140, 66, 0.38); background: rgba(255, 140, 66, 0.1); }
.tag--jade { color: var(--jade-soft); border-color: rgba(168, 230, 207, 0.3); background: rgba(58, 175, 169, 0.12); }
.tag--gold { color: var(--gold); border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.1); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--fg-muted);
}
.legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.16);
}
.legend__dot--jade { background: var(--jade); box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.18); }
.legend__dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18); }

/* ---------- 13. 筛选按钮 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-btn {
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--speed) ease, border-color var(--speed) ease, background-color var(--speed) ease;
}
.filter-btn:hover { color: var(--gold); border-color: var(--line-strong); background: rgba(255, 209, 102, 0.08); }
.filter-btn[aria-pressed="true"] {
  color: #1B0C02;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--amber-deep));
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.is-filtered-out { display: none !important; }

/* ---------- 14. 面包屑 ---------- */
.breadcrumb { padding-block: clamp(14px, 2vw, 22px); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__sep { color: var(--amber); }
.breadcrumb__list a:hover { color: var(--gold); }
.breadcrumb__item[aria-current="page"] { color: var(--cream); }

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(168, 230, 207, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(31, 58, 95, 0.85), rgba(10, 26, 47, 0.96));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0) 52%, rgba(6, 16, 32, 0.72) 100%);
  opacity: 0.85;
}
.media-frame__img,
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.media-frame:hover .media-frame__img,
.media-frame:hover img { transform: scale(1.035); }

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 2 / 3; }

.media-frame--placeholder {
  background-image:
    linear-gradient(rgba(168, 230, 207, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 230, 207, 0.09) 1px, transparent 1px),
    linear-gradient(140deg, rgba(31, 58, 95, 0.9), rgba(10, 26, 47, 0.98));
  background-size: 28px 28px, 28px 28px, auto;
  background-position: center;
}

.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade-soft);
}
.media-frame__caption span:last-child { color: var(--fg-dim); }

/* ---------- 16. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-contact { flex-direction: row; flex-wrap: wrap; gap: 18px 34px; }
}

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 90;
    width: min(84vw, 344px);
    margin: 0;
    padding: calc(var(--header-h) + 20px) clamp(20px, 6vw, 32px) 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(8, 21, 42, 0.99), rgba(6, 16, 32, 0.995));
    border-left: 1px solid var(--line-strong);
    box-shadow: -26px 0 60px rgba(2, 8, 18, 0.62);
    transform: translateX(103%);
    transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.28, 1);
  }
  .site-nav[data-open] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navidx;
  }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(168, 230, 207, 0.1);
  }
  .nav-link::before {
    counter-increment: navidx;
    content: "0" counter(navidx);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--amber);
  }
  .nav-link::after { display: none; }

  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
  }
  .nav-foot__text { font-size: 13px; color: var(--fg-muted); margin: 0; }

  body.nav-open { overflow: hidden; }

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

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: auto; }
  .footer-contact { flex-direction: column; gap: 12px; }
  .footer-note { max-width: none; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .grid--split { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; padding: 14px 20px; }
  .btn--sm { width: auto; }
  .header-tools .btn { width: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. 动效偏好 ---------- */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .media-frame:hover .media-frame__img,
  .media-frame:hover img { transform: none; }
}
