/* 首页、工作台与管理后台共用的语义配色。 */
:root {
  color-scheme:light;
  --bg:#f2f7f6; --surface:#ffffff; --surface-alt:#e9f1ef;
  --text:#172a29; --muted:#506663; --line:#c4d5d2;
  --accent:#07685d; --on-accent:#fff; --selected:#d8efe9;
  --danger:#a42f38; --on-danger:#fff; --success:#14684b;
  --font-sans:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --color-midnight-ink:var(--text); --color-paper-white:var(--surface);
  --color-parchment:var(--bg); --color-linen:var(--line); --color-fog-gray:var(--surface-alt);
  --color-campfire-orange:var(--accent); --color-ember-brown:var(--accent);
  --color-sunlit-cream:var(--selected); --color-slate:var(--muted); --color-ash-gray:var(--muted);
  --color-stone:var(--muted); --color-graphite:var(--text);
  --color-ember-alert:var(--danger); --color-forest-pulse:var(--success);
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#111619; --surface:#191f23; --surface-alt:#233034; --text:#e9f0f0;
  --muted:#a8b9b8; --line:#38494b; --accent:#61e3cf; --on-accent:#092923;
  --selected:#203b39; --danger:#ffaba8; --on-danger:#401719; --success:#9ce0bb;
}
body {background:var(--bg);color:var(--text);font-family:var(--font-sans)}
[data-theme-switch] {display:inline-flex;align-items:center;justify-content:center;gap:2px;min-height:40px;min-width:76px;padding:3px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--surface);font:inherit;cursor:pointer;flex-shrink:0}
[data-theme-switch] span {display:grid;place-items:center;width:30px;height:29px;border-radius:999px;font:20px/1 "Segoe UI Symbol",sans-serif}
:root:not([data-theme="dark"]) .theme-sun,:root[data-theme="dark"] .theme-moon {background:var(--accent);color:var(--on-accent)}
:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.btn:not(.btn-ghost):not(.btn-danger) {background:var(--accent);color:var(--on-accent)}
.btn-danger,.pill-red,.toast.error {background:var(--danger);color:var(--on-danger)}
.pill-orange {background:var(--accent);color:var(--on-accent)}
.pill-green,.toast.success {background:var(--success);color:var(--surface)}
.input:focus,.textarea:focus,.select:focus {background:var(--surface);border-color:var(--accent)}
.toast:not(.success):not(.error) {background:var(--text);color:var(--bg)}
.switch input:focus-visible + .slider {outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
