:root {
  /* 色彩系统：温润纸感浅色主题 */
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-sidebar: #f4f1ec;
  --bg-hover: rgba(28, 25, 23, 0.05);
  --bg-active: rgba(28, 25, 23, 0.08);
  --bg-subtle: #efebe4;

  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #8c857e;

  --border-subtle: rgba(28, 25, 23, 0.09);
  --border-strong: rgba(28, 25, 23, 0.16);

  --accent: #3f5e4d;
  --accent-soft: rgba(63, 94, 77, 0.1);
  --accent-hover: #334d3f;
  --danger: #b4433a;
  --danger-soft: rgba(180, 67, 58, 0.1);

  /* 字体与排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;

  /* 尺寸与圆角 */
  --sidebar-width: 248px;
  --topbar-height: 56px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --transition-fast: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #141413;
  --bg-surface: #1c1c1a;
  --bg-sidebar: #181816;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: rgba(255, 255, 255, 0.11);
  --bg-subtle: #242421;

  --text-primary: #edeae4;
  --text-secondary: #a8a299;
  --text-muted: #726d66;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #7da88f;
  --accent-soft: rgba(125, 168, 143, 0.15);
  --accent-hover: #90ba9f;
  --danger: #e06c62;
  --danger-soft: rgba(224, 108, 98, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
}
