/* Design tokens: 与 dev-v2 packages/frontend/app/globals.css 保持一致。
   不得自创色板、字体、圆角、阴影；需要新 token 时先在此处追加并写注释。
   应用默认暗色；亮色仅来自显式 data-theme="light"。 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #006adb;
  --accent-soft: #ecf4fe;
  --accent-solid: #0071e3;
  --accent-solid-hover: #0077ed;
  --accent-solid-press: #006adb;
  --accent-ring: rgba(0, 113, 227, 0.14);
  --accent-glow: rgba(0, 113, 227, 0.22);
  --accent-tint: rgba(0, 113, 227, 0.08);
  --accent-tint-strong: rgba(0, 113, 227, 0.14);
  --accent-border: rgba(0, 113, 227, 0.24);
  --accent-border-strong: rgba(0, 113, 227, 0.32);
  --danger: #d70015;
  --danger-tint: rgba(215, 0, 21, 0.06);
  --danger-tint-strong: rgba(215, 0, 21, 0.1);
  --danger-border: rgba(215, 0, 21, 0.3);
  --warn: #9a5b00;
  --warn-tint: rgba(255, 159, 10, 0.09);
  --warn-tint-strong: rgba(255, 159, 10, 0.13);
  --warn-border: rgba(154, 91, 0, 0.32);
  --verified: #1a8a3a;
  --verified-tint: rgba(26, 138, 58, 0.07);
  --verified-tint-strong: rgba(26, 138, 58, 0.11);
  --verified-border: rgba(26, 138, 58, 0.28);
  --gold: #876a2f;
  --gold-tint: rgba(228, 205, 150, 0.16);
  --gold-tint-strong: rgba(228, 205, 150, 0.26);
  --gold-border: rgba(176, 138, 66, 0.32);
  --nav-h: 48px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 980px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04), 0 12px 36px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.06), 0 22px 60px rgba(0, 0, 0, 0.12);
  --maxw: 1120px;
  --header-bg: rgba(255, 255, 255, 0.7);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"],
:root:not([data-theme]) {
  color-scheme: dark;
  --bg: #0c0c0e;
  --bg-soft: #141416;
  --bg-elevated: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: #2a2a2c;
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #2385ee;
  --accent-hover: #3a95f2;
  --accent-press: #1c78dc;
  --accent-soft: rgba(35, 133, 238, 0.16);
  --accent-solid: #1b76dc;
  --accent-solid-hover: #2b83e8;
  --accent-solid-press: #1668c6;
  --accent-ring: rgba(35, 133, 238, 0.3);
  --accent-glow: rgba(35, 133, 238, 0.32);
  --accent-tint: rgba(35, 133, 238, 0.12);
  --accent-tint-strong: rgba(35, 133, 238, 0.18);
  --accent-border: rgba(35, 133, 238, 0.36);
  --accent-border-strong: rgba(35, 133, 238, 0.5);
  --danger: #ff453a;
  --danger-tint: rgba(255, 69, 58, 0.1);
  --danger-tint-strong: rgba(255, 69, 58, 0.16);
  --danger-border: rgba(255, 69, 58, 0.34);
  --warn: #ffb340;
  --warn-tint: rgba(255, 179, 64, 0.11);
  --warn-tint-strong: rgba(255, 179, 64, 0.16);
  --warn-border: rgba(255, 179, 64, 0.32);
  --verified: #41c463;
  --verified-tint: rgba(65, 196, 99, 0.11);
  --verified-tint-strong: rgba(65, 196, 99, 0.16);
  --verified-border: rgba(65, 196, 99, 0.32);
  --gold: #d8bf85;
  --gold-tint: rgba(231, 210, 160, 0.1);
  --gold-tint-strong: rgba(231, 210, 160, 0.16);
  --gold-border: rgba(231, 210, 160, 0.28);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.36), 0 14px 40px rgba(0, 0, 0, 0.46);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.46), 0 26px 70px rgba(0, 0, 0, 0.58);
  --header-bg: rgba(12, 12, 14, 0.72);
  --menu-bg: rgba(22, 22, 23, 0.96);
}
