/* ===== 设计 Token 与基础 ===== */
:root {
  /* ===== 配色方案（语义分层）=====
     --accent         主强调：分组标题 / 激活态 / 主按钮
     --accent2        次强调：数值 / 图标 / 次级装饰
     --accent-soft    柔和强调：hover / 选中底
     --accent-contrast 强调色块上的文字色
     --text           正文 / 主文字
     --muted          次要文字 / 标签 / 说明
     --bg·bg2·bg3     背景层次 */
  --bg: #0b1220;
  --bg2: #111a2e;
  --bg3: #1a2742;
  --border: rgba(255, 255, 255, .08);
  --text: #dbe4f3;
  --muted: #7c8db0;
  --accent: #14b8a6;
  --accent2: #2dd4bf;
  --accent-soft: rgba(20, 184, 166, .16);
  --accent-contrast: #04121f;
  --danger: #f87171;
  --success: #34d399;

  /* 毛玻璃 */
  --glass-bg: rgba(15, 23, 42, .3);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-blur: 16px;
  --glass-saturate: 160%;
  --glass-inner: rgba(255, 255, 255, .08);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, .35);

  /* 过渡 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .15s;
  --t-normal: .25s;
  --t-slow: .3s;

  /* z-index 层级 */
  --z-coord: 8;
  --z-backdrop: 9;
  --z-sidebar: 30;
  --z-toolbar: 11;
  --z-tooltip: 15;
  --z-header: 20;
  --z-attr: 25;
  --z-loading: 50;
  --z-intro: 60;
  --z-toast: 70;
}

/* ===== 主题 2：极光紫 Violet =====
   在 <body data-theme="violet"> 上启用，一键切换整套强调色 */
[data-theme="violet"] {
  --accent: #8b5cf6;
  --accent2: #a78bfa;
  --accent-soft: rgba(139, 92, 246, .16);
  --accent-contrast: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font: 13px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

body { display: flex; flex-direction: column; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #2b3b5c; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 通用按钮 */
button {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
button:hover { filter: brightness(1.08); }
button.ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .1); }

/* 键盘焦点可见性（无障碍） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

