/* =========================================================
   九博国际会馆 · 共享外壳样式 /assets/site.css
   结构：变量 → reset → 排版 → 页头 → 页脚 → 通用组件 → 响应式
   ========================================================= */

:root {
  --ink-green: #0B2B24;
  --moss: #1F4A3A;
  --rock: #6E756D;
  --sand: #C8A96B;
  --sand-light: #EAD9B5;
  --cyan: #4FE0D0;
  --clay: #A8624A;
  --rice: #F5F0E6;
  --stone: #D7D2C5;
  --char: #141A17;

  --font-title: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3.25rem);
  --header-h: 110px;
  --line-stone: 1px solid rgba(215, 210, 197, 0.4);
  --line-ink: 1px solid rgba(11, 43, 36, 0.14);
  --line-sand: 1px solid rgba(200, 169, 107, 0.38);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--rice);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

a {
  color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

/* ---------- 排版 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--ink-green);
  letter-spacing: 0.01em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.22; }
h3 { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.4; font-weight: 700; }
h4 { font-size: 1rem; line-height: 1.45; letter-spacing: 0.06em; }

p { margin: 0 0 1.1em; }

strong { font-weight: 800; }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

/* ---------- 容器与分区 ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section--rice { background: var(--rice); }

.section--ink {
  background: linear-gradient(165deg, var(--ink-green) 0%, #09211C 62%, var(--char) 100%);
  color: rgba(245, 240, 230, 0.86);
}

.section--moss {
  background: linear-gradient(150deg, var(--moss) 0%, var(--ink-green) 62%, #0A241E 100%);
  color: rgba(245, 240, 230, 0.86);
}

.section--sand {
  background: linear-gradient(160deg, #F7F2E8 0%, #F1E8D4 60%, var(--sand-light) 140%);
}

.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.section--moss h1, .section--moss h2, .section--moss h3, .section--moss h4 {
  color: var(--rice);
}

.section--ink .prose,
.section--moss .prose { color: rgba(245, 240, 230, 0.82); }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 43, 36, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 169, 107, 0.3);
  color: var(--rice);
}

.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(200, 169, 107, 0.16);
  pointer-events: none;
}

.scroll-rail-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sand) 0%, var(--cyan) 100%);
}

.utility-bar {
  background: rgba(31, 74, 58, 0.62);
  border-bottom: 1px solid rgba(200, 169, 107, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  padding-block: 0.24rem;
}

.utility-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(234, 217, 181, 0.72);
  white-space: nowrap;
}

.utility-list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.utility-item { flex: 0 0 auto; }

.utility-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.36rem;
  padding-block: 0.15rem;
  color: rgba(245, 240, 230, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(79, 224, 208, 0.6);
}

.utility-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(200, 169, 107, 0.85);
}

.masthead {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 43, 36, 0.98), rgba(11, 43, 36, 0.92));
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 68px;
  padding-block: 0.42rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--rice);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--sand);
  background: linear-gradient(140deg, rgba(200, 169, 107, 0.18), transparent 70%);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(200, 169, 107, 0.85);
}

.brand-mark::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  transform: translateX(-0.5px);
}

.brand-mark::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  transform: translateY(-0.5px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: rgba(234, 217, 181, 0.8);
  white-space: nowrap;
}

.brand-tagline {
  margin-left: 0.9rem;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(215, 210, 197, 0.28);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(79, 224, 208, 0.78);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding: 0.5rem 0.7rem;
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 2px;
  color: var(--sand-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.site-header[data-open] .nav-toggle-bar:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.55rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  padding: 0.55rem 0.08rem;
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sand), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--sand-light); }
.nav-link:hover::after { transform: scaleX(0.55); }

.nav-link[aria-current="page"] { color: var(--sand-light); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(200, 169, 107, 0.72);
}

.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

/* ---------- 页脚 ---------- */

.site-footer {
  background: linear-gradient(180deg, var(--char) 0%, var(--ink-green) 55%, #08201B 100%);
  color: rgba(245, 240, 230, 0.78);
  border-top: 1px solid rgba(200, 169, 107, 0.32);
  padding-block: clamp(2.5rem, 6vw, 4.25rem) 1.15rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(215, 210, 197, 0.18);
}

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

.footer-brandline {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--rice);
  margin: 0 0 0.85rem;
}

.footer-note {
  max-width: 26em;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.62);
  margin: 0 0 1.3rem;
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sand);
}

.footer-col-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li { margin-bottom: 0.55rem; }

.footer-link {
  color: rgba(245, 240, 230, 0.78);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(79, 224, 208, 0.55);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: rgba(200, 169, 107, 0.85);
  min-width: 2.4em;
}

.footer-value {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(245, 240, 230, 0.8);
  word-break: break-word;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 0.18rem 0.48rem;
  background: transparent;
  border: 1px solid rgba(215, 210, 197, 0.4);
  border-radius: 2px;
  color: rgba(245, 240, 230, 0.75);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.copy-btn:hover { color: var(--cyan); border-color: rgba(79, 224, 208, 0.7); }

.copy-btn[data-copied="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-green);
}

.copy-btn[data-copied="false"] {
  border-color: rgba(168, 98, 74, 0.8);
  color: #E5A791;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding-top: 1rem;
}

.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(215, 210, 197, 0.62);
}

.footer-meta--right { text-align: right; }

.footer-region { color: rgba(200, 169, 107, 0.9); }

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--sand {
  background: linear-gradient(135deg, var(--sand) 0%, #B8965A 100%);
  border-color: rgba(234, 217, 181, 0.55);
  color: var(--ink-green);
}

.btn--sand:hover { background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 100%); }

