/* =========================================================
   雷竞技赛场 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 框架头部 / 页脚 / 基础组件
   ========================================================= */

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

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

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

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

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

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

button { background: none; border: 0; cursor: pointer; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 珠宝分区底色 */
  --night: #060A14;
  --teal: #0A2230;
  --indigo: #161033;
  --wine: #2A0C18;

  /* 强调与状态 */
  --cyan: #5FE9FF;
  --orange: #FF9A4A;
  --red: #FF4F63;

  /* 文字 */
  --ice: #E8F1F6;
  --mist: #9AAFC2;

  /* 材质 */
  --glass: rgba(95, 233, 255, 0.12);
  --glass-soft: rgba(95, 233, 255, 0.06);
  --line: rgba(95, 233, 255, 0.20);
  --line-soft: rgba(154, 175, 194, 0.20);
  --ink-on-orange: #1A0B00;

  /* 字体栈 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, "Courier New", monospace;

  /* 尺度 */
  --bar-h: 58px;
  --rail-w: 78px;
  --edge: clamp(18px, 4vw, 64px);
  --maxw: 1320px;
  --r: 3px;

  /* 过渡 */
  --t-fast: 160ms ease;
  --t-base: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. 基础版式 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.55vw + 12px, 18px);
  line-height: 1.75;
  color: var(--ice);
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(95, 233, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 233, 255, 0.045) 1px, transparent 1px),
    radial-gradient(120% 90% at 78% -10%, rgba(95, 233, 255, 0.10), transparent 62%),
    radial-gradient(90% 80% at 0% 0%, rgba(22, 16, 51, 0.85), transparent 66%);
  background-size: 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ice);
}

h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: 0.01em; }

p { text-wrap: pretty; }

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

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

#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 4. 工具类 ---------- */
.u-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.u-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.u-lead {
  max-width: 64ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
  color: var(--mist);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(95, 233, 255, 0));
}

/* ---------- 5. 容器与栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 28px);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--split { grid-template-columns: 1fr; }

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

@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}

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

.btn--primary {
  background: var(--orange);
  color: var(--ink-on-orange);
  border-color: var(--orange);
}

.btn--primary:hover { background: #FFB473; border-color: #FFB473; }

.btn--ghost {
  background: var(--glass-soft);
  border-color: var(--line);
  color: var(--ice);
}

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

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

/* ---------- 7. 标签 / 数字 / 卡片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--cyan);
}

.tag--orange { color: var(--orange); border-color: rgba(255, 154, 74, 0.38); }
.tag--red { color: var(--red); border-color: rgba(255, 79, 99, 0.42); }

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

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

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

.panel {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(10, 34, 48, 0.92), rgba(6, 10, 20, 0.94));
}

.panel--glass {
  background: var(--glass);
  border-color: rgba(95, 233, 255, 0.30);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--indigo {
  background: linear-gradient(160deg, rgba(22, 16, 51, 0.95), rgba(6, 10, 20, 0.94));
  border-color: rgba(95, 233, 255, 0.16);
}

.panel--wine {
  background: linear-gradient(160deg, rgba(42, 12, 24, 0.95), rgba(6, 10, 20, 0.94));
  border-color: rgba(255, 79, 99, 0.22);
}

/* ---------- 8. 章节封面 ---------- */
.chapter {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 20px);
  padding-block: clamp(24px, 4vw, 48px);
}

.chapter__num {
  flex: 0 0 auto;
  padding-top: 0.35em;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.chapter__title {
  padding-left: 16px;
  border-left: 4px solid var(--cyan);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: rgba(154, 175, 194, 0.5);
}

.breadcrumbs li:last-child::after { content: ""; margin-left: 0; }

.breadcrumbs a { color: var(--ice); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 10. 图片容器基础规则（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(135deg, rgba(10, 34, 48, 0.95), rgba(22, 16, 51, 0.95)),
    repeating-linear-gradient(135deg, rgba(95, 233, 255, 0.10) 0 1px, transparent 1px 18px);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: linear-gradient(0deg, rgba(6, 10, 20, 0.94), rgba(6, 10, 20, 0));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--cyan);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--t-fast);
}

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

/* ---------- 12. 框架头部 ---------- */
.site-header {
  position: relative;
  z-index: 80;
}

