
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --topnav-height: 56px;
    --header-height: 48px;
}

/* ===== 深色主题（默认） ===== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-page: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.9);
    --bg-input: rgba(51, 65, 85, 0.8);
    --bg-nav: #0f172a;
    --bg-nav-hover: rgba(56, 189, 248, 0.2);
    --bg-nav-active: rgba(56, 189, 248, 0.28);
    --border-color: rgba(148, 163, 184, 0.12);
    --border-focus: rgba(56, 189, 248, 0.6);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --nav-text: #cbd5e1;
    --nav-text-hover: #f1f5f9;
    --nav-text-active: #38bdf8;
    --nav-group-label: #64748b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-rgb: 56, 189, 248;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --danger: #f87171;
    --warning: #fbbf24;
    --success: #4ade80;
    --tag-info-bg: rgba(56, 189, 248, 0.15);
    --tag-warning-bg: rgba(251, 191, 36, 0.15);
    --tag-error-bg: rgba(248, 113, 113, 0.15);
    --tag-success-bg: rgba(74, 222, 128, 0.15);
    --thead-bg: rgba(51, 65, 85, 0.5);
    --scrollbar-thumb: rgba(148, 163, 184, 0.2);
    --hover-bg: rgba(56, 189, 248, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ===== 浅色主题 ===== */
[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-nav: #ffffff;
    --bg-nav-hover: rgba(2, 132, 199, 0.12);
    --bg-nav-active: rgba(2, 132, 199, 0.18);
    --border-color: #e2e8f0;
    --border-focus: #38bdf8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --nav-text: #475569;
    --nav-text-hover: #0f172a;
    --nav-text-active: #0284c7;
    --nav-group-label: #94a3b8;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-rgb: 2, 132, 199;
    --accent-glow: rgba(2, 132, 199, 0.15);
    --danger: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
    --tag-info-bg: rgba(2, 132, 199, 0.1);
    --tag-warning-bg: rgba(217, 119, 6, 0.1);
    --tag-error-bg: rgba(220, 38, 38, 0.1);
    --tag-success-bg: rgba(22, 163, 74, 0.1);
    --thead-bg: #f8fafc;
    --scrollbar-thumb: #cbd5e1;
    --hover-bg: rgba(2, 132, 199, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html, body {
    height: 100%;
}

body {
    font-family: "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== 整体布局 ===== */
.app-layout {
    display: flex;
    flex-direction: column;
    height: var(--fit-vh, var(--fit-vh, var(--fit-vh, 100vh)));
    overflow: hidden;
}

/* ===== 顶部导航栏 ===== */
.top-navbar {
    height: var(--topnav-height);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 100;
    gap: 8px;
}

    .top-navbar .logo-section {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .top-navbar .logo-icon {
        width: 32px;
        height: 32px;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* 主标题：渐变字（拉宽取色区间，小字号下也不发灰）+ 加粗 + 微字距 */
    .top-navbar .logo-text {
        font-family: inherit;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .02em;
        line-height: 1.2;
        background: linear-gradient(100deg, var(--nav-text-hover) 8%, var(--nav-text-active) 92%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-font-smoothing: antialiased;
        white-space: nowrap;
    }

    /* 两行锁定式：单位名在上作抬头，系统名在下作主标题（左边缘对齐） */
    .logo-wrap {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-width: 0;
        gap: 2px;
    }

    /* 单位小字：字距拉开、字重收细，形成“抬头”层级 */
    .logo-sub {
        font-size: 11.5px;
        line-height: 1.1;
        letter-spacing: .16em;
        font-weight: 500;
        color: var(--text-muted);
        opacity: .95;
        white-space: nowrap;
    }

/* 导航项水平排列 */
.nav-items {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow: visible;
    min-width: 0;
}

/* 导航字号保持原始 15px；空间不足时只收紧左右内边距（见 responsive-fix.css） */

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 40px;
    border-radius: 8px;
    color: var(--nav-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
}

    .nav-item:hover {
        background: var(--bg-nav-hover);
        color: var(--nav-text-hover);
    }

    .nav-item.active {
        background: var(--bg-nav-active);
        color: var(--nav-text-active);
    }

        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: var(--accent);
            border-radius: 2px;
        }

    /* 顶部导航激活项专属：蓝底白字（只影响顶部导航，不影响其他共用 bg-nav-active 的组件） */
    .top-navbar .nav-item.active {
        background: rgb(96, 152, 244);
        color: #ffffff;
    }

    /* 顶部导航 hover 颜色与激活项统一（蓝底白字） */
    .top-navbar .nav-item:hover {
        background: rgb(96, 152, 244);
        color: #ffffff;
    }

    /* 顶部导航栏导航项字体调大 */
    .top-navbar .nav-item {
        font-size: 15px;
    }

    .nav-item svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

    .nav-item .nav-label {
        font-size: 15px;
    }

    /* 系统设置下拉 */
    .nav-item.has-sub .arrow {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.2s;
    }

    .nav-item.has-sub.active .arrow {
        transform: rotate(180deg);
    }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-dropdown);
    padding: 6px;
    z-index: 200;
    margin-top: 4px;
}

    .nav-dropdown.open {
        display: block;
    }

    .nav-dropdown .nav-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        height: 36px;
        border-radius: 6px;
        font-size: 14px;
        margin: 0;
    }

        .nav-dropdown .nav-item svg {
            width: 15px;
            height: 15px;
        }

        .nav-dropdown .nav-item.active::after {
            display: none;
        }

/* 导航右侧（用户 + 主题 + 时间） */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 用户下拉菜单 */
.user-dropdown-wrap {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
}

    .user-trigger:hover {
        background: var(--bg-nav-hover);
    }

    .user-trigger .user-avatar {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        background: linear-gradient(135deg, var(--accent), #818cf8);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 600;
        color: white;
        flex-shrink: 0;
    }

    .user-trigger .user-name-nav {
        font-size: 13px;
        font-weight: 500;
        color: var(--nav-text);
    }

    .user-trigger .user-arrow {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        color: var(--text-muted);
        transition: transform 0.2s;
    }

    .user-trigger.open .user-arrow {
        transform: rotate(180deg);
    }

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
    z-index: 300;
}

    .user-dropdown.open {
        display: block;
    }

    .user-dropdown .ud-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 4px;
    }

        .user-dropdown .ud-header .ud-avatar {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: 600;
            color: white;
            flex-shrink: 0;
        }

        .user-dropdown .ud-header .ud-info {
            flex: 1;
            min-width: 0;
        }

        .user-dropdown .ud-header .ud-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-dropdown .ud-header .ud-role {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

    .user-dropdown .ud-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        height: 36px;
        border-radius: 8px;
        color: var(--text-secondary);
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        font: inherit;
    }

        .user-dropdown .ud-item:hover {
            background: var(--bg-nav-hover);
            color: var(--text-primary);
        }

        .user-dropdown .ud-item svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }

    .user-dropdown .ud-divider {
        height: 1px;
        background: var(--border-color);
        margin: 4px 8px;
    }

    .user-dropdown .ud-item.logout:hover {
        color: var(--danger);
    }

        .user-dropdown .ud-item.logout:hover svg {
            stroke: var(--danger);
        }

