        @import url('https://fonts.loli.net/css2?family=Inter:wght@400;500;600;700;800&display=swap');

        /* ═══════════════════════════════════════════
           Design Token System — 浅色模式
        ═══════════════════════════════════════════ */
        :root {
            --wb-body-bg: #F8FAFC;
            --wb-surface: #ffffff;
            --wb-surface-soft: #F1F5F9;
            --wb-card-bg: #ffffff;
            --wb-card-border: rgba(0, 0, 0, 0.06);
            --wb-card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
            --wb-text: #0F172A;
            --wb-text-secondary: #64748B;
            --wb-text-muted: #94A3B8;
            --wb-primary: #4F46E5;
            --wb-primary-hover: #4338CA;
            --wb-primary-light: rgba(79, 70, 229, 0.08);
            --wb-accent: #7C3AED;
            --wb-success: #10B981;
            --wb-success-bg: rgba(16, 185, 129, 0.08);
            --wb-warning: #F59E0B;
            --wb-warning-bg: rgba(245, 158, 11, 0.08);
            --wb-error: #EF4444;
            --wb-error-bg: rgba(239, 68, 68, 0.08);
            --wb-info: #06B6D4;
            --wb-info-bg: rgba(6, 182, 212, 0.08);
            --wb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
            --wb-font-mono: "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, monospace;
            --wb-font-size-xs: .75rem;
            --wb-font-size-sm: .8125rem;
            --wb-font-size-base: .875rem;
            --wb-font-size-md: 1rem;
            --wb-font-size-lg: 1.125rem;
            --wb-font-size-xl: 1.25rem;
            --wb-font-size-2xl: 1.5rem;
            --wb-font-size-3xl: 1.875rem;
            --wb-line-height-tight: 1.25;
            --wb-line-height-normal: 1.5;
            --wb-line-height-relaxed: 1.65;
            --wb-space-1: .25rem;
            --wb-space-2: .5rem;
            --wb-space-3: .75rem;
            --wb-space-4: 1rem;
            --wb-space-6: 1.5rem;
            --wb-space-8: 2rem;
            --wb-radius-sm: 6px;
            --wb-radius-md: 8px;
            --wb-radius-lg: 12px;
            --wb-radius-xl: 16px;
            --wb-radius-pill: 999px;
            --wb-shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
            --wb-shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
            --wb-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.06);
            --wb-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
            --wb-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
            --wb-transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
            --wb-transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
            --wb-transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
            --wb-sidebar-bg: #0F172A;
            --wb-sidebar-border: rgba(255, 255, 255, 0.06);
            --wb-sidebar-text: #CBD5E1;
            --wb-sidebar-muted: rgba(203, 213, 225, 0.7);
            --wb-sidebar-active: rgba(99, 102, 241, 0.2);
            --wb-topbar-bg: rgba(255, 255, 255, 0.85);
            --wb-topbar-border: rgba(0, 0, 0, 0.06);
            --wb-shell-gap: 1.25rem;
            --wb-sidebar-width: 240px;
            --wb-sidebar-width-collapsed: 68px;
        }

        /* ═══════════════════════════════════════════
           Design Token System — 深色模式
        ═══════════════════════════════════════════ */
        body[data-theme="dark"] {
            --wb-body-bg: #020617;
            --wb-surface: #0F172A;
            --wb-surface-soft: #1E293B;
            --wb-card-bg: rgba(15, 23, 42, 0.95);
            --wb-card-border: rgba(99, 102, 241, 0.12);
            --wb-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            --wb-text: #E2E8F0;
            --wb-text-secondary: #94A3B8;
            --wb-text-muted: #64748B;
            --wb-primary: #818CF8;
            --wb-primary-hover: #A5B4FC;
            --wb-primary-light: rgba(129, 140, 248, 0.12);
            --wb-accent: #A78BFA;
            --wb-success: #34D399;
            --wb-success-bg: rgba(52, 211, 153, 0.12);
            --wb-warning: #FBBF24;
            --wb-warning-bg: rgba(251, 191, 36, 0.12);
            --wb-error: #F87171;
            --wb-error-bg: rgba(248, 113, 113, 0.12);
            --wb-info: #22D3EE;
            --wb-info-bg: rgba(34, 211, 238, 0.12);
            --wb-sidebar-bg: #020617;
            --wb-sidebar-border: rgba(99, 102, 241, 0.1);
            --wb-sidebar-text: #CBD5E1;
            --wb-sidebar-muted: rgba(203, 213, 225, 0.7);
            --wb-sidebar-active: rgba(99, 102, 241, 0.2);
            --wb-topbar-bg: rgba(2, 6, 23, 0.9);
            --wb-topbar-border: rgba(99, 102, 241, 0.1);
        }

        body {
            font-family: var(--wb-font-family);
            font-size: var(--wb-font-size-base);
            line-height: var(--wb-line-height-normal);
            background: var(--wb-body-bg);
            color: var(--wb-text);
            transition: background var(--wb-transition-normal), color var(--wb-transition-normal);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .card {
            border: 1px solid var(--wb-card-border);
            border-radius: var(--wb-radius-lg);
            box-shadow: var(--wb-card-shadow);
            background: var(--wb-card-bg);
            color: var(--wb-text);
            transition: transform 200ms ease-out, background var(--wb-transition-normal), border-color var(--wb-transition-normal), box-shadow var(--wb-transition-normal);
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: var(--wb-shadow-lg);
        }

        .card-header {
            border-bottom-color: var(--wb-card-border);
            background: var(--wb-surface) !important;
            color: var(--wb-text);
        }

        /* --- 语义色工具类 --- */
        .text-wb-success { color: var(--wb-success) !important; }
        .text-wb-warning { color: var(--wb-warning) !important; }
        .text-wb-error   { color: var(--wb-error) !important; }
        .text-wb-info    { color: var(--wb-info) !important; }
        .bg-wb-success   { background: var(--wb-success-bg) !important; }
        .bg-wb-warning   { background: var(--wb-warning-bg) !important; }
        .bg-wb-error     { background: var(--wb-error-bg) !important; }
        .bg-wb-info      { background: var(--wb-info-bg) !important; }

        /* --- 表单控件统一圆角 --- */
        .form-control,
        .form-select {
            border-radius: var(--wb-radius-sm);
            border-color: var(--wb-card-border);
            background: var(--wb-surface);
            color: var(--wb-text);
            transition: border-color var(--wb-transition-fast), box-shadow var(--wb-transition-fast);
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--wb-primary);
            box-shadow: 0 0 0 3px var(--wb-primary-light);
        }

        .btn {
            border-radius: var(--wb-radius-sm);
            transition: all var(--wb-transition-fast);
        }

        .btn:focus-visible {
            outline: 2px solid var(--wb-primary);
            outline-offset: 2px;
        }

        .form-control,
        .form-select,
        .table,
        .alert,
        .btn-outline-secondary,
        .btn-outline-dark,
        .btn-outline-primary,
        .btn-outline-success {
            --bs-body-color: var(--wb-text);
        }

        .text-muted,
        .form-text,
        .table > :not(caption) > * > * .text-muted {
            color: var(--wb-text-muted) !important;
        }

        .table {
            --bs-table-bg: transparent;
            --bs-table-color: var(--wb-text);
            --bs-table-border-color: var(--wb-card-border);
            --bs-table-striped-bg: var(--wb-primary-light);
            --bs-table-hover-bg: var(--wb-primary-light);
            margin-bottom: 0;
        }

        .table thead th {
            color: var(--wb-text-muted);
            font-weight: 600;
            font-size: .82rem;
            text-transform: none;
            letter-spacing: 0;
            border-bottom-width: 1px;
            padding: .75rem 1rem;
            white-space: nowrap;
        }

        .table tbody td {
            padding: .7rem 1rem;
            vertical-align: middle;
        }

        .table tbody tr:hover {
            background: var(--wb-primary-light);
        }

        .table-striped tbody tr:nth-of-type(odd) {
            --bs-table-accent-bg: var(--wb-primary-light);
        }

        .stat-number {
            font-size: var(--wb-font-size-3xl);
            font-weight: 700;
            letter-spacing: .02em;
            line-height: var(--wb-line-height-tight);
            color: var(--wb-text);
        }

        .stat-label {
            font-size: var(--wb-font-size-sm);
            color: var(--wb-text-muted);
            margin-bottom: var(--wb-space-1);
        }

        .page-title {
            font-weight: 700;
            font-size: var(--wb-font-size-xl);
            color: var(--wb-text);
            letter-spacing: .01em;
        }

        .app-shell {
            min-height: 100vh;
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 1030;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: .6rem 1.25rem;
            border-bottom: 1px solid var(--wb-topbar-border);
            background: var(--wb-topbar-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            transition: background var(--wb-transition-normal), border-color var(--wb-transition-normal);
            height: 60px;
        }

        .topbar-start,
        .topbar-end {
            display: flex;
            align-items: center;
            gap: .75rem;
            min-width: 0;
        }

        .brand-link {
            display: inline-flex;
            align-items: center;
            gap: .65rem;
            color: var(--wb-text);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            white-space: nowrap;
        }

        .brand-link:hover {
            color: var(--wb-primary);
        }

        .brand-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            color: #ffffff;
            font-size: 1rem;
        }

        .topbar-title {
            flex: 1;
            text-align: center;
            font-weight: 700;
            letter-spacing: .04em;
            color: var(--wb-text-secondary);
            font-size: .9rem;
        }

        .shell-body {
            display: flex;
            min-height: calc(100vh - 64px);
        }

        .sidebar-shell {
            width: var(--wb-sidebar-width);
            flex: 0 0 var(--wb-sidebar-width);
            background: var(--wb-sidebar-bg);
            color: var(--wb-sidebar-text);
            border-right: 1px solid var(--wb-sidebar-border);
            transition: width .22s ease, flex-basis .22s ease, border-color var(--wb-transition-normal);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: calc(100vh - 64px);
            position: sticky;
            top: 64px;
        }

        body.sidebar-collapsed .sidebar-shell {
            width: var(--wb-sidebar-width-collapsed);
            flex-basis: var(--wb-sidebar-width-collapsed);
            overflow: visible;
        }

        .sidebar-inner {
            padding: .6rem .55rem 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            width: 100%;
            overflow: hidden;
        }

        body.sidebar-collapsed .sidebar-inner {
            padding: .6rem 0 0;
        }

        .sidebar-control {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            color: var(--wb-sidebar-text);
            margin-bottom: .5rem;
            padding: 0 .2rem;
        }

        body.sidebar-collapsed .sidebar-control {
            justify-content: center;
            padding: 0;
        }

        .sidebar-section-title {
            color: var(--wb-sidebar-muted);
            font-size: 10px;
            letter-spacing: .1em;
            text-transform: uppercase;
            padding: .6rem .55rem .2rem;
            transition: opacity .2s ease;
        }

        body.sidebar-collapsed .sidebar-section-title,
        body.sidebar-collapsed .sidebar-caption,
        body.sidebar-collapsed .menu-label {
            opacity: 0;
            pointer-events: none;
        }

        body.sidebar-collapsed .sidebar-section-title {
            height: 0;
            padding: 0;
            overflow: hidden;
        }

        .sidebar-menu a {
            position: relative;
            display: flex;
            align-items: center;
            gap: .55rem;
            color: var(--wb-sidebar-text);
            text-decoration: none;
            padding: .48rem .7rem;
            border-radius: 10px;
            margin-bottom: .2rem;
            font-size: .82rem;
            transition: all .2s ease;
            white-space: nowrap;
        }

        .sidebar-menu a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 3px;
            height: 0;
            border-radius: 999px;
            background: var(--wb-primary);
            transform: translateY(-50%);
            transition: height .2s ease, opacity .2s ease;
            opacity: 0;
        }

        .sidebar-menu a:hover {
            background: rgba(79, 70, 229, 0.12);
            color: #4F46E5;
        }

        .sidebar-menu a.active {
            background: rgba(79, 70, 229, 0.1);
            color: #4F46E5;
            box-shadow: inset 3px 0 0 var(--wb-primary);
            font-weight: 600;
        }

        body[data-theme="dark"] .sidebar-menu a:hover {
            background: rgba(129, 140, 248, 0.12);
            color: #E2E8F0;
        }

        body[data-theme="dark"] .sidebar-menu a.active {
            background: rgba(129, 140, 248, 0.15);
            color: #E2E8F0;
            box-shadow: inset 3px 0 0 var(--wb-primary);
        }

        body[data-theme="dark"] .sidebar-menu a.active {
            background: rgba(129, 140, 248, 0.15);
            color: #ffffff;
            box-shadow: inset 3px 0 0 var(--wb-primary);
        }


        .sidebar-menu a:hover::before,
        .sidebar-menu a.active::before {
            height: 60%;
            opacity: 1;
        }

        .sidebar-menu i {
            width: 1rem;
            text-align: center;
            font-size: .9rem;
            flex-shrink: 0;
        }

        .sidebar-menu {
            padding-left: .6rem;
        }

        body.sidebar-collapsed .sidebar-menu {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        body.sidebar-collapsed .sidebar-menu a {
            justify-content: center;
            width: 40px;
            height: 40px;
            margin-left: auto;
            margin-right: auto;
            padding: 0;
            gap: 0;
            border-radius: 12px;
        }

        body.sidebar-collapsed .sidebar-menu a::before {
            left: 50%;
            top: auto;
            bottom: 3px;
            width: 18px;
            height: 3px;
            transform: translateX(-50%);
        }

        body.sidebar-collapsed .sidebar-menu a:hover::before,
        body.sidebar-collapsed .sidebar-menu a.active::before {
            height: 3px;
            opacity: 1;
        }

        body.sidebar-collapsed .sidebar-menu i {
            width: auto;
            font-size: 1rem;
            transition: transform .2s ease, text-shadow .2s ease, font-size .2s ease;
        }

        body.sidebar-collapsed .sidebar-menu a.active {
            transform: scale(1.08);
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
        }

        body.sidebar-collapsed .sidebar-menu a.active i {
            font-size: 1.14rem;
            transform: scale(1.08);
            color: #ffffff;
        }

        /* ═══════════════════════════════════════════
           可折叠导航组
        ═══════════════════════════════════════════ */
        .nav-group {
            margin-bottom: .15rem;
            width: 100%;
        }

        .nav-group-header {
            display: flex;
            align-items: center;
            gap: .55rem;
            padding: .52rem .7rem;
            color: var(--wb-text);
            font-weight: 700;
            font-size: .88rem;
            cursor: pointer;
            border-radius: 10px;
            transition: all .2s ease;
            user-select: none;
        }

        body[data-theme="dark"] .nav-group-header {
            color: #E2E8F0;
        }

        .nav-group-header:hover {
            background: rgba(79, 70, 229, 0.12);
            color: #4F46E5;
        }

        .nav-group-header.active-link:hover {
            background: rgba(79, 70, 229, 0.12);
            color: #4F46E5;
        }

        body[data-theme="dark"] .nav-group-header:hover {
            background: rgba(129, 140, 248, 0.12);
            color: #ffffff;
        }

        body[data-theme="dark"] .nav-group-header.active-link:hover {
            background: rgba(129, 140, 248, 0.15);
            color: #ffffff;
        }

        .nav-group-icon {
            width: 1rem;
            text-align: center;
            font-size: .95rem;
            flex-shrink: 0;
        }

        .nav-group-text {
            flex: 1;
            white-space: nowrap;
        }

        .nav-group-arrow {
            font-size: .65rem;
            transition: transform .25s ease;
            opacity: .65;
        }

        /* 默认向下，展开时向上 */
        .nav-group.open > .nav-group-header .nav-group-arrow {
            transform: rotate(180deg);
        }

        .nav-group-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height .3s ease;
        }

        .nav-group.open > .nav-group-body {
            max-height: 600px;
        }

        .nav-group.open > .nav-group-header {
            color: #4F46E5;
            font-weight: 600;
        }

        body[data-theme="dark"] .nav-group.open > .nav-group-header {
            color: #ffffff;
        }

        /* 子菜单样式 - 缩进显示 */
        .nav-group-body .sidebar-menu {
            padding-left: 0;
            margin-left: 1.5rem;
            border-left: 2px solid rgba(148, 163, 184, 0.15);
        }

        .nav-group-body .sidebar-menu a {
            padding: .4rem .7rem .4rem 1rem;
            font-size: .82rem;
            border-radius: 0 8px 8px 0;
            margin: 2px 0;
        }

        .nav-group-body .sidebar-menu a.active {
            background: rgba(79, 70, 229, 0.1);
            color: #4F46E5;
            box-shadow: inset 3px 0 0 var(--wb-primary);
            font-weight: 600;
        }

        body[data-theme="dark"] .nav-group-body .sidebar-menu a.active {
            background: rgba(129, 140, 248, 0.15);
            color: #ffffff;
            box-shadow: inset 3px 0 0 var(--wb-primary);
        }

        .nav-group-header.active-link {
            background: var(--wb-primary-light);
            color: var(--wb-primary);
            box-shadow: inset 3px 0 0 var(--wb-primary);
            font-weight: 600;
        }

        body[data-theme="dark"] .nav-group-header.active-link {
            background: rgba(129, 140, 248, 0.15);
            color: #ffffff;
            box-shadow: inset 3px 0 0 var(--wb-primary);
        }

        /* ═══════════════════════════════════════════
           子分组样式（业务配置等）
        ═══════════════════════════════════════════ */
        .nav-subgroup {
            margin: 0;
            transition: margin .25s ease;
        }

        .nav-subgroup.open {
            margin: 4px 0;
        }

        .nav-subgroup-header {
            display: flex;
            align-items: center;
            gap: .6rem;
            padding: .4rem .7rem .4rem .7rem;
            font-size: .82rem;
            color: var(--wb-sidebar-muted);
            cursor: pointer;
            border-radius: 0 8px 8px 0;
            transition: all .2s ease;
            margin: 2px 0;
        }

        .nav-subgroup-header:hover {
            color: #4F46E5;
            background: rgba(79, 70, 229, 0.12);
        }

        .nav-subgroup-header.active {
            color: #4F46E5;
            background: rgba(79, 70, 229, 0.1);
            font-weight: 500;
        }

        body[data-theme="dark"] .nav-subgroup-header {
            color: #e2e8f0;
        }

        body[data-theme="dark"] .nav-subgroup-header:hover {
            color: #ffffff;
            background: rgba(148, 163, 184, 0.15);
        }

        .nav-subgroup-header i:first-child {
            width: 18px;
            text-align: center;
            font-size: .85rem;
        }

        .nav-subgroup-arrow {
            margin-left: auto;
            font-size: .6rem;
            transition: transform .25s ease;
            opacity: .5;
        }

        .nav-subgroup.open .nav-subgroup-arrow {
            transform: rotate(180deg);
        }

        .nav-subgroup-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height .25s ease;
        }

        .nav-subgroup.open .nav-subgroup-body {
            max-height: 300px;
        }

        .nav-subgroup-body a {
            padding-left: 2.2rem !important;
            font-size: .8rem !important;
        }

        .nav-group-header.active-link::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 3px;
            height: 60%;
            border-radius: 999px;
            background: var(--wb-primary);
            transform: translateY(-50%);
        }

        .nav-group-header {
            position: relative;
            text-decoration: none;
        }

        /* 折叠态下的导航组 */
        body.sidebar-collapsed .nav-group-header {
            justify-content: center;
            padding: .5rem;
            width: 40px;
            margin-left: auto;
            margin-right: auto;
        }

        body.sidebar-collapsed .nav-group-header .nav-group-text,
        body.sidebar-collapsed .nav-group-header .nav-group-arrow {
            display: none;
        }

        body.sidebar-collapsed .nav-group-header .nav-group-icon {
            font-size: 1.05rem;
        }

        /* 折叠态下，工作台作为无子菜单的 nav-group 不弹出浮层 */
        body.sidebar-collapsed .nav-group.nav-leaf:hover > .nav-group-body {
            display: none;
        }

        /* 折叠态下工作台的 active 样式 */
        body.sidebar-collapsed .nav-leaf .nav-group-header.active-link {
            transform: scale(1.08);
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
        }

        body[data-theme="dark"].sidebar-collapsed .nav-leaf .nav-group-header.active-link {
            background: linear-gradient(135deg, #818CF8, #A78BFA);
            box-shadow: 0 4px 14px rgba(107, 143, 255, 0.3);
        }

        body.sidebar-collapsed .nav-leaf .nav-group-header.active-link::before {
            left: 50%;
            top: auto;
            bottom: 3px;
            width: 18px;
            height: 3px;
            transform: translateX(-50%);
        }

        body.sidebar-collapsed .nav-leaf .nav-group-header.active-link .nav-group-icon {
            font-size: 1.14rem;
            transform: scale(1.08);
            text-shadow: 0 0 16px rgba(129, 140, 248, 0.55);
        }

        body.sidebar-collapsed .nav-group-body {
            display: none;
        }

        /* 折叠态弹出子菜单 */
        body.sidebar-collapsed .nav-group {
            position: relative;
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body {
            display: block;
            position: absolute;
            left: calc(100% + 6px);
            top: 0;
            min-width: 170px;
            max-height: none;
            background: var(--wb-surface);
            border: 1px solid var(--wb-card-border);
            border-radius: var(--wb-radius-md);
            box-shadow: var(--wb-shadow-lg);
            padding: .4rem;
            z-index: 1050;
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body .sidebar-menu a {
            color: var(--wb-text);
            justify-content: flex-start;
            width: auto;
            height: auto;
            padding: .45rem .7rem;
            margin: 0;
            font-size: .82rem;
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body .sidebar-menu a:hover {
            background: var(--wb-primary-light);
            color: var(--wb-primary);
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body .sidebar-menu a.active {
            background: var(--wb-primary-light);
            color: var(--wb-primary);
            transform: none;
            box-shadow: none;
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body .sidebar-menu a::before {
            display: none;
        }

        /* 协议到期提醒横幅 */
        .contract-alert-bar {
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
            border: 1px solid rgba(245, 158, 11, 0.4);
            border-radius: var(--wb-radius-sm);
            padding: .5rem .8rem;
            margin-bottom: var(--wb-space-4);
            display: flex;
            align-items: center;
            gap: .5rem;
            font-size: var(--wb-font-size-sm);
            color: #b45309;
        }

        body[data-theme="dark"] .contract-alert-bar {
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
            border-color: rgba(245, 158, 11, 0.35);
            color: #fbbf24;
        }

        .contract-alert-bar i {
            font-size: 1rem;
        }

        .content-shell {

            flex: 1;
            min-width: 0;
            padding: var(--wb-shell-gap);
        }

        /* ── AI 推荐卡片 ── */
        .ai-recommend-card {
            margin-bottom: 1rem;
            animation: aiSlideDown .25s ease;
        }
        @keyframes aiSlideDown {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .ai-recommend-inner {
            background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
            border: 1px solid #bfdbfe;
            border-radius: 12px;
            overflow: hidden;
        }
        [data-theme="dark"] .ai-recommend-inner {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
            border-color: rgba(59, 130, 246, 0.25);
        }
        .ai-recommend-header {
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: .75rem 1rem;
            background: rgba(255,255,255,0.6);
            border-bottom: 1px solid #dbeafe;
        }
        [data-theme="dark"] .ai-recommend-header {
            background: rgba(255,255,255,0.04);
            border-color: rgba(59,130,246,0.15);
        }
        .ai-recommend-badge {
            font-weight: 600;
            font-size: .82rem;
            color: var(--wb-primary);
            white-space: nowrap;
        }
        .ai-recommend-pkg {
            font-size: .78rem;
            color: #64748b;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ai-recommend-close {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: .25rem;
            border-radius: 6px;
            transition: all .15s;
        }
        .ai-recommend-close:hover {
            background: rgba(0,0,0,0.06);
            color: #475569;
        }
        .ai-recommend-body {
            padding: 1rem;
        }
        .ai-recommend-loading {
            text-align: center;
            padding: 1.5rem;
            color: #64748b;
            font-size: .85rem;
        }
        .ai-recommend-empty {
            text-align: center;
            padding: 1rem;
            color: #94a3b8;
            font-size: .82rem;
        }
        .ai-recommend-list {
            display: flex;
            flex-direction: column;
            gap: .6rem;
        }
        .ai-recommend-item {
            padding: .75rem;
            border-radius: 8px;
            background: rgba(255,255,255,0.7);
            border: 1px solid #e2e8f0;
            transition: all .15s;
        }
        [data-theme="dark"] .ai-recommend-item {
            background: rgba(255,255,255,0.04);
            border-color: rgba(255,255,255,0.08);
        }
        .ai-recommend-item.ai-recommend-top {
            border-color: #93c5fd;
            background: rgba(255,255,255,0.9);
        }
        [data-theme="dark"] .ai-recommend-item.ai-recommend-top {
            border-color: rgba(59,130,246,0.4);
            background: rgba(37,99,235,0.08);
        }
        .ai-recommend-star {
            font-size: .75rem;
            font-weight: 600;
            color: var(--wb-primary);
        }
        .ai-recommend-rank {
            font-size: .75rem;
            color: #94a3b8;
        }
        .ai-recommend-name {
            font-weight: 600;
            font-size: .9rem;
            margin: .25rem 0 .35rem;
        }
        .ai-recommend-group {
            font-weight: 400;
            font-size: .78rem;
            color: #94a3b8;
            margin-left: .4rem;
        }
        .ai-recommend-detail {
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
            margin-bottom: .35rem;
        }
        .ai-recommend-tag {
            display: inline-block;
            padding: .1rem .45rem;
            border-radius: 4px;
            font-size: .72rem;
            background: #f1f5f9;
            color: #475569;
        }
        .ai-tag-free {
            background: #dcfce7;
            color: #166534;
        }
        .ai-tag-warn {
            background: #fef3c7;
            color: #92400e;
        }
        .ai-recommend-reason {
            font-size: .8rem;
            color: #64748b;
            margin-bottom: .5rem;
        }
        .ai-recommend-fallback {
            margin-top: .6rem;
            padding: .5rem .75rem;
            background: rgba(251,191,36,0.1);
            border-radius: 6px;
            font-size: .75rem;
            color: #92400e;
        }
        .ai-apply-btn {
            font-size: .78rem;
        }
        .ai-assign-select.ai-selected {
            outline: 2px solid var(--wb-primary);
            outline-offset: 1px;
            animation: aiPulse .6s ease;
        }
        @keyframes aiPulse {
            0%,100% { outline-color: var(--wb-primary); }
            50% { outline-color: #8aabff; }
        }

        /* ── AI 分析报告卡片 ── */
        .ai-analysis-inner {
            background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
            border: 1px solid #c7d2fe;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        [data-theme="dark"] .ai-analysis-inner {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
            border-color: rgba(139, 92, 246, 0.25);
        }
        .ai-analysis-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: .75rem 1rem;
            background: rgba(255,255,255,0.5);
            border-bottom: 1px solid #ddd6fe;
        }
        [data-theme="dark"] .ai-analysis-header {
            background: rgba(255,255,255,0.03);
            border-color: rgba(139,92,246,0.15);
        }
        .ai-analysis-badge {
            font-weight: 600;
            font-size: .82rem;
            color: #7c3aed;
        }
        .ai-analysis-close {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: .25rem;
            border-radius: 6px;
        }
        .ai-analysis-close:hover {
            background: rgba(0,0,0,0.06);
            color: #475569;
        }
        .ai-analysis-body {
            padding: 1rem 1.25rem;
        }
        .ai-analysis-summary {
            font-size: .88rem;
            line-height: 1.7;
            color: #334155;
            margin-bottom: .75rem;
        }
        [data-theme="dark"] .ai-analysis-summary {
            color: #cbd5e1;
        }
        .ai-analysis-highlights {
            display: flex;
            flex-direction: column;
            gap: .4rem;
        }
        .ai-analysis-highlight-item {
            padding: .5rem .75rem;
            background: rgba(255,255,255,0.6);
            border-radius: 6px;
            font-size: .8rem;
            color: #475569;
        }
        [data-theme="dark"] .ai-analysis-highlight-item {
            background: rgba(255,255,255,0.04);
            color: #94a3b8;
        }
        .ai-analysis-trigger {
            position: relative;
        }
        .ai-analysis-trigger::after {
            content: 'Beta';
            font-size: .6rem;
            position: absolute;
            top: -6px;
            right: -4px;
            background: #7c3aed;
            color: #fff;
            padding: 0 4px;
            border-radius: 4px;
            line-height: 1.3;
        }

        /* 主题切换过渡动画 */
        .app-shell,
        .app-shell *:not(script):not(style) {
            transition: background-color 350ms ease, border-color 350ms ease, color 250ms ease, box-shadow 350ms ease;
        }

        /* 避免 transition 覆盖 hover / collapse 等精细动画 */
        .sidebar-shell {
            transition: width .22s ease, flex-basis .22s ease, border-color 350ms ease;
        }

        .btn { transition: all .15s ease; }
        .sidebar-menu a { transition: all .2s ease; }
        .theme-btn, .topbar-btn { transition: all .2s ease; }

        /* ═══════════════════════════════════════════
           侧边栏菜单滚动区域
        ═══════════════════════════════════════════ */
        .sidebar-menu-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            width: 100%;
            min-height: 0;
        }

        .sidebar-menu-scroll::-webkit-scrollbar {
            width: 4px;
        }

        .sidebar-menu-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar-menu-scroll::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.2);
            border-radius: 2px;
        }

        .sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.35);
        }

        body.sidebar-collapsed .sidebar-menu-scroll {
            overflow: visible;
        }

        /* ═══════════════════════════════════════════
           侧边栏底部展开/收起按钮
        ═══════════════════════════════════════════ */
        .sidebar-toggle-bottom {
            padding: .85rem .55rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .5rem;
            color: var(--wb-sidebar-text);
            font-size: .8rem;
            cursor: pointer;
            transition: all .2s ease;
            border-top: 1px solid var(--wb-sidebar-border);
            margin-left: -.55rem;
            margin-right: -.55rem;
            margin-bottom: -.8rem;
            position: relative;
            background: rgba(0, 0, 0, 0.02);
        }

        body[data-theme="dark"] .sidebar-toggle-bottom {
            background: rgba(255, 255, 255, 0.03);
            color: #E2E8F0;
        }

        /* 分割线加强效果 */
        .sidebar-toggle-bottom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--wb-sidebar-border), transparent);
        }

        body.sidebar-collapsed .sidebar-toggle-bottom {
            padding: .85rem 0;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: -.8rem;
        }

        body.sidebar-collapsed .sidebar-toggle-bottom::before {
            left: 15%;
            right: 15%;
        }

        .sidebar-toggle-bottom:hover {
            color: var(--wb-sidebar-text);
            background: rgba(148, 163, 184, 0.12);
        }

        .sidebar-toggle-bottom i {
            font-size: .75rem;
            transition: transform .2s ease;
        }

        body.sidebar-collapsed .sidebar-toggle-bottom i {
            transform: rotate(180deg);
        }

        body.sidebar-collapsed .sidebar-toggle-text {
            display: none;
        }

        .topbar-btn,
        .theme-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid var(--wb-card-border);
            background: var(--wb-surface);
            color: var(--wb-text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all .2s ease;
        }

        .topbar-btn:hover,
        .theme-btn:hover,
        .theme-btn.active {
            background: var(--wb-primary-light);
            border-color: var(--wb-primary);
            color: var(--wb-primary);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
        }

        .notification-bell-btn {
            position: relative;
        }
        .notification-badge {
            position: absolute;
            top: -4px;
            right: -6px;
            min-width: 18px;
            height: 18px;
            line-height: 18px;
            font-size: 11px;
            font-weight: 700;
            text-align: center;
            color: #fff;
            background: #ef4444;
            border-radius: 999px;
            padding: 0 5px;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
            animation: badge-pulse 2s infinite;
        }
        @keyframes badge-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.12); }
        }

        .theme-switch {
            background: rgba(16, 27, 45, 0.45);
        }

        .work-start-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .48rem;
            min-width: 140px;
            height: 36px;
            padding: 0 1rem;
            border-radius: 10px;
            border: none;
            background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
            color: #ffffff;
            text-decoration: none;
            font-size: .85rem;
            font-weight: 600;
            letter-spacing: .02em;
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
            transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
            white-space: nowrap;
        }

        .work-start-btn:hover {
            color: #ffffff;
            transform: translateY(-1px);
            filter: brightness(1.05);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
        }

        .work-start-btn i {
            font-size: .88rem;
        }

        .theme-switch {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .28rem;
            border-radius: 14px;
            background: var(--wb-surface-soft);
        }

        .wb-sys-tooltip {
            --bs-tooltip-bg: transparent;
            --bs-tooltip-opacity: 1;
        }

        .wb-sys-tooltip .tooltip-inner {
            padding: .52rem .72rem;
            border-radius: 12px;
            border: 1px solid rgba(125, 211, 252, 0.26);
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
            color: #e0f2fe;
            font-size: .76rem;
            letter-spacing: .02em;
            box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
            backdrop-filter: blur(14px);
        }

        .wb-sys-tooltip.bs-tooltip-end .tooltip-arrow::before {
            border-right-color: rgba(15, 23, 42, 0.98);
        }

        .wb-sys-tooltip.bs-tooltip-start .tooltip-arrow::before {
            border-left-color: rgba(15, 23, 42, 0.98);
        }

        .wb-sys-tooltip.bs-tooltip-top .tooltip-arrow::before {
            border-top-color: rgba(15, 23, 42, 0.98);
        }

        .wb-sys-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
            border-bottom-color: rgba(15, 23, 42, 0.98);
        }

        .user-chip {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .3rem .55rem;
            border-radius: 12px;
            background: var(--wb-surface);
            border: 1px solid var(--wb-card-border);
            color: var(--wb-text);
        }

        .user-chip .fw-semibold {
            color: var(--wb-text) !important;
        }

        .user-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            color: #ffffff;
            font-weight: 700;
            font-size: .8rem;
        }

        .user-meta {
            line-height: 1.15;
        }

        /* ═══════════════════════════════════════════
           优化后的主题切换和用户信息样式
        ═══════════════════════════════════════════ */
        .theme-toggle-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid var(--wb-card-border);
            background: var(--wb-surface);
            color: var(--wb-text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s ease;
        }

        .theme-toggle-btn:hover {
            background: var(--wb-primary-light);
            border-color: var(--wb-primary);
            color: var(--wb-primary);
        }

        .user-chip-simple {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .25rem;
            border-radius: 50px;
            transition: all .2s ease;
        }

        .user-chip-simple:hover {
            background: rgba(148, 163, 184, 0.12);
        }

        .user-avatar-simple {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            color: #fff;
            font-weight: 600;
            font-size: .85rem;
            box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
        }

        /* --- 空状态组件 --- */
        .empty-state {
            text-align: center;
            padding: 3rem var(--wb-space-4);
            color: var(--wb-text-muted);
        }

        .empty-state-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto var(--wb-space-4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--wb-surface-soft);
            color: var(--wb-primary);
            font-size: 1.75rem;
            opacity: .6;
        }

        .empty-state-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--wb-text-secondary);
            margin-bottom: var(--wb-space-2);
        }

        .empty-state-desc {
            font-size: .85rem;
            max-width: 320px;
            margin: 0 auto var(--wb-space-4);
            line-height: 1.6;
        }

        .empty-state .btn {
            border-radius: var(--wb-radius-md);
            font-weight: 600;
        }

        /* --- 加载状态 --- */
