/* ═══════════════════════════════════════════════════════════
   统一发布管理平台 · 视觉基础层 v5.0
   主题：石墨暗黑 · 克制蓝紫（Graphite Dark）
   主品牌：#7C6CFF   辅助蓝：#5B7CF5    深色基底：#0A0A0C
   本层负责：字体、变量、重置、外壳布局、侧栏导航、页脚、
             入场动效、深浅双主题令牌
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── 色彩模式 ── */
  color-scheme: dark;

  /* ── 中性背景阶（dark 主用，light 模式整体覆盖） ── */
  --bg-900: #0a0a0c;
  --bg-800: #101013;
  --bg-700: #151519;
  --bg-600: #1c1c22;
  --bg-500: #2a2a33;
  --surface: #ffffff;
  --surface-muted: #f4f4f6;
  --surface-elev: #141418;

  /* ── 描边（中性发丝边） ── */
  --line-hair: rgba(255, 255, 255, 0.06);
  --line-soft: rgba(255, 255, 255, 0.10);
  --line-firm: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.24);

  /* ── 文字 ── */
  --tx-strong: #f2f2f5;
  --tx-body: #c3c3cc;
  --tx-mute: #8b8b98;
  --tx-faint: #60606c;
  --tx-on-light-strong: #120f24;
  --tx-on-light-body: #3b3760;
  --tx-on-light-mute: #6b6593;
  --tx-on-light-faint: #948fb8;

  /* ── 主品牌：蓝紫 ── */
  --brand: #7c6cff;
  --brand-lit: #a99bff;
  --brand-deep: #5b3df5;
  --brand-film: rgba(124, 108, 255, 0.12);
  --brand-edge: rgba(140, 124, 255, 0.32);
  --brand-ink: #ffffff;
  --accent: #7f9cff;

  /* ── 品牌渐变（点缀专用） ── */
  --grad-brand: linear-gradient(120deg, #a99bff 0%, #7c6cff 52%, #5b7cf5 100%);
  --grad-btn: linear-gradient(180deg, #7c6cff 0%, #5a45e8 100%);
  --grad-title: linear-gradient(180deg, #fafaff 12%, #c3bdd8 100%);

  /* ── 语义色 ── */
  --ok: #34d399;
  --ok-film: rgba(52, 211, 153, 0.10);
  --ok-edge: rgba(52, 211, 153, 0.28);
  --warn: #fbbf24;
  --warn-film: rgba(251, 191, 36, 0.10);
  --warn-edge: rgba(251, 191, 36, 0.30);
  --err: #fb5f6e;
  --err-film: rgba(251, 95, 110, 0.10);
  --err-edge: rgba(251, 95, 110, 0.30);
  --info: #8ba6ff;
  --info-film: rgba(122, 146, 255, 0.10);
  --info-edge: rgba(122, 146, 255, 0.30);

  /* ── 语义辉光（悬浮态，克制） ── */
  --glow-brand: 0 10px 28px -18px rgba(124, 108, 255, 0.40);
  --glow-ok: 0 10px 28px -18px rgba(52, 211, 153, 0.22);
  --glow-warn: 0 10px 28px -18px rgba(251, 191, 36, 0.20);
  --glow-err: 0 10px 28px -18px rgba(251, 95, 110, 0.22);
  --glow-info: 0 10px 28px -18px rgba(56, 189, 248, 0.22);

  /* ── 圆角 ── */
  --r-xs: 5px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* ── 投影 ── */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.45);
  --sh-2: 0 8px 20px -8px rgba(0, 0, 0, 0.60);
  --sh-3: 0 24px 56px -18px rgba(0, 0, 0, 0.78);

  /* ── 玻璃高光（卡片顶部内描边） ── */
  --glass-hi: rgba(255, 255, 255, 0.04);

  /* ── 组件层令牌（components.css 读取） ── */
  --card-bg-top: #141418;
  --card-bg-bottom: #0f0f12;
  --card-header-bg: rgba(255, 255, 255, 0.02);
  --card-footer-bg: rgba(255, 255, 255, 0.015);
  --metric-bg-top: #16161b;
  --metric-bg-bottom: #101013;
  --topbar-bg: rgba(10, 10, 12, 0.80);
  --rail-bg: linear-gradient(180deg, #0e0e11 0%, #0a0a0c 100%);
  --field-bg: #101013;
  --field-bg-focus: #151519;
  --thead-bg: rgba(16, 16, 19, 0.95);
  --modal-grad: linear-gradient(180deg, #151519 0%, #101013 100%);
  --code-bg: rgba(124, 108, 255, 0.10);
  --panel-deep: #101013;

  /* ── 动效 ── */
  --ez: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 240ms;

  /* ── 骨架尺寸 ── */
  --rail-w: 232px;
  --topbar-h: 56px;

  /* ── 字族（系统栈，国内环境零延迟加载） ── */
  --ff-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ff-mono: "Cascadia Code", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* 浅色模式：html[data-theme="light"] 整体覆盖 */
:root[data-theme="light"] {
  color-scheme: light;
  --bg-900: #f2f1fa;
  --bg-800: #ffffff;
  --bg-700: #ffffff;
  --bg-600: #edeaf8;
  --bg-500: #ddd8f0;
  --surface: #ffffff;
  --surface-muted: #f4f3fb;
  --surface-elev: #ffffff;
  --line-hair: rgba(24, 18, 60, 0.07);
  --line-soft: rgba(24, 18, 60, 0.12);
  --line-firm: rgba(24, 18, 60, 0.19);
  --line-strong: rgba(24, 18, 60, 0.28);
  --tx-strong: #120f24;
  --tx-body: #3b3760;
  --tx-mute: #6b6593;
  --tx-faint: #948fb8;
  --brand: #6440fb;
  --brand-lit: #7c5cff;
  --brand-deep: #5130e8;
  --brand-film: rgba(100, 64, 251, 0.08);
  --brand-edge: rgba(100, 64, 251, 0.36);
  --accent: #0891b2;
  --grad-brand: linear-gradient(120deg, #8b5cf6 0%, #6440fb 45%, #06b6d4 100%);
  --grad-btn: linear-gradient(180deg, #8b5cf6 0%, #6440fb 100%);
  --grad-title: linear-gradient(180deg, #17123a 30%, #4c4377 100%);
  --ok: #0d9f6e;
  --ok-film: rgba(13, 159, 110, 0.09);
  --ok-edge: rgba(13, 159, 110, 0.32);
  --warn: #b45309;
  --warn-film: rgba(217, 119, 6, 0.09);
  --warn-edge: rgba(217, 119, 6, 0.30);
  --err: #dc2641;
  --err-film: rgba(220, 38, 65, 0.08);
  --err-edge: rgba(220, 38, 65, 0.30);
  --info: #0284c7;
  --info-film: rgba(2, 132, 199, 0.08);
  --info-edge: rgba(2, 132, 199, 0.30);
  --glow-brand: 0 10px 28px -12px rgba(100, 64, 251, 0.45);
  --glow-ok: 0 10px 28px -12px rgba(13, 159, 110, 0.30);
  --glow-warn: 0 10px 28px -12px rgba(217, 119, 6, 0.28);
  --glow-err: 0 10px 28px -12px rgba(220, 38, 65, 0.30);
  --glow-info: 0 10px 28px -12px rgba(2, 132, 199, 0.30);
  --sh-1: 0 1px 2px rgba(24, 18, 60, 0.06);
  --sh-2: 0 6px 20px -8px rgba(24, 18, 60, 0.12);
  --sh-3: 0 24px 56px -18px rgba(24, 18, 60, 0.20);
  --glass-hi: rgba(255, 255, 255, 0.9);

  /* 组件层专用覆盖（components.css 通过 var 读取） */
  --card-bg-top: #ffffff;
  --card-bg-bottom: #fbfaff;
  --card-header-bg: rgba(246, 245, 252, 0.85);
  --card-footer-bg: rgba(248, 247, 253, 0.85);
  --metric-bg-top: #ffffff;
  --metric-bg-bottom: #f8f7fd;
  --topbar-bg: rgba(255, 255, 255, 0.80);
  --rail-bg: linear-gradient(180deg, #ffffff 0%, #f7f6fd 100%);
  --field-bg: #ffffff;
  --field-bg-focus: #ffffff;
  --thead-bg: #f6f5fc;
  --modal-grad: linear-gradient(180deg, #ffffff, #faf9ff);
  --code-bg: rgba(100, 64, 251, 0.07);
  --panel-deep: #f6f5fc;
}

/* ═══════════ 重置与基础 ═══════════ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--ff-body);
}

body {
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tx-body);
  background-color: var(--bg-900);
  /* 石墨底 + 两处极淡的蓝紫冷光，仅用于拉开层次 */
  background-image:
    radial-gradient(900px 480px at 14% -12%, rgba(124, 108, 255, 0.06), transparent 62%),
    radial-gradient(760px 420px at 100% 0%, rgba(91, 124, 245, 0.035), transparent 58%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="light"] body {
  background-image:
    radial-gradient(1100px 560px at 12% -10%, rgba(124, 108, 255, 0.09), transparent 62%),
    radial-gradient(860px 520px at 104% 8%, rgba(6, 182, 212, 0.05), transparent 58%);
}

a {
  color: var(--brand-lit);
  text-decoration: none;
  transition: color var(--t-fast) var(--ez);
}
a:hover { color: var(--accent); }

code, pre, .font-monospace, kbd, samp {
  font-family: var(--ff-mono) !important;
}

code {
  font-size: 0.88em;
  color: var(--brand-lit);
  background: var(--code-bg, var(--brand-film));
  border: 1px solid var(--line-hair);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  word-break: break-all;
}

pre {
  font-size: 12.5px;
  color: var(--tx-body);
  background: var(--panel-deep, var(--bg-800));
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 0 0 14px;
  overflow-x: auto;
  box-shadow: var(--sh-1);
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  opacity: 1;
  margin: 16px 0;
}

::selection {
  background: rgba(139, 92, 246, 0.30);
  color: #ffffff;
}
:root[data-theme="light"] ::selection {
  background: rgba(124, 108, 255, 0.20);
  color: #120f24;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-900), 0 0 0 4px var(--brand-edge);
}
:root[data-theme="light"] :focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-edge);
}

/* ── 滚动条：细窄悬浮胶囊 ── */
* { scrollbar-width: thin; scrollbar-color: var(--bg-500) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--bg-500);
  border: 2.5px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ═══════════ 外壳骨架 ═══════════ */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

/* ── 左侧导航栏 ── */
.app-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--rail-bg, linear-gradient(180deg, #0a1120 0%, #060a13 100%));
  border-right: 1px solid var(--line-hair);
  transition: background-color 0.3s ease;
}
/* 右缘极细品牌线 */
.app-rail::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--brand-edge) 45%, transparent 100%);
  opacity: 0.28;
  pointer-events: none;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--topbar-h);
  padding: 0 18px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line-hair);
  color: var(--tx-strong) !important;
  position: relative;
  z-index: 1;
}
.rail-brand:hover { color: var(--tx-strong) !important; }

.rail-seal {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-ink);
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px var(--brand-edge),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px -8px rgba(0, 0, 0, 0.8);
}

.rail-brand-text { line-height: 1.15; min-width: 0; }
.rail-brand-name {
  display: block;
  font-family: var(--ff-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rail-brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px 18px;
  position: relative;
  z-index: 1;
}

.rail-caption {
  padding: 0 10px 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tx-faint);
}
.rail-caption + .rail-caption,
.rail-nav + .rail-caption { padding-top: 22px; }

.rail-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  margin-bottom: 2px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--tx-body);
  transition: background var(--t-fast) var(--ez), color var(--t-fast) var(--ez), box-shadow var(--t-fast) var(--ez);
}
.rail-link:hover {
  background: var(--line-hair);
  color: var(--tx-strong);
}
.rail-link.is-active {
  background: var(--brand-film);
  color: var(--brand-lit);
  font-weight: 600;
}
/* 激活指示光条 */
.rail-link.is-active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
}

