/* =============================================================
   竞博中心 JBO Center — 共享样式 /assets/site.css
   概念：索引控制台 · 档案库刻度 · 墨蓝底 + 电光青 + 琥珀金
   ============================================================= */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #070C14;
  --ink-800: #0E1B2B;
  --ink-700: #16283D;
  --line: #5A6B80;
  --cyan: #35E0D8;
  --cyan-dim: #1E8F8A;
  --amber: #F2A63B;
  --paper: #F4F1EA;
  --mist: #A9B7C6;
  --paper-soft: #DDE3EA;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --maxw: 1280px;
  --gutter: clamp(16px, 3vw, 24px);
  --shadow-hard: 6px 6px 0 rgba(53, 224, 216, 0.16);
  --shadow-amber: 6px 6px 0 rgba(242, 166, 59, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(180deg, rgba(7, 12, 20, 0.6) 0, rgba(14, 27, 43, 0) 420px),
    repeating-linear-gradient(90deg, rgba(90, 107, 128, 0.07) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--cyan); color: #06110F; }

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

/* ---------- 4. 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: none;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.serif-lede {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.68;
  color: var(--paper);
  max-width: 34em;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: rgba(90, 107, 128, 0.45);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 图片容器基础规则（供页面阶段放入占位图） */
.media-frame {
  position: relative;
  display: block;
  border: 2px solid var(--line);
  background: var(--ink-700);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  line-height: 0;
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.media-frame--wide img { aspect-ratio: 21 / 9; }
.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame--square img { aspect-ratio: 1 / 1; }
.media-frame__cap {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid rgba(90, 107, 128, 0.4);
  background: rgba(7, 12, 20, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--mist);
}

/* 标签 / 筛选片 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(22, 40, 61, 0.62);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.chip:hover { color: var(--cyan); border-color: var(--cyan); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06110F;
  font-weight: 700;
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.breadcrumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(0, 0); }

.btn--line { --btn-bd: var(--line); --btn-fg: var(--paper); }
.btn--line:hover {
  --btn-bd: var(--cyan);
  --btn-fg: var(--cyan);
  box-shadow: 4px 4px 0 rgba(53, 224, 216, 0.2);
}

.btn--amber {
  --btn-bg: var(--amber);
  --btn-bd: var(--amber);
  --btn-fg: #0B1018;
  font-weight: 700;
}
.btn--amber:hover {
  --btn-bg: #F7B858;
  --btn-bd: #F7B858;
  box-shadow: 4px 4px 0 rgba(53, 224, 216, 0.35);
}

.btn--cyan {
  --btn-bg: var(--cyan);
  --btn-bd: var(--cyan);
  --btn-fg: #06110F;
  font-weight: 700;
}
.btn--cyan:hover { box-shadow: 4px 4px 0 rgba(242, 166, 59, 0.35); }

.btn--quiet { --btn-bd: transparent; --btn-fg: var(--mist); }
.btn--quiet:hover { --btn-fg: var(--cyan); transform: none; }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 80;
  isolation: isolate;
  background: var(--ink-800);
  color: var(--paper);
}

/* 跳过导航 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: #06110F;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* 上层：档案抬头 */
.header-meta {
  position: relative;
  background: var(--ink-900);
}
.header-meta::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0 58%, var(--amber) 58% 70%, var(--line) 70% 100%);
}
.header-meta__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}
.brand__mark {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--mist);
  white-space: nowrap;
}
.brand__tag::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.brand:hover .brand__name { color: var(--cyan); }

/* 版本徽标 */
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(90, 107, 128, 0.55);
  background: rgba(22, 40, 61, 0.6);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}
.version-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 166, 59, 0.16);
  animation: jbo-pulse 2.6s var(--ease) infinite;
}
@keyframes jbo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-actions .btn { padding: 8px 13px; font-size: 11.5px; }

