/* ==========================================================
   博盈平台中文站 · 共享样式表 /assets/site.css
   深墨蓝基底 + 琥珀金 / 青瓷绿强调 · 侧边导览式手册
   ========================================================== */

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

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

body, h1, h2, h3, h4, h5, p, ol, ul, li, figure, figcaption, blockquote, dl, dd, fieldset {
  margin: 0;
}

ol, ul { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { width: 100%; border-collapse: collapse; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1C2C;
  --midnight: #12283D;
  --slate: #1F3A52;
  --amber: #D9A441;
  --amber-soft: #F0C978;
  --celadon: #5FA98A;
  --celadon-soft: #A8D5C0;
  --paper: #F4F1EA;
  --mist: #8FA3B8;
  --body: #E8EDF2;
  --coral: #E07A6A;

  --line: rgba(143, 163, 184, 0.22);
  --line-strong: rgba(143, 163, 184, 0.42);

  --rail-w: 280px;
  --bar-h: 58px;
  --content-max: 1140px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "DejaVu Sans Mono", Consolas, "Liberation Mono", monospace;

  --notch: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --ease: cubic-bezier(0.22, 0.65, 0.28, 1);
  --shadow-panel: 0 22px 48px -30px rgba(0, 0, 0, 0.9);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.02vw, 17.5px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.012em;
  color: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -14%, rgba(217, 164, 65, 0.13), transparent 62%),
    radial-gradient(900px 560px at 4% 108%, rgba(95, 169, 138, 0.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.24;
  color: #FFFFFF;
}

h1 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.7vw, 34px); }
h3 { font-size: clamp(18px, 1.7vw, 21px); font-weight: 700; }
h4 { font-size: clamp(16px, 1.4vw, 18px); font-weight: 700; }

p { color: var(--body); }

.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.85;
  color: #CBD8E4;
  max-width: 62ch;
}

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

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0));
}

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

.muted { color: var(--mist); }

/* ---------- 4. 布局原语 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.container--narrow { max-width: 820px; }

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

.split {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(18px, 2.4vw, 30px) 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(143, 163, 184, 0));
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(to bottom left,
    transparent 0 47%, currentColor 47% 53%, transparent 53% 100%);
  opacity: 0.5;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #12202E;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F8D894, #E3B152);
  color: #0D1A25;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--body);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
  background: rgba(217, 164, 65, 0.09);
}

.btn-quiet {
  padding: 8px 12px;
  color: var(--mist);
}

.btn-quiet:hover { color: var(--amber-soft); }

/* ---------- 6. 标签与标记 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--celadon-soft);
  background: rgba(95, 169, 138, 0.13);
  border: 1px solid rgba(95, 169, 138, 0.34);
  border-radius: 999px;
}

.tag--amber {
  color: var(--amber-soft);
  background: rgba(217, 164, 65, 0.12);
  border-color: rgba(217, 164, 65, 0.36);
}

.tag--alert {
  color: #F3B3A7;
  background: rgba(224, 122, 106, 0.14);
  border-color: rgba(224, 122, 106, 0.4);
}

/* ---------- 7. 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(155deg, var(--midnight) 0%, #0F2334 100%);
  clip-path: var(--notch);
  box-shadow: var(--shadow-panel);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0));
}

.panel--outline {
  background: rgba(18, 40, 61, 0.44);
  box-shadow: inset 0 0 0 1px var(--line);
}

.panel--outline::before { background: linear-gradient(90deg, var(--slate), rgba(31, 58, 82, 0)); }

.panel--accent::before {
  width: 96px;
  background: linear-gradient(90deg, var(--celadon), rgba(95, 169, 138, 0));
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(18, 40, 61, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease),
              background 0.24s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 164, 65, 0.5);
  background: rgba(24, 50, 74, 0.82);
}

/* ---------- 8. 清单与数字 ---------- */
.list-check > li {
  position: relative;
  padding-left: 26px;
}

.list-check > li + li { margin-top: 8px; }

.list-check > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--celadon);
  border-bottom: 2px solid var(--celadon);
  transform: rotate(-45deg);
}

.list-num { counter-reset: item; }

.list-num > li {
  position: relative;
  padding-left: 36px;
  counter-increment: item;
}

.list-num > li + li { margin-top: 10px; }

.list-num > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18em;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 9. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, #132A3E 0%, #0C1E2E 100%);
  clip-path: var(--notch);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(143, 163, 184, 0.15) 0 1px, transparent 1px 13px);
  opacity: 0.65;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 105% at 100% 0%, rgba(217, 164, 65, 0.2), transparent 56%);
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

