/* ============================================================
   百汇电玩大家乐 · 共享外壳样式表  /assets/site.css
   暗夜基底 + 机柜靛轨道 + 霓虹紫/电光蓝/街机橙/荧光绿强调
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --blackout: #0B0A14;
  --panel: #16122B;
  --grid: #2B2545;
  --neon-purple: #A855F7;
  --electric-blue: #1FB6FF;
  --arcade-orange: #FF7A1A;
  --phosphor: #3DF08C;
  --flare: #FF3D9A;
  --paper: #F3F1FF;
  --mist: #A9A4C7;
  --link-teal: #7BE8E0;

  --rail-w: 80px;
  --topbar-h: 56px;

  --font-display: "Zpix", "DotGothic16", "Noto Sans Mono CJK SC", ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  background-color: var(--blackout);
  background-image:
    linear-gradient(rgba(43, 37, 69, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 37, 69, .42) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* CRT 扫描线：12s 缓慢下移 */
body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  background: linear-gradient(180deg,
      transparent,
      rgba(31, 182, 255, .055) 45%,
      rgba(168, 85, 247, .05) 62%,
      transparent);
  pointer-events: none;
  z-index: 70;
  animation: scanline 12s linear infinite;
}

@keyframes scanline {
  from { transform: translateY(-240px); }
  to { transform: translateY(100vh); }
}

@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.78); }
}

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

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--phosphor);
  color: var(--blackout);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}

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

/* ---------- 4. 阅读进度尺 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue) 50%, var(--phosphor));
  box-shadow: 0 0 12px rgba(168, 85, 247, .7);
  pointer-events: none;
  z-index: 120;
}

/* ---------- 5. 头部：品牌轨道 + 顶部框架 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

/* --- 5.1 左侧品牌轨道 --- */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--grid);
  box-shadow: inset -1px 0 0 rgba(168, 85, 247, .18);
  z-index: 95;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 14px;
  border-bottom: 1px solid var(--grid);
  text-decoration: none;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
  color: var(--blackout);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(168, 85, 247, .55);
}

.rail__mark b { font-weight: 700; }

.rail__wordmark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mist);
  text-align: center;
}

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--grid) transparent;
}

.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background: var(--grid); }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 12px 6px;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(168, 85, 247, .12);
  border-left-color: var(--grid);
}

.rail__coord {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--electric-blue);
}

.rail__label {
  font-size: 11px;
  line-height: 1.35;
  max-width: 58px;
  text-align: center;
  letter-spacing: .02em;
}

.rail__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(168, 85, 247, .38), rgba(168, 85, 247, 0));
  border-left-color: var(--neon-purple);
}

.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}

.rail__link[aria-current="page"] .rail__coord { color: var(--phosphor); }

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-top: 1px solid var(--grid);
}

.rail__foot-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--mist);
  writing-mode: vertical-rl;
}

.rail__bars { display: flex; gap: 3px; }

.rail__bars i {
  display: block;
  width: 3px;
  height: 12px;
  background: var(--grid);
}

.rail__bars i:nth-child(1) { background: var(--phosphor); }
.rail__bars i:nth-child(2) { background: var(--electric-blue); }
.rail__bars i:nth-child(3) { background: var(--neon-purple); }

/* --- 5.2 顶部框架条 --- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(22, 18, 43, .93);
  border-bottom: 1px solid var(--grid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 92;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue) 42%, var(--arcade-orange) 70%, transparent 92%);
  opacity: .6;
}

.topbar__line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.topbar__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
  animation: beacon 2.6s ease-in-out infinite;
}

.topbar__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--link-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.topbar__link:hover {
  color: var(--paper);
  border-bottom-color: var(--neon-purple);
}

/* --- 5.3 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(168, 85, 247, .14);
  border: 1px solid rgba(168, 85, 247, .5);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover { background: rgba(168, 85, 247, .26); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--neon-purple);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { background: var(--arcade-orange); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { background: var(--electric-blue); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  background: var(--panel);
  background-image:
    linear-gradient(rgba(43, 37, 69, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 37, 69, .35) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 1px solid var(--grid);
  color: var(--mist);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue) 40%, var(--arcade-orange) 72%, transparent);
}

.footer__inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  padding: 56px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.9fr) minmax(0, 1.25fr);
  gap: 40px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .05em;
  color: var(--paper);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer__logo:hover { color: var(--neon-purple); }

.footer__tagline {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--electric-blue);
}

.footer__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px 10px;
  border: 1px solid rgba(61, 240, 140, .42);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--phosphor);
}

.footer__pulse {
  width: 6px;
  height: 6px;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  animation: pulse 2.4s ease-in-out infinite;
}

.footer__hint {
  margin: 0;
  max-width: 26ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

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

.footer__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--phosphor);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.65;
}

.footer__list a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer__list a::before {
  content: "▸";
  margin-right: 8px;
  font-size: 10px;
  color: var(--electric-blue);
}

.footer__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--neon-purple);
}

.footer__list--plain { gap: 12px; }

.footer__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--electric-blue);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 48px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer__bar p { margin: 0; }

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

.footer__copy { color: var(--link-teal); }

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--grid);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn--primary {
  background: var(--arcade-orange);
  border-color: var(--arcade-orange);
  color: #14061C;
  font-weight: 700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 0 0 1px var(--arcade-orange), 0 0 22px rgba(255, 122, 26, .5);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(31, 182, 255, .5);
  color: var(--electric-blue);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  box-shadow: 0 0 0 1px var(--electric-blue), 0 0 20px rgba(31, 182, 255, .35);
  color: var(--paper);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- 8. 内容容器与节奏 ---------- */
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.wrap--narrow { width: min(820px, 100% - 48px); }
.wrap--wide { width: min(1480px, 100% - 48px); }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 28px;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--paper);
}

