:root {
  /* 暗黑战术玻璃色板（正文对比度严格 >= 4.5:1） */
  --bg-void: #070b12;
  --bg-canvas: #0b1019;
  --bg-panel: rgba(16, 23, 36, 0.88);
  --bg-panel-solid: #111827;
  --bg-elevated: #172133;
  --bg-bubble-ai: rgba(24, 34, 52, 0.92);
  --bg-bubble-human: linear-gradient(135deg, rgba(61, 44, 56, 0.94), rgba(37, 30, 48, 0.94));
  --bg-hover: rgba(148, 179, 219, 0.09);
  --bg-active: rgba(79, 139, 255, 0.16);

  /* 文本语义层级 */
  --text-primary: #ecf2fb;
  --text-secondary: #a8b7ce;
  --text-muted: #7f91ad;

  /* 边框与发光 */
  --border-subtle: rgba(148, 179, 219, 0.14);
  --border-strong: rgba(148, 179, 219, 0.28);
  --border-glow: rgba(79, 139, 255, 0.48);

  /* 功能语义色 */
  --accent-primary: #4f8bff;
  --accent-cyan: #14d9c5;
  --accent-violet: #a875ff;
  --accent-emerald: #2ee59d;
  --accent-amber: #f5b74b;
  --accent-danger: #ff5c72;
  --accent-coral: #ff7e6b;

  /* 字体与间距标尺 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei UI', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-glow-blue: 0 0 24px rgba(79, 139, 255, 0.22);

  --topbar-h: 54px;
  --rail-left-w: 262px;
  --rail-right-w: 336px;

  --ease-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
  --ease-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 139, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 65% 45% at 85% 0%, rgba(20, 217, 197, 0.09), transparent 55%),
    linear-gradient(180deg, #090e17 0%, #070b12 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* 精致暗黑滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 179, 219, 0.2);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 179, 219, 0.36);
}
