/* ==========================================================================
   腾达会游艺 · 共享站点样式 /assets/site.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0B241E;
}

html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background-color: #0B241E;
  color: #F4EEDF;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
hr { border: 0; }
::selection { background-color: #C8A45D; color: #0B241E; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B241E;
  --panel: #12362D;
  --glass: rgba(18, 54, 45, 0.68);
  --paper: #F4EEDF;
  --gold: #C8A45D;
  --gold-bright: #E8C97E;
  --amber: #F3C64E;
  --cinnabar: #B4472F;
  --mist: #7F9B90;
  --black: #080D0B;

  --line-gold: rgba(200, 164, 93, 0.24);
  --line-soft: rgba(244, 238, 223, 0.10);
  --text-dim: rgba(244, 238, 223, 0.66);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", "Consolas", "Courier New", monospace;

  --header-h: 78px;
  --radius: 3px;
  --dur: 200ms;
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --shadow-panel: 0 18px 40px rgba(4, 12, 10, 0.42);
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; letter-spacing: 0.06em; }

p { max-width: 38em; }
li p, .prose p, .panel p { max-width: none; }

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0.02em;
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.6;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background-color: var(--gold);
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.95;
  color: var(--text-dim);
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--amber);
  color: #0B241E;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(4, 12, 10, 0.5);
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 860px; }

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

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.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--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* ---------- 6. 面板与纸面 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  background-color: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
}
.panel--paper {
  background-color: var(--paper);
  color: #14211D;
  border-color: rgba(11, 36, 30, 0.14);
}
.panel--glass {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-color: rgba(200, 164, 93, 0.32);
  box-shadow: var(--shadow-panel);
}
.panel--flush { padding: 0; }

.surface-paper { color: #14211D; }
.surface-paper h1,
.surface-paper h2,
.surface-paper h3,
.surface-paper h4,
.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: #14211D; }
.surface-paper .lead,
.panel--paper .lead { color: #3B4C45; }
.surface-paper .eyebrow,
.panel--paper .eyebrow { color: #8A6A2B; }
.surface-paper .mono,
.panel--paper .mono { color: #4A5B54; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn--gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #0B241E;
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--gold-bright);
  border-color: var(--gold-bright);
}
.btn--amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #0B241E;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(243, 198, 78, 0.22);
}
.btn--amber:hover,
.btn--amber:focus-visible {
  background-color: #FFD873;
  border-color: #FFD873;
}
.btn--ghost {
  background-color: transparent;
  border-color: rgba(200, 164, 93, 0.5);
  color: var(--gold-bright);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: rgba(200, 164, 93, 0.14);
  border-color: var(--gold);
  color: var(--paper);
}
.btn--paper {
  background-color: var(--paper);
  border-color: var(--paper);
  color: #0B241E;
}
.btn--paper:hover,
.btn--paper:focus-visible {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
}
.btn--sm {
  padding: 9px 16px;
  font-size: 0.8125rem;
}

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 2px;
  background-color: rgba(200, 164, 93, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #0B241E;
  font-weight: 600;
}
.tag--cinnabar {
  background-color: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 18px;
  font-size: 0.8125rem;
  color: var(--mist);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "／";
  color: rgba(200, 164, 93, 0.55);
}
.breadcrumbs a {
  color: rgba(244, 238, 223, 0.7);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--gold-bright);
  border-block-end-color: var(--gold);
}
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 10. 正文与分隔 ---------- */
.prose { max-width: 38em; }
.prose > * + * { margin-block-start: 1.2em; }
.prose p { margin: 0; }
.prose a {
  color: var(--gold-bright);
  text-decoration: none;
  border-block-end: 1px solid rgba(200, 164, 93, 0.5);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prose a:hover,
.prose a:focus-visible { border-block-end-color: var(--gold-bright); }
.prose ul,
.prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: 0.4em; }
.prose blockquote {
  margin: 0;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--cinnabar);
  color: var(--text-dim);
}

.rule {
  height: 1px;
  margin-block: clamp(28px, 4vw, 56px);
  background-image: linear-gradient(90deg, rgba(200, 164, 93, 0.55), rgba(200, 164, 93, 0));
}

/* ---------- 11. 图片容器基础规则 ---------- */
.figure {
  margin: 0;
  display: grid;
  gap: 10px;
}
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 93, 0.2);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background-color: #0E2A24;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(200, 164, 93, 0.16), transparent 52%),
    radial-gradient(circle at 78% 82%, rgba(180, 71, 47, 0.12), transparent 58%),
    linear-gradient(160deg, #12362D 0%, #0B241E 58%, #080D0B 100%);
}
.figure-frame > img,
.figure-frame > picture,
.figure-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 238, 223, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 223, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
.figure-caption {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(244, 238, 223, 0.55);
}

