/* 扁平克制规范：字重 400/500、0.5px 边框、CSS 变量 + 深色模式、无渐变/阴影/模糊 */
:root {
  --surface-0: #f6f6f4;
  --surface-1: #ffffff;
  --surface-2: #ffffff;
  --surface-hover: #efefec;
  --text-primary: #1d1d1b;
  --text-secondary: #55554f;
  --text-muted: #6f6f68;
  --text-accent: #2f5fd0;
  --accent: #2f5fd0;
  --accent-text: #ffffff;
  --accent-soft: #e8eefb;
  --ok: #1f7a4d;
  --ok-soft: #e4f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --danger: #b42318;
  --danger-soft: #fbe9e7;
  --border: rgba(0, 0, 0, 0.18);
  --border-strong: rgba(0, 0, 0, 0.36);
  --focus: #2f5fd0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: #151514;
    --surface-1: #1e1e1c;
    --surface-2: #262624;
    --surface-hover: #2c2c29;
    --text-primary: #ecece8;
    --text-secondary: #b9b9b2;
    --text-muted: #9a9a92;
    --text-accent: #8fb0ff;
    --accent: #8fb0ff;
    --accent-text: #10151f;
    --accent-soft: #1f2a44;
    --ok: #6fcf9b;
    --ok-soft: #173326;
    --warn: #e9b55a;
    --warn-soft: #3a2e14;
    --danger: #ff8a80;
    --danger-soft: #3d1d1a;
    --border: rgba(255, 255, 255, 0.2);
    --border-strong: rgba(255, 255, 255, 0.4);
    --focus: #8fb0ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.7;
  background: var(--surface-0); color: var(--text-primary);
}
h1, h2, h3 { font-weight: 500; margin: 0; line-height: 1.4; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
b, strong, th { font-weight: 500; }
a { color: var(--text-accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface-hover); border-radius: 4px; padding: 0 4px; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; line-height: 1.6; }
.xs { font-size: 12px; line-height: 1.5; }
