/* ============================================================
   动态工作台主题 · dynamic-ui.css  (v20261105)
   外挂式深蓝科技主题：加载在 style.css 之后整体覆盖，
   回退时删除本文件引用即可还原。
   ============================================================ */

/* ===== 1. 全局变量换成深蓝科技色 ===== */
:root {
  --primary: #16386B;
  --primary-light: #1F4E96;
  --primary-bg: rgba(56, 189, 248, 0.14);
  --accent: #38BDF8;
  --bg: #0A111F;
  --card-bg: #111B2E;
  --text: #E8EFF9;
  --text-sec: #8FA3BF;
  --border: rgba(120, 160, 220, 0.18);
  --success: #34D399;
  --warning: #F59E0B;
  --danger: #F87171;
  --info: #38BDF8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body { background: var(--bg); }

/* ===== 2. 登录页 ===== */
.login-screen {
  background: radial-gradient(ellipse at 50% 38%, #13233F 0%, #0A111F 68%);
}
.login-card {
  background: linear-gradient(160deg, #111B2E, #0C1526);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(125, 211, 252, 0.08);
}
.login-logo {
  background: linear-gradient(135deg, #1D3A66, #0F2547);
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.3);
  color: #E8F4FF;
  animation: uiBreath 3s ease-in-out infinite;
}
.login-card h1 { color: var(--text); }
.login-form input {
  background: rgba(10, 17, 31, 0.6);
  color: var(--text);
  border-color: var(--border);
}
.login-form input::placeholder { color: #55677F; }
.login-hint { background: rgba(56, 189, 248, 0.07); color: var(--text-sec); }
.login-divider { background: var(--border); }

/* ===== 3. 侧边栏 ===== */
.sidebar {
  background: linear-gradient(180deg, #0E1B30 0%, #0A1424 100%);
  border-right: 1px solid var(--border);
}
.sidebar-header { border-bottom: 1px solid rgba(125, 211, 252, 0.12); }
.logo {
  background: linear-gradient(135deg, #1D3A66, #0F2547);
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.nav-item { color: #A9BCD6; }
.nav-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #E8F4FF;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.55), rgba(56, 189, 248, 0.25));
  color: #E8F4FF;
  box-shadow: inset 2px 0 0 #38BDF8, 0 0 16px rgba(56, 189, 248, 0.18);
}
.sidebar-footer { border-top: 1px solid rgba(125, 211, 252, 0.12); }
.user-avatar {
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.user-role { color: #A9BCD6; }

/* ===== 4. 顶栏 ===== */
.topbar {
  background: rgba(14, 23, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
}
.date-display { color: var(--text-sec); }
.company-switcher {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(125, 211, 252, 0.35);
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.company-switcher:hover { border-color: #38BDF8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.25); }
.company-switcher option { background: #0E1B30; color: var(--text); }

/* ===== 5. 卡片 / 指标卡 ===== */
.card {
  background: linear-gradient(160deg, #111B2E 0%, #0D1626 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-title { color: var(--text); }

.metric-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #111B2E 0%, #0D1626 100%);
  border: 1px solid var(--border);
  border-left: none;
  box-shadow: var(--shadow);
}
.metric-card.info { border-left: 4px solid var(--info); }
.metric-card.warning { border-left: 4px solid var(--warning); }
.metric-card.danger { border-left: 4px solid var(--danger); }
.metric-card:not(.info):not(.warning):not(.danger) { border-left: 4px solid #3B82F6; }
.metric-label { color: var(--text-sec); }
.metric-value { color: var(--text); text-shadow: 0 0 18px rgba(125, 211, 252, 0.25); }
.metric-sub { color: var(--text-sec); }
.metric-card:hover {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(56, 189, 248, 0.15);
}

/* ---- 工作台动效：混排 ----
   3n+1 → 环星   3n+2 → 呼吸   3n → 粒子上浮 */
#dashMetrics .metric-card:nth-child(3n+1)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(56, 189, 248, 0.85) 78%, #BFE7FF 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: uiSpin 3s linear infinite;
  pointer-events: none;
}
#dashMetrics .metric-card:nth-child(3n+2) {
  animation: uiBreath 3.4s ease-in-out infinite;
}
#dashMetrics .metric-card:nth-child(3n)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 100%, rgba(125, 211, 252, 0.55) 1.2px, transparent 2.2px),
    radial-gradient(circle at 38% 100%, rgba(125, 211, 252, 0.35) 1px, transparent 2px),
    radial-gradient(circle at 65% 100%, rgba(125, 211, 252, 0.5) 1.4px, transparent 2.4px),
    radial-gradient(circle at 88% 100%, rgba(125, 211, 252, 0.3) 1px, transparent 2px);
  background-size: 100% 76px;
  background-repeat: repeat;
  animation: uiRise 7s linear infinite;
}

@keyframes uiSpin { to { transform: rotate(360deg); } }
@keyframes uiBreath {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transform: scale(1); }
  50% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 26px rgba(56, 189, 248, 0.35); transform: scale(1.02); }
}
@keyframes uiRise { to { background-position: 0 -76px; } }

/* ===== 6. 表格 ===== */
table { color: var(--text); }
th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
td { border-bottom: 1px solid var(--border); color: var(--text); }
tr:hover { background: rgba(56, 189, 248, 0.06); }

/* ===== 7. 徽章 / 状态 ===== */
.badge { border: 1px solid transparent; }
.badge-success { background: rgba(52, 211, 153, 0.14); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #FCD34D; border-color: rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(248, 113, 113, 0.14); color: #FCA5A5; border-color: rgba(248, 113, 113, 0.3); }
.badge-info { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; border-color: rgba(56, 189, 248, 0.3); }
.badge-secondary { background: rgba(148, 163, 184, 0.14); color: #CBD5E1; border-color: rgba(148, 163, 184, 0.3); }
.badge-primary { background: rgba(59, 130, 246, 0.16); color: #93C5FD; border-color: rgba(59, 130, 246, 0.35); }
.badge-A { background: rgba(52, 211, 153, 0.14); color: #6EE7B7; }
.badge-B { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; }
.badge-C { background: rgba(245, 158, 11, 0.14); color: #FCD34D; }
.badge-D { background: rgba(248, 113, 113, 0.14); color: #FCA5A5; }
.user-status.active { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }
.user-status.disabled { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; }
.wecom-status-on { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }
.wecom-status-off { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; }
.text-sec { color: var(--text-sec) !important; }

/* ===== 8. 表单 / 按钮 ===== */
.btn-primary {
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(56, 189, 248, 0.4); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: #7DD3FC;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-text { color: var(--text-sec); }
.form-group input, .form-group select, .form-group textarea,
.search-bar input, .search-bar select {
  background: rgba(10, 17, 31, 0.6);
  color: var(--text);
  border-color: var(--border);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.search-bar input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-group select option { background: #0E1B30; }
.filter-tag { background: rgba(56, 189, 248, 0.08); color: var(--text-sec); }
.filter-tag:hover { background: rgba(56, 189, 248, 0.16); }

/* ===== 9. 弹窗 / Toast ===== */
.modal {
  background: linear-gradient(160deg, #131E33, #0D1626);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
@keyframes modalIn { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-header h3 { color: var(--text); }
.modal-close { color: var(--text-sec); }
.toast {
  background: rgba(17, 27, 46, 0.92);
  color: #E8F4FF;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 14px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(8px);
}

/* ===== 10. 看板 / 待办 / 库存 / 时间线 ===== */
.kanban-col-body { background: rgba(10, 17, 31, 0.5); }
.kanban-card {
  background: linear-gradient(160deg, #131E33, #0D1626);
  border: 1px solid var(--border);
}
.kanban-card:hover { border-color: rgba(125, 211, 252, 0.45); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); }
.kanban-card-amount { color: #7DD3FC; }
.todo-item { background: linear-gradient(160deg, #131E33, #0D1626); border-color: var(--border); }
.todo-item.todo-done { background: rgba(14, 23, 40, 0.6); }
.todo-item.todo-overdue { border-color: var(--danger); background: rgba(248, 113, 113, 0.08); }
.inv-detail-row { background: rgba(10, 17, 31, 0.45); }
.inv-detail-item { background: #101A2C; border-color: var(--border); }
.inv-detail-item .wh-qty { color: var(--text); }
.inv-toggle { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; }
.inv-toggle:hover { background: rgba(56, 189, 248, 0.26); }
.inv-cell-model { color: var(--text-sec); }
.timeline::before { background: var(--border); }
.timeline-item::before { background: var(--accent); border-color: #0A111F; }
.progress-bar { background: rgba(255, 255, 255, 0.08); }
.wecom-config-card { background: linear-gradient(160deg, #131E33, #0D1626); border: 1px solid var(--border); }
.wecom-push-checkin { background: rgba(56, 189, 248, 0.14); color: #7DD3FC; }
.wecom-push-stock { background: rgba(245, 158, 11, 0.14); color: #FCD34D; }
.wecom-push-project { background: rgba(129, 140, 248, 0.14); color: #A5B4FC; }
.wecom-push-approval { background: rgba(52, 211, 153, 0.14); color: #6EE7B7; }
.alert-danger { background: rgba(248, 113, 113, 0.09); color: #FCA5A5; }
.alert-warning { background: rgba(245, 158, 11, 0.09); color: #FCD34D; }
.empty-state { color: var(--text-sec); }

/* ===== 11. 功能页轻量动效：进页渐入 + 行级错峰 ===== */
#content .card,
#content .metric-card,
#content .table-wrap,
#content .kanban,
#content .todo-board,
#content .search-bar,
#content .empty-state { animation: uiPageIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
#content .card:nth-child(2), #content .search-bar ~ .card:nth-child(2),
#content .table-wrap:nth-child(3) { animation-delay: 0.07s; }
#content .card:nth-child(3) { animation-delay: 0.14s; }
#content .card:nth-child(4) { animation-delay: 0.21s; }
@keyframes uiPageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

#content tbody tr { animation: uiRowIn 0.3s ease both; }
#content tbody tr:nth-child(1) { animation-delay: 0.05s; }
#content tbody tr:nth-child(2) { animation-delay: 0.09s; }
#content tbody tr:nth-child(3) { animation-delay: 0.13s; }
#content tbody tr:nth-child(4) { animation-delay: 0.17s; }
#content tbody tr:nth-child(5) { animation-delay: 0.21s; }
#content tbody tr:nth-child(6) { animation-delay: 0.25s; }
#content tbody tr:nth-child(7) { animation-delay: 0.29s; }
#content tbody tr:nth-child(8) { animation-delay: 0.33s; }
@keyframes uiRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ===== 12. 启动页 / 账套切换动画层 ===== */
#auxSplash {
  position: fixed; inset: 0; z-index: 5000;
  background: radial-gradient(ellipse at 50% 42%, #13233F 0%, #0A111F 65%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#auxSplash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#auxSplashCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.aux-sp-inner { position: relative; z-index: 2; text-align: center; }
.aux-sp-logo {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 20px;
  background: linear-gradient(135deg, #1D3A66, #0F2547);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.28);
  animation: auxLogoIn 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both, auxBreath 2.4s ease-in-out 1s infinite;
}
@keyframes auxLogoIn { from { transform: scale(0.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes auxBreath {
  0%, 100% { box-shadow: 0 0 26px rgba(56, 189, 248, 0.22); }
  50% { box-shadow: 0 0 60px rgba(56, 189, 248, 0.5); }
}
.aux-sp-title {
  font-size: 26px; font-weight: 700; letter-spacing: 5px;
  background: linear-gradient(90deg, #7DD3FC 0%, #E8F4FF 40%, #7DD3FC 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: auxTitleIn 0.9s 0.25s ease both, auxShimmer 3.2s 1.1s linear infinite;
}
@keyframes auxTitleIn { from { letter-spacing: 22px; opacity: 0; filter: blur(6px); } to { letter-spacing: 5px; opacity: 1; filter: blur(0); } }
@keyframes auxShimmer { from { background-position: 200% 0; } to { background-position: -40% 0; } }
.aux-sp-sub { margin-top: 12px; font-size: 12px; color: #8FA3BF; letter-spacing: 4px; animation: auxFadeUp 0.8s 0.6s ease both; }
.aux-sp-bar {
  margin: 30px auto 0; width: 210px; height: 3px; border-radius: 3px;
  background: rgba(125, 211, 252, 0.14); overflow: hidden;
  animation: auxFadeUp 0.8s 0.8s ease both;
}
.aux-sp-bar i { display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #2563EB, #7DD3FC);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.8);
  animation: auxLoad 2.3s 0.5s cubic-bezier(0.4, 0.1, 0.3, 1) forwards; }
@keyframes auxLoad { to { width: 100%; } }
.aux-sp-tip { font-size: 11px; color: #55677F; margin-top: 10px; animation: auxFadeUp 0.8s 1s ease both; }
@keyframes auxFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#auxSwitch {
  position: fixed; inset: 0; z-index: 4500;
  background: radial-gradient(ellipse at 50% 45%, rgba(19, 35, 63, 0.96) 0%, rgba(10, 17, 31, 0.97) 65%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
#auxSwitch.on { opacity: 1; visibility: visible; }
.aux-sw-ring {
  width: 66px; height: 66px; border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.2);
  border-top-color: #38BDF8;
  animation: uiSpin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}
.aux-sw-old { font-size: 15px; color: #8FA3BF; letter-spacing: 2px; animation: auxFadeUp 0.4s ease both; }
.aux-sw-arrow { font-size: 18px; color: #38BDF8; animation: auxArrow 0.9s ease-in-out infinite; }
@keyframes auxArrow { 0%, 100% { transform: translateY(-3px); opacity: 0.6; } 50% { transform: translateY(3px); opacity: 1; } }
.aux-sw-new {
  font-size: 24px; font-weight: 700; letter-spacing: 4px; color: #E8F4FF;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.5);
  animation: auxPopIn 0.5s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes auxPopIn { from { transform: scale(0.7); opacity: 0; letter-spacing: 14px; } to { transform: scale(1); opacity: 1; letter-spacing: 4px; } }
.aux-sw-sub { font-size: 12px; color: #55677F; letter-spacing: 3px; }

/* ===== 13. 移动端适配 & 减弱动效 ===== */
@media (max-width: 768px) {
  .aux-sp-title { font-size: 20px; letter-spacing: 3px; }
  .aux-sp-logo { width: 70px; height: 70px; font-size: 32px; }
  #content tbody tr:nth-child(n+9) { animation-delay: 0.36s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   14. 亮化修复 (v20261105b)：全局文字对比度 + 菜单按钮 + 看板 + 企微配置
   ============================================================ */

/* ---- 14.1 全局文字提亮：所有次要文字一律亮化 ---- */
:root { --text-sec: #B4C7E0; }
.metric-label, .metric-sub, .kanban-card-info, .todo-meta,
.timeline-date, .empty-state, .stat-row-label, .date-display,
.aux-sw-old, .aux-sp-sub, .aux-sp-tip, .aux-sw-sub { color: #B4C7E0; }
.kanban-card-info { color: #C9D9EE; }
.nav-item { color: #C3D3EA; }
.user-role { color: #C3D3EA; }
.badge-secondary { color: #D6E2F2; }
.login-hint { color: #AFC3DD; }
.card .text-sec, .text-sec { color: #B4C7E0; }
strong, b { color: #E8EFF9; }

/* ---- 14.2 菜单按钮：白色高亮 + 呼吸动效（手机端顶栏，一眼可见） ---- */
.menu-toggle {
  display: none;
  font-family: inherit;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  color: #FFFFFF !important;
  border: 1px solid rgba(186, 230, 253, 0.7);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
  animation: menuGlow 2.2s ease-in-out infinite;
  transition: transform 0.15s;
}
.menu-toggle::before { content: '☰'; font-size: 15px; }
.menu-toggle:active { transform: scale(0.95); }
@keyframes menuGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); filter: brightness(1); }
  50% { box-shadow: 0 0 26px rgba(56, 189, 248, 0.85); filter: brightness(1.18); }
}
@media (max-width: 768px) { .menu-toggle { display: flex; } }

/* ---- 14.3 工程跟进看板：列头按状态映射成深色可读配色 ---- */
.kanban-col-header[style*="#e2e3e5"] { background: rgba(148, 163, 184, 0.20) !important; color: #D7DEE9 !important; }
.kanban-col-header[style*="#d1ecf1"] { background: rgba(56, 189, 248, 0.20) !important; color: #7DD3FC !important; }
.kanban-col-header[style*="#d8f3dc"] { background: rgba(52, 211, 153, 0.20) !important; color: #6EE7B7 !important; }
.kanban-col-header[style*="#fff3cd"] { background: rgba(245, 158, 11, 0.20) !important; color: #FCD34D !important; }
.kanban-col-header[style*="#cce5ff"] { background: rgba(96, 165, 250, 0.20) !important; color: #93C5FD !important; }
.kanban-col-header[style*="#d4edda"] { background: rgba(52, 211, 153, 0.22) !important; color: #6EE7B7 !important; }
.kanban-col-header[style*="#f8d7da"] { background: rgba(248, 113, 113, 0.20) !important; color: #FCA5A5 !important; }
.kanban-col-header .badge {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.kanban-status-select {
  color: #E8EFF9 !important;
  border-color: rgba(125, 211, 252, 0.4) !important;
  background: #0E1B30 !important;
}
.kanban-status-select option { background: #0E1B30; color: #E8EFF9; }

/* ---- 14.4 企微配置页：内联浅色样式全部压成深色可读 ---- */
/* 公司卡片外壳（#f0fdf4 已配置 / #fafafa 未配置） */
.wecom-config-card [style*="#f0fdf4"] {
  background: rgba(52, 211, 153, 0.08) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #E8EFF9 !important;
}
.wecom-config-card [style*="#fafafa"] {
  background: rgba(148, 163, 184, 0.08) !important;
  border-color: var(--border) !important;
  color: #E8EFF9 !important;
}
/* 已配置 / 未配置 状态小标签 */
.wecom-config-card span[style*="#d4edda"] { background: rgba(52, 211, 153, 0.18) !important; color: #6EE7B7 !important; border: 1px solid rgba(52, 211, 153, 0.4); }
.wecom-config-card span[style*="#e8e8e8"] { background: rgba(148, 163, 184, 0.18) !important; color: #CBD5E1 !important; border: 1px solid rgba(148, 163, 184, 0.4); }
/* 说明警告框（黄底） */
.wecom-config-card [style*="#fff3cd"] {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #E8EFF9 !important;
}
.wecom-config-card [style*="color:#856404"] { color: #FCD34D !important; }
/* 快速推送推荐框（绿底） */
.wecom-config-card [style*="#e8f5e9"] {
  background: rgba(52, 211, 153, 0.10) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #E8EFF9 !important;
}
.wecom-config-card [style*="color:#07C160"] { color: #4ADE80 !important; }
/* 高级配置折叠说明文字 */
.wecom-config-card summary, [style*="color:#666"] { color: #B4C7E0 !important; }
.wecom-config-card summary:hover { color: #7DD3FC !important; }
/* 步骤说明框（灰底） */
.wecom-config-card [style*="#f8f9fa"] {
  background: rgba(148, 163, 184, 0.08) !important;
  color: #D6E2F2 !important;
}
/* 回调配置提示框（蓝底） */
.wecom-config-card [style*="#eef6ff"] {
  background: rgba(56, 189, 248, 0.10) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #D6E2F2 !important;
}
/* 代码片段小标签 */
code[style*="#e8e8e8"] {
  background: rgba(125, 211, 252, 0.16) !important;
  color: #7DD3FC !important;
  border: 1px solid rgba(125, 211, 252, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}
/* 配置行输入框：深色底 + 亮文字（压过内联 #ddd 边框） */
.wecom-config-row input, .wecom-config-card input[type="text"] {
  background: rgba(10, 17, 31, 0.75) !important;
  color: #E8EFF9 !important;
  border-color: rgba(125, 211, 252, 0.35) !important;
}
.wecom-config-row input::placeholder { color: #55677F; }
.wecom-config-row input:focus { border-color: #38BDF8 !important; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18); }
.wecom-config-row label { color: #C9D9EE !important; }
.wecom-config-card h4 { color: #E8F4FF !important; border-bottom-color: rgba(56, 189, 248, 0.6) !important; }
.wecom-config-card a { color: #7DD3FC !important; }

/* ---- 14.5 通用兜底：任何残留的内联浅底盒子自动转深 ---- */
.modal [style*="#fff"], [style*="background:#fff"] { background: rgba(17, 27, 46, 0.85) !important; color: #E8EFF9; }
.modal [style*="color:#333"], [style*="color:#555"], [style*="color:#666"],
[style*="color:#888"], [style*="color:#999"] { color: #B4C7E0 !important; }
.modal [style*="background:#f8f9fa"], [style*="background:#f0f4f8"], [style*="background:#fafafa"] {
  background: rgba(148, 163, 184, 0.08) !important;
}
select { background-color: #0E1B30; color: #E8EFF9; }
select option { background: #0E1B30; color: #E8EFF9; }
input[type="checkbox"] { accent-color: #38BDF8; }

/* ============================================================
   15. v20261105c 专项修复：通知规则配置 + 企微审批数据同步
   （注意：#fff 规则在前、#fff8e1 在后，避免前缀串选覆盖顺序问题）
   ============================================================ */

/* 15.1 通知规则行卡片：白底卡 → 深色卡 */
.wecom-config-card [style*="background:#fff"] {
  background: linear-gradient(160deg, #131E33, #0D1626) !important;
  border-color: var(--border) !important;
  color: #E8EFF9 !important;
}
.wecom-config-card [style*="border:1px solid #e0e0e0"] { border-color: var(--border) !important; }

/* 15.2 推送方式说明框（浅蓝底） */
.wecom-config-card [style*="#e3f2fd"] {
  background: rgba(56, 189, 248, 0.10) !important;
  color: #D6E2F2 !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.wecom-config-card [style*="color:#1565c0"] { color: #93C5FD !important; }

/* 15.3 盯办阈值框（浅黄底） */
.wecom-config-card [style*="#fff8e1"] {
  background: rgba(245, 158, 11, 0.10) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #D6E2F2 !important;
}
.wecom-config-card [style*="#ffe082"] { border-color: rgba(245, 158, 11, 0.4) !important; }
.wecom-config-card [style*="color:#8a6d00"] { color: #FCD34D !important; }

/* 15.4 审批同步：认证状态 / 同步完成结果框（浅绿底） */
.wecom-config-card [style*="#d4edda"] {
  background: rgba(52, 211, 153, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #D9F5E7 !important;
}
.wecom-config-card [style*="background:#e8f5e9"] {
  background: rgba(52, 211, 153, 0.10) !important;
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #D9F5E7 !important;
}

/* 15.5 审批同步错误框（粉底暗红字） */
.wecom-config-card [style*="background:#fee"] {
  background: rgba(248, 113, 113, 0.12) !important;
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #FCA5A5 !important;
}
[style*="color:#c00"] { color: #FCA5A5 !important; }
.empty-state[style*="color:#c00"] { color: #FCA5A5 !important; }

/* 15.6 日期 / 数字 / 文本输入框：深色底 + 深色日历面板 */
.wecom-config-card input[type="date"],
.wecom-config-card input[type="number"],
.wecom-config-card input[type="text"] {
  background: rgba(10, 17, 31, 0.75) !important;
  color: #E8EFF9 !important;
  border: 1px solid rgba(125, 211, 252, 0.35) !important;
  color-scheme: dark;
}
.wecom-config-card input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.wecom-config-card input:focus { border-color: #38BDF8 !important; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18); }

/* 15.7 通知规则区：时间格文字与标签 */
.wecom-config-card label { color: #C9D9EE; }
.wecom-config-card label strong { color: #E8F4FF; }