.rail-ico {
  flex: 0 0 auto;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0.8;
}
.rail-ico svg { width: 15px; height: 15px; stroke-width: 1.7; }
.rail-link:hover .rail-ico { opacity: 1; }
.rail-link.is-active .rail-ico { opacity: 1; }

.rail-foot {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line-hair);
  position: relative;
  z-index: 1;
}

.rail-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  min-width: 0;
}
.rail-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-lit);
  background: var(--brand-film);
  border: 1px solid var(--brand-edge);
  text-transform: uppercase;
}
.rail-user-meta { min-width: 0; line-height: 1.25; }
.rail-user-name {
  font-size: 12.5px;
  color: var(--tx-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-user-role {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

/* ── 右侧主区 ── */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-topbar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--topbar-h);
  padding: 0 26px;
  background: var(--topbar-bg, rgba(10, 10, 12, 0.80));
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line-hair);
  z-index: 5;
}

.topbar-toggle {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--tx-body);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t-fast) var(--ez);
}
.topbar-toggle:hover { color: var(--brand-lit); border-color: var(--brand-edge); background: var(--brand-film); }

.topbar-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--tx-faint);
  white-space: nowrap;
  overflow: hidden;
}
.topbar-trail a { color: var(--tx-mute); }
.topbar-trail a:hover { color: var(--brand-lit); }
.topbar-trail .trail-sep { opacity: 0.4; }
.topbar-trail .trail-now { color: var(--tx-strong); font-weight: 600; }

