/* =========================================================
   雷火电竞主站 · 共享样式 /assets/site.css
   熔核黑底盘 + 赛博雷火强调色 + 侧边品牌轨道
   ========================================================= */

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

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

ul, ol { list-style: none; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-900: #0B0C10;
  --ink-800: #15171D;
  --ink-700: #1B1E26;
  --steel: #94A3B8;
  --frost: #F8FAFC;
  --frost-2: #CBD5E1;
  --violet: #7C3AED;
  --cyan: #22D3EE;
  --orange: #FF5A1F;
  --gold: #FFB020;
  --crimson: #E11D48;
  --deep-violet: #3B0764;

  --line: rgba(148, 163, 184, .18);
  --line-cyan: rgba(34, 211, 238, .42);
  --line-violet: rgba(124, 58, 237, .55);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;

  --rail-w: 96px;
  --nav-h: 76px;

  --r-sm: 4px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-deep: 0 28px 64px -34px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 页面基底与中文排版 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(60vw 40vw at 88% -8%, rgba(124, 58, 237, .20), transparent 68%),
    radial-gradient(52vw 34vw at 4% 100%, rgba(255, 90, 31, .12), transparent 70%);
  background-repeat: no-repeat;
  color: var(--frost);
  font-family: var(--font-body);
  font-size: clamp(16px, .55vw + 14px, 17.5px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .004em;
  padding-top: var(--nav-h);
  padding-left: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

p { max-width: 74ch; }

::selection {
  background: rgba(34, 211, 238, .32);
  color: var(--frost);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 基础工具类 ---------- */
.container {
  width: min(1240px, 100% - clamp(32px, 7vw, 112px));
  margin-inline: auto;
}

.container--narrow { width: min(820px, 100% - clamp(32px, 7vw, 112px)); }
.container--wide { width: min(1480px, 100% - clamp(28px, 5vw, 80px)); }

.section { padding-block: clamp(56px, 8vw, 124px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }

.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;
}

.slash-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .42), transparent);
}

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

.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 8.6vw, 136px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.28;
  letter-spacing: -.012em;
}

.lede {
  font-size: clamp(16.5px, 1.1vw + 13px, 20px);
  line-height: 1.8;
  color: var(--frost-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin-bottom: clamp(24px, 4vw, 48px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.section-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm) var(--r-md) var(--r-sm) var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--primary {
  background: linear-gradient(118deg, var(--orange) 0%, #FF7C36 52%, var(--gold) 100%);
  color: #170702;
  box-shadow: 0 18px 36px -22px rgba(255, 90, 31, .95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -20px rgba(255, 176, 32, .92);
}

.btn--ghost {
  border-color: var(--line-violet);
  background: rgba(124, 58, 237, .14);
  color: #C4B5FD;
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .12);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn--quiet {
  border-color: var(--line);
  color: var(--frost);
}

.btn--quiet:hover {
  border-color: var(--line-cyan);
  color: var(--cyan);
}

/* ---------- 6. 标签 / 面板 / 数据组件 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tag--cyan { border-color: var(--line-cyan); color: var(--cyan); background: rgba(34, 211, 238, .08); }
.tag--orange { border-color: rgba(255, 90, 31, .5); color: #FF8A5B; background: rgba(255, 90, 31, .1); }
.tag--violet { border-color: var(--line-violet); color: #C4B5FD; background: rgba(124, 58, 237, .14); }

.panel {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-lg) var(--r-sm) var(--r-lg);
  background: linear-gradient(158deg, rgba(27, 30, 38, .96) 0%, rgba(21, 23, 29, .68) 100%);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, .24);
}

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

.metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  color: var(--frost);
}

.metric__value em {
  font-style: normal;
  color: var(--orange);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}

.data-list { display: flex; flex-direction: column; }

.data-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, .2);
}

.data-list__row:last-child { border-bottom: 0; }

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: rgba(148, 163, 184, .48);
}

.crumbs a { transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

/* ---------- 8. 响应式图片容器基座 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm) var(--r-lg) var(--r-sm) var(--r-lg);
  background-color: var(--deep-violet);
  background-image:
    linear-gradient(138deg, rgba(59, 7, 100, .92) 0%, rgba(11, 12, 16, .94) 58%),
    radial-gradient(circle at 80% 16%, rgba(255, 90, 31, .40), transparent 58%),
    radial-gradient(circle at 10% 88%, rgba(34, 211, 238, .26), transparent 62%);
}

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

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

.media__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.media__frame::before,
.media__frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--orange);
}

.media__frame::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}

.media__frame::after {
  right: 12px;
  bottom: 12px;
  border-top: 0;
  border-left: 0;
}

.media__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(248, 250, 252, .82);
}

/* ---------- 9. 网格基座 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

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

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

/* =========================================================
   10. 页头：左侧品牌轨道 + 右侧横向导航
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04141A;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}

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

/* 品牌轨道 */
.brand-rail {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 30px;
  border-right: 1px solid var(--line);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(180deg, rgba(124, 58, 237, .28) 0%, rgba(124, 58, 237, 0) 36%),
    linear-gradient(0deg, rgba(255, 90, 31, .16) 0%, rgba(255, 90, 31, 0) 32%);
  background-repeat: no-repeat;
  pointer-events: auto;
}

.brand-rail::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--orange), var(--violet), var(--cyan), transparent);
  opacity: .75;
}

.brand-rail__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.brand-rail__glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #180801;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, .35), 0 14px 30px -16px rgba(255, 90, 31, .95);
}

