/* ============================================================
   森网归档系统 V1.0.7 深色科技渐变 UI
   配色：深蓝 #070b1a / 极光蓝 #22d3ee / 渐变紫 #8b5cf6
   移植自「铂胜门店管理系统」global.css + admin.css 视觉体系
   ============================================================ */
:root {
    --bg-deep: #070b1a;
    --bg-panel: rgba(20, 28, 56, .72);
    --bg-card: rgba(255, 255, 255, .04);
    --bg-card-hover: rgba(64, 120, 255, .10);
    --line: rgba(120, 160, 255, .16);
    --line-strong: rgba(96, 165, 250, .45);
    --txt: #e8edff;
    --txt-dim: #93a0c4;
    --txt-faint: #66729a;
    --blue: #3b82f6;
    --aurora: #22d3ee;
    --purple: #8b5cf6;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --grad-main: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
    --grad-aurora: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --glow: 0 0 24px rgba(59, 130, 246, .35);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
    color: var(--txt);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(59, 130, 246, .22), transparent 60%),
        radial-gradient(1000px 500px at 95% 0%, rgba(139, 92, 246, .20), transparent 55%),
        radial-gradient(900px 700px at 50% 110%, rgba(34, 211, 238, .12), transparent 60%),
        var(--bg-deep);
    background-attachment: fixed;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--aurora); text-decoration: none; transition: .2s; }
a:hover { color: #7dd3fc; text-shadow: 0 0 12px rgba(34,211,238,.5); }

mark { background: #fbbf24; color: #04121f; padding: 0 2px; border-radius: 2px; }

/* ==================== 滚动条美化 ==================== */
* { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(10, 16, 38, .4); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59,130,246,.45), rgba(139,92,246,.45));
    border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59,130,246,.75), rgba(139,92,246,.75));
    background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

/* ==================== 登录页 ==================== */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(1000px 500px at 20% 10%, rgba(34,211,238,.18), transparent 60%),
        radial-gradient(900px 600px at 85% 90%, rgba(139,92,246,.20), transparent 55%),
        linear-gradient(160deg, #0a1130 0%, #070b1a 60%, #0c1430 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.login-card {
    background: linear-gradient(160deg, rgba(24,34,68,.92), rgba(12,18,40,.94));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,.18), inset 0 1px 0 rgba(255,255,255,.06);
    max-width: 460px;
    width: 100%;
    padding: 44px 40px;
    animation: fadeInUp 0.3s ease-out;
    position: relative;
    z-index: 1;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-header { text-align: center; margin-bottom: 32px; }
.logo {
    width: 84px; height: 84px;
    background: var(--grad-main);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 0 36px rgba(59,130,246,.55);
    overflow: hidden;
}
.logo svg { filter: drop-shadow(0 0 8px rgba(255,255,255,.3)); }
.login-header h1 { color: var(--txt); font-size: 25px; font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.subtitle { color: var(--txt-dim); font-size: 14px; }
.error-msg {
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); color: #fca5a5;
    padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px;
}
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; color: var(--txt-dim); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-control {
    width: 100%; padding: 12px 16px;
    background: rgba(8, 14, 34, .7);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--txt);
    font-size: 14px; font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus, .form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 0 16px rgba(59,130,246,.25);
    background: rgba(10, 18, 42, .9);
}
.form-group input::placeholder, .form-control::placeholder { color: var(--txt-faint); }
.form-group input[disabled], .form-group input[readonly] {
    background: rgba(255,255,255,.05); color: var(--txt-faint); cursor: not-allowed;
}
.login-input-group { position: relative; }
.login-input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 16px; pointer-events: none; z-index: 1;
}
.login-input-group input { padding-left: 42px; }
.login-page .btn-primary {
    width: 100%; padding: 13px;
    background: var(--grad-main);
    color: white; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.login-page .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79,70,229,.5); }
.login-page .btn-primary:active:not(:disabled) { transform: translateY(0); }
.login-page .btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.login-footer-section {
    margin-top: 24px; padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.login-footer-row {
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.login-footer-notice { font-size: 12px; color: #fbbf24; letter-spacing: .5px; }
.login-footer-visit { font-size: 12px; color: var(--txt-dim); }
.login-footer-visit strong { color: var(--aurora); font-size: 13px; }
.login-footer-copyright { font-size: 11px; color: var(--txt-faint); }
.login-info-bar { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.login-info-item { color: var(--txt-dim); font-size: 11px; }
.login-info-sep { color: var(--txt-faint); font-size: 11px; }

/* ==================== 后台布局 ==================== */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
    width: 232px; flex-shrink: 0;
    background: linear-gradient(180deg, rgba(13, 20, 44, .96), rgba(9, 13, 30, .96));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transition: transform .25s;
}
.sidebar-header {
    padding: 18px 16px;
    display: flex; align-items: center; gap: 11px;
    border-bottom: 1px solid var(--line);
}
.sidebar-header h2 { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logo {
    width: 38px; height: 38px; border-radius: 10px; object-fit: contain; flex-shrink: 0;
    box-shadow: var(--glow);
}
.sidebar-logo-placeholder {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--grad-main);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; flex-shrink: 0;
    box-shadow: var(--glow);
}
.sidebar-brand-ver { font-size: 11px; color: var(--txt-faint); font-weight: 400; margin-top: 1px; }

/* 菜单 */
.nav-menu { list-style: none; flex: 1; padding: 12px 10px; overflow-y: auto; overflow-x: hidden; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    cursor: pointer; transition: .18s; margin: 2px 0;
    font-size: 13.5px; color: var(--txt-dim);
    text-decoration: none; user-select: none;
}
.nav-item .nav-icon, .nav-item > span:first-child {
    width: 18px; text-align: center; font-size: 15px; flex-shrink: 0;
}
.nav-item:hover { background: rgba(59,130,246,.12); color: var(--txt); }
.nav-item.active {
    background: var(--grad-main); color: #fff;
    box-shadow: 0 4px 18px rgba(59,130,246,.4);
}
/* 分组父菜单 */
.nav-item.parent { color: var(--txt-dim); font-weight: 600; font-size: 13px; }
.nav-item.parent.active-parent { color: #93c5fd; }
.nav-arrow { margin-left: auto; font-size: 10px; transition: transform .2s; }
.nav-group.open .nav-arrow { transform: rotate(90deg); }
.nav-sub { padding-left: 14px; display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-item { font-size: 13px; padding: 8px 14px; }

/* 侧栏底部 */
.sidebar-footer {
    padding: 12px 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-foot-note {
    padding: 10px 16px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--txt-faint); line-height: 1.7;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
    font-size: 13px; font-weight: 600; color: var(--txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--aurora); margin-top: 1px; }
.btn-logout {
    padding: 7px 14px;
    border: 1px solid rgba(239,68,68,.5);
    background: rgba(239,68,68,.12);
    color: #fca5a5; border-radius: 8px; cursor: pointer; font-size: 12px;
    transition: .2s; flex-shrink: 0;
}
.btn-logout:hover { background: linear-gradient(135deg,#dc2626,#b91c1c); color: #fff; box-shadow: 0 0 18px rgba(239,68,68,.45); }

/* ==================== 顶栏 ==================== */
.topbar {
    height: 60px; flex-shrink: 0; display: flex; align-items: center; gap: 14px;
    padding: 0 22px; background: rgba(10, 15, 36, .78);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 90;
}
.menu-toggle {
    display: none; font-size: 20px; cursor: pointer; color: var(--txt-dim);
    width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px;
    transition: .18s; flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(59,130,246,.14); color: var(--txt); }
.tb-title { font-size: 16px; font-weight: 600; color: var(--txt); white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* 顶栏全局搜索 */
.tb-search { position: relative; }
.tb-search .global-search-input {
    width: 220px; padding: 8px 14px 8px 34px;
    background: rgba(8, 14, 34, .7); border: 1px solid var(--line);
    border-radius: 10px; color: var(--txt); font-size: 13px;
    transition: .2s; font-family: inherit;
}
.tb-search .global-search-input:focus {
    outline: none; border-color: var(--blue); width: 280px;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 0 16px rgba(59,130,246,.25);
    background: rgba(10, 18, 42, .9);
}
.tb-search .global-search-input::placeholder { color: var(--txt-faint); }
.tb-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
.tb-user { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--txt-dim); }
.tb-user .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad-aurora); color: #04121f;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; flex-shrink: 0;
    box-shadow: 0 0 14px rgba(34,211,238,.35);
}
.tb-user .tb-user-name { color: var(--txt); font-weight: 600; line-height: 1.2; }
.tb-user .tb-user-role { font-size: 11px; color: var(--txt-faint); }
.tb-role-badge {
    display: inline-block; padding: 1px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 600; margin-left: 5px;
    color: var(--aurora); border: 1px solid rgba(34,211,238,.4); background: rgba(34,211,238,.1);
}
.tb-logout-btn {
    padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
    color: var(--txt); font-size: 12.5px; cursor: pointer; transition: .22s; white-space: nowrap;
}
.tb-logout-btn:hover { background: var(--grad-main); box-shadow: var(--glow); }

/* 旧侧栏搜索容器（V1.0.7 起搜索移至顶栏，保留类名兼容） */
.global-search-container { display: none; }
.global-search-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; background: rgba(8, 14, 34, .7); color: var(--txt);
    transition: all 0.2s;
}
.global-search-input:focus {
    outline: none; border-color: var(--blue);
    background: rgba(10, 18, 42, .9);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.global-search-input::placeholder { color: var(--txt-faint); }

/* 搜索结果下拉面板 */
.search-results-panel {
    position: fixed; top: 64px; right: 22px;
    background: linear-gradient(160deg, rgba(24,34,68,.97), rgba(12,18,40,.97));
    backdrop-filter: blur(16px);
    max-height: 70vh; overflow-y: auto;
    box-shadow: 0 16px 50px rgba(0,0,0,.5), var(--glow);
    border: 1px solid var(--line-strong);
    z-index: 999;
    border-radius: 14px;
    width: 520px; max-width: calc(100vw - 44px);
}
.search-section { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search-section-title { font-size: 12px; color: var(--aurora); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; letter-spacing: .5px; }
.search-item { padding: 9px 12px; cursor: pointer; border-radius: 8px; transition: background .15s; }
.search-item:hover { background: var(--bg-card-hover); }
.search-item-title { font-size: 14px; color: var(--txt); }
.search-item-sub { font-size: 12px; color: var(--txt-dim); margin-top: 3px; }
.search-item-sub span[style*="background"] { opacity: .9; }

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1; margin-left: 232px;
    min-height: 100vh; min-width: 0;
    display: flex; flex-direction: column;
}
.main-content > #page-content { flex: 1; padding: 24px; }
.main-content h1 { color: var(--txt); margin-bottom: 20px; }

/* ==================== 页面标题 ==================== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.page-header h1 { margin-bottom: 0; font-weight: 700; font-size: 21px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--txt); }
.page-title small { color: var(--txt-faint); font-size: 13px; font-weight: 400; margin-left: 10px; }
.page-subtitle { font-size: 13px; color: var(--txt-faint); margin-left: 12px; font-weight: 400; }
.page-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }

.loading { text-align: center; padding: 40px; color: var(--txt-dim); font-size: 14px; }
.empty-text { text-align: center; padding: 24px; color: var(--txt-faint); font-size: 14px; }
.text-muted { color: var(--txt-dim); font-size: 13px; }
.text-mono { font-family: 'Consolas', 'Courier New', monospace; font-size: 12px; color: var(--txt-dim); }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================== 通用卡片 ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    margin-bottom: 20px; overflow: hidden;
    position: relative;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: rgba(96,165,250,.3); }
.card-header {
    padding: 15px 20px; border-bottom: 1px solid var(--line);
    background: rgba(59,130,246,.07);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-header h3 { font-size: 15px; color: var(--txt); font-weight: 600; }
.card-body { padding: 16px 20px; color: var(--txt); }
.card-title {
    font-size: 16px; font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.card-title::before {
    content: ""; width: 4px; height: 18px; border-radius: 2px;
    background: var(--grad-aurora); box-shadow: 0 0 10px rgba(34,211,238,.7);
}
.section-title {
    font-size: 16px; font-weight: 700; color: var(--txt);
    margin: 8px 0 14px; padding-left: 12px;
    border-left: 4px solid var(--blue); line-height: 1.2;
    display: flex; align-items: center; gap: 6px;
}

/* ==================== 欢迎卡（控制台） ==================== */
.welcome-card {
    padding: 28px 26px; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(29,78,216,.25), rgba(124,58,237,.22));
    border: 1px solid rgba(96,165,250,.35);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.welcome-card h2 { font-size: 21px; margin-bottom: 8px; color: var(--txt); }
.welcome-card p { color: var(--txt-dim); }
.welcome-flex { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.welcome-main { flex: 1; min-width: 240px; }
.welcome-sub { color: var(--txt-faint); font-size: 13px; margin-top: 6px; line-height: 2; }
.welcome-sub b { color: var(--aurora); }

/* ==================== 统计卡片 ==================== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--glow), 0 12px 32px rgba(0,0,0,.4); border-color: var(--line-strong); }
.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    flex-shrink: 0;
    background: rgba(59,130,246,.15);
    border: 1px solid var(--line);
}
.stat-info { min-width: 0; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--txt); line-height: 1.1; word-break: break-all; }
.stat-label { font-size: 12.5px; color: var(--txt-dim); margin-top: 4px; }
/* 彩色变体：图标保留发光色调，卡片底统一深色 */
.stat-blue .stat-icon { background: linear-gradient(135deg, rgba(29,78,216,.5), rgba(59,130,246,.4)); border-color: rgba(59,130,246,.45); }
.stat-green .stat-icon { background: linear-gradient(135deg, rgba(22,163,74,.45), rgba(34,197,94,.35)); border-color: rgba(34,197,94,.4); }
.stat-orange .stat-icon { background: linear-gradient(135deg, rgba(234,88,12,.45), rgba(249,115,22,.35)); border-color: rgba(245,158,11,.4); }
.stat-purple .stat-icon { background: linear-gradient(135deg, rgba(124,58,237,.5), rgba(139,92,246,.4)); border-color: rgba(139,92,246,.45); }
.stat-cyan .stat-icon { background: linear-gradient(135deg, rgba(8,145,178,.45), rgba(6,182,212,.35)); border-color: rgba(34,211,238,.4); }
.stat-red .stat-icon { background: linear-gradient(135deg, rgba(220,38,38,.5), rgba(239,68,68,.4)); border-color: rgba(239,68,68,.45); }
.stat-card::after { content: none; }

/* 工作台分区标题 */
.dashboard-section-title {
    font-size: 16px; font-weight: 700; color: var(--txt);
    margin: 4px 0 14px; padding-left: 12px;
    border-left: 4px solid var(--blue); line-height: 1.2;
    display: flex; align-items: center; gap: 6px;
}

/* 工作台双栏 */
.dashboard-row { display: flex; gap: 18px; align-items: flex-start; }
.dashboard-col { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .dashboard-row { flex-direction: column; } }

/* 状态条 */
.status-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.status-bar-label { width: 50px; font-size: 13px; color: var(--txt-dim); }
.status-bar-bg { flex: 1; height: 18px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 10px; transition: width .4s ease; box-shadow: 0 0 10px rgba(59,130,246,.4); }
.status-bar-count { width: 34px; text-align: right; font-size: 13px; font-weight: 600; color: var(--txt); }

/* 类型分布条 */
.type-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.type-name { width: 70px; font-size: 13px; color: var(--txt-dim); }
.type-bar-bg { flex: 1; height: 14px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.type-bar-fill { height: 100%; background: var(--grad-aurora); border-radius: 8px; transition: width .4s ease; box-shadow: 0 0 10px rgba(34,211,238,.4); }
.type-count { width: 34px; text-align: right; font-size: 13px; font-weight: 600; color: var(--txt); }

/* 日志列表 */
.log-list { max-height: 320px; overflow-y: auto; }
.log-item { padding: 9px 0; border-bottom: 1px solid rgba(120,160,255,.08); }
.log-item:last-child { border-bottom: none; }
.log-action { font-size: 13px; font-weight: 600; color: var(--txt); }
.log-detail { font-size: 12px; color: var(--txt-dim); margin-top: 2px; }
.log-time { font-size: 11px; color: var(--txt-faint); margin-top: 2px; }

/* 迷你统计卡 */
.mini-card-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-card {
    flex: 1; min-width: 80px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 10px; text-align: center;
}
.mini-card-num { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--txt); }
.mini-card-label { font-size: 12px; color: var(--txt-dim); margin-top: 4px; }

/* 公告 */
.announcement-item { padding: 12px 0; border-bottom: 1px solid rgba(120,160,255,.08); }
.announcement-item:last-child { border-bottom: none; }
.announcement-title { font-size: 14px; font-weight: 600; color: var(--txt); }
.announcement-content { font-size: 13px; color: var(--txt-dim); margin-top: 4px; line-height: 1.6; white-space: pre-wrap; }
.announcement-time { font-size: 11px; color: var(--txt-faint); margin-top: 4px; }

/* 快捷入口宫格 */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.quick-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 20px 12px; border-radius: 12px; text-decoration: none; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--line);
    transition: .22s; color: var(--txt);
}
.quick-item:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow); color: var(--txt); }
.quick-item .qi-icon { font-size: 26px; }
.quick-item .qi-label { font-size: 13px; color: var(--txt-dim); text-align: center; }

/* 时间线（操作记录） */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--blue), var(--purple)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 5px; width: 11px; height: 11px;
    border-radius: 50%; background: var(--grad-aurora);
    box-shadow: 0 0 0 4px rgba(34,211,238,.16), 0 0 12px rgba(34,211,238,.6); }
