/* ============================================================
   雷电竞官网 · 共享站点样式 /assets/site.css
   深空基底 + 蓝图网格 + 电光青 / 雷紫 / 琥珀金
   ============================================================ */

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --void: #05070E;
  --panel: #0B1120;
  --lifted: #121A2B;
  --line: #1E2A42;
  --cyan: #22D3EE;
  --violet: #7C5CFF;
  --amber: #F5B942;
  --ink: #E6EDF7;
  --muted: #93A2BC;
  --ok: #2BE3A0;
  --alert: #FF5C7A;

  --rail-w: 252px;
  --strip-h: 44px;
  --maxw: 1240px;
  --gutter: 32px;
  --cut: 14px;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace,
    "Cascadia Mono", "Noto Sans Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --scroll-progress: 0%;
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  padding: var(--strip-h) 0 0 var(--rail-w);
  background-color: var(--void);
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.052) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.052) 1px, transparent 1px),
    radial-gradient(920px 640px at 84% -12%, rgba(124, 92, 255, 0.20), transparent 64%),
    radial-gradient(760px 520px at 4% 0%, rgba(34, 211, 238, 0.11), transparent 62%);
  background-size: 88px 88px, 88px 88px, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.015em; }

p { color: var(--ink); }
strong { font-weight: 700; }
small { font-size: 12px; color: var(--muted); }

a { color: var(--cyan); }
a:hover { color: #6EE7F8; }

::selection { background: rgba(34, 211, 238, 0.3); color: #ffffff; }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.text-muted { color: var(--muted); }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04070E;
  font-weight: 700;
  font-size: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: #04070E;
}

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: relative;
  z-index: 100;
}

/* 5.1 顶部状态条 */
.status-strip {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--strip-h);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(11, 17, 32, 0.97), rgba(5, 7, 14, 0.93) 55%, rgba(11, 17, 32, 0.97));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.status-strip__list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}
.status-strip__list::-webkit-scrollbar { display: none; }
.status-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.status-strip__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--scroll-progress);
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--amber));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
  transition: width 0.12s linear;
  pointer-events: none;
}

.strip-brand {
  display: none;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.strip-brand:hover { color: var(--cyan); }

/* 5.2 状态点 */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--muted);
  color: rgba(147, 162, 188, 0.8);
  box-shadow: 0 0 8px currentColor;
}
.dot--ok { background: var(--ok); color: rgba(43, 227, 160, 0.85); }
.dot--cyan { background: var(--cyan); color: rgba(34, 211, 238, 0.85); }
.dot--violet { background: var(--violet); color: rgba(124, 92, 255, 0.85); }
.dot--amber { background: var(--amber); color: rgba(245, 185, 66, 0.85); }
.dot--alert { background: var(--alert); color: rgba(255, 92, 122, 0.85); }

/* 5.3 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  flex: 0 0 auto;
}
.nav-toggle:hover { border-color: rgba(34, 211, 238, 0.5); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 5.4 左侧战术轨道 */
.rail {
  position: fixed;
  top: var(--strip-h);
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 94;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.985), rgba(7, 11, 20, 0.995));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cyan) 16%, var(--violet) 62%, transparent);
  opacity: 0.6;
  pointer-events: none;
  animation: rail-current 7s var(--ease) infinite;
}
@keyframes rail-current {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.9; }
}

/* 5.5 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04070E;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.24; min-width: 0; }
.brand__name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 5.6 导航列表 */
.rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--line);
  transition: color 0.22s var(--ease);
}
.rail__link:hover {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}
.rail__link:hover .rail__idx { color: var(--cyan); }
.rail__link[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(124, 92, 255, 0.05));
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--cyan); }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rail__note {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0 4px;
}

/* 5.7 移动遮罩 */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 93;
  background: rgba(3, 5, 10, 0.74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s var(--ease);
}
.rail-scrim[data-visible] { opacity: 1; visibility: visible; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--lifted);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--ink);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #3FA9F5 46%, var(--violet));
  color: #04070E;
  border-color: transparent;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.22);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #5AE7FB, #5BBAFF 46%, #9A80FF);
  color: #04070E;
  border-color: transparent;
}