/* 下层：吸顶栏目条 */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--ink-700);
  border-top: 1px solid rgba(90, 107, 128, 0.35);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.22s var(--ease);
}
.site-header.is-stuck .header-bar {
  box-shadow: 0 14px 34px rgba(7, 12, 20, 0.6);
}
.header-bar__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-nav { min-width: 0; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.site-nav__item { display: flex; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(90, 107, 128, 0.95);
  transition: color 0.18s var(--ease);
}
.site-nav__link:hover {
  color: var(--paper);
  background: rgba(53, 224, 216, 0.09);
}
.site-nav__link:hover .site-nav__idx { color: var(--cyan); }
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, rgba(53, 224, 216, 0) 0%, rgba(53, 224, 216, 0.16) 100%);
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--amber); }

/* 右缘刻度 */
.header-tick {
  flex: none;
  align-self: stretch;
  width: 16px;
  margin-left: auto;
  background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 7px);
  opacity: 0.6;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  flex: none;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s 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); }
.nav-toggle__text { line-height: 1; }

/* 滚动进度尺 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 100%);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--ink-900);
  border-top: 3px solid var(--cyan);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  display: block;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(242, 166, 59, 0.85) 0 18px, transparent 18px 46px);
  opacity: 0.5;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) 0;
}

.footer-brand__mark {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(53, 224, 216, 0.42);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
}
.footer-brand__line {
  margin-top: 16px;
  max-width: 22ch;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: 0.01em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(90, 107, 128, 0.42);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
}
.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--amber);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.footer-links a {
  position: relative;
  display: inline-block;
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-links a:hover { color: var(--cyan); padding-left: 14px; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 32px;
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 42px) auto 0;
  padding: clamp(20px, 3vw, 28px) var(--gutter) 0;
  border-top: 1px solid rgba(90, 107, 128, 0.4);
}
.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact dt {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
}
.footer-contact dd {
  margin: 0;
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-contact__value {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.footer-meta {
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid rgba(90, 107, 128, 0.4);
  background: rgba(14, 27, 43, 0.78);
}
.footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.7;
}
.footer-legal { margin: 0; }
.footer-meta__inner a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 216, 0.5);
}
.footer-meta__inner a:hover { border-bottom-color: var(--cyan); }
.footer-note {
  width: 100%;
  margin: 0;
  color: rgba(169, 183, 198, 0.78);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ---------- 8. 返回顶部（JS 注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-700);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 4px 4px 0 rgba(7, 12, 20, 0.55);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.to-top__arrow {
  color: var(--amber);
  font-size: 14px;
  line-height: 1;
}
.to-top__label { line-height: 1; }

/* ---------- 9. 进场显现（data-reveal） ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.reveal-init.is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1100px) {
  .brand__tag { display: none; }
  .site-nav__link { padding: 13px 10px; font-size: 13.5px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-brand__line { max-width: 30ch; }
}

@media (max-width: 860px) {
  body { font-size: 15.5px; }

  .header-meta__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px var(--gutter);
  }
  .brand__name { font-size: 17px; }
  .version-chip {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .header-actions { width: 100%; gap: 8px; }
  .header-actions .btn { flex: 1 1 0; padding: 8px 10px; font-size: 11px; }

  .header-bar__inner {
    align-items: center;
    min-height: 54px;
    padding-inline: var(--gutter);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 6px 0 12px;
    background: var(--ink-700);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 24px 48px rgba(7, 12, 20, 0.62);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .site-header[data-open] .site-nav {
    display: block;
    animation: jbo-nav-drop 0.2s var(--ease) both;
  }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    border-bottom: 1px solid rgba(90, 107, 128, 0.3);
    border-left: 3px solid transparent;
  }
  .site-nav__link[aria-current="page"] {
    border-bottom-color: rgba(90, 107, 128, 0.3);
    border-left-color: var(--cyan);
    background: rgba(53, 224, 216, 0.1);
  }
  .header-tick { display: none; }
  .nav-toggle { display: inline-flex; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-brand__line { max-width: none; font-size: 21px; }
}

@keyframes jbo-nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-meta__inner { font-size: 11px; gap: 4px 14px; }
  .to-top__label { display: none; }
  .to-top { padding: 11px 12px; }
}

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

/* ---------- 11. 动效偏好 ---------- */
@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;
  }
  .reveal-init { opacity: 1; transform: none; }
  .to-top { transform: none; }
  .btn:hover { transform: none; }
}