/* (skeleton styles moved to Phase 3 block) */

/* (btn-loading moved to Phase 3 block) */

        /* --- Alert 增强 --- */
        .alert {
            border-radius: var(--wb-radius-md);
            border-width: 1px;
            font-size: var(--wb-font-size-sm);
        }

        .alert-success {
            background: var(--wb-success-bg);
            border-color: var(--wb-success);
            color: var(--wb-success);
        }

        .alert-danger {
            background: var(--wb-error-bg);
            border-color: var(--wb-error);
            color: var(--wb-error);
        }

        .alert-warning {
            background: var(--wb-warning-bg);
            border-color: var(--wb-warning);
            color: var(--wb-warning);
        }

        .alert-info {
            background: var(--wb-info-bg);
            border-color: var(--wb-info);
            color: var(--wb-info);
        }

        .alert-success,
        .alert-danger,
        .alert-warning,
        .alert-info {
            border: 1px solid;
            box-shadow: none;
        }

        /* --- Badge 增强 --- */
        .badge {
            font-weight: 600;
            padding: .3em .7em;
            border-radius: 8px;
            font-size: .76rem;
            letter-spacing: .01em;
        }

        .btn-primary {
            background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
            border: none;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(79,124,255,0.25);
            transition: all .2s ease;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #5a86ff 0%, #7d6df0 100%);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(79,124,255,0.35);
        }

        .btn-outline-primary {
            border: 1px solid var(--wb-primary);
            color: var(--wb-primary);
            font-weight: 600;
            transition: all .2s ease;
        }

        .btn-outline-primary:hover {
            background: var(--wb-primary-light);
            border-color: var(--wb-primary);
            color: var(--wb-primary);
        }

        body[data-theme="dark"] .btn-primary {
            background: linear-gradient(135deg, #6b8fff 0%, #a78bfa 100%);
            box-shadow: 0 4px 14px rgba(107,143,255,0.2);
        }

        body[data-theme="dark"] .btn-primary:hover {
            background: linear-gradient(135deg, #7d9fff 0%, #b89dfc 100%);
            box-shadow: 0 6px 20px rgba(107,143,255,0.3);
        }

        body[data-theme="dark"] .btn-outline-primary {
            border-color: var(--wb-primary);
            color: var(--wb-primary);
        }

        body[data-theme="dark"] .btn-outline-primary:hover {
            background: rgba(107,143,255,0.1);
        }

        /* --- Toast 悬浮提示 --- */
        .toast-alert {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            padding: 12px 24px;
            border-radius: var(--wb-radius-md);
            font-size: var(--wb-font-size-sm);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            animation: toastSlideDown 0.3s ease;
        }

        @keyframes toastSlideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .toast-alert.fade-out {
            animation: toastFadeOut 0.3s ease forwards;
        }

        @keyframes toastFadeOut {
            from {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
            to {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
        }

        /* --- Modal 深色模式适配 --- */
        body[data-theme="dark"] .modal-content {
            background: var(--wb-surface);
            border-color: var(--wb-card-border);
            color: var(--wb-text);
        }

        body[data-theme="dark"] .modal-header,
        body[data-theme="dark"] .modal-footer {
            border-color: var(--wb-card-border);
        }

        body[data-theme="dark"] .modal-title {
            color: var(--wb-text);
        }

        body[data-theme="dark"] .btn-close {
            filter: invert(1) grayscale(100%) brightness(200%);
        }

        /* --- Dropdown 深色模式适配 --- */
        body[data-theme="dark"] .dropdown-menu {
            background: var(--wb-surface);
            border-color: var(--wb-card-border);
            box-shadow: var(--wb-shadow-lg);
        }

        body[data-theme="dark"] .dropdown-item {
            color: var(--wb-text);
        }

        body[data-theme="dark"] .dropdown-item:hover,
        body[data-theme="dark"] .dropdown-item:focus {
            background: var(--wb-primary-light);
            color: var(--wb-primary);
        }

        body[data-theme="dark"] .dropdown-divider {
            border-color: var(--wb-card-border);
        }

        /* --- 表格操作列按钮标准化 --- */
        .table td .btn-group {
            gap: .2rem;
        }

        .table td .btn-group .btn {
            font-size: var(--wb-font-size-xs);
            font-weight: 500;
            padding: .2rem .55rem;
            border-radius: var(--wb-radius-sm);
            white-space: nowrap;
        }

        /* --- 表格列最小宽度工具类（替代内联 style） --- */
        .col-min-xs { min-width: 120px; }
        .col-min-sm { min-width: 150px; }
        .col-min-md { min-width: 220px; }
        .col-min-lg { min-width: 280px; }
        .col-min-xl { min-width: 340px; }

        /* --- Page Header 组件 --- */
        .page-header-bar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-end;
            gap: var(--wb-space-3);
            margin-bottom: var(--wb-space-6);
            padding-bottom: var(--wb-space-4);
            border-bottom: 1px solid var(--wb-card-border);
        }

        .page-header-bar .page-title {
            margin-bottom: .2rem;
            font-weight: 800;
            font-size: 1.5rem;
            letter-spacing: -0.02em;
        }

        .page-header-bar .page-desc {
            font-size: .85rem;
            color: var(--wb-text-muted);
            margin: 0;
            line-height: 1.5;
        }

        .page-header-bar .page-actions {
            display: flex;
            align-items: center;
            gap: var(--wb-space-2);
        }

        /* --- Steps Guide 组件 --- */
        .wb-steps-guide {
            border-radius: var(--wb-radius-lg);
            background: var(--wb-surface-soft);
            padding: var(--wb-space-4);
        }

        body[data-theme="dark"] .wb-steps-guide {
            background: var(--wb-surface-soft);
        }

        /* --- 深色模式 bg-light / text-bg-light 覆盖 --- */
        body[data-theme="dark"] .bg-light {
            background-color: var(--wb-surface-soft) !important;
        }

        body[data-theme="dark"] .text-bg-light {
            background-color: var(--wb-surface-soft) !important;
            color: var(--wb-text-secondary) !important;
        }

        body[data-theme="dark"] .bg-white {
            background-color: var(--wb-surface) !important;
        }

        body[data-theme="dark"] .text-dark {
            color: var(--wb-text) !important;
        }

        body[data-theme="dark"] .border {
            border-color: var(--wb-card-border) !important;
        }

        /* --- 深色模式 form 元素适配 --- */
        body[data-theme="dark"] .form-control,
        body[data-theme="dark"] .form-select {
            background-color: var(--wb-surface);
            border-color: var(--wb-card-border);
            color: var(--wb-text);
        }

        body[data-theme="dark"] .form-control:focus,
        body[data-theme="dark"] .form-select:focus {
            background-color: var(--wb-surface);
            border-color: var(--wb-primary);
            box-shadow: 0 0 0 .22rem rgba(59, 130, 246, .15);
            color: var(--wb-text);
        }

        body[data-theme="dark"] .form-control::placeholder {
            color: var(--wb-text-muted);
            opacity: .7;
        }

        body[data-theme="dark"] .form-text {
            color: var(--wb-text-muted);
        }

        body[data-theme="dark"] .form-check-input {
            background-color: var(--wb-surface);
            border-color: var(--wb-card-border);
        }

        body[data-theme="dark"] .form-check-input:checked {
            background-color: var(--wb-primary);
            border-color: var(--wb-primary);
        }

        body[data-theme="dark"] .form-check-input:focus {
            box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .25);
            border-color: var(--wb-primary);
        }

        /* --- 深色模式 table 适配 --- */
        body[data-theme="dark"] .table {
            color: var(--wb-text);
        }

        body[data-theme="dark"] .table > :not(caption) > * > * {
            background-color: transparent;
            border-color: var(--wb-card-border);
            color: var(--wb-text);
        }

        body[data-theme="dark"] .table thead th {
            color: var(--wb-text-secondary);
            font-weight: 600;
            border-bottom-color: var(--wb-card-border);
        }

        body[data-theme="dark"] .table-hover > tbody > tr:hover > * {
            background-color: var(--wb-primary-light);
            color: var(--wb-text);
        }

        body[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
            background-color: rgba(255, 255, 255, .02);
        }

        body[data-theme="dark"] .invalid-feedback {
            color: var(--wb-danger);
        }

        body[data-theme="dark"] .form-control.is-invalid,
        body[data-theme="dark"] .form-select.is-invalid {
            border-color: var(--wb-danger);
            background-image: none;
        }

        .wb-steps-guide .step-item {
            display: flex;
            gap: .75rem;
        }

        .wb-steps-guide .step-number {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--wb-primary);
            color: #fff;
            font-size: var(--wb-font-size-xs);
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .wb-steps-guide .step-title {
            font-weight: 600;
            font-size: var(--wb-font-size-sm);
            color: var(--wb-text);
        }

        .wb-steps-guide .step-desc {
            font-size: var(--wb-font-size-xs);
            color: var(--wb-text-muted);
            margin-top: .1rem;
        }

        /* --- Stat Card 组件 --- */
        .stat-card .card-body {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .stat-card .stat-value {
            font-size: 1.875rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1;
            color: var(--wb-text);
        }

        .stat-card .stat-label {
            font-size: .82rem;
            color: var(--wb-text-muted);
            margin-bottom: var(--wb-space-2);
            font-weight: 500;
        }

        .stat-card .stat-extra {
            font-size: .76rem;
            color: var(--wb-text-muted);
            margin-top: var(--wb-space-2);
            display: inline-flex;
            align-items: center;
            gap: .3rem;
        }

        @media (max-width: 991.98px) {
            .topbar {
                flex-wrap: wrap;
            }

            .topbar-title {
                order: 3;
                width: 100%;
                text-align: left;
            }

            .shell-body {
                flex-direction: column;
            }

            .sidebar-shell,
            body.sidebar-collapsed .sidebar-shell {
                width: 100%;
                flex-basis: auto;
            }

            body.sidebar-collapsed .sidebar-section-title,
            body.sidebar-collapsed .sidebar-caption,
            body.sidebar-collapsed .menu-label,
            body.sidebar-collapsed .brand-text,
            body.sidebar-collapsed .user-meta {
                opacity: 1;
                pointer-events: auto;
            }

            body.sidebar-collapsed .sidebar-menu a {
                justify-content: flex-start;
                padding-left: .9rem;
                padding-right: .9rem;
            }
        }

        /* --- 平板端适配 --- */
        @media (max-width: 767.98px) {
            .content-shell {
                padding: var(--wb-space-3);
            }

            .page-title {
                font-size: var(--wb-font-size-lg);
            }

            .stat-number {
                font-size: var(--wb-font-size-2xl);
            }

            .card {
                border-radius: var(--wb-radius-md);
            }

            /* 表格操作列按钮竖排 */
            .table td .btn-group-vertical {
                flex-direction: column;
            }

            .table td .btn-sm {
                width: 100%;
                justify-content: center;
                min-width: 0;
            }

            /* Modal 全屏适配 */
            .modal-dialog {
                margin: .5rem;
            }

            .modal-dialog .modal-content {
                border-radius: var(--wb-radius-lg);
            }

            /* 下拉菜单全宽 */
            .dropdown-menu {
                width: 100% !important;
                border-radius: var(--wb-radius-md) !important;
            }
        }

        /* --- 手机端适配 --- */
        @media (max-width: 575.98px) {
            .content-shell {
                padding: var(--wb-space-2);
            }

            .page-header-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: var(--wb-space-2);
            }

            .page-header-bar .page-actions {
                width: 100%;
            }

            .stat-card .stat-value,
            .stat-number {
                font-size: var(--wb-font-size-xl);
            }

            .work-start-btn {
                min-width: auto;
                padding: 0 .75rem;
                font-size: var(--wb-font-size-sm);
            }

            .work-start-btn span {
                display: none;
            }

            .topbar {
                padding: .3rem .5rem;
            }

            .user-meta {
                display: none;
            }

            .table {
                font-size: var(--wb-font-size-sm);
            }

            .table thead th {
                font-size: .68rem;
                padding: .5rem;
            }

            .table tbody td {
                padding: .45rem .5rem;
            }

            /* 空状态缩小 */
            .empty-state-icon {
                width: 56px;
                height: 56px;
                font-size: 1.4rem;
            }

            .empty-state {
                padding: var(--wb-space-6) var(--wb-space-2);
            }
        }

        /* ═══════════════════════════════════════════
           macOS 风格增强 v2 — 2026-04-20
        ═══════════════════════════════════════════ */

        /* ===== 侧边栏加宽 + 毛玻璃 ===== */
        :root {
            --wb-sidebar-width: 240px !important;
            --wb-sidebar-width-collapsed: 68px !important;
        }

        .sidebar-shell {
            background: rgba(255, 255, 255, 0.78) !important;
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        body[data-theme="dark"] .sidebar-shell {
            background: rgba(13, 17, 23, 0.85) !important;
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border-right: 1px solid rgba(79, 70, 229, 0.1) !important;
        }

        /* ===== 顶栏毛玻璃 ===== */
        .topbar {
            background: rgba(255, 255, 255, 0.78) !important;
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        body[data-theme="dark"] .topbar {
            background: rgba(13, 17, 23, 0.85) !important;
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            border-bottom: 1px solid rgba(79, 70, 229, 0.1) !important;
        }

        /* 卡片更圆 + 柔和阴影（无hover弹跳） */
        .card {
            border-radius: 16px !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02) !important;
            transition: box-shadow 0.25s ease !important;
        }

        .card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03) !important;
        }

        body[data-theme="dark"] .card {
            box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.1) !important;
        }

        body[data-theme="dark"] .card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15) !important;
        }

        /* ===== 导航项：字更大、间距更宽、圆润 ===== */
        .sidebar-menu a {
            border-radius: 10px !important;
            font-size: .95rem !important;
            padding: .6rem .85rem !important;
            margin-bottom: .3rem !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .sidebar-menu a i {
            font-size: 1.05rem !important;
            width: 1.2rem !important;
        }

        .sidebar-menu a:hover {
            transform: translateX(2px);
        }

        /* 导航组 header 同样加大 */
        .nav-group-header {
            border-radius: 10px !important;
            font-size: .95rem !important;
            padding: .6rem .75rem !important;
            margin-bottom: .3rem !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .nav-group-header .nav-group-icon {
            font-size: 1.05rem !important;
            width: 1.2rem !important;
        }

        .nav-group-header .nav-group-text {
            font-size: .95rem !important;
        }

        .nav-group-header:hover {
            background: var(--wb-primary-light);
        }

        /* 分组标题也加大 */
        .sidebar-section-title {
            font-size: 11px !important;
            padding: .8rem .75rem .3rem !important;
            letter-spacing: .08em !important;
        }

        /* 子菜单也要加大 */
        .nav-group-body .sidebar-menu a {
            font-size: .9rem !important;
            padding: .5rem .85rem !important;
        }

        .nav-group-body .sidebar-menu a i {
            font-size: .95rem !important;
        }

        /* 表格圆角 + 行 hover */
        .table {
            border-radius: 12px;
            overflow: hidden;
        }

        .table thead th {
            font-weight: 600;
            font-size: .8rem;
            letter-spacing: 0.02em;
            text-transform: none;
            background: var(--wb-surface-soft);
        }

        /* 按钮 macOS 风格 — 简洁 */
        .btn {
            border-radius: 10px !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        /* 输入框 macOS 风格 */
        .form-control, .form-select {
            border-radius: 10px !important;
            border: 1.5px solid var(--wb-card-border) !important;
            padding: .5rem .85rem !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--wb-primary) !important;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
        }

        /* 页面头部 */
        .page-header-bar .page-title {
            font-weight: 700 !important;
            letter-spacing: -0.03em !important;
        }

        /* 品牌链接 */
        .brand-text {
            font-weight: 700 !important;
            font-size: 1.05rem !important;
            letter-spacing: -0.01em;
        }

        .brand-icon img {
            height: 36px !important;
        }

        /* 滚动条 macOS 风格（细） */
        .sidebar-menu-scroll::-webkit-scrollbar {
            width: 4px;
        }
        .sidebar-menu-scroll::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.12);
            border-radius: 4px;
        }
        .sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.2);
        }

        body[data-theme="dark"] .sidebar-menu-scroll::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.1);
        }
        body[data-theme="dark"] .sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.2);
        }

        /* 内容区域间距 */
        .content-shell {
            padding: 1.5rem !important;
        }

        /* dropdown 菜单 macOS 风格 */
        .dropdown-menu {
            border-radius: 14px !important;
            border: 1px solid var(--wb-card-border) !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
            padding: 6px !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        body[data-theme="dark"] .dropdown-menu {
            box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
            background: rgba(22, 27, 38, 0.95);
        }

        .dropdown-item {
            border-radius: 8px !important;
            padding: .45rem .85rem !important;
            transition: background 0.15s ease;
        }

        .dropdown-item:hover {
            background: var(--wb-primary-light) !important;
        }

        /* toast 更圆润 */
        .toast-container .toast {
            border-radius: 14px;
        }

        /* ===== 表格升级 ===== */
        .table {
            border-radius: 12px !important;
            overflow: hidden;
        }

        .table thead th {
            font-weight: 600 !important;
            font-size: .82rem !important;
            letter-spacing: 0.02em;
            text-transform: none;
            background: var(--wb-surface-soft) !important;
            padding: .7rem .85rem !important;
            white-space: nowrap;
            border-bottom-width: 2px !important;
        }

        .table tbody td {
            padding: .7rem .85rem !important;
            vertical-align: middle;
            line-height: 1.5;
        }

        .table tbody tr:hover td {
            background: var(--wb-primary-light) !important;
        }

        /* 数字列右对齐 */
        .table td.num,
        .table th.num {
            text-align: right;
            font-variant-numeric: tabular-nums;
            font-family: var(--wb-font-mono);
        }

        /* 操作列固定宽度、不换行 */
        .table td.actions,
        .table th.actions {
            white-space: nowrap;
            text-align: right;
            min-width: 120px;
        }

        .table td.actions .btn {
            padding: .2rem .55rem;
            font-size: .78rem;
        }

        /* 状态标签 */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .2rem .6rem;
            border-radius: 6px;
            font-size: .75rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .status-badge.success { background: var(--wb-success-bg); color: var(--wb-success); }
        .status-badge.warning { background: var(--wb-warning-bg); color: var(--wb-warning); }
        .status-badge.error   { background: var(--wb-error-bg); color: var(--wb-error); }
        .status-badge.info    { background: var(--wb-info-bg); color: var(--wb-info); }

        /* ===== 面包屑导航 ===== */
        .breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: .35rem;
            font-size: .85rem;
            color: var(--wb-text-muted);
        }

        .breadcrumb-nav a {
            color: var(--wb-text-secondary);
            text-decoration: none;
            transition: color .15s ease;
        }

        .breadcrumb-nav a:hover {
            color: var(--wb-primary);
        }

        .breadcrumb-nav .separator {
            color: var(--wb-text-muted);
            font-size: .7rem;
        }

        .breadcrumb-nav .current {
            color: var(--wb-text);
            font-weight: 600;
        }

        /* 顶栏标题区改为左对齐面包屑 */
        .topbar-title {
            text-align: left !important;
            font-weight: 400 !important;
            letter-spacing: 0 !important;
            font-size: .85rem !important;
        }


    /* ═══════════════════════════════════════════
       移动端增强 — 2026-04-20
    ═══════════════════════════════════════════ */

    /* ===== 汉堡按钮（仅移动端可见） ===== */
    .mobile-menu-btn {
        display: none;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        border-radius: 10px;
        cursor: pointer;
        color: var(--wb-text);
        font-size: 1.15rem;
        transition: all 0.2s ease;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .mobile-menu-btn:hover {
        background: var(--wb-sidebar-active);
    }

    .mobile-menu-btn:active {
        transform: scale(0.92);
    }

    /* ===== 遮罩层 ===== */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1039;
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
        pointer-events: none;
    }

    .sidebar-backdrop.active {
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        pointer-events: auto;
    }

    /* ===== 底部导航栏 ===== */
    .mobile-tab-bar {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        height: 56px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0);
        align-items: center;
        justify-content: space-around;
    }

    body[data-theme="dark"] .mobile-tab-bar {
        background: rgba(13, 17, 23, 0.9);
        border-top: 1px solid rgba(79, 70, 229, 0.1);
    }

    .mobile-tab-bar .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex: 1;
        height: 100%;
        color: var(--wb-sidebar-muted);
        text-decoration: none;
        font-size: .65rem;
        font-weight: 500;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-tab-bar .tab-item i {
        font-size: 1.15rem;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-tab-bar .tab-item.active {
        color: var(--wb-primary);
    }

    .mobile-tab-bar .tab-item.active i {
        transform: scale(1.12);
    }

    .mobile-tab-bar .tab-item:active i {
        transform: scale(0.9);
    }

    /* ===== 平板端 992px 以下：侧边栏变抽屉 ===== */
    @media (max-width: 991.98px) {
        .mobile-menu-btn {
            display: flex;
        }

        .shell-body {
            position: relative;
        }

        .sidebar-shell,
        body.sidebar-collapsed .sidebar-shell {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 280px !important;
            flex-basis: auto !important;
            z-index: 1041;
            transform: translateX(-100%);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }

        body[data-theme="dark"] .sidebar-shell {
            background: rgba(13, 17, 23, 0.97) !important;
        }

        .sidebar-shell.sidebar-open {
            transform: translateX(0);
        }

        /* 抽屉打开时显示遮罩 */
        .sidebar-backdrop.active {
            display: block;
        }

        /* 抽屉模式下文字/图标始终可见 */
        body.sidebar-collapsed .sidebar-section-title,
        body.sidebar-collapsed .sidebar-caption,
        body.sidebar-collapsed .menu-label,
        body.sidebar-collapsed .brand-text,
        body.sidebar-collapsed .user-meta,
        body.sidebar-collapsed .nav-group-header .nav-group-text,
        body.sidebar-collapsed .nav-group-header .nav-group-arrow {
            opacity: 1 !important;
            pointer-events: auto !important;
            display: revert !important;
        }

        body.sidebar-collapsed .sidebar-menu a {
            justify-content: flex-start !important;
            padding-left: .9rem !important;
            padding-right: .9rem !important;
        }

        body.sidebar-collapsed .sidebar-menu a::before,
        body.sidebar-collapsed .nav-leaf .nav-group-header.active-link::before {
            display: none !important;
        }

        body.sidebar-collapsed .sidebar-menu i {
            margin-right: .5rem !important;
        }

        body.sidebar-collapsed .nav-group:hover > .nav-group-body {
            display: block !important;
            position: static !important;
            box-shadow: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            padding: 0 !important;
            min-width: auto !important;
        }

        body.sidebar-collapsed .sidebar-toggle-bottom {
            padding: .8rem 1rem !important;
            justify-content: flex-start !important;
        }

        body.sidebar-collapsed .sidebar-toggle-bottom i {
            margin-right: .5rem !important;
        }

        body.sidebar-collapsed .sidebar-toggle-text {
            display: inline !important;
        }

        body.sidebar-collapsed .sidebar-toggle-bottom::before {
            display: none !important;
        }

        /* content 铺满 */
        .content-shell {
            width: 100% !important;
            flex: 1 1 auto !important;
        }

        /* topbar-title 在移动端不换行 */
        .topbar-title {
            order: 0 !important;
            width: auto !important;
            flex: 1;
            min-width: 0;
        }
    }

    /* ===== 手机端 768px 以下 ===== */
    @media (max-width: 767.98px) {
        .mobile-tab-bar {
            display: flex;
        }

        /* 给底部 Tab Bar 腾出空间 */
        .content-shell {
            padding-bottom: 72px !important;
        }

        .brand-text {
            display: none;
        }

        .breadcrumb-nav .separator,
        .breadcrumb-nav a {
            display: none;
        }

        .breadcrumb-nav .current {
            font-size: .95rem;
            font-weight: 700;
        }

        /* 工作台 hero 移动端竖排 */
        .dashboard-hero {
            flex-direction: column !important;
            gap: 1rem !important;
        }

        .dashboard-hero .hero-illustration {
            display: none !important;
        }

        .dashboard-hero .hero-stats {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: .75rem !important;
            width: 100% !important;
        }

        .dashboard-hero .hero-stats .stat-item {
            padding: .8rem !important;
        }

        .dashboard-hero .hero-stats .stat-value {
            font-size: 1.5rem !important;
        }

        /* 表格响应式 — 横向滚动 */
        .table-responsive-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 0 calc(-1 * var(--wb-space-3));
            padding: 0 var(--wb-space-3);
        }

        .table-responsive-wrapper table {
            min-width: 600px;
        }

        /* 所有 card 内 table 自动加滚动 */
        .card .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* 页面操作按钮竖排 */
        .page-header-bar .page-actions .btn {
            width: 100%;
            justify-content: center;
        }

        /* modal 更适配 */
        .modal-dialog {
            margin: .5rem !important;
        }

        .modal-dialog .modal-content {
            border-radius: 16px !important;
        }
    }

    /* ===== 小屏手机 576px 以下 ===== */
    @media (max-width: 575.98px) {
        .sidebar-shell,
        body.sidebar-collapsed .sidebar-shell {
            width: 260px !important;
        }

        .dashboard-hero .hero-stats {
            grid-template-columns: 1fr !important;
        }

        .dashboard-hero .hero-stats .stat-value {
            font-size: 1.3rem !important;
        }
    }


    /* ═══════════════════════════════════════════
       产品经理优化 — 2026-04-20
    ═══════════════════════════════════════════ */

    /* ===== 全局搜索 Spotlight ===== */
    .spotlight-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: flex-start;
        justify-content: center;
        padding-top: 15vh;
    }

    .spotlight-overlay.active {
        display: flex;
    }

    .spotlight-box {
        width: 90%;
        max-width: 560px;
        background: var(--wb-card-bg);
        border-radius: 16px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        border: 1px solid var(--wb-card-border);
    }

    .spotlight-input-wrap {
        display: flex;
        align-items: center;
        padding: 0 1rem;
        border-bottom: 1px solid var(--wb-card-border);
        gap: .6rem;
    }

    .spotlight-input-wrap i {
        color: var(--wb-text-muted);
        font-size: 1.1rem;
    }

    .spotlight-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: .9rem 0;
        font-size: 1rem;
        color: var(--wb-text);
        outline: none;
    }

    .spotlight-input::placeholder {
        color: var(--wb-text-muted);
    }

    .spotlight-close {
        font-size: 1.2rem;
        color: var(--wb-text-muted);
        cursor: pointer;
        padding: .1rem .4rem;
        border-radius: 4px;
        line-height: 1;
        transition: all .15s;
        flex-shrink: 0;
    }

    .spotlight-close:hover {
        color: var(--wb-text);
        background: var(--wb-surface-soft);
    }

    .spotlight-results {
        max-height: 320px;
        overflow-y: auto;
        padding: .5rem;
    }

    .spotlight-results:empty::after {
        content: '输入关键词搜索...';
        display: block;
        text-align: center;
        color: var(--wb-text-muted);
        padding: 2rem;
        font-size: .85rem;
    }

    .spotlight-item {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: .6rem .8rem;
        border-radius: 10px;
        cursor: pointer;
        color: var(--wb-text);
        text-decoration: none;
        transition: background .15s ease;
    }

    .spotlight-item:hover,
    .spotlight-item.active {
        background: var(--wb-sidebar-active);
    }

    .spotlight-item i {
        width: 1.2rem;
        text-align: center;
        color: var(--wb-primary);
        font-size: .95rem;
    }

    .spotlight-item-text {
        flex: 1;
        font-size: .88rem;
    }

    .spotlight-item-type {
        font-size: .7rem;
        color: var(--wb-text-muted);
        background: var(--wb-surface-soft);
        padding: .1rem .4rem;
        border-radius: 4px;
    }

    /* ===== 审批步骤条 Stepper ===== */
    .approval-stepper {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        flex-wrap: wrap;
    }

    .stepper-step {
        display: flex;
        align-items: center;
        gap: .4rem;
        font-size: .78rem;
        color: var(--wb-text-muted);
        white-space: nowrap;
    }

    .stepper-step .step-dot {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .65rem;
        font-weight: 700;
        background: var(--wb-surface-soft);
        color: var(--wb-text-muted);
        border: 2px solid var(--wb-card-border);
        flex-shrink: 0;
        transition: all .2s ease;
    }

    .stepper-step.completed .step-dot {
        background: var(--wb-primary);
        color: #fff;
        border-color: var(--wb-primary);
    }

    .stepper-step.current .step-dot {
        background: var(--wb-primary-light, rgba(79,124,255,0.12));
        color: var(--wb-primary);
        border-color: var(--wb-primary);
        box-shadow: 0 0 0 4px rgba(79,124,255,0.15);
    }

    .stepper-step.rejected .step-dot {
        background: rgba(239,68,68,0.1);
        color: var(--wb-error, #ef4444);
        border-color: var(--wb-error, #ef4444);
    }

    .stepper-step .step-info {
        display: flex;
        flex-direction: column;
    }

    .stepper-step .step-label {
        font-weight: 600;
        color: var(--wb-text);
    }

    .stepper-step.completed .step-label,
    .stepper-step.current .step-label {
        color: var(--wb-text);
    }

    .stepper-step .step-person {
        font-size: .7rem;
        color: var(--wb-text-muted);
    }

    .stepper-step .step-time {
        font-size: .65rem;
        color: var(--wb-text-muted);
    }

    .stepper-connector {
        flex: 1;
        min-width: 20px;
        max-width: 60px;
        height: 2px;
        background: var(--wb-card-border);
        margin: 0 .3rem;
    }

    .stepper-connector.completed {
        background: var(--wb-primary);
    }

    /* ===== 待办聚合卡片 ===== */
    .todo-card {
        border-radius: 14px;
        border: 1px solid var(--wb-card-border);
        background: var(--wb-card-bg);
        overflow: hidden;
    }

    .todo-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .75rem 1rem;
        border-bottom: 1px solid var(--wb-card-border);
        background: var(--wb-surface-soft);
    }

    .todo-card-header h6 {
        margin: 0;
        font-weight: 700;
        font-size: .85rem;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .todo-card-body {
        padding: .5rem;
    }

    .todo-item {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .55rem .6rem;
        border-radius: 10px;
        text-decoration: none;
        color: var(--wb-text);
        transition: background .15s ease;
    }

    .todo-item:hover {
        background: var(--wb-sidebar-active);
    }

    .todo-item .todo-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .85rem;
        flex-shrink: 0;
    }

    .todo-item .todo-icon.urgent {
        background: rgba(239,68,68,0.1);
        color: #ef4444;
    }

    .todo-item .todo-icon.warning {
        background: rgba(245,158,11,0.1);
        color: #f59e0b;
    }

    .todo-item .todo-icon.info {
        background: rgba(59,130,246,0.1);
        color: #3b82f6;
    }

    .todo-item .todo-icon.success {
        background: rgba(16,185,129,0.1);
        color: #10b981;
    }

    .todo-item .todo-text {
        flex: 1;
        font-size: .82rem;
        line-height: 1.3;
    }

    .todo-item .todo-count {
        font-size: .8rem;
        font-weight: 700;
        color: var(--wb-primary);
        background: var(--wb-primary-light, rgba(79,124,255,0.08));
        padding: .15rem .5rem;
        border-radius: 6px;
    }

    /* ===== 合同预警卡片 ===== */
    .contract-warning-card {
        border-radius: 14px;
        border: 1px solid rgba(245,158,11,0.3);
        background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(245,158,11,0.02));
        padding: 1rem;
    }

    .contract-warning-card .warning-item {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .4rem 0;
        font-size: .82rem;
    }

    .contract-warning-card .warning-item .countdown {
        font-weight: 700;
        color: #f59e0b;
        min-width: 3rem;
        text-align: right;
    }

    /* ===== AI 悬浮按钮 ===== */
    /* ===== 新手引导 ===== */

    /* ===== 搜索按钮（顶栏） ===== */
    .search-trigger {
        display: flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .7rem;
        border-radius: 8px;
        border: 1px solid var(--wb-card-border);
        background: var(--wb-surface-soft);
        color: var(--wb-text-muted);
        font-size: .8rem;
        cursor: pointer;
        transition: all .15s ease;
    }

    .search-trigger:hover {
        border-color: var(--wb-primary);
        color: var(--wb-primary);
    }

    .search-trigger kbd {
        font-size: .65rem;
        background: var(--wb-card-bg);
        border: 1px solid var(--wb-card-border);
        border-radius: 3px;
        padding: 0 .3rem;
        font-family: inherit;
    }

    /* 移动端搜索触发器简化 */
    @media (max-width: 767.98px) {
        .search-trigger kbd,
        .search-trigger span {
            display: none;
        }
        .search-trigger {
            padding: .35rem;
        }
    }