.media-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb-wrap { margin-bottom: 18px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

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

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

.breadcrumb a:hover { color: var(--amber-soft); }

.breadcrumb [aria-current="page"] { color: var(--body); }

/* ---------- 11. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(18, 40, 61, 0.55);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.filter-btn {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--mist);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.22s var(--ease), background 0.22s var(--ease),
              border-color 0.22s var(--ease);
}

.filter-btn:hover {
  color: var(--amber-soft);
  background: rgba(217, 164, 65, 0.1);
}

.filter-btn[aria-pressed="true"] {
  color: #10202F;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  border-color: transparent;
}

.filter-count {
  margin-left: auto;
  padding-right: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}

.is-hidden { display: none !important; }

/* ---------- 12. 页头：侧边轨道 + 移动命令条 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #12202E;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
}

/* 移动命令条（桌面隐藏） */
.mobile-bar {
  position: relative;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--bar-h);
  padding: 0 16px;
  background: rgba(11, 28, 44, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header[data-open] .mobile-bar {
  background: rgba(13, 32, 50, 0.98);
  border-bottom-color: rgba(217, 164, 65, 0.4);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #10202F;
  background: linear-gradient(140deg, var(--amber-soft), var(--amber));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand--compact .brand-mark { width: 36px; height: 36px; font-size: 12px; }

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

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #FFFFFF;
}

.brand--compact .brand-name { font-size: 15.5px; }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
}

/* 汉堡按钮 */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--body);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}

.nav-toggle:hover {
  color: var(--amber-soft);
  border-color: var(--amber);
  background: rgba(217, 164, 65, 0.08);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 轨道 */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 22px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #12283D 0%, #0E2334 58%, #0B1C2C 100%);
  border-right: 1px solid var(--line);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg,
    rgba(217, 164, 65, 0.055) 0 1px, transparent 1px 28px);
}

.rail > * { position: relative; z-index: 1; }

.rail-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rail-head .brand { align-items: center; }

.rail-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0));
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
}

.rail-nav-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #C4D2E0;
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 8px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  transform: translateX(-4px);
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(217, 164, 65, 0.09);
}

.nav-link:hover::after { opacity: 0.7; transform: translateX(0); }

.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.2), rgba(217, 164, 65, 0));
  border-left-color: var(--amber);
}

.nav-link[aria-current="page"]::after { opacity: 1; transform: translateX(0); }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}

.nav-link:hover .nav-idx { color: var(--amber-soft); }
.nav-link[aria-current="page"] .nav-idx { color: var(--amber-soft); }

.nav-label { min-width: 0; }

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--celadon);
  box-shadow: 0 0 0 4px rgba(95, 169, 138, 0.16);
  animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
  50% { box-shadow: 0 0 0 8px rgba(95, 169, 138, 0.05); }
}

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.nav-scrim { display: none; }

/* 阅读进度 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--celadon) 0%, var(--amber) 70%, var(--amber-soft) 100%);
  transition: width 0.12s linear;
}

@media (min-width: 1024px) {
  .progress { left: var(--rail-w); }
}

/* ---------- 13. 移动端：顶栏 + 抽屉 ---------- */
@media (max-width: 1023px) {
  body {
    padding-top: var(--bar-h);
    padding-left: 0;
  }

  body.nav-open { overflow: hidden; }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: var(--bar-h);
  }

  .mobile-bar { display: flex; }

  .progress { left: 0; }

  .nav-scrim {
    display: block;
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(4, 10, 18, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .site-header[data-open] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .rail {
    position: fixed;
    top: var(--bar-h);
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(88vw, 340px);
    height: auto;
    padding: 20px 18px 26px;
    border-right: 1px solid rgba(217, 164, 65, 0.28);
    box-shadow: 26px 0 60px -32px rgba(0, 0, 0, 0.9);
    transform: translateX(-104%);
    transition: transform 0.34s var(--ease);
  }

  .site-header[data-open] .rail { transform: translateX(0); }

  .rail-head { display: none; }

  .rail-nav { margin-top: 4px; }

  .nav-link { padding: 12px 12px; font-size: 15.5px; }

  .rail-actions { flex-direction: column; }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .mobile-bar { display: none; }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 84px);
  padding-top: clamp(36px, 5vw, 64px);
  background-color: #0A1826;
  background-image:
    repeating-linear-gradient(115deg,
      rgba(143, 163, 184, 0.055) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #0A1826 0%, #0E2233 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.65), transparent);
}

.footer-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.9fr)) minmax(0, 1.25fr);
  }
}

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

.footer-note {
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: #C4D2E0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--amber-soft);
  transform: translateX(3px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item { display: flex; flex-direction: column; gap: 3px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.contact-value {
  font-size: 14.5px;
  line-height: 1.65;
  color: #D7E2EC;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 52px);
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-icp { color: #A9BACB; }

.footer-dot { color: var(--slate); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--body);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}

.to-top:hover {
  color: var(--amber-soft);
  border-color: var(--amber);
  background: rgba(217, 164, 65, 0.09);
}

.to-top-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--amber);
}

/* ---------- 15. 显现动效 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. 无障碍与动效偏好 ---------- */
@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;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress-bar { transition: none; }
}

@media (forced-colors: active) {
  .panel,
  .media,
  .brand-mark { clip-path: none; }
  .btn { border-color: currentColor; }
}
