/* theme-v1 文章阅读页双主题（2026-09-02 盟主拍板：正文页支持浅色阅读，站架构保持暗色调性）
   真源说明：
   - 只被文章页引用（build_seo 生成页模板 + 3 篇手工精修页）。首页/工具/画廊不引用，保持赛博暗色。
   - 有效主题由 assets/theme.js 解析后写在 <html data-theme="light|dark"> 上（localStorage 优先，
     否则跟随系统 prefers-color-scheme），所以这里只需要一套 [data-theme="light"] 规则，不用双写 media query。
   - 各页内联样式带 !important 的硬编码色（如 .dek #93a3b5!important），浅色覆盖必须同样 !important 才压得住。
   - 暗色信息图（.figure img 的 #0d1117 底）在浅底上保持原样——terminal 截图当"证据原件"，不反色。 */

:root[data-theme="light"]{
  --bg:#f7f7f4;--panel:#ffffff;--border:#dfe4ea;--accent:#0f8a1f;--text:#333d48;
  --muted:#697482;--white:#141b24;--purple:#6d28d9;--red:#c0392b;
}
[data-theme="light"] body:before{background-image:radial-gradient(rgba(15,138,31,.05) 1px,transparent 1px)}
[data-theme="light"] body:after{background:radial-gradient(circle,rgba(15,138,31,.04),transparent 65%)}
[data-theme="light"] .nav{background:rgba(247,247,244,.9)}
[data-theme="light"] .topbar{background:rgba(247,247,244,.92)}
[data-theme="light"] .back{background:rgba(0,0,0,.03)}
[data-theme="light"] .dek{color:#4a5563!important}
[data-theme="light"] .cast{background:rgba(109,40,217,.05);color:#4a5563}
[data-theme="light"] .prose blockquote{background:rgba(15,138,31,.05)}
[data-theme="light"] .tldr{background:rgba(15,138,31,.05)}
[data-theme="light"] .tldr-points{color:#4a5563}
[data-theme="light"] .ai-badge{background:rgba(180,124,10,.08);border-color:rgba(180,124,10,.45);color:#8a6207}

/* 切换按钮（theme.js 注入）：文章页右下角小圆钮，不与桌宠冲突（桌宠只在首页） */
.theme-toggle{position:fixed;right:1.1rem;bottom:1.1rem;z-index:60;width:2.6rem;height:2.6rem;
  border-radius:50%;border:1px solid var(--border);background:var(--panel);color:var(--text);
  font-size:1.05rem;line-height:1;cursor:pointer;box-shadow:0 2px 12px rgba(0,0,0,.25);
  display:flex;align-items:center;justify-content:center;transition:.2s}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-theme="light"] .theme-toggle{box-shadow:0 2px 12px rgba(0,0,0,.12)}
