/* ==========================================================================
 * static/css/base.css — 阶段 6B C0 后台公共样式骨架
 * 批次：C0（保守骨架批，提问超时按建议默认：页面内联 <style> 本批不删）
 * 收录原则（蓝图 §5.1）：仅收录在 admin_config / admin_devices / reports_viewer /
 *   weather_alert 四页逐字一致的规则；任一页写法不同或缺页的规则保留页面私有，
 *   见 6B「重复 → base / 保留私有」对照清单。
 * 层叠顺序（蓝图 §5.1）：本文件先于页面私有 <style> 加载；C0 阶段页面内联同规则
 *   后加载覆盖，视觉不变；真正删除页面重复规则在 C1 / C2 / C3 各页批次完成。
 * tokens 取值取自现状深色主题色值；页面私有样式保持原硬编码，本批不替换为变量。
 * 本批未迁入（各页存在差异，留私有）：
 *   .container（viewer 多 flex/100vh）；.nav（选择器分组写法两页不同）；
 *   .nav a.active（weather_alert 为 #ffb74d，其余 #4fc3f7）；.main-layout / .sidebar 全系
 *   （宽度/附加属性不同，weather_alert 无侧边栏）；.toolbar / .btn-primary 基础
 *   （viewer 附加属性不同）；table / th / td / tr:hover td（config 与 devices/weather 两组不同）；
 *   .toast（z-index 9999 vs 999，定位规则各页独立）。
 * ========================================================================== */

:root {
    --wcm-bg: #0f1923;
    --wcm-text: #e0e0e0;
    --wcm-panel: #111d2c;
    --wcm-line: #1a2a3e;
    --wcm-sub: #7a8a9a;
    --wcm-accent: #4fc3f7;
    --wcm-blue: #1565c0;
    --wcm-blue-hover: #1976d2;
    --wcm-link: #64b5f6;
    --wcm-deep: #0d2137;
}

/* ---- 四后台页逐字一致（probe3 identical_across_4 = True）---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--wcm-bg); color: var(--wcm-text); min-height: 100vh;
}

.nav a { padding: 8px 18px; background: var(--wcm-panel); border: 1px solid var(--wcm-line); border-radius: 8px;
    color: var(--wcm-sub); text-decoration: none; font-size: 13px; transition: 0.2s; }
.nav a:hover { background: var(--wcm-line); border-color: var(--wcm-accent); color: #fff; }
.nav a.home-link { background: var(--wcm-deep); border-color: var(--wcm-blue); color: var(--wcm-link); }
.nav a.home-link:hover { background: var(--wcm-blue); color: #fff; }

.btn-primary:hover { background: var(--wcm-blue-hover); }
