/* =========================================================
 * 全站公共主题：各模块统一引用，保持视觉一致
 * 用法：在每个模块的 <head> 里加一行
 *   <link rel="stylesheet" href="../../shared/styles/theme.css">
 * ========================================================= */

:root {
    --color-bg: #f5f7fa;
    --color-surface: #ffffff;
    --color-text: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-primary: #3498db;
    --color-border: #e1e4e8;
    --radius: 12px;
    --font-sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 暗色主题：给 <html> 加 data-theme="dark" 即生效（由 common.js 控制） */
[data-theme="dark"] {
    --color-bg: #1a1d23;
    --color-surface: #242830;
    --color-text: #e6e9ef;
    --color-text-muted: #9aa3b2;
    --color-primary: #5dade2;
    --color-border: #353a45;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a { color: var(--color-primary); }
