/* yuser 用户中心主题 — 浅色默认 / 深色顶栏切换 */

:root,
html[data-theme="light"] {
	color-scheme: light;
	--uc-dash-card-bg: #ffffff;
	--uc-dash-card-border: #eef0f4;
	--uc-dash-divider: #f4f5f8;
	--uc-dash-subtle: #f5f7fa;
	--uc-dash-subtle2: #f5f5f5;
	--uc-dash-icon-muted: #bfbfbf;
	--uc-dash-sep: #d9d9d9;
	--uc-dash-shadow: none;
	--uc-footer-bg: #ffffff;
	--uc-gauge-track: #ebeef5;
	--uc-title-strip-bg: #ffffff;
	--ds-bg: #fafafa;
	--ds-surface: #ffffff;
	--ds-surface-soft: #f8fafc;
	--ds-border: #e7ecf3;
	--ds-text: #0f172a;
	--ds-text-2: #475569;
	--ds-text-3: #94a3b8;
}

/* ===== 深色令牌：卡片仅比背景略亮，细边框 ===== */
html[data-theme="dark"] {
	color-scheme: dark;
	--uc-primary: #4a9eff;
	--uc-primary-hover: #6eb1ff;
	--uc-bg: #0e1014;
	--uc-sidebar-bg: #14171c;
	--uc-topbar-bg: #14171c;
	--uc-footer-bg: #14171c;
	--uc-border: rgba(255, 255, 255, 0.06);
	--uc-text: #eceef2;
	--uc-text-secondary: #b8bec8;
	--uc-text-muted: #8f98a6;
	--uc-nav-hover-bg: rgba(255, 255, 255, 0.06);
	--uc-nav-label: #b8bec8;
	--uc-nav-icon: #8f98a6;
	--nq-text: #eceef2;
	--nq-muted: #8f98a6;
	--nq-border: rgba(255, 255, 255, 0.06);
	--nq-input-bg: #1a1e25;
	--bg-body: #0e1014;
	--bg-card: #181b21;
	--text-primary: #eceef2;
	--text-secondary: #b8bec8;
	--text-muted: #8f98a6;
	--border-color: rgba(255, 255, 255, 0.06);
	--uc-title-strip-bg: #181b21;
	--uc-dash-card-bg: #181b21;
	--uc-dash-card-border: rgba(255, 255, 255, 0.06);
	--uc-dash-divider: rgba(255, 255, 255, 0.05);
	--uc-dash-subtle: #1e2229;
	--uc-dash-subtle2: #232830;
	--uc-dash-icon-muted: #7a8494;
	--uc-dash-sep: #3d4450;
	--uc-dash-shadow: none;
	--uc-gauge-track: #2e3440;
	--ds-bg: #0e1014;
	--ds-surface: #181b21;
	--ds-surface-soft: #1e2229;
	--ds-border: rgba(255, 255, 255, 0.06);
	--ds-text: #eceef2;
	--ds-text-2: #b8bec8;
	--ds-text-3: #8f98a6;
}

/* ===== 全局布局 ===== */
html[data-theme="dark"] body,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] #main-content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .main-content > .page-content > .container-fluid {
	background-color: var(--uc-bg) !important;
	background: var(--uc-bg) !important;
	color: var(--uc-text);
}

html[data-theme="dark"] #page-topbar {
	background: var(--uc-topbar-bg) !important;
	background-color: var(--uc-topbar-bg) !important;
	border-bottom: 1px solid var(--uc-border) !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
}

html[data-theme="dark"] .navbar-header {
	background: transparent !important;
}

