/* ============================================================
   凯时主页 · 共享样式表 /assets/site.css
   1 Reset  2 变量  3 排版  4 通用容器与网格  5 按钮与组件
   6 页头  7 页脚  8 响应式  9 动效与无障碍
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, textarea { font: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0E2233;
  --ink-soft: #1B3448;
  --sand: #D8B98A;
  --sand-deep: #C39E67;
  --mist: #EEF1F2;
  --paper: #F8FAFA;
  --cyan: #18B7B0;
  --cyan-deep: #0A6E6A;
  --red: #C6473A;
  --green: #2F7D5B;
  --yellow: #E0B04A;
  --violet: #5D5478;
  --text: #18232C;
  --text-soft: #4A5A66;
  --line: #C9D3D8;
  --line-strong: #A9B8C0;

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

  --shell-max: 1280px;
  --gutter: clamp(1.25rem, 4.6vw, 3.5rem);
  --radius: 4px;
  --shadow-glass: 0 26px 60px -34px rgba(14, 34, 51, 0.5);
  --shadow-bar: 0 18px 44px -32px rgba(14, 34, 51, 0.62);
  --dur: 0.3s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--mist);
  background-image: linear-gradient(180deg, #F3F6F7 0%, var(--mist) 26%, var(--mist) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.7vw, 4.25rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.4; }
p { text-wrap: pretty; }

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  transform: translateY(-180%);
  padding: 0.7rem 1.15rem;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 14px 34px -14px rgba(14, 34, 51, 0.75);
  transition: transform 0.24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 4. 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section--flush { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.lead {
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-soft);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.split--mirror { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.breadcrumbs {
  padding-block: clamp(0.85rem, 2vw, 1.35rem);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 0; }
.prose li { position: relative; padding-left: 1.4rem; margin-top: 0.45em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.6rem;
  height: 2px;
  background: var(--cyan);
}
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}
.prose a:hover { background: rgba(24, 183, 176, 0.14); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(14, 34, 51, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* ---------- 5. 按钮与组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-soft); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: #E5CBA1; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(24, 183, 176, 0.09); }
.btn--on-dark { background: transparent; border-color: rgba(248, 250, 250, 0.45); color: var(--paper); }
.btn--on-dark:hover { border-color: var(--sand); color: var(--sand); }
.btn--sm { min-height: 38px; padding: 0.5rem 0.9rem; font-size: 0.85rem; }

.panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--glass {
  background: rgba(248, 250, 250, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-glass);
}
.panel--ink { background: var(--ink); border-color: transparent; color: rgba(248, 250, 250, 0.86); }
.panel--ink h2, .panel--ink h3, .panel--ink h4 { color: var(--paper); }
.panel--sand { background: var(--sand); border-color: transparent; color: var(--ink); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(238, 241, 242, 0.75);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(24, 183, 176, 0.07); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.tag--cyan { color: var(--cyan-deep); border-color: rgba(24, 183, 176, 0.55); background: rgba(24, 183, 176, 0.13); }
.tag--red { color: #9E3327; border-color: rgba(198, 71, 58, 0.5); background: rgba(198, 71, 58, 0.11); }
.tag--green { color: #235F44; border-color: rgba(47, 125, 91, 0.5); background: rgba(47, 125, 91, 0.13); }
.tag--sand { color: #7A5C28; border-color: rgba(216, 185, 138, 0.8); background: rgba(216, 185, 138, 0.32); }

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, #DBE4E7 0%, #EDF1F2 44%, #E7DBC7 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(115deg, rgba(14, 34, 51, 0.045) 0 1px, transparent 1px 20px);
}
.media-frame__caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  background: rgba(248, 250, 250, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.flag-line { display: grid; grid-template-columns: repeat(5, 1fr); height: 6px; }
.flag-line span:nth-child(1) { background: var(--cyan); }
.flag-line span:nth-child(2) { background: #F1F6F6; }
.flag-line span:nth-child(3) { background: var(--red); }
.flag-line span:nth-child(4) { background: var(--green); }
.flag-line span:nth-child(5) { background: var(--yellow); }

.tick-rule {
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 16px);
  opacity: 0.9;
}
.tick-rule--accent {
  background-image: repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 20px);
  opacity: 0.7;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(238, 241, 242, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(238, 241, 242, 0.95);
  box-shadow: var(--shadow-bar);
}

.header-rail { background: var(--ink); color: rgba(248, 250, 250, 0.72); }
.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rail-label { overflow: hidden; text-overflow: ellipsis; }
.rail-ticks { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.rail-ticks span { display: block; width: 16px; height: 3px; border-radius: 2px; }
.rail-ticks span:nth-child(1) { background: var(--cyan); }
.rail-ticks span:nth-child(2) { background: rgba(248, 250, 250, 0.8); }
.rail-ticks span:nth-child(3) { background: var(--red); }
.rail-ticks span:nth-child(4) { background: var(--green); }
.rail-ticks span:nth-child(5) { background: var(--yellow); }
.rail-meta { color: rgba(248, 250, 250, 0.5); }

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 2rem);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  padding: 0.3rem 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-glyph {
  position: relative;
  width: 42px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--ink) 0 44%, var(--mist) 44% 56%, var(--sand) 56% 100%);
  transition: background var(--dur) var(--ease);
}
.brand-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
}
.brand:hover .brand-glyph {
  background: linear-gradient(90deg, var(--cyan) 0 44%, var(--mist) 44% 56%, var(--sand) 56% 100%);
}
.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-tagline {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-soft);
}

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0.1rem; }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-list a::before {
  content: attr(data-index);
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.24rem;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { background: rgba(24, 183, 176, 0.1); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.nav-list a[aria-current="page"]::before { color: var(--sand); }
.nav-list a[aria-current="page"]::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sand);
  transform: scaleX(1);
}

.header-actions { display: flex; align-items: center; gap: 0.55rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(248, 250, 250, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(14, 34, 51, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--yellow) 62%, var(--sand) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.site-header[data-scrolled] .header-progress { opacity: 1; }

body.nav-open { overflow: hidden; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--ink);
  color: rgba(248, 250, 250, 0.82);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 78% at 88% -12%, rgba(216, 185, 138, 0.22), transparent 62%),
    radial-gradient(52% 70% at 2% 112%, rgba(24, 183, 176, 0.16), transparent 64%);
}
.footer-top,
.footer-contact,
.footer-legal,
.site-footer .flag-line { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 5.5vw, 4rem);
}
.footer-wordmark {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  letter-spacing: 0.03em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-wordmark:hover { border-bottom-color: var(--sand); }
.footer-tagline {
  margin-top: 0.5rem;
  margin-bottom: 1.35rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--sand);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.footer-col-title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(238, 241, 242, 0.16);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}
.footer-col li + li { margin-top: 0.15rem; }
.footer-col a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(248, 250, 250, 0.82);
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--cyan); transform: translateX(2px); }
.footer-col a[aria-current="page"] { color: var(--cyan); }

.footer-contact {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(238, 241, 242, 0.12);
}
.footer-contact-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}
.contact-value {
  font-size: 0.95rem;
  color: rgba(248, 250, 250, 0.92);
  overflow-wrap: anywhere;
}
.contact-value--mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

.copy-btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(216, 185, 138, 0.5);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sand);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.copy-btn:hover { background: rgba(216, 185, 138, 0.16); color: var(--paper); }
.copy-btn[data-copied="true"] { border-color: var(--cyan); color: var(--cyan); }

.footer-note {
  max-width: 62ch;
  margin-top: clamp(1.25rem, 3vw, 1.9rem);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(216, 185, 138, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(248, 250, 250, 0.62);
}

.footer-legal {
  border-top: 1px solid rgba(238, 241, 242, 0.12);
  padding-block: 1rem;
}
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(248, 250, 250, 0.64);
}
.legal-copy { color: rgba(248, 250, 250, 0.86); }
.legal-icp { color: rgba(248, 250, 250, 0.5); }
.footer-legal a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.45rem 0.8rem;
  border-radius: 2px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.to-top:hover { background: #E5CBA1; opacity: 1; }
.to-top[data-visible] { opacity: 1; }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
}
@media (min-width: 1181px) {
  .nav-list a::before { display: inline; }
}

@media (max-width: 980px) {
  .header-bar {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding-block: 0.7rem;
    min-height: 0;
  }
  .primary-nav { order: 3; width: 100%; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .nav-list a { padding: 0.45rem 0.55rem; }

  .site-header[data-enhanced] .nav-toggle { display: inline-flex; }
  .site-header[data-enhanced] .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 92;
    width: auto;
    margin: 0;
    padding: 1rem var(--gutter) calc(1.35rem + env(safe-area-inset-bottom, 0px));
    max-height: 76vh;
    overflow-y: auto;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 -34px 70px -34px rgba(0, 0, 0, 0.7);
    transform: translateY(105%);
    transition: transform 0.36s var(--ease);
    order: 0;
  }
  .site-header[data-open] .primary-nav { transform: translateY(0); }
  .site-header[data-enhanced] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header[data-enhanced] .nav-list a {
    justify-content: space-between;
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid rgba(238, 241, 242, 0.14);
    border-radius: 0;
    font-size: 1.05rem;
    color: var(--paper);
  }
  .site-header[data-enhanced] .nav-list a::before {
    display: inline;
    color: rgba(216, 185, 138, 0.75);
    order: 2;
  }
  .site-header[data-enhanced] .nav-list a::after { display: none; }
  .site-header[data-enhanced] .nav-list a:hover { background: rgba(248, 250, 250, 0.08); }
  .site-header[data-enhanced] .nav-list a[aria-current="page"] {
    background: rgba(248, 250, 250, 0.1);
    color: var(--sand);
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .footer-contact-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--mirror, .split--5-7 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); }
  .rail-meta { display: none; }
  .rail-label { letter-spacing: 0.12em; }
  .footer-contact-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-legal-inner { font-size: 10.5px; letter-spacing: 0.06em; }
  .to-top { margin-left: 0; width: 100%; justify-content: center; margin-top: 0.5rem; }
  .data-table { min-width: 28rem; }
}

@media (max-width: 479px) {
  .header-cta { display: none; }
  .brand-glyph { width: 36px; height: 24px; }
  .brand-name { font-size: 1.08rem; }
  .brand-tagline { letter-spacing: 0.22em; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. 动效与无障碍 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .header-progress { transition: none; }
}
