/* ===== 财神跟投 · 暗色主题 v1（照抄即用） ===== */
:root{--bg:#0b1220;--panel:#131c2e;--panel2:#0f1729;--line:#26334a;--tx:#e6edf7;--tx2:#a9bcd4;--dim:#7d8ea8;--acc:#3ddc97;--up:#ff6b6b;--warn:#f5b301;}
html[data-theme=dark]{color-scheme:dark;background:var(--bg)}
html[data-theme=dark] body{background:var(--bg);color:var(--tx)}
html[data-theme=dark] .card,html[data-theme=dark] .box,html[data-theme=dark] .panel,html[data-theme=dark] .el-card{background:var(--panel);border-color:var(--line);color:var(--tx)}
html[data-theme=dark] .el-table,html[data-theme=dark] .el-table tr,html[data-theme=dark] .el-table__body td{background:var(--panel2);color:var(--tx);border-color:var(--line)}
html[data-theme=dark] .el-table th.el-table__cell{background:#182339;color:var(--tx2);border-color:var(--line)}
html[data-theme=dark] .el-table--striped .el-table__body tr.el-table__row--striped td{background:#141d31}
html[data-theme=dark] .el-table__body tr:hover>td{background:#1b2740!important}
html[data-theme=dark] .el-dialog,html[data-theme=dark] .el-drawer{background:var(--panel);color:var(--tx)}
html[data-theme=dark] .el-input__wrapper,html[data-theme=dark] .el-textarea__inner,html[data-theme=dark] .el-select__wrapper{background:var(--panel2);box-shadow:0 0 0 1px var(--line) inset;color:var(--tx)}
html[data-theme=dark] .el-input__inner{color:var(--tx)}
html[data-theme=dark] .el-button:not(.is-text){background:#1b2740;border-color:var(--line);color:var(--tx)}
html[data-theme=dark] .el-button--primary{background:#2f6fd0;border-color:#2f6fd0}
html[data-theme=dark] .el-pagination,html[data-theme=dark] .el-pagination button{background:transparent;color:var(--tx2)}
html[data-theme=dark] .el-dropdown-menu,html[data-theme=dark] .el-select-dropdown{background:var(--panel);border-color:var(--line)}
html[data-theme=dark] .el-dropdown-menu__item,html[data-theme=dark] .el-select-dropdown__item{color:var(--tx)}
html[data-theme=dark] .card-title,html[data-theme=dark] .live-label,html[data-theme=dark] label{color:var(--tx2)}
html[data-theme=dark] *{scrollbar-color:#334155 var(--bg)}
html[data-theme=dark] ::-webkit-scrollbar{width:10px;height:10px}
html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#334155;border-radius:6px}
html[data-theme=dark] ::-webkit-scrollbar-track{background:var(--bg)}
html[data-theme=dark] .cell-green{color:var(--acc)}
html[data-theme=dark] .cell-red{color:var(--up)}

/* ===== 暗色对比补齐 v1.1（黑底必须白字）===== */
html[data-theme=dark] .el-table__cell,
html[data-theme=dark] .el-table__cell *,
html[data-theme=dark] .el-form-item__label,
html[data-theme=dark] .el-descriptions__label,
html[data-theme=dark] .el-descriptions__content,
html[data-theme=dark] .el-dialog__title,
html[data-theme=dark] .el-radio__label,
html[data-theme=dark] .el-checkbox__label{color:var(--tx) !important}
/* 页内大量内联深色字（style="color:#0f172a" 之类）逐个压掉 */
html[data-theme=dark] [style*="color:#0f172a"],html[data-theme=dark] [style*="color:#0F172A"],
html[data-theme=dark] [style*="color:#1e293b"],html[data-theme=dark] [style*="color:#334155"],
html[data-theme=dark] [style*="color:#475569"],html[data-theme=dark] [style*="color:#64748b"],
html[data-theme=dark] [style*="color:#2836f4"],html[data-theme=dark] [style*="color:#2563EB"],
html[data-theme=dark] [style*="color:#000"]{color:var(--tx) !important}
/* 语义色在暗底提亮 */
html[data-theme=dark] [style*="color:#10b981"]{color:#3ddc97 !important}
html[data-theme=dark] .cell-red,html[data-theme=dark] [style*="color:#e23b3b"],html[data-theme=dark] [style*="color:#ef4444"]{color:#ff7b7b !important}
html[data-theme=dark] [style*="color:#b45309"],html[data-theme=dark] [style*="color:#f59e0b"]{color:#f5b301 !important}
html[data-theme=dark] [style*="color:#94a3b8"],html[data-theme=dark] [style*="color:#cbd5e1"]{color:var(--dim) !important}
html[data-theme=dark] a,html[data-theme=dark] .el-link{color:#7fb2ff !important}
html[data-theme=dark] .el-tag{background:#1b2740;border-color:var(--line);color:var(--tx) !important}
html[data-theme=dark] .el-button.is-disabled,html[data-theme=dark] .is-disabled{color:#7d8ea8 !important;opacity:.75}

/* ===== 内联色全量映射补齐（我方核 pages.c690k.js 逐值比对后补，覆盖黑龙 v1.1 未含值）===== */
/* 深字压深底：一律转正文白 */
html[data-theme=dark] [style*="color:#1e3a8a"],
html[data-theme=dark] [style*="color:#1E3A8A"],
html[data-theme=dark] [style*="color:#1d4ed8"],
html[data-theme=dark] [style*="color:#2563eb"],
html[data-theme=dark] [style*="color:#1e40af"],
html[data-theme=dark] [style*="color:#0f766e"],
html[data-theme=dark] [style*="color:#334155"],
html[data-theme=dark] [style*="color:#3b82f6"]{color:var(--tx) !important}
/* 亮底浅字（在暗底更浅，仍偏灰）：转次要文字 */
html[data-theme=dark] [style*="color:#94a3b8"],
html[data-theme=dark] [style*="color:#cbd5e1"],
html[data-theme=dark] [style*="color:#e2e8f0"],
html[data-theme=dark] [style*="color:#f1f5f9"]{color:var(--dim) !important}
/* 语义色：按语义提亮，保辨识 */
html[data-theme=dark] [style*="color:#10b981"],
html[data-theme=dark] [style*="color:#059669"],
html[data-theme=dark] [style*="color:#0ea5e9"]{color:#3ddc97 !important}
html[data-theme=dark] [style*="color:#ef4444"],
html[data-theme=dark] [style*="color:#dc2626"],
html[data-theme=dark] [style*="color:#e23b3b"],
html[data-theme=dark] [style*="color:#b91c1c"],
html[data-theme=dark] [style*="color:#fca5a5"],
html[data-theme=dark] [style*="color:#f87171"]{color:#ff7b7b !important}
html[data-theme=dark] [style*="color:#f59e0b"],
html[data-theme=dark] [style*="color:#d97706"],
html[data-theme=dark] [style*="color:#b45309"],
html[data-theme=dark] [style*="color:#fbbf24"]{color:#f5b301 !important}
html[data-theme=dark] [style*="color:#fff"],
html[data-theme=dark] [style*="color:#ffffff"],
html[data-theme=dark] [style*="color:#FFF"]{color:#ffffff !important}

/* ===== 切换按钮暗色态（白底白字修正）===== */
html[data-theme=dark] #dk{background:#1b2740 !important;border-color:var(--line) !important;color:var(--tx) !important;}

/* ===== v1.2 白块清扫（生产真页面实测暴露）=====
   实测证据：订单信息页 21 个 th 白底 rgb(245,247,250) + 5 个 el-radio-button 白底 + 监控汇总「空转中」灰底灰字。
   1) Element Plus 表格表头（含多级表头 el-table__cell 的 th）
   2) el-radio-button / el-radio-group
   3) 内联浅色半透明底（rgba(148,163,184,.18) 等状态标签）
*/
html[data-theme=dark] .el-table th.el-table__cell,
html[data-theme=dark] .el-table thead th,
html[data-theme=dark] .el-table__header-wrapper th,
html[data-theme=dark] .el-table__header th,
html[data-theme=dark] .el-table__header .el-table__cell,
html[data-theme=dark] .el-table .is-leaf,
html[data-theme=dark] .el-table__header th.is-center{background:#182339 !important;color:var(--tx2) !important;border-color:var(--line) !important;}
html[data-theme=dark] .el-table__header-wrapper,
html[data-theme=dark] .el-table__header{background:#182339 !important;}
html[data-theme=dark] .el-table--border .el-table__cell{border-color:var(--line) !important;}
html[data-theme=dark] .el-table__fixed-right::before,
html[data-theme=dark] .el-table__fixed::before,
html[data-theme=dark] .el-table--border::after,
html[data-theme=dark] .el-table--group::after{background-color:var(--line) !important;}
/* 单选按钮组 */
html[data-theme=dark] .el-radio-button__inner{background:#1b2740 !important;border-color:var(--line) !important;color:var(--tx2) !important;box-shadow:none !important;}
html[data-theme=dark] .el-radio-button__original-radio:checked+.el-radio-button__inner{background:#2f6fd0 !important;border-color:#2f6fd0 !important;color:#fff !important;box-shadow:none !important;}
html[data-theme=dark] .el-radio-group{background:transparent !important;}
html[data-theme=dark] .el-radio-button:first-child .el-radio-button__inner,
html[data-theme=dark] .el-radio-button:last-child .el-radio-button__inner{border-color:var(--line) !important;}
/* 内联浅色半透明状态底（空转中/自动拉取中 等）→ 暗底 */
/* 内联浅色半透明底（Vue :style 生成的是 "rgba(148, 163, 184, 0.18)" 带空格 —— 实测取值）
   → 用前缀匹配，只到颜色三分量，不写 alpha，避免空格/小数写法差异漏匹配 */
html[data-theme=dark] [style*="rgba(148, 163, 184"],
html[data-theme=dark] [style*="rgba(148,163,184"]{background:rgba(148,163,184,.22) !important;color:var(--tx2) !important;}
html[data-theme=dark] [style*="rgba(16, 185, 129"],
html[data-theme=dark] [style*="rgba(16,185,129"]{background:rgba(61,220,151,.18) !important;color:#3ddc97 !important;}
html[data-theme=dark] [style*="rgba(255, 255, 255"],
html[data-theme=dark] [style*="rgba(255,255,255"]{background:rgba(255,255,255,.06) !important;color:var(--tx) !important;}
html[data-theme=dark] [style*="rgba(239, 68, 68"],html[data-theme=dark] [style*="rgba(239,68,68"],
html[data-theme=dark] [style*="rgba(220, 38, 38"]{background:rgba(255,123,123,.18) !important;color:#ff7b7b !important;}
html[data-theme=dark] [style*="rgba(245, 158, 11"],html[data-theme=dark] [style*="rgba(245,158,11"],
html[data-theme=dark] [style*="rgba(180, 83, 9"]{background:rgba(245,179,1,.18) !important;color:#f5b301 !important;}
html[data-theme=dark] [style*="rgba(37, 99, 235"],html[data-theme=dark] [style*="rgba(37,99,235"],
html[data-theme=dark] [style*="rgba(29, 78, 216"]{background:rgba(47,111,208,.22) !important;color:#a9c8ff !important;}
/* 分页器（实测 "50 条/页" 为 rgb(96,98,102) 深灰） */
html[data-theme=dark] .el-pagination,
html[data-theme=dark] .el-pagination *{color:var(--tx2) !important;}
html[data-theme=dark] .el-pagination .el-pagination__total,
html[data-theme=dark] .el-pagination .el-pagination__jump,
html[data-theme=dark] .el-pagination .el-select__placeholder,
html[data-theme=dark] .el-pagination .el-select__selected-item,
html[data-theme=dark] .el-pagination .el-select__wrapper span,
html[data-theme=dark] .el-pagination .el-select__caret{color:var(--tx2) !important;}
html[data-theme=dark] .el-pagination .el-select__wrapper{background:#1b2740 !important;box-shadow:0 0 0 1px var(--line) inset !important;}
html[data-theme=dark] .el-pagination .el-pager li.is-active,
html[data-theme=dark] .el-pagination .el-pager li.is-active *{color:#fff !important;}
html[data-theme=dark] .el-pager li.is-active{background:#2f6fd0 !important;border-radius:4px;}
html[data-theme=dark] .el-pagination button:disabled,
html[data-theme=dark] .el-pagination .btn-prev,html[data-theme=dark] .el-pagination .btn-next{background:transparent !important;color:var(--tx2) !important;}
/* 其它浅底兜底：标签/卡片/工具条 */
html[data-theme=dark] .el-card__header{background:#182339 !important;border-color:var(--line) !important;color:var(--tx) !important;}
html[data-theme=dark] .el-table__footer-wrapper td{background:#182339 !important;border-color:var(--line) !important;color:var(--tx2) !important;}
html[data-theme=dark] .el-select-dropdown__wrap,html[data-theme=dark] .el-dropdown-menu__item:hover,
html[data-theme=dark] .el-select-dropdown__item.hover,html[data-theme=dark] .el-select-dropdown__item:hover{background:#1b2740 !important;}
html[data-theme=dark] .el-input__wrapper.is-focus,html[data-theme=dark] .el-select__wrapper.is-focused{box-shadow:0 0 0 1px #2f6fd0 inset !important;}
html[data-theme=dark] .el-date-editor,html[data-theme=dark] .el-range-editor.el-input__wrapper{background:var(--panel2) !important;}
html[data-theme=dark] .el-range-input{background:transparent !important;color:var(--tx) !important;}
html[data-theme=dark] .el-range-separator{color:var(--tx2) !important;}
html[data-theme=dark] .el-checkbox__inner,html[data-theme=dark] .el-radio__inner{background:#1b2740 !important;border-color:var(--line) !important;}

/* ===== v1.3 深灰字清扫（alpha 合成测量后暴露的真问题）=====
   实测：rgb(96,98,102) 出现在 el-select 下拉 placeholder 与日期选择器星期表头；
        rgb(100,116,139) 出现在汇总页分隔符/说明文字。
*/
html[data-theme=dark] .el-select__placeholder,
html[data-theme=dark] .el-select__placeholder.is-transparent,
html[data-theme=dark] .el-select__selected-item,
html[data-theme=dark] .el-select__caret,
html[data-theme=dark] .el-input__inner::placeholder,
html[data-theme=dark] .el-textarea__inner::placeholder{color:var(--tx2) !important;}
html[data-theme=dark] .el-select__wrapper .el-select__placeholder span{color:var(--tx2) !important;}
/* 日期/时间选择器（星期表头 Sun..Sat、分隔符、面板文字） */
html[data-theme=dark] .el-date-table th,
html[data-theme=dark] .el-date-table td,
html[data-theme=dark] .el-date-table td span,
html[data-theme=dark] .el-picker-panel__body,
html[data-theme=dark] .el-picker-panel__sidebar,
html[data-theme=dark] .el-time-panel,
html[data-theme=dark] .el-time-panel__content,
html[data-theme=dark] .el-time-spinner__item{color:var(--tx2) !important;background:transparent !important;}
html[data-theme=dark] .el-date-table th{color:var(--dim) !important;border-bottom-color:var(--line) !important;}
html[data-theme=dark] .el-date-table td.next-month span,html[data-theme=dark] .el-date-table td.prev-month span{color:#8296b0 !important;}
html[data-theme=dark] .el-date-table td.today span{color:#3ddc97 !important;}
html[data-theme=dark] .el-date-table td.disabled span{color:#8296b0 !important;}
html[data-theme=dark] .el-date-table td.current:not(.disabled) span{background:#2f6fd0 !important;color:#fff !important;}
html[data-theme=dark] .el-picker-panel__icon-btn,html[data-theme=dark] .el-date-picker__header-label{color:var(--tx) !important;}
html[data-theme=dark] .el-date-picker__header{margin:4px 0;}
html[data-theme=dark] .el-picker-panel__footer{background:var(--panel) !important;border-top-color:var(--line) !important;}
html[data-theme=dark] .el-picker-panel__footer .el-button{background:#1b2740 !important;border-color:var(--line) !important;color:var(--tx) !important;}
/* 汇总页：单位/说明/分隔符（rgb(100,116,139)）*/
html[data-theme=dark] .sum-unit,html[data-theme=dark] .sum-sep,html[data-theme=dark] .sum-note,
html[data-theme=dark] .stat-unit,html[data-theme=dark] .stat-note,html[data-theme=dark] .unit,
html[data-theme=dark] .muted,html[data-theme=dark] .desc,html[data-theme=dark] .tip,
html[data-theme=dark] .sub,html[data-theme=dark] .hint,html[data-theme=dark] .meta,
html[data-theme=dark] .ws-note,html[data-theme=dark] .wl-note{color:var(--tx2) !important;}
html[data-theme=dark] [style*="color:#64748b"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="color: #64748b"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="color:#94a3b8"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="color: #94a3b8"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="color:#cbd5e1"]{color:var(--tx2) !important;}
/* 按钮上的白字在蓝底上（明细/操作）：保证 ≥4.5 */
html[data-theme=dark] .el-button--primary{background:#2563eb !important;border-color:#2563eb !important;}
html[data-theme=dark] .el-button--primary span,html[data-theme=dark] .el-button--primary{color:#fff !important;}
html[data-theme=dark] .el-button--primary:hover{background:#3b82f6 !important;border-color:#3b82f6 !important;}
/* 通用兜底：所有 EP 表格/表单里的次要文字 */
html[data-theme=dark] .el-table .cell span,
html[data-theme=dark] .el-table .cell div{color:inherit;}
html[data-theme=dark] .el-descriptions__body,html[data-theme=dark] .el-descriptions__cell{background:transparent !important;}
html[data-theme=dark] .el-descriptions__table{border-color:var(--line) !important;}

/* ===== v1.4 收口：剩余两处（alpha 合成后仍 <4.5）=====
   1) 汇总页分隔符/说明 rgb(100,116,139)：命中汇总卡内任意文本节点
   2) 日期面板禁用日 rgb(90,107,133)：已提亮到 #8296b0
*/
html[data-theme=dark] .sum-card,html[data-theme=dark] .sum-card *,
html[data-theme=dark] .live-sum,html[data-theme=dark] .live-sum *,
html[data-theme=dark] .stat-card,html[data-theme=dark] .stat-card *,
html[data-theme=dark] .summary-card,html[data-theme=dark] .summary-card *{color:var(--tx2) !important;}
html[data-theme=dark] .sum-card b,html[data-theme=dark] .sum-card strong,
html[data-theme=dark] .stat-card b,html[data-theme=dark] .stat-card strong,
html[data-theme=dark] .live-sum b,html[data-theme=dark] .live-sum strong{color:var(--tx) !important;}
/* 通用兜底：任何在 #0b1220/#131c2e 上的深灰文字 → 提亮 */
html[data-theme=dark] [style*="color:#64748b"],html[data-theme=dark] [style*="color: #64748b"],
html[data-theme=dark] [style*="color:#5a6b85"],html[data-theme=dark] [style*="color:#475569"],
html[data-theme=dark] [style*="color:rgb(100, 116, 139)"],html[data-theme=dark] [style*="color:rgb(100,116,139)"]{color:#a9bcd4 !important;}
html[data-theme=dark] [style*="color:rgb(96, 98, 102)"],html[data-theme=dark] [style*="color:rgb(96,98,102)"],
html[data-theme=dark] [style*="color:rgb(90, 107, 133)"],html[data-theme=dark] [style*="color:rgb(90,107,133)"]{color:#a9bcd4 !important;}

/* ===== v1.5 收口（Vue :style 生成带空格的内联色，实测原文 "color: rgb(100, 116, 139)"）===== */
html[data-theme=dark] [style*="color: rgb(100, 116, 139)"],
html[data-theme=dark] [style*="color:rgb(100, 116, 139)"]{color:#a9bcd4 !important;}
html[data-theme=dark] [style*="color: rgb(96, 98, 102)"],
html[data-theme=dark] [style*="color: rgb(90, 107, 133)"],
html[data-theme=dark] [style*="color: rgb(148, 163, 184)"],
html[data-theme=dark] [style*="color: rgb(71, 85, 105)"],
html[data-theme=dark] [style*="color: rgb(51, 65, 85)"],
html[data-theme=dark] [style*="color: rgb(30, 41, 59)"],
html[data-theme=dark] [style*="color: rgb(15, 23, 42)"]{color:#a9bcd4 !important;}
html[data-theme=dark] [style*="color: rgb(203, 213, 225)"],
html[data-theme=dark] [style*="color: rgb(226, 232, 240)"]{color:#dbe6f5 !important;}
/* 兜底：任何内联 rgb 深色文字（r,g,b 三分量均 <160）一律提亮 */
html[data-theme=dark] [style*="font-size: 10px"],
html[data-theme=dark] [style*="font-size:10px"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="font-size: 11px"],
html[data-theme=dark] [style*="font-size:11px"]{color:var(--tx2) !important;}
html[data-theme=dark] [style*="font-size: 12px"],
html[data-theme=dark] [style*="font-size:12px"]{color:var(--tx2) !important;}

/* ===== #690-B27 输赢配色 · 暗色态（输=亮红 赢=亮绿 0=中性）=====
   与亮色 .win/.lose 同语义，仅换亮色阶保证暗底可辨（对比度：绿 #3ddc97 / 红 #ff7b7b 在 #0b1220 上均 ≥8:1）
*/
html[data-theme=dark] .win{color:#3ddc97 !important;}
html[data-theme=dark] .lose{color:#ff7b7b !important;}
html[data-theme=dark] .win-zero{color:var(--tx) !important;}
/* 兜底：内联写死的旧红绿（历史渲染）*/
html[data-theme=dark] [style*="color:#16a34a"]{color:#3ddc97 !important;}
html[data-theme=dark] [style*="color:#22c55e"]{color:#3ddc97 !important;}
html[data-theme=dark] [style*="color:#dc2626"]{color:#ff7b7b !important;}
html[data-theme=dark] [style*="color:#e23b3b"]{color:#ff7b7b !important;}
html[data-theme=dark] [style*="color:#f97316"]{color:#3ddc97 !important;}

/* ===== #690-B27fix 语义色类（替代内联色；放在 .el-table__cell 基色兜底之后，保证最终生效）
   背景：浏览器把内联 hex 规范化成 rgb() ⇒ [style*="color:#..."] 属性选择器匹配不到；
        且 .money 曾带 !important 压掉语义色。改为一律用类。
   ========================================================================================== */
.c-up  {color:#16a34a;font-weight:600;}                      /* 亮色·赢/盈 */
.c-down{color:#dc2626;font-weight:600;}                      /* 亮色·输/亏 */
.c-flat{color:inherit;font-weight:600;}                      /* 中性（0/空） */
.c-acc {color:#1d4ed8;font-weight:600;}                      /* 强调 */
.c-sub {font-size:10px;}
html[data-theme=dark] .c-up  {color:#3ddc97 !important;}     /* 暗色·亮绿 */
html[data-theme=dark] .c-down{color:#ff7b7b !important;}     /* 暗色·亮红 */
html[data-theme=dark] .c-flat{color:var(--tx) !important;}
html[data-theme=dark] .c-acc {color:#7fb2ff !important;}
/* 旧内联色兜底（rgb() 规范化形态，实测原文 "color: rgb(15, 23, 42)"） */
html[data-theme=dark] [style*="color: rgb(15, 23, 42)"],
html[data-theme=dark] [style*="color: rgb(30, 41, 59)"],
html[data-theme=dark] [style*="color: rgb(51, 65, 85)"],
html[data-theme=dark] [style*="color: rgb(71, 85, 105)"],
html[data-theme=dark] [style*="color: rgb(100, 116, 139)"],
html[data-theme=dark] [style*="color: rgb(96, 98, 102)"]{color:var(--tx) !important;}
html[data-theme=dark] [style*="color: rgb(16, 185, 129)"]{color:#3ddc97 !important;}
html[data-theme=dark] [style*="color: rgb(22, 163, 74)"]{color:#3ddc97 !important;}
html[data-theme=dark] [style*="color: rgb(220, 38, 38)"],
html[data-theme=dark] [style*="color: rgb(226, 59, 59)"]{color:#ff7b7b !important;}
