/**
 * 暗黑模式（试验）— 依赖 html[data-scheme="dark"]，与 data-theme 三色并存
 */
html[data-scheme="dark"] {
  color-scheme: dark;
}

/* ========== 顶栏外观切换：复刻 VitePress VPSwitch + VPSwitchAppearance（vars.css / icons.css）========== */
/* 设计令牌（与 vuejs/vitepress 默认主题一致；蓝顶栏上微调边框/轨道对比度） */
nav.navbar .navbar-dark-mode-toggle.VPSwitch {
  --vp-c-border: #c2c2c4;
  --vp-input-border-color: var(--vp-c-border);
  --vp-input-switch-bg-color: rgba(142, 150, 170, 0.14);
  --vp-c-brand-1: #3451b2;
  --vp-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --vp-c-text-2: #67676c;
  --vp-c-text-1: #3c3c43;
  --vp-c-neutral-inverse: #ffffff;
}
nav.navbar-dark:not(.admin-topbar) .navbar-dark-mode-toggle.VPSwitch {
  --vp-c-border: rgba(255, 255, 255, 0.4);
  --vp-input-switch-bg-color: rgba(255, 255, 255, 0.16);
}
html[data-scheme="dark"] nav.navbar .navbar-dark-mode-toggle.VPSwitch {
  --vp-c-border: #3c3f44;
  --vp-input-switch-bg-color: rgba(101, 117, 133, 0.16);
  --vp-c-text-2: #98989f;
  --vp-c-text-1: #dfdfd6;
  --vp-c-neutral-inverse: #000000;
}
/* 本站顶栏仍为蓝底时，深色站点模式下略提亮轨道边缘（VitePress 文档顶栏多为深/浅色块） */
html[data-scheme="dark"] nav.navbar-dark:not(.admin-topbar) .navbar-dark-mode-toggle.VPSwitch {
  --vp-c-border: rgba(255, 255, 255, 0.32);
  --vp-input-switch-bg-color: rgba(0, 0, 0, 0.2);
}

/* VPSwitch.vue */
.navbar-dark-mode-toggle.VPSwitch {
  flex-shrink: 0;
  position: relative;
  border-radius: 11px;
  display: block;
  width: 40px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--vp-input-border-color);
  background-color: var(--vp-input-switch-bg-color);
  transition: border-color 0.25s !important;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
}
.navbar-dark-mode-toggle.VPSwitch:hover {
  border-color: var(--vp-c-brand-1);
}
.navbar-dark-mode-toggle.VPSwitch:focus {
  outline: none;
}
.navbar-dark-mode-toggle.VPSwitch:focus-visible {
  outline: 2px solid var(--vp-c-brand-1);
  outline-offset: 2px;
}

.navbar-dark-mode-toggle.VPSwitch .check {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--vp-c-neutral-inverse);
  box-shadow: var(--vp-shadow-1);
  transition: transform 0.25s !important;
}

.navbar-dark-mode-toggle.VPSwitch .icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
}

/* icons.css：vpi-sun / vpi-moon（Lucide mask，与 VitePress 同源） */
.navbar-dark-mode-toggle.VPSwitch [class^="vpi-"]:not(.bg) {
  -webkit-mask: var(--icon) no-repeat;
  mask: var(--icon) no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  background-color: currentColor;
  color: inherit;
}
.navbar-dark-mode-toggle.VPSwitch .vpi-sun {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/g%3E%3C/svg%3E");
}
.navbar-dark-mode-toggle.VPSwitch .vpi-moon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 3a6 6 0 0 0 9 9a9 9 0 1 1-9-9'/%3E%3C/svg%3E");
}

.navbar-dark-mode-toggle.VPSwitch .icon [class^="vpi-"] {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  color: var(--vp-c-text-2);
}
html[data-scheme="dark"] .navbar-dark-mode-toggle.VPSwitch .icon [class^="vpi-"] {
  color: var(--vp-c-text-1);
  transition: opacity 0.25s !important;
}

/* VPSwitchAppearance.vue：日/月在滑块内叠化 + 深色时平移 18px */
.navbar-dark-mode-toggle.VPSwitchAppearance .sun {
  opacity: 1;
}
.navbar-dark-mode-toggle.VPSwitchAppearance .moon {
  opacity: 0;
}
html[data-scheme="dark"] .navbar-dark-mode-toggle.VPSwitchAppearance .sun {
  opacity: 0;
}
html[data-scheme="dark"] .navbar-dark-mode-toggle.VPSwitchAppearance .moon {
  opacity: 1;
}
html[data-scheme="dark"] .navbar-dark-mode-toggle.VPSwitchAppearance .check {
  transform: translateX(18px);
}

/* 顶栏内对齐：点击热区略高于轨道（与文档顶栏一致的可点区域） */
nav.navbar-expand-lg:not(.admin-topbar) .navbar-zone-utilities .navbar-dark-mode-toggle.VPSwitch {
  align-self: center;
}