.section-head__note {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--mist);
}

/* ---------- 9. 坐标标签与标记 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--phosphor);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--phosphor);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .1em;
}

.tag--purple { color: var(--neon-purple); }
.tag--blue { color: var(--electric-blue); }
.tag--orange { color: var(--arcade-orange); }
.tag--green { color: var(--phosphor); }
.tag--magenta { color: var(--flare); }

/* ---------- 10. 面板 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--grid);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.panel:hover {
  border-color: rgba(168, 85, 247, .6);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(168, 85, 247, .18);
}

.panel--accent {
  border-color: rgba(168, 85, 247, .55);
  box-shadow: 0 0 24px rgba(168, 85, 247, .16);
}

.panel--blue { border-color: rgba(31, 182, 255, .45); }

/* ---------- 11. 网格拼贴 ---------- */
.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)); }

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

/* ---------- 12. 图片容器（供页面阶段放置图片） ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(11, 10, 20, .75), inset 0 0 0 1px rgba(168, 85, 247, .22);
  pointer-events: none;
}

.img-frame--hero { aspect-ratio: 21 / 9; }
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 6px 10px;
  background: rgba(11, 10, 20, .82);
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--link-teal);
}

/* ---------- 13. 标签页（分段切换） ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--grid);
}

.tabs__tab {
  position: relative;
  top: 1px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.tabs__tab:hover { color: var(--paper); }

.tabs__tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--panel);
  border-color: var(--grid);
  border-bottom-color: var(--panel);
  box-shadow: inset 0 -2px 0 var(--neon-purple);
}

.tabs__panel {
  padding: 24px 0 4px;
}

.tabs__panel[hidden] { display: none; }

/* ---------- 14. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

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

.breadcrumb__item a {
  color: var(--link-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb__item a:hover { border-bottom-color: currentColor; }

.breadcrumb__sep {
  color: var(--grid);
  user-select: none;
}

/* ---------- 15. 长文排版 ---------- */
.prose {
  max-width: 72ch;
  color: var(--mist);
  font-size: 16px;
  line-height: 1.7;
}

.prose p { margin: 0 0 1.1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.3;
}

.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.prose li { margin-bottom: .4em; }

.prose strong { color: var(--paper); }

.prose a {
  color: var(--link-teal);
  text-decoration: underline;
  text-decoration-color: rgba(123, 232, 224, .4);
  text-underline-offset: 3px;
}

/* ---------- 16. 显现动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

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

/* ---------- 17. 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    gap: 32px;
  }
  .footer__contact { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 18. 响应式：移动与抽屉导航 ---------- */
@media (max-width: 900px) {
  body { padding-left: 0; }

  .topbar { left: 0; }

  .rail {
    width: min(300px, 82vw);
    transform: translateX(-100%);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
    border-right: 1px solid var(--neon-purple);
    z-index: 96;
  }

  .rail[data-open],
  [data-nav][data-open] {
    transform: none;
    box-shadow: 24px 0 60px rgba(11, 10, 20, .92);
  }

  .rail__brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }

  .rail__wordmark {
    font-size: 12px;
    letter-spacing: .18em;
    text-align: left;
  }

  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 14px 18px;
  }

  .rail__coord { font-size: 12px; }

  .rail__label {
    max-width: none;
    font-size: 15px;
    text-align: left;
  }

  .rail__foot {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .rail__foot-text { writing-mode: horizontal-tb; }

  .nav-toggle { display: inline-flex; }

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

  .grid--rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { padding: 0 14px; gap: 12px; }
  .topbar__line { display: none; }
  .topbar__tools { margin-left: auto; }
  .topbar__link { display: none; }

  .section { padding: 44px 0; }
  .section--tight { padding: 28px 0; }
  .section-head__title { font-size: 28px; }

  .wrap,
  .wrap--narrow,
  .wrap--wide { width: min(1200px, 100% - 32px); }

  .footer__inner { width: min(1200px, 100% - 32px); padding-top: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer__contact { grid-column: auto; }
  .footer__bar { margin-top: 32px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .grid--rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 18px; }
}

@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- 19. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  body::before { display: none; }

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

  .panel:hover,
  .btn:hover { transform: none; }
}