.header-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== 主区域 ===== */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 二级标题栏 */
.sub-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    gap: 12px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
}

    .breadcrumb .bc-sep {
        margin: 0 6px;
    }

    .breadcrumb .bc-current {
        color: var(--text-primary);
        font-weight: 500;
    }

/* 主内容 */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
/* ===== 全局滚动条美化 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: background 0.2s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(148, 163, 184, 0.4);
    }

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox 滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* ===== 页面通用组件样式 ===== */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

    .filter-bar .filter-fields {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-end;
    }

    .filter-bar .filter-actions {
        display: flex;
        gap: 8px;
        align-items: flex-end;
    }

.filter-toggle-btn {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .filter-group label {
        font-size: 12px;
        color: var(--text-muted);
    }

    .filter-group input, .filter-group select {
        height: 36px;
        padding: 0 12px;
        background: var(--bg-input);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 13px;
        outline: none;
        transition: border-color 0.3s;
    }

        .filter-group input:focus, .filter-group select:focus {
            border-color: var(--border-focus);
        }

        .filter-group input[type="date"] {
            width: 150px;
        }

        .filter-group input[type="text"] {
            width: 140px;
        }

    .filter-group select {
        width: 120px;
        cursor: pointer;
    }

.btn-primary {
    height: 36px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
    }

.btn-secondary {
    height: 36px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-secondary:hover {
        border-color: var(--text-muted);
        color: var(--text-primary);
    }

.stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

    .stat-card .stat-num {
        font-size: 24px;
        font-weight: 700;
    }

    .stat-card .stat-label {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 4px;
    }

.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    background: var(--thead-bg);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

tr:hover td {
    background: var(--hover-bg);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag-info {
    background: var(--tag-info-bg);
    color: var(--accent);
}

.tag-warning {
    background: var(--tag-warning-bg);
    color: var(--warning);
}

.tag-error {
    background: var(--tag-error-bg);
    color: var(--danger);
}

.tag-success {
    background: var(--tag-success-bg);
    color: var(--success);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

    .page-btn:hover:not(:disabled) {
        border-color: var(--accent);
        color: var(--accent);
    }

    .page-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.page-info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 8px;
}

.empty-msg {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

/* 占位页 */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    background: var(--bg-nav-active);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .placeholder-icon svg {
        width: 40px;
        height: 40px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.6;
    }

.placeholder-page h2 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.placeholder-page p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

    .theme-toggle:hover {
        border-color: var(--accent);
        color: var(--text-primary);
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

    .theme-toggle .theme-icon-dark {
        display: none;
    }

[data-theme="light"] .theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: block;
}

/* ===== 过渡动画 ===== */
.top-navbar, .sub-header, .filter-bar, .table-wrapper, .stat-card,
.btn-primary, .btn-secondary, .page-btn, .theme-toggle {
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

/* ===== 汉堡菜单按钮（移动端显示） ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

    .menu-toggle:hover {
        color: var(--text-primary);
        background: var(--bg-nav-hover);
    }

    .menu-toggle svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ===== 移动端侧边栏 ===== */
.mobile-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-nav);
    border-right: 1px solid var(--border-color);
    z-index: 200;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

    .mobile-sidebar.open {
        left: 0;
    }

    .mobile-sidebar .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

        .mobile-sidebar .sidebar-logo .logo-icon {
            width: 32px;
            height: 32px;
            object-fit: contain;
            flex-shrink: 0;
        }

        .mobile-sidebar .sidebar-logo .logo-text {
            font-size: 15px;
            font-weight: 700;
            letter-spacing: .02em;
            background: linear-gradient(100deg, var(--nav-text-hover) 8%, var(--nav-text-active) 92%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

    .mobile-sidebar .sidebar-nav {
        flex: 1;
        padding: 12px;
    }

    .mobile-sidebar .nav-group {
        margin-bottom: 8px;
    }

    .mobile-sidebar .nav-group-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--nav-group-label);
        padding: 8px 12px 4px;
    }

    .mobile-sidebar .nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        height: 40px;
        border-radius: 8px;
        color: var(--nav-text);
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        position: relative;
    }

        .mobile-sidebar .nav-item:hover {
            background: var(--bg-nav-hover);
            color: var(--nav-text-hover);
        }

        .mobile-sidebar .nav-item.active {
            background: var(--bg-nav-active);
            color: var(--nav-text-active);
        }

            .mobile-sidebar .nav-item.active::after {
                display: none;
            }

        .mobile-sidebar .nav-item svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
            flex-shrink: 0;
        }

        .mobile-sidebar .nav-item .arrow {
            margin-left: auto;
            width: 14px;
            height: 14px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            transition: transform 0.2s;
        }

        .mobile-sidebar .nav-item.has-sub.expanded .arrow {
            transform: rotate(90deg);
        }

    .mobile-sidebar .nav-sub {
        display: none;
        padding-left: 16px;
    }

        .mobile-sidebar .nav-sub.open {
            display: block;
        }

    .mobile-sidebar .sidebar-footer {
        padding: 12px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-sidebar .user-card {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .mobile-sidebar .user-card .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--accent), #818cf8);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            color: white;
            flex-shrink: 0;
        }

        .mobile-sidebar .user-card .user-info {
            flex: 1;
        }

        .mobile-sidebar .user-card .user-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .mobile-sidebar .user-card .user-role {
            font-size: 11px;
            color: var(--text-muted);
        }

        .mobile-sidebar .user-card .btn-logout-side {
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            color: var(--text-muted);
            transition: all 0.2s;
            display: flex;
            align-items: center;
        }

            .mobile-sidebar .user-card .btn-logout-side:hover {
                color: var(--danger);
                background: rgba(239,68,68,0.1);
            }

            .mobile-sidebar .user-card .btn-logout-side svg {
                width: 16px;
                height: 16px;
                stroke: currentColor;
                fill: none;
                stroke-width: 2;
            }

/* 移动端遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
html:not([data-fit]) .menu-toggle {
        display: flex;
        align-items: center;
    }
html:not([data-fit]) .nav-items {
        display: none;
    }
html:not([data-fit]) .sidebar-overlay {
        display: block;
    }
html:not([data-fit]) .sub-header {
        padding: 0 12px;
    }
html:not([data-fit]) .breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
html:not([data-fit]) .header-time {
        display: none;
    }
html:not([data-fit]) .theme-toggle .theme-label {
        display: none;
    }
html:not([data-fit]) .theme-toggle {
        padding: 6px 8px;
    }
html:not([data-fit]) .top-navbar .user-info-nav {
        display: none;
    }
html:not([data-fit]) .top-navbar .btn-logout-nav {
        display: none;
    }
html:not([data-fit]) .top-navbar .logo-text {
        display: none;
    }
html:not([data-fit]) .top-navbar .logo-wrap {
        display: none;
    }
html:not([data-fit]) .top-navbar .logo-icon {
        display: none;
    }
html:not([data-fit]) .page-content {
        padding: 16px 12px;
    }
html:not([data-fit]) .filter-bar {
        padding: 12px;
        gap: 8px;
        flex-direction: column;
        position: relative;
    }
html:not([data-fit]) .filter-bar .filter-fields {
            display: none;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
html:not([data-fit]) .filter-bar.expanded .filter-fields {
            display: flex;
        }
html:not([data-fit]) .filter-bar .filter-actions {
            display: flex;
            gap: 8px;
            width: 100%;
        }
html:not([data-fit]) .filter-bar .filter-actions .btn-primary, html:not([data-fit]) .filter-bar .filter-actions .btn-secondary {
                flex: 1;
            }
html:not([data-fit]) .filter-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 0;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
html:not([data-fit]) .filter-toggle-btn svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            transition: transform 0.2s;
        }
html:not([data-fit]) .filter-bar.expanded .filter-toggle-btn svg {
        transform: rotate(180deg);
    }
html:not([data-fit]) .filter-group {
        width: 100%;
    }
html:not([data-fit]) .filter-group input, html:not([data-fit]) .filter-group select {
            width: 100% !important;
        }
html:not([data-fit]) .filter-group input[type="date"] {
                width: 100% !important;
            }
html:not([data-fit]) .filter-group input[type="text"] {
                width: 100% !important;
            }
html:not([data-fit]) .filter-group select {
            width: 100% !important;
        }
html:not([data-fit]) .btn-primary, html:not([data-fit]) .btn-secondary {
        width: 100%;
        text-align: center;
    }
html:not([data-fit]) .stats-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
html:not([data-fit]) .stat-card {
        flex: none;
        width: calc(50% - 3px);
        padding: 10px 8px;
    }
html:not([data-fit]) .stat-card .stat-num {
            font-size: 18px;
        }
html:not([data-fit]) .stat-card .stat-label {
            font-size: 11px;
        }
html:not([data-fit]) .table-wrapper {
        border-radius: 8px;
    }
html:not([data-fit]) th, html:not([data-fit]) td {
        padding: 8px 10px;
        font-size: 12px;
    }
html:not([data-fit]) .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
html:not([data-fit]) .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
html:not([data-fit]) .placeholder-page {
        min-height: 40vh;
    }
html:not([data-fit]) .placeholder-icon {
        width: 60px;
        height: 60px;
    }
html:not([data-fit]) .placeholder-icon svg {
            width: 30px;
            height: 30px;
        }
html:not([data-fit]) .placeholder-page h2 {
        font-size: 17px;
    }
html:not([data-fit]) .placeholder-page p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
html:not([data-fit]) .page-content {
        padding: 12px 8px;
    }
}

/* ===== 全局弹窗（Modal/Dialog） ===== */

/* 弹窗覆盖层（全局确认弹窗 + 账号弹窗共用） */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* 必须高于浮动助手对话面板(z-index:10000)，否则在 AI 助手页弹窗会被遮挡 */
    z-index: 10002;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .modal-overlay.show {
        display: flex;
        opacity: 1;
    }

.modal-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(148,163,184,0.05);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    opacity: 0;
    overflow: hidden;
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 0 24px;
}

    .modal-header .modal-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-header .modal-icon.warning {
            background: rgba(251,191,36,0.15);
            color: var(--warning);
        }

        .modal-header .modal-icon.info {
            background: rgba(56,189,248,0.15);
            color: var(--accent);
        }

        .modal-header .modal-icon.error {
            background: rgba(248,113,113,0.15);
            color: var(--danger);
        }

        .modal-header .modal-icon.success {
            background: rgba(74,222,128,0.15);
            color: var(--success);
        }

        .modal-header .modal-icon svg {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

    .modal-header .modal-title {
        font-size: 17px;
        font-weight: 600;
        color: var(--text-primary);
        flex: 1;
    }

.modal-body {
    padding: 12px 24px 20px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 24px 20px 24px;
    justify-content: flex-end;
}

    .modal-footer .modal-btn {
        padding: 8px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .modal-footer .modal-btn.btn-cancel {
            background: var(--bg-input);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

            .modal-footer .modal-btn.btn-cancel:hover {
                background: rgba(51,65,85,0.9);
                color: #fff;
            }

        .modal-footer .modal-btn.btn-confirm {
            background: linear-gradient(135deg, var(--accent), #0ea5e9);
            color: #fff;
            box-shadow: 0 4px 12px var(--accent-glow);
        }

            .modal-footer .modal-btn.btn-confirm:hover {
                box-shadow: 0 6px 20px var(--accent-glow);
                transform: translateY(-1px);
            }

            .modal-footer .modal-btn.btn-confirm.danger {
                background: linear-gradient(135deg, var(--danger), #ef4444);
                box-shadow: 0 4px 12px rgba(248,113,113,0.3);
            }

                .modal-footer .modal-btn.btn-confirm.danger:hover {
                    box-shadow: 0 6px 20px rgba(248,113,113,0.4);
                }

        .modal-footer .modal-btn.btn-primary {
            background: linear-gradient(135deg, var(--accent), #0ea5e9);
            color: #fff;
            box-shadow: 0 4px 12px var(--accent-glow);
        }

            .modal-footer .modal-btn.btn-primary:hover {
                box-shadow: 0 6px 20px var(--accent-glow);
                transform: translateY(-1px);
            }

/* ===== 预警 Toast 弹窗（时间线风格） ===== */
.alert-toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
    max-width: 460px;
}
.alert-toast {
    pointer-events: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px 16px 26px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(148,163,184,0.06);
    animation: slideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    max-height: 420px;
}
.alert-toast.at-urgent { border-left-color: #f87171; }
.alert-toast.at-push { border-left-color: #fb923c; }
.alert-toast.at-watch { border-left-color: #fbbf24; }
.alert-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.4);
}
.alert-toast.closing {
    animation: slideOut 0.3s ease forwards;
}
.alert-toast .at-item {
    position: relative;
    padding-left: 18px;
    padding-bottom: 12px;
    border-left: 2px solid var(--border-color);
    margin-left: 5px;
}
.alert-toast .at-item:last-child { padding-bottom: 2px; }
.alert-toast .at-item .at-dot {
    position: absolute;
    left: -7px; top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.alert-toast .at-item .at-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.alert-toast .at-item .at-time {
    font-size: 12px; font-weight: 500; color: var(--text-muted);
}
.alert-toast .at-item .at-badge {
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
}
.alert-toast .at-item .at-badge.urgent { background: rgba(248,113,113,0.18); color: #f87171; }
.alert-toast .at-item .at-badge.push { background: rgba(251,146,60,0.18); color: #fb923c; }
.alert-toast .at-item .at-badge.watch { background: rgba(251,191,36,0.18); color: #fbbf24; }
.alert-toast .at-item .at-senti {
    font-size: 10px; font-weight: 600;
    padding: 1px 7px; border-radius: 4px;
}
.alert-toast .at-item .at-senti.neg { background: rgba(248,113,113,0.15); color: #f87171; }
.alert-toast .at-item .at-senti.pos { background: rgba(74,222,128,0.15); color: #4ade80; }
.alert-toast .at-item .at-senti.neu { background: rgba(148,163,184,0.15); color: #94a3b8; }
.alert-toast .at-item .at-title {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.5;
}
.alert-toast .at-item .at-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 3px 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.alert-toast .at-item .at-type-mark {
    display: inline-block;
    margin-right: 4px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 3px;
    vertical-align: 1px;
    background: rgba(96,165,250,0.18);
    color: #60a5fa;
}
.alert-toast .at-item .at-type-mark.mark-fwd { background: rgba(167,139,250,0.18); color: #a78bfa; }
.alert-toast .at-item .at-source {
    font-size: 11px; color: var(--text-muted);
}
.alert-toast .at-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.alert-toast .at-footer .at-link {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.alert-toast .at-footer .at-link:hover { text-decoration: underline; }
.alert-toast .at-footer .at-close {
    font-size: 12px; color: var(--text-muted);
    cursor: pointer; background: none; border: none;
    padding: 4px 10px; border-radius: 6px;
}
.alert-toast .at-footer .at-close:hover { background: var(--bg-input); color: var(--text-primary); }
.alert-toast .at-footer .at-close-alert {
    color: #f87171;
    font-weight: 600;
    border: 1px solid rgba(248,113,113,0.25);
}
.alert-toast .at-footer .at-close-alert:hover {
    background: rgba(248,113,113,0.12);
    color: #f87171;
    border-color: rgba(248,113,113,0.4);
}

/* at-body：限制最大高度，超出滚动 */
.alert-toast .at-body {
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,0.25) transparent;
    min-height: 0;
}
.alert-toast .at-body::-webkit-scrollbar { width: 4px; }
.alert-toast .at-body::-webkit-scrollbar-track { background: transparent; }
.alert-toast .at-body::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 4px; }

/* ===== 预警条目进入动画 ===== */
@keyframes atItemSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: -12px;
    }
    40% {
        opacity: 0.8;
        transform: translateY(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 120px;
        padding-bottom: 12px;
        margin-bottom: 0;
    }
}
@keyframes atDotRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(248,113,113,0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(248,113,113,0);
        transform: scale(1.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(248,113,113,0);
        transform: scale(1);
    }
}
@keyframes atDotRipplePush {
    0% { box-shadow: 0 0 0 0 rgba(251,146,60,0.5); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(251,146,60,0); transform: scale(1.3); }
    100% { box-shadow: 0 0 0 0 rgba(251,146,60,0); transform: scale(1); }
}
@keyframes atHighlightFade {
    0% { background-color: rgba(56,189,248,0.08); }
    100% { background-color: transparent; }
}

.alert-toast .at-item-new {
    animation: atItemSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.alert-toast .at-item-new .at-dot {
    animation: atDotRipple 0.8s ease-out 0.3s;
}
.alert-toast.at-push .at-item-new .at-dot {
    animation-name: atDotRipplePush;
}
.alert-toast .at-item-new .at-item-bg {
    position: absolute;
    inset: -4px 0 -4px -22px;
    border-radius: 8px;
    pointer-events: none;
    animation: atHighlightFade 2s ease-out 0.5s forwards;
    z-index: 0;
}
.alert-toast .at-item-new > * {
    position: relative;
    z-index: 1;
}
/* 连接线动画：新条目接入时线段伸展 */
.alert-toast .at-item-new ~ .at-item {
    border-left-color: transparent;
    transition: border-left-color 0.3s ease 0.4s;
}
.alert-toast .at-item-new ~ .at-item {
    border-left-color: var(--border-color);
}




/* ===== 右侧浮动关闭提示点 ===== */
.alert-dot {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    width: 28px;
    height: 52px;
    background: linear-gradient(180deg, #f87171, #ef4444);
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -3px 0 16px rgba(248,113,113,0.35);
    transition: all 0.25s ease;
}
.alert-dot:hover {
    width: 32px;
    box-shadow: -4px 0 20px rgba(248,113,113,0.45);
}
.alert-dot svg {
    width: 18px; height: 18px;
    stroke: white; fill: none;
    stroke-width: 2;
}
/* 伪元素桥接：鼠标从浮点移到 popup 时 hover 不会断开 */
.alert-dot::before {
    content: '';
    position: absolute;
    right: 100%;
    top: -8px;
    bottom: -8px;
    width: 20px;
}
.alert-dot .ad-popup {
    display: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    white-space: nowrap;
    align-items: center;
    gap: 12px;
    z-index: 1;
}
.alert-dot.ad-active .ad-popup,
.alert-dot:hover .ad-popup {
    display: flex;
}
.alert-dot .ad-popup-text {
    font-size: 13px;
    color: var(--text-secondary);
}
.alert-dot .ad-popup-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.alert-dot .ad-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== 全局 Toast 通知（页面居中偏上弹出，各页面通用） ===== */
.global-toast-container {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.global-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    max-width: 420px;
    padding: 12px 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid #1890ff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.global-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.global-toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* 图标 */
.global-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.global-toast-icon svg {
    width: 100%;
    height: 100%;
}
.global-toast-text {
    flex: 1;
    word-break: break-word;
}

/* 各类型颜色（图标 + 左边框） */
.global-toast.gt-success { border-left-color: #52c41a; }
.global-toast.gt-success .global-toast-icon { color: #52c41a; }
.global-toast.gt-warning { border-left-color: #fa8c16; }
.global-toast.gt-warning .global-toast-icon { color: #fa8c16; }
.global-toast.gt-error { border-left-color: #f5222d; }
.global-toast.gt-error .global-toast-icon { color: #f5222d; }
.global-toast.gt-info { border-left-color: #1890ff; }
.global-toast.gt-info .global-toast-icon { color: #1890ff; }
.global-toast.gt-loading { border-left-color: #1890ff; }
.global-toast.gt-loading .global-toast-icon { color: #1890ff; }

/* loading 旋转动画 */
.global-toast.gt-loading .global-toast-icon svg {
    animation: gt-spin 0.9s linear infinite;
}
@keyframes gt-spin {
    to { transform: rotate(360deg); }
}

/* ===== 全局顶栏 · 我的待办入口（纯图标 + 右上角数量角标）===== */
.nav-todo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin-right: 10px;
    border: 1px solid #dbe7fb;
    border-radius: 8px;
    background: #f2f6fd;
    color: #2b6de8;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.nav-todo-btn:hover { background: #e8effc; border-color: #bfd6fa; }
.nav-todo-btn svg { width: 17px; height: 17px; flex: none; }
.nav-todo-btn .nav-todo-n {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    border: 1.5px solid #fff;
    background: #2b6de8;
    color: #fff;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 40, 90, .18);
}





/* ===== 演示身份（放在用户下拉里，与账号信息同处） ===== */
.user-dropdown { min-width: 244px; }

.user-dropdown .ud-section-title {
    padding: 8px 12px 4px;
    font-size: 11px;
    line-height: 16px;
    color: var(--text-muted);
}

.user-dropdown .ud-role-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .user-dropdown .ud-role-item:hover {
        background: var(--bg-nav-hover);
        color: var(--text-primary);
    }

    .user-dropdown .ud-role-item.active {
        background: #eef4ff;
        color: #2b6de8;
    }

    .user-dropdown .ud-role-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        opacity: .3;
        flex: none;
    }

    .user-dropdown .ud-role-item.active .ud-role-dot {
        opacity: 1;
    }

    .user-dropdown .ud-role-name {
        flex: none;
        font-weight: 500;
    }

    .user-dropdown .ud-role-scope {
        flex: 1;
        min-width: 0;
        font-size: 11px;
        color: var(--text-muted);
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-dropdown .ud-role-item.active .ud-role-scope {
        color: #7ba3ef;
    }

    .user-dropdown .ud-check {
        width: 14px;
        height: 14px;
        flex: none;
        opacity: 0;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .user-dropdown .ud-role-item.active .ud-check {
        opacity: 1;
    }

    .user-dropdown .ud-dept-box {
        padding: 0 8px 8px;
    }

    .user-dropdown .ud-dept-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .user-dropdown .ud-dept {
        height: 28px;
        padding: 0 8px;
        border: 1px solid var(--border-color);
        border-radius: 7px;
        background: #fff;
        font: inherit;
        font-size: 12px;
        line-height: 26px;
        color: var(--text-secondary);
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all .15s;
    }

        .user-dropdown .ud-dept:hover {
            border-color: #bfd6fa;
            background: #f7faff;
            color: #2b6de8;
        }

        .user-dropdown .ud-dept.active {
            border-color: #9dc0f7;
            background: #eef4ff;
            color: #2b6de8;
            font-weight: 500;
        }

    .user-dropdown .ud-dept-note {
        padding: 2px 4px 6px;
        font-size: 12px;
        color: var(--text-muted);
    }