.btn--ghost {
  border-color: rgba(200, 169, 107, 0.55);
  color: var(--sand-light);
}

.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--ink {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--rice);
}

.btn--ink:hover { background: var(--moss); border-color: var(--moss); }

.btn--quiet {
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.65);
  border-radius: 0;
  color: var(--moss);
  background: transparent;
}

.btn--quiet:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* ---------- 面包屑 ---------- */

.breadcrumb { padding-block: 1rem 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--rock);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(110, 117, 109, 0.6);
}

.breadcrumb-link {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

.breadcrumb-current { color: var(--rock); }

/* ---------- 标签 / 筛选 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.18rem 0.55rem;
  background: rgba(234, 217, 181, 0.5);
  border: 1px solid rgba(200, 169, 107, 0.55);
  border-radius: 2px;
  color: #6B5325;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.tag--clay {
  background: rgba(168, 98, 74, 0.16);
  border-color: rgba(168, 98, 74, 0.5);
  color: #8D4B36;
}

.tag--cyan {
  background: rgba(79, 224, 208, 0.14);
  border-color: rgba(79, 224, 208, 0.55);
  color: #14655D;
}

.tag--dark {
  background: rgba(245, 240, 230, 0.08);
  border-color: rgba(215, 210, 197, 0.42);
  color: var(--sand-light);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(11, 43, 36, 0.22);
  border-radius: 999px;
  color: var(--moss);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover { border-color: var(--sand); }

.chip[aria-pressed="true"] {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--sand-light);
}

/* ---------- 面板 ---------- */

.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(215, 210, 197, 0.75);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(245, 240, 230, 0.94) 0%, rgba(234, 217, 181, 0.55) 100%);
  box-shadow: 0 20px 44px -34px rgba(11, 43, 36, 0.8);
}

.panel--glass {
  background: linear-gradient(160deg, rgba(245, 240, 230, 0.14) 0%, rgba(31, 74, 58, 0.32) 100%);
  border-color: rgba(215, 210, 197, 0.3);
  color: rgba(245, 240, 230, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--ink {
  background: linear-gradient(150deg, var(--moss) 0%, var(--ink-green) 100%);
  border-color: rgba(79, 224, 208, 0.25);
  color: rgba(245, 240, 230, 0.88);
}

.panel--glass h2, .panel--glass h3, .panel--ink h2, .panel--ink h3 { color: var(--rice); }

/* ---------- 展开组 ---------- */

.disclosure {
  border-bottom: var(--line-ink);
}

.disclosure-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.15rem;
  background: none;
  border: 0;
  color: var(--ink-green);
  font-family: var(--font-body);
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.disclosure-trigger:hover { color: var(--clay); }

.disclosure-trigger::after {
  content: "＋";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  color: var(--sand);
  transition: transform 0.25s ease, color 0.2s ease;
}

.disclosure[data-open] .disclosure-trigger::after {
  content: "－";
  color: var(--cyan);
}

.disclosure-panel { overflow: hidden; }

.disclosure[data-open] .disclosure-panel {
  animation: disclosure-in 0.28s ease both;
}

@keyframes disclosure-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.disclosure-inner { padding: 0 0.15rem 1.25rem; }

.disclosure-body {
  max-width: 40em;
  color: #3B423D;
  font-size: 0.98rem;
  line-height: 1.88;
}

/* ---------- 图像容器（页面阶段放占位） ---------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--stone);
  background: linear-gradient(150deg, var(--moss) 0%, var(--ink-green) 58%, var(--char) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(245, 240, 230, 0.07) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.media-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame--sand {
  background: linear-gradient(140deg, var(--sand-light) 0%, #D3C3A2 58%, var(--stone) 100%);
}

.media-frame--stone {
  background: linear-gradient(140deg, var(--stone) 0%, #A2A79E 55%, var(--rock) 100%);
}

.media-caption {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--rock);
}

/* ---------- 网格 ---------- */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.offset-1 { grid-column-start: 2; }
.offset-2 { grid-column-start: 3; }

/* ---------- 小元素 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--sand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.section--ink .eyebrow,
.section--moss .eyebrow { color: var(--sand-light); }

.prose {
  max-width: 40em;
  font-size: 1.01rem;
  line-height: 1.9;
  color: #2B322D;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }

/* ---------- 渐显 ---------- */

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1099px) {
  .brand-tagline { display: none; }
}

@media (max-width: 899px) {
  :root { --header-h: 102px; }

  .masthead-inner { min-height: 62px; }

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

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    padding: 0.35rem var(--gutter) 1.1rem;
    background: linear-gradient(180deg, #0B2B24 0%, #123329 100%);
    border-top: 1px solid rgba(200, 169, 107, 0.35);
    border-bottom: 1px solid rgba(200, 169, 107, 0.25);
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.75);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-header[data-open] .primary-nav { display: block; }

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

  .nav-item { border-bottom: 1px solid rgba(215, 210, 197, 0.14); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

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

  .nav-link[aria-current="page"] {
    color: var(--cyan);
    box-shadow: inset 2px 0 0 var(--cyan);
    padding-left: 0.7rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta--right { text-align: left; }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .offset-1, .offset-2 { grid-column-start: auto; }
}

@media (max-width: 700px) {
  .utility-tag { display: none; }
  .utility-inner { justify-content: flex-start; }
  .utility-list { gap: 0.9rem; width: 100%; }
}

@media (max-width: 600px) {
  :root { --header-h: 96px; }

  body { font-size: 16.5px; }

  .brand-mark { width: 30px; height: 30px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 {
    grid-column: span 12;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .btn { width: 100%; }
  .footer-brand .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .disclosure[data-open] .disclosure-panel { animation: none !important; }
}