.btn--amber {
  background: rgba(245, 185, 66, 0.1);
  border-color: rgba(245, 185, 66, 0.45);
  color: var(--amber);
}
.btn--amber:hover {
  background: rgba(245, 185, 66, 0.18);
  color: var(--amber);
  border-color: rgba(245, 185, 66, 0.7);
}

.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 12px; }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.tag--violet { color: #B4A4FF; border-color: rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.1); }
.tag--amber { color: var(--amber); border-color: rgba(245, 185, 66, 0.4); background: rgba(245, 185, 66, 0.1); }

/* ---------- 8. 面包屑 ---------- */
.crumbs { padding: 0 0 18px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 9. 布局容器 ---------- */
main { display: block; padding-top: 34px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 820px; }

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

/* ---------- 10. 章节 ---------- */
.section { padding: 54px 0; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-bottom: 26px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48ch;
}
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(124, 92, 255, 0.28), transparent);
}

/* ---------- 11. 切角面板 ---------- */
.panel {
  position: relative;
  padding: 22px;
  background: linear-gradient(160deg, rgba(18, 26, 43, 0.94), rgba(11, 17, 32, 0.97));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.panel--flat { background: var(--panel); }
.panel__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 12. 图片容器（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(124, 92, 255, 0.14)),
    var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--box { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 14, 0.94));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 84px;
  padding: 58px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(720px 380px at 88% 0%, rgba(124, 92, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(11, 17, 32, 0.86), rgba(5, 7, 14, 0.99) 58%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--violet) 68%, transparent);
  opacity: 0.55;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(104px, 0.78fr)) minmax(228px, 1.5fr);
  gap: 36px 26px;
}

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.footer__title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.footer__closing {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26ch;
}
.footer__marks {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer__marks li { display: inline-flex; align-items: center; gap: 6px; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer__link:hover { color: var(--cyan); padding-left: 4px; }

.footer__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.footer__dl dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.footer__dl dd { color: var(--ink); word-break: break-word; line-height: 1.6; }
.footer__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

.footer__base {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer__legal { color: var(--muted); }
.footer__copy { color: var(--muted); }
.footer__sign {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- 14. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 92;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(11, 17, 32, 0.96), rgba(5, 7, 14, 0.96));
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease), border-color 0.2s var(--ease);
}
.to-top::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--scroll-progress), rgba(34, 211, 238, 0.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  pointer-events: none;
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { border-color: rgba(34, 211, 238, 0.6); }

/* ---------- 15. 进场动效协议 ---------- */
[data-reveal-armed] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease) var(--reveal-delay, 0ms),
    transform 0.55s var(--ease) var(--reveal-delay, 0ms);
}
[data-reveal-armed].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 26px; }
}

@media (max-width: 1180px) {
  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .footer__lead { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  body { padding-left: 0; }

  .status-strip { z-index: 97; }
  .strip-brand { display: inline-flex; }
  .nav-toggle { display: inline-flex; }

  .rail {
    top: var(--strip-h);
    width: min(312px, 86vw);
    z-index: 96;
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
    box-shadow: 26px 0 64px rgba(0, 0, 0, 0.55);
  }
  .rail[data-open] { transform: translateX(0); }
  .rail-scrim { z-index: 95; }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 42px 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  main { padding-top: 26px; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: 1fr; }
  .site-footer { margin-top: 56px; padding-top: 44px; }
  .footer__sign { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .status-strip { gap: 10px; padding: 0 12px; }
  .status-strip__list { gap: 12px; font-size: 10.5px; }
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__note { max-width: none; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* ---------- 17. 减少动效 ---------- */
@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;
  }
  [data-reveal-armed] {
    opacity: 1;
    transform: none;
  }
}
