/* ==========================================================================
   天天电竞 · 共享样式 /assets/site.css
   侧边轨道外壳 + 粗野主义面板 + 近单色深空底
   ========================================================================== */

/* ---------- 01. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 02. 变量 ---------- */
:root {
  --ink-void: #05080C;
  --ink-panel: #0A1118;
  --ink-line: #1A2630;
  --text-main: #E8F6F5;
  --text-dim: #8FA6A8;
  --neon-cyan: #3DF5E0;
  --volt-purple: #8B5CF6;
  --cyber-yellow: #F7D046;
  --alert-red: #FF5C7A;
  --deep-teal: #0E2A2B;

  --rail-w: 264px;
  --pad-x: clamp(18px, 4vw, 56px);
  --shell-max: 1180px;
  --topbar-h: 62px;

  --font-title: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --line: 1px solid var(--ink-line);
  --line-strong: 2px solid var(--ink-line);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .55);
  --shadow-cyan: 6px 6px 0 rgba(61, 245, 224, .18);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 03. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink-void);
  background-image:
    radial-gradient(900px 620px at 8% -12%, rgba(61, 245, 224, .10), transparent 62%),
    radial-gradient(820px 560px at 104% 2%, rgba(139, 92, 246, .12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(232, 246, 245, .016) 0 1px, transparent 1px 4px);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .06em;
}

a { color: inherit; }

p { max-width: 72ch; }

strong { font-weight: 700; color: var(--text-main); }

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

:where(a, button):focus-visible {
  outline: 2px solid var(--cyber-yellow);
  outline-offset: 3px;
}

/* ---------- 04. 标题与通用文字 ---------- */
.title-display { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: .09em; margin-bottom: .45em; }
.title-xl { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: .07em; margin-bottom: .5em; }
.title-lg { font-size: clamp(21px, 2.4vw, 26px); letter-spacing: .06em; margin-bottom: .55em; }
.title-md { font-size: 18px; letter-spacing: .06em; margin-bottom: .6em; }

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 62ch;
}

.prose { font-size: 16px; line-height: 1.85; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--neon-cyan);
  flex: none;
}

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

.link {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 245, 224, .42);
  transition: border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.link:hover { border-bottom-color: var(--neon-cyan); }

/* ---------- 05. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border: 2px solid #03110F;
  background: var(--neon-cyan);
  color: #03110F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 06. 侧边轨道 / 头部 ---------- */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: var(--line);
  background-color: var(--ink-panel);
  background-image:
    repeating-linear-gradient(0deg, rgba(61, 245, 224, .035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(14, 42, 43, .68) 0%, rgba(5, 8, 12, .96) 46%);
}

.site-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 9px;
  width: 2px;
  height: 84px;
  background: linear-gradient(180deg, var(--neon-cyan), rgba(61, 245, 224, 0));
  pointer-events: none;
}

/* 品牌 */
.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.rail-brand-mark {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--neon-cyan);
  background: rgba(61, 245, 224, .08);
  color: var(--neon-cyan);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 4px 4px 0 rgba(61, 245, 224, .18);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out);
}

.rail-brand:hover .rail-brand-mark {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(61, 245, 224, .26);
}

.rail-brand-text { display: block; min-width: 0; }

.rail-brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
}

.rail-brand-sub {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* 面板 */
.rail-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}

.rail-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: var(--line);
}

/* 主导航 */
.site-nav { display: block; }

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

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s var(--ease-out),
              background-color .16s var(--ease-out),
              border-color .16s var(--ease-out);
}

.nav-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .8;
}

.nav-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(61, 245, 224, .07);
  border-left-color: var(--neon-cyan);
}

.nav-link[aria-current="page"] {
  color: #03110F;
  background: var(--neon-cyan);
  border-left-color: var(--cyber-yellow);
  box-shadow: 4px 4px 0 rgba(61, 245, 224, .22);
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-num { opacity: .65; }

/* 快速入口 */
.rail-quick-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 9px;
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quick-link {
  display: block;
  padding: 7px 11px;
  border: 1px solid var(--ink-line);
  background: rgba(247, 208, 70, .05);
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .16s var(--ease-out),
              box-shadow .16s var(--ease-out),
              border-color .16s var(--ease-out),
              color .16s var(--ease-out);
}

.quick-link:hover {
  border-color: var(--cyber-yellow);
  color: var(--cyber-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 rgba(247, 208, 70, .24);
}

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: var(--line);
}

.rail-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px dashed rgba(61, 245, 224, .45);
  color: var(--neon-cyan);
  font-size: 13px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out);
}

.rail-search:hover {
  background: rgba(61, 245, 224, .10);
  border-color: var(--neon-cyan);
}

.rail-search-ico { font-family: var(--font-mono); font-size: 14px; line-height: 1; }

.rail-dir {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-decoration: none;
}
.rail-dir:hover { color: var(--neon-cyan); }

/* 移动端菜单按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 2px solid var(--neon-cyan);
  background: rgba(61, 245, 224, .08);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: background-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}

.nav-toggle-text { line-height: 1; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- 07. 正文容器与栅格 ---------- */
#main-content {
  display: block;
  scroll-margin-top: 90px;
}

.page-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(26px, 4.5vw, 68px) var(--pad-x);
}

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

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