/* ============================================
   Phase 3: Loading States & Empty States
   ============================================ */

/* --- Skeleton Loading --- */
.wb-skeleton {
    background: linear-gradient(90deg, var(--wb-surface-soft) 25%, var(--wb-body-bg) 50%, var(--wb-surface-soft) 75%);
    background-size: 200% 100%;
    animation: wb-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--wb-radius-sm);
}
@keyframes wb-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.wb-skeleton-text {
    height: 1em;
    margin-bottom: .5rem;
}
.wb-skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1rem;
}
.wb-skeleton-circle {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}
.wb-skeleton-card {
    height: 120px;
    border-radius: var(--wb-radius-md);
}

/* --- Chart Loading Placeholder --- */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-sm);
}
.chart-loading::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 2px solid var(--wb-card-border);
    border-top-color: var(--wb-primary);
    border-radius: 50%;
    animation: wb-spin 1s linear infinite;
    margin-right: .75rem;
}
@keyframes wb-spin {
    to { transform: rotate(360deg); }
}

/* --- Empty State --- */
.wb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--wb-text-muted);
}
.wb-empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--wb-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--wb-text-muted);
    margin-bottom: 1.25rem;
}
.wb-empty-state-title {
    font-size: var(--wb-font-size-lg);
    font-weight: 600;
    color: var(--wb-text-secondary);
    margin-bottom: .5rem;
}
.wb-empty-state-desc {
    font-size: var(--wb-font-size-sm);
    color: var(--wb-text-muted);
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.wb-empty-state-action {
    margin-top: .5rem;
}

/* --- Button Loading State --- */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wb-spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
}
.btn-outline-primary.btn-loading::after,
.btn-outline-secondary.btn-loading::after {
    border-color: var(--wb-primary-light);
    border-top-color: var(--wb-primary);
}

