/* R312：全站共享阅读主题（脑洞页 novel/short、作品中心 works、个人中心 profile、Skill广场 skills、改编列表 dramatize）
   六主题与 create.html R276 同款：墨夜(默认无属性)/素白 white/羊皮纸 sepia/护眼绿 green/天青蓝 blue/纯黑 ink
   主题只随各页自己的 localStorage key 生效（wk_theme_novel / wk_theme_short / wk_theme_works / wk_theme_profile / wk_theme_skills / wk_theme_dramatize），互不影响。 */

/* ── 六主题变量（html 背景一并覆盖页面里写死的 html{background:#0d0d12}） ── */
html[data-theme="white"]{--gold:#8a6a14;--bg:#f7f7f8;--panel:#ffffff;--panel2:#eff0f4;--border:#e2e3ea;--text:#2a2a33;--muted:#47474f;background:#f7f7f8;}
html[data-theme="sepia"]{--gold:#8a6a14;--bg:#f4ecd8;--panel:#fbf4e2;--panel2:#eddfc0;--border:#dbc99e;--text:#453824;--muted:#52452f;background:#f4ecd8;}
html[data-theme="green"]{--gold:#8a6a14;--bg:#cfe6d0;--panel:#def0df;--panel2:#cde2ce;--border:#aed0b0;--text:#263728;--muted:#314235;background:#cfe6d0;}
html[data-theme="blue"]{--gold:#8a6a14;--bg:#e6eef5;--panel:#f4f8fc;--panel2:#dfeaf4;--border:#c0d3e3;--text:#2b3a48;--muted:#354657;background:#e6eef5;}
html[data-theme="home"]{--gold:#8a6a14;--bg:#eef3fa;--panel:#ffffff;--panel2:#e9eff8;--border:#d7e2f0;--text:#24354f;--muted:#5a6b84;background:#eef3fa;}
html[data-theme="ink"]{--bg:#000000;--panel:#0c0c0e;--panel2:#17171a;--border:#28282d;--text:#cfcfd6;--muted:#7c7c88;background:#000000;}

/* ── 通用选择器缩写 ── */
/* 浅色四主题 */
/* 全部非默认主题（浅色4+纯黑） */

/* ── 通用：写死深色的框/卡片边框跟随主题 ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .bigbox{border-color:var(--border)!important;box-shadow:0 10px 40px rgba(0,0,0,.08)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .modal{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .proj .go{color:var(--text)!important;}

/* ── 通用：输入框/文本域文字颜色（页面里有写死浅灰字的输入控件） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) textarea,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) input[type=text],
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) input[type=number]{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) textarea::placeholder,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) input::placeholder{color:var(--muted)!important;opacity:1;}

/* ── 通用：顶栏胶囊跟随主题（深色胶囊在浅色页面上发灰发暗；background-color 保住下拉箭头图） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top a,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top select,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top .hpill{background-color:var(--panel2)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wk-top .hpill:hover{color:var(--hbc,#5b4bd0)!important;}
:is(html[data-theme="ink"]) .wk-top .hpill:hover{color:#fff!important;}

/* ── R313：顶栏 button/字包/账号胶囊跟随主题（会员按钮、退出、账号不在 a 覆盖内） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #memberBtn,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #creditBar,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #userArea>span,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #userArea>button{background-color:var(--panel2)!important;border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #userArea>button,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #creditBar span,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wk-top #userArea span span{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;}

/* ── R313：全局导航（rail+drawer）跟随浅色主题 ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) #wkRail{background:rgba(255,255,255,.92)!important;border-color:var(--border)!important;color:var(--muted)!important;box-shadow:0 4px 18px rgba(0,0,0,.08)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) #wkRail:hover{color:var(--text)!important;border-color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) #wkDrawer{background:var(--panel)!important;border-right-color:var(--border)!important;box-shadow:8px 0 40px rgba(0,0,0,.16)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-head{border-bottom-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-head b{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-head button{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-head button:hover{color:var(--text)!important;background:rgba(0,0,0,.06)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-g{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it{color:var(--text)!important;opacity:.72;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it:hover{background:rgba(0,0,0,.05)!important;color:var(--text)!important;opacity:1;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it.on{background:rgba(91,75,208,.09)!important;color:#5b4bd0!important;opacity:1;border-left-color:#7a86ff!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it .wic{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it:hover .wic{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkd-it.on .wic{color:#5b4bd0!important;}

/* ── R313：任务中心 tasks 跟随浅色主题（写死深色边框/浅色徽标字加深） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .stat{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .trow{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .trow:hover{border-color:#7a86ff!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .trow:hover .tgo{color:var(--text)!important;border-color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .restip{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tb-drama{color:#5b4bd0!important;background:rgba(108,92,231,.08)!important;border-color:rgba(108,92,231,.4)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tb-orig{color:#0a8f80!important;background:rgba(78,205,196,.12)!important;border-color:rgba(78,205,196,.45)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tb-nlong{color:#a05a20!important;background:rgba(232,150,90,.12)!important;border-color:rgba(232,150,90,.45)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tb-nshort{color:#2368a8!important;background:rgba(90,180,232,.12)!important;border-color:rgba(90,180,232,.45)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tflab{color:var(--muted)!important;border-color:var(--border)!important;background:var(--panel2)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tflab.on{color:#fff!important;background:var(--accent,#6c5ce7)!important;border-color:var(--accent,#6c5ce7)!important;}

/* ── 脑洞页家族（novel/short 与 create 同款组件） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .ideawrap{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .ideawrap textarea{background:var(--panel)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .toast{background:var(--panel2)!important;color:var(--text)!important;border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .fsel option,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .chsel option,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="ink"],html[data-theme="home"]) .wsel option{background:var(--panel2);color:var(--text);}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .fsel,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .chsel,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wsel{background:var(--panel2)!important;border-color:var(--border)!important;color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .btn-tech-green{background:linear-gradient(135deg,#14a67c 0%,#12a17f 55%,#0fa087 100%)!important;color:#ffffff!important;border-color:rgba(16,168,145,.45)!important;box-shadow:0 3px 12px rgba(16,168,145,.3)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .btn-tech-green .pr{color:#ffffff!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .card3 .ll{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .card3 .ref b{color:#2c3690!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .doc .mdh{color:#2c3690!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .doc .mdli,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .doc .mdp{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .doc .mdli:before{color:#2c3690!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .flow .done{color:#0a7d66!important;border-color:rgba(10,125,102,.5)!important;background:rgba(10,125,102,.08)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .loading .spin{border-color:var(--border)!important;border-top-color:#5b4bd0!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tag{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tag:hover{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .tag.on{background:rgba(91,75,208,.10)!important;border-color:rgba(91,75,208,.45)!important;color:#5b4bd0!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .ideaflag{color:#5b4bd0!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .btn-next:hover,
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .btn-next.on{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .flow span.on{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .hooks span{color:#8a6a14!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .audseg button{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .audseg button.on{color:var(--text)!important;}

/* ── 作品中心 works ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wsel{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .card{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .mbox{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .restip{border-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .mx{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .toast{background:var(--panel2)!important;color:var(--text)!important;border-color:var(--border)!important;}

/* ── Skill广场 skills ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .sort.on{color:var(--text)!important;box-shadow:inset 0 -2px 0 var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .modal .mdesc{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .mauthor .ai{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .uses{color:var(--muted)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .sktab{color:var(--muted)!important;}

/* ── 改编列表 dramatize（index.html #projListView 不再强制夜色，跟随主题） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .rvchip{color:#0e7d5f!important;background:rgba(23,185,142,.12)!important;border-color:rgba(14,125,90,.45)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .modal-box label.filepick{background:var(--panel2)!important;color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .modal-box label.filepick .fp-tip{color:var(--muted)!important;}

/* ── 个人中心 profile：body 写死深色渐变底，非默认主题下翻成主题底色 ── */
html[data-theme="white"] body,html[data-theme="sepia"] body,html[data-theme="green"] body,html[data-theme="blue"] body,html[data-theme="ink"] body{background:var(--bg)!important;}

/* ── 个人中心 profile：写死深色的卡片/统计块/衬线青数字在浅色下加深 ── */
html[data-theme="white"] .card,html[data-theme="sepia"] .card,html[data-theme="green"] .card,html[data-theme="blue"] .card,html[data-theme="ink"] .card{background:var(--panel)!important;}
html[data-theme="white"] .stat,html[data-theme="sepia"] .stat,html[data-theme="green"] .stat,html[data-theme="blue"] .stat,html[data-theme="ink"] .stat{background:var(--panel2)!important;}
html[data-theme="white"] .balbox .n,html[data-theme="sepia"] .balbox .n,html[data-theme="green"] .balbox .n,html[data-theme="blue"] .balbox .n,html[data-theme="white"] .stat .v,html[data-theme="sepia"] .stat .v,html[data-theme="green"] .stat .v,html[data-theme="blue"] .stat .v{color:#0e8f88!important;}
/* R313 修复：a 蓝色规则之前全局命中把导航链接染蓝，收窄到 profile 的 .wrap 内 */
html[data-theme="white"] .wrap a,html[data-theme="sepia"] .wrap a,html[data-theme="green"] .wrap a,html[data-theme="blue"] .wrap a{color:#5b4bd0!important;}


/* ═══ R315：浅色主题补丁——解析按钮 / 关联知识库按钮 / 蜗小壳面板 ═══ */
/* 解析设定按钮（novel/short/create 输入框右下角，写死深色） */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .parsebtn{background:#ffffff!important;border:1px solid #c9cfe0!important;color:#5b4bd0!important;box-shadow:0 2px 10px rgba(70,80,140,.10)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .parsebtn:hover{border-color:#8d80ee!important;color:#3d2fa8!important;}
/* 关联知识库按钮（novelbook/original 写作意图框左下角，库组件注入按钮） */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) [data-library-input]{background-color:#ffffff!important;border-color:#c9cfe0!important;color:#5b4bd0!important;}
/* 蜗小壳面板（wkpet.js 运行时注入样式，必须 !important 后置覆盖） */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) #wkpPan{background:linear-gradient(180deg,#ffffff,#f2f3fa)!important;border-color:#c9cfe0!important;box-shadow:0 12px 36px rgba(60,70,120,.22)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-head{background:linear-gradient(180deg,rgba(40,50,90,.05),rgba(40,50,90,.02))!important;border-bottom-color:#dfe3f0!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-title{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;-webkit-text-fill-color:#3a3f58!important;color:#3a3f58!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-btns button{background:rgba(30,40,80,.06)!important;border-color:#d5d9e8!important;color:#6a6f88!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-btns button:hover{background:rgba(60,70,140,.12)!important;color:#3a3f58!important;border-color:#8d80ee!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mbtn{background:rgba(30,40,80,.05)!important;border-color:#d5d9e8!important;color:#4a4f68!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mbtn:hover{background:rgba(60,70,140,.10)!important;border-color:#8d80ee!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mmenu{background:#ffffff!important;border-color:#d5d9e8!important;box-shadow:0 12px 32px rgba(60,70,120,.25)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mi{color:#4a4f68!important;border-bottom-color:#eef0f6!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mi:hover{background:rgba(91,75,208,.08)!important;color:#3d2fa8!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mi.cur{background:linear-gradient(90deg,rgba(91,75,208,.12),rgba(141,128,238,.08))!important;color:#3d2fa8!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-m.a{background:rgba(30,40,80,.06)!important;border-color:#dfe3f0!important;color:#3a3f58!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-m.u{background:linear-gradient(135deg,#6d7dff,#8a5cff)!important;border-color:rgba(109,125,255,.3)!important;color:#fff!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-txt{background:#ffffff!important;border-color:#d5d9e8!important;color:#2a2f48!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-up{background:rgba(30,40,80,.05)!important;border-color:#d5d9e8!important;color:#5b4bd0!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-tip{background:#ffffff!important;border-color:#d5d9e8!important;color:#4a4f68!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .wkp-mtag{color:#0a8f6f!important;background:rgba(23,185,142,.12)!important;}
/* R316: 登录/注册弹窗浅色变量（auth.js 用 --au-* 带深色兜底） */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]){--au-text2:#3c4456;--au-link:#4c64d8;}

/* ── R316：充值中心/会员页硬编码深色补丁（浅色主题 + 首页风格） ── */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .plan-card{border-color:var(--border)!important;background:var(--panel)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .plan-card .unit b{color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .plan-card .bonus{border-top-color:var(--border)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .vipcard.is-vip{background:linear-gradient(135deg,#fdf6e3,#ffffff 55%,#f0f5ff 100%)!important;border-color:rgba(190,150,60,.45)!important;box-shadow:0 10px 40px rgba(190,150,60,.12)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .vipcard.no-vip{background:var(--panel)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .no-vip .vip-name{color:var(--muted)!important;}


/* R317b：Skill广场三广场tab浅色可读 */
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .sqtab{background:var(--panel2)!important;color:var(--text)!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .sqtab:hover{color:#111!important;border-color:#8a94b8!important;}
:is(html[data-theme="white"],html[data-theme="sepia"],html[data-theme="green"],html[data-theme="blue"],html[data-theme="home"]) .sqtab.on{background:#31324a!important;border-color:#31324a!important;color:#fff!important;}