.tl-time { font-size: 12.5px; color: var(--txt-faint); }
.tl-type { display: inline-block; margin: 4px 8px 4px 0; }
.tl-content { color: var(--txt-dim); font-size: 13.5px; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
    color: var(--txt); font-size: 14px; cursor: pointer; font-family: inherit;
    transition: .22s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--grad-main); border-color: transparent; box-shadow: var(--glow); transform: translateY(-1px); color: #fff; }
/* 独立色类（未搭配 .btn 基类时）自包含按钮属性 */
.btn-primary, .btn-aurora, .btn-danger, .btn-warn, .btn-secondary, .btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
    font-size: 14px; cursor: pointer; font-family: inherit; line-height: 1.4;
    transition: .22s; text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-primary { background: var(--grad-main); border-color: transparent; color: #fff; font-weight: 600; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(99,102,241,.6); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(99,102,241,.6); }
.btn-aurora { background: var(--grad-aurora); border-color: transparent; color: #04121f; font-weight: 600; }
.btn-aurora:hover { box-shadow: 0 0 28px rgba(34,211,238,.55); color: #04121f; }
.btn-danger { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.12); color: #fca5a5; }
.btn-danger:hover { background: linear-gradient(135deg,#dc2626,#b91c1c); border-color: transparent; box-shadow: 0 0 20px rgba(239,68,68,.5); color: #fff; }
.btn-warn { border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.14); color: #fbbf24; }
.btn-warn:hover { background: linear-gradient(135deg, #d97706, #b45309); border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(245,158,11,.45); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
    padding: 9px 18px;
    background: rgba(255,255,255,.05); color: var(--txt-dim);
    border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
    cursor: pointer; font-family: inherit; transition: all .2s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn-secondary:hover { background: rgba(59,130,246,.14); border-color: var(--line-strong); color: var(--txt); transform: translateY(-1px); }
.btn-link { background: none; border: none; color: var(--aurora); cursor: pointer; font-size: 13px; padding: 4px 8px; font-family: inherit; }
.btn-link:hover { text-decoration: underline; color: #7dd3fc; text-shadow: 0 0 10px rgba(34,211,238,.4); }
.btn-danger-link { color: #fca5a5; }
.btn-danger-link:hover { color: #ef4444; }
.btn-warning-link { color: #fbbf24; }
.btn-success-link { color: #86efac; }

/* 行内操作按钮并排不堆叠 */
.row-actions { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.row-actions .btn { flex: 0 0 auto; padding: 5px 10px; }

/* ==================== 筛选栏 / 搜索栏 ==================== */
.filter-bar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.search-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; align-items: center; }
.search-bar .spacer { flex: 1; }
.filter-input {
    padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; flex: 1; min-width: 200px;
    background: rgba(8, 14, 34, .7); color: var(--txt);
    transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.filter-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.filter-input::placeholder { color: var(--txt-faint); }
.filter-select {
    padding: 9px 36px 9px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; background: rgba(8, 14, 34, .7); color: var(--txt);
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a0c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer; font-family: inherit;
}
.filter-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.filter-select option { background: #111a36; color: var(--txt); }

/* ==================== 表格 ==================== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead { background: rgba(59,130,246,.12); }
.data-table th {
    padding: 12px 14px; text-align: left; font-weight: 600;
    color: #b9c8f5;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(120,160,255,.08);
    color: var(--txt);
}
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .empty, .data-table .empty-text { text-align: center; color: var(--txt-faint); padding: 40px 0; }
.archive-no { font-family: 'Consolas', monospace; font-size: 13px; color: var(--aurora); font-weight: 600; }
.archive-no-badge {
    font-family: 'Consolas', monospace;
    font-size: 14px; font-weight: 800; color: #67e8f9;
    background: rgba(34,211,238,.1);
    padding: 3px 12px; border-radius: 8px;
    border: 1px solid rgba(34,211,238,.4);
    box-shadow: 0 0 12px rgba(34,211,238,.15);
    display: inline-block; white-space: nowrap;
}
.uid-link { font-family: 'Consolas', monospace; color: var(--aurora); }
.action-badge { display: inline-block; padding: 2px 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--txt-dim); }
.file-icon { margin-right: 6px; }

/* ==================== 徽章 / 标签 ==================== */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.7;
    border: 1px solid var(--line); color: var(--txt-dim); background: rgba(255,255,255,.04);
    white-space: nowrap;
}
.badge::before { content: "●"; margin-right: 5px; font-size: 9px; vertical-align: 1px; }
.badge-gray { color: var(--txt-dim); border-color: var(--line); background: rgba(255,255,255,.05); }
.badge-green { color: #86efac; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.badge-orange { color: #fcd34d; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }
.badge-red { color: #fca5a5; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }
.badge-blue { color: #93c5fd; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.1); }
.badge-purple { color: #c4b5fd; border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.1); }
.badge-cyan { color: #67e8f9; border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.1); }
.badge-info { color: #93c5fd; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.1); }
.badge-success { color: #86efac; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.badge-danger { color: #fca5a5; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }
.badge-warning { color: #fcd34d; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }

/* 通用 .tag 系列（门店样板同款） */
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
    border: 1px solid var(--line); color: var(--txt-dim); background: rgba(255,255,255,.04);
    white-space: nowrap; line-height: 1.7;
}
.tag-green { color: #86efac; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.tag-red   { color: #fca5a5; border-color: rgba(239,68,68,.4);  background: rgba(239,68,68,.1); }
.tag-blue  { color: #93c5fd; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.1); }
.tag-warn  { color: #fde68a; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }

.tag-badge {
    display: inline-block; padding: 2px 9px;
    background: rgba(34,211,238,.1); color: #67e8f9;
    border-radius: 6px; font-size: 12px; margin: 2px;
    border: 1px solid rgba(34,211,238,.3);
}

/* 分享权限卡片 */
.perm-card-group { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-card { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.perm-card-lock { background: rgba(245,158,11,.14); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }
.perm-card-download { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.perm-card-captcha { background: rgba(99,102,241,.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,.4); }

/* ==================== 通知铃铛 / 通知列表 ==================== */
.notif-bell { position: relative; cursor: pointer; padding: 7px 10px; border-radius: 8px; transition: background .2s; font-size: 18px; color: var(--txt-dim); }
.notif-bell:hover { background: rgba(59,130,246,.14); color: var(--txt); }
.notif-badge {
    position: absolute; top: -2px; right: 0; min-width: 16px; height: 16px; line-height: 16px;
    text-align: center; background: linear-gradient(135deg,#ef4444,#dc2626); color: #fff;
    border-radius: 8px; font-size: 10px; font-weight: 700; padding: 0 4px;
    box-shadow: 0 0 10px rgba(239,68,68,.6);
}
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
    padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255,255,255,.03);
    transition: all .2s;
}
.notif-item.unread { border-left: 3px solid var(--aurora); background: rgba(34,211,238,.07); }
.notif-item:hover { border-color: var(--line-strong); }
.notif-item-title { font-size: 14px; font-weight: 600; color: var(--txt); margin-bottom: 4px; }
.notif-item-content { font-size: 13px; color: var(--txt-dim); line-height: 1.5; margin-bottom: 4px; }
.notif-item-time { font-size: 11px; color: var(--txt-faint); }
.notif-item-actions { margin-top: 6px; }
.notif-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.notif-item-footer .notif-item-actions { display: flex; gap: 4px; }

/* ==================== 核审管理 ==================== */
.approval-detail-container { display: flex; flex-direction: column; gap: 16px; }
.approval-info-card {
    background: linear-gradient(135deg, rgba(29,78,216,.22), rgba(34,211,238,.12));
    border-radius: 12px; padding: 16px; border: 1px solid rgba(96,165,250,.35);
}
.approval-info-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.approval-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.approval-tag-type { background: var(--grad-main); color: #fff; box-shadow: 0 2px 10px rgba(79,70,229,.4); }
.approval-tag-time { background: rgba(255,255,255,.06); color: var(--txt-dim); font-size: 12px; border: 1px solid var(--line); }
.approval-tag-user { background: rgba(255,255,255,.05); color: var(--txt); font-size: 12px; border: 1px solid var(--line); }
.approval-tag-no { background: rgba(99,102,241,.12); color: #a5b4fc; font-size: 12px; border: 1px solid rgba(99,102,241,.4); font-weight: 600; }
.approval-detail-card {
    background: rgba(255,255,255,.03); border-radius: 12px; padding: 16px;
    border: 1px solid var(--line);
}
.approval-info-row { display: flex; gap: 24px; margin-bottom: 12px; flex-wrap: wrap; }
.info-item { font-size: 13px; color: var(--txt-dim); }
.info-label { color: var(--txt-faint); font-size: 12px; margin-right: 4px; }
.approval-summary {
    background: rgba(34,211,238,.07); border-radius: 8px; padding: 10px 14px;
    margin-bottom: 12px; border-left: 3px solid var(--aurora);
}
.summary-label { font-size: 11px; color: var(--aurora); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.summary-content { font-size: 14px; color: var(--txt); line-height: 1.5; white-space: pre-wrap; }
.approval-files { margin-top: 12px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.file-chip {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
    font-size: 12px; color: var(--txt-dim);
}
.approval-change-table { margin-bottom: 0; }
.approval-review-info { background: rgba(255,255,255,.03); border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.review-info-row { font-size: 13px; color: var(--txt-dim); margin-bottom: 6px; }
.review-info-row:last-child { margin-bottom: 0; }
.review-label { display: inline-block; min-width: 70px; color: var(--txt-faint); font-size: 12px; }
.approval-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-approve { padding: 9px 24px; border-radius: 10px; border: none; background: linear-gradient(135deg, #059669, #16a34a); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-approve:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(16,185,129,.5); }
.btn-reject { padding: 9px 24px; border-radius: 10px; border: none; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-reject:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(239,68,68,.5); }
.share-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* 核审类型徽章 */
.approval-type-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.approval-type-create { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.4); }
.approval-type-delete { background: rgba(239,68,68,.13); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.approval-type-modify { background: rgba(245,158,11,.13); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }
.approval-type-share { background: rgba(139,92,246,.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }

/* 密级徽章 */
.security-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.security-public { background: rgba(34,197,94,.12); color: #86efac; }
.security-internal { background: rgba(59,130,246,.13); color: #93c5fd; }
.security-secret { background: rgba(245,158,11,.13); color: #fcd34d; }
.security-confidential { background: rgba(239,68,68,.12); color: #fca5a5; }

/* 文件夹树 */
.folder-tree { font-size: 14px; }
.folder-tree-item { padding: 5px 8px; cursor: pointer; border-radius: 6px; transition: background .15s; color: var(--txt-dim); }
.folder-tree-item:hover { background: var(--bg-card-hover); color: var(--txt); }
.folder-tree-children { margin-left: 20px; border-left: 1px dashed var(--line); padding-left: 8px; }
.folder-icon { margin-right: 6px; }
.file-tree-item { padding: 5px 8px; cursor: pointer; border-radius: 6px; transition: background .15s; display: flex; align-items: center; gap: 6px; color: var(--txt-dim); }
.file-tree-item:hover { background: var(--bg-card-hover); color: var(--txt); }

/* 锁定标记 */
.lock-badge { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 11px; background: rgba(245,158,11,.14); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }

/* 收藏星标 */
.fav-star { cursor: pointer; font-size: 16px; transition: transform .2s; }
.fav-star:hover { transform: scale(1.2); }
.fav-active { color: #f59e0b; }
.fav-inactive { color: var(--txt-faint); }

/* 打印 */
@media print {
    .sidebar, .topbar, .notif-bell, .btn-logout, .filter-bar, .batch-toolbar, .watermark-layer { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    body { background: white !important; }
}
.print-only { display: none; }
@media print { .print-only { display: block; } .no-print { display: none !important; } }

/* 数据大屏进度条 */
.data-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.data-bar-label { width: 120px; font-size: 13px; color: var(--txt-dim); flex-shrink: 0; }
.data-bar-track { flex: 1; height: 18px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.data-bar-fill { height: 100%; border-radius: 10px; transition: width .4s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; color: #fff; font-weight: 600; box-shadow: 0 0 12px rgba(59,130,246,.3); }

/* 待办卡片 */
.todo-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
    backdrop-filter: blur(14px);
    display: flex; align-items: center; gap: 16px; cursor: pointer;
    transition: transform .25s, box-shadow .25s; margin-bottom: 14px;
}
.todo-card:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--line-strong); }
.todo-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; background: rgba(59,130,246,.15); border: 1px solid var(--line); }
.todo-count { font-size: 26px; font-weight: 700; color: var(--txt); line-height: 1; }
.todo-label { font-size: 13px; color: var(--txt-dim); margin-top: 4px; }

/* 二维码 */
.qr-container { text-align: center; padding: 16px; }
.qr-image { border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; margin: 14px auto; display: block; background: #fff; }
.qr-box { text-align: center; padding: 16px; }
.qr-box canvas, .qr-box img { border-radius: 10px; background: #fff; padding: 10px; }

/* ==================== 分页 ==================== */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.pager { margin-top: 18px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-btn {
    padding: 6px 13px; border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--txt-dim);
    transition: all .2s; font-family: inherit;
}
.page-btn:hover { border-color: var(--line-strong); color: var(--txt); background: rgba(59,130,246,.1); }
.page-btn.active { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.page-dots { padding: 6px 4px; color: var(--txt-faint); }
.pagination-info { font-size: 12.5px; color: var(--txt-faint); margin-left: 12px; }
.pager .pg-info { margin-left: auto; color: var(--txt-faint); font-size: 12.5px; }

/* ==================== 弹窗 ==================== */
.modal-overlay, .modal-overlay-nested {
    position: fixed; inset: 0;
    background: rgba(4, 8, 20, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.modal-overlay.show, .modal-overlay-nested.show { opacity: 1; pointer-events: auto; }
.modal-box {
    background: linear-gradient(160deg, rgba(24,34,68,.97), rgba(12,18,40,.98));
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    max-width: 600px; width: 100%;
    max-height: 86vh; overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0,0,0,.6), var(--glow), inset 0 1px 0 rgba(255,255,255,.06);
    transform: scale(.92) translateY(20px);
    transition: transform .25s ease;
    position: relative;
}
.modal-box::before {
    content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
    background: linear-gradient(135deg, rgba(59,130,246,.5), transparent 40%, rgba(139,92,246,.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none; opacity: .6;
}
.modal-box.modal-lg { max-width: 900px; }
.modal-box.modal-xl { max-width: 1100px; }
.modal-overlay.show .modal-box, .modal-overlay-nested.show .modal-box { transform: scale(1) translateY(0); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0;
    background: linear-gradient(160deg, rgba(24,34,68,.98), rgba(12,18,40,.98));
    z-index: 2;
    border-radius: 16px 16px 0 0;
}
.modal-header h3 { font-size: 17px; color: var(--txt); font-weight: 600; }
.modal-close {
    background: rgba(255,255,255,.06); border: 1px solid var(--line);
    font-size: 14px; color: var(--txt-dim);
    cursor: pointer; padding: 5px 11px; border-radius: 8px;
    transition: all .2s; font-family: inherit; line-height: 1;
}
.modal-close:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.5); color: #fca5a5; }
.modal-body { padding: 24px; color: var(--txt); }
.modal-form .form-group { margin-bottom: 18px; }
.modal-form .form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--txt-dim); margin-bottom: 6px; }
.modal-form .form-group input,
.modal-form .form-group textarea,
.modal-form .form-group select {
    width: 100%; padding: 10px 14px;
    background: rgba(8, 14, 34, .7);
    border: 1px solid var(--line);
    border-radius: 10px; font-size: 14px; box-sizing: border-box;
    color: var(--txt); font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.modal-form .form-group input:focus,
.modal-form .form-group textarea:focus,
.modal-form .form-group select:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18), 0 0 16px rgba(59,130,246,.22);
}
.modal-form .form-group input[readonly] { background: rgba(255,255,255,.05); color: var(--txt-faint); }
.modal-form .form-group select option { background: #111a36; color: var(--txt); }
.modal-form textarea { min-height: 88px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; min-width: 0; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-tip { color: var(--txt-faint); font-size: 12px; margin-top: 5px; }

/* 开关 */
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider {
    width: 44px; height: 24px; background: rgba(255,255,255,.14); border: 1px solid var(--line);
    border-radius: 12px; position: relative; transition: background .2s;
}
.toggle-slider::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; background: #c7d2fe; border-radius: 50%;
    transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--grad-main); border-color: transparent;
    box-shadow: 0 0 12px rgba(59,130,246,.45);
}
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); background: #fff; }
.toggle-label { margin-left: 8px; font-size: 14px; color: var(--txt-dim); }

/* 详情视图 */
.detail-view { margin-bottom: 24px; }
.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid rgba(120,160,255,.08); gap: 12px; }
.detail-label { width: 110px; font-size: 13.5px; color: var(--txt-faint); flex-shrink: 0; }
.detail-section { margin-top: 20px; }
.detail-section h4 { font-size: 14px; color: var(--txt); font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
/* 描述列表 */
.desc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; }
.desc-item { display: flex; padding: 11px 14px; border-bottom: 1px solid rgba(120,160,255,.08); gap: 10px; }
.desc-item .d-label { width: 100px; flex-shrink: 0; color: var(--txt-faint); font-size: 13px; }
.desc-item .d-value { color: var(--txt); word-break: break-all; font-size: 13.5px; }
.desc-item.full { grid-column: 1 / -1; }

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 2px dashed var(--line-strong); border-radius: 12px; padding: 30px;
    text-align: center; margin-bottom: 20px; cursor: pointer;
    transition: all .2s; background: rgba(59,130,246,.05);
}
.upload-area:hover { border-color: var(--aurora); background: rgba(34,211,238,.07); }
.upload-area.drag-active { border-color: var(--aurora); background: rgba(34,211,238,.12); box-shadow: 0 0 20px rgba(34,211,238,.2); }
.upload-icon { font-size: 38px; margin-bottom: 12px; }
.upload-label { color: var(--aurora); cursor: pointer; text-decoration: underline; }
.upload-hint { font-size: 12px; color: var(--txt-faint); margin-top: 8px; }
.upload-status { padding: 12px 16px; background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.3); border-radius: 10px; font-size: 13.5px; color: #67e8f9; }

/* 进度条 */
.prog { background: rgba(255,255,255,.08); border-radius: 20px; height: 8px; overflow: hidden; min-width: 90px; }
.prog-bar { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--aurora), #3b82f6); box-shadow: 0 0 8px rgba(34,211,238,.5); transition: width .3s ease; }
.prog-bar.prog-purple { background: linear-gradient(90deg, var(--purple), #ec4899); box-shadow: 0 0 8px rgba(139,92,246,.5); }
@keyframes uploadStripes { from { background-position: 0 0; } to { background-position: 40px 0; } }
.upload-bar-animated {
    background-image: linear-gradient(90deg, #1d4ed8, #06b6d4, #1d4ed8);
    background-size: 200% 100%;
    animation: uploadStripes 1s linear infinite;
    position: relative; overflow: hidden;
    box-shadow: 0 0 12px rgba(34,211,238,.5);
}
.upload-bar-animated::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0, rgba(255,255,255,.18) 10px, transparent 10px, transparent 20px);
    animation: uploadStripes .8s linear infinite;
}

/* ==================== 标签页 ==================== */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab {
    padding: 9px 18px; border: 1px solid transparent; border-bottom: 2px solid transparent;
    background: none; font-size: 14px;
    color: var(--txt-dim); cursor: pointer;
    margin-bottom: -1px; transition: all .2s; white-space: nowrap;
    border-radius: 10px 10px 0 0; font-family: inherit;
}
.tab:hover { color: var(--txt); background: rgba(59,130,246,.08); }
.tab.active {
    color: #93c5fd; border-bottom-color: var(--aurora);
    font-weight: 600; background: rgba(59,130,246,.1);
}
.sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-tab {
    padding: 6px 16px; border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: 999px; font-size: 13px; color: var(--txt-dim); cursor: pointer;
    transition: all .2s; font-family: inherit;
}
.sub-tab:hover { border-color: var(--line-strong); color: var(--txt); }
.sub-tab.active { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: var(--glow); }

/* ==================== Toast ==================== */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }
.toast {
    padding: 12px 22px; border-radius: 12px; color: white; font-size: 14px;
    margin-bottom: 8px; opacity: 0; transform: translateX(120%);
    transition: all .3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    max-width: 380px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: linear-gradient(135deg, rgba(22,163,74,.92), rgba(34,197,94,.92)); box-shadow: 0 8px 30px rgba(34,197,94,.35); }
.toast-error { background: linear-gradient(135deg, rgba(220,38,38,.92), rgba(239,68,68,.92)); box-shadow: 0 8px 30px rgba(239,68,68,.35); }
.toast-warning { background: linear-gradient(135deg, rgba(217,119,6,.92), rgba(245,158,11,.92)); box-shadow: 0 8px 30px rgba(245,158,11,.35); }
.toast-info { background: linear-gradient(135deg, rgba(29,78,216,.92), rgba(6,182,212,.92)); box-shadow: 0 8px 30px rgba(59,130,246,.35); }

/* ==================== Logo/Favicon 上传 ==================== */
.logo-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.logo-preview {
    width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: rgba(8,14,34,.6);
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview-placeholder { color: var(--txt-faint); font-size: 24px; }

/* ==================== 健康检测 ==================== */
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.health-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.health-card h3 { font-size: 14px; color: var(--txt); font-weight: 600; margin-bottom: 12px; }
.health-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(120,160,255,.08); font-size: 13.5px; gap: 10px; }
.health-item:last-child { border-bottom: none; }
.health-label { color: var(--txt-dim); }
.health-value { color: var(--txt); font-weight: 500; text-align: right; word-break: break-all; }
.health-ok { color: #86efac !important; }
.health-warn { color: #fcd34d !important; }
.health-error { color: #fca5a5 !important; }

/* ==================== 预设管理 ==================== */
.preset-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid rgba(120,160,255,.08);
    transition: background .15s;
}
.preset-list-item:hover { background: var(--bg-card-hover); }
.preset-list-item:last-child { border-bottom: none; }
.preset-name { flex: 1; font-size: 14px; color: var(--txt); }
.preset-sort { width: 60px; }
.preset-sort-input {
    width: 50px; padding: 4px 8px; border: 1px solid var(--line);
    border-radius: 6px; font-size: 13px; text-align: center;
    background: rgba(8,14,34,.7); color: var(--txt); font-family: inherit;
}
.preset-sort-input:focus { outline: none; border-color: var(--blue); }

/* ==================== 更新日志 ==================== */
.update-log-item {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
    border-left: 4px solid var(--aurora);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.update-log-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.update-log-version {
    font-size: 18px; font-weight: 700;
    background: var(--grad-aurora);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.update-log-title { font-size: 14px; color: var(--txt-dim); }
.update-log-time { font-size: 12px; color: var(--txt-faint); margin-left: auto; }
.update-log-content { font-size: 13.5px; color: var(--txt-dim); line-height: 1.8; white-space: pre-wrap; }

/* ==================== 备份恢复 ==================== */
.backup-section {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.backup-section h3 { font-size: 15px; color: var(--txt); font-weight: 600; margin-bottom: 16px; }
.cloud-config-row { margin-bottom: 16px; }
.cron-code-block {
    background: rgba(8,14,34,.85);
    border: 1px solid var(--line);
    color: #a5b4fc;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    line-height: 1.6;
}

/* ==================== 水印 ==================== */
.watermark-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ==================== 分类目录树 ==================== */
.category-tree-node {
    padding: 6px 8px; display: flex; align-items: center; gap: 6px;
    border-radius: 8px; transition: background .15s; font-size: 14px;
    color: var(--txt-dim); cursor: pointer;
}
.category-tree-node:hover { background: var(--bg-card-hover); color: var(--txt); }
.category-toggle { display: inline-block; width: 16px; text-align: center; font-size: 12px; color: var(--txt-faint); user-select: none; }
.category-name { color: var(--txt); font-size: 14px; }
.category-name:hover { color: var(--aurora); }
.category-children { transition: all .2s ease; }

/* 分类卡片 */
.cat-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; margin-bottom: 5px;
    border-radius: 8px; cursor: pointer; transition: all .2s ease;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
}
.cat-card:hover {
    background: rgba(59,130,246,.12);
    border-color: var(--line-strong);
    transform: translateX(2px);
}
.cat-card-active {
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59,130,246,.4);
}
.cat-card-active .cat-card-name { color: #fff; font-weight: 600; }
.cat-card-active .cat-card-count { background: rgba(255,255,255,.25); color: #fff; }
.cat-card-name {
    font-size: 13px; color: var(--txt-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.cat-card-count {
    background: rgba(148,163,184,.16); color: var(--txt-dim);
    font-size: 11px; font-weight: 700;
    min-width: 22px; height: 22px; line-height: 22px;
    text-align: center; border-radius: 11px; padding: 0 6px;
    flex-shrink: 0; margin-left: 6px;
}
.cat-card-count-zero { opacity: .4; }

/* ==================== 批量操作栏 ==================== */
.batch-toolbar {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(29,78,216,.92), rgba(79,70,229,.92));
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px; border-radius: 12px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 12px 40px rgba(0,0,0,.5), var(--glow);
    display: none; gap: 12px; align-items: center;
    z-index: 800;
    animation: fadeInUp .25s ease;
}
.batch-toolbar button {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff; padding: 6px 16px;
    border-radius: 8px; cursor: pointer; font-size: 13px;
    transition: all .2s; font-family: inherit;
}
.batch-toolbar button:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.batch-btn-delete { background: rgba(239,68,68,.55) !important; border-color: rgba(239,68,68,.6) !important; }
.batch-btn-tag { background: rgba(34,197,94,.5) !important; border-color: rgba(34,197,94,.6) !important; }
.batch-btn-status { background: rgba(168,85,247,.55) !important; border-color: rgba(168,85,247,.6) !important; }

/* 预览水印 */
.preview-watermark {
    position: absolute; bottom: 10px; right: 10px;
    color: rgba(255,255,255,.75); font-size: 12px;
    pointer-events: none; z-index: 10;
    background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 6px;
    backdrop-filter: blur(2px);
}

/* 到期预警卡片 */
.expiry-alert-card { cursor: pointer; transition: transform .25s, box-shadow .25s; }
.expiry-alert-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }

/* 版本标签 */
.version-badge {
    display: inline-block; padding: 2px 9px; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all .2s;
    background: rgba(34,211,238,.1); color: #67e8f9; border: 1px solid rgba(34,211,238,.35);
}
.version-badge:hover { opacity: .85; }

/* 关联档案 */
.relation-section { margin-top: 20px; }

/* 权限表格 */
.perm-table { font-size: 13px; }
.perm-table th { padding: 8px 12px; text-align: center; }
.perm-table td { padding: 8px 12px; text-align: center; }
.perm-table td:first-child { text-align: left; }

/* ==================== 项目搜索选择器 ==================== */
.project-picker { position: relative; }
.project-search-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: linear-gradient(160deg, rgba(24,34,68,.98), rgba(12,18,40,.98));
    border: 1px solid var(--line-strong); border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,.5), var(--glow);
    max-height: 280px; overflow-y: auto; margin-top: 4px;
}
.project-search-item {
    padding: 10px 14px; cursor: pointer; font-size: 13px; color: var(--txt-dim);
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(120,160,255,.08);
}
.project-search-item:last-child { border-bottom: none; }
.project-search-item:hover { background: var(--bg-card-hover); color: var(--txt); }
.project-search-empty { padding: 16px; text-align: center; color: var(--txt-faint); font-size: 13px; }
.project-selected { margin-top: 4px; }
.project-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.4); color: #93c5fd;
    padding: 6px 12px; border-radius: 999px; font-size: 13px;
}
.project-pill-remove {
    background: rgba(59,130,246,.3); border: none; color: #dbeafe; width: 20px; height: 20px;
    border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.project-pill-remove:hover { background: rgba(239,68,68,.4); color: #fff; }

/* ==================== V5.3 档案卡片列表 ==================== */
.archive-card-list { display: flex; flex-direction: column; gap: 10px; }
.archive-card-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card);
    border-radius: 12px; padding: 15px 20px;
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    transition: all .2s;
}
.archive-card-row:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--glow);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.archive-card-checkbox { flex-shrink: 0; }
.archive-card-main { flex: 1; min-width: 0; }
.archive-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.archive-card-cat { font-size: 12px; color: #a5b4fc; background: rgba(139,92,246,.14); padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(139,92,246,.3); }
.archive-card-title { font-size: 15px; font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.archive-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--txt-dim); flex-wrap: wrap; }
.archive-card-project {
    color: #93c5fd; background: rgba(59,130,246,.12); padding: 1px 9px; border-radius: 999px;
    max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border: 1px solid rgba(59,130,246,.25);
}
.archive-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.arc-btn {
    border: 1px solid var(--line); cursor: pointer; font-size: 12px; font-weight: 500;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
    transition: all .2s; display: inline-flex; align-items: center; gap: 3px;
    font-family: inherit;
    background: rgba(255,255,255,.04); color: var(--txt-dim);
}
.arc-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.arc-btn-fav { background: rgba(255,255,255,.04); color: var(--txt-faint); font-size: 15px; padding: 6px 9px; }
.arc-btn-fav:hover { background: rgba(245,158,11,.16); color: #fbbf24; }
.arc-btn-fav.fav-active { background: rgba(245,158,11,.18); color: #fbbf24; border-color: rgba(245,158,11,.4); }
.arc-btn-view { background: rgba(34,211,238,.1); color: #67e8f9; border-color: rgba(34,211,238,.35); }
.arc-btn-view:hover { background: rgba(34,211,238,.25); color: #fff; }
.arc-btn-print { background: rgba(139,92,246,.12); color: #c4b5fd; border-color: rgba(139,92,246,.35); }
.arc-btn-print:hover { background: rgba(139,92,246,.28); color: #fff; }
.arc-btn-edit { background: rgba(245,158,11,.1); color: #fbbf24; border-color: rgba(245,158,11,.35); }
.arc-btn-edit:hover { background: rgba(245,158,11,.26); color: #fff; }
.arc-btn-del { background: rgba(239,68,68,.1); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.arc-btn-del:hover { background: rgba(239,68,68,.26); color: #fff; }
.arc-btn-lock { background: rgba(34,197,94,.1); color: #86efac; border-color: rgba(34,197,94,.35); }
.arc-btn-lock:hover { background: rgba(34,197,94,.26); color: #fff; }
.arc-btn-locked { background: rgba(245,158,11,.1); color: #fbbf24; border-color: rgba(245,158,11,.35); }
.arc-btn-locked:hover { background: rgba(245,158,11,.26); color: #fff; }
.arc-btn-qr { background: rgba(59,130,246,.12); color: #93c5fd; border-color: rgba(59,130,246,.35); }
.arc-btn-qr:hover { background: rgba(59,130,246,.28); color: #fff; }
.arc-btn-disabled { background: rgba(255,255,255,.03); color: var(--txt-faint); border-color: var(--line); cursor: not-allowed; opacity: .55; }

/* ==================== V6.1 时效管理可编辑表格 ==================== */
.deadline-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; table-layout: auto; }
.deadline-table thead { background: transparent; }
.deadline-table th {
    padding: 7px 10px; text-align: left; color: #b9c8f5; font-weight: 600;
    font-size: 12px; white-space: nowrap; background: rgba(59,130,246,.1);
    border-bottom: 1px solid var(--line-strong); text-transform: none; letter-spacing: 0;
}
.deadline-table th:first-child { border-radius: 8px 0 0 8px; }
.deadline-table th:last-child { border-radius: 0 8px 8px 0; }
.deadline-table td {
    padding: 8px 10px; color: var(--txt);
    vertical-align: middle;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(120,160,255,.08);
    border-bottom: 1px solid rgba(120,160,255,.08);
    white-space: nowrap;
}
.deadline-table td:first-child { border-left: 1px solid rgba(120,160,255,.1); border-radius: 8px 0 0 8px; }
.deadline-table td:last-child  { border-right: 1px solid rgba(120,160,255,.1); border-radius: 0 8px 8px 0; text-align: left; }
.deadline-table tbody tr { transition: background .15s; }
.deadline-table tbody tr:hover td { background: var(--bg-card-hover) !important; }
.deadline-table tbody tr.row-expired td { background: rgba(239,68,68,.10) !important; }
.deadline-table tbody tr.row-warning td { background: rgba(245,158,11,.10) !important; }
.deadline-table tbody tr.row-new td { background: rgba(34,197,94,.08) !important; animation: flash-green 1.5s ease; }
.deadline-table tbody tr.row-archived td { background: rgba(59,130,246,.09) !important; }

/* 可编辑单元格 */
.dl-cell { cursor: pointer; min-height: 20px; padding: 3px 5px; border-radius: 5px; transition: background .15s; }
.dl-cell:hover { background: rgba(59,130,246,.14); box-shadow: inset 0 0 0 1px rgba(59,130,246,.4); }
.dl-cell-editing { padding: 0; }
.dl-cell-editing input, .dl-cell-editing select {
    width: 100%; padding: 4px 6px;
    border: 1px solid var(--blue); border-radius: 5px;
    font-size: 13px; outline: none;
    background: rgba(8,14,34,.9); color: var(--txt);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
    font-family: inherit;
}
.dl-cell-saved { animation: flash-green .8s ease; }
.dl-cell-error { animation: flash-red .8s ease; }
.dl-cell-readonly { color: var(--txt-faint); cursor: default; }
.dl-cell-readonly:hover { background: none; box-shadow: none; }

@keyframes flash-green { 0% { background: rgba(34,197,94,.35); } 100% { background: transparent; } }
@keyframes flash-red { 0% { background: rgba(239,68,68,.35); } 100% { background: transparent; } }

.dl-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.dl-badge-active { background: rgba(34,197,94,.14); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.dl-badge-warning { background: rgba(245,158,11,.14); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
.dl-badge-expired { background: rgba(239,68,68,.13); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
.dl-badge-renewed { background: rgba(59,130,246,.14); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }

.dl-days-normal { color: var(--txt-dim); font-size: 12px; }
.dl-days-warning { color: #fbbf24; font-weight: 700; font-size: 12px; }
.dl-days-expired { color: #ef4444; font-weight: 700; font-size: 12px; }

.dl-action-btn {
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
    font-size: 12px; transition: all .15s; margin-right: 4px;
    background: rgba(255,255,255,.04); color: var(--txt-dim); font-family: inherit;
}
.dl-btn-del { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.dl-btn-del:hover { background: rgba(239,68,68,.28); color: #fff; }
.dl-btn-renew { background: rgba(59,130,246,.12); color: #93c5fd; border-color: rgba(59,130,246,.35); }
.dl-btn-renew:hover { background: rgba(59,130,246,.28); color: #fff; }
.dl-btn-archive { background: rgba(255,255,255,.06); color: var(--txt-dim); }
.dl-btn-archive:hover { background: rgba(255,255,255,.12); color: var(--txt); }
.deadline-table tbody tr.row-archived .dl-cell { pointer-events: none; cursor: default; }

/* ==================== V6.9 项目字段胶囊徽章 ==================== */
.pj-badge {
    display: inline-block; padding: 3px 9px; border-radius: 8px;
    font-size: 12px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; vertical-align: middle; text-align: left;
}
.pj-empty { color: var(--txt-faint); font-weight: 400; font-size: 12px; }
.pj-badge-record { background: rgba(34,211,238,.12); color: #67e8f9; font-family: 'Consolas',monospace; font-weight: 600; border: 1px solid rgba(34,211,238,.3); }
.pj-badge-gray   { background: rgba(148,163,184,.14); color: #cbd5e1; }
.pj-badge-blue   { background: rgba(59,130,246,.15); color: #93c5fd; }
.pj-badge-orange { background: rgba(249,115,22,.15); color: #fdba74; }
.pj-badge-green  { background: rgba(34,197,94,.14); color: #86efac; }
.pj-badge-cyan   { background: rgba(34,211,238,.12); color: #67e8f9; }
.pj-badge-dark   { background: rgba(15,23,42,.9); color: #e2e8f0; border: 1px solid var(--line); }
.pj-badge-indigo { background: rgba(99,102,241,.16); color: #a5b4fc; }
.pj-badge-teal   { background: rgba(20,184,166,.14); color: #5eead4; }
.pj-badge-gold   { background: rgba(245,158,11,.16); color: #fcd34d; }
.pj-badge-silver { background: rgba(148,163,184,.18); color: #e2e8f0; }
.pj-badge-bronze { background: rgba(217,119,6,.16); color: #fdba74; }
.pj-badge-title    { background: rgba(139,92,246,.14); color: #c4b5fd; }
.pj-badge-external { background: rgba(16,185,129,.12); color: #6ee7b7; font-family: 'Consolas',monospace; }
.pj-badge-address  { background: rgba(245,158,11,.12); color: #fcd34d; }
.pj-badge-contact  { background: rgba(236,72,153,.12); color: #f9a8d4; }
.pj-badge-phone    { background: rgba(59,130,246,.13); color: #93c5fd; font-family: 'Consolas',monospace; }
.pj-badge-email    { background: rgba(34,211,238,.1); color: #67e8f9; }
.pj-badge-event    { background: rgba(239,68,68,.12); color: #fca5a5; }
.pj-badge-date     { background: rgba(255,255,255,.05); color: var(--txt-dim); border: 1px solid var(--line); font-family: 'Consolas',monospace; padding: 2px 7px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.pj-badge-date-close { background: rgba(245,158,11,.14); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.pj-badge-date .dl-days { display: inline; margin-left: 4px; font-size: 10px; font-family: inherit; }
.pj-badge-archived { background: rgba(148,163,184,.16); color: #cbd5e1; font-size: 10px; padding: 2px 8px; }
@keyframes pulse-banner {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); }
    50% { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
}
.dl-saved { animation: flash-green .8s ease; }
.dl-error { animation: flash-red .8s ease; }

/* 项目跟进 - 顶部小卡片 */
.proj-top-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.proj-stat-row { display: flex; gap: 14px; }
.proj-stat-card {
    flex: 1; border-radius: 12px; padding: 16px 20px; text-align: center;
    border: 1px solid var(--line);
    transition: transform .15s, box-shadow .15s;
    background: var(--bg-card);
}
.proj-stat-card:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.proj-stat-num { font-size: 28px; font-weight: 800; line-height: 1.2; }
.proj-stat-label { font-size: 12px; margin-top: 4px; opacity: .9; font-weight: 500; }
.proj-stat-total { background: linear-gradient(135deg, rgba(29,78,216,.3), rgba(59,130,246,.2)); color: #93c5fd; border-color: rgba(59,130,246,.4); }
.proj-stat-warn { background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(217,119,6,.15)); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.proj-stat-danger { background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(220,38,38,.12)); color: #fca5a5; border-color: rgba(239,68,68,.4); }

.proj-list-card { padding: 0; overflow: hidden; background: transparent; box-shadow: none; border: none; }
.proj-list-card .deadline-table { border-radius: 0; margin: 0; min-width: 100%; table-layout: auto; }
.proj-list-card > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.proj-list-card .dl-cell { padding: 4px 6px; vertical-align: middle; text-align: left; white-space: normal; word-break: break-word; }
.proj-list-card .dl-cell .pj-badge { box-sizing: border-box; max-width: 100%; white-space: normal; word-break: break-word; }
.proj-list-card .dl-cell-editing { padding: 2px 4px; }

.dl-toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.dl-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dl-stat-mini { padding: 10px 16px; border-radius: 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); }
.dl-stat-mini .num { font-size: 22px; font-weight: 800; }
.dl-stat-total { background: linear-gradient(135deg, rgba(29,78,216,.25), rgba(59,130,246,.15)); color: #93c5fd; }
.dl-stat-warning { background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(217,119,6,.12)); color: #fcd34d; }
.dl-stat-expired { background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(220,38,38,.1)); color: #fca5a5; }

/* ==================== V5.3 收缩展开 ==================== */
.collapse-content { max-height: 4.5em; overflow: hidden; transition: max-height .3s ease; position: relative; }
.collapse-content.expanded { max-height: 2000em; }
.collapse-content::after { content: ''; display: none; }

/* ==================== 右键菜单（预览/文件） ==================== */
.ctx-menu {
    position: fixed; z-index: 3200; min-width: 150px;
    background: linear-gradient(160deg, rgba(24,34,68,.97), rgba(12,18,40,.98));
    border: 1px solid var(--line-strong); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 6px; display: none;
}
.ctx-menu.show { display: block; }
.ctx-item { padding: 9px 14px; font-size: 13.5px; border-radius: 8px; cursor: pointer; color: var(--txt-dim); }
.ctx-item:hover { background: rgba(59,130,246,.16); color: var(--txt); }
.ctx-item.ctx-danger { color: #fca5a5; }
.ctx-item.ctx-danger:hover { background: rgba(239,68,68,.16); }
.ctx-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ==================== 深色弹窗内通用元素兜底（JS 内联浅色弹窗） ==================== */
.modal-box input[type="text"], .modal-box input[type="password"], .modal-box input[type="date"],
.modal-box input[type="datetime-local"], .modal-box input[type="number"], .modal-box input[type="tel"],
.modal-box input[type="email"], .modal-box input[type="search"], .modal-box select, .modal-box textarea {
    background: rgba(8,14,34,.7); border: 1px solid var(--line); color: var(--txt);
}
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); outline: none;
}
.modal-box select option { background: #111a36; color: var(--txt); }
.modal-box input[disabled], .modal-box input[readonly] { background: rgba(255,255,255,.05) !important; color: var(--txt-faint) !important; border-color: var(--line); }
.modal-box table { color: var(--txt); }
/* 弹窗内浅底提示条统一改为深色玻璃（保留语义色边框） */
.modal-box [style*="background:#f8fafc"], .modal-box [style*="background: #f8fafc"],
.modal-box [style*="background:#fff5f8"], .modal-box [style*="background: #fff5f8"],
.modal-box [style*="background:#f0f9ff"], .modal-box [style*="background: #f0f9ff"],
.modal-box [style*="background:#f0fdf4"], .modal-box [style*="background: #f0fdf4"],
.modal-box [style*="background:#fef2f2"], .modal-box [style*="background: #fef2f2"],
.modal-box [style*="background:#f8f9ff"], .modal-box [style*="background: #f8f9ff"],
.modal-box [style*="background:#ecfeff"], .modal-box [style*="background: #ecfeff"] {
    background-color: rgba(255,255,255,.05) !important;
    color: var(--txt-dim) !important;
    border-color: var(--line) !important;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .tb-search .global-search-input { width: 170px; }
    .tb-search .global-search-input:focus { width: 200px; }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
    .proj-stat-card { min-width: calc(33% - 10px); }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 232px; }
    .sidebar.show { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.55); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .tb-user .tb-user-meta { display: none; }
    .tb-logout-btn { display: none; }
    .search-results-panel { right: 12px; top: 60px; }
    .sidebar-footer .btn-logout { display: inline-flex; }
}
@media (max-width: 768px) {
    .main-content > #page-content { padding: 14px; }
    .topbar { padding: 0 12px; gap: 10px; }
    .tb-search { display: none; }
    .dashboard-row { flex-direction: column; }
    .form-row { flex-direction: column; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .filter-input, .filter-bar .filter-select { width: 100% !important; min-width: unset; }
    .data-table, .deadline-table { font-size: 12px; }
    .data-table th, .deadline-table th,
    .data-table td, .deadline-table td { padding: 7px 6px; }
    .proj-stat-row { flex-direction: column; gap: 8px; }
    .proj-stat-card { min-width: 100%; padding: 12px 16px; }
    .proj-stat-num { font-size: 24px; }
    .proj-list-card > div { overflow-x: auto; }
    .pj-badge { font-size: 10px; padding: 1px 5px; }
    .modal-box { width: 95vw !important; max-width: 95vw !important; margin: 10px auto; }
    .modal-body { padding: 18px; max-height: 70vh; overflow-y: auto; }
    .modal-form .form-row { flex-direction: column; }
    .archive-card-row { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .archive-card-title { font-size: 14px; }
    .work-stat-card, .todo-card { padding: 14px; }
    .welcome-card { padding: 20px 18px; }
    .welcome-card h2 { font-size: 18px; }
}
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr; }
    h1 { font-size: 18px !important; }
    .modal-box { width: 98vw !important; max-width: 98vw !important; }
}

/* ==================== 全站 JS 内联浅色样式兜底（白底/深字治理，放过 img/canvas 二维码白底） ==================== */
.modal-box :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background:#fff"],
.modal-box :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background: #fff"],
.modal-box :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background:#ffffff"],
#page-content :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background:#fff"],
#page-content :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background: #fff"],
#page-content :is(div,section,td,th,tr,span,p,li,ul,ol,dl,dd,dt,table,thead,tbody,tfoot,label,button,blockquote,pre,code,h1,h2,h3,h4,h5,h6,article,aside,header,footer,a,strong,b,small,em,i)[style*="background:#ffffff"] {
    background-color: rgba(255,255,255,.045) !important;
    color: var(--txt) !important;
    border-color: var(--line) !important;
}
/* 浅灰/浅彩底块（提示条、表头、徽章、斑马行）统一深色玻璃 */
.modal-box [style*="background:#f8fafc"], .modal-box [style*="background: #f8fafc"],
.modal-box [style*="background:#f1f5f9"], .modal-box [style*="background: #f1f5f9"],
.modal-box [style*="background:#f5f5f5"], .modal-box [style*="background: #f5f5f5"],
.modal-box [style*="background:#f0f2f5"], .modal-box [style*="background: #f0f2f5"],
.modal-box [style*="background:#fafafa"], .modal-box [style*="background: #fafafa"],
.modal-box [style*="background:#e0e0e0"], .modal-box [style*="background: #e0e0e0"],
.modal-box [style*="background:#f0f9ff"], .modal-box [style*="background: #f0f9ff"],
.modal-box [style*="background:#ecfeff"], .modal-box [style*="background: #ecfeff"],
.modal-box [style*="background:#eff6ff"], .modal-box [style*="background: #eff6ff"],
.modal-box [style*="background:#e0f2fe"], .modal-box [style*="background: #e0f2fe"],
.modal-box [style*="background:#f8f9ff"], .modal-box [style*="background: #f8f9ff"],
.modal-box [style*="background:#fff5f8"], .modal-box [style*="background: #fff5f8"],
.modal-box [style*="background:#fef2f2"], .modal-box [style*="background: #fef2f2"],
.modal-box [style*="background:#f0fdf4"], .modal-box [style*="background: #f0fdf4"],
.modal-box [style*="background:#ecfdf5"], .modal-box [style*="background: #ecfdf5"],
.modal-box [style*="background:#dcfce7"], .modal-box [style*="background: #dcfce7"],
.modal-box [style*="background:#f6ffed"], .modal-box [style*="background: #f6ffed"],
.modal-box [style*="background:#fef3c7"], .modal-box [style*="background: #fef3c7"],
#page-content [style*="background:#f8fafc"], #page-content [style*="background: #f8fafc"],
#page-content [style*="background:#f1f5f9"], #page-content [style*="background: #f1f5f9"],
#page-content [style*="background:#f5f5f5"], #page-content [style*="background: #f5f5f5"],
#page-content [style*="background:#f0f2f5"], #page-content [style*="background: #f0f2f5"],
#page-content [style*="background:#fafafa"], #page-content [style*="background: #fafafa"],
#page-content [style*="background:#e0e0e0"], #page-content [style*="background: #e0e0e0"],
#page-content [style*="background:#f0f9ff"], #page-content [style*="background: #f0f9ff"],
#page-content [style*="background:#ecfeff"], #page-content [style*="background: #ecfeff"],
#page-content [style*="background:#eff6ff"], #page-content [style*="background: #eff6ff"],
#page-content [style*="background:#e0f2fe"], #page-content [style*="background: #e0f2fe"],
#page-content [style*="background:#f8f9ff"], #page-content [style*="background: #f8f9ff"],
#page-content [style*="background:#fff5f8"], #page-content [style*="background: #fff5f8"],
#page-content [style*="background:#fef2f2"], #page-content [style*="background: #fef2f2"],
#page-content [style*="background:#f0fdf4"], #page-content [style*="background: #f0fdf4"],
#page-content [style*="background:#ecfdf5"], #page-content [style*="background: #ecfdf5"],
#page-content [style*="background:#dcfce7"], #page-content [style*="background: #dcfce7"],
#page-content [style*="background:#f6ffed"], #page-content [style*="background: #f6ffed"],
#page-content [style*="background:#fef3c7"], #page-content [style*="background: #fef3c7"] {
    background-color: rgba(255,255,255,.05) !important;
    color: var(--txt-dim) !important;
    border-color: var(--line) !important;
}
/* 深灰近黑文字 → 主文字色 */
.modal-box [style*="color:#374151"], .modal-box [style*="color: #374151"],
.modal-box [style*="color:#1e293b"], .modal-box [style*="color: #1e293b"],
.modal-box [style*="color:#334155"], .modal-box [style*="color: #334155"],
.modal-box [style*="color:#1f2937"], .modal-box [style*="color: #1f2937"],
.modal-box [style*="color:#0f172a"], .modal-box [style*="color: #0f172a"],
.modal-box [style*="color:#111827"], .modal-box [style*="color: #111827"],
.modal-box [style*="color:#333;"], .modal-box [style*="color: #333;"],
#page-content [style*="color:#374151"], #page-content [style*="color: #374151"],
#page-content [style*="color:#1e293b"], #page-content [style*="color: #1e293b"],
#page-content [style*="color:#334155"], #page-content [style*="color: #334155"],
#page-content [style*="color:#1f2937"], #page-content [style*="color: #1f2937"],
#page-content [style*="color:#0f172a"], #page-content [style*="color: #0f172a"],
#page-content [style*="color:#111827"], #page-content [style*="color: #111827"],
#page-content [style*="color:#333;"] { color: var(--txt) !important; }
/* 中灰文字 → 次级文字色 */
.modal-box [style*="color:#475569"], .modal-box [style*="color: #475569"],
.modal-box [style*="color:#64748b"], .modal-box [style*="color: #64748b"],
.modal-box [style*="color:#666;"], .modal-box [style*="color: #666;"],
.modal-box [style*="color:#888;"], .modal-box [style*="color: #888;"],
.modal-box [style*="color:#999;"], .modal-box [style*="color: #999;"],
.modal-box [style*="color:#555;"], .modal-box [style*="color: #555;"],
#page-content [style*="color:#475569"], #page-content [style*="color: #475569"],
#page-content [style*="color:#64748b"], #page-content [style*="color: #64748b"],
#page-content [style*="color:#666;"], #page-content [style*="color: #666;"],
#page-content [style*="color:#888;"], #page-content [style*="color: #888;"],
#page-content [style*="color:#999;"], #page-content [style*="color: #999;"],
#page-content [style*="color:#555;"] { color: var(--txt-dim) !important; }
/* 深色语义彩字提亮（深底可见性） */
.modal-box [style*="color:#1d4ed8"], .modal-box [style*="color:#1e40af"], .modal-box [style*="color:#2563eb"], .modal-box [style*="color:#4a90d9"],
#page-content [style*="color:#1d4ed8"], #page-content [style*="color:#1e40af"], #page-content [style*="color:#2563eb"], #page-content [style*="color:#4a90d9"] { color: #93c5fd !important; }
.modal-box [style*="color:#b91c1c"], .modal-box [style*="color:#991b1b"],
#page-content [style*="color:#b91c1c"], #page-content [style*="color:#991b1b"] { color: #fca5a5 !important; }
.modal-box [style*="color:#b45309"], .modal-box [style*="color:#92400e"],
#page-content [style*="color:#b45309"], #page-content [style*="color:#92400e"] { color: #fbbf24 !important; }
.modal-box [style*="color:#15803d"], .modal-box [style*="color:#166534"], .modal-box [style*="color:#16a34a"],
#page-content [style*="color:#15803d"], #page-content [style*="color:#166534"], #page-content [style*="color:#16a34a"] { color: #86efac !important; }
/* 内联浅色边框 → 深色分隔线 */
.modal-box [style*="solid #e2e8f0"], .modal-box [style*="solid #cbd5e1"], .modal-box [style*="solid #ddd"],
.modal-box [style*="solid #e5e7eb"], .modal-box [style*="solid #f1f5f9"], .modal-box [style*="solid #f0f0f0"],
#page-content [style*="solid #e2e8f0"], #page-content [style*="solid #cbd5e1"], #page-content [style*="solid #ddd"],
#page-content [style*="solid #e5e7eb"], #page-content [style*="solid #f1f5f9"], #page-content [style*="solid #f0f0f0"] { border-color: var(--line) !important; }
/* 内联输入控件深色化 */
.modal-box input[style], .modal-box select[style], .modal-box textarea[style],
#page-content input[style], #page-content select[style], #page-content textarea[style] {
    background-color: rgba(8,14,34,.78) !important;
    color: var(--txt) !important;
    border-color: var(--line) !important;
}
.modal-box input[style]:focus, .modal-box select[style]:focus, .modal-box textarea[style]:focus,
#page-content input[style]:focus, #page-content select[style]:focus, #page-content textarea[style]:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
    outline: none;
}
