/* =============================================================
   tokens.css — 设计变量（颜色 / 间距 / 圆角 / 动效）
   主题：默认深色，[data-theme="light"] 切换浅色
   ============================================================= */

:root {
  color-scheme: dark;

  /* 背景层次 */
  --bg: #08080c;
  --bg-soft: #0c0c12;
  --surface: #101018;
  --surface-2: #16161f;
  --surface-3: #1d1d28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* 文本 */
  --text: #f3f3f8;
  --text-dim: #b9b9c8;
  --muted: #85859a;

  /* 品牌 */
  --accent: #a78bfa;
  --accent-2: #38bdf8;
  --accent-3: #f472b6;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --grad: linear-gradient(120deg, #a78bfa 0%, #38bdf8 55%, #34d399 100%);

  /* 尺寸 */
  --sidebar-w: 252px;
  --player-h: 88px;
  --tabbar-h: 62px;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);

  /* 动效 */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fast: 140ms;
  --mid: 260ms;

  /* 层级 */
  --z-player: 40;
  --z-tabbar: 45;
  --z-sheet: 60;
  --z-toast: 80;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f5f9;
  --bg-soft: #efeff5;
  --surface: #ffffff;
  --surface-2: #f4f4f9;
  --surface-3: #e9e9f2;
  --line: rgba(14, 14, 26, 0.08);
  --line-strong: rgba(14, 14, 26, 0.16);

  --text: #14141d;
  --text-dim: #43435a;
  --muted: #71718a;

  --accent: #7c5cf5;
  --accent-2: #0ea5e9;
  --accent-3: #ec4899;
  --accent-soft: rgba(124, 92, 245, 0.1);

  --shadow-sm: 0 2px 8px rgba(20, 20, 40, 0.06);
  --shadow: 0 12px 30px rgba(20, 20, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 20, 40, 0.16);
}
