/* ==========================================================================
   开元 KY · 共享样式表 /assets/site.css
   曜石黑底 + 暖金渐变 + 坐标网格，夜间导航仪表盘
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0B0C0E;
  --ink-2: #14161A;
  --ink-3: #1E2126;
  --line: #2B2F36;
  --gold: #E39B3C;
  --gold-hi: #F6CE86;
  --gold-deep: #7C4A12;
  --jade: #35A08B;
  --paper: #C9B892;
  --text: #ECEAE5;
  --muted: #A6A19A;
  --alert: #C2603F;

  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1440px;
  --radius: 4px;
  --radius-lg: 12px;
  --pill: 999px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(124, 74, 18, .42), rgba(11, 12, 14, 0) 62%),
    radial-gradient(760px 520px at 4% 104%, rgba(227, 155, 60, .10), rgba(11, 12, 14, 0) 68%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 47, 54, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 47, 54, .55) 1px, transparent 1px);
  background-size: 112px 112px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, .25) 55%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, .25) 55%, transparent 100%);
  opacity: .55;
}

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

#main-content { display: block; }

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

/* ---------- 3. 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 168px);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0 0 clamp(16px, 2vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.lede {
  max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.72;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
  color: var(--text);
}

.prose p { margin-bottom: 1.1em; }

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

.prose a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 206, 134, .4);
}

.prose a:hover { border-bottom-color: var(--gold-hi); }

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
}

/* ---------- 4. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.rail {
  position: sticky;
  top: clamp(96px, 12vh, 136px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.rail-item:hover { color: var(--text); }

.rail-item.is-active { color: var(--gold-hi); }

.rail-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.rail-item.is-active .rail-dot {
  background: var(--gold-hi);
  box-shadow: 0 0 0 4px rgba(246, 206, 134, .14);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb li + li::before {
  content: "／";
  color: var(--line);
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-hi); }

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, #F0AC52, #D98C2C);
  border-color: rgba(246, 206, 134, .5);
  color: #1A1206;
  box-shadow: 0 10px 24px rgba(124, 74, 18, .38);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #F6CE86, var(--gold));
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(20, 22, 26, .7);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 15px; font-size: 13.5px; }

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: var(--gutter);
  z-index: 120;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--gold);
  color: #1A1206;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px var(--gutter) 0;
  transition: padding .3s var(--ease);
}

.site-header.is-scrolled { padding-top: 8px; }

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 9px 14px 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 22, 26, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  background: rgba(11, 12, 14, .9);
  border-color: rgba(227, 155, 60, .32);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  grid-column: 1;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(227, 155, 60, .55);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(246, 206, 134, .3), rgba(124, 74, 18, .2) 62%, transparent 74%);
  color: var(--gold-hi);
}

.brand-mark svg { width: 18px; height: 18px; display: block; }

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(30, 33, 38, .85);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle-box { display: grid; gap: 4px; width: 16px; }

.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle-box span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-box span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle-label { font-size: 13px; font-weight: 600; }

.primary-nav { justify-self: center; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--pill);
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .22s var(--ease);
}

.nav-link:hover { color: var(--text); background: rgba(227, 155, 60, .08); }

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

.nav-link[aria-current="page"]::after { width: 22px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-utility {
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.header-utility:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(246, 206, 134, .6);
}

.scroll-meter {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: rgba(43, 47, 54, .8);
  overflow: hidden;
}

.scroll-meter-bar {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi));
  transition: opacity .3s var(--ease), transform .12s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 22, 26, .92), rgba(11, 12, 14, 1));
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
}

.footer-brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-brand-link:hover { color: var(--gold-hi); }

.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-note {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-list a:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(246, 206, 134, .55);
}

.footer-contact {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.footer-contact-item dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact-item dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-legal { margin: 0; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-legal-links a:hover { color: var(--gold-hi); }

/* ---------- 9. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.card:hover { transform: translateY(-3px); border-color: var(--gold); }

.index-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(30, 33, 38, .86), rgba(20, 22, 26, .96));
  color: inherit;
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}

.index-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: linear-gradient(150deg, rgba(124, 74, 18, .32), rgba(20, 22, 26, .96));
}

.index-card .plate { flex: none; }

.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 2px;
  background: var(--paper);
  color: #17140F;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(30, 33, 38, .8);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--gold { color: var(--gold); border-color: rgba(227, 155, 60, .45); }
.tag--jade { color: var(--jade); border-color: rgba(53, 160, 139, .45); }
.tag--alert { color: var(--alert); border-color: rgba(194, 96, 63, .5); font-weight: 700; }

/* ---------- 10. 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(124, 74, 18, .5), rgba(20, 22, 26, .92) 62%),
    var(--ink-3);
}

.media img,
.media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 234, 229, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 234, 229, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media--window { aspect-ratio: 16 / 10; }
.media--wide { aspect-ratio: 21 / 9; }

.media--phone {
  aspect-ratio: 9 / 19;
  max-width: 260px;
  border-radius: 18px;
}

.media-caption {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 11. 交互组件 ---------- */
.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 22, 26, .75);
}

.tab {
  appearance: none;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.tab:hover { color: var(--text); }

.tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(227, 155, 60, .24), rgba(227, 155, 60, .08));
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(227, 155, 60, .45);
}

.tabpanel { margin-top: 22px; }

.tabpanel[hidden] { display: none; }

.tabpanel.is-entering { animation: panelIn .3s var(--ease) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(20, 22, 26, .75);
  transition: border-color .18s var(--ease);
}

.filter-field:focus-within { border-color: var(--gold); }

.filter-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.filter-field input::placeholder { color: var(--muted); }

.filter-empty,
.filter-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.copy-btn[data-copy-state="done"] {
  border-color: rgba(53, 160, 139, .6);
  color: var(--jade);
}

.fold {
  border-top: 1px solid var(--line);
}

.fold summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--gold);
}

.fold[open] summary::after { content: "－"; }

.fold-body {
  max-width: 68ch;
  padding-bottom: 18px;
  color: var(--muted);
}

/* ---------- 12. 显现与无障碍工具 ---------- */
[data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle { display: inline-flex; grid-column: 3; justify-self: end; }

  .header-actions { grid-column: 2; justify-self: end; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 12, 14, .97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

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

  .nav-link[aria-current="page"] {
    background: rgba(227, 155, 60, .12);
    box-shadow: inset 2px 0 0 var(--gold);
  }

  .rail { display: none; }

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

@media (max-width: 820px) {
  body { font-size: 16.5px; }

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

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

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

@media (max-width: 640px) {
  .site-header { padding-top: 10px; }

  .brand-line { display: none; }

  .header-utility { display: none; }

  .btn-sm { padding: 7px 13px; font-size: 13px; }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .media--phone { max-width: 200px; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }

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

/* ---------- 14. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal].will-reveal {
    opacity: 1;
    transform: none;
  }
}