/* --- Page Transition --- */
.wb-page-enter {
    animation: wb-fade-in 0.3s ease-out;
}
@keyframes wb-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Toast Notification --- */
.wb-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    padding: .875rem 1.25rem;
    border-radius: var(--wb-radius-md);
    background: var(--wb-surface);
    border: 1px solid var(--wb-card-border);
    box-shadow: var(--wb-shadow-lg);
    font-size: var(--wb-font-size-sm);
    display: flex;
    align-items: center;
    gap: .75rem;
    animation: wb-slide-in-right 0.3s ease-out;
    max-width: 360px;
}
.wb-toast.success { border-left: 4px solid var(--wb-success); }
.wb-toast.error { border-left: 4px solid var(--wb-error); }
.wb-toast.warning { border-left: 4px solid var(--wb-warning); }
@keyframes wb-slide-in-right {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}


/* ═══════════════════════════════════════════
   Phase 4: Micro-interactions & Detail Polish
   ═══════════════════════════════════════════ */

/* ===== 1. 表单验证状态增强 ===== */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--wb-success) !important;
    box-shadow: 0 0 0 3px var(--wb-success-bg) !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--wb-error) !important;
    box-shadow: 0 0 0 3px var(--wb-error-bg) !important;
    animation: wb-shake 0.35s ease;
}

