/* ============================================================
   ThinkAdmin 全局深色主题 — 与运营数据中心配色统一
   作用域：.admin-theme-v2
   ============================================================ */

.admin-theme-v2,
body.admin-theme-v2 {
    --theme-bg: #0b0f17;
    --theme-bg-2: #101827;
    --theme-surface: rgba(18, 24, 38, 0.82);
    --theme-surface-2: rgba(24, 32, 50, 0.92);
    --theme-border: rgba(148, 163, 184, 0.14);
    --theme-border-hover: rgba(94, 234, 212, 0.35);
    --theme-text: #e8edf5;
    --theme-text-muted: #b8c5d6;
    --theme-text-dim: #8b9cb3;
    --theme-accent: #2dd4bf;
    --theme-accent-2: #60a5fa;
    --theme-glow: rgba(45, 212, 191, 0.15);
    --theme-radius: 16px;
    --theme-radius-sm: 12px;
    --theme-font: 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
    color: var(--theme-text) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- 顶栏 ---------- */
.admin-theme-v2.layui-layout-admin > .layui-header {
    height: 50px;
    background: linear-gradient(90deg, rgba(11, 15, 23, 0.98) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(13, 148, 136, 0.22) 100%) !important;
    border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
body.admin-theme-v2 .layui-header .layui-logo {
    color: #ffffff !important;
    border-right-color: var(--theme-border) !important;
    border-bottom-color: var(--theme-border) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
body.admin-theme-v2 .layui-header .layui-logo:hover {
    color: #5eead4 !important;
}
body.admin-theme-v2 .layui-header .layui-logo sup {
    color: #5eead4 !important;
    font-weight: 700;
}
body.admin-theme-v2 .layui-header [data-target-menu-type] .layui-icon {
    color: #f1f5f9 !important;
    font-size: 18px !important;
}
.admin-theme-v2 .layui-header [data-target-menu-type] {
    border-right-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item > a {
    color: var(--theme-text-muted) !important;
    transition: color 0.2s, background 0.2s;
}
.admin-theme-v2 .layui-header .layui-nav-item > a:hover {
    color: var(--theme-accent) !important;
    background: rgba(45, 212, 191, 0.08) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item.layui-this {
    background: rgba(45, 212, 191, 0.18) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item.layui-this > a {
    color: var(--theme-accent) !important;
}
.admin-theme-v2 .layui-header .layui-layout-right > li > a {
    border-left-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item .layui-nav-child {
    background: var(--theme-surface-2) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-sm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.admin-theme-v2 .layui-header .layui-nav-item .layui-nav-child dd a {
    color: var(--theme-text-muted) !important;
    border-top-color: var(--theme-border) !important;
    background: transparent !important;
}
.admin-theme-v2 .layui-header .layui-nav-item .layui-nav-child dd a:hover {
    color: var(--theme-accent) !important;
    background: rgba(45, 212, 191, 0.1) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item .layui-nav-child.layui-show + a {
    background: rgba(45, 212, 191, 0.12) !important;
}
.admin-theme-v2 .layui-header .layui-nav-item .layui-nav-child.layui-show + a span {
    color: var(--theme-accent) !important;
}
.admin-theme-v2 .layui-header .layui-badge {
    background: linear-gradient(135deg, #f97316, #ef4444) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

/* ---------- 侧栏（提高字号与对比度，避免菜单发灰看不清） ---------- */
.admin-theme-v2.layui-layout-admin > .layui-side {
    background: linear-gradient(180deg, #0d111c 0%, #111827 100%) !important;
    border-right: 1px solid var(--theme-border);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.admin-theme-v2 .layui-side .layui-nav-item {
    border-bottom-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-side .layui-nav-item a {
    color: #dce4ef !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.admin-theme-v2 .layui-side .layui-nav-item a .nav-text,
.admin-theme-v2 .layui-side .layui-nav-item a .layui-icon,
.admin-theme-v2 .layui-side .layui-nav-item a [class*="layui-icon"],
.admin-theme-v2 .layui-side .layui-nav-item a [class*="fa"] {
    color: inherit !important;
    opacity: 1 !important;
}
.admin-theme-v2 .layui-side .layui-nav-item a:hover,
.admin-theme-v2 .layui-side .layui-nav-itemed > a {
    color: #ffffff !important;
    background: rgba(45, 212, 191, 0.14) !important;
}
/* 二/三/多层子菜单：覆盖 layui 默认 rgba(255,255,255,.7) 与 #fff 子菜单底 */
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child,
body.admin-theme-v2 .layui-side .layui-nav-itemed > .layui-nav-child {
    background-color: rgba(8, 12, 22, 0.55) !important;
    border: none !important;
    box-shadow: none !important;
}
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child a,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child dd a {
    color: #e8edf5 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 42px !important;
    line-height: 42px !important;
    padding-left: 32px !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child a .nav-text,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child a .nav-icon,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child a .layui-icon {
    color: inherit !important;
    opacity: 1 !important;
}
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child a:hover,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child dd a:hover {
    color: #ffffff !important;
    background-color: rgba(96, 165, 250, 0.18) !important;
}
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-this > a,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child dd.layui-this,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child dd.layui-this a,
body.admin-theme-v2 .layui-side .layui-nav-tree .layui-nav-child dd.layui-this a:hover {
    color: #5eead4 !important;
    font-weight: 600 !important;
    background-color: rgba(45, 212, 191, 0.28) !important;
}
/* 二层分组标题（有三级子项的父级） */
body.admin-theme-v2 .layui-side [data-submenu-layout] > a,
body.admin-theme-v2 .layui-side [data-submenu-layout] > a[style] {
    background: rgba(30, 41, 59, 0.85) !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
body.admin-theme-v2 .layui-side .layui-nav-tree > .layui-nav-item > a {
    color: #eef2f7 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.admin-theme-v2 .layui-side .layui-nav-item .layui-nav-more {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
.admin-theme-v2 .layui-side .layui-nav-itemed > a .layui-nav-more {
    color: #5eead4 !important;
}

/* 顶栏左上角一级类目（必须实色高对比，避免发灰） */
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item > a {
    color: #f8fafc !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item > a span,
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item > a [class*="layui-icon"],
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item > a [class*="fa"] {
    color: inherit !important;
    opacity: 1 !important;
}
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item > a:hover {
    color: #ffffff !important;
    background: rgba(45, 212, 191, 0.12) !important;
}
body.admin-theme-v2 .layui-header .layui-layout-left .layui-nav-item.layui-this > a {
    color: #5eead4 !important;
    font-weight: 700 !important;
}
/* 顶栏右侧：时间/充值/提现等 */
body.admin-theme-v2 .layui-header .layui-layout-right .layui-nav-item > a {
    color: #e8edf5 !important;
    font-weight: 500 !important;
}
body.admin-theme-v2 .layui-header .layui-layout-right .layui-nav-item > a:hover {
    color: #ffffff !important;
}

/* ---------- 主体背景 ---------- */
.admin-theme-v2.layui-layout-admin > .layui-body.layui-bg-gray {
    background-color: var(--theme-bg) !important;
    background-image:
        radial-gradient(ellipse 70% 45% at 10% -5%, rgba(45, 212, 191, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 0%, rgba(96, 165, 250, 0.1), transparent 50%),
        linear-gradient(180deg, var(--theme-bg) 0%, var(--theme-bg-2) 100%) !important;
    font-family: var(--theme-font);
    color: var(--theme-text);
}

/* ---------- 页面卡片壳（main.html） ---------- */
.admin-theme-v2 .layui-body > .layui-card {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0;
}
.admin-theme-v2 .layui-body > .layui-card > .layui-card-header {
    height: 52px;
    line-height: 52px;
    margin: 12px 12px 0;
    padding: 0 20px;
    border-radius: var(--theme-radius-sm) var(--theme-radius-sm) 0 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.88) 100%) !important;
    border: 1px solid var(--theme-border);
    border-bottom: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: var(--theme-text) !important;
    font-weight: 600;
    font-size: 15px;
}
.admin-theme-v2 .layui-body > .layui-card > .layui-card-header .color-desc,
.admin-theme-v2 .layui-body > .layui-card > .layui-card-header .layui-icon {
    color: var(--theme-accent) !important;
}
.admin-theme-v2 .layui-body > .layui-card > .layui-card-body {
    margin: 0 12px 12px;
    padding: 16px !important;
    border-radius: 0 0 var(--theme-radius-sm) var(--theme-radius-sm);
    background: var(--theme-surface) !important;
    border: 1px solid var(--theme-border);
    border-top: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

/* 首页仪表盘：去掉外层卡片感 */
.admin-theme-v2 .layui-card:has(.dash-root) > .layui-card-header {
    display: none !important;
}
.admin-theme-v2 .layui-card:has(.dash-root),
.admin-theme-v2 .layui-card-body:has(.dash-root) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- 内容面板 ---------- */
.admin-theme-v2 .think-box-shadow {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 18px 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- 搜索表单 ---------- */
.admin-theme-v2 .form-search {
    border-color: var(--theme-border) !important;
    background: rgba(11, 15, 23, 0.45);
    border-radius: var(--theme-radius-sm);
}
.admin-theme-v2 .form-search .layui-form-label {
    color: var(--theme-text-muted) !important;
    background: rgba(30, 41, 59, 0.65) !important;
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .form-search .layui-input,
.admin-theme-v2 .form-search .layui-select,
.admin-theme-v2 .layui-form .layui-input,
.admin-theme-v2 .layui-form .layui-textarea,
.admin-theme-v2 .layui-form select {
    color: var(--theme-text) !important;
    background: rgba(11, 15, 23, 0.75) !important;
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .form-search .layui-input:focus,
.admin-theme-v2 .layui-form .layui-input:focus,
.admin-theme-v2 .layui-form .layui-textarea:focus {
    border-color: var(--theme-border-hover) !important;
    box-shadow: 0 0 0 2px var(--theme-glow);
}
.admin-theme-v2 .layui-form-select dl {
    background: #1a2332 !important;
    background-color: #1a2332 !important;
    border-color: var(--theme-border) !important;
    z-index: 99999 !important;
    max-height: 360px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
.admin-theme-v2 .layui-form-select dl dt {
    color: #64748b !important;
    font-size: 12px !important;
}
.admin-theme-v2 .layui-form-select dl dd {
    color: #e8edf5 !important;
}
.admin-theme-v2 .layui-form-select dl dd:hover,
.admin-theme-v2 .layui-form-select dl dd.layui-this {
    background: rgba(45, 212, 191, 0.22) !important;
    color: #5eead4 !important;
}

/* ---------- 删除按钮：红底白字（仅此一项，其余按钮保持 Layui 原样） ---------- */
body.admin-theme-v2 a.layui-btn[onclick*="del_"],
body.admin-theme-v2 a.layui-btn[onClick*="del_"],
body.admin-theme-v2 button.layui-btn[onclick*="del_"],
body.admin-theme-v2 button.layui-btn[onClick*="del_"],
body.admin-theme-v2 a.layui-btn.layui-btn-danger[data-action],
body.admin-theme-v2 a.layui-btn.btn-del-rule,
body.admin-theme-v2 button.layui-btn.btn-del-rule,
body.admin-theme-v2 #imDelThreadBtn {
    background: #e53935 !important;
    background-color: #e53935 !important;
    color: #ffffff !important;
    border-color: #e53935 !important;
}
body.admin-theme-v2 a.layui-btn[onclick*="del_"]:hover,
body.admin-theme-v2 a.layui-btn[onClick*="del_"]:hover,
body.admin-theme-v2 button.layui-btn[onclick*="del_"]:hover,
body.admin-theme-v2 button.layui-btn[onClick*="del_"]:hover,
body.admin-theme-v2 a.layui-btn.layui-btn-danger[data-action]:hover,
body.admin-theme-v2 a.layui-btn.btn-del-rule:hover,
body.admin-theme-v2 button.layui-btn.btn-del-rule:hover,
body.admin-theme-v2 #imDelThreadBtn:hover {
    background: #c62828 !important;
    background-color: #c62828 !important;
    color: #ffffff !important;
}
/* 防止全局链接色污染按钮文字 */
body.admin-theme-v2 a.layui-btn {
    text-decoration: none;
}

/* ---------- 帮助中心等：覆盖模板内联浅白底（#fff7ed 等） ---------- */
body.admin-theme-v2 .theme-tip-card,
body.admin-theme-v2 .layui-card[style*="fff7ed"],
body.admin-theme-v2 .think-box-shadow > .layui-card {
    background: rgba(249, 115, 22, 0.1) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}
body.admin-theme-v2 .theme-tip-card .layui-card-body,
body.admin-theme-v2 .layui-card[style*="fff7ed"] .layui-card-body {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .theme-tip-card-title {
    color: #fb923c !important;
}
body.admin-theme-v2 .layui-table tbody tr.theme-row-marquee,
body.admin-theme-v2 .layui-table tbody tr[style*="fff7ed"],
body.admin-theme-v2 .layui-table tbody tr[style*="fff7ed"] td {
    background-color: rgba(249, 115, 22, 0.14) !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-table tbody tr.theme-row-marquee .layui-badge {
    color: #fff !important;
}
body.admin-theme-v2 p[style*="fff7ed"],
body.admin-theme-v2 .layui-word-aux[style*="fff7ed"] {
    background: rgba(249, 115, 22, 0.12) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
    color: #fcd34d !important;
}

/* ---------- 表格（覆盖 layui 默认 #fff 底、#f2f2f2 行悬停/斑马纹） ---------- */
.admin-theme-v2 .layui-table,
.admin-theme-v2 .layui-table-view .layui-table,
.admin-theme-v2 .layui-table.layui-table-hover {
    background-color: transparent !important;
    color: var(--theme-text) !important;
}
.admin-theme-v2 .layui-table thead tr,
.admin-theme-v2 .layui-table-header,
.admin-theme-v2 .layui-table-fixed .layui-table-header,
.admin-theme-v2 .layui-table thead tr th {
    background: rgba(30, 41, 59, 0.85) !important;
    background-color: rgba(30, 41, 59, 0.85) !important;
}
.admin-theme-v2 .layui-table th {
    color: var(--theme-text-muted) !important;
    font-weight: 600;
    border-color: var(--theme-border) !important;
    background: transparent !important;
    background-color: transparent !important;
}
.admin-theme-v2 .layui-table td {
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
    background-color: transparent !important;
}
/* 斑马纹行（layui lay-even） */
.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even),
.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even) td {
    background-color: rgba(30, 41, 59, 0.35) !important;
}
/* 行悬停：layui skin:row 在 mouseenter 时给 tr 加 .layui-table-hover（非 :hover 伪类！） */
body.admin-theme-v2 tr.layui-table-hover,
body.admin-theme-v2 tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table tbody tr:hover,
body.admin-theme-v2 .layui-table tbody tr:hover > td,
body.admin-theme-v2 .layui-table tbody tr.layui-table-hover,
body.admin-theme-v2 .layui-table tbody tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table tbody tr.layui-table-click,
body.admin-theme-v2 .layui-table tbody tr.layui-table-click > td,
body.admin-theme-v2 .layui-table-view .layui-table tbody tr.layui-table-hover,
body.admin-theme-v2 .layui-table-view .layui-table tbody tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table-view .layui-table tbody tr:hover,
body.admin-theme-v2 .layui-table-view .layui-table tbody tr:hover > td,
body.admin-theme-v2 .layui-table-fixed .layui-table tbody tr.layui-table-hover,
body.admin-theme-v2 .layui-table-fixed .layui-table tbody tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table-fixed .layui-table tbody tr:hover,
body.admin-theme-v2 .layui-table-fixed .layui-table tbody tr:hover > td,
body.admin-theme-v2 .layui-table-fixed-r .layui-table tbody tr.layui-table-hover,
body.admin-theme-v2 .layui-table-fixed-r .layui-table tbody tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table-fixed-l .layui-table tbody tr.layui-table-hover,
body.admin-theme-v2 .layui-table-fixed-l .layui-table tbody tr.layui-table-hover > td,
body.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even).layui-table-hover,
body.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even).layui-table-hover > td,
body.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even):hover,
body.admin-theme-v2 .layui-table[lay-even] tbody tr:nth-child(even):hover > td {
    background-color: rgba(45, 212, 191, 0.16) !important;
    color: #e8edf5 !important;
}
/* table 标签上的 layui-table-hover 仅表示启用行悬停，不要铺白底 */
body.admin-theme-v2 table.layui-table.layui-table-hover {
    background-color: transparent !important;
}
.admin-theme-v2 .layui-table-view,
.admin-theme-v2 .layui-table-box,
.admin-theme-v2 .layui-table-body,
.admin-theme-v2 .layui-table-main,
.admin-theme-v2 .layui-table-fixed-r,
.admin-theme-v2 .layui-table-fixed-l {
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-table-fixed-r,
.admin-theme-v2 .layui-table-fixed-l {
    box-shadow: none !important;
}
.admin-theme-v2 .layui-table-page {
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-table-page .layui-laypage a,
.admin-theme-v2 .layui-table-page .layui-laypage span {
    color: var(--theme-text-muted) !important;
    background: rgba(11, 15, 23, 0.6) !important;
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .layui-table-page .layui-laypage .layui-laypage-curr em {
    background: var(--theme-accent) !important;
    color: #0b0f17 !important;
}

/* ---------- 分页 ---------- */
.admin-theme-v2 .pagination-container > span {
    color: var(--theme-text-dim) !important;
}
.admin-theme-v2 .pagination-container > ul > li > a,
.admin-theme-v2 .pagination-container > ul > li > span {
    color: var(--theme-text-muted) !important;
    background: rgba(11, 15, 23, 0.6) !important;
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .pagination-container > ul > li > a:hover {
    background: rgba(45, 212, 191, 0.12) !important;
    border-color: var(--theme-border-hover) !important;
    color: var(--theme-accent) !important;
}
.admin-theme-v2 .pagination-container > ul > li.active > span {
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: #0b0f17 !important;
}
.admin-theme-v2 .pagination-container > ul > li > span {
    background: rgba(30, 41, 59, 0.5) !important;
}

/* ---------- 空数据 ---------- */
.admin-theme-v2 .notdata {
    color: var(--theme-text-dim) !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border-color: var(--theme-border) !important;
    border-radius: var(--theme-radius-sm);
}

/* ---------- 复选框 ---------- */
.admin-theme-v2 .think-checkbox input[type=checkbox],
.admin-theme-v2 .think-radio input[type=radio] {
    background: rgba(11, 15, 23, 0.8) !important;
    border-color: var(--theme-border) !important;
}
.admin-theme-v2 .think-checkbox input[type=checkbox]:checked:after {
    color: var(--theme-accent) !important;
}

/* ---------- 弹层（layer）与编辑表单（全局） ---------- */
body.admin-theme-v2 .layui-layer {
    background: var(--theme-surface-2) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-sm) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
}
body.admin-theme-v2 .layui-layer-title {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95)) !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid var(--theme-border) !important;
}
body.admin-theme-v2 .layui-layer-content {
    background: rgba(15, 23, 42, 0.96) !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-layer-btn {
    background: rgba(11, 15, 23, 0.95) !important;
    border-top: 1px solid var(--theme-border) !important;
}
body.admin-theme-v2 .layui-layer-btn a {
    border-radius: 8px !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-layer-dialog .layui-layer-content {
    color: #e8edf5 !important;
}

/* 编辑页 / 弹窗内表单 */
body.admin-theme-v2 .layui-form.layui-card,
body.admin-theme-v2 .layui-layer-content .layui-form,
body.admin-theme-v2 .layui-layer-content .layui-card {
    background: transparent !important;
    box-shadow: none !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-form .layui-card-body,
body.admin-theme-v2 .layui-layer-content .layui-card-body {
    background: transparent !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-form-label,
body.admin-theme-v2 .layui-form .layui-form-label {
    color: #d4dde8 !important;
}
body.admin-theme-v2 .layui-form-pane .layui-form-label {
    color: #e8edf5 !important;
    background-color: rgba(30, 41, 59, 0.75) !important;
    border-color: var(--theme-border) !important;
}
body.admin-theme-v2 .layui-form-pane .layui-input,
body.admin-theme-v2 .layui-form-pane select,
body.admin-theme-v2 .layui-form-pane .layui-textarea {
    border-color: var(--theme-border) !important;
}
body.admin-theme-v2 .layui-form-item .layui-input-block,
body.admin-theme-v2 .layui-form-item label span,
body.admin-theme-v2 .layui-form-item label.relative {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .label-prev,
body.admin-theme-v2 .layui-form-item .block.relative > span {
    color: #c8d3e3 !important;
}
body.admin-theme-v2 ::placeholder,
body.admin-theme-v2 ::-webkit-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
body.admin-theme-v2 .layui-form-select .layui-edge {
    border-top-color: #94a3b8 !important;
}
body.admin-theme-v2 .layui-form-radio,
body.admin-theme-v2 .layui-form-radio * {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-form-radioed,
body.admin-theme-v2 .layui-form-radioed i {
    color: var(--theme-accent) !important;
}
body.admin-theme-v2 .layui-form-checkbox[lay-skin=primary] span,
body.admin-theme-v2 .layui-form-checkbox span {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-form-onswitch {
    border-color: var(--theme-accent) !important;
    background-color: var(--theme-accent) !important;
}
body.admin-theme-v2 .layui-form-switch em {
    color: #0b0f17 !important;
}
body.admin-theme-v2 .layui-disabled,
body.admin-theme-v2 .layui-disabled:hover {
    color: #8b9cb3 !important;
    background-color: rgba(30, 41, 59, 0.5) !important;
}

/* 表单内 Tab */
body.admin-theme-v2 .layui-tab-card {
    border-color: var(--theme-border) !important;
    box-shadow: none !important;
}
body.admin-theme-v2 .layui-tab-card > .layui-tab-title {
    background: rgba(30, 41, 59, 0.85) !important;
    border-bottom-color: var(--theme-border) !important;
}
body.admin-theme-v2 .layui-tab-card > .layui-tab-title li {
    color: #94a3b8 !important;
}
body.admin-theme-v2 .layui-tab-card > .layui-tab-title .layui-this {
    color: #5eead4 !important;
    background: rgba(45, 212, 191, 0.12) !important;
}
body.admin-theme-v2 .layui-tab-card > .layui-tab-content {
    background: rgba(11, 15, 23, 0.35) !important;
    color: #e8edf5 !important;
}

/* 通用文字色工具类（编辑页常用） */
body.admin-theme-v2 .color-text { color: #e8edf5 !important; }
body.admin-theme-v2 .color-desc { color: #94a3b8 !important; }
body.admin-theme-v2 .color-green { color: #4ade80 !important; }
body.admin-theme-v2 .color-blue { color: #60a5fa !important; }
body.admin-theme-v2 .color-red { color: #f87171 !important; }
body.admin-theme-v2 .help-block,
body.admin-theme-v2 .layui-word-aux {
    color: #94a3b8 !important;
}
body.admin-theme-v2 fieldset {
    border-color: var(--theme-border) !important;
    background: rgba(11, 15, 23, 0.35) !important;
}
body.admin-theme-v2 fieldset legend {
    color: #d4dde8 !important;
}

/* 旧版白底容器：深色主题下勿用白底+浅色字 */
body.admin-theme-v2 .think-bg-white {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 18px 18px !important;
    color: #e8edf5 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.admin-theme-v2 .think-bg-white .layui-table,
body.admin-theme-v2 .think-box-shadow .layui-table,
body.admin-theme-v2 .theme-module-menu .layui-table {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .think-bg-white .layui-elem-quote,
body.admin-theme-v2 .think-box-shadow .layui-elem-quote,
body.admin-theme-v2 .theme-module-menu .layui-elem-quote {
    background: rgba(30, 41, 59, 0.55) !important;
    border-color: var(--theme-border) !important;
    color: #94a3b8 !important;
}
body.admin-theme-v2 .list-sort-input {
    color: #e8edf5 !important;
    background: rgba(11, 15, 23, 0.75) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 4px;
    text-align: center;
}
body.admin-theme-v2 .list-sort-input:focus {
    border-color: rgba(45, 212, 191, 0.45) !important;
    outline: none;
}

/* 账变等内嵌页：think-box-shadow 内标题/表格空状态 */
body.admin-theme-v2 .think-box-shadow {
    color: #e8edf5 !important;
}
body.admin-theme-v2 .think-box-shadow > .layui-card-header {
    color: #e8edf5 !important;
    background: rgba(30, 41, 59, 0.72) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    padding: 12px 16px !important;
    line-height: 1.6 !important;
    height: auto !important;
}
body.admin-theme-v2 .think-box-shadow > .layui-card-header span,
body.admin-theme-v2 .think-box-shadow > .layui-card-header .color-desc {
    color: #94a3b8 !important;
}
body.admin-theme-v2 .think-box-shadow .layui-tab-title li {
    color: #94a3b8 !important;
}
body.admin-theme-v2 .think-box-shadow .layui-tab-title .layui-this {
    color: #5eead4 !important;
}
body.admin-theme-v2 .layui-table-view .layui-none,
body.admin-theme-v2 .layui-table-main .layui-none {
    color: #94a3b8 !important;
    background: transparent !important;
}
body.admin-theme-v2 .layui-table-total,
body.admin-theme-v2 .layui-table-total td,
body.admin-theme-v2 .layui-table-total .layui-table-cell {
    color: #e8edf5 !important;
    background: rgba(30, 41, 59, 0.55) !important;
}
body.admin-theme-v2 .form-search .layui-btn-primary {
    color: #e8edf5 !important;
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: var(--theme-border) !important;
}
body.admin-theme-v2 .form-search .layui-btn-primary:hover {
    color: #5eead4 !important;
    border-color: rgba(45, 212, 191, 0.45) !important;
}
body.admin-theme-v2 blockquote {
    border-left-color: var(--theme-accent) !important;
    background: rgba(30, 41, 59, 0.45) !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .layui-card:not(.layui-body > .layui-card) {
    background: rgba(18, 24, 38, 0.75) !important;
    color: #e8edf5 !important;
    border-color: var(--theme-border) !important;
}
body.admin-theme-v2 .layui-bg-gray {
    background-color: rgba(30, 41, 59, 0.45) !important;
    color: #e8edf5 !important;
}

/* 各模块表单内联浅色块覆盖 */
body.admin-theme-v2 .agent-form-ft,
body.admin-theme-v2 .welcome-form-ft,
body.admin-theme-v2 .agent-form-tip,
body.admin-theme-v2 .agent-cs-card .cs-card-hd {
    border-color: var(--theme-border) !important;
}
body.admin-theme-v2 .agent-form-ft,
body.admin-theme-v2 .welcome-form-ft {
    background: rgba(11, 15, 23, 0.85) !important;
}
body.admin-theme-v2 .agent-form-tip {
    background: rgba(234, 88, 12, 0.12) !important;
    color: #fdba74 !important;
    border-left-color: #ea580c !important;
}
body.admin-theme-v2 .agent-cs-card {
    background: rgba(30, 41, 59, 0.45) !important;
    border: 1px solid var(--theme-border) !important;
}
body.admin-theme-v2 .agent-cs-card .cs-card-hd {
    color: #5eead4 !important;
}
body.admin-theme-v2 .label-required:after,
body.admin-theme-v2 .label-required-next:after,
body.admin-theme-v2 .label-required-prev:before {
    color: #f87171 !important;
}
/* 普通链接提亮；按钮链接不走此规则，避免编辑/删除字色被覆盖 */
body.admin-theme-v2 a:not(.layui-btn) {
    color: #60a5fa !important;
}
body.admin-theme-v2 a:not(.layui-btn):hover {
    color: #5eead4 !important;
}

/* ---------- 滚动条 ---------- */
.admin-theme-v2 ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.admin-theme-v2 ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
.admin-theme-v2 ::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.35);
}
.admin-theme-v2 ::-webkit-scrollbar-track {
    background: rgba(11, 15, 23, 0.4);
}

/* ============================================================
   模块：会员列表
   ============================================================ */
.admin-theme-v2 .theme-module-users {
    position: relative;
}
.admin-theme-v2 .theme-module-users::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--theme-radius-sm) var(--theme-radius-sm) 0 0;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
    opacity: 0.85;
}
.admin-theme-v2 .theme-module-users .form-search {
    margin-bottom: 14px;
    padding: 12px 12px 4px !important;
}
.admin-theme-v2 .theme-module-users .layui-table {
    margin-top: 12px !important;
    border-radius: var(--theme-radius-sm);
    overflow: hidden;
}
.admin-theme-v2 .theme-module-users .layui-table thead tr {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 118, 110, 0.25)) !important;
}
.admin-theme-v2 .theme-module-users .layui-table td .layui-btn-xs {
    border-radius: 6px;
    margin-bottom: 2px;
}
.admin-theme-v2 .theme-module-users .pagination-container {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--theme-border);
}
/* 固定列：恢复左右悬浮，用实色底消除 UID/操作列重影 */
body.admin-theme-v2 .theme-module-users .layui-table td,
body.admin-theme-v2 .theme-module-users .layui-table th,
body.admin-theme-v2 .theme-module-users .layui-table-view .layui-table-cell {
    text-shadow: none !important;
}
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r {
    background: #121a2b !important;
    box-shadow: none !important;
}
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l {
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.35) !important;
}
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r {
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.35) !important;
}
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l .layui-table,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r .layui-table,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l td,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l th,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r td,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r th,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l .layui-table-header,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r .layui-table-header {
    background-color: #121a2b !important;
    color: #e8edf5 !important;
}
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r tr.layui-table-hover td,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l tr.layui-table-hover td,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-r tr:hover td,
body.admin-theme-v2 .theme-module-users .layui-table-fixed-l tr:hover td {
    background-color: rgba(45, 212, 191, 0.16) !important;
}
/* 账号（邮箱）完整显示，不截断、不需点击查看 */
body.admin-theme-v2 .theme-module-users .theme-cell-account,
body.admin-theme-v2 .theme-module-users .layui-table-cell[data-field="tel"] {
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    min-height: 28px;
}
body.admin-theme-v2 .theme-module-users .theme-cell-time,
body.admin-theme-v2 .theme-module-users .layui-table-cell[data-field="addtime"] {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    line-height: 1.45 !important;
}
/* 会员列表表头：允许换行，避免多列标题都显示成「累计充值…」 */
body.admin-theme-v2 .theme-module-users .layui-table-view .layui-table-header .layui-table-cell {
    white-space: normal !important;
    line-height: 1.35 !important;
    height: auto !important;
    min-height: 38px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all;
}
body.admin-theme-v2 .theme-module-users .layui-table-view .layui-table-header th {
    height: auto !important;
}
body.admin-theme-v2 .theme-module-users .theme-th-msg .layui-table-cell {
    font-size: 12px;
}

/* ---------- KYC 审核工作台：搜索区对比度增强 ---------- */
.admin-theme-v2 .theme-module-kyc .form-search {
    padding: 12px 12px 4px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
.admin-theme-v2 .theme-module-kyc .form-search .layui-form-label {
    color: #e2e8f0 !important;
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    font-weight: 500;
}
.admin-theme-v2 .theme-module-kyc .form-search .layui-input,
.admin-theme-v2 .theme-module-kyc .form-search .layui-form-select .layui-input {
    color: #f1f5f9 !important;
    background: rgba(11, 15, 23, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}
.admin-theme-v2 .theme-module-kyc .form-search .layui-form-select .layui-edge {
    border-top-color: #94a3b8 !important;
}
.admin-theme-v2 .theme-module-kyc .form-search .layui-input::placeholder {
    color: #94a3b8 !important;
}
.admin-theme-v2 .theme-module-kyc .form-search .layui-input-inline {
    min-width: 140px;
}

/* 列表页自动刷新提示 */
.admin-auto-refresh-tip {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    font-size: 12px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    pointer-events: none;
    max-width: 280px;
    line-height: 1.4;
}
body.admin-theme-v2 .admin-auto-refresh-tip {
    background: rgba(30, 41, 59, 0.92);
    color: #94a3b8;
    border-color: #334155;
}