html[data-theme="dark"] .vertical-menu,
html[data-theme="dark"] .navbar-brand-box,
html[data-theme="dark"] body[data-sidebar="dark"] .vertical-menu,
html[data-theme="dark"] body[data-sidebar="light"] .vertical-menu,
html[data-theme="dark"] body[data-sidebar="dark"] .navbar-brand-box,
html[data-theme="dark"] body[data-sidebar="light"] .navbar-brand-box {
	background: var(--uc-sidebar-bg) !important;
	background-color: var(--uc-sidebar-bg) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .footer,
html[data-theme="dark"] body footer.footer,
html[data-theme="dark"] body footer.footer .container-fluid,
html[data-theme="dark"] body footer.footer .row,
html[data-theme="dark"] body footer.footer [class*="col-"],
html[data-theme="dark"] body.vertical-collpsed footer.footer,
html[data-theme="dark"] .footer {
	background: var(--uc-footer-bg) !important;
	background-color: var(--uc-footer-bg) !important;
	border-top: 1px solid var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] .uc-page-title-strip {
	background: var(--uc-title-strip-bg) !important;
	border-bottom: 1px solid var(--uc-border) !important;
}

html[data-theme="dark"] .uc-page-title-strip__crumb-l1,
html[data-theme="dark"] .uc-page-title-strip__crumb-sep {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] .uc-page-title-strip__crumb-l2,
html[data-theme="dark"] .uc-page-title-strip__title {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] .uc-page-title-strip__help {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] .uc-page-title-strip__help:hover {
	color: var(--uc-text) !important;
}

/* ===== 顶栏 / 下拉（修复白底菜单） ===== */
html[data-theme="dark"] .uc-topbar-nav-link,
html[data-theme="dark"] .uc-topbar-icon-btn,
html[data-theme="dark"] .uc-topbar-icon-btn i,
html[data-theme="dark"] .uc-lang-icon,
html[data-theme="dark"] .uc-user-line,
html[data-theme="dark"] .uc-user-cert-text {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] .uc-topbar-divider {
	background: var(--uc-border);
}

html[data-theme="dark"] body .dropdown-menu,
html[data-theme="dark"] #page-topbar .dropdown-menu,
html[data-theme="dark"] .navbar-header .dropdown-menu {
	background-color: var(--ds-surface) !important;
	background: var(--ds-surface) !important;
	border: 1px solid var(--uc-border) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body .dropdown-item {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .dropdown-item:hover,
html[data-theme="dark"] body .dropdown-item:focus,
html[data-theme="dark"] body .dropdown-item.active,
html[data-theme="dark"] body .dropdown-item:active {
	background: var(--uc-nav-hover-bg) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .dropdown-item.text-danger,
html[data-theme="dark"] body .dropdown-item.text-danger i,
html[data-theme="dark"] body .dropdown-item.text-danger span {
	color: #ff7875 !important;
}

html[data-theme="dark"] body .dropdown-item.text-danger:hover {
	background: rgba(245, 63, 63, 0.12) !important;
	color: #ff7875 !important;
}

html[data-theme="dark"] .navbar-header .dropdown.show .header-item,
html[data-theme="dark"] #page-header-user-dropdown.show,
html[data-theme="dark"] #page-topbar .header-item.show {
	background: transparent !important;
}

html[data-theme="dark"] body[data-sidebar="light"] #sidebar-menu .menu-title,
html[data-theme="dark"] body[data-sidebar="dark"] .menu-title,
html[data-theme="dark"] body[data-sidebar="light"] #sidebar-menu .uc-nav-section-title {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body[data-sidebar="light"] #sidebar-menu ul li > a {
	color: var(--uc-nav-label) !important;
}

html[data-theme="dark"] #sidebar-menu ul li a:hover {
	background: var(--uc-nav-hover-bg) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] #sidebar-menu ul li.mm-active > a {
	background: var(--uc-primary, #165DFF) !important;
	color: #fff !important;
}

/* ===== 首页仪表盘 ===== */
html[data-theme="dark"] .uc-dash-page {
	background: var(--uc-bg) !important;
}

html[data-theme="dark"] .uc-dash-card,
html[data-theme="dark"] .uc-dash-ph,
html[data-theme="dark"] .uc-dash-balance__header,
html[data-theme="dark"] .uc-dash-balance__main,
html[data-theme="dark"] .uc-dash-balance__stats {
	background: var(--uc-dash-card-bg) !important;
	border-color: var(--uc-dash-card-border) !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .uc-dash-balance__stat,
html[data-theme="dark"] .uc-dash-kpi {
	background: var(--uc-dash-subtle) !important;
	border-color: var(--uc-dash-divider) !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .uc-dash-ph__ttl,
html[data-theme="dark"] .uc-dash-id,
html[data-theme="dark"] .uc-dash-kpi-card__ttl,
html[data-theme="dark"] .uc-dash-kpi-card__num,
html[data-theme="dark"] .uc-dash-wide__ttl,
html[data-theme="dark"] .uc-dash-balance__section-name,
html[data-theme="dark"] .uc-dash-balance__amount,
html[data-theme="dark"] .uc-dash-balance__stat-val,
html[data-theme="dark"] .uc-dash-sec-score,
html[data-theme="dark"] .uc-dash-sec-title,
html[data-theme="dark"] .uc-dash-kpi__val,
html[data-theme="dark"] .uc-dash-products__ttl,
html[data-theme="dark"] .uc-dash-announce__ttl,
html[data-theme="dark"] .uc-dash-recent__link {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] .uc-dash-ph__bd,
html[data-theme="dark"] .uc-dash-recent__empty,
html[data-theme="dark"] .uc-dash-recent__meta,
html[data-theme="dark"] .uc-dash-wide__bd,
html[data-theme="dark"] .uc-dash-balance__bal-label,
html[data-theme="dark"] .uc-dash-balance__stat-label,
html[data-theme="dark"] .uc-dash-sec-scale,
html[data-theme="dark"] .uc-dash-kpi__lab,
html[data-theme="dark"] .uc-dash-products__empty,
html[data-theme="dark"] .uc-dash-announce__empty {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] .uc-dash-kpi-card__unit,
html[data-theme="dark"] .uc-dash-kpi-card__foot,
html[data-theme="dark"] .uc-dash-kpi-card__foot a,
html[data-theme="dark"] .uc-dash-balance__header-link,
html[data-theme="dark"] .uc-dash-account-link,
html[data-theme="dark"] .uc-dash-recent__clearbtn,
html[data-theme="dark"] .uc-dash-cert-pill,
html[data-theme="dark"] .uc-dash-chip--muted,
html[data-theme="dark"] .uc-dash-sec-level,
html[data-theme="dark"] .uc-dash-kpi-card__ico {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] .uc-dash-recent__item,
html[data-theme="dark"] .uc-dash-kpi-card__foot,
html[data-theme="dark"] .uc-dash-meta,
html[data-theme="dark"] .uc-dash-balance__stats {
	border-color: var(--uc-dash-divider) !important;
}

html[data-theme="dark"] .uc-dash-cert-pill,
html[data-theme="dark"] .uc-dash-chip--muted {
	background: var(--uc-dash-subtle2) !important;
}

html[data-theme="dark"] .uc-dash-sec-gauge path[stroke="#EBEEF5"] {
	stroke: var(--uc-gauge-track) !important;
}

/* 仪表盘装饰彩条：勿被通用 card 覆盖规则染成底色 */
html[data-theme="dark"] .uc-dash-balance__title-bar {
	background: var(--uc-primary, #4a9eff) !important;
	background-color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] .uc-dash-kpi-card--blue .uc-dash-kpi-card__accent {
	background: #4a9eff !important;
	background-color: #4a9eff !important;
}

html[data-theme="dark"] .uc-dash-kpi-card--orange .uc-dash-kpi-card__accent {
	background: #fa8c16 !important;
	background-color: #fa8c16 !important;
}

html[data-theme="dark"] .uc-dash-kpi-card--green .uc-dash-kpi-card__accent {
	background: #52c41a !important;
	background-color: #52c41a !important;
}

html[data-theme="dark"] .uc-dash-kpi-card--red .uc-dash-kpi-card__accent {
	background: #ff4d4f !important;
	background-color: #ff4d4f !important;
}

html[data-theme="dark"] .uc-dash-recent__link:hover,
html[data-theme="dark"] .uc-dash-recent__clearbtn:hover:not(:disabled),
html[data-theme="dark"] .uc-dash-account-link:hover,
html[data-theme="dark"] .uc-dash-balance__header-link:hover,
html[data-theme="dark"] .uc-dash-sec-link:hover,
html[data-theme="dark"] .uc-dash-kpi-card__foot a:hover,
html[data-theme="dark"] .uc-dash-sec-link,
html[data-theme="dark"] .uc-dash-products__link:hover {
	color: var(--uc-primary, #4a9eff) !important;
}

/* ===== 通用组件（全站页面） ===== */
html[data-theme="dark"] body .card,
html[data-theme="dark"] body .card-body,
html[data-theme="dark"] body .card-header,
html[data-theme="dark"] body .card-footer,
html[data-theme="dark"] body .table-container,
html[data-theme="dark"] body .table-header,
html[data-theme="dark"] body .table-footer,
html[data-theme="dark"] body .ticket-item,
html[data-theme="dark"] body .news-item,
html[data-theme="dark"] body .kb-item,
html[data-theme="dark"] body .security-item,
html[data-theme="dark"] body .type-item,
html[data-theme="dark"] body .pay-body,
html[data-theme="dark"] body .pay-area,
html[data-theme="dark"] body .addfunds-payment,
html[data-theme="dark"] body .aff-item,
html[data-theme="dark"] body .modal-content,
html[data-theme="dark"] body .modal-header,
html[data-theme="dark"] body .modal-footer,
html[data-theme="dark"] body .list-group-item,
html[data-theme="dark"] body .nav-tabs,
html[data-theme="dark"] body .nav-pills,
html[data-theme="dark"] body .tabs,
html[data-theme="dark"] body .ui-select__menu,
html[data-theme="dark"] body .ui-select__trigger {
	background-color: var(--ds-surface) !important;
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text);
}

html[data-theme="dark"] body .table,
html[data-theme="dark"] body .table td {
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .table th,
html[data-theme="dark"] body .table-light th,
html[data-theme="dark"] body .table thead th {
	background-color: var(--uc-dash-subtle) !important;
	color: var(--uc-text-muted) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .table tbody tr:hover td,
html[data-theme="dark"] body .table tr:hover td {
	background-color: var(--uc-nav-hover-bg) !important;
}

html[data-theme="dark"] body .form-control,
html[data-theme="dark"] body .form-select,
html[data-theme="dark"] body textarea.form-control,
html[data-theme="dark"] body input.form-control,
html[data-theme="dark"] body select.form-control {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .form-control::placeholder {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .text-dark,
html[data-theme="dark"] body .card-title,
html[data-theme="dark"] body .modal-title,
html[data-theme="dark"] body label,
html[data-theme="dark"] body .field__label {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .text-muted,
html[data-theme="dark"] body .text-secondary,
html[data-theme="dark"] body small.text-muted {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .bg-light,
html[data-theme="dark"] body .bg-white {
	background-color: var(--uc-dash-subtle) !important;
}

html[data-theme="dark"] body .close {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .pagination a,
html[data-theme="dark"] body .pagination span,
html[data-theme="dark"] body .page-link {
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .pagination .active span,
html[data-theme="dark"] body .page-item.active .page-link {
	background-color: rgba(22, 93, 255, 0.2) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

/* ===== 各业务页根容器（压过 inline !important 白底） ===== */
html[data-theme="dark"] body .uc-msg-v2,
html[data-theme="dark"] body .uc-news-v2,
html[data-theme="dark"] body .uc-newsview-v2,
html[data-theme="dark"] body .uc-kb-v2,
html[data-theme="dark"] body .uc-kbview-v2,
html[data-theme="dark"] body .uc-txn-v2,
html[data-theme="dark"] body .uc-ticket-v2,
html[data-theme="dark"] body .uc-bill-v2,
html[data-theme="dark"] body .uc-log-v2,
html[data-theme="dark"] body .uc-viewtk,
html[data-theme="dark"] body .uc-viewbill,
html[data-theme="dark"] body .uc-api-manage,
html[data-theme="dark"] body .uc-svdetail-toolbar,
html[data-theme="dark"] body .uc-main-pane,
html[data-theme="dark"] body .uc-data-panel,
html[data-theme="dark"] body .uc-submit-ticket,
html[data-theme="dark"] body .uc-recharge-page,
html[data-theme="dark"] body .uc-st-v2,
html[data-theme="dark"] body .uc-verify-page {
	background-color: var(--uc-bg) !important;
	color: var(--uc-text);
}

html[data-theme="dark"] body .uc-recharge-page,
html[data-theme="dark"] body .uc-st-v2,
html[data-theme="dark"] body .uc-verify-page {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-recharge-back,
html[data-theme="dark"] body .uc-recharge-page h1,
html[data-theme="dark"] body .uc-recharge-page h2,
html[data-theme="dark"] body .uc-st-v2 [class*="__title"],
html[data-theme="dark"] body .uc-verify-page [class*="__title"] {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-recharge-page [class*="__hint"],
html[data-theme="dark"] body .uc-recharge-page [class*="__label"],
html[data-theme="dark"] body .uc-st-v2 [class*="__hint"],
html[data-theme="dark"] body .uc-verify-page [class*="__desc"] {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-msg-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-msg-v2 [class*="__card"],
html[data-theme="dark"] body .uc-msg-v2 [class*="__row"],
html[data-theme="dark"] body .uc-msg-v2 [class*="__head"],
html[data-theme="dark"] body .uc-msg-v2 [class*="__toolbar"],
html[data-theme="dark"] body .uc-news-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-news-v2 [class*="__card"],
html[data-theme="dark"] body .uc-news-v2 [class*="__row"],
html[data-theme="dark"] body .uc-news-v2 [class*="__head"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__card"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__row"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__head"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__card"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__row"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__head"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__card"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__row"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__head"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__card"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__row"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__head"],
html[data-theme="dark"] body .uc-log-v2 [class*="__panel"],
html[data-theme="dark"] body .uc-log-v2 [class*="__card"],
html[data-theme="dark"] body .uc-log-v2 [class*="__row"],
html[data-theme="dark"] body .uc-viewtk [class*="__panel"],
html[data-theme="dark"] body .uc-viewtk [class*="__card"],
html[data-theme="dark"] body .uc-viewtk [class*="__head"],
html[data-theme="dark"] body .uc-viewbill [class*="__panel"],
html[data-theme="dark"] body .uc-viewbill [class*="__card"],
html[data-theme="dark"] body .uc-viewbill [class*="__head"],
html[data-theme="dark"] body .uc-api-manage [class*="__panel"],
html[data-theme="dark"] body .uc-api-manage [class*="__card"],
html[data-theme="dark"] body .uc-api-manage [class*="__head"],
html[data-theme="dark"] body .uc-main-pane [class*="__panel"],
html[data-theme="dark"] body .uc-main-pane [class*="__card"],
html[data-theme="dark"] body .uc-main-pane [class*="__head"],
html[data-theme="dark"] body .uc-data-panel [class*="__panel"],
html[data-theme="dark"] body .uc-data-panel [class*="__card"],
html[data-theme="dark"] body .uc-submit-ticket [class*="__panel"],
html[data-theme="dark"] body .uc-submit-ticket [class*="__card"],
html[data-theme="dark"] body .uc-submit-ticket [class*="__head"],
html[data-theme="dark"] body .uc-verify-page [class*="__panel"],
html[data-theme="dark"] body .uc-verify-page [class*="__card"] {
	background-color: var(--ds-surface) !important;
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-msg-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-news-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-kb-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-txn-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-ticket-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-bill-v2 [class*="__row"]:hover,
html[data-theme="dark"] body .uc-log-v2 [class*="__row"]:hover {
	background-color: var(--uc-nav-hover-bg) !important;
}

html[data-theme="dark"] body .uc-msg-v2 [class*="__title"],
html[data-theme="dark"] body .uc-news-v2 [class*="__title"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__title"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__title"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__title"] {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-msg-v2 [class*="__meta"],
html[data-theme="dark"] body .uc-msg-v2 [class*="__desc"],
html[data-theme="dark"] body .uc-news-v2 [class*="__meta"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__meta"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__meta"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__meta"] {
	color: var(--uc-text-muted) !important;
}

/* 充值页 / 产品详情等遗留白底块 */
html[data-theme="dark"] body .page-content > style + *,
html[data-theme="dark"] body .addfunds-page,
html[data-theme="dark"] body .credit-page,
html[data-theme="dark"] body .server_header_box,
html[data-theme="dark"] body .custom-button,
html[data-theme="dark"] body .table-responsive {
	background-color: transparent !important;
}

html[data-theme="dark"] body .page-content .addfunds-page .card,
html[data-theme="dark"] body .page-content .pay-now-btn,
html[data-theme="dark"] body .page-content .type-item {
	background-color: var(--ds-surface) !important;
}

/* ===== 个人信息 (details.tpl) ===== */
html[data-theme="dark"] body .uc-dtls-page {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-card,
html[data-theme="dark"] body .uc-dtls-page .uc-dtls-card__head,
html[data-theme="dark"] body .uc-dtls-page .uc-dtls-card--readonly,
html[data-theme="dark"] body .uc-dtls-page .uc-dtls-section,
html[data-theme="dark"] body .uc-dtls-page .uc-dtls-actions {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	box-shadow: none !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-card__title,
html[data-theme="dark"] body .uc-dtls-page .uc-dtls-section__title,
html[data-theme="dark"] body .uc-dtls-page .form-group label {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-card__title-label,
html[data-theme="dark"] body .uc-dtls-page .form-control,
html[data-theme="dark"] body .uc-dtls-page .custom-select,
html[data-theme="dark"] body .uc-dtls-page select.form-control {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-tip {
	background: rgba(22, 93, 255, 0.1) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-badge--readonly {
	background: var(--uc-dash-subtle2) !important;
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-dtls-page .uc-dtls-readonly {
	background: var(--uc-dash-subtle) !important;
	color: var(--uc-text-muted) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-dtls-page .form-control,
html[data-theme="dark"] body .uc-dtls-page .custom-select,
html[data-theme="dark"] body .uc-dtls-page select.form-control {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
}

/* ===== 安全中心 (security.tpl) ===== */
html[data-theme="dark"] body .uc-sec-v2,
html[data-theme="dark"] body .uc-security-page.uc-sec-v2 {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-card,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-card__head,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-profile,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-faq-list {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	box-shadow: none !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-card__title,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-kv__val,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__name,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block__title {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-kv__lab,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-kv__val--muted,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__desc,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__status,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block__desc,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-faq-list a {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-strength,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-wrap {
	background: transparent !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-strength .progress {
	background: var(--uc-gauge-track) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-tip {
	background: rgba(22, 93, 255, 0.1) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row:hover {
	background: var(--uc-nav-hover-bg) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__action .btn,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__action a.btn,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block .btn,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block a.btn {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__action .btn:hover,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-login-row__action a.btn:hover,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block .btn:hover,
html[data-theme="dark"] body .uc-sec-v2 .uc-sec-notify-block a.btn:hover {
	background: rgba(22, 93, 255, 0.12) !important;
	background-color: rgba(22, 93, 255, 0.12) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
}

/* ===== 列表类 v2 页面（公告/知识库/账单/工单/流水/日志等） ===== */
html[data-theme="dark"] body .uc-news-v2 [class*="__card"],
html[data-theme="dark"] body .uc-news-v2 [class*="__head"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__card"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__head"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__card"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__head"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__card"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__head"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__card"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__head"],
html[data-theme="dark"] body .uc-log-v2 [class*="__card"],
html[data-theme="dark"] body .uc-log-v2 [class*="__head"],
html[data-theme="dark"] body .uc-viewtk [class*="__card"],
html[data-theme="dark"] body .uc-viewtk [class*="__head"],
html[data-theme="dark"] body .uc-viewbill [class*="__card"],
html[data-theme="dark"] body .uc-viewbill [class*="__head"],
html[data-theme="dark"] body .uc-api-manage [class*="__card"],
html[data-theme="dark"] body .uc-api-manage [class*="__head"] {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 [class*="__tip"],
html[data-theme="dark"] body .uc-kb-v2 [class*="__tip"],
html[data-theme="dark"] body .uc-bill-v2 [class*="__tip"],
html[data-theme="dark"] body .uc-ticket-v2 [class*="__tip"],
html[data-theme="dark"] body .uc-txn-v2 [class*="__tip"],
html[data-theme="dark"] body .uc-log-v2 [class*="__tip"] {
	background: rgba(22, 93, 255, 0.1) !important;
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table-header,
html[data-theme="dark"] body .uc-kb-v2 .table-header,
html[data-theme="dark"] body .uc-bill-v2 .table-header,
html[data-theme="dark"] body .uc-ticket-v2 .table-header,
html[data-theme="dark"] body .uc-txn-v2 .table-header,
html[data-theme="dark"] body .uc-log-v2 .table-header,
html[data-theme="dark"] body .uc-viewtk .table-header,
html[data-theme="dark"] body .uc-viewbill .table-header,
html[data-theme="dark"] body .uc-api-manage .table-header,
html[data-theme="dark"] body .uc-news-v2 .table-footer,
html[data-theme="dark"] body .uc-kb-v2 .table-footer,
html[data-theme="dark"] body .uc-bill-v2 .table-footer,
html[data-theme="dark"] body .uc-ticket-v2 .table-footer,
html[data-theme="dark"] body .uc-txn-v2 .table-footer,
html[data-theme="dark"] body .uc-log-v2 .table-footer {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table.tablelist thead th,
html[data-theme="dark"] body .uc-kb-v2 .table.tablelist thead th,
html[data-theme="dark"] body .uc-bill-v2 .table.tablelist thead th,
html[data-theme="dark"] body .uc-ticket-v2 .table.tablelist thead th,
html[data-theme="dark"] body .uc-txn-v2 .table.tablelist thead th,
html[data-theme="dark"] body .uc-log-v2 .table.tablelist thead th {
	background: var(--uc-dash-subtle) !important;
	background-color: var(--uc-dash-subtle) !important;
	color: var(--uc-text-muted) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table.tablelist tbody td,
html[data-theme="dark"] body .uc-kb-v2 .table.tablelist tbody td,
html[data-theme="dark"] body .uc-bill-v2 .table.tablelist tbody td,
html[data-theme="dark"] body .uc-ticket-v2 .table.tablelist tbody td,
html[data-theme="dark"] body .uc-txn-v2 .table.tablelist tbody td,
html[data-theme="dark"] body .uc-log-v2 .table.tablelist tbody td {
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table-pagination .pagination .page-link,
html[data-theme="dark"] body .uc-kb-v2 .table-pagination .pagination .page-link,
html[data-theme="dark"] body .uc-bill-v2 .table-pagination .pagination .page-link,
html[data-theme="dark"] body .uc-ticket-v2 .table-pagination .pagination .page-link,
html[data-theme="dark"] body .uc-txn-v2 .table-pagination .pagination .page-link,
html[data-theme="dark"] body .uc-log-v2 .table-pagination .pagination .page-link {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table-pagination .pagination .page-item.active .page-link,
html[data-theme="dark"] body .uc-kb-v2 .table-pagination .pagination .page-item.active .page-link,
html[data-theme="dark"] body .uc-bill-v2 .table-pagination .pagination .page-item.active .page-link,
html[data-theme="dark"] body .uc-ticket-v2 .table-pagination .pagination .page-item.active .page-link,
html[data-theme="dark"] body .uc-txn-v2 .table-pagination .pagination .page-item.active .page-link,
html[data-theme="dark"] body .uc-log-v2 .table-pagination .pagination .page-item.active .page-link {
	background: rgba(22, 93, 255, 0.18) !important;
	background-color: rgba(22, 93, 255, 0.18) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-news-v2 .table-pagination .pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .uc-kb-v2 .table-pagination .pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .uc-bill-v2 .table-pagination .pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .uc-ticket-v2 .table-pagination .pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .uc-txn-v2 .table-pagination .pagination .page-item.disabled .page-link,
html[data-theme="dark"] body .uc-log-v2 .table-pagination .pagination .page-item.disabled .page-link {
	background: var(--uc-dash-subtle) !important;
	background-color: var(--uc-dash-subtle) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

/* ===== 实名认证 / 产品列表等遗留页 ===== */
html[data-theme="dark"] body .uc-verify-page [class*="uc-verify-"],
html[data-theme="dark"] body .uc-credit-page,
html[data-theme="dark"] body .uc-credit-page .card,
html[data-theme="dark"] body .uc-credit-page .bg-white {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

/* ===== 产品列表 (service.tpl) ===== */
html[data-theme="dark"] body .uc-svc-list-wrap {
	background: var(--uc-bg) !important;
}

html[data-theme="dark"] body .uc-svc-card,
html[data-theme="dark"] body .uc-svc-empty {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-svc-card__ico,
html[data-theme="dark"] body .uc-svc-card__foot {
	background: var(--uc-dash-subtle) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-svc-card__name,
html[data-theme="dark"] body .uc-svc-card__domain {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-svc-card__meta,
html[data-theme="dark"] body .uc-svc-empty {
	color: var(--uc-text-muted) !important;
}

/* ===== 消息中心 (message.tpl) — 压过 inline !important ===== */
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__card,
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__head,
html[data-theme="dark"] body .uc-msg-v2 .table-header,
html[data-theme="dark"] body .uc-msg-v2 .table-footer,
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__batch {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__tip {
	background: rgba(22, 93, 255, 0.1) !important;
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__title,
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__title-cell {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__sub,
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__time,
html[data-theme="dark"] body .uc-msg-v2 .no-data {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__tabs .nav-link {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__tabs .nav-link.active,
html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__tabs .nav-link:hover {
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table.tablelist thead th {
	background: var(--uc-dash-subtle) !important;
	background-color: var(--uc-dash-subtle) !important;
	color: var(--uc-text-muted) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table.tablelist tbody td {
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table.tablelist tbody tr:hover td {
	background: var(--uc-nav-hover-bg) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__type {
	background: var(--uc-dash-subtle2) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table-pagination .pagination .page-link {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table-pagination .pagination .page-link:hover {
	background: var(--uc-nav-hover-bg) !important;
	background-color: var(--uc-nav-hover-bg) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table-pagination .pagination .page-item.active .page-link {
	background: rgba(22, 93, 255, 0.18) !important;
	background-color: rgba(22, 93, 255, 0.18) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table-pagination .pagination .page-item.disabled .page-link {
	background: var(--uc-dash-subtle) !important;
	background-color: var(--uc-dash-subtle) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .table-pagination select.form-control,
html[data-theme="dark"] body .uc-msg-v2 .table-pagination .custom-select {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__batch .btn-danger {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: rgba(245, 63, 63, 0.35) !important;
	color: #ff7875 !important;
}

html[data-theme="dark"] body .uc-msg-v2 .uc-msg-v2__batch .btn-danger:hover:not(:disabled) {
	background: rgba(245, 63, 63, 0.12) !important;
	background-color: rgba(245, 63, 63, 0.12) !important;
}

/* ===== 提交工单 (uc-submit-ticket.css) ===== */
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__card,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__head,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__steps,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__metric,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__guide,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__main,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-card,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__back,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__head-link,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__form-body,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__form-section {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	box-shadow: none !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__title,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__metric-val,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-name,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__guide-head,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__form-section-title {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__sub,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__metric-lbl,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__step-label,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__step-desc,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__guide-intro,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__guide-item,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-scope-label,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-scope-body,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-scope-empty {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__tip {
	background: rgba(22, 93, 255, 0.1) !important;
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__step-num {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__step.is-active .uc-st-v2__step-label {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__metric-icon,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-icon {
	background: rgba(22, 93, 255, 0.14) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-link:hover .uc-st-v2__dept-card {
	border-color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__dept-link:hover .uc-st-v2__dept-arrow {
	background: rgba(22, 93, 255, 0.12) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__back:hover,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__head-link:hover {
	background: rgba(22, 93, 255, 0.12) !important;
	border-color: rgba(22, 93, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

/* ===== 充值页 (addfunds.tpl) ===== */
html[data-theme="dark"] body .uc-recharge-page {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-head,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-card,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-wire,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-amt-bar,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-agree-box,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-gateways-inner .addfunds-payment {
	background: var(--ds-surface) !important;
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tip {
	background: rgba(22, 93, 255, 0.1) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tip__body,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tip__body p {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-title,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-row__label,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-balance-bar__amt,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-balance-bar__unit,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-account-val,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-wire strong {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-hint,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-balance-bar__label,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab__text,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-pay-line,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-amt-yuan,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-wire,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-agree-box,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-agree label {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-amt-bar .form-control {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab.is-active {
	border-color: var(--uc-primary, #4a9eff) !important;
	background: rgba(22, 93, 255, 0.08) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab.is-active .uc-recharge-tab__text {
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-balance-bar__links .sep {
	color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-pay {
	background: var(--uc-primary, #4a9eff) !important;
	color: #fff !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-pay.uc-recharge-pay--disabled,
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-pay:disabled {
	background: rgba(74, 158, 255, 0.35) !important;
	color: rgba(255, 255, 255, 0.75) !important;
}

/* 充值页徽标保留原色 */
html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab__badge--orange {
	background: #ff9900 !important;
	color: #fff !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-tab__badge--gray {
	background: var(--uc-dash-subtle2) !important;
	color: var(--uc-text-muted) !important;
}

/* ===== 通用：uc-* 卡片容器（不含 __accent 等装饰元素） ===== */
html[data-theme="dark"] body .page-content [class*="uc-"][class$="-card"],
html[data-theme="dark"] body .page-content [class*="uc-"][class*="-card__head"],
html[data-theme="dark"] body .page-content [class*="uc-"][class*="-card__body"] {
	background-color: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

/* ===== 系统日志 / 交易记录 工具栏 & 空状态 ===== */
html[data-theme="dark"] body .uc-log-v2 .uc-log-v2__toolbar,
html[data-theme="dark"] body .uc-txn-v2 .uc-txn-v2__toolbar {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-log-v2 .uc-log-v2__toolbar .search-box .form-control,
html[data-theme="dark"] body .uc-txn-v2 .uc-txn-v2__toolbar .search-box .form-control {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-log-v2 .no-data,
html[data-theme="dark"] body .uc-txn-v2 .no-data,
html[data-theme="dark"] body .uc-news-v2 .no-data,
html[data-theme="dark"] body .uc-kb-v2 .no-data {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

/* ===== 新闻 / 帮助中心 侧栏与列表面板 ===== */
html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__panel,
html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__list,
html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__aside,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__panel,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__list,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__aside {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__item,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__item {
	color: var(--uc-text-secondary) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__item:hover,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__item:hover {
	background: var(--uc-nav-hover-bg) !important;
}

html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__aside h6,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__aside h6 {
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .uc-news-v2 .uc-news-v2__search-wrap .form-control,
html[data-theme="dark"] body .uc-kb-v2 .uc-kb-v2__search-wrap .form-control {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text) !important;
}

/* ===== 提交工单：附件区 / 底部栏 / 取消按钮 ===== */
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__attach-zone,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__footer,
html[data-theme="dark"] body .uc-st-v2 .filebox {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__attach-zone:hover {
	background: var(--uc-nav-hover-bg) !important;
	border-color: rgba(74, 158, 255, 0.35) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__attach-hint,
html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__footer-note {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-st-v2 #addFileBtn {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-st-v2 #addFileBtn:hover {
	background: rgba(22, 93, 255, 0.12) !important;
	border-color: rgba(74, 158, 255, 0.35) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__btn-cancel {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-st-v2 .uc-st-v2__btn-cancel:hover {
	background: var(--uc-nav-hover-bg) !important;
	border-color: rgba(74, 158, 255, 0.35) !important;
	color: var(--uc-primary, #4a9eff) !important;
}

html[data-theme="dark"] body .uc-st-v2 input[type="file"],
html[data-theme="dark"] body .uc-st-v2 .custom-file-label {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-secondary) !important;
}

/* ===== 全站表格底部分页信息 ===== */
html[data-theme="dark"] body .table-pageinfo,
html[data-theme="dark"] body .table-pageinfo span {
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .table-pagination select#limitSel,
html[data-theme="dark"] body .table-pagination select.form-control {
	background-color: var(--nq-input-bg) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text) !important;
}

html[data-theme="dark"] body .page-content .no-data {
	background: var(--ds-surface) !important;
	border-color: var(--uc-border) !important;
	color: var(--uc-text-muted) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-back {
	color: var(--uc-text-secondary) !important;
}

html[data-theme="dark"] body .uc-recharge-page .uc-recharge-back:hover {
	color: var(--uc-primary, #4a9eff) !important;
}

/* Toast 保持浅色（系统通知） */
html[data-theme="dark"] #toast-container > .toast {
	background: #fff !important;
	color: #1f2329 !important;
}

/* 顶栏主题切换图标 */
.uc-theme-icon--dark {
	display: none;
}

html[data-theme="dark"] .uc-theme-icon--light {
	display: none;
}

html[data-theme="dark"] .uc-theme-icon--dark {
	display: inline-block;
}

html[data-theme="light"] .uc-theme-icon--light,
html:not([data-theme]) .uc-theme-icon--light {
	display: inline-block;
}

html[data-theme="dark"] #page-topbar .uc-topbar-tip-host .uc-topbar-tip-text {
	background: #2a2a2a;
	color: #fff;
}

html[data-theme="dark"] #page-topbar .uc-topbar-tip-host .uc-topbar-tip-arrow {
	border-color: transparent transparent #2a2a2a transparent;
}

/* ===== 全站隐藏滚动条（保留滚动能力） ===== */
html,
body,
.main-content,
.page-content,
.vertical-menu,
.simplebar-content-wrapper,
.table-responsive,
.modal-body,
.dropdown-menu {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.page-content::-webkit-scrollbar,
.vertical-menu::-webkit-scrollbar,
.simplebar-content-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar,
*::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
	display: none !important;
}

.simplebar-track {
	display: none !important;
}

/* 登录/注册等公开页：强制浅色，不受 localStorage 深色模式影响 */
body.uc-auth-page,
html[data-theme="dark"] body.uc-auth-page {
	background-color: #f7f9ff !important;
	background: #f7f9ff !important;
	color: #1f2329 !important;
}
body.uc-auth-page .nq-auth,
body.uc-auth-page .nq-auth-form {
	background: #fff !important;
	color: #1f2329 !important;
}
body.uc-auth-page .nq-auth {
	background: #f7f9ff !important;
}
body.uc-auth-page .form-control,
html[data-theme="dark"] body.uc-auth-page .form-control,
html[data-theme="dark"] body.uc-auth-page input.form-control,
html[data-theme="dark"] body.uc-auth-page select.form-control {
	background: #f2f3f5 !important;
	color: #1f2329 !important;
	border-color: transparent !important;
}
body.uc-auth-page .form-control::placeholder {
	color: rgba(31, 35, 41, 0.42) !important;
}
body.uc-auth-page label,
body.uc-auth-page .nav-tabs,
body.uc-auth-page .nav-tabs .nav-link,
html[data-theme="dark"] body.uc-auth-page label,
html[data-theme="dark"] body.uc-auth-page .nav-tabs,
html[data-theme="dark"] body.uc-auth-page .nav-tabs .nav-link {
	background: transparent !important;
	color: rgba(31, 35, 41, 0.55) !important;
	border-color: transparent !important;
}
body.uc-auth-page .nav-tabs .nav-link.active,
html[data-theme="dark"] body.uc-auth-page .nav-tabs .nav-link.active {
	color: #1f2329 !important;
}
body.uc-auth-page .nq-auth-actions a,
body.uc-auth-page .nq-auth-agreement,
body.uc-auth-page .nq-auth-footer {
	color: rgba(31, 35, 41, 0.58) !important;
}
html[data-theme="light"] .nq-auth,
html:not([data-theme="dark"]) .nq-auth {
	color-scheme: light;
}