@keyframes wb-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--wb-success) !important;
    box-shadow: 0 0 0 3px rgba(0, 196, 140, 0.15) !important;
}

body[data-theme="dark"] .form-control.is-valid,
body[data-theme="dark"] .form-select.is-valid {
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12) !important;
}

body[data-theme="dark"] .form-control.is-invalid,
body[data-theme="dark"] .form-select.is-invalid {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

/* ===== 2. 按钮 active 压感反馈 ===== */
.btn:active:not(:disabled):not(.disabled) {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.btn-primary:active:not(:disabled):not(.disabled) {
    filter: brightness(0.92);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
}

.btn-outline-primary:active:not(:disabled):not(.disabled) {
    background: var(--wb-primary) !important;
    color: #fff !important;
}

.btn-danger:active:not(:disabled):not(.disabled) {
    filter: brightness(0.9);
}

.btn-success:active:not(:disabled):not(.disabled) {
    filter: brightness(0.9);
}

/* ===== 3. 回到顶部按钮 ===== */
.wb-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--wb-card-border);
    background: var(--wb-card-bg);
    color: var(--wb-text-secondary);
    box-shadow: var(--wb-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wb-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wb-back-to-top:hover {
    background: var(--wb-primary);
    border-color: var(--wb-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.wb-back-to-top:active {
    transform: scale(0.92);
}

.wb-back-to-top i {
    font-size: 1rem;
}

body[data-theme="dark"] .wb-back-to-top {
    background: rgba(22, 27, 38, 0.9);
    border-color: var(--wb-card-border);
}

body[data-theme="dark"] .wb-back-to-top:hover {
    background: var(--wb-primary);
}

/* ===== 4. 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

.content-shell {
    scroll-behavior: smooth;
}

/* ===== 5. 表格排序指示器 ===== */
.table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.table thead th.sortable::after {
    content: "\f0dc";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .65rem;
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wb-text-muted);
    opacity: .4;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.table thead th.sortable:hover::after {
    opacity: .8;
    color: var(--wb-primary);
}

.table thead th.sort-asc::after {
    content: "\f0de";
    opacity: 1;
    color: var(--wb-primary);
}

.table thead th.sort-desc::after {
    content: "\f0dd";
    opacity: 1;
    color: var(--wb-primary);
}

/* ===== 6. 分页美化 ===== */
.pagination {
    gap: .3rem;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    border: 1px solid var(--wb-card-border);
    background: var(--wb-card-bg);
    color: var(--wb-text-secondary);
    font-size: .82rem;
    font-weight: 500;
    padding: .35rem .65rem;
    min-width: 34px;
    text-align: center;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.pagination .page-item .page-link:hover {
    background: var(--wb-primary-light);
    border-color: var(--wb-primary);
    color: var(--wb-primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--wb-primary);
    border-color: var(--wb-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.pagination .page-item.disabled .page-link {
    background: var(--wb-surface-soft);
    color: var(--wb-text-muted);
    opacity: .5;
    pointer-events: none;
}

body[data-theme="dark"] .pagination .page-item .page-link {
    background: var(--wb-surface);
    border-color: var(--wb-card-border);
    color: var(--wb-text-secondary);
}

body[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--wb-primary);
    border-color: var(--wb-primary);
    color: #fff;
}

body[data-theme="dark"] .pagination .page-item .page-link:hover {
    background: rgba(107, 143, 255, 0.12);
    border-color: var(--wb-primary);
    color: #fff;
}

/* ===== 7. 搜索框聚焦动画 ===== */
.search-trigger:focus-within {
    border-color: var(--wb-primary);
    box-shadow: 0 0 0 3px var(--wb-primary-light);
}

.spotlight-input-wrap:focus-within {
    box-shadow: inset 0 -2px 0 var(--wb-primary);
}

/* ===== 8. 筛选标签/徽章 ===== */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: var(--wb-radius-pill);
    background: var(--wb-primary-light);
    color: var(--wb-primary);
    font-size: .76rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: default;
}

.filter-tag .filter-tag-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.2);
    color: var(--wb-primary);
    font-size: .55rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    padding: 0;
    line-height: 1;
}

.filter-tag .filter-tag-close:hover {
    background: var(--wb-primary);
    color: #fff;
}

.filter-tag.success {
    background: var(--wb-success-bg);
    color: var(--wb-success);
}

.filter-tag.warning {
    background: var(--wb-warning-bg);
    color: var(--wb-warning);
}

.filter-tag.error {
    background: var(--wb-error-bg);
    color: var(--wb-error);
}

/* ===== 9. 批量操作工具栏 ===== */
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: var(--wb-radius-md);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(108, 92, 231, 0.06));
    border: 1px solid rgba(79, 70, 229, 0.15);
    margin-bottom: var(--wb-space-4);
    animation: wb-slide-down 0.25s ease-out;
}

body[data-theme="dark"] .bulk-action-bar {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(108, 92, 231, 0.08));
    border-color: rgba(79, 70, 229, 0.2);
}

.bulk-action-bar .bulk-count {
    font-size: .82rem;
    font-weight: 700;
    color: var(--wb-primary);
    margin-right: .25rem;
}

.bulk-action-bar .bulk-actions {
    display: flex;
    gap: .35rem;
}

@keyframes wb-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 10. Card header 操作按钮组 ===== */
.card-header .header-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.card-header .header-actions .btn {
    padding: .25rem .55rem;
    font-size: .78rem;
}

/* ===== 11. 表格行选中状态 ===== */
.table tbody tr.selected {
    background: var(--wb-primary-light) !important;
}

.table tbody tr.selected td {
    background: inherit !important;
}

body[data-theme="dark"] .table tbody tr.selected {
    background: rgba(107, 143, 255, 0.12) !important;
}

/* ===== 12. Checkbox / Radio 增强 ===== */
.form-check-input {
    border-radius: 6px;
    border: 1.5px solid var(--wb-card-border);
    transition: all 0.15s ease;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--wb-primary);
    border-color: var(--wb-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--wb-primary-light);
    border-color: var(--wb-primary);
}

/* ===== 13. Tab 标签页美化 ===== */
.nav-tabs {
    border-bottom: 2px solid var(--wb-card-border);
    gap: .15rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--wb-text-secondary);
    font-weight: 500;
    font-size: .85rem;
    padding: .6rem 1rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--wb-primary);
    background: var(--wb-primary-light);
    border-bottom-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--wb-primary);
    font-weight: 700;
    border-bottom-color: var(--wb-primary);
    background: transparent;
}

body[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--wb-card-border);
}

body[data-theme="dark"] .nav-tabs .nav-link:hover {
    background: rgba(107, 143, 255, 0.08);
    color: var(--wb-primary);
}

body[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--wb-primary);
    border-bottom-color: var(--wb-primary);
}

/* ===== 14. Tooltip 增强动画 ===== */
.tooltip.show {
    animation: wb-tooltip-in 0.15s ease-out;
}

@keyframes wb-tooltip-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 15. 进度条美化 ===== */
.progress {
    height: 6px;
    border-radius: var(--wb-radius-pill);
    background: var(--wb-surface-soft);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--wb-radius-pill);
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="dark"] .progress {
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .progress-bar {
    background: linear-gradient(90deg, #6b8fff, #a78bfa);
}

/* ===== 16. 列表项交错入场 ===== */
.stagger-list > * {
    animation: wb-stagger-in 0.3s ease-out backwards;
}

.stagger-list > *:nth-child(1) { animation-delay: 0ms; }
.stagger-list > *:nth-child(2) { animation-delay: 40ms; }
.stagger-list > *:nth-child(3) { animation-delay: 80ms; }
.stagger-list > *:nth-child(4) { animation-delay: 120ms; }
.stagger-list > *:nth-child(5) { animation-delay: 160ms; }
.stagger-list > *:nth-child(6) { animation-delay: 200ms; }
.stagger-list > *:nth-child(7) { animation-delay: 240ms; }
.stagger-list > *:nth-child(8) { animation-delay: 280ms; }
.stagger-list > *:nth-child(9) { animation-delay: 320ms; }
.stagger-list > *:nth-child(10) { animation-delay: 360ms; }

@keyframes wb-stagger-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 17. 内容区滚动条美化 ===== */
.content-shell::-webkit-scrollbar {
    width: 6px;
}

.content-shell::-webkit-scrollbar-track {
    background: transparent;
}

.content-shell::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 3px;
}

.content-shell::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

body[data-theme="dark"] .content-shell::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .content-shell::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== 18. 列表卡片紧凑模式 ===== */
.table-compact tbody td {
    padding: .45rem .7rem !important;
    font-size: .82rem;
}

.table-compact thead th {
    padding: .5rem .7rem !important;
    font-size: .78rem;
}

/* ===== 19. 侧边栏当前页面脉冲指示 ===== */
.sidebar-menu a.active::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wb-primary);
    box-shadow: 0 0 0 3px var(--wb-primary-light);
    animation: wb-pulse-dot 2s ease-in-out infinite;
}

body.sidebar-collapsed .sidebar-menu a.active::after {
    display: none;
}

@keyframes wb-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px var(--wb-primary-light); }
    50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.08); }
}

/* ===== 20. 链接悬停下划线动效 ===== */
a.wb-link {
    position: relative;
    text-decoration: none;
    color: var(--wb-primary);
    transition: color 0.15s ease;
}

a.wb-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1.5px;
    background: var(--wb-primary);
    border-radius: 1px;
    transition: width 0.2s ease;
}

a.wb-link:hover::after {
    width: 100%;
}

/* ===== 21. 移动端返回顶部按钮位置调整 ===== */
@media (max-width: 767.98px) {
    .wb-back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* ===== 22. 长内容区域可折叠卡片增强 ===== */
.card-collapse-toggle {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--wb-text-muted);
    font-size: .78rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: .2rem .5rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.card-collapse-toggle:hover {
    color: var(--wb-primary);
    background: var(--wb-primary-light);
}

.card-collapse-toggle i {
    font-size: .7rem;
    transition: transform 0.2s ease;
}

.card-collapse-toggle.collapsed i {
    transform: rotate(-90deg);
}

/* ===== 23. 选中行批量操作提示浮条 ===== */
.selection-floating-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1050;
    padding: .65rem 1.25rem;
    border-radius: var(--wb-radius-pill);
    background: var(--wb-surface);
    border: 1px solid var(--wb-card-border);
    box-shadow: var(--wb-shadow-lg);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.selection-floating-bar.visible {
    transform: translateX(-50%) translateY(0);
}

body[data-theme="dark"] .selection-floating-bar {
    background: rgba(22, 27, 38, 0.95);
    border-color: var(--wb-card-border);
}

/* ===== 24. 数字变化动画 ===== */
.num-animate {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.num-animate.pop {
    animation: wb-num-pop 0.4s ease-out;
}

@keyframes wb-num-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    100% { transform: scale(1); }
}




/* ═══════════════════════════════════════════
   Phase 5: Data Tables & List Pages Deep Polish
   ═══════════════════════════════════════════ */

/* ===== 1. 表格容器卡片增强 ===== */
.card-table {
    border-radius: 16px !important;
    overflow: hidden;
}

.card-table .card-header {
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: var(--wb-surface-soft) !important;
    border-bottom: 2px solid var(--wb-card-border);
}

.card-table .card-header h5,
.card-table .card-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: .95rem;
    color: var(--wb-text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-table .card-body {
    padding: 0;
}

.card-table .card-body .table {
    margin-bottom: 0;
}

/* ===== 2. 表格行 hover 光泽效果 ===== */
.table-hover tbody tr {
    transition: background 0.15s ease;
}

.table-hover tbody tr:hover td {
    position: relative;
}

.table-hover tbody tr:hover td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--wb-primary);
    border-radius: 0 2px 2px 0;
}

/* ===== 3. 表格行条纹增强 ===== */
.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(79, 70, 229, 0.025);
}

body[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.015);
}

/* ===== 4. 表头排序可点击样式 ===== */
.table thead th {
    position: relative;
}

.table thead th a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.table thead th a:hover {
    color: var(--wb-primary);
}

/* ===== 5. 空表格提示 ===== */
.table-empty-row td {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--wb-text-muted);
    font-size: .9rem;
}

.table-empty-row td i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .3;
}

/* ===== 6. 表格单元格截断 ===== */
.cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-truncate:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
}

/* ===== 7. 操作列按钮样式标准化 ===== */
.table .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 500;
    border: 1px solid var(--wb-card-border);
    background: var(--wb-surface);
    color: var(--wb-text-secondary);
    transition: all 0.15s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.table .action-btn:hover {
    border-color: var(--wb-primary);
    color: var(--wb-primary);
    background: var(--wb-primary-light);
    transform: translateY(-1px);
}

.table .action-btn.btn-view {
    color: var(--wb-info);
    border-color: var(--wb-info-bg);
}

.table .action-btn.btn-view:hover {
    background: var(--wb-info-bg);
    border-color: var(--wb-info);
}

.table .action-btn.btn-edit {
    color: var(--wb-warning);
    border-color: var(--wb-warning-bg);
}

.table .action-btn.btn-edit:hover {
    background: var(--wb-warning-bg);
    border-color: var(--wb-warning);
}

.table .action-btn.btn-delete {
    color: var(--wb-error);
    border-color: var(--wb-error-bg);
}

.table .action-btn.btn-delete:hover {
    background: var(--wb-error-bg);
    border-color: var(--wb-error);
}

.table .action-btn.btn-approve {
    color: var(--wb-success);
    border-color: var(--wb-success-bg);
}

.table .action-btn.btn-approve:hover {
    background: var(--wb-success-bg);
    border-color: var(--wb-success);
}

/* ===== 8. 表格底部汇总行 ===== */
.table tfoot td {
    font-weight: 700;
    background: var(--wb-surface-soft);
    border-top: 2px solid var(--wb-card-border);
    color: var(--wb-text);
    padding: .75rem .85rem;
}

body[data-theme="dark"] .table tfoot td {
    background: rgba(255, 255, 255, 0.03);
}

/* ===== 9. 列表页筛选栏 ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    background: var(--wb-surface-soft);
    border-radius: var(--wb-radius-md);
    margin-bottom: var(--wb-space-4);
    border: 1px solid var(--wb-card-border);
}

body[data-theme="dark"] .filter-bar {
    background: rgba(255, 255, 255, 0.03);
}

.filter-bar .filter-group {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.filter-bar .filter-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--wb-text-muted);
    white-space: nowrap;
}

.filter-bar .form-select,
.filter-bar .form-control {
    font-size: .82rem;
    padding: .35rem .65rem;
    min-width: 120px;
    max-width: 200px;
}

.filter-bar .btn {
    font-size: .82rem;
    padding: .35rem .85rem;
}

/* ===== 10. 列表页统计摘要栏 ===== */
.list-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .6rem 0;
    font-size: .82rem;
    color: var(--wb-text-muted);
}

.list-summary .summary-item {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.list-summary .summary-value {
    font-weight: 700;
    color: var(--wb-text);
    font-variant-numeric: tabular-nums;
}

/* ===== 11. 分页信息栏增强 ===== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem 0;
    font-size: .82rem;
    color: var(--wb-text-muted);
}

.pagination-wrapper .pagination-info {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pagination-wrapper .per-page-select {
    font-size: .82rem;
    padding: .2rem .5rem;
    border-radius: 6px;
    border: 1px solid var(--wb-card-border);
    background: var(--wb-surface);
    color: var(--wb-text);
}

/* ===== 12. 表格行展开/折叠 ===== */
.table .row-expand-toggle {
    cursor: pointer;
    color: var(--wb-text-muted);
    transition: all 0.15s ease;
    background: none;
    border: none;
    padding: .2rem;
    border-radius: 4px;
}

.table .row-expand-toggle:hover {
    color: var(--wb-primary);
    background: var(--wb-primary-light);
}

.table .row-expand-toggle i {
    transition: transform 0.2s ease;
    font-size: .75rem;
}

.table .row-expand-toggle.expanded i {
    transform: rotate(90deg);
}

.table .row-detail {
    background: var(--wb-surface-soft);
}

.table .row-detail td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid var(--wb-card-border);
}

body[data-theme="dark"] .table .row-detail td {
    background: rgba(255, 255, 255, 0.02);
}

/* ===== 13. 状态列彩色圆点 ===== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: .35rem;
    flex-shrink: 0;
}

.status-dot.active { background: var(--wb-success); box-shadow: 0 0 0 3px var(--wb-success-bg); }
.status-dot.pending { background: var(--wb-warning); box-shadow: 0 0 0 3px var(--wb-warning-bg); }
.status-dot.inactive { background: var(--wb-text-muted); box-shadow: 0 0 0 3px rgba(156, 163, 189, 0.15); }
.status-dot.error { background: var(--wb-error); box-shadow: 0 0 0 3px var(--wb-error-bg); }
.status-dot.info { background: var(--wb-info); box-shadow: 0 0 0 3px var(--wb-info-bg); }

/* ===== 14. 头像组（多人协作展示） ===== */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border: 2px solid var(--wb-card-bg);
    margin-left: -8px;
    transition: transform 0.15s ease, z-index 0.15s ease;
    position: relative;
}

.avatar-group .avatar-item:first-child {
    margin-left: 0;
}

.avatar-group .avatar-item:hover {
    transform: translateY(-2px) scale(1.1);
    z-index: 2;
}

.avatar-group .avatar-more {
    background: var(--wb-surface-soft);
    color: var(--wb-text-muted);
    font-size: .6rem;
}

/* ===== 15. 时间线样式（工作日志/审批流） ===== */
.wb-timeline {
    position: relative;
    padding-left: 2rem;
}

.wb-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--wb-card-border);
    border-radius: 1px;
}

.wb-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.wb-timeline-item:last-child {
    padding-bottom: 0;
}

.wb-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    background: var(--wb-surface);
    border: 2px solid var(--wb-card-border);
    color: var(--wb-text-muted);
    z-index: 1;
}

.wb-timeline-item.success .wb-timeline-dot {
    background: var(--wb-success);
    border-color: var(--wb-success);
    color: #fff;
}

.wb-timeline-item.warning .wb-timeline-dot {
    background: var(--wb-warning);
    border-color: var(--wb-warning);
    color: #fff;
}

.wb-timeline-item.error .wb-timeline-dot {
    background: var(--wb-error);
    border-color: var(--wb-error);
    color: #fff;
}

.wb-timeline-item.primary .wb-timeline-dot {
    background: var(--wb-primary);
    border-color: var(--wb-primary);
    color: #fff;
}

.wb-timeline-content {
    padding: .5rem 0;
}

.wb-timeline-title {
    font-weight: 600;
    font-size: .88rem;
    color: var(--wb-text);
    margin-bottom: .2rem;
}

.wb-timeline-desc {
    font-size: .82rem;
    color: var(--wb-text-muted);
    line-height: 1.5;
}

.wb-timeline-time {
    font-size: .72rem;
    color: var(--wb-text-muted);
    margin-top: .3rem;
}

body[data-theme="dark"] .wb-timeline::before {
    background: var(--wb-card-border);
}

/* ===== 16. 列表项卡片化 ===== */
.list-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border-radius: var(--wb-radius-md);
    border: 1px solid var(--wb-card-border);
    background: var(--wb-card-bg);
    margin-bottom: .5rem;
    transition: all 0.2s ease;
}

.list-card-item:hover {
    border-color: var(--wb-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.list-card-item .item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--wb-surface-soft);
    color: var(--wb-primary);
}

.list-card-item .item-body {
    flex: 1;
    min-width: 0;
}

.list-card-item .item-title {
    font-weight: 600;
    font-size: .88rem;
    color: var(--wb-text);
    margin-bottom: .15rem;
}

.list-card-item .item-desc {
    font-size: .78rem;
    color: var(--wb-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-card-item .item-meta {
    font-size: .72rem;
    color: var(--wb-text-muted);
    margin-top: .2rem;
}

.list-card-item .item-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
}

/* ===== 17. 数据单元格高亮 ===== */
.cell-highlight {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cell-highlight.positive {
    color: var(--wb-success);
}

.cell-highlight.negative {
    color: var(--wb-error);
}

.cell-highlight.neutral {
    color: var(--wb-text);
}

/* ===== 18. 移动端表格卡片视图 ===== */
@media (max-width: 767.98px) {
    .table-mobile-card thead {
        display: none;
    }

    .table-mobile-card tbody tr {
        display: block;
        border: 1px solid var(--wb-card-border);
        border-radius: 12px;
        margin-bottom: .75rem;
        padding: .85rem;
        background: var(--wb-card-bg);
    }

    .table-mobile-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .4rem 0 !important;
        border: none !important;
        font-size: .82rem;
    }

    .table-mobile-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--wb-text-muted);
        font-size: .78rem;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .table-mobile-card tbody td:last-child {
        padding-bottom: 0 !important;
    }

    .table-mobile-card tbody tr:hover td,
    .table-mobile-card tbody tr:hover td:first-child::before {
        background: transparent !important;
    }
}




/* ═══════════════════════════════════════════
   Phase 8: Print Styles
   ═══════════════════════════════════════════ */
