/* 颜色、圆角、阴影等设计变量,以及全局重置。默认深色;浅色由成员登录后在“我的资料”里切换(theme-init.js 在页面显示前设好 data-theme) */
:root {
  color-scheme:light;
  --bg:#eceff7; --surface:#ffffff; --field:#ffffff; --ink:#171b2e; --muted:#5f6783;
  --line:#c9cfe2;        /* 组件边框:卡片、输入框、按钮 —— 要看得清 */
  --line-soft:#e1e5f1;   /* 分隔线:列表行之间 */
  --soft:#e9ecf8; --hover:#f3f5fc;
  --brand:#4f46e5; --brand-ink:#fff; --brand-weak:#e8eaff;
  --ok:#15803d; --ok-weak:#ddf5e6; --warn:#b45309; --warn-weak:#fdecc8; --danger:#dc2626; --danger-weak:#fde2e2;
  --shadow:0 1px 2px rgba(20,24,50,.06), 0 8px 24px rgba(20,24,50,.08);
  --radius:14px;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#090c18; --surface:#141a30; --field:#0d1124; --ink:#eef0fa; --muted:#a3abc8;
  --line:#3b4468; --line-soft:#2a3150;
  --soft:#1f2745; --hover:#1a2140;
  --brand:#8087ff; --brand-ink:#0b0e1c; --brand-weak:#272d63;
  --ok:#5dd88a; --ok-weak:#16331f; --warn:#f0b35a; --warn-weak:#3d2d12; --danger:#ff7a7a; --danger-weak:#3d1c22;
  --shadow:0 0 0 1px rgba(255,255,255,.03) inset, 0 10px 28px rgba(0,0,0,.5);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { margin:0; font:15px/1.55 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--ink); }
h1,h2,h3 { margin:0; line-height:1.3; }
a { color:var(--brand); }
.sub a { text-decoration:none; font-weight:600; } .sub a:hover { text-decoration:underline; }
svg.i { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }
