/* 全站深色模式主题（夜间护眼低眩光配色），注入于各页样式之后生效 */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #0F141B;
  color: #E5EAF2;
}

html[data-theme="dark"] a {
  color: #6EA3FF;
}
html[data-theme="dark"] a:hover {
  color: #93BDFF;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible {
  outline-color: #6EA3FF;
}

/* ── 顶栏与区域菜单 ─────────────────────────────────── */
html[data-theme="dark"] .topbar {
  background: #0B0F15;
  border-bottom: 1px solid #1E2736;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .region-btn,
html[data-theme="dark"] .admin-entry {
  background: rgba(255, 255, 255, 0.05);
  border-color: #324056;
  color: #DCE3EE;
}
html[data-theme="dark"] .region-btn:hover,
html[data-theme="dark"] .region-btn[aria-expanded="true"],
html[data-theme="dark"] .admin-entry:hover {
  background: #1C2534;
  border-color: #4D6282;
  color: #FFFFFF;
}
html[data-theme="dark"] .theme-toggle {
  background: transparent;
  border: 0;
  color: #F6C46D;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FDE08D;
}
html[data-theme="dark"] .admin-entry[aria-current="page"],
html[data-theme="dark"] .admin-entry[aria-current="location"] {
  background: #2E63D1;
  border-color: #2E63D1;
  color: #FFFFFF;
}
html[data-theme="dark"] .logout {
  border-color: #43536B;
  color: #E5EAF2;
}
html[data-theme="dark"] .logout:hover {
  background: #1C2534;
  border-color: #5C7294;
}
html[data-theme="dark"] .region-menu {
  background: #161C26;
  color: #E5EAF2;
  border-color: #2E3A4E;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .region-menu-head,
html[data-theme="dark"] .region-note {
  color: #8C99AE;
  border-color: #253042;
}
html[data-theme="dark"] .region-item {
  color: #DCE3EE;
}
html[data-theme="dark"] .region-item:hover {
  background: #1E2736;
}
html[data-theme="dark"] .region-item.is-current {
  background: #1A2B4A;
  color: #93BDFF;
}
html[data-theme="dark"] .region-item:disabled {
  color: #657389;
}
html[data-theme="dark"] .region-tag {
  background: #131922;
  color: #93BDFF;
  border-color: #2D4C82;
}

/* ── 左侧导航栏 ─────────────────────────────────────── */
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .nav {
  background: #131922;
  border-color: #242E3F;
  color: #DCE3EE;
}
html[data-theme="dark"] .nav-section-title,
html[data-theme="dark"] .nav-gcount,
html[data-theme="dark"] .nav-item-note {
  color: #8C99AE;
}
html[data-theme="dark"] .nav-sep {
  background: #242E3F;
}
html[data-theme="dark"] .nav-home,
html[data-theme="dark"] .nav-group-btn,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-mobile-toggle {
  color: #CBD5E1;
}
html[data-theme="dark"] .nav-home:hover,
html[data-theme="dark"] .nav-group-btn:hover,
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-mobile-toggle:hover {
  background: #1C2432;
  color: #F1F5F9;
}
html[data-theme="dark"] .nav-home[aria-current="page"],
html[data-theme="dark"] .nav-item[aria-current="page"] {
  background: #1A2B4A;
  color: #93BDFF;
}
html[data-theme="dark"] .nav-no {
  background: #1F2838;
  color: #9AA6BA;
  border-color: #2E3A4E;
}
html[data-theme="dark"] .nav-home[aria-current="page"] .nav-no {
  background: #2E63D1;
  color: #FFFFFF;
  border-color: #2E63D1;
}
html[data-theme="dark"] .nav-mobile-toggle {
  background: #161C26;
  border-color: #263042;
}
html[data-theme="dark"] .nav-mobile-toggle-right {
  color: #8C99AE;
}

/* ── 卡片、主面板、分组卡、指标卡 ─────────────────────── */
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .group-card,
html[data-theme="dark"] .south-panel,
html[data-theme="dark"] .modal-dialog,
html[data-theme="dark"] .modal-card {
  background: #161C26;
  border-color: #263042;
  color: #E5EAF2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .picker-head,
html[data-theme="dark"] .picker-meta,
html[data-theme="dark"] .group-head,
html[data-theme="dark"] .panel-batch-title,
html[data-theme="dark"] .list-empty,
html[data-theme="dark"] .modal-content-text,
html[data-theme="dark"] .hist-chart-box,
html[data-theme="dark"] .hist-datebar,
html[data-theme="dark"] .dropzone,
html[data-theme="dark"] .resume-bar,
html[data-theme="dark"] .token-banner,
html[data-theme="dark"] .gx-hint-bar,
html[data-theme="dark"] .formula-note {
  background: #1B2331;
  border-color: #2A3548;
  color: #DCE3EE;
}
html[data-theme="dark"] .group-head {
  background: #1A222F;
  border-bottom-color: #263042;
  color: #CBD5E1;
}
html[data-theme="dark"] .sec-divider {
  background: #253042;
}
html[data-theme="dark"] .progress-track {
  background: #232D3E;
}
html[data-theme="dark"] .dropzone:hover,
html[data-theme="dark"] .dropzone.is-dragover {
  background: #1D2A40;
  border-color: #4A7CE0;
}
html[data-theme="dark"] .group-head,
html[data-theme="dark"] .mod-row,
html[data-theme="dark"] .sec-divider,
html[data-theme="dark"] .strip-head,
html[data-theme="dark"] .diff-head,
html[data-theme="dark"] .panel-figure,
html[data-theme="dark"] .rug-block,
html[data-theme="dark"] .skel-chart,
html[data-theme="dark"] .modal-head,
html[data-theme="dark"] .ph-row,
html[data-theme="dark"] hr {
  border-color: #253042;
}
html[data-theme="dark"] .mod-row:hover,
html[data-theme="dark"] a.mod-row:hover,
html[data-theme="dark"] .mod-row:focus-visible,
html[data-theme="dark"] a.mod-row:focus-visible {
  background: #1C2534;
}
html[data-theme="dark"] .mod-row {
  color: #E5EAF2;
}

/* ── 文字层级 ───────────────────────────────────────── */
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .page-sub,
html[data-theme="dark"] .card-label,
html[data-theme="dark"] .card-sub,
html[data-theme="dark"] .card-value .sep,
html[data-theme="dark"] .group-meta,
html[data-theme="dark"] .mod-note,
html[data-theme="dark"] .mod-range,
html[data-theme="dark"] .mod-count,
html[data-theme="dark"] .south-desc,
html[data-theme="dark"] .stamp,
html[data-theme="dark"] .mini-label,
html[data-theme="dark"] .mini-sub,
html[data-theme="dark"] .mini-note,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .scope-label,
html[data-theme="dark"] .gx-date-label,
html[data-theme="dark"] .tool-label,
html[data-theme="dark"] .legend-unit,
html[data-theme="dark"] .chart-note,
html[data-theme="dark"] .hist-sub,
html[data-theme="dark"] .hist-chart-note,
html[data-theme="dark"] .trend-note,
html[data-theme="dark"] .filter-note,
html[data-theme="dark"] .rug-note,
html[data-theme="dark"] .rug-title,
html[data-theme="dark"] .tbl-unit,
html[data-theme="dark"] .col-unit,
html[data-theme="dark"] .unit,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .log-meta,
html[data-theme="dark"] .pager-label,
html[data-theme="dark"] .pager-text,
html[data-theme="dark"] .picker-meta,
html[data-theme="dark"] .picker-empty,
html[data-theme="dark"] .list-empty,
html[data-theme="dark"] .empty-line,
html[data-theme="dark"] .path-prefix,
html[data-theme="dark"] .resume-meta,
html[data-theme="dark"] .role-sub,
html[data-theme="dark"] .modal-meta,
html[data-theme="dark"] .modal-section-label,
html[data-theme="dark"] .sub,
html[data-theme="dark"] .brand-sub,
html[data-theme="dark"] .foot {
  color: #8C99AE;
}
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .sec-title,
html[data-theme="dark"] .card-value,
html[data-theme="dark"] .mini-value,
html[data-theme="dark"] .resume-title,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .panel-batch-title,
html[data-theme="dark"] .hist-chart-head,
html[data-theme="dark"] .type-name,
html[data-theme="dark"] .switch-toggle,
html[data-theme="dark"] .sched-switch,
html[data-theme="dark"] .inline-chk,
html[data-theme="dark"] .chk-wrap .chk-inline,
html[data-theme="dark"] .chart-legend,
html[data-theme="dark"] .modal-content-text {
  color: #E5EAF2;
}
html[data-theme="dark"] .switch-toggle.is-disabled {
  color: #657389;
}

/* ── 表单控件、输入框、下拉框 ─────────────────────────── */
html[data-theme="dark"] .field input:not([type="checkbox"]),
html[data-theme="dark"] .field select,
html[data-theme="dark"] .scope-select,
html[data-theme="dark"] .gx-date-input,
html[data-theme="dark"] .gx-rain-win-select,
html[data-theme="dark"] .list-search,
html[data-theme="dark"] .date-nav input[type="date"],
html[data-theme="dark"] .inline-field select,
html[data-theme="dark"] .tbl-tools select,
html[data-theme="dark"] .pager select,
html[data-theme="dark"] #hydro-page-size,
html[data-theme="dark"] #hydro-hist-page-size,
html[data-theme="dark"] #np-page-size,
html[data-theme="dark"] #rec-page-size,
html[data-theme="dark"] #da-page-size,
html[data-theme="dark"] #rp-page-size,
html[data-theme="dark"] #rt-page-size {
  background-color: #11161F;
  border-color: #303E54;
  color: #E5EAF2;
}
html[data-theme="dark"] .field input:not([type="checkbox"])::placeholder,
html[data-theme="dark"] .list-search::placeholder {
  color: #64748B;
}
html[data-theme="dark"] .field input:not([type="checkbox"]):hover,
html[data-theme="dark"] .field select:hover,
html[data-theme="dark"] .scope-select:hover,
html[data-theme="dark"] .list-search:hover,
html[data-theme="dark"] .date-nav input[type="date"]:hover {
  background-color: #161E2B;
  border-color: #4A5E7C;
}
html[data-theme="dark"] .field input:not([type="checkbox"]):focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .scope-select:focus,
html[data-theme="dark"] .list-search:focus {
  border-color: #5B95FF;
  outline-color: rgba(91, 149, 255, 0.35);
}
html[data-theme="dark"] .field select,
html[data-theme="dark"] .scope-select {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='6'%20viewBox='0%200%2010%206'%3E%3Cpath%20d='M1%201l4%204%204-4'%20fill='none'%20stroke='%2394A3B8'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .chk-box input[type="checkbox"] {
  accent-color: #4C84F0;
}
html[data-theme="dark"] .switch-track {
  background: #334155;
}
html[data-theme="dark"] .switch-toggle input:checked + .switch-track {
  background: #2E63D1;
}

/* ── 按钮、分段器、筛选筹码、分页器 ───────────────────── */
html[data-theme="dark"] .btn-lite,
html[data-theme="dark"] .btn-link,
html[data-theme="dark"] .btn-view-boundary,
html[data-theme="dark"] .rec-period-btn,
html[data-theme="dark"] .pager-btn,
html[data-theme="dark"] .pager-num,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .chip[aria-pressed="false"],
html[data-theme="dark"] .modal-close {
  background: #18202D;
  border-color: #303E54;
  color: #DCE3EE;
}
html[data-theme="dark"] .btn-lite:hover:not(:disabled),
html[data-theme="dark"] .btn-link:hover,
html[data-theme="dark"] .btn-view-boundary:hover,
html[data-theme="dark"] .rec-period-btn:hover:not(:disabled),
html[data-theme="dark"] .pager-btn:hover:not(:disabled),
html[data-theme="dark"] .pager-num:hover,
html[data-theme="dark"] .pill:hover,
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .modal-close:hover {
  background: #212C3D;
  border-color: #4A5E7C;
  color: #FFFFFF;
}
html[data-theme="dark"] .btn-lite:disabled,
html[data-theme="dark"] .rec-period-btn:disabled,
html[data-theme="dark"] .pager-btn:disabled {
  background: #131822;
  border-color: #242E3F;
  color: #5B677C;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-link-primary,
html[data-theme="dark"] .pager-num[aria-current="page"],
html[data-theme="dark"] .pager-num[aria-current="page"]:hover,
html[data-theme="dark"] .chip[aria-pressed="true"] {
  background: #2E63D1;
  border-color: #2E63D1;
  color: #FFFFFF;
}
html[data-theme="dark"] .btn-primary:hover:not(:disabled),
html[data-theme="dark"] .btn-link-primary:hover {
  background: #3B74E8;
  border-color: #3B74E8;
}
html[data-theme="dark"] .btn-primary:disabled,
html[data-theme="dark"] .resume-actions .btn-primary:disabled {
  background: #1E3259;
  border-color: #263E6E;
  color: #7D95C4;
}
html[data-theme="dark"] .btn-danger {
  background: #3B1820;
  border-color: #7A2B3A;
  color: #FCA5A5;
}
html[data-theme="dark"] .btn-danger:hover:not(:disabled) {
  background: #4F1F2A;
  border-color: #A03B4E;
  color: #FECACA;
}
html[data-theme="dark"] .btn-danger:disabled {
  background: #24171C;
  border-color: #3E222B;
  color: #7D555E;
}
html[data-theme="dark"] .seg {
  background: #121720;
  border-color: #303E54;
}
html[data-theme="dark"] .seg-btn,
html[data-theme="dark"] .seg-link,
html[data-theme="dark"] .seg-tab {
  background: transparent;
  color: #B4C0D3;
  border-color: #2A3548;
}
html[data-theme="dark"] .seg-btn:hover,
html[data-theme="dark"] .seg-link:hover,
html[data-theme="dark"] .seg-tab:hover {
  background: #1E2736;
  color: #FFFFFF;
}
html[data-theme="dark"] .seg-btn[aria-pressed="true"],
html[data-theme="dark"] .seg-btn[aria-selected="true"],
html[data-theme="dark"] .seg-on,
html[data-theme="dark"] .seg-tab[aria-pressed="true"] {
  background: #2E63D1;
  color: #FFFFFF;
  border-color: #2E63D1;
}

/* ── 曲线选择器 ─────────────────────────────────────── */
html[data-theme="dark"] .picker-wrap,
html[data-theme="dark"] .picker-list {
  background: #141A24;
  border-color: #263042;
}
html[data-theme="dark"] .picker-item {
  background: #18202D;
  border-color: #283447;
  color: #DCE3EE;
}
html[data-theme="dark"] .picker-item:hover {
  background: #202A3B;
  border-color: #3D506E;
}
html[data-theme="dark"] .picker-item.is-selected {
  background: #1A2B4A;
  border-color: #3761B5;
  color: #E5EAF2;
}
html[data-theme="dark"] .picker-warn {
  color: #F6C46D;
}

/* ── 表格、冻结列、排序表头 ───────────────────────────── */
html[data-theme="dark"] .table-scroll {
  background: #161C26;
  border-color: #263042;
}
html[data-theme="dark"] table {
  color: #DCE3EE;
}
html[data-theme="dark"] thead tr,
html[data-theme="dark"] table th,
html[data-theme="dark"] th,
html[data-theme="dark"] thead .sticky-col,
html[data-theme="dark"] thead th.sticky-col,
html[data-theme="dark"] .hist-scroll thead th,
html[data-theme="dark"] .import-files thead th {
  background: #1B2331;
  color: #B8C4D8;
  border-color: #2A3548;
}
html[data-theme="dark"] table td,
html[data-theme="dark"] td,
html[data-theme="dark"] tbody td.sticky-col {
  border-color: #232D3E;
}
html[data-theme="dark"] tbody td.sticky-col,
html[data-theme="dark"] .sticky-col {
  background: #161C26;
}
html[data-theme="dark"] table tbody tr:hover td,
html[data-theme="dark"] tbody tr:hover td,
html[data-theme="dark"] tbody tr:hover td.sticky-col,
html[data-theme="dark"] tbody tr.is-clickable:hover td {
  background: #1D2635;
}
html[data-theme="dark"] tbody tr.is-active td,
html[data-theme="dark"] tbody tr.is-active td.sticky-col,
html[data-theme="dark"] tbody tr.is-active .sticky-col,
html[data-theme="dark"] .bool-matrix tbody tr.is-active td,
html[data-theme="dark"] .import-files tbody tr.is-selected td {
  background: #1A2B4A;
}
html[data-theme="dark"] tbody tr.is-total-row td,
html[data-theme="dark"] tbody tr.is-total-row td.sticky-col {
  background: #1C2636;
  color: #F1F5F9;
}
html[data-theme="dark"] tbody tr.is-total-row:hover td,
html[data-theme="dark"] tbody tr.is-total-row:hover td.sticky-col {
  background: #233046;
}
html[data-theme="dark"] tbody tr.is-warn-row td {
  background: #2C191E;
}
html[data-theme="dark"] tbody tr.is-warn-row:hover td {
  background: #381F25;
}
html[data-theme="dark"] tbody tr.is-warn-row td.is-warn-val {
  color: #FCA5A5;
}
html[data-theme="dark"] td.is-heavy-val {
  color: #F6C46D;
}
html[data-theme="dark"] .import-files tbody tr[data-unavailable] td,
html[data-theme="dark"] .import-files [data-unavailable] label {
  color: #657389;
}
html[data-theme="dark"] .th-sort {
  color: #B8C4D8;
}
html[data-theme="dark"] .th-sort:hover {
  color: #FFFFFF;
}
html[data-theme="dark"] .sort-mark {
  color: #64748B;
}
html[data-theme="dark"] th[aria-sort="ascending"] .sort-mark,
html[data-theme="dark"] th[aria-sort="descending"] .sort-mark {
  color: #6EA3FF;
}
html[data-theme="dark"] td.code-cell .mono {
  color: #93BDFF;
}

/* ── 标签、徽标、提示条、涨跌与状态色 ─────────────────── */
html[data-theme="dark"] .tag-soft,
html[data-theme="dark"] .badge-run,
html[data-theme="dark"] .role-badge {
  background: #1A2B4A;
  color: #93BDFF;
  border-color: #2D4C82;
}
html[data-theme="dark"] .badge-idle,
html[data-theme="dark"] .tag-mono,
html[data-theme="dark"] .tag-pill,
html[data-theme="dark"] .state-other {
  background: #1E2736;
  color: #9AA6BA;
  border-color: #324056;
}
html[data-theme="dark"] .badge-ok,
html[data-theme="dark"] .alert-ok,
html[data-theme="dark"] .delta-ok,
html[data-theme="dark"] td.status-on {
  background: #122B22;
  color: #6EE7A8;
  border-color: #1F543E;
}
html[data-theme="dark"] .badge-warn,
html[data-theme="dark"] .alert-warn,
html[data-theme="dark"] .alert.warn,
html[data-theme="dark"] .delta-warn,
html[data-theme="dark"] .imp-badge,
html[data-theme="dark"] .state-trans {
  background: #2F2312;
  color: #F6C46D;
  border-color: #63461A;
}
html[data-theme="dark"] .alert-error,
html[data-theme="dark"] .load-error,
html[data-theme="dark"] .warn-badge,
html[data-theme="dark"] .delta-alert,
html[data-theme="dark"] .state-stop,
html[data-theme="dark"] td.status-off {
  background: #30181D;
  color: #FCA5A5;
  border-color: #6B2732;
}
html[data-theme="dark"] .alert.info {
  background: #1A2B4A;
  color: #93BDFF;
  border-color: #2D4C82;
}
html[data-theme="dark"] .date-error,
html[data-theme="dark"] .conflict-num {
  color: #FCA5A5;
}
html[data-theme="dark"] .delta-up {
  color: #FCA5A5;
}
html[data-theme="dark"] .delta-down {
  color: #6EE7A8;
}
html[data-theme="dark"] .log-box {
  background: #0C1017;
  border-color: #242E3F;
  color: #CBD5E1;
}
html[data-theme="dark"] .modal-backdrop {
  background: rgba(5, 8, 14, 0.72);
}

/* ── 骨架屏 ─────────────────────────────────────────── */
html[data-theme="dark"] .skel {
  background: #202A3A;
}
html[data-theme="dark"] .skel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ── 图表、SVG 坐标轴、网格线与悬浮提示 ───────────────── */
html[data-theme="dark"] .plot-area,
html[data-theme="dark"] .hist-area,
html[data-theme="dark"] .trend-area {
  background: #121822;
  border-color: #2A3548;
}
html[data-theme="dark"] .diff-plot {
  background: #151C27;
  border-color: #2A3548;
}
html[data-theme="dark"] .hover-tip,
html[data-theme="dark"] .hist-tip {
  background: #1E2736;
  border-color: #384862;
  color: #E5EAF2;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .tip-time,
html[data-theme="dark"] .tip-val {
  color: #F1F5F9;
  border-color: #2E3B50;
}
html[data-theme="dark"] .tip-name,
html[data-theme="dark"] .tip-delta {
  color: #B4C0D3;
}
html[data-theme="dark"] .tip-row.is-total {
  border-color: #2E3B50;
}
html[data-theme="dark"] .x-tick,
html[data-theme="dark"] .y-tick,
html[data-theme="dark"] .x-axis,
html[data-theme="dark"] .y-axis,
html[data-theme="dark"] .hist-xaxis,
html[data-theme="dark"] .hist-yaxis,
html[data-theme="dark"] .trend-xaxis,
html[data-theme="dark"] .trend-yaxis,
html[data-theme="dark"] .boundary-label {
  fill: #94A3B8;
  color: #94A3B8;
}
html[data-theme="dark"] .boundary-label {
  background: #1B2331;
  border-color: #303E54;
  color: #94A3B8;
}
html[data-theme="dark"] .x-tick.boundary {
  fill: #CBD5E1;
}
html[data-theme="dark"] .hist-hline {
  stroke: #263144;
}
html[data-theme="dark"] .hover-line {
  background: #64748B;
  stroke: #64748B;
}
html[data-theme="dark"] .rug-days {
  background: #1B2331;
  border-color: #263042;
}
html[data-theme="dark"] svg line[stroke="#E9ECF0"],
html[data-theme="dark"] svg line[stroke="#EEF0F3"],
html[data-theme="dark"] svg line[stroke="#D5D9E0"],
html[data-theme="dark"] svg line[stroke="#E3E6EB"],
html[data-theme="dark"] svg path[stroke="#E9ECF0"],
html[data-theme="dark"] svg path[stroke="#EEF0F3"] {
  stroke: #263144;
}
html[data-theme="dark"] svg line[stroke="#CBD5E1"],
html[data-theme="dark"] svg rect[fill="#CBD5E1"],
html[data-theme="dark"] svg line[stroke="#9AA3B2"] {
  stroke: #475569;
  fill: #475569;
}
html[data-theme="dark"] svg text[fill="#5B6372"],
html[data-theme="dark"] svg text[fill="#64748B"],
html[data-theme="dark"] svg text[fill="#6B7280"] {
  fill: #94A3B8;
}
html[data-theme="dark"] svg text[fill="#1A1F2B"],
html[data-theme="dark"] svg text[fill="#3B4150"] {
  fill: #CBD5E1;
}
html[data-theme="dark"] svg circle[fill="#FFFFFF"],
html[data-theme="dark"] svg circle[fill="#ffffff"],
html[data-theme="dark"] svg circle[fill="#fff"],
html[data-theme="dark"] svg rect[fill="#FFFFFF"],
html[data-theme="dark"] svg rect[fill="#ffffff"] {
  fill: #161C26;
}
html[data-theme="dark"] svg path[stroke="#1A1F2B"],
html[data-theme="dark"] svg line[stroke="#1A1F2B"] {
  stroke: #E2E8F0;
}
html[data-theme="dark"] svg path[stroke="#2457C5"],
html[data-theme="dark"] svg line[stroke="#2457C5"] {
  stroke: #5B95FF;
}
html[data-theme="dark"] svg rect[fill="#2457C5"],
html[data-theme="dark"] svg circle[fill="#2457C5"] {
  fill: #5B95FF;
}

/* ── 登录页独立样式适配 ───────────────────────────────── */
html[data-theme="dark"] .page > form {
  background: #161C26;
  border-color: #263042;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .page > form label {
  color: #B4C0D3;
}
html[data-theme="dark"] .page > form input {
  background: #11161F;
  border-color: #303E54;
  color: #E5EAF2;
}
html[data-theme="dark"] .page > form input:hover {
  border-color: #4A5E7C;
}
html[data-theme="dark"] .page > form input:focus {
  border-color: #5B95FF;
  outline-color: rgba(91, 149, 255, 0.35);
}
html[data-theme="dark"] .pass-toggle {
  color: #8C99AE;
}
html[data-theme="dark"] .pass-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #E5EAF2;
}
html[data-theme="dark"] .submit-btn {
  background: #2E63D1;
  border-color: #2E63D1;
}
html[data-theme="dark"] .submit-btn:hover:not(:disabled) {
  background: #3B74E8;
  border-color: #3B74E8;
}
html[data-theme="dark"] .mark {
  background: #1F2937;
  border: 1px solid #324056;
}
html[data-theme="dark"] .login-theme-btn {
  background: transparent;
  border: 0;
  color: #F6C46D;
}
html[data-theme="dark"] .login-theme-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FDE08D;
}