@media print {
    /* Hide non-essential elements */
    .sidebar-shell,
    .topbar,
    .mobile-menu-btn,
    .mobile-tab-bar,
    .wb-back-to-top,
    .sidebar-backdrop,
    .search-trigger,
    .work-start-btn,
    .theme-toggle-btn,
    .notification-bell-btn,
    .user-chip,
    .user-chip-simple,
    .btn:not(.btn-print-keep),
    .page-actions,
    .bulk-action-bar,
    .filter-bar,
    .pagination,
    .pagination-wrapper,
    .spotlight-overlay {
        display: none !important;
    }

    /* Full width content */
    .app-shell {
        min-height: auto !important;
    }

    .shell-body {
        display: block !important;
    }

    .content-shell {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt !important;
    }

    /* Card styling for print */
    .card {
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 12pt !important;
    }

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .card-header {
        background: #f5f5f5 !important;
        border-bottom: 2px solid #333 !important;
        padding: 8pt 12pt !important;
    }

    /* Table print */
    .table {
        border-collapse: collapse !important;
        font-size: 9pt !important;
    }

    .table thead th {
        background: #f0f0f0 !important;
        border: 1px solid #999 !important;
        padding: 6pt 8pt !important;
        font-weight: 700 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table tbody td {
        border: 1px solid #ccc !important;
        padding: 5pt 8pt !important;
        color: #000 !important;
    }

    .table tbody tr:hover td {
        background: transparent !important;
    }

    .table tbody tr:nth-child(odd) td {
        background: #f9f9f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20pt;
        padding-bottom: 12pt;
        border-bottom: 2px solid #333;
    }

    .print-header h1 {
        font-size: 16pt;
        margin-bottom: 4pt;
    }

    .print-header .print-meta {
        font-size: 9pt;
        color: #666;
    }

    /* Page break control */
    .page-break-before {
        page-break-before: always;
    }

    .page-break-after {
        page-break-after: always;
    }

    .no-break {
        break-inside: avoid;
    }

    /* Links show URL */
    a[href]::after {
        content: none;
    }

    /* Stat cards inline */
    .stat-card {
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Force background colors */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide background images */
    .login-left-decor,
    .decor-1,
    .decor-2 {
        display: none !important;
    }
}

/* Print-only header (hidden on screen) */
.print-header {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   Phase 9: Business Module Components (from app-v2.css)
   业务模块特定组件样式 - 已统一变量命名空间
   ═══════════════════════════════════════════════════════════════ */

/* --- 用户管理页特定优化 --- */
/* 统计卡片 */
.users-stat-card {
    border: 1px solid var(--wb-card-border);
    border-radius: var(--wb-radius-lg);
    background: var(--wb-surface);
    padding: 20px;
    box-shadow: var(--wb-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.users-stat-card:hover {
    box-shadow: var(--wb-shadow-md);
    border-color: var(--wb-primary);
}
.users-stat-card .stat-label {
    font-size: var(--wb-font-size-sm);
    color: var(--wb-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}
.users-stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--wb-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* 表格内操作按钮 */
.users-table .btn-group .btn {
    padding: 4px 10px;
    font-size: 12px;
    height: 28px;
    border-radius: var(--wb-radius-sm);
    margin-right: 4px;
}
.users-table .btn-group .btn:last-child {
    margin-right: 0;
}

/* 状态切换按钮 */
.users-table form.d-inline .btn {
    padding: 2px 8px;
    font-size: 11px;
    height: 24px;
    border-radius: var(--wb-radius-sm);
}

/* --- 报销管理页特定优化 --- */
/* 筛选区紧凑布局 */
.expense-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-card-border);
    border-radius: var(--wb-radius-lg);
    margin-bottom: 20px;
}
.expense-filter-bar .form-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wb-text-muted);
    margin-bottom: 4px;
}
.expense-filter-bar .form-control,
.expense-filter-bar .form-select {
    min-width: 140px;
}

/* 报销表格金额列 */
.expense-table .amount-cell {
    font-weight: 600;
    color: var(--wb-error);
    font-variant-numeric: tabular-nums;
    font-size: var(--wb-font-size-base);
}

/* 报销表格操作按钮组 */
.expense-table .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.expense-table .btn-group .btn {
    padding: 4px 10px;
    font-size: 12px;
    height: 28px;
    border-radius: var(--wb-radius-sm);
    margin: 0;
}
.expense-table .btn-group form {
    display: inline-flex;
}

/* 审批链样式 */
.approval-chain {
    padding: 12px 16px;
    background: var(--wb-surface-soft);
    border-radius: var(--wb-radius-md);
    border: 1px solid var(--wb-card-border-light);
}
.approval-chain-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: var(--wb-font-size-sm);
}
.approval-chain-step .step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.approval-chain-step.completed .step-icon {
    background: var(--wb-success-bg);
    color: var(--wb-success);
}
.approval-chain-step.pending .step-icon {
    background: var(--wb-warning-bg);
    color: var(--wb-warning);
}
.approval-chain-step.rejected .step-icon {
    background: var(--wb-error-bg);
    color: var(--wb-error);
}
.approval-chain-step .step-name {
    font-weight: 500;
    color: var(--wb-text-secondary);
}
.approval-chain-step .step-status {
    margin-left: auto;
    font-size: var(--wb-font-size-xs);
    color: var(--wb-text-muted);
}

/* 模态框内容表格 */
.modal-body .table-borderless td {
    padding: 8px 0;
    font-size: var(--wb-font-size-sm);
    border: none;
}
.modal-body .table-borderless td:first-child {
    color: var(--wb-text-muted);
    width: 100px;
}
.modal-body .table-borderless td:last-child {
    color: var(--wb-text-secondary);
    font-weight: 500;
}

/* --- 通用表格操作列优化 --- */
.table td.text-end .btn {
    margin-left: 4px;
}
.table td.text-end .btn:first-child {
    margin-left: 0;
}

/* --- 表单验证状态优化 --- */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--wb-error);
    background-image: none;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--wb-error-bg);
}
.invalid-feedback {
    font-size: var(--wb-font-size-xs);
    color: var(--wb-error);
    margin-top: 4px;
}

/* --- 加载状态优化 --- */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: v2-spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes v2-spin {
    to { transform: rotate(360deg); }
}

/* --- 响应式表格优化 --- */
@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: var(--wb-radius-lg);
        border: 1px solid var(--wb-card-border);
    }
    .expense-filter-bar,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .expense-filter-bar .form-control,
    .expense-filter-bar .form-select,
    .filter-bar .form-control,
    .filter-bar .form-select {
        width: 100%;
        min-width: auto;
    }
}

/* --- Dashboard 工作台特定优化 --- */

/* --- Hero 区 --- */
.dashboard-hero {
    border-radius: var(--wb-radius-xl);
    padding: 1.5rem 2rem;
    background: var(--wb-surface);
    border: 1px solid var(--wb-card-border);
    color: var(--wb-text-secondary);
    box-shadow: var(--wb-shadow-sm);
}
.dashboard-hero-title {
    font-size: var(--wb-font-size-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: .3rem;
    color: var(--wb-text);
}
.dashboard-hero p {
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-sm);
}

/* 薪资等级条 */
.dashboard-hero .mt-2.p-2.rounded {
    border-radius: var(--wb-radius-md);
    background: var(--wb-success-bg);
    border: 1px solid rgba(5, 150, 105, 0.2);
}
.dashboard-hero .mt-2.p-2.rounded strong {
    color: var(--wb-success);
}

/* 操作按钮 */
.dashboard-actions .btn-primary-action {
    background: var(--wb-primary);
    border: none;
    color: #fff;
    border-radius: var(--wb-radius-md);
    font-weight: 600;
    font-size: var(--wb-font-size-sm);
    box-shadow: none;
    transition: all .15s ease;
}
.dashboard-actions .btn-primary-action:hover {
    background: var(--wb-primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    filter: none;
}
.dashboard-actions .btn-secondary-action {
    background: var(--wb-surface-soft);
    border: 1px solid var(--wb-card-border);
    color: var(--wb-text-muted);
    border-radius: var(--wb-radius-md);
    font-weight: 600;
    font-size: var(--wb-font-size-sm);
    transition: all .15s ease;
}
.dashboard-actions .btn-secondary-action:hover {
    border-color: var(--wb-primary);
    color: var(--wb-primary);
    background: var(--wb-primary-light);
}

/* --- 待办卡片 todo-card --- */
.todo-card {
    border-radius: var(--wb-radius-lg);
    border: 1px solid var(--wb-card-border);
    background: var(--wb-surface);
    overflow: hidden;
    box-shadow: var(--wb-shadow-sm);
}
.todo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--wb-card-border-light);
    background: var(--wb-surface-soft);
}
.todo-card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: var(--wb-font-size-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wb-text);
}
.todo-card-header h6 i {
    color: var(--wb-primary);
}
.todo-card-header .text-muted {
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-xs);
}
.todo-card-body {
    padding: 10px;
}

/* 待办项 */
.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--wb-radius-md);
    text-decoration: none;
    color: var(--wb-text-secondary);
    transition: background .15s ease;
    font-size: var(--wb-font-size-sm);
}
.todo-item:hover {
    background: var(--wb-primary-soft);
}
.todo-item .todo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--wb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.todo-item .todo-icon.urgent {
    background: var(--wb-error-bg);
    color: var(--wb-error);
}
.todo-item .todo-icon.warning {
    background: var(--wb-warning-bg);
    color: var(--wb-warning);
}
.todo-item .todo-icon.info {
    background: var(--wb-primary-light);
    color: var(--wb-primary);
}
.todo-item .todo-icon.success {
    background: var(--wb-success-bg);
    color: var(--wb-success);
}
.todo-item .todo-text {
    flex: 1;
    font-size: var(--wb-font-size-sm);
    line-height: 1.3;
    color: var(--wb-text-secondary);
}
.todo-item .todo-count {
    font-size: var(--wb-font-size-xs);
    font-weight: 700;
    color: var(--wb-primary);
    background: var(--wb-primary-light);
    padding: 2px 8px;
    border-radius: var(--wb-radius-sm);
}
.todo-item .todo-count.text-danger {
    color: var(--wb-error);
    background: var(--wb-error-bg);
}

/* 空状态 */
.todo-card-body .text-center.py-4 {
    color: var(--wb-text-muted);
}
.todo-card-body .text-center.py-4 i {
    color: var(--wb-success);
}
.todo-card-body .text-center.py-4 span {
    font-size: var(--wb-font-size-sm);
}

/* --- 合同预警卡片 --- */
.contract-warning-card {
    border-radius: var(--wb-radius-lg);
    border: 1px solid var(--wb-warning-bg);
    background: linear-gradient(135deg, var(--wb-warning-bg), rgba(217, 119, 6, 0.02));
    padding: 16px;
}
.contract-warning-card h6 {
    font-size: var(--wb-font-size-sm);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wb-text);
}
.contract-warning-card h6 i {
    color: var(--wb-warning);
}
.contract-warning-card .warning-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: var(--wb-font-size-sm);
    color: var(--wb-text-secondary);
}
.contract-warning-card .warning-item .countdown {
    font-weight: 700;
    color: var(--wb-warning);
    min-width: 3rem;
    text-align: right;
    font-size: var(--wb-font-size-sm);
}
.contract-warning-card a {
    font-size: var(--wb-font-size-xs);
    color: var(--wb-primary);
    margin-top: 6px;
    display: inline-block;
    text-decoration: none;
}
.contract-warning-card a:hover {
    text-decoration: underline;
}

/* --- 统计卡片 metric-card（Dashboard 内） --- */
.dashboard .metric-card,
.metric-card {
    border: 1px solid var(--wb-card-border);
    border-radius: var(--wb-radius-lg);
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}
.dashboard .metric-card:hover,
.metric-card:hover {
    box-shadow: var(--wb-shadow-md);
    border-color: var(--wb-primary);
    transform: none;
}
.dashboard .metric-card .metric-label,
.metric-card .metric-label {
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-sm);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dashboard .metric-card .metric-label i,
.metric-card .metric-label i {
    font-size: var(--wb-font-size-sm);
    width: 1.1rem;
    text-align: center;
    color: var(--wb-text-muted);
}
.dashboard .metric-card .stat-number,
.metric-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--wb-text);
}
.dashboard .metric-card .stat-number.text-primary,
.metric-card .stat-number.text-primary {
    color: var(--wb-primary);
}
.dashboard .metric-card .stat-number.text-success,
.metric-card .stat-number.text-success {
    color: var(--wb-success);
}
.dashboard .metric-card .stat-number.text-danger,
.metric-card .stat-number.text-danger {
    color: var(--wb-error);
}
.dashboard .metric-card .stat-number.text-warning,
.metric-card .stat-number.text-warning {
    color: var(--wb-warning);
}
.dashboard .metric-card .metric-trend,
.metric-card .metric-trend {
    font-size: var(--wb-font-size-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--wb-radius-sm);
    background: var(--wb-surface-soft);
    color: var(--wb-text-muted);
    font-weight: 400;
}

/* --- 图表卡片 chart-card --- */
.chart-card {
    min-height: 380px;
    border: 1px solid var(--wb-card-border);
    border-radius: var(--wb-radius-lg);
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow-sm);
}
.chart-card .card-header {
    border-bottom: 1px solid var(--wb-card-border-light);
    padding: 14px 18px;
    background: var(--wb-surface);
}
.chart-card .card-header strong {
    font-size: var(--wb-font-size-sm);
    font-weight: 600;
    color: var(--wb-text);
}
.chart-box {
    width: 100%;
    height: 290px;
}
.chart-loading {
    width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-sm);
}

/* --- 迷你面板 mini-panel --- */
.mini-panel {
    border-radius: var(--wb-radius-lg);
    background: var(--wb-surface-soft);
    padding: 18px;
    height: 100%;
    border: 1px solid var(--wb-card-border);
}
.mini-panel h6 {
    color: var(--wb-text-muted);
    font-size: var(--wb-font-size-sm);
    font-weight: 600;
    margin-bottom: 14px;
}
.mini-panel li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--wb-card-border-light);
    font-size: var(--wb-font-size-sm);
    color: var(--wb-text-secondary);
}
.mini-panel li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mini-panel li strong {
    color: var(--wb-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- Dashboard 表格 --- */
.dashboard .table thead th {
    font-size: var(--wb-font-size-xs);
    font-weight: 600;
    color: var(--wb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--wb-card-border);
    padding: 12px 16px;
    background: var(--wb-surface-soft);
}
.dashboard .table tbody td {
    font-size: var(--wb-font-size-sm);
    color: var(--wb-text-secondary);
    padding: 14px 16px;
    border-bottom: 1px solid var(--wb-card-border-light);
}
.dashboard .table tbody tr:hover {
    background: var(--wb-primary-soft);
}

/* --- Alert 通知 --- */
.alert-info {
    background: var(--wb-info-bg);
    border-color: rgba(8, 145, 178, 0.2);
    color: var(--wb-info);
    border-radius: var(--wb-radius-lg);
}
.alert-info i {
    color: var(--wb-info);
}

/* --- 深色模式 Dashboard 覆盖 --- */
body[data-theme="dark"] .dashboard-hero {
    background: var(--wb-surface);
    border-color: var(--wb-card-border);
}
body[data-theme="dark"] .dashboard-actions .btn-primary-action {
    background: var(--wb-primary);
    color: #fff;
}
body[data-theme="dark"] .dashboard-actions .btn-secondary-action {
    background: var(--wb-surface-soft);
    border-color: var(--wb-card-border);
    color: var(--wb-text-muted);
}
body[data-theme="dark"] .dashboard-actions .btn-secondary-action:hover {
    border-color: var(--wb-primary);
    color: var(--wb-primary);
}
body[data-theme="dark"] .metric-card {
    border-color: var(--wb-card-border);
}
body[data-theme="dark"] .mini-panel {
    background: var(--wb-surface-soft);
    border-color: var(--wb-card-border);
}
body[data-theme="dark"] .todo-card {
    background: var(--wb-surface);
    border-color: var(--wb-card-border);
}
body[data-theme="dark"] .todo-card-header {
    background: var(--wb-surface-soft);
    border-bottom-color: var(--wb-card-border-light);
}
body[data-theme="dark"] .contract-warning-card {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.02));
    border-color: rgba(217, 119, 6, 0.3);
}