.brand-rail__name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .36em;
  color: var(--frost);
  text-align: center;
  transition: color .16s var(--ease);
}

.brand-rail__mark:hover .brand-rail__name { color: var(--cyan); }

.brand-rail__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 76px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--steel);
  text-align: center;
}

.brand-rail__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .16);
}

/* 导航条 */
.nav-shell {
  position: absolute;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding-inline: clamp(16px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 12, 16, .96) 0%, rgba(11, 12, 16, .74) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.site-header[data-scrolled="true"] .nav-shell {
  border-bottom-color: var(--line-cyan);
  background: linear-gradient(180deg, rgba(11, 12, 16, .99) 0%, rgba(11, 12, 16, .9) 100%);
}

.nav { display: block; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .9vw, 12px);
}

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--steel);
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.nav__link:hover {
  color: var(--frost);
  background: rgba(124, 58, 237, .16);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
}

.nav__link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background-color .18s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease), top .2s var(--ease);
}

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

.nav-toggle[data-open="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[data-open="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  top: calc(var(--nav-h) - 2px);
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 38%, var(--orange) 72%, var(--gold) 100%);
  pointer-events: none;
  z-index: 90;
}

/* =========================================================
   11. 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 11vw, 156px);
  border-top: 1px solid var(--line);
  background-color: var(--ink-900);
  background-image: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 46%, #0E1015 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle at 68% 34%, rgba(124, 58, 237, .30), transparent 62%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(133deg, transparent 46.5%, rgba(255, 90, 31, .12) 47%, transparent 52%);
  pointer-events: none;
}

.footer__beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--crimson) 22%, var(--violet) 52%, var(--cyan) 78%, var(--gold) 100%);
  opacity: .9;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(40px, 5.6vw, 76px) clamp(20px, 5vw, 56px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; }

.footer__wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--frost);
}

.footer__wordmark span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .36em;
  color: var(--cyan);
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--frost-2);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}

.footer__link:hover {
  border-color: var(--line-cyan);
  background: rgba(34, 211, 238, .1);
  color: var(--cyan);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 20px);
}

.footer__meta-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 18px;
  max-width: none;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, .22);
}

.footer__meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer__meta-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--steel);
  padding-top: 3px;
}

.footer__meta-val {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 15px;
  color: var(--frost);
}

.footer__mail {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--cyan);
  word-break: break-all;
}

.footer__note {
  font-size: 12.5px;
  color: var(--steel);
}

.footer__copy {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line-violet);
  border-radius: 999px;
  background: rgba(124, 58, 237, .16);
  color: #C4B5FD;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  transition: transform .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), background-color .16s var(--ease);
}

.footer__copy:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .12);
  color: var(--cyan);
  transform: translateY(-1px);
}

.footer__copy[data-copied="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04141A;
}

.footer__copy-status {
  min-height: 1em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.footer__base {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-inline: auto;
  padding: 18px clamp(20px, 5vw, 56px) clamp(28px, 4.6vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}

.footer__icp,
.footer__copyright {
  max-width: none;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   12. 响应式：移动端与平板
   ========================================================= */
@media (max-width: 899px) {
  :root {
    --rail-w: 0px;
    --nav-h: 64px;
  }

  body { padding-left: 0; }

  .brand-rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 108px 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background-color: rgba(11, 12, 16, .95);
    background-image:
      linear-gradient(90deg, rgba(124, 58, 237, .28) 0%, rgba(124, 58, 237, 0) 42%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

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

  .brand-rail__mark {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-rail__glyph {
    width: 34px;
    height: 34px;
    border-radius: 10px 3px 10px 3px;
    font-size: 16px;
  }

  .brand-rail__name {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: .16em;
  }

  .brand-rail__meta {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    max-width: none;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .nav-shell {
    top: 0;
    left: auto;
    right: 0;
    width: auto;
    height: 64px;
    padding-inline: 12px;
    gap: 0;
    border-bottom: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 95;
  }

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

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 12, 16, .985);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
  }

  .nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__item { width: 100%; }

  .nav__link {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 16px;
    color: var(--frost);
  }

  .nav__link::after { display: none; }

  .nav__link:hover { background: rgba(124, 58, 237, .18); }

  .nav__link[aria-current="page"] {
    border-left: 3px solid var(--cyan);
    background: rgba(34, 211, 238, .1);
  }

  .scroll-progress { left: 0; top: 62px; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__meta-row { grid-template-columns: minmax(0, 1fr); }
  .footer__meta-key { padding-top: 0; }
}

@media (max-width: 560px) {
  .brand-rail__meta { display: none; }
  .brand-rail { padding-right: 96px; }
  .btn { width: 100%; }
  .footer__base { font-size: 11px; letter-spacing: .06em; }
}

/* =========================================================
   13. 减少动态效果
   ========================================================= */
@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;
  }

  .nav__link:hover,
  .btn:hover,
  .footer__copy:hover { transform: none; }
}