/* 页面缩放按钮：与深浅色 VPSwitch 同高 22px、同圆角 11px、同轨道感描边与底色 */
nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn {
  --vp-pagezoom-border: rgba(255, 255, 255, 0.4);
  --vp-pagezoom-bg: rgba(255, 255, 255, 0.16);
  --vp-pagezoom-brand: #3451b2;
  --vp-pagezoom-text: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
  flex-shrink: 0;
  height: 22px;
  min-width: 40px;
  padding: 0 7px;
  margin: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--vp-pagezoom-border);
  background-color: var(--vp-pagezoom-bg);
  color: var(--vp-pagezoom-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.2s ease, box-shadow 0.2s ease;
}
nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn:hover {
  border-color: var(--vp-pagezoom-brand);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.24);
}
nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn:focus {
  outline: none;
}
nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn:focus-visible {
  outline: 2px solid var(--vp-pagezoom-brand);
  outline-offset: 2px;
}
html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn {
  --vp-pagezoom-border: rgba(255, 255, 255, 0.32);
  --vp-pagezoom-bg: rgba(0, 0, 0, 0.2);
  --vp-pagezoom-text: rgba(255, 255, 255, 0.94);
  --vp-pagezoom-brand: #60a5fa;
}
html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) .navbar-page-zoom-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* 主题 / 版本胶囊：与缩放按钮同套深色描边与悬停（大屏） */
@media (min-width: 992px) {
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle {
    border-color: rgba(255, 255, 255, 0.32);
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.94) !important;
  }
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:hover #navbar-theme-toggle,
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-wrap.dropdown:focus-within #navbar-theme-toggle,
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle:hover,
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) #navbar-theme-toggle:focus {
    border-color: #60a5fa;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
  }
  html[data-scheme="dark"] nav.navbar-expand-lg:not(.admin-topbar) .navbar-ui-slot .navbar-version-indicator {
    border-color: rgba(255, 255, 255, 0.32);
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.88) !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse .navbar-zone-utilities .navbar-dark-mode-toggle.VPSwitch {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== 页面基底 ========== */
html[data-scheme="dark"],
html[data-scheme="dark"] body {
  background: #12151c;
  color: #e2e8f0;
}

html[data-scheme="dark"] .navbar:not(.admin-topbar) {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ========== Bootstrap 通用 ========== */
html[data-scheme="dark"] .card {
  background-color: #1c2230;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-scheme="dark"] .card-header {
  background-color: #252b38;
  border-bottom-color: #334155;
  color: #f1f5f9;
}
html[data-scheme="dark"] .card-footer {
  background-color: #252b38;
  border-top-color: #334155;
}

html[data-scheme="dark"] .table {
  color: #e2e8f0;
  border-color: #334155;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(22, 93, 255, 0.12);
  --bs-table-hover-color: #f1f5f9;
}
html[data-scheme="dark"] .table > :not(caption) > * > * {
  border-bottom-color: #334155;
}
html[data-scheme="dark"] .table thead th {
  color: #e2e8f0;
  background-color: #252b38;
}
/* 蓝底表头：保持白字（否则会被上一规则盖成灰字） */
html[data-scheme="dark"] .table-header-blue,
html[data-scheme="dark"] .table-header-blue th {
  color: #fff !important;
  background-color: var(--theme-primary) !important;
}
/* 蓝底表头：排序三角勿再用 theme-primary（与底色同色），改为浅色 */
html[data-scheme="dark"] thead.table-header-blue th.sortable[data-sort="asc"] .sort-indicator::before,
html[data-scheme="dark"] thead.table-header-blue th.sortable[data-sort="desc"] .sort-indicator::before {
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-scheme="dark"] thead.table-header-blue th .fa-sort,
html[data-scheme="dark"] thead.table-header-blue th .fa-angle-up,
html[data-scheme="dark"] thead.table-header-blue th .fa-angle-down {
  color: rgba(255, 255, 255, 0.88) !important;
}
/* 表体默认字色（避免仅继承 body 时在浅悬停行上发灰） */
html[data-scheme="dark"] .card .table tbody td,
html[data-scheme="dark"] .card .table tbody th {
  color: #e8edf5;
}

html[data-scheme="dark"] .form-control,
html[data-scheme="dark"] .form-select {
  background-color: #252b38;
  border-color: #475569;
  color: #f1f5f9;
}
html[data-scheme="dark"] .form-control::placeholder,
html[data-scheme="dark"] textarea::placeholder {
  color: #a8b8ce !important;
  opacity: 1;
}
html[data-scheme="dark"] .form-control:focus,
html[data-scheme="dark"] .form-select:focus {
  background-color: #2d3548;
  border-color: var(--theme-primary);
  color: #f8fafc;
  box-shadow: 0 0 0 0.2rem rgba(22, 93, 255, 0.25);
}
/* 原生日期框：深色下覆盖为 dark（与 common.css 浅色 color-scheme 对应，不限于仅深色才处理日期控件） */
html[data-scheme="dark"] input[type="date"].form-control,
html[data-scheme="dark"] input[type="month"].form-control,
html[data-scheme="dark"] input[type="datetime-local"].form-control {
  color-scheme: dark;
}
html[data-scheme="dark"] .input-group-text {
  background-color: #2d3548;
  border-color: #475569;
  color: #cbd5e1;
}

html[data-scheme="dark"] .text-muted {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .border,
html[data-scheme="dark"] .border-top,
html[data-scheme="dark"] .border-bottom {
  border-color: #334155 !important;
}

html[data-scheme="dark"] .dropdown-menu {
  background-color: #1c2230;
  border-color: #334155;
}
html[data-scheme="dark"] .dropdown-item {
  color: #e2e8f0;
}
html[data-scheme="dark"] .dropdown-item:hover,
html[data-scheme="dark"] .dropdown-item:focus {
  background-color: #2d3548;
  color: #fff;
}
html[data-scheme="dark"] .dropdown-divider {
  border-top-color: #334155;
}

html[data-scheme="dark"] .modal-content {
  background-color: #1c2230;
  border-color: #334155;
  color: #e2e8f0;
  color-scheme: dark;
}
html[data-scheme="dark"] .modal-content .form-select option {
  background-color: #252b38;
  color: #f1f5f9;
}
html[data-scheme="dark"] .modal-header,
html[data-scheme="dark"] .modal-footer {
  border-color: #334155;
}
html[data-scheme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-scheme="dark"] .list-group-item {
  background-color: #1c2230;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-scheme="dark"] .alert {
  background-color: #252b38;
  border-color: #475569;
  color: #e2e8f0;
}

/* ========== common 内列表条纹等 ========== */
html[data-scheme="dark"] .table-list-stripe tbody tr:nth-of-type(odd) > td,
html[data-scheme="dark"] .table-list-stripe tbody tr:nth-of-type(odd) > th {
  background-color: #1c2230 !important;
}
html[data-scheme="dark"] .table-list-stripe tbody tr:nth-of-type(even) > td,
html[data-scheme="dark"] .table-list-stripe tbody tr:nth-of-type(even) > th {
  background-color: #232a38 !important;
}
html[data-scheme="dark"] .table-list-stripe tbody tr:not(.plan-files-row):not(.topic-files-row):not(.pishi-detail-row):hover > td,
html[data-scheme="dark"] .table-list-stripe tbody tr:not(.plan-files-row):not(.topic-files-row):not(.pishi-detail-row):hover > th {
  background-color: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}

html[data-scheme="dark"] .progress-table thead th {
  background: #252b38 !important;
  color: #cbd5e1 !important;
}
/* 进展资料区 / 上方资料表格：行悬停与全局条纹表一致 */
html[data-scheme="dark"] .progress-table tbody tr:hover > td,
html[data-scheme="dark"] .progress-table tbody tr:hover > th {
  background-color: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .progress-table tbody tr:hover > td .file-preview-link {
  color: #bfdbfe !important;
}

html[data-scheme="dark"] .file-zone-card .media-files-panel {
  background: #252b38 !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}
html[data-scheme="dark"] .file-zone-card .media-file-item {
  background: #1c2230 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .file-zone-card.compact-media-list .media-file-item:hover {
  background-color: rgba(59, 130, 246, 0.22) !important;
}
/* 进展资料区移动端卡片：悬停与全局列表卡片一致 */
html[data-scheme="dark"] .progress-file-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .progress-file-card:hover {
  background: #252b38 !important;
  border-color: #475569 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .progress-file-card-title {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .progress-file-card-title .file-preview-link {
  color: #93c5fd !important;
}
html[data-scheme="dark"] .progress-file-card-meta,
html[data-scheme="dark"] .progress-file-card-dept {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .progress-file-card-actions {
  border-top-color: #334155 !important;
}
/* 批示督办 / 民生实事：上方资料区标题与条目文字用浅色，避免主题蓝链接与序号 */
html[data-scheme="dark"] .file-zone-card .card-header h5 {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .file-zone-card .media-files-header .small,
html[data-scheme="dark"] .file-zone-card .media-files-header .text-muted {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .file-zone-card .media-file-seq {
  color: #e8edf5 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}
html[data-scheme="dark"] .file-zone-card .media-file-link {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .file-zone-card .media-file-link:hover {
  color: #bfdbfe !important;
}
html[data-scheme="dark"] .file-zone-card .media-file-link .text-primary,
html[data-scheme="dark"] .file-zone-card .media-file-link .fa.text-primary {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] .file-zone-card .file-zone-more-btn {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .file-zone-card .file-zone-more-btn:hover {
  color: #e2e8f0 !important;
}

/* 弹窗内自动补全下拉：common.css 为白底，深色弹窗下子项继承浅色字 → 浅字叠白底不可读 */
html[data-scheme="dark"] .topic-form-autocomplete .autocomplete-dropdown {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .topic-form-autocomplete .autocomplete-item {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .topic-form-autocomplete .autocomplete-item:hover,
html[data-scheme="dark"] .topic-form-autocomplete .autocomplete-item:focus {
  background: #2d3548 !important;
  color: #f8fafc !important;
}
/* 民生实事：部门自动补全（MS.html 独立类名） */
html[data-scheme="dark"] .dept-autocomplete-dropdown {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .dept-autocomplete-item {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .dept-autocomplete-item:hover {
  background: #2d3548 !important;
  color: #f8fafc !important;
}
/* 兜底：未包在 .topic-form-autocomplete 内的 .autocomplete-dropdown */
html[data-scheme="dark"] .modal .autocomplete-dropdown:not(.dept-autocomplete-dropdown) {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .modal .autocomplete-dropdown .autocomplete-item {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .modal .autocomplete-dropdown .autocomplete-item:hover {
  background: #2d3548 !important;
  color: #f8fafc !important;
}

html[data-scheme="dark"] .filter-summary-bar {
  background: #252b38 !important;
  border-color: #334155 !important;
}

html[data-scheme="dark"] .site-copyright {
  border-top-color: #334155;
  color: #94a3b8;
}

/* ========== 数据概览浅色块（多页）========== */
html[data-scheme="dark"] .jiandu-overview,
html[data-scheme="dark"] .pishi-overview-inner.jiandu-overview,
html[data-scheme="dark"] .minsheng-overview-wrap,
html[data-scheme="dark"] .diaoyan-overview {
  background: #161b26 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-chart-wrap,
html[data-scheme="dark"] .pishi-chart-card,
html[data-scheme="dark"] .minsheng-chart-wrap .chart-container,
html[data-scheme="dark"] .diaoyan-chart-wrap {
  background: #1c2230 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-collect-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-breakdown-title,
html[data-scheme="dark"] .overview-chart-subtitle,
html[data-scheme="dark"] .jiandu-chart-wrap .chart-title,
html[data-scheme="dark"] .diaoyan-chart-wrap .chart-title,
html[data-scheme="dark"] .minsheng-chart-title-inner {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] .minsheng-chart-title-inner .overview-click-hint {
  color: #94a3b8 !important;
}

/* ========== 管理后台主区 ========== */
html[data-scheme="dark"] .admin-main {
  background: #12151c !important;
  color: #e2e8f0;
}
html[data-scheme="dark"] .admin-main .card {
  background-color: #1c2230;
  border-color: #334155;
}
html[data-scheme="dark"] .admin-main .card-header {
  background: #252b38 !important;
  border-bottom-color: #334155 !important;
  color: #f1f5f9;
}
html[data-scheme="dark"] .admin-main .card .card {
  border-color: #334155 !important;
}
html[data-scheme="dark"] .admin-main .card .card .card-header {
  background: #1c2230 !important;
}
html[data-scheme="dark"] .admin-main .table thead th {
  color: #cbd5e1;
  border-bottom-color: #334155;
}

/* 数据中心：标题与统计卡 */
html[data-scheme="dark"] .admin-main .admin-page-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .admin-main .admin-stat-card {
  background: #252b38 !important;
  border-color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .admin-main .admin-stat-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
html[data-scheme="dark"] .admin-main .admin-stat-value {
  color: #f8fafc !important;
}
html[data-scheme="dark"] .admin-main .admin-stat-label {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .admin-main .admin-stat-link {
  color: #93c5fd !important;
}
html[data-scheme="dark"] .admin-main .admin-stat-link:hover {
  color: #bfdbfe !important;
}

/* 业务规模等小 KPI 格 */
html[data-scheme="dark"] .admin-main .admin-mini-kpi {
  background: #252b38 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .admin-main .admin-mini-kpi .label {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .admin-main .admin-mini-kpi .value {
  color: #f1f5f9 !important;
}

/* 运维状态：行标签与数值 */
html[data-scheme="dark"] .admin-main .admin-mini-kpi-line {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(148, 163, 184, 0.35) !important;
}
html[data-scheme="dark"] .admin-main .admin-mini-kpi-line strong {
  color: #f8fafc !important;
}

/* 近天趋势柱：轨道改深底，避免浅色块刺眼 */
html[data-scheme="dark"] .admin-main .admin-trend-col {
  background: linear-gradient(180deg, #2d3548 0%, #232a38 100%) !important;
  border-color: #475569 !important;
}
html[data-scheme="dark"] .admin-main .admin-trend-fill {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%) !important;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) inset;
}
html[data-scheme="dark"] .admin-main .admin-trend-col:hover .admin-trend-fill {
  filter: brightness(1.1);
}

/* 桌面一屏紧凑模式里 #tab-dashboard 曾强制浅色 card-header，深色下收回 */
@media (min-width: 1200px) {
  html[data-scheme="dark"] #tab-dashboard .card-header {
    background: #252b38 !important;
    background-image: none !important;
    border-bottom-color: #334155 !important;
    color: #f1f5f9 !important;
  }
}

/* 健康巡检标签（与运维同页） */
html[data-scheme="dark"] .admin-main .admin-health-chip-neutral {
  background: #2d3548 !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
}
html[data-scheme="dark"] .admin-main .admin-health-chip-ok {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}
html[data-scheme="dark"] .admin-main .admin-health-chip-warn {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}
html[data-scheme="dark"] .admin-main .admin-health-chip-danger {
  background: rgba(248, 113, 113, 0.16) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}
html[data-scheme="dark"] .admin-main .badge.text-bg-light {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-scheme="dark"] .admin-topbar {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ========== 计划月历 JH（页内联样式较多，此处覆盖主结构）========== */
html[data-scheme="dark"] body[data-current-page="RL.html"] {
  background: #12151c !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-card {
  background: #1c2230 !important;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-main {
  background: #1c2230 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel {
  background: linear-gradient(180deg, #1e2430 0%, #161b26 100%) !important;
  border-right-color: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-text,
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-week,
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-month-week {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-mini-cal {
  background: #252b38 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-mini-cal th {
  background: #2d3548 !important;
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-date-panel .date-mini-cal td {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-schedule,
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-title-bar {
  background: #1c2230 !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-table-wrap {
  background: #1c2230 !important;
}
html[data-scheme="dark"] body[data-current-page="RL.html"] .jihua-mobile-list {
  background: transparent !important;
}

/* ========== 监督议题列表：状态行、监督内容、资料区（修复浅底+浅字）========== */
html[data-scheme="dark"] .jiandu-topic-list-card .table tbody td,
html[data-scheme="dark"] .jiandu-topic-list-card .table tbody th {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-content-toggle {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-content-toggle:hover,
html[data-scheme="dark"] .jiandu-topic-list-card .topic-content-toggle.active {
  color: #93c5fd !important;
}
/* 暗黑：状态行不用整行底色（与条纹/悬停一致），仅保留左侧色条；正文与其它行同为浅色字 */
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-doing,
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-done {
  background-color: transparent !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-doing:hover,
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-done:hover {
  background-color: transparent !important;
}
/* 不在 td 上清背景，以免盖住 .table-list-stripe 的奇偶行色 */
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-doing .topic-status-cell {
  color: #fdba74 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card tbody tr.status-done .topic-status-cell {
  color: #6ee7b7 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-files-row-media-style {
  background: #161b26 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-files-area-media-style .media-files-panel {
  background: #1c2230 !important;
  border-color: rgba(100, 116, 139, 0.5) !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-files-area-media-style .media-file-item {
  background: #252b38 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-files-area-media-style .media-file-link {
  color: #93c5fd !important;
}
html[data-scheme="dark"] .jiandu-topic-list-card .topic-files-area-media-style .media-file-link:hover {
  color: #bfdbfe !important;
}
html[data-scheme="dark"] .jiandu-topic-card-meta .topic-status-badge.status-doing {
  background: transparent !important;
  color: #fdba74 !important;
  border: 1px solid rgba(251, 146, 60, 0.55) !important;
}
html[data-scheme="dark"] .jiandu-topic-card-meta .topic-status-badge.status-done {
  background: transparent !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(34, 197, 94, 0.5) !important;
}

/* ========== 调研 / 批示等同类表格正文 ========== */
html[data-scheme="dark"] .diaoyan-list-card .table tbody td,
html[data-scheme="dark"] .diaoyan-list-card .table tbody th,
html[data-scheme="dark"] .pishi-list-card .table tbody td,
html[data-scheme="dark"] .pishi-list-card .table tbody th {
  color: #e8edf5 !important;
}

/* ========== 调研视察列表（DY 内联深色字 + 移动端卡片 + 资料区）========== */
html[data-scheme="dark"] .diaoyan-list-card {
  color: #e2e8f0;
}
/* 覆盖 DY.html 内联 .plan-content-toggle #0f172a */
html[data-scheme="dark"] .diaoyan-list-card .plan-content-toggle {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .plan-content-toggle:hover,
html[data-scheme="dark"] .diaoyan-list-card .plan-content-toggle.active {
  color: #93c5fd !important;
}
html[data-scheme="dark"] .diaoyan-plan-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .diaoyan-plan-card-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .diaoyan-plan-card-meta {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-plan-card .topic-files-area {
  border-top-color: #334155 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .topic-files-row-media-style {
  background: #161b26 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .plan-files-row td.bg-light {
  background-color: #161b26 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .topic-files-area-media-style .media-files-panel {
  background: #1c2230 !important;
  border-color: rgba(100, 116, 139, 0.5) !important;
}
html[data-scheme="dark"] .diaoyan-list-card .topic-files-area-media-style .media-file-item {
  background: #252b38 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .topic-files-area-media-style .media-file-link {
  color: #93c5fd !important;
}
html[data-scheme="dark"] .diaoyan-list-card .topic-files-area-media-style .media-file-link:hover {
  color: #bfdbfe !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-table tbody td,
html[data-scheme="dark"] .diaoyan-list-card .progress-table tbody th {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card:hover {
  border-color: #475569 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-title {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-meta,
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-dept {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-user::before,
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-date::before {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-file-card-actions {
  border-top-color: #334155 !important;
}
html[data-scheme="dark"] .diaoyan-list-card .progress-cards-empty {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-mobile-toolbar {
  background: #252b38 !important;
  border-bottom-color: #334155 !important;
}
html[data-scheme="dark"] .diaoyan-mobile-toolbar .form-check-label {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] #diaoyan-pagination {
  border-top-color: #334155 !important;
  color: #94a3b8 !important;
}
html[data-scheme="dark"] #diaoyan-page-info {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-list-card #empty-tip {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .diaoyan-overview-card .card-header .text-muted {
  color: #94a3b8 !important;
}

/* ========== 清除筛选 / 刷新：暗色半透明，避免大块浅色底 ========== */
html[data-scheme="dark"] .filter-clear-btn {
  color: #fcd34d !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.38) !important;
}
html[data-scheme="dark"] .filter-clear-btn:hover {
  color: #fde68a !important;
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.52) !important;
}
html[data-scheme="dark"] #navbar-refresh-btn {
  color: #7dd3c0 !important;
  background: rgba(45, 212, 191, 0.1) !important;
  border: 1px solid rgba(45, 212, 191, 0.38) !important;
}
html[data-scheme="dark"] #navbar-refresh-btn:hover {
  color: #99f6e4 !important;
  background: rgba(45, 212, 191, 0.18) !important;
  border-color: rgba(45, 212, 191, 0.5) !important;
}

/* ========== 操作区 / 移动端工具条 ========== */
html[data-scheme="dark"] #operation-area {
  border-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-mobile-toolbar {
  background: #252b38 !important;
  border-bottom-color: #334155 !important;
}
html[data-scheme="dark"] .jiandu-topic-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .jiandu-topic-card-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .jiandu-topic-card-meta {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .jiandu-topic-card .topic-files-area {
  border-top-color: #334155 !important;
}

/* ========== 每月工作 MY：计划列表 ========== */
html[data-scheme="dark"] #meiyue-list-card .meiyue-count {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] #meiyue-list-card #meiyue-list-title {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] #meiyue-list-card .meiyue-table thead th {
  background-color: #252b38 !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] #meiyue-list-card .meiyue-table tbody td {
  color: #e8edf5 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] #meiyue-list-card .meiyue-table .col-year {
  background-color: #252b38 !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] #meiyue-list-card .plan-link {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] #meiyue-list-card .plan-link:hover {
  color: #bfdbfe !important;
}
html[data-scheme="dark"] #meiyue-tbody tr[data-id]:hover > td {
  background-color: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .meiyue-item-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .meiyue-item-card-title,
html[data-scheme="dark"] .meiyue-item-card-title .plan-link {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .meiyue-item-card-title .plan-link:hover {
  color: #bfdbfe !important;
}
html[data-scheme="dark"] .meiyue-item-card-meta {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .meiyue-item-card[data-id]:hover {
  background: #252b38 !important;
  border-color: #475569 !important;
}

/* ========== 工作计划 JH：每周计划列表 ========== */
html[data-scheme="dark"] #entry-plan-list-wrap h6.text-secondary {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap table thead th {
  background-color: #252b38 !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap table tbody td {
  color: #e8edf5 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody td.entry-plan-list-year {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap .entry-plan-list-open {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap .entry-plan-list-open:hover {
  color: #e8edf5 !important;
}
html[data-scheme="dark"] #entry-plan-list-tbody tr[data-plan-id]:hover > td,
html[data-scheme="dark"] #entry-plan-list-tbody tr[data-open-year]:hover > td {
  background-color: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .entry-plan-list-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .entry-plan-list-card-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] .entry-plan-list-card-meta {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .entry-plan-list-card.entry-plan-list-card-filling {
  background: rgba(251, 191, 36, 0.1) !important;
  border-left-color: #fbbf24 !important;
}
html[data-scheme="dark"] .entry-plan-list-card.entry-plan-list-card-filling .entry-plan-list-card-title {
  color: #fde68a !important;
}
html[data-scheme="dark"] .entry-plan-list-card[data-plan-id]:hover,
html[data-scheme="dark"] .entry-plan-list-card[data-open-year]:hover {
  background: #252b38 !important;
  border-color: #475569 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling td {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling td:nth-child(1),
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling td:nth-child(2) {
  background: #1c2230 !important;
  border-color: #334155 !important;
  color: #e8edf5 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling td:nth-child(4) {
  color: #fde68a !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling:hover td {
  background: rgba(251, 191, 36, 0.2) !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling:hover td:nth-child(1),
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-filling:hover td:nth-child(2) {
  background: #232a38 !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-next-month-highlight td {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
html[data-scheme="dark"] #entry-plan-list-wrap tbody tr.entry-plan-list-next-month-highlight:hover td {
  background: rgba(251, 191, 36, 0.2) !important;
}
html[data-scheme="dark"] .entry-table-loading {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] #entry-plan-preview > div {
  border-color: #334155 !important;
}
/* 工作计划 JH·每月：内联预览，避免 #dee2e6 在深色下呈白边 */
html[data-scheme="dark"] #meiyue-inline-preview > div {
  border-color: #334155 !important;
}

/* ========== 工作计划 JH：每周填报整表（meizhou-entry-table）========== */
html[data-scheme="dark"] #meizhou-entry-table-title {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] #meizhou-entry-date-range {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .meizhou-entry-two-page .table-responsive {
  background: #1c2230 !important;
  border-color: #475569 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-scheme="dark"] .meizhou-entry-table {
  box-shadow: none;
}
html[data-scheme="dark"] .meizhou-entry-table thead.meizhou-entry-thead {
  background: #252b38 !important;
}
html[data-scheme="dark"] .meizhou-entry-table thead.meizhou-entry-thead th {
  color: #e2e8f0 !important;
  background: transparent !important;
  border-bottom-color: #475569 !important;
  border-right-color: #334155 !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-cell-dept {
  color: #e8edf5 !important;
  background: #252b38 !important;
  border-bottom-color: #334155 !important;
  border-right-color: #334155 !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table .entry-cell-date {
  color: #e8edf5 !important;
  border-bottom-color: #334155 !important;
  border-right-color: #334155 !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-0 .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-0 .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-0 .entry-cell-date {
  background: #1c2230 !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-1 .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-1 .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table .entry-dept-bg-1 .entry-cell-date {
  background: #232a38 !important;
}
html[data-scheme="dark"] .meizhou-entry-table tr.entry-dept-self .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table tr.entry-dept-self .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table tr.entry-dept-self .entry-cell-date {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #ecfdf5 !important;
}
html[data-scheme="dark"] .meizhou-entry-table tbody tr:hover .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table tbody tr:hover .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table tbody tr:hover .entry-cell-date {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .meizhou-entry-table tbody tr:hover .entry-cell-dept {
  background: #2d3548 !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-add-first-row td,
html[data-scheme="dark"] .meizhou-entry-table .entry-add-data-row td,
html[data-scheme="dark"] .meizhou-entry-table .entry-add-actions-row td {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
html[data-scheme="dark"] .meizhou-entry-table .entry-add-first-row:hover td,
html[data-scheme="dark"] .meizhou-entry-table .entry-add-data-row:hover td,
html[data-scheme="dark"] .meizhou-entry-table .entry-add-actions-row:hover td {
  background: rgba(251, 191, 36, 0.2) !important;
}
html[data-scheme="dark"] .meizhou-entry-table tr.entry-editing .entry-cell-content,
html[data-scheme="dark"] .meizhou-entry-table tr.entry-editing .entry-cell-seq,
html[data-scheme="dark"] .meizhou-entry-table tr.entry-editing .entry-cell-date {
  background: rgba(34, 197, 94, 0.22) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #ecfdf5 !important;
}
html[data-scheme="dark"] #entry-table-wrap .btn-outline-primary {
  color: #93c5fd;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}
html[data-scheme="dark"] #entry-table-wrap .btn-outline-primary:hover {
  color: #e0f2fe;
  background: rgba(59, 130, 246, 0.22);
  border-color: #60a5fa;
}
html[data-scheme="dark"] #entry-table-wrap .btn-outline-primary.active,
html[data-scheme="dark"] #entry-table-wrap .btn-outline-primary:active {
  color: #f8fafc !important;
  background: rgba(59, 130, 246, 0.38) !important;
  border-color: #60a5fa !important;
}
html[data-scheme="dark"] #btn-edit-table-title {
  color: #fde68a !important;
  background-color: rgba(251, 191, 36, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}
html[data-scheme="dark"] #btn-edit-table-title:hover,
html[data-scheme="dark"] #btn-edit-table-title:focus,
html[data-scheme="dark"] #btn-edit-table-title:active {
  color: #fef3c7 !important;
  background-color: rgba(251, 191, 36, 0.24) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
}
html[data-scheme="dark"] #entry-add-more-btn {
  color: #fde68a !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}
html[data-scheme="dark"] #entry-add-more-btn:hover {
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fef3c7 !important;
}
html[data-scheme="dark"] .meizhou-full-table tbody td {
  background: #1c2230 !important;
  color: #e8edf5 !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] .meizhou-full-table tbody td.col-dept,
html[data-scheme="dark"] .meizhou-full-table tbody td.col-content,
html[data-scheme="dark"] .meizhou-full-table tbody td.col-date {
  color: #e8edf5 !important;
}

/* ========== 批示督办 PS：暗黑下列表/概览悬停与全局条纹表一致 ========== */
html[data-scheme="dark"] #pishi-table tbody tr.status-doing,
html[data-scheme="dark"] #pishi-table tbody tr.status-done {
  background-color: transparent !important;
}
html[data-scheme="dark"] #pishi-table tbody tr.status-doing:hover,
html[data-scheme="dark"] #pishi-table tbody tr.status-done:hover {
  background-color: transparent !important;
}
html[data-scheme="dark"] #pishi-table tbody tr.status-doing td:nth-child(12) {
  color: #fdba74 !important;
}
html[data-scheme="dark"] #pishi-table tbody tr.status-done td:nth-child(12) {
  color: #6ee7b7 !important;
}
html[data-scheme="dark"] #pishi-table.table-list-stripe tbody tr.status-doing:hover > td:nth-child(12) {
  color: #fdba74 !important;
}
html[data-scheme="dark"] #pishi-table.table-list-stripe tbody tr.status-done:hover > td:nth-child(12) {
  color: #6ee7b7 !important;
}
html[data-scheme="dark"] #pishi-table tr.pishi-detail-row {
  background: #1a1f2e !important;
  border-left-color: #64748b !important;
}
html[data-scheme="dark"] #pishi-table tr.pishi-detail-row td {
  border-bottom-color: #334155 !important;
}
html[data-scheme="dark"] .pishi-detail-inner .pishi-detail-label {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .pishi-detail-inner .pishi-detail-value {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row {
  border-bottom-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row .dept-count {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row:hover .dept-count {
  color: #cbd5e1 !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row.overview-stat-active {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #f8fafc !important;
}
html[data-scheme="dark"] .pishi-overview-dept-row.overview-stat-active .dept-count {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] .pishi-item-card {
  background: #1c2230 !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-scheme="dark"] .pishi-item-card:hover {
  background: #252b38 !important;
  border-color: #475569 !important;
}
/* PS 移动端列表卡片：文件名与正文浅色（覆盖 PS.html 内联深色字） */
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-meta {
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-qishu {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-status.status-doing {
  background: rgba(251, 146, 60, 0.18) !important;
  color: #fdba74 !important;
  border-color: rgba(251, 146, 60, 0.45) !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-status.status-done {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #6ee7b7 !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-core {
  background: #252b38 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-core .pishi-card-core-divider {
  background: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-core-label {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-core-value {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-card-core-value:empty::after {
  color: #64748b !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-item-card-actions {
  border-top-color: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="PS.html"] .pishi-mobile-toolbar {
  background: #252b38 !important;
  border-bottom-color: #334155 !important;
}

/* ========== 与暗色协调的浅按钮 ========== */
html[data-scheme="dark"] .btn-outline-secondary {
  color: #cbd5e1;
  border-color: #64748b;
  background: rgba(255, 255, 255, 0.06);
}
html[data-scheme="dark"] .btn-outline-secondary:hover {
  color: #f8fafc;
  background: #475569;
  border-color: #64748b;
}
html[data-scheme="dark"] .btn-light {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}
html[data-scheme="dark"] .btn-light:hover {
  background: #3d4a5c;
  border-color: #64748b;
  color: #fff;
}
html[data-scheme="dark"] .btn-link {
  color: #93c5fd;
}
html[data-scheme="dark"] .btn-link:hover {
  color: #bfdbfe;
}
html[data-scheme="dark"] .btn-link.text-danger {
  color: #f87171 !important;
}
html[data-scheme="dark"] .btn-link.text-danger:hover {
  color: #fca5a5 !important;
}

/* ========== 法律法规 FL.html（内联浅色卡片与排序条）========== */
html[data-scheme="dark"] body[data-current-page="FL.html"] .sort-bar {
  color: #e2e8f0;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .sort-bar .sort-btn {
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.45);
  background: transparent;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .sort-bar .sort-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.7);
  color: #f8fafc !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .sort-bar .sort-btn i {
  opacity: 0.9;
  color: rgba(226, 232, 240, 0.75);
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .batch-bar .form-check-label {
  color: #e2e8f0 !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-item {
  background: transparent !important;
  border-color: #334155 !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-item:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: #475569 !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-item .falv-title {
  color: #f1f5f9 !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-item .falv-title .text-primary {
  color: #93c5fd !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-item .falv-meta {
  color: #94a3b8 !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-more-btn {
  color: #93c5fd !important;
}
html[data-scheme="dark"] body[data-current-page="FL.html"] .falv-more-btn:hover {
  color: #bfdbfe !important;
}