.topbar-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar-clock {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--tx-mute);
  font-variant-numeric: tabular-nums;
}
/* 终端式闪烁光标 */
.topbar-clock::after {
  content: '▍';
  margin-left: 3px;
  color: var(--brand-lit);
  animation: cursorBlink 1.1s steps(2, start) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.topbar-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-film);
  border: 1px solid var(--ok-edge);
  border-radius: 99px;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.topbar-pulse i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulseRing 2.4s var(--ez) infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 var(--ok); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* 唯一滚动容器 */
.app-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.app-canvas {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 26px 12px;
}

/* 内容入场：逐块上浮渐显 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-canvas > *:not(.modal) {
  animation: riseIn 0.5s var(--ez) backwards;
}
.app-canvas > *:nth-child(1) { animation-delay: 0.02s; }
.app-canvas > *:nth-child(2) { animation-delay: 0.07s; }
.app-canvas > *:nth-child(3) { animation-delay: 0.12s; }
.app-canvas > *:nth-child(4) { animation-delay: 0.17s; }
.app-canvas > *:nth-child(5) { animation-delay: 0.22s; }
.app-canvas > *:nth-child(n+6) { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .app-canvas > * { animation: none; }
  .topbar-pulse i { animation: none; }
  .topbar-clock::after, .blank-glyph { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ── 页脚 ── */