/* ---------- 08. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: rgba(143, 166, 168, .55); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--neon-cyan); }
.crumbs [aria-current="page"] { color: var(--text-main); }

/* ---------- 09. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid rgba(232, 246, 245, .4);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
  transition: transform .16s var(--ease-out),
              box-shadow .16s var(--ease-out),
              background-color .16s var(--ease-out),
              border-color .16s var(--ease-out),
              color .16s var(--ease-out);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .7);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}

.btn--primary {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #03110F;
  box-shadow: 4px 4px 0 rgba(139, 92, 246, .55);
}
.btn--primary:hover {
  color: #03110F;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 6px 6px 0 rgba(139, 92, 246, .7);
}

.btn--ghost { border-color: rgba(232, 246, 245, .32); }
.btn--ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* ---------- 10. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--ink-line);
  background: rgba(26, 38, 48, .65);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--cyan {
  color: var(--neon-cyan);
  border-color: rgba(61, 245, 224, .42);
  background: rgba(61, 245, 224, .08);
}

.tag--purple {
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, .5);
  background: rgba(139, 92, 246, .12);
}

.tag--yellow {
  color: #141000;
  background: var(--cyber-yellow);
  border-color: var(--cyber-yellow);
  font-weight: 700;
}

/* ---------- 11. 面板 / 卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: var(--line);
  background: var(--ink-panel);
  box-shadow: var(--shadow-hard);
}

.panel--accent {
  border-left: 4px solid var(--neon-cyan);
  box-shadow: var(--shadow-cyan);
}

.panel--warn {
  border-left: 4px solid var(--cyber-yellow);
  box-shadow: 6px 6px 0 rgba(247, 208, 70, .16);
  background: linear-gradient(90deg, rgba(247, 208, 70, .07), var(--ink-panel) 55%);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  border: var(--line);
  background: var(--ink-panel);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.figure-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-panel);
  background-image:
    linear-gradient(135deg, var(--deep-teal) 0%, var(--ink-panel) 55%, rgba(139, 92, 246, .22) 100%);
  overflow: hidden;
}

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

.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(61, 245, 224, .07) 0 1px,
    transparent 1px 4px
  );
}

.figure--wide .figure-media { aspect-ratio: 21 / 9; }
.figure--square .figure-media { aspect-ratio: 1 / 1; }

.figure-cap {
  padding: 10px 14px;
  border-top: var(--line);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* ---------- 13. 页脚 ---------- */
.site-foot {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(30px, 4vw, 54px) var(--pad-x) 24px;
  border-top: 2px solid var(--ink-line);
  background-color: #070C11;
  background-image:
    repeating-linear-gradient(90deg, rgba(61, 245, 224, .05) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(14, 42, 43, .35), rgba(5, 8, 12, .9) 70%);
}

.foot-grid {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.foot-brand-mark {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--text-main);
  line-height: 1.3;
}

.foot-sub {
  margin: 8px 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--neon-cyan);
}

.foot-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 32ch;
}

.foot-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-links a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--text-main);
  opacity: .8;
  text-decoration: none;
  transition: color .16s var(--ease-out), opacity .16s var(--ease-out);
}

.foot-links a:hover,
.foot-links a:focus-visible {
  opacity: 1;
  color: var(--neon-cyan);
}

.foot-links a[aria-current="page"] {
  color: var(--cyber-yellow);
  opacity: 1;
}

.foot-contact {
  width: 100%;
  max-width: var(--shell-max);
  margin: clamp(26px, 3vw, 38px) auto 0;
  padding-top: 22px;
  border-top: var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.foot-contact-item {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: none;
  word-break: break-word;
}

.foot-contact-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyber-yellow);
}

.foot-legal {
  width: 100%;
  max-width: var(--shell-max);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.foot-copy { max-width: none; }

.foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s var(--ease-out);
}
.foot-legal-links a:hover { color: var(--neon-cyan); }

.foot-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(143, 166, 168, .85);
}

/* ---------- 14. 滚动进度与返回顶部（JS 生成） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
  background: rgba(26, 38, 48, .6);
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-cyan), var(--volt-purple));
  box-shadow: 0 0 12px rgba(61, 245, 224, .6);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 2px solid var(--neon-cyan);
  background: rgba(10, 17, 24, .95);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(61, 245, 224, .22);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}

.to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--neon-cyan);
  color: #03110F;
}

.to-top-text { line-height: 1; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 899px) {
  :root { --rail-w: 0px; }

  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  #main-content { scroll-margin-top: calc(var(--topbar-h) + 12px); }

  .site-rail {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-right: 0;
    border-bottom: var(--line-strong);
    overflow: visible;
    backdrop-filter: blur(10px);
  }

  .site-rail::after { display: none; }

  .rail-brand-mark {
    width: 36px;
    height: 36px;
    font-size: 11px;
    box-shadow: 3px 3px 0 rgba(61, 245, 224, .2);
  }

  .rail-brand-name { font-size: 16px; letter-spacing: .12em; }
  .rail-brand-sub { margin-top: 2px; font-size: 10px; letter-spacing: .02em; }

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

  .rail-panel {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 22px 18px 28px;
    gap: 20px;
    background-color: var(--ink-panel);
    background-image: linear-gradient(180deg, rgba(14, 42, 43, .7), rgba(5, 8, 12, .98) 60%);
    border-right: 2px solid var(--neon-cyan);
    border-top: var(--line);
    box-shadow: 10px 0 0 rgba(61, 245, 224, .12);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .3s var(--ease-out);
    z-index: 96;
  }

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

  .scroll-progress { left: 0; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }

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

@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }

  .foot-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .foot-icp { margin-left: 0; }

  .page-shell { padding-inline: 16px; }

  .btn { width: 100%; justify-content: center; }

  .to-top { padding: 9px 12px; font-size: 11px; }
}

/* ---------- 16. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .rail-panel { transition: none; }
  .to-top { transition: none; }
}