/* ---------- 12. 站点头部 ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  background-color: transparent;
  color: var(--paper);
  border-block-end: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(8, 13, 11, 0.74), rgba(8, 13, 11, 0));
  opacity: 1;
  transition: opacity 240ms var(--ease);
}
.site-header[data-scrolled="true"] {
  background-color: rgba(11, 36, 30, 0.97);
  border-block-end-color: rgba(200, 164, 93, 0.3);
  box-shadow: 0 10px 30px rgba(4, 12, 10, 0.45);
}
.site-header[data-scrolled="true"]::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background-color: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(200, 164, 93, 0.55);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(232, 201, 126, 0.9);
}
.brand-text {
  display: grid;
  gap: 3px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.brand-line {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: rgba(244, 238, 223, 0.55);
}

.site-nav {
  margin-inline-start: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 30px);
  list-style: none;
}
.nav-item { flex: 0 0 auto; }
.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: rgba(244, 238, 223, 0.78);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 2px;
  background-color: var(--amber);
  transition: width 180ms var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--gold-bright); }
.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::after { width: 16px; }

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(200, 164, 93, 0.55);
  border-radius: 2px;
  background-color: rgba(200, 164, 93, 0.07);
  color: var(--gold-bright);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #0B241E;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(200, 164, 93, 0.42);
  border-radius: 2px;
  background-color: rgba(18, 54, 45, 0.62);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--gold); }
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--gold-bright);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background-color: rgba(200, 164, 93, 0.12);
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--gold), var(--amber));
  transition: width 90ms linear;
}

/* ---------- 13. 站点页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block-start: clamp(48px, 6vw, 88px);
  background-color: var(--ink);
  border-block-start: 1px solid var(--line-gold);
  color: rgba(244, 238, 223, 0.72);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 164, 93, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 93, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 76%);
}
.site-footer > * { position: relative; z-index: 1; }

.footer-grid {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
  padding-block-end: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 64px);
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}
.brand--footer .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 1.0625rem;
}
.brand--footer .brand-name { font-size: 1rem; }
.brand--footer .brand-line { color: rgba(244, 238, 223, 0.44); }

.footer-summary {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(244, 238, 223, 0.66);
  max-width: 30em;
}
.footer-note {
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--cinnabar);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(127, 155, 144, 0.95);
  max-width: 32em;
}

.footer-col {
  display: grid;
  gap: 16px;
  align-content: start;
}
.footer-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.6;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}
.footer-links a {
  position: relative;
  display: inline-block;
  padding-block: 2px;
  color: rgba(244, 238, 223, 0.76);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.footer-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 180ms var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold-bright); }
.footer-links a:hover::after,
.footer-links a:focus-visible::after { width: 100%; }

.footer-contact {
  display: grid;
  gap: 14px;
  list-style: none;
}
.footer-contact li { display: grid; gap: 3px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: var(--mist);
}
.contact-value {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(244, 238, 223, 0.86);
  overflow-wrap: anywhere;
}

.footer-bottom {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 20px clamp(16px, 4vw, 56px) 28px;
  border-block-start: 1px solid rgba(200, 164, 93, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 0.8125rem;
  color: rgba(127, 155, 144, 0.95);
}
.footer-legal,
.footer-icp { margin: 0; }
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list { gap: 14px; }
  .nav-link { font-size: 0.875rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.8125rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .nav-cta {
    margin-inline-start: auto;
    padding: 9px 14px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }
  .nav-toggle { margin-inline-start: 10px; }

  .site-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    margin-inline-start: 0;
    display: grid;
    gap: 4px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px clamp(16px, 5vw, 32px) 28px;
    background-color: rgba(11, 36, 30, 0.985);
    border-block-start: 1px solid rgba(200, 164, 93, 0.26);
    border-block-end: 1px solid rgba(200, 164, 93, 0.26);
    box-shadow: 0 26px 52px rgba(4, 12, 10, 0.6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }
  .site-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    gap: 0;
    width: 100%;
  }
  .nav-item { border-block-end: 1px solid rgba(200, 164, 93, 0.14); }
  .nav-link {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    letter-spacing: 0.08em;
  }
  .nav-link::after { inset-block-end: 10px; }
  .nav-link[aria-current="page"]::after { width: 22px; }

  .brand-line { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.125rem; }
  .brand-name { font-size: 1rem; }
  .nav-toggle-text { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- 15. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .scroll-progress-bar { transition: none; }
}
