/* ==========================================================================
   红利表 · 主题系统 theme.css
   在每页主样式之后加载。默认(无 data-theme)= 红金牛市。
   [data-theme=dark] = 暗夜金辉(深色牛市·夜盘)
   [data-theme=cool] = 碧波价值(冷调·理性价值投资)
   data-theme 设置在 <html> 上, 由 theme.js / 内联 setter 从 localStorage 恢复。
   ========================================================================== */

/* ---------------- 暗夜金辉 (dark) ---------------- */
[data-theme=dark]{
  --brand:#d9534a; --brand-2:#a83a30; --brand-3:#e8604e; --brand-soft:#3a211b;
  --gold:#e0b64f;  --gold-2:#c9a227;  --gold-3:#f4d47c;  --gold-soft:#3a3016;
  --ink:#f3e9dc;   --sub:#b8a68e;     --line:#3a2c20;    --card:#241c15; --bg:#15100c;
  --ok:#4cc38a;    --st:#e0b64f;      --dl:#ff7a6b;
}
[data-theme=dark] body{
  background:
    radial-gradient(1100px 420px at 50% -140px, rgba(217,83,74,.14), transparent 60%),
    radial-gradient(820px 380px at 97% -60px, rgba(224,182,79,.06), transparent 55%),
    radial-gradient(760px 320px at 2% -40px, rgba(217,83,74,.06), transparent 55%),
    var(--bg);
}
/* 页头: 暗夜炭黑 + 微红辉光 */
[data-theme=dark] header{background:linear-gradient(120deg,#1a120d 0%,#2a1710 45%,#3a1a12 100%);
  box-shadow:0 8px 26px rgba(0,0,0,.5);}
[data-theme=dark] header::after{background:linear-gradient(90deg,transparent,rgba(224,182,79,.85) 16%,rgba(224,182,79,.85) 84%,transparent);}
[data-theme=dark] h1{text-shadow:0 1px 8px rgba(0,0,0,.5);}
[data-theme=dark] .hchips .chip{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.20);color:#e8dcc8;}
[data-theme=dark] .hchips .chip:hover{background:rgba(255,255,255,.13);border-color:rgba(224,182,79,.7);}
[data-theme=dark] .uptime{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);}
[data-theme=dark] .btn-login{border-color:#caa14a;background:linear-gradient(135deg,#e5c06a,#c9a227 60%,#a8861a);color:#2a1e08;}
[data-theme=dark] .user-chip{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.20);}
[data-theme=dark] .user-chip .nm{color:#f3e9dc;}

/* KPI */
[data-theme=dark] .kpi{background:linear-gradient(180deg,#282018,#221a14);box-shadow:0 6px 18px rgba(0,0,0,.35);}
[data-theme=dark] .kpi::after{background:radial-gradient(circle,rgba(224,182,79,.14),transparent 70%);}
[data-theme=dark] .kpi .v{background:linear-gradient(120deg,#f4d47c,#e0b64f);-webkit-background-clip:text;background-clip:text;}
[data-theme=dark] .kpi.warn .v{background:linear-gradient(120deg,#e5c06a,#c9a227);-webkit-background-clip:text;background-clip:text;}
[data-theme=dark] .kpi.risk .v{background:linear-gradient(120deg,#ffb4a0,#ff7a6b);-webkit-background-clip:text;background-clip:text;}

/* 卡片 */
[data-theme=dark] .card{background:linear-gradient(180deg,#282018,#241c15);box-shadow:0 8px 26px rgba(0,0,0,.30);}
[data-theme=dark] .detail{background:linear-gradient(180deg,#282018,#241c15);box-shadow:0 8px 26px rgba(0,0,0,.30);}
[data-theme=dark] .login-wall{background:linear-gradient(180deg,#282018,#221a14);box-shadow:0 14px 38px rgba(0,0,0,.4);}

/* 表格 */
[data-theme=dark] th{background:linear-gradient(180deg,#33281a,#3a2c1c);color:#e0c896;border-bottom:1px solid #4a3826;}
[data-theme=dark] th:hover{color:#f4d47c;}
[data-theme=dark] tr.stock:hover{background:#2c221a;}
[data-theme=dark] td.strong{color:#ff8a7a;}
[data-theme=dark] .tbl-scroll{border-color:#3a2c20;}
[data-theme=dark] .tag.ind{background:#3a2c20;color:#c9b89c;}
[data-theme=dark] .tag.own-unk{background:#3a2c20;color:#c9b89c;}
[data-theme=dark] .tag.gov-n{background:#3a2c20;color:#c9b89c;}
[data-theme=dark] .tag.own-pri{background:#43301a;color:#e6a95a;}

/* 筛选 chip / 输入 */
[data-theme=dark] .chip{background:#282018;color:#c9b89c;}
[data-theme=dark] .chip:hover{border-color:#d9534a;color:#ff8a7a;}
[data-theme=dark] .chip.on{background:linear-gradient(135deg,#c0392b,#8a1220);border-color:#c0392b;box-shadow:0 3px 10px rgba(176,30,46,.35),inset 0 0 0 1px rgba(224,182,79,.45);}
[data-theme=dark] .yield-inp{background:#2c221a;}
[data-theme=dark] .yield-inp input{background:#241c15;color:#f3e9dc;}
[data-theme=dark] .exc-bar{background:#2c221a;}
[data-theme=dark] .searchbox input{background:#241c15;color:#f3e9dc;border-color:#3a2c20;}
[data-theme=dark] .searchbox input::placeholder{color:#8a7a64;}
[data-theme=dark] #scopeTitle .arrow{background:#33281a;border-color:#3a2c20;color:#c9b89c;}
[data-theme=dark] #scopeTitle:hover .arrow{background:#3a2c20;}

/* 详情 */
[data-theme=dark] .kv .item{background:#2c221a;border-color:#3a2c20;}
[data-theme=dark] .kv .item .a{color:#f3e9dc;}
[data-theme=dark] .verdict.cont{background:#3a211b;color:#ff8a7a;}
[data-theme=dark] .verdict.pass{background:#15301f;color:#4cc38a;}
[data-theme=dark] .verdict.fail{background:#33191a;color:#ff7a6b;}
[data-theme=dark] .disclaimer{background:#2c1c12;border-color:#4a3320;color:#d99a72;}
[data-theme=dark] .disclaimer b{color:#ff9d6b;}
[data-theme=dark] .ai-note{background:#2a1f2e;border-color:#4a3350;color:#c79ae0;}

/* 查询框 / 进度 */
[data-theme=dark] .qbox{background:#282018;}
[data-theme=dark] .qbox input{color:#f3e9dc;}
[data-theme=dark] .qbox button{background:linear-gradient(135deg,#c0392b,#8a1220);box-shadow:inset 0 0 0 1px rgba(224,182,79,.35);}
[data-theme=dark] .qprog-track{background:#33281a;}
[data-theme=dark] .qprog-bar{background:linear-gradient(90deg,#d9534a,#f4d47c,#d9534a);}
[data-theme=dark] .qprog-phase .pct{color:#ff8a7a;}

/* 弹窗 */
[data-theme=dark] .modal{background:rgba(0,0,0,.62);}
[data-theme=dark] .modal-box{background:#241c15;border-color:#3a2c20;box-shadow:0 14px 44px rgba(0,0,0,.55);}
[data-theme=dark] .mx{background:#241c15;color:#8a7a64;}
[data-theme=dark] .mx:hover{background:#33281a;color:#f4d47c;}
[data-theme=dark] .exp-full{background:#2c221a;}
[data-theme=dark] .modal-actions button{background:#241c15;color:#e8dcc8;}
[data-theme=dark] .modal-actions .go{background:linear-gradient(135deg,#c0392b,#8a1220);border-color:#c0392b;color:#fff;}

/* 登录/注册 */
[data-theme=dark] .auth-seg{background:#33281a;}
[data-theme=dark] .auth-seg button.on{background:#241c15;color:#ff8a7a;}
[data-theme=dark] .auth-field{background:#241c15;color:#f3e9dc;border-color:#3a2c20;}
[data-theme=dark] .auth-field::placeholder{color:#7a6a54;}
[data-theme=dark] .auth-sendcode{background:#3a211b;color:#ff8a7a;}
[data-theme=dark] .auth-sendcode:hover{background:#46251d;}
[data-theme=dark] .auth-phbtn{background:linear-gradient(135deg,#c0392b,#8a1220);box-shadow:inset 0 0 0 1px rgba(224,182,79,.35);}
[data-theme=dark] .auth-mobile button{background:#241c15;color:#f3e9dc;}
[data-theme=dark] .login-wall button{background:linear-gradient(135deg,#c0392b,#8a1220);box-shadow:inset 0 0 0 1px rgba(224,182,79,.35);}

/* 工具弹窗框架 */
[data-theme=dark] .calc-box{background:#15100c;box-shadow:0 18px 52px rgba(0,0,0,.6);}
[data-theme=dark] .calc-head{background:#241c15;}
[data-theme=dark] .calc-close{color:#8a7a64;}
[data-theme=dark] .calc-close:hover{background:#33281a;color:#f4d47c;}

/* 加载更多 / 通用 */
[data-theme=dark] .tbl-more button{background:#241c15;color:#ff8a7a;}
[data-theme=dark] .tbl-more button:hover{background:#3a211b;}
[data-theme=dark] .sarr{color:#e0b64f;}
[data-theme=dark] .refreshmsg{color:#ff8a7a;}
[data-theme=dark] ::selection{background:rgba(224,182,79,.30);}
[data-theme=dark] .tbl-scroll::-webkit-scrollbar-thumb,#tableWrap::-webkit-scrollbar-thumb,.modal-box::-webkit-scrollbar-thumb,.calc-box::-webkit-scrollbar-thumb{background:#4a3826;background-clip:content-box;}
[data-theme=dark] .tbl-scroll::-webkit-scrollbar-thumb:hover,#tableWrap::-webkit-scrollbar-thumb:hover,.modal-box::-webkit-scrollbar-thumb:hover,.calc-box::-webkit-scrollbar-thumb:hover{background:#5a4630;background-clip:content-box;}

/* 自由宝典 library */
[data-theme=dark] .bk{background:#241c15;}
[data-theme=dark] .bk:hover{box-shadow:0 6px 18px rgba(0,0,0,.45);}
[data-theme=dark] .bk .bd{background:#241c15;}
[data-theme=dark] input.q{background:#241c15;color:#f3e9dc;border-color:#3a2c20;}
[data-theme=dark] .prog{background:#33281a;}
[data-theme=dark] .card{background:linear-gradient(180deg,#282018,#241c15);}

/* 后台 admin */
[data-theme=dark] .login-wrap{background:radial-gradient(1100px 520px at 50% -10%,#241a12 0%,#1a130d 55%,#15100c 100%);}
[data-theme=dark] .login-card{background:#241c15;border-color:#3a2c20;box-shadow:0 18px 48px rgba(0,0,0,.5);}
[data-theme=dark] .field input, [data-theme=dark] .tblgrid td input{background:#241c15;color:#f3e9dc;}
[data-theme=dark] .tblgrid td, [data-theme=dark] .tblgrid th{color:#e8dcc8;}

/* 计算器 tools / calc */
[data-theme=dark] body{background:#15100c;color:#f3e9dc;}
[data-theme=dark] .topbar{color:#ff8a7a;background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .topbar:hover{background:#2c221a;}
[data-theme=dark] .hero{background:linear-gradient(130deg,#241a12 0%,#2e1a12 58%,#3a1c12 100%);color:#f3e9dc;box-shadow:0 14px 30px -20px rgba(0,0,0,.9);}
[data-theme=dark] .hero p{color:#c9b89c;}
[data-theme=dark] .hero .tags span{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18);color:#e8dcc8;}
[data-theme=dark] .card{background:#241c15;border-color:#3a2c20;box-shadow:0 1px 2px rgba(0,0,0,.3);}
[data-theme=dark] .card h2{color:#f3e9dc;}
[data-theme=dark] .card h2 i{background:#33281a;color:#ff8a7a;}
[data-theme=dark] .card .tip{color:#b8a68e;}
[data-theme=dark] .card .tip b{color:#d9c6a8;}
[data-theme=dark] button.ghost, [data-theme=dark] button.mini{color:#ff8a7a;background:#241c15;border-color:#3a2c20;}
[data-theme=dark] button.ghost:hover,[data-theme=dark] button.mini:hover{background:#33281a;}
[data-theme=dark] button.primary{background:linear-gradient(120deg,#8a1220,#c0392b);}
[data-theme=dark] .seg{background:#33281a;border-color:#3a2c20;}
[data-theme=dark] .seg button{color:#c9b89c;}
[data-theme=dark] .seg button.on{background:#c0392b;box-shadow:0 1px 3px rgba(176,30,46,.35);}
[data-theme=dark] .field{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .field label{color:#c9b89c;}
[data-theme=dark] .field label em{color:#8a7a64;}
[data-theme=dark] .field input,[data-theme=dark] .field select{background:#1a130d;border-color:#4a3826;color:#f3e9dc;}
[data-theme=dark] .field .hint{color:#8a7a64;}
[data-theme=dark] .table-wrap{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] th, [data-theme=dark] td{border-bottom:1px solid #33281a;}
[data-theme=dark] thead th{background:#33281a;color:#e0c896;border-bottom-color:#4a3826;}
[data-theme=dark] thead th .u{color:#b8a68e;}
[data-theme=dark] tbody tr:nth-child(even) td{background:#282018;}
[data-theme=dark] tbody tr:hover td{background:#2c221a;}
[data-theme=dark] th:first-child,[data-theme=dark] td:first-child{color:#f3e9dc;background:#241c15;box-shadow:1px 0 0 #33281a;}
[data-theme=dark] thead th:first-child{background:#33281a;}
[data-theme=dark] tbody tr:nth-child(even) td:first-child{background:#282018;}
[data-theme=dark] tbody tr:hover td:first-child{background:#2c221a;}
[data-theme=dark] .loss,[data-theme=dark] .bad{color:#ff7a6b;}
[data-theme=dark] .ok{color:#4cc38a;}
[data-theme=dark] .muted{color:#8a7a64;}
[data-theme=dark] .stat{background:linear-gradient(180deg,#282018,#241c15);border-color:#3a2c20;}
[data-theme=dark] .stat .k{color:#b8a68e;}
[data-theme=dark] .stat .v{color:#f3e9dc;}
[data-theme=dark] .stat .v small{color:#b8a68e;}
[data-theme=dark] .stat.accent{background:linear-gradient(180deg,#332a16,#2c2415);border-color:#4a3a20;}
[data-theme=dark] .stat.accent .v{color:#e0b64f;}
[data-theme=dark] .stat.neg .v{color:#ff7a6b;}
[data-theme=dark] .stat.okstat .v{color:#4cc38a;}
[data-theme=dark] .warn{color:#e0b64f;background:#2c2415;border-color:#4a3a20;}
[data-theme=dark] .final-note{color:#cfe6d6;background:linear-gradient(180deg,#17301f,#132a1c);border-color:#2c4a36;}
[data-theme=dark] .final-note b{color:#5ad29a;}
[data-theme=dark] .final-note.neg{background:linear-gradient(180deg,#332a16,#2c2415);border-color:#4a3a20;color:#d9c6a8;}
[data-theme=dark] .final-note.neg b{color:#e0b64f;}
[data-theme=dark] .final-note.danger{background:linear-gradient(180deg,#33191a,#2c1616);border-color:#4a2c28;color:#e8b8b0;}
[data-theme=dark] .final-note.danger b{color:#ff7a6b;}
[data-theme=dark] .formula{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .formula-head{color:#c9b89c;}
[data-theme=dark] .formula-head .arrow{color:#8a7a64;}
[data-theme=dark] .formula-body{color:#b8a68e;}
[data-theme=dark] .formula-body code,[data-theme=dark] .notes code{background:#33281a;color:#e0c896;}
[data-theme=dark] .formula-body b{color:#e0c896;}
[data-theme=dark] .slider-val{background:#241c15;border-color:#3a2c20;color:#f3e9dc;}
[data-theme=dark] .chart-wrap{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .compare-card{background:linear-gradient(180deg,#282018,#241c15);border-color:#3a2c20;}
[data-theme=dark] .compare-card .k{color:#b8a68e;}
[data-theme=dark] .compare-card .v{color:#f3e9dc;}
[data-theme=dark] .compare-card .sub{color:#8a7a64;}
[data-theme=dark] .compare-card.hot{background:linear-gradient(180deg,#332a16,#2c2415);border-color:#4a3a20;}
[data-theme=dark] .compare-card.hot .v{color:#e0b64f;}
[data-theme=dark] .disclaimer{background:#241c15;border-color:#3a2c20;color:#b8a68e;}
[data-theme=dark] .disclaimer b{color:#e0c896;}
[data-theme=dark] .notes{color:#b8a68e;}
[data-theme=dark] .notes b{color:#e0c896;}
[data-theme=dark] .block-head{background:linear-gradient(120deg,#241a12 0%,#2e1a12 60%,#3a1c12 100%);box-shadow:0 12px 24px -18px rgba(0,0,0,.9);}
[data-theme=dark] .block-head:hover{background:linear-gradient(120deg,#2c1e14 0%,#3a2014 60%,#482214 100%);}
[data-theme=dark] .block-badge{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);}
[data-theme=dark] .block-sub{color:#c9b89c;}
[data-theme=dark] .block-arrow{color:#e8dcc8;}
[data-theme=dark] .flow-row{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .flow-row label{color:#b8a68e;}
[data-theme=dark] .flow-row input,[data-theme=dark] .flow-row select{background:#1a130d;border-color:#4a3826;color:#f3e9dc;}
[data-theme=dark] .flow-del{color:#ff7a6b;background:#33191a;border-color:#4a2c28;}

/* ---------------- 霓虹熔金 (cool) ---------------- */
/* 赛博牛市风(大胆夸张): 深紫黑底 + 高饱和霓虹红 + 荧光金 + 发光辉光 + 玻璃拟态。
   高对比(正文白字/紫黑底>14:1, 荧光金按钮黑字>9:1), 醒目有冲击力, 与红金(浓烈)/暗夜(沉稳)截然不同。 */
[data-theme=cool]{
  --brand:#ff3b4e; --brand-2:#c81e3a; --brand-3:#ff6b5e; --brand-soft:#3a1120;
  --gold:#ffd54a;  --gold-2:#e8a81c;  --gold-3:#ffe89a;  --gold-soft:#3a2a10;
  --ink:#fdf3ff;   --sub:#b9a6c9;     --line:#3a2440;    --card:#16101f; --bg:#0d0713;
  --ok:#4dff9d;    --st:#ffd54a;      --dl:#ff5e6e;
}
[data-theme=cool] body{
  background:
    radial-gradient(1100px 440px at 50% -140px, rgba(255,59,78,.20), transparent 60%),
    radial-gradient(860px 400px at 97% -60px, rgba(255,213,74,.12), transparent 55%),
    radial-gradient(760px 340px at 2% -40px, rgba(162,75,255,.16), transparent 55%),
    var(--bg);
}
/* 页头: 霓虹红→电紫 渐变 + 荧光金发光线 */
[data-theme=cool] header{background:linear-gradient(120deg,#3a0d1e 0%,#55112a 48%,#2a0d33 100%);
  box-shadow:0 10px 34px rgba(0,0,0,.6),0 0 30px rgba(255,59,78,.22);}
[data-theme=cool] header::after{background:linear-gradient(90deg,transparent,rgba(255,213,74,.95) 16%,rgba(255,213,74,.95) 84%,transparent);
  box-shadow:0 0 14px rgba(255,213,74,.8);}
[data-theme=cool] h1{color:#fff;text-shadow:0 0 18px rgba(255,59,78,.85),0 1px 8px rgba(0,0,0,.6);}
[data-theme=cool] h1 .logo{box-shadow:0 0 0 2px rgba(255,213,74,.95),0 0 20px rgba(255,213,74,.55),0 3px 12px rgba(0,0,0,.4);}
[data-theme=cool] .hchips .chip{background:rgba(255,255,255,.08);border-color:rgba(255,213,74,.35);color:#f3e6ff;}
[data-theme=cool] .hchips .chip:hover{background:rgba(255,255,255,.15);border-color:rgba(255,213,74,.95);box-shadow:0 0 14px rgba(255,213,74,.4);}
[data-theme=cool] .uptime{background:rgba(255,255,255,.08);border-color:rgba(255,213,74,.30);}
[data-theme=cool] .btn-login{border-color:#ffe89a;background:linear-gradient(135deg,#ffd54a,#e8a81c 60%,#c8880f);color:#2a1604;
  box-shadow:0 0 20px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.35);}
[data-theme=cool] .user-chip{background:rgba(255,255,255,.10);border-color:rgba(255,213,74,.32);}
[data-theme=cool] .user-chip .nm{color:#fff;}

/* KPI: 玻璃拟态 + 霓虹发光数字 */
[data-theme=cool] .kpi{background:linear-gradient(160deg,rgba(255,59,78,.14),rgba(22,16,31,.92));
  box-shadow:0 8px 26px rgba(0,0,0,.5),0 0 0 1px rgba(255,59,78,.30),0 0 24px rgba(255,59,78,.14);}
[data-theme=cool] .kpi::after{background:radial-gradient(circle,rgba(255,213,74,.20),transparent 70%);}
[data-theme=cool] .kpi .v{background:linear-gradient(120deg,#ff5e6e,#ff3b4e);-webkit-background-clip:text;background-clip:text;
  text-shadow:0 0 18px rgba(255,59,78,.75);}
[data-theme=cool] .kpi.warn .v{background:linear-gradient(120deg,#ffe89a,#ffd54a);-webkit-background-clip:text;background-clip:text;
  text-shadow:0 0 16px rgba(255,213,74,.7);}
[data-theme=cool] .kpi.risk .v{background:linear-gradient(120deg,#c86bff,#a24bff);-webkit-background-clip:text;background-clip:text;
  text-shadow:0 0 16px rgba(162,75,255,.7);}

/* 卡片: 玻璃拟态 */
[data-theme=cool] .card{background:linear-gradient(160deg,rgba(22,16,31,.94),rgba(16,10,24,.94));box-shadow:0 8px 26px rgba(0,0,0,.5),0 0 0 1px rgba(162,75,255,.18);}
[data-theme=cool] .detail{background:linear-gradient(160deg,rgba(22,16,31,.94),rgba(16,10,24,.94));box-shadow:0 8px 26px rgba(0,0,0,.5),0 0 0 1px rgba(162,75,255,.18);}
[data-theme=cool] .login-wall{background:linear-gradient(160deg,rgba(22,16,31,.96),rgba(16,10,24,.96));box-shadow:0 14px 40px rgba(0,0,0,.6),0 0 0 1px rgba(255,59,78,.28);}

/* 表格 */
[data-theme=cool] th{background:linear-gradient(180deg,#ffd54a,#e8a81c);color:#2a1604;border-bottom:1px solid #a8760a;
  text-shadow:0 0 10px rgba(255,255,255,.35);}
[data-theme=cool] th:hover{color:#160a00;}
[data-theme=cool] tr.stock:hover{background:#241433;}
[data-theme=cool] td.strong{color:#ff5e6e;text-shadow:0 0 12px rgba(255,59,78,.5);}
[data-theme=cool] .tag.ind{background:#241433;color:#b9a6c9;}
[data-theme=cool] .tag.own-unk{background:#241433;color:#a48fbf;}
[data-theme=cool] .tag.gov-n{background:#241433;color:#a48fbf;}
[data-theme=cool] .tag.own-pri{background:#3a2a10;color:#ffd54a;}

/* 筛选 chip / 输入 */
[data-theme=cool] .chip{background:#16101f;color:#b9a6c9;border-color:#3a2440;}
[data-theme=cool] .chip:hover{border-color:#ff3b4e;color:#ff6b5e;box-shadow:0 0 12px rgba(255,59,78,.35);}
[data-theme=cool] .chip.on{background:linear-gradient(135deg,#ffd54a,#e8a81c);border-color:#ffe89a;color:#2a1604;font-weight:700;
  box-shadow:0 0 20px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}
[data-theme=cool] .yield-inp{background:#241433;}
[data-theme=cool] .yield-inp input{background:#16101f;color:#fdf3ff;}
[data-theme=cool] .exc-bar{background:#241433;}
[data-theme=cool] .searchbox input{background:#16101f;color:#fdf3ff;border-color:#3a2440;}
[data-theme=cool] .searchbox input::placeholder{color:#8a749f;}
[data-theme=cool] #scopeTitle .arrow{background:#241433;border-color:#3a2440;color:#b9a6c9;}
[data-theme=cool] #scopeTitle:hover .arrow{background:#3a2440;}

/* 详情 */
[data-theme=cool] .kv .item{background:#241433;border-color:#3a2440;}
[data-theme=cool] .kv .item .a{color:#fdf3ff;}
[data-theme=cool] .verdict.cont{background:#3a1120;color:#ff5e6e;}
[data-theme=cool] .verdict.pass{background:#0f2a1c;color:#4dff9d;}
[data-theme=cool] .verdict.fail{background:#33111c;color:#ff5e6e;}
[data-theme=cool] .disclaimer{background:#241433;border-color:#3a2440;color:#c9a6e0;}
[data-theme=cool] .disclaimer b{color:#ffd54a;}
[data-theme=cool] .ai-note{background:#241433;border-color:#3a2440;color:#c86bff;}

/* 查询框 / 进度 */
[data-theme=cool] .qbox{background:#16101f;}
[data-theme=cool] .qbox input{color:#fdf3ff;}
[data-theme=cool] .qbox button{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;
  box-shadow:0 0 18px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}
[data-theme=cool] .qprog-track{background:#241433;}
[data-theme=cool] .qprog-bar{background:linear-gradient(90deg,#ff3b4e,#ffd54a,#a24bff,#ff3b4e);box-shadow:0 0 14px rgba(255,59,78,.6);}
[data-theme=cool] .qprog-phase .pct{color:#ff5e6e;}

/* 弹窗 */
[data-theme=cool] .modal{background:rgba(10,4,16,.72);}
[data-theme=cool] .modal-box{background:#16101f;border-color:#3a2440;box-shadow:0 16px 50px rgba(0,0,0,.65),0 0 0 1px rgba(255,59,78,.20);}
[data-theme=cool] .mx{background:#16101f;color:#8a749f;}
[data-theme=cool] .mx:hover{background:#241433;color:#ffd54a;}
[data-theme=cool] .exp-full{background:#241433;}
[data-theme=cool] .modal-actions button{background:#16101f;color:#e8dcf5;}
[data-theme=cool] .modal-actions .go{background:linear-gradient(135deg,#ffd54a,#e8a81c);border-color:#ffe89a;color:#2a1604;font-weight:700;
  box-shadow:0 0 18px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}

/* 登录/注册 */
[data-theme=cool] .auth-seg{background:#241433;}
[data-theme=cool] .auth-seg button.on{background:#16101f;color:#ffd54a;}
[data-theme=cool] .auth-field{background:#16101f;color:#fdf3ff;border-color:#3a2440;}
[data-theme=cool] .auth-field::placeholder{color:#8a749f;}
[data-theme=cool] .auth-sendcode{background:#3a1120;color:#ff6b5e;}
[data-theme=cool] .auth-sendcode:hover{background:#46152a;}
[data-theme=cool] .auth-phbtn{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;
  box-shadow:0 0 18px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}
[data-theme=cool] .auth-mobile button{background:#16101f;color:#fdf3ff;}
[data-theme=cool] .login-wall button{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;
  box-shadow:0 0 18px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}

/* 工具弹窗框架 */
[data-theme=cool] .calc-box{background:#0d0713;box-shadow:0 20px 60px rgba(0,0,0,.7),0 0 0 1px rgba(162,75,255,.22);}
[data-theme=cool] .calc-head{background:#16101f;}
[data-theme=cool] .calc-close{color:#8a749f;}
[data-theme=cool] .calc-close:hover{background:#241433;color:#ffd54a;}

/* 加载更多 */
[data-theme=cool] .tbl-more button{background:#16101f;color:#ff5e6e;}
[data-theme=cool] .tbl-more button:hover{background:#3a1120;}
[data-theme=cool] .sarr{color:#ffd54a;}
[data-theme=cool] .refreshmsg{color:#ff5e6e;}
[data-theme=cool] ::selection{background:rgba(255,59,78,.40);color:#fff;}
[data-theme=cool] .tbl-scroll::-webkit-scrollbar-thumb,#tableWrap::-webkit-scrollbar-thumb,.modal-box::-webkit-scrollbar-thumb,.calc-box::-webkit-scrollbar-thumb{background:#3a2440;background-clip:content-box;}
[data-theme=cool] .tbl-scroll::-webkit-scrollbar-thumb:hover,#tableWrap::-webkit-scrollbar-thumb:hover,.modal-box::-webkit-scrollbar-thumb:hover,.calc-box::-webkit-scrollbar-thumb:hover{background:#4a3054;background-clip:content-box;}

/* 自由宝典 library */
[data-theme=cool] .bk{background:#16101f;box-shadow:0 0 0 1px rgba(162,75,255,.16);}
[data-theme=cool] .bk:hover{box-shadow:0 0 20px rgba(255,59,78,.30);}
[data-theme=cool] input.q{background:#16101f;color:#fdf3ff;border-color:#3a2440;}
[data-theme=cool] .prog{background:#241433;}
[data-theme=cool] .card{background:linear-gradient(160deg,rgba(22,16,31,.94),rgba(16,10,24,.94));}

/* 后台 admin */
[data-theme=cool] .login-wrap{background:radial-gradient(1100px 540px at 50% -10%,#2a0d22 0%,#160a1e 55%,#0d0713 100%);}
[data-theme=cool] .login-card{background:#16101f;border-color:#3a2440;box-shadow:0 20px 54px rgba(0,0,0,.6),0 0 0 1px rgba(255,59,78,.22);}
[data-theme=cool] .field input, [data-theme=cool] .tblgrid td input{background:#16101f;color:#fdf3ff;}
[data-theme=cool] .tblgrid td, [data-theme=cool] .tblgrid th{color:#e8dcf5;}

/* 计算器 tools / calc */
[data-theme=cool] body{background:#0d0713;color:#fdf3ff;}
[data-theme=cool] .topbar{color:#ff5e6e;background:#16101f;border-color:#3a2440;}
[data-theme=cool] .topbar:hover{background:#241433;}
[data-theme=cool] .hero{background:linear-gradient(130deg,#3a0d1e 0%,#55112a 58%,#2a0d33 100%);color:#fff;
  box-shadow:0 16px 40px -20px rgba(0,0,0,.9),0 0 30px rgba(255,59,78,.16);}
[data-theme=cool] .hero h1{text-shadow:0 0 18px rgba(255,59,78,.85);}
[data-theme=cool] .hero p{color:#d9b8e6;}
[data-theme=cool] .hero .tags span{background:rgba(255,255,255,.10);border-color:rgba(255,213,74,.30);color:#f3e6ff;}
[data-theme=cool] .card{background:#16101f;border-color:#3a2440;box-shadow:0 1px 2px rgba(0,0,0,.4),0 0 0 1px rgba(162,75,255,.16);}
[data-theme=cool] .card h2{color:#fdf3ff;}
[data-theme=cool] .card h2 i{background:#3a1120;color:#ff5e6e;}
[data-theme=cool] .card .tip{color:#b9a6c9;}
[data-theme=cool] .card .tip b{color:#e0c8f0;}
[data-theme=cool] button.ghost, [data-theme=cool] button.mini{color:#ff5e6e;background:#16101f;border-color:#3a2440;}
[data-theme=cool] button.ghost:hover,[data-theme=cool] button.mini:hover{background:#241433;}
[data-theme=cool] button.primary{background:linear-gradient(120deg,#e8a81c,#ffd54a);color:#2a1604;font-weight:700;
  box-shadow:0 0 18px rgba(255,213,74,.55),inset 0 0 0 1px rgba(255,255,255,.4);}
[data-theme=cool] .seg{background:#241433;border-color:#3a2440;}
[data-theme=cool] .seg button{color:#b9a6c9;}
[data-theme=cool] .seg button.on{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;
  box-shadow:0 0 14px rgba(255,213,74,.5);}
[data-theme=cool] .field{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .field label{color:#b9a6c9;}
[data-theme=cool] .field label em{color:#8a749f;}
[data-theme=cool] .field input,[data-theme=cool] .field select{background:#0d0713;border-color:#4a3054;color:#fdf3ff;}
[data-theme=cool] .field .hint{color:#8a749f;}
[data-theme=cool] .table-wrap{background:#16101f;border-color:#3a2440;}
[data-theme=cool] th, [data-theme=cool] td{border-bottom:1px solid #241433;}
[data-theme=cool] thead th{background:linear-gradient(180deg,#ffd54a,#e8a81c);color:#2a1604;border-bottom-color:#a8760a;text-shadow:0 0 10px rgba(255,255,255,.35);}
[data-theme=cool] thead th .u{color:#5a3c04;}
[data-theme=cool] tbody tr:nth-child(even) td{background:#16101f;}
[data-theme=cool] tbody tr:hover td{background:#241433;}
[data-theme=cool] th:first-child,[data-theme=cool] td:first-child{color:#fdf3ff;background:#16101f;box-shadow:1px 0 0 #241433;}
[data-theme=cool] thead th:first-child{background:#ffd54a;}
[data-theme=cool] tbody tr:nth-child(even) td:first-child{background:#16101f;}
[data-theme=cool] tbody tr:hover td:first-child{background:#241433;}
[data-theme=cool] .loss,[data-theme=cool] .bad{color:#ff5e6e;text-shadow:0 0 12px rgba(255,59,78,.4);}
[data-theme=cool] .ok{color:#4dff9d;text-shadow:0 0 12px rgba(77,255,157,.4);}
[data-theme=cool] .muted{color:#8a749f;}
[data-theme=cool] .stat{background:linear-gradient(160deg,#1c1226,#16101f);border-color:#3a2440;}
[data-theme=cool] .stat .k{color:#b9a6c9;}
[data-theme=cool] .stat .v{color:#fdf3ff;}
[data-theme=cool] .stat .v small{color:#b9a6c9;}
[data-theme=cool] .stat.accent{background:linear-gradient(160deg,#3a2a10,#241a08);border-color:#5a4510;}
[data-theme=cool] .stat.accent .v{color:#ffd54a;text-shadow:0 0 12px rgba(255,213,74,.5);}
[data-theme=cool] .stat.neg .v{color:#ff5e6e;}
[data-theme=cool] .stat.okstat .v{color:#4dff9d;}
[data-theme=cool] .warn{color:#ffd54a;background:#3a2a10;border-color:#5a4510;}
[data-theme=cool] .final-note{color:#d2f5e0;background:linear-gradient(180deg,#0f2a1c,#0c2418);border-color:#1e4a30;}
[data-theme=cool] .final-note b{color:#5affab;}
[data-theme=cool] .final-note.neg{background:linear-gradient(180deg,#3a2a10,#2c200a);border-color:#5a4510;color:#f0e0b8;}
[data-theme=cool] .final-note.neg b{color:#ffd54a;}
[data-theme=cool] .final-note.danger{background:linear-gradient(180deg,#33111c,#2a0e16);border-color:#4a1e2c;color:#f0c8ce;}
[data-theme=cool] .final-note.danger b{color:#ff5e6e;}
[data-theme=cool] .formula{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .formula-head{color:#b9a6c9;}
[data-theme=cool] .formula-head .arrow{color:#8a749f;}
[data-theme=cool] .formula-body{color:#b9a6c9;}
[data-theme=cool] .formula-body code,[data-theme=cool] .notes code{background:#241433;color:#ffd54a;}
[data-theme=cool] .formula-body b{color:#ffd54a;}
[data-theme=cool] .slider-val{background:#16101f;border-color:#3a2440;color:#fdf3ff;}
[data-theme=cool] .chart-wrap{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .compare-card{background:linear-gradient(160deg,#1c1226,#16101f);border-color:#3a2440;}
[data-theme=cool] .compare-card .k{color:#b9a6c9;}
[data-theme=cool] .compare-card .v{color:#fdf3ff;}
[data-theme=cool] .compare-card .sub{color:#8a749f;}
[data-theme=cool] .compare-card.hot{background:linear-gradient(160deg,#3a2a10,#241a08);border-color:#5a4510;}
[data-theme=cool] .compare-card.hot .v{color:#ffd54a;}
[data-theme=cool] .disclaimer{background:#16101f;border-color:#3a2440;color:#b9a6c9;}
[data-theme=cool] .disclaimer b{color:#ffd54a;}
[data-theme=cool] .notes{color:#b9a6c9;}
[data-theme=cool] .notes b{color:#ffd54a;}
[data-theme=cool] .block-head{background:linear-gradient(120deg,#3a0d1e 0%,#55112a 60%,#2a0d33 100%);
  box-shadow:0 14px 30px -18px rgba(0,0,0,.9),0 0 26px rgba(255,59,78,.16);}
[data-theme=cool] .block-head:hover{background:linear-gradient(120deg,#46122a 0%,#66163a 60%,#33103d 100%);}
[data-theme=cool] .block-badge{background:rgba(255,255,255,.12);border-color:rgba(255,213,74,.34);}
[data-theme=cool] .block-sub{color:#d9b8e6;}
[data-theme=cool] .block-arrow{color:#f3e6ff;}
[data-theme=cool] .flow-row{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .flow-row label{color:#b9a6c9;}
[data-theme=cool] .flow-row input,[data-theme=cool] .flow-row select{background:#0d0713;border-color:#4a3054;color:#fdf3ff;}
[data-theme=cool] .flow-del{color:#ff5e6e;background:#33111c;border-color:#4a1e2c;}

/* ================= 后台主界面(admin.html 登录后)完整主题覆盖 ================= */
/* ---- 暗夜金辉 ---- */
[data-theme=dark] .side{background:linear-gradient(180deg,#1a120d,#241a14);}
[data-theme=dark] .side .brand small{color:#b8a68e;}
[data-theme=dark] .nav a{color:#c9b89c;}
[data-theme=dark] .nav a:hover{background:rgba(255,255,255,.07);color:#f3e9dc;}
[data-theme=dark] .nav a.on{background:rgba(192,57,43,.50);color:#fff;border-color:rgba(255,255,255,.12);}
[data-theme=dark] .side-foot{border-top-color:rgba(255,255,255,.08);}
[data-theme=dark] .side-foot .who{color:#e8dcc8;}
[data-theme=dark] .side-foot button{color:#c9b89c;border-color:rgba(255,255,255,.16);}
[data-theme=dark] .side-foot button:hover{background:rgba(255,255,255,.08);color:#fff;}
[data-theme=dark] .topbar{background:rgba(36,28,21,.92);border-bottom-color:#3a2c20;}
[data-theme=dark] .topbar h1{color:#f3e9dc;}
[data-theme=dark] .topbar .crumb{color:#8a7a64;}
[data-theme=dark] .topbar .right{color:#b8a68e;}
[data-theme=dark] .pill{background:#241c15;border-color:#3a2c20;color:#b8a68e;}
[data-theme=dark] .pill.warn{border-color:#5a4510;background:#2c2415;color:#e0b64f;}
[data-theme=dark] .content{color:#f3e9dc;}
[data-theme=dark] .card{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .card-h h2{color:#f3e9dc;}
[data-theme=dark] .card-h .desc{color:#8a7a64;}
[data-theme=dark] .kpi{background:#282018;border-color:#3a2c20;}
[data-theme=dark] .kpi .lab{color:#b8a68e;}
[data-theme=dark] .kpi .val{color:#e0b64f;}
[data-theme=dark] .kpi .val small{color:#8a7a64;}
[data-theme=dark] .kpi .sub{color:#8a7a64;}
[data-theme=dark] .bars .col{background:#3a2c20;}
[data-theme=dark] .bars .b.hi .col{background:#c0392b;}
[data-theme=dark] .bars .b .n{color:#c9b89c;}
[data-theme=dark] .bars .b .d{color:#8a7a64;}
[data-theme=dark] .prov .nm{color:#b8a68e;}
[data-theme=dark] .prov .track{background:#33281a;}
[data-theme=dark] .prov .v{color:#f3e9dc;}
[data-theme=dark] .prov .v small{color:#8a7a64;}
[data-theme=dark] .li{border-bottom-color:#33281a;}
[data-theme=dark] .li .av{background:#3a211b;color:#ff8a7a;}
[data-theme=dark] .li .nm{color:#f3e9dc;}
[data-theme=dark] .li .tm{color:#8a7a64;}
[data-theme=dark] .li .tag{background:#33281a;color:#c9b89c;}
[data-theme=dark] .sw{background:#3a2c20;}
[data-theme=dark] .sw::after{background:#e8dcc8;}
[data-theme=dark] .sw.on{background:#c0392b;}
[data-theme=dark] .btn.primary{background:#c0392b;}
[data-theme=dark] .btn.primary:hover{background:#8a1220;}
[data-theme=dark] .btn.ghost{color:#ff8a7a;}
[data-theme=dark] .tblgrid{background:#241c15;border-color:#3a2c20;}
[data-theme=dark] .empty{color:#8a7a64;}
/* ---- 霓虹熔金(cool) ---- */
[data-theme=cool] .side{background:linear-gradient(180deg,#2a0d33,#1a0a24);}
[data-theme=cool] .side .brand small{color:#a48fbf;}
[data-theme=cool] .nav a{color:#b9a6c9;}
[data-theme=cool] .nav a:hover{background:rgba(255,255,255,.07);color:#fff;}
[data-theme=cool] .nav a.on{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;border-color:rgba(255,255,255,.14);}
[data-theme=cool] .side-foot{border-top-color:rgba(255,255,255,.10);}
[data-theme=cool] .side-foot .who{color:#f3e6ff;}
[data-theme=cool] .side-foot button{color:#d9b8e6;border-color:rgba(255,213,74,.30);}
[data-theme=cool] .side-foot button:hover{background:rgba(255,255,255,.08);color:#fff;}
[data-theme=cool] .topbar{background:rgba(22,16,31,.94);border-bottom-color:#3a2440;}
[data-theme=cool] .topbar h1{color:#fdf3ff;}
[data-theme=cool] .topbar .crumb{color:#8a749f;}
[data-theme=cool] .topbar .right{color:#b9a6c9;}
[data-theme=cool] .pill{background:#16101f;border-color:#3a2440;color:#b9a6c9;}
[data-theme=cool] .pill.warn{border-color:#5a4510;background:#3a2a10;color:#ffd54a;}
[data-theme=cool] .content{color:#fdf3ff;}
[data-theme=cool] .card{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .card-h h2{color:#fdf3ff;}
[data-theme=cool] .card-h .desc{color:#8a749f;}
[data-theme=cool] .kpi{background:#1c1226;border-color:#3a2440;}
[data-theme=cool] .kpi .lab{color:#b9a6c9;}
[data-theme=cool] .kpi .val{color:#ff5e6e;text-shadow:0 0 16px rgba(255,59,78,.70);}
[data-theme=cool] .kpi .val small{color:#8a749f;}
[data-theme=cool] .kpi .sub{color:#8a749f;}
[data-theme=cool] .bars .col{background:#3a2440;}
[data-theme=cool] .bars .b.hi .col{background:#ff3b4e;box-shadow:0 0 12px rgba(255,59,78,.50);}
[data-theme=cool] .bars .b .n{color:#b9a6c9;}
[data-theme=cool] .bars .b .d{color:#8a749f;}
[data-theme=cool] .prov .nm{color:#b9a6c9;}
[data-theme=cool] .prov .track{background:#241433;}
[data-theme=cool] .prov .v{color:#fdf3ff;}
[data-theme=cool] .prov .v small{color:#8a749f;}
[data-theme=cool] .li{border-bottom-color:#241433;}
[data-theme=cool] .li .av{background:#3a1120;color:#ff5e6e;}
[data-theme=cool] .li .nm{color:#fdf3ff;}
[data-theme=cool] .li .tm{color:#8a749f;}
[data-theme=cool] .li .tag{background:#241433;color:#b9a6c9;}
[data-theme=cool] .sw{background:#3a2440;}
[data-theme=cool] .sw::after{background:#f3e6ff;}
[data-theme=cool] .sw.on{background:linear-gradient(135deg,#ffd54a,#e8a81c);}
[data-theme=cool] .btn.primary{background:linear-gradient(135deg,#ffd54a,#e8a81c);color:#2a1604;font-weight:700;box-shadow:0 0 18px rgba(255,213,74,.55);}
[data-theme=cool] .btn.primary:hover{filter:brightness(1.06);}
[data-theme=cool] .btn.ghost{color:#ff5e6e;}
[data-theme=cool] .tblgrid{background:#16101f;border-color:#3a2440;}
[data-theme=cool] .empty{color:#8a749f;}
