/* ============ 顶见 · 深色模式共享样式（暖深灰，跟随系统/可手动切）============
   各页 <link rel="stylesheet" href="/theme.css">。这里放:① 深色变量覆盖(全站统一调色只改这一处)
   ② 切换按钮 .themebtn ③ 跨页通用组件(论文卡/榜单标签/AI总结框/关键词/弹窗等)的深色覆盖。
   页面专属的写死色,在各自 <style> 里单独覆盖。改完记得给引用处 bump ?v= 版本号(站点静态资源 24h 强缓存)。 */

/* —— 切换按钮(各页头部) —— */
.themebtn{cursor:pointer;font-size:15px;line-height:1;padding:7px 10px;border:1px solid var(--line2,#e7e1d2);border-radius:9px;background:var(--card,#fff);user-select:none;transition:border-color .15s;flex:none}
.themebtn:hover{border-color:var(--redbd,#d7a9a8)}

/* —— 深色调色板(单一真源)—— */
html[data-theme="dark"]{
  --bg:#1b1916;--card:#262320;--ink:#e9e4da;
  --red:#e58b80;--redbg:#382220;--redbd:#5d3a35;--redbd2:#5d3a35;
  --gold:#d6b269;--goldbg:#322813;
  --mut:#9c968b;--mut2:#bdb7ab;--mut3:#847e6f;--mut4:#6f6a5f;
  --line:#322f29;--line2:#3a352e;
  --blue:#88aad6;--bluebg:#1d2733;--green:#70bf93;
  color-scheme:dark;
}

/* —— 跨页通用组件:写死的浅色 → 深色 —— */
/* 榜单/评级标签药丸(论文卡 + 期刊卡都用) */
html[data-theme="dark"] .tb-utd,html[data-theme="dark"] .jb-utd{background:#1d2733;color:#88aad6}
html[data-theme="dark"] .tb-ft,html[data-theme="dark"] .jb-ft{background:#1a2a21;color:#70bf93}
html[data-theme="dark"] .tb-abs,html[data-theme="dark"] .jb-abs{background:#272036;color:#b89ad8}
html[data-theme="dark"] .jb-ruc{background:#322813;color:#d6b269}
html[data-theme="dark"] .jtag{background:#2f2b25;color:#a8a294}
/* 开放获取徽章 */
html[data-theme="dark"] .oa-dl{background:#1a2a21;color:#70bf93;border-color:#2e4a3a}
html[data-theme="dark"] .oa-badge{background:#1d2620;color:#7faf8f;border-color:#2c3a32}
/* 论文卡内:AI 总结框 / 摘要 / 关键词 / 作者行 / spark 图标 */
html[data-theme="dark"] .aibox,html[data-theme="dark"] .abstxt{background:#2c2823;color:#c9c3b7}
html[data-theme="dark"] .kw{background:#2f2b25;color:#b6b0a4}
html[data-theme="dark"] .auth,html[data-theme="dark"] .pinst{color:#b1aba0}
html[data-theme="dark"] .spark{color:#d8a44f}
/* 弹窗:遮罩加深 + 卡面/输入框转深 */
html[data-theme="dark"] .modal{background:rgba(0,0,0,.62)}
html[data-theme="dark"] .modal-card,html[data-theme="dark"] .lg-input{background:var(--card);color:var(--ink)}
html[data-theme="dark"] .lg-to{color:#b1aba0}
/* 分页/收藏按钮等浅底 */
html[data-theme="dark"] .pager button,html[data-theme="dark"] .fav-tab,html[data-theme="dark"] .fav-item{background:var(--card)}
html[data-theme="dark"] .pager button:disabled{color:#615c52}
/* 反馈"信息有误"药丸 + 光圈:夜里换暖光 */
html[data-theme="dark"] .aentry-fb{background:#382220;color:#e58b80;border-color:#5d3a35}
html[data-theme="dark"] .aentry-fb:hover{background:#472825}
html[data-theme="dark"] .aentry-fb.fb-pulse{animation:fbpulsedark 1.5s ease-out 3}
@keyframes fbpulsedark{0%{box-shadow:0 0 0 0 rgba(229,139,128,.34)}70%{box-shadow:0 0 0 9px rgba(229,139,128,0)}100%{box-shadow:0 0 0 0 rgba(229,139,128,0)}}