/* 12.1 顶部细线栏 */
.frame-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  height: var(--bar-h);
  padding-inline: var(--edge);
  background: rgba(6, 10, 20, 0.90);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  background: var(--glass-soft);
  transition: background var(--t-fast), color var(--t-fast);
}

.brand:hover .brand__glyph {
  background: var(--cyan);
  color: var(--night);
}

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

.brand__mark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--ice);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-bar__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  display: none;
}

.frame-bar__entry { display: none; }

@media (min-width: 620px) {
  .frame-bar__entry { display: inline-flex; }
}

@media (min-width: 900px) {
  .frame-bar { padding-left: calc(var(--rail-w) + var(--edge)); }
  .frame-bar__meta { display: block; }
}

@media (min-width: 1180px) {
  .brand__tag { font-size: 11px; }
}

/* 12.2 折叠按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass-soft);
  color: var(--ice);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: background var(--t-fast);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: inherit;
  transition: transform var(--t-fast);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  background: var(--orange);
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  background: var(--orange);
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__text { display: none; }

@media (min-width: 480px) {
  .nav-toggle__text { display: inline; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* 12.3 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: transparent;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 120ms linear;
}

/* 12.4 导航（移动端：横向芯片带） */
.frame-rail {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 78;
  padding: 10px 0 12px;
  background: rgba(7, 12, 22, 0.98);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.frame-rail[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.frame-rail__caption,
.frame-rail__foot { display: none; }

.frame-rail__list {
  display: flex;
  gap: 8px;
  padding-inline: var(--edge);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.frame-rail__list::-webkit-scrollbar { display: none; }

.frame-rail__item { flex: 0 0 auto; }

.frame-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-size: 14px;
  white-space: nowrap;
  color: var(--ice);
  scroll-snap-align: start;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.frame-rail__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--glass-soft);
}

.frame-rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.frame-rail__label { line-height: 1.2; }

.frame-rail__link[aria-current="page"] {
  border-color: var(--orange);
  background: rgba(255, 154, 74, 0.12);
  color: #ffffff;
}

.frame-rail__link[aria-current="page"] .frame-rail__num { color: var(--orange); }

/* 12.5 导航（桌面端：左侧竖排框架栏） */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }

  .frame-rail {
    top: var(--bar-h);
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    padding: 14px 0 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(10, 34, 48, 0.88) 0%, rgba(6, 10, 20, 0.98) 72%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .frame-rail__caption,
  .frame-rail__foot {
    display: block;
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(154, 175, 194, 0.7);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .frame-rail__caption { margin-bottom: 14px; }
  .frame-rail__foot { margin-top: 14px; color: rgba(95, 233, 255, 0.55); }

  .frame-rail__list {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-block: auto;
    padding-inline: 0;
    overflow: visible;
    width: 100%;
  }

  .frame-rail__item { width: 100%; }

  .frame-rail__link {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 14px 0 16px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    color: var(--mist);
    background: transparent;
  }

  .frame-rail__link:hover {
    color: var(--cyan);
    background: var(--glass-soft);
    border-left-color: var(--cyan);
  }

  .frame-rail__num { font-size: 10px; line-height: 1; }

  .frame-rail__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 13px;
    letter-spacing: 0.18em;
    line-height: 1.1;
  }

  .frame-rail__link[aria-current="page"] {
    color: var(--ice);
    background: var(--glass);
    border-left-color: var(--orange);
  }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(10, 34, 48, 0.95), transparent 62%),
    radial-gradient(80% 120% at 92% 100%, rgba(42, 12, 24, 0.85), transparent 66%),
    var(--night);
}

.footer-inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) var(--edge) clamp(26px, 4vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--ice);
}

.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

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

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

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mist);
}

.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

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

.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.footer-contact__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

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

.footer-contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-legal {
  border-top: 1px solid rgba(255, 79, 99, 0.22);
  background: rgba(42, 12, 24, 0.55);
}

.footer-legal,
.footer-legal__links { }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px var(--edge);
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer-legal__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-legal__links a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

@media (min-width: 620px) {
  .footer-contact__row {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

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

  .footer-contact { grid-column: 1 / -1; }

  .footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ---------- 14. 进入动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- 15. 无障碍与降级 ---------- */
@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;
  }

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

  .scroll-meter__fill { transition: none; }
}
