/* ============================================================
   曾墨API · 墨色纸感主题覆盖
   对齐站点：https://www.zengmo.com  （Typecho「riven」主题）
   注入方式：nginx sub_filter 在 SPA 外壳 </head> 前追加本文件
   撤销：删除 api.zengmo.com 反代配置里的 sub_filter 行并 reload nginx
   （数据/二进制均不改动）
   ============================================================ */

/* ---------- 亮色：暖纸底 + 墨棕点缀 ---------- */
:root,
html,
body,
[data-theme-preset]{
  --radius:10px !important;
  --font-body:"LXGW WenKai Screen","霞鹜文楷 屏幕阅读版","霞鹜文楷",LXGW WenKai,"Noto Serif SC","Source Han Serif SC","Songti SC",SimSun,"PingFang SC",serif !important;
  --font-serif:"LXGW WenKai Screen","霞鹜文楷 屏幕阅读版","Noto Serif SC","Songti SC",SimSun,serif !important;

  --background:#F7F4EE !important;
  --foreground:#3E3934 !important;
  --card:#FBFAF7 !important;
  --card-foreground:#3E3934 !important;
  --popover:#FBFAF7 !important;
  --popover-foreground:#3E3934 !important;
  --primary:#6E4F2F !important;
  --primary-foreground:#FBF8F3 !important;
  --secondary:#F2EEE8 !important;
  --secondary-foreground:#6E4F2F !important;
  --muted:#F2EEE8 !important;
  --muted-foreground:#8C857D !important;
  --accent:#EDE7DD !important;
  --accent-foreground:#3E3934 !important;
  --destructive:#9A5548 !important;
  --destructive-foreground:#FBFAF7 !important;
  --success:#5F7A52 !important;
  --success-foreground:#FBFAF7 !important;
  --warning:#A78C63 !important;
  --warning-foreground:#3E3934 !important;
  --info:#6E7F94 !important;
  --info-foreground:#FBFAF7 !important;
  --neutral:#8C857D !important;
  --neutral-foreground:#FBFAF7 !important;
  --border:#DDD6CC !important;
  --input:#DDD6CC !important;
  --ring:#A78C63 !important;
  --chart-1:#6E4F2F !important;
  --chart-2:#A78C63 !important;
  --chart-3:#9A5548 !important;
  --chart-4:#6E7F94 !important;
  --chart-5:#5F7A52 !important;
  --sidebar:#F2EEE8 !important;
  --sidebar-foreground:#3E3934 !important;
  --sidebar-primary:#6E4F2F !important;
  --sidebar-primary-foreground:#FBF8F3 !important;
  --sidebar-accent:#E9E2D8 !important;
  --sidebar-accent-foreground:#3E3934 !important;
  --sidebar-border:#DDD6CC !important;
  --sidebar-ring:#A78C63 !important;
  --skeleton-base:#EAE4DA !important;
  --skeleton-highlight:#F4F0E8 !important;
}

/* ---------- 暗色：墨黑 + 描金 ---------- */
html.dark,
:root.dark,
body.dark,
.dark,
html.dark body,
.dark body,
html.dark [data-theme-preset],
.dark [data-theme-preset]{
  --background:#1E1E1E !important;
  --foreground:#EAEAEA !important;
  --card:#262626 !important;
  --card-foreground:#EAEAEA !important;
  --popover:#2A2A2A !important;
  --popover-foreground:#EAEAEA !important;
  --primary:#D7A46B !important;
  --primary-foreground:#1E1E1E !important;
  --secondary:#2E2E2E !important;
  --secondary-foreground:#E3C89B !important;
  --muted:#2A2A2A !important;
  --muted-foreground:#A29B92 !important;
  --accent:#332F29 !important;
  --accent-foreground:#EFE9E0 !important;
  --destructive:#E07A66 !important;
  --destructive-foreground:#1E1E1E !important;
  --success:#8FAE7E !important;
  --success-foreground:#1E1E1E !important;
  --warning:#D7A46B !important;
  --warning-foreground:#1E1E1E !important;
  --info:#9BB0C6 !important;
  --info-foreground:#1E1E1E !important;
  --neutral:#A29B92 !important;
  --neutral-foreground:#1E1E1E !important;
  --border:#3A3733 !important;
  --input:#3A3733 !important;
  --ring:#D7A46B !important;
  --chart-1:#D7A46B !important;
  --chart-2:#A78C63 !important;
  --chart-3:#E07A66 !important;
  --chart-4:#9BB0C6 !important;
  --chart-5:#8FAE7E !important;
  --sidebar:#1A1A1A !important;
  --sidebar-foreground:#EAEAEA !important;
  --sidebar-primary:#D7A46B !important;
  --sidebar-primary-foreground:#1E1E1E !important;
  --sidebar-accent:#2E2B27 !important;
  --sidebar-accent-foreground:#EFE9E0 !important;
  --sidebar-border:#3A3733 !important;
  --sidebar-ring:#D7A46B !important;
  --skeleton-base:#2E2E2E !important;
  --skeleton-highlight:#3A3A3A !important;
}

/* 字体落到正文（子元素若显式设了 monospace 等不会被覆盖） */
body,
#root{
  font-family:var(--font-body) !important;
}