.app-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 26px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tx-faint);
  border-top: 1px solid var(--line-hair);
}
.app-footer .foot-mark {
  font-family: var(--ff-mono);
  color: var(--tx-mute);
  padding: 2px 9px;
  border: 1px solid var(--line-hair);
  border-radius: 99px;
  background: var(--line-hair);
}

/* ── 移动端：侧栏抽屉化 ── */
@media (max-width: 991.98px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-rail {
    position: fixed;
    z-index: 1080;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    transform: translateX(-100%);
    transition: transform var(--t-base) var(--ez);
    box-shadow: var(--sh-3);
  }
  body.rail-open .app-rail { transform: translateX(0); }
  body.rail-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(4, 7, 14, 0.62);
    backdrop-filter: blur(3px);
  }
  .topbar-toggle { display: block; }
  .app-topbar { padding: 0 16px; }
  .app-canvas { padding: 18px 16px 10px; }
  .app-footer { padding: 14px 16px 20px; flex-direction: column; text-align: center; }
  .topbar-clock { display: none; }
}

/* ── 登录页：独立全屏骨架 ── */
.auth-stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 52px;
  background: linear-gradient(155deg, var(--bg-700) 0%, var(--bg-900) 72%);
  border-right: 1px solid var(--line-hair);
  overflow: hidden;
}
.auth-aside::after {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.10), transparent 66%);
}
.auth-aside::before {
  content: '';
  position: absolute;
  left: -120px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 124, 245, 0.05), transparent 66%);
}
.auth-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand-lit);
}
.auth-headline {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.16;
  color: transparent;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 18px 0 14px;
  letter-spacing: -0.015em;
}
.auth-lede {
  max-width: 30ch;
  font-size: 13px;
  color: var(--tx-mute);
}
.auth-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
  position: relative;
}
.auth-facts dt {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-lit);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.auth-facts dd {
  margin: 2px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 340px; }
.auth-form-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tx-strong);
  margin: 0 0 4px;
}
.auth-form-note {
  font-size: 12px;
  color: var(--tx-faint);
  margin: 0 0 26px;
}
.auth-hint {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-hair);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tx-faint);
  text-align: center;
}
.auth-hint b { color: var(--tx-mute); font-weight: 500; }

@media (max-width: 860px) {
  .auth-stage { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .auth-aside { display: none; }
}

/* ── 错误页 ── */
.err-stage {
  min-height: calc(100vh - var(--topbar-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}
.err-code {
  font-family: var(--ff-display);
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--brand-edge);
  text-shadow: none;
  margin: 0 0 10px;
}
.err-msg {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tx-strong);
  margin: 0 0 10px;
}
.err-desc {
  max-width: 46ch;
  margin: 0 auto 24px;
  font-size: 13px;
  color: var(--tx-mute);
}
