/* ==========================================================================
   tokens.css — 網站外框（總覽頁、預覽頁工具列）的設計變數
   原則：低調的容器，突出的內容。90% 黑白灰、10% 主色。
   主色只用在 hover / active / 選取中 / 重要按鈕 / 連結。
   元件自己的配色寫在元件的 style.css；毛玻璃相關變數在 glass-tokens.css。
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;600&display=swap");

:root {
  /* --- 色彩：淺色 --- */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f4f5;     /* 標籤、輸入框、分段按鈕底 */
  --text: #111827;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;       /* 更新時間等最弱資訊 */
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --shadow-hover: 0 4px 16px rgba(17, 24, 39, 0.06);

  /* 舊名稱相容（元件 / 預覽頁可能還在用） */
  --page-bg: var(--bg);

  /* --- 圓角 --- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* --- 動態 --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- 字體 --- */
  --font: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f0f11;
  --surface: #18181b;
  --surface-muted: #202024;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --border: #27272a;
  --border-strong: #3f3f46;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}
