/**
 * ============================================================================
 * styles.css - MyIDP 系统全局核心样式表
 * ============================================================================
 * 
 * 文件说明：
 *   本文件是 MyIDP ERP 系统的全局核心样式表，涵盖：
 *   1. CSS 变量定义（主题色/布局尺寸/字体/阴影/过渡等）
 *   2. 主题系统（蓝色/绿色/深邃黑等，通过 data-theme 属性切换）
 *   3. 登录页面样式（表单/轮播图/验证码/主题选择器）
 *   4. 仪表盘布局（侧边栏/头部/主内容区/标签页）
 *   5. 侧边栏导航（折叠/展开/三级菜单/弹出菜单）
 *   6. 头部工具栏（搜索/通知/用户菜单/全屏/帮助）
 *   7. 数据表格（grid-page 表格/排序/分页/列拖拽/列宽调整）
 *   8. 表单页面（form-page 容器/工具栏/标签页/卡片组件）
 *   9. 模态框（可拖拽/可最大化/iframe 加载）
 *  10. 通知面板/帮助模态框/版权模态框
 *  11. 图表区域/仪表盘卡片/待办事项
 *  12. 响应式布局与打印样式
 * 
 * 主题切换机制：
 *   - 通过 <html data-theme="blue|green|dark|..."> 切换
 *   - CSS 变量在 :root 和 [data-theme="xxx"] 中定义
 *   - theme-sync.js 负责跨标签页同步主题
 * 
 * 布局模式：
 *   - default: 左侧侧边栏
 *   - sidebar-top: 顶部侧边栏
 *   - sidebar-right: 右侧侧边栏
 *   - header-left: 头部左侧布局
 * 
 * 最后更新：2026-05-05
 * ============================================================================
 */

/* ============================================================================
 * 一、CSS 变量定义 - 全局设计令牌
 * 包含：主题色/功能色/布局尺寸/字体/圆角/阴影/过渡
 * ============================================================================ */
:root {
    /* 主题色 - 核心品牌色彩体系 */
    --primary-color: #1e88e5;
    --primary-light: #42a5f5;
    --primary-dark: #0d47a1;
    --primary-gradient: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    --primary-shadow: rgba(30, 136, 229, 0.4);
    --primary-glow: 0 0 20px rgba(30, 136, 229, 0.3);
    
    /* 功能色 - 语义化状态色彩 */
    --success-color: #43a047;
    --success-light: #e8f5e9;
    --warning-color: #fb8c00;
    --warning-light: #fff3e0;
    --danger-color: #e53935;
    --danger-light: #ffebee;
    --info-color: #00acc1;
    --info-light: #e0f7fa;
    --secondary-color: #78909c;
    
    /* 背景色 - 层级化背景系统 */
    --bg-color: #f5f7fa;
    --bg-elevated: #ffffff;
    --card-bg: #ffffff;
    --sidebar-bg: #1a237e;
    --sidebar-text: rgba(255, 255, 255, 0.85);
    
    /* 文字色 - 三级文字层次 */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 阴影系统 - 五级阴影层次（模拟海拔高度） */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    
    /* 圆角 */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 过渡动画 - 精细化缓动函数 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* 毛玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(12px);
    
    /* 布局尺寸 */
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

[data-layout="compact"] {
    --sidebar-width: 180px;
    --header-height: 50px;
}

[data-layout="wide"] {
    --sidebar-width: 260px;
    --header-height: 70px;
}

[data-layout="boxed"] {
    --max-content-width: 1400px;
}

[data-layout="tab-header"] {
    --header-height: 44px;
}

/* ============================================================================
 * 二、主题系统 - 通过 data-theme 属性切换主题色彩
 * 支持：blue(默认) / green / purple / orange / dark / red / cyan / silver
 * ============================================================================ */
[data-theme="green"] {
    --primary-color: #43a047;
    --primary-light: #66bb6a;
    --primary-dark: #1b5e20;
    --primary-gradient: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
    --primary-shadow: rgba(67, 160, 71, 0.4);
    --sidebar-bg: #1b5e20;
}

[data-theme="purple"] {
    --primary-color: #8e24aa;
    --primary-light: #ab47bc;
    --primary-dark: #4a148c;
    --primary-gradient: linear-gradient(135deg, #8e24aa 0%, #4a148c 100%);
    --primary-shadow: rgba(142, 36, 170, 0.4);
    --sidebar-bg: #4a148c;
}

[data-theme="orange"] {
    --primary-color: #fb8c00;
    --primary-light: #ffa726;
    --primary-dark: #e65100;
    --primary-gradient: linear-gradient(135deg, #fb8c00 0%, #e65100 100%);
    --primary-shadow: rgba(251, 140, 0, 0.4);
    --sidebar-bg: #e65100;
}

[data-theme="dark"] {
    --primary-color: #2d2d2d;
    --primary-light: #404040;
    --primary-dark: #0a0a0a;
    --primary-gradient: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --primary-shadow: rgba(45, 45, 45, 0.4);
    --sidebar-bg: #0a0a0a;
}

[data-theme="red"] {
    --primary-color: #e53935;
    --primary-light: #ef5350;
    --primary-dark: #b71c1c;
    --primary-gradient: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    --primary-shadow: rgba(229, 57, 53, 0.4);
    --sidebar-bg: #b71c1c;
}

[data-theme="cyan"] {
    --primary-color: #00acc1;
    --primary-light: #26c6da;
    --primary-dark: #006064;
    --primary-gradient: linear-gradient(135deg, #00acc1 0%, #006064 100%);
    --primary-shadow: rgba(0, 172, 193, 0.4);
    --sidebar-bg: #006064;
}

/* ============================================================================
 * 五、侧边栏导航 - 折叠/展开/菜单项/三级弹出菜单
 * ============================================================================ */

[data-theme="cyan"] .sidebar-popup-submenu {
    background: var(--primary-color);
}

[data-theme="cyan"] .sidebar-popup-l3 {
    background: var(--primary-dark);
}

[data-theme="silver"] {
    --primary-color: #9e9e9e;
    --primary-light: #bdbdbd;
    --primary-dark: #757575;
    --primary-gradient: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    --primary-shadow: rgba(158, 158, 158, 0.4);
    --sidebar-bg: #757575;
}

[data-theme="silver"] .top-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="silver"] .header-row-bottom {
    background: #fafafa;
}

[data-theme="silver"] .sidebar-popup-submenu {
    background: #bdbdbd;
}

[data-theme="silver"] .sidebar-popup-l3 {
    background: #9e9e9e;
}

[data-theme="silver"] .nav-submenu {
    background: rgba(158, 158, 158, 0.15);
}

[data-theme="silver"] .nav-submenu-l3 {
    background: rgba(158, 158, 158, 0.22);
}

[data-theme="silver"] .sidebar-toggle {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0e0e0;
    color: #616161;
}

[data-theme="silver"] .sidebar-toggle:hover {
    background: #9e9e9e;
    border-color: #9e9e9e;
    color: #ffffff;
}

[data-theme="silver"] .dynamic-tab {
    border-color: #e0e0e0;
}

[data-theme="silver"] .dynamic-tab.active {
    border-color: #9e9e9e;
}

[data-theme="silver"] .dynamic-tabs-container::after {
    background: #9e9e9e;
}

[data-theme="silver"] .toolbar-btn-primary {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    border-color: #757575;
}

[data-theme="silver"] .toolbar-btn-primary:hover {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
}

[data-theme="silver"] .theme-option.active {
    background: #9e9e9e;
}

[data-theme="silver"] .layout-option.active {
    background: #9e9e9e;
    border-color: #9e9e9e;
}

[data-theme="silver"] .content-wrapper {
    background: #fafafa;
}

[data-theme="blue"] .login-page {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 50%, #1565c0 100%);
}

/* ============================================================================
 * 三、登录页面样式 - 表单/轮播图/验证码/主题选择器/布局切换
 * ============================================================================ */

[data-theme="green"] .login-page {
    background: linear-gradient(135deg, #43a047 0%, #1b5e20 50%, #2e7d32 100%);
}

[data-theme="purple"] .login-page {
    background: linear-gradient(135deg, #8e24aa 0%, #4a148c 50%, #6a1b9a 100%);
}

[data-theme="orange"] .login-page {
    background: linear-gradient(135deg, #fb8c00 0%, #e65100 50%, #ef6c00 100%);
}

[data-theme="red"] .login-page {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 50%, #c62828 100%);
}

[data-theme="dark"] .login-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #0d0d0d 100%);
}

[data-theme="cyan"] .login-page {
    background: linear-gradient(135deg, #00acc1 0%, #006064 50%, #00838f 100%);
}

[data-theme="silver"] .login-page {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 50%, #757575 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(30, 136, 229, 0.1) 0%, transparent 50%);
    animation: loginBgFloat 20s ease-in-out infinite;
}

@keyframes loginBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(15px, 15px) rotate(3deg) scale(1.02);
    }
}

[data-layout="header-left"] .top-header {
    padding-left: 0 !important;
}

[data-layout="header-left"] .header-row {
    padding-left: 0 !important;
}

[data-layout="header-left"] .content-wrapper {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1150px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 80px -20px rgba(30, 136, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container.layout-center {
    max-width: 440px;
    width: auto;
}

.login-container.layout-center .login-left {
    display: none;
}

.login-container.layout-center .login-right {
    flex: none;
    width: 100%;
    padding: 40px 35px;
}

.login-container.layout-center .theme-switcher {
    top: 12px;
    right: 12px;
}

.login-container.layout-center .login-copyright {
    margin-top: 20px;
    padding: 15px 0;
}

.login-container.layout-card {
    max-width: 950px;
}

.login-container.layout-card .login-left {
    flex: 0 0 50%;
}

.login-container.layout-card .login-right {
    flex: 0 0 50%;
    max-width: none;
}

.login-container.layout-left {
    max-width: 1100px;
}

.login-container.layout-left .login-left {
    flex: 0 0 60%;
}

.login-container.layout-left .login-right {
    flex: 0 0 40%;
    max-width: none;
}

.login-container.layout-right {
    max-width: 1100px;
}

.login-container.layout-right .login-left {
    flex: 0 0 40%;
}

.login-container.layout-right .login-right {
    flex: 0 0 60%;
    max-width: none;
}

.login-container.layout-full {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
}

.login-container.layout-full .login-left {
    flex: 0 0 50%;
}

.login-container.layout-full .login-right {
    flex: 0 0 50%;
    max-width: none;
}

.login-left {
    flex: 0 0 58%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 50%, #0d47a1 100%);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.15),
        8px 0 40px rgba(0, 0, 0, 0.1),
        inset 0 0 100px rgba(255, 255, 255, 0.05);
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}

.login-left-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    width: 75px;
    height: 75px;
    margin: 0 auto 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.brand-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 2px;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-features {
    margin-top: 10px;
    width: 100%;
    max-width: 380px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: default;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.feature-text h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.login-illustration {
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
}

.illustration-svg {
    width: 100%;
    height: auto;
}

.login-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.tech-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    perspective: 1000px;
}

.tech-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateZ(-50px) rotateY(5deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) rotateY(0);
}

.tech-svg {
    width: 100%;
    height: auto;
    max-width: 580px;
    max-height: 380px;
    flex-shrink: 0;
    margin-top: -20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(-15px) rotateX(-2deg) rotateY(2deg);
    }
}

.slide-title {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-align: center;
    letter-spacing: 2px;
    z-index: 5;
}

.slide-desc {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    text-align: center;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background: rgba(255,255,255,0.5);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.indicator.active {
    background: rgba(255,255,255,0.95);
    transform: scale(1.2);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink {
    animation: blink 1s ease-in-out infinite;
}

@keyframes dashAnimate {
    to {
        stroke-dashoffset: -20;
    }
}

.dash-animate {
    animation: dashAnimate 1s linear infinite;
}

@keyframes pulseNode {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
}

.pulse-node {
    animation: pulseNode 2s ease-in-out infinite;
}

@keyframes particle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.particle {
    animation: particle 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotateY(0);
    }
    50% {
        transform: translateY(-10px) rotateY(10deg);
    }
}

.float-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

.float-icon.icon-2 {
    animation-delay: 0.5s;
}

.float-icon.icon-3 {
    animation-delay: 1s;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.bar {
    transform-origin: bottom;
    animation: barGrow 0.8s ease-out forwards;
}

@keyframes lineDraw {
    from {
        stroke-dasharray: 0 1000;
    }
    to {
        stroke-dasharray: 1000 0;
    }
}

.line-path {
    stroke-dasharray: 500;
    animation: lineDraw 2s ease-out forwards;
}

@keyframes chainLink {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.chain-link {
    animation: chainLink 1.5s ease-in-out infinite;
}

@keyframes dataUpload {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
        transform: translateY(-10px);
    }
}

.data-upload {
    animation: dataUpload 2s ease-in-out infinite;
}

@keyframes dataDownload {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
        transform: translateY(10px);
    }
}

.data-download {
    animation: dataDownload 2s ease-in-out infinite;
}

.tech-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.tech-circle.circle-1 {
    width: 300px;
    height: 300px;
    animation: techPulse 4s ease-in-out infinite;
}

.tech-circle.circle-2 {
    width: 200px;
    height: 200px;
    animation: techPulse 4s ease-in-out infinite 0.5s;
}

.tech-circle.circle-3 {
    width: 100px;
    height: 100px;
    animation: techPulse 4s ease-in-out infinite 1s;
}

@keyframes techPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotateZ(0);
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotateZ(5deg);
        opacity: 0.6;
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    height: 2px;
    animation: lineScan 3s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tech-line.line-1 {
    top: 20%;
    width: 100%;
    animation-delay: 0s;
}

.tech-line.line-2 {
    top: 40%;
    width: 100%;
    animation-delay: 0.5s;
}

.tech-line.line-3 {
    top: 60%;
    width: 100%;
    animation-delay: 1s;
}

.tech-line.line-4 {
    top: 80%;
    width: 100%;
    animation-delay: 1.5s;
}

@keyframes lineScan {
    0% {
        transform: translateX(-100%) scaleY(1);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateX(0) scaleY(1.5);
    }
    100% {
        transform: translateX(100%) scaleY(1);
        opacity: 0;
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes float3dAlternate {
    0%, 100% {
        transform: translateZ(0) translateY(0);
    }
    25% {
        transform: translateZ(20px) translateY(-10px);
    }
    50% {
        transform: translateZ(0) translateY(-20px);
    }
    75% {
        transform: translateZ(-20px) translateY(-10px);
    }
}

@keyframes glow3d {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-wave {
    animation: pulseWave 2s ease-out infinite;
}

.tech-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: dotBlink 2s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.tech-dot.dot-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.tech-dot.dot-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0.3s;
}

.tech-dot.dot-3 {
    top: 55%;
    left: 15%;
    animation-delay: 0.6s;
}

.tech-dot.dot-4 {
    top: 70%;
    right: 20%;
    animation-delay: 0.9s;
}

.tech-dot.dot-5 {
    top: 85%;
    left: 30%;
    animation-delay: 1.2s;
}

@keyframes dotBlink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
}

.tech-data-flow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: dataFlow 2s linear infinite;
}

.data-stream.stream-1 {
    left: 25%;
    height: 100px;
    animation-delay: 0s;
}

.data-stream.stream-2 {
    left: 50%;
    height: 150px;
    animation-delay: 0.5s;
}

.data-stream.stream-3 {
    left: 75%;
    height: 120px;
    animation-delay: 1s;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.login-right {
    flex: 1;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
        -4px 0 20px rgba(0, 0, 0, 0.08),
        -8px 0 40px rgba(0, 0, 0, 0.04);
}

.theme-switcher {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.theme-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.theme-btn:hover {
    transform: scale(1.15);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.theme-btn.active {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.login-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    padding-top: 15px;
}

.login-container:not(.layout-center) .login-form-container {
    flex: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 18px;
    position: relative;
	margin-top:18px;
}

.login-header::after {
    display: none;
}

.login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.login-icon::before {
    display: none;
}

.login-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px;
    height: 18px;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid #b0b4b8;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: #ffffff;
    transition: all var(--transition-fast);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 
        0 0 0 3px rgba(30, 136, 229, 0.12),
        0 2px 8px rgba(30, 136, 229, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.input-wrapper input:hover:not(:focus) {
    border-color: #909399;
    background: #ffffff;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--primary-color);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle svg {
    width: 100%;
    height: 100%;
}

.captcha-wrapper {
    display: flex;
    gap: 8px;
}

.captcha-wrapper .input-wrapper {
    flex: 1;
}

.captcha-image {
    width: 100px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #b0b4b8;
    transition: all var(--transition-fast);
    background: var(--bg-color);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.captcha-image:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.captcha-image canvas {
    width: 100%;
    height: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #b0b4b8;
    border-radius: 5px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.checkbox-custom:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    animation: checkboxCheck 0.2s ease forwards;
}

@keyframes checkboxCheck {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-color);
}

.captcha-wrapper {
    display: flex;
    gap: 12px;
}

.captcha-wrapper .input-wrapper {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.captcha-image:hover {
    border-color: var(--primary-color);
}

.captcha-image canvas {
    width: 100%;
    height: 100%;
}

.login-btn {
    width: 100%;
	margin-top:18px;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    box-shadow: 
        0 4px 12px rgba(30, 136, 229, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.login-btn::before {
    display: none;
}

.login-btn::after {
    display: none;
}

.login-btn:hover::before {
    display: none;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(30, 136, 229, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.login-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.login-footer-links {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.login-footer-links a {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.login-footer-links a:hover {
    color: var(--primary-color);
}

.layout-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
}

.switcher-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.layout-options {
    display: flex;
    gap: 4px;
}

.layout-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.layout-btn svg {
    width: 12px;
    height: 12px;
}

.layout-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--card-bg);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.layout-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 18px;
}

.login-copyright p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 14px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

/* ============================================================================
 * 四、仪表盘页面布局 - 侧边栏/头部/主内容区/标签页容器
 * ============================================================================ */
.dashboard-page {
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

[data-layout="boxed"] .app-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

[data-layout="sidebar-top"] .app-container {
    flex-direction: column;
}

[data-layout="sidebar-right"] .app-container {
    flex-direction: row;
}

[data-layout="header-left"] .app-container {
    flex-direction: row;
}

/* 五-B、侧边栏主体样式 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-gradient);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all var(--transition-normal);
    box-shadow: 
        4px 0 16px rgba(0, 0, 0, 0.12),
        inset -1px 0 0 rgba(255, 255, 255, 0.08);
    border-right: none;
}

[data-layout="sidebar-top"] .sidebar {
    position: fixed;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: visible;
    pointer-events: auto;
    top: 0;
    left: 0;
    right: 0;
}

[data-layout="sidebar-top"] .sidebar.expanded {
    max-height: 60px;
}

[data-layout="sidebar-top"] .sidebar-header,
[data-layout="sidebar-top"] .sidebar-nav,
[data-layout="sidebar-top"] .nav-item,
[data-layout="sidebar-top"] .nav-link {
    pointer-events: auto;
}

[data-layout="sidebar-top"] .sidebar-header {
    flex-direction: row;
    padding: 0 16px;
    height: 60px;
    min-height: 60px;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    min-width: fit-content;
}

[data-layout="sidebar-top"] .sidebar-logo {
    flex-direction: row;
    gap: 8px;
    white-space: nowrap;
}

[data-layout="sidebar-top"] .logo-icon {
    width: 28px;
    height: 28px;
}

[data-layout="sidebar-top"] .logo-text {
    font-size: 14px;
    white-space: nowrap;
}

[data-layout="sidebar-top"] .sidebar-nav {
    flex: 1;
    height: 60px;
    overflow: visible;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

[data-layout="sidebar-top"] .sidebar.expanded .sidebar-nav {
    overflow: visible;
}

[data-layout="sidebar-top"] .nav-section {
    height: 60px;
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-top: 8px;
}

[data-layout="sidebar-top"] .nav-menu {
    display: flex;
    flex-direction: row;
    height: 52px;
    min-height: 52px;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

[data-layout="sidebar-top"] .nav-menu::-webkit-scrollbar {
    display: none;
}

[data-layout="sidebar-top"] .nav-item {
    position: relative;
    flex-shrink: 0;
    height: 44px;
    display: flex;
    align-items: center;
}

[data-layout="sidebar-top"] .nav-item.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    flex-shrink: 0;
}

[data-layout="sidebar-top"] .nav-link {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
}

[data-layout="sidebar-top"] .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

[data-layout="sidebar-top"] .nav-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

[data-layout="sidebar-top"] .nav-arrow {
    width: 12px;
    height: 12px;
    margin-left: 4px;
}

[data-layout="sidebar-top"] .has-submenu-l3 > a {
    position: relative;
}

[data-layout="sidebar-top"] .has-submenu-l3 > a::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.6);
}

[data-layout="sidebar-top"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-layout="sidebar-top"] .nav-submenu {
    position: fixed;
    top: -9999px;
    left: -9999px;
    min-width: 200px;
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: none;
    overflow: visible;
    z-index: 101;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    margin-top: 0;
    padding-top: 4px;
}

[data-layout="sidebar-top"] .nav-submenu::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
}

[data-layout="sidebar-top"] .nav-item:hover > .nav-submenu {
    top: 60px;
    left: auto;
    opacity: 1;
    visibility: visible;
}

[data-layout="sidebar-top"] .nav-item.open > .nav-submenu {
    top: 60px;
    left: auto;
    opacity: 1;
    visibility: visible;
}

[data-layout="sidebar-top"] .nav-submenu li {
    list-style: none;
}

[data-layout="sidebar-top"] .nav-submenu li a {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-size: 13px;
}

[data-layout="sidebar-top"] .nav-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-layout="sidebar-top"] .has-submenu-l3 {
    position: relative;
}

[data-layout="sidebar-top"] .nav-submenu-l3 {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px;
    background: var(--primary-dark);
    max-height: none;
    overflow: visible;
    border-radius: 0 8px 8px 0;
    z-index: 102;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

[data-layout="sidebar-top"] .has-submenu-l3:hover > .nav-submenu-l3 {
    opacity: 1;
    visibility: visible;
}

[data-layout="sidebar-top"] .has-submenu-l3.open > .nav-submenu-l3 {
    opacity: 1;
    visibility: visible;
}

[data-layout="sidebar-top"] .nav-submenu-l3 li {
    list-style: none;
}

[data-layout="sidebar-top"] .nav-submenu-l3 li a {
    padding: 10px 16px;
    font-size: 12px;
    display: block;
}

[data-layout="sidebar-top"] .sidebar-user {
    display: none;
}

[data-layout="sidebar-top"] .sidebar-footer {
    display: none;
}

[data-layout="sidebar-top"] .menu-toggle-btn {
    display: none;
}

[data-layout="sidebar-top"] .menu-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 4px;
}

[data-layout="sidebar-top"] .menu-scroll-btn:hover {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

[data-layout="sidebar-top"] .menu-scroll-btn.show {
    display: flex;
}

[data-layout="sidebar-top"] .menu-scroll-btn.menu-scroll-left {
    left: 0;
    border-radius: 0 4px 4px 0;
}

[data-layout="sidebar-top"] .menu-scroll-btn.menu-scroll-right {
    right: 0;
    border-radius: 4px 0 0 4px;
}

[data-layout="sidebar-top"] .menu-scroll-btn svg {
    width: 16px;
    height: 16px;
}

[data-layout="header-left"] .sidebar-header {
    padding: 10px;
    justify-content: center;
}

[data-layout="header-left"] .sidebar-logo {
    flex-direction: column;
    gap: 4px;
}

[data-layout="header-left"] .logo-icon {
    width: 32px;
    height: 32px;
}

[data-layout="header-left"] .logo-text {
    display: none;
}

[data-layout="header-left"] .sidebar-nav {
    flex: 1;
    overflow: visible;
    height: auto;
    padding: 16px 0;
}

[data-layout="header-left"] .nav-section {
    height: auto;
    width: 100%;
}

[data-layout="header-left"] .nav-section .menu-scroll-btn {
    display: none;
}

[data-layout="header-left"] .nav-menu {
    flex-direction: column;
    overflow: visible;
    padding: 0;
}

[data-layout="header-left"] .nav-item {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

[data-layout="header-left"] .nav-item.has-submenu {
    position: relative;
}

[data-layout="header-left"] .nav-item.nav-divider {
    display: none;
}

[data-layout="header-left"] .nav-link {
    padding: 10px 0;
    justify-content: center;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
}

[data-layout="header-left"] .nav-icon {
    margin: 0;
    width: 20px;
    height: 20px;
}

[data-layout="header-left"] .nav-text,
[data-layout="header-left"] .nav-arrow {
    display: none;
}

[data-layout="header-left"] .sidebar-user {
    flex-direction: column;
    padding: 10px 5px;
    gap: 5px;
}

[data-layout="header-left"] .user-info {
    display: none;
}

[data-layout="header-left"] .user-avatar {
    width: 36px;
    height: 36px;
}

[data-layout="header-left"] .sidebar-footer {
    padding: 10px 0;
}

[data-layout="header-left"] .has-submenu-l3 {
    position: relative;
}

[data-layout="header-left"] .has-submenu-l3 > a::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.6);
}

[data-layout="header-left"] .sidebar-nav {
    padding-top: 10px;
}

[data-layout="header-left"] .nav-item.has-submenu:hover > .nav-submenu {
    display: block;
    max-height: 500px;
}

[data-layout="header-left"] .nav-submenu {
    display: none;
    max-height: 0;
    position: absolute;
    left: 60px;
    top: 0;
    min-width: 200px;
    background: var(--primary-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0 8px 8px 0;
    overflow: visible;
}

[data-layout="header-left"] .nav-submenu li a {
    padding: 10px 16px;
    display: block;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    transition: all 0.2s ease;
}

[data-layout="header-left"] .nav-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-layout="header-left"] .has-submenu-l3:hover > .nav-submenu-l3 {
    display: block;
    max-height: 500px;
}

[data-layout="header-left"] .nav-submenu-l3 {
    display: none;
    max-height: 0;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: var(--primary-dark);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
    overflow: visible;
}

[data-layout="header-left"] .nav-submenu-l3 li a {
    padding: 10px 16px;
    display: block;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    transition: all 0.2s ease;
}

[data-layout="header-left"] .nav-submenu-l3 li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-layout="sidebar-right"] .sidebar {
    left: auto;
    right: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

[data-layout="header-left"] .sidebar {
    position: relative !important;
    width: 60px !important;
    height: 100vh;
    min-height: 100vh;
    flex-direction: column;
    flex-shrink: 0;
    overflow: visible;
}

[data-layout="compact"] .sidebar {
    width: 180px;
}

[data-layout="wide"] .sidebar {
    width: 260px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

[data-layout="sidebar-top"] .sidebar.collapsed {
    width: 100%;
    height: 60px;
}

[data-layout="sidebar-top"] .sidebar.collapsed .sidebar-header {
    padding: 0 15px;
    min-width: fit-content;
}

[data-layout="sidebar-top"] .sidebar.collapsed .sidebar-nav {
    overflow: visible;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-text {
    display: none;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-link {
    padding: 0 12px;
    justify-content: center;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-icon {
    margin: 0;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-submenu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    min-width: 200px;
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-item:hover > .nav-submenu {
    display: block;
}

[data-layout="sidebar-top"] .sidebar.collapsed .sidebar-user,
[data-layout="sidebar-top"] .sidebar.collapsed .sidebar-footer {
    display: none;
}

[data-layout="sidebar-right"] .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

[data-layout="compact"] .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

[data-layout="wide"] .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

[data-layout="header-left"] .sidebar.collapsed {
    width: 60px;
}

[data-layout="header-left"] .sidebar.collapsed .sidebar-header {
    padding: 10px 0;
}

[data-layout="header-left"] .sidebar.collapsed .sidebar-logo {
    gap: 0;
}

[data-layout="header-left"] .sidebar.collapsed .logo-text {
    display: none;
}

[data-layout="header-left"] .sidebar.collapsed .nav-text,
[data-layout="header-left"] .sidebar.collapsed .nav-arrow {
    display: none;
}

[data-layout="header-left"] .sidebar.collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
}

[data-layout="header-left"] .sidebar.collapsed .nav-icon {
    margin: 0;
}

[data-layout="header-left"] .sidebar.collapsed .sidebar-user {
    flex-direction: column;
    padding: 10px;
}

[data-layout="header-left"] .sidebar.collapsed .user-info {
    display: none;
}

[data-layout="header-left"] .sidebar.collapsed .sidebar-footer {
    padding: 10px 0;
}

[data-layout="compact"] .main-content {
    margin-left: 180px;
}

[data-layout="compact"] .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

[data-layout="wide"] .main-content {
    margin-left: 260px;
}

[data-layout="wide"] .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

[data-layout="tab-header"] .sidebar {
    width: var(--sidebar-width);
}

[data-layout="tab-header"] .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

[data-layout="tab-header"] .sidebar.collapsed .nav-text,
[data-layout="tab-header"] .sidebar.collapsed .nav-arrow {
    display: none;
}

[data-layout="tab-header"] .sidebar.collapsed .nav-link {
    padding: 12px 0;
    justify-content: center;
}

[data-layout="tab-header"] .sidebar.collapsed .nav-icon {
    margin: 0;
}

[data-layout="tab-header"] .main-content {
    margin-left: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

[data-layout="tab-header"] .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

[data-layout="tab-header"] .top-header {
    height: auto;
    min-height: auto;
    flex-direction: column;
}

[data-layout="tab-header"] .header-row-top {
    height: 44px;
    min-height: 44px;
}

[data-layout="tab-header"] .header-row-bottom {
    height: 40px;
    min-height: 40px;
    display: flex;
    padding: 0;
}

[data-layout="tab-header"] .dynamic-tabs-container {
    height: 40px;
}

[data-layout="tab-header"] .content-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-layout="tab-header"] .page-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-layout="tab-header"] .page-content.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-layout="tab-header"] .page-iframe {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
    min-height: 0;
}

[data-layout="sidebar-top"] .sidebar-popup-menu {
    left: 0;
    top: 60px;
}

[data-layout="sidebar-top"] .sidebar-popup-submenu {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-layout="sidebar-top"] .sidebar-popup-l3 {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-layout="sidebar-right"] .sidebar-popup-menu {
    left: auto;
    right: var(--sidebar-collapsed-width);
}

[data-layout="sidebar-right"] .sidebar-popup-submenu {
    left: auto;
    right: var(--sidebar-collapsed-width);
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.25);
}

[data-layout="sidebar-right"] .sidebar-popup-l3 {
    border-radius: 12px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
}

[data-layout="header-left"] .sidebar-popup-menu {
    left: 60px;
    top: 0;
}

[data-layout="header-left"] .sidebar-popup-submenu {
    left: 60px;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.25);
}

[data-layout="header-left"] .sidebar-popup-l3 {
    border-radius: 12px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-popup-menu {
    position: fixed;
    left: var(--sidebar-collapsed-width);
    top: 0;
    width: 200px;
    height: 100vh;
    background: var(--primary-color);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.sidebar-popup-menu.show {
    display: flex;
}

.sidebar-popup-menu .popup-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-popup-menu .popup-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-popup-menu .popup-menu-item {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-popup-menu .popup-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-popup-menu .popup-menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-popup-menu .popup-menu-item .arrow {
    width: 16px;
    height: 16px;
}

.sidebar-popup-submenu {
    position: fixed;
    left: var(--sidebar-collapsed-width);
    width: 200px;
    background: var(--primary-color);
    z-index: 1001;
    display: none;
    flex-direction: column;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0 12px 12px 0;
    max-height: calc(100vh - 20px);
    overflow: hidden;
}

.sidebar-popup-submenu.show {
    display: flex;
}

.sidebar-popup-submenu .popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-popup-submenu .popup-header .back-btn {
    display: none;
}

.sidebar-popup-submenu .popup-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.sidebar-popup-submenu .popup-menu-item {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.sidebar-popup-submenu .popup-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-popup-submenu .popup-menu-item .arrow {
    width: 14px;
    height: 14px;
}

.sidebar-popup-l3 {
    position: fixed;
    width: 180px;
    background: var(--primary-dark);
    z-index: 1002;
    display: none;
    flex-direction: column;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    max-height: calc(100vh - 20px);
    overflow: hidden;
}

.sidebar-popup-l3.show {
    display: flex;
}

.sidebar-popup-l3 .popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-popup-l3 .popup-header .back-btn {
    display: none;
}

.sidebar-popup-l3 .popup-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.sidebar-popup-l3 .popup-menu-item {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.sidebar-popup-l3 .popup-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-header {
    padding: 10px 10px 10px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    margin-left: 4px;
    color: #FFF;
    padding: 8px 12px;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sidebar-logo .logo-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.module-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform var(--transition-fast);
    margin-left: auto;
}

.dashboard-tabs {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.tabs-header {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(30, 136, 229, 0.08);
}

.tab-btn.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tabs-content {
    padding: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.tab-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.tab-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tab-placeholder p {
    font-size: 14px;
    max-width: 400px;
}

.dynamic-tab .tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: all var(--transition-fast);
}

.dynamic-tab:hover .tab-close {
    opacity: 1;
}

.dynamic-tab .tab-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.dynamic-tab .tab-close svg {
    width: 14px;
    height: 14px;
}

.dynamic-tabs-actions {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: transparent;
    flex-shrink: 0;
    align-items: center;
}

.tabs-scroll-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f0f0f0;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
}

.tabs-scroll-btn:hover {
    background: #e4e4e4;
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.tabs-scroll-btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.tabs-scroll-btn svg {
    width: 14px;
    height: 14px;
}

.page-content-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-content {
    width: 100%;
    height: 100%;
    display: none;
    flex: 1;
}

.page-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.page-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    flex: 1;
    min-height: 0;
}

.page-content-inner {
    padding: 0;
}

.page-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-content-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-content-body {
    min-height: 400px;
}

.module-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.module-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.module-modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    border: 1px solid var(--border-color);
}

.module-modal-overlay.show .module-modal {
    transform: scale(1) translateY(0);
}

.module-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary-gradient);
    position: relative;
}

.module-modal-header::after {
    display: none;
}

.module-modal-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.module-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: all var(--transition-fast);
}

.module-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.module-modal-close svg {
    width: 20px;
    height: 20px;
}

.module-modal-body {
    padding: 24px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

.module-modal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.module-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-color);
    border: 2px solid transparent;
    position: relative;
}

.module-modal-item::before {
    display: none;
}

.module-modal-item:hover {
    background: rgba(30, 136, 229, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.module-modal-item.active {
    background: rgba(30, 136, 229, 0.12);
    border-color: var(--primary-color);
}

.module-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    transition: all 0.2s ease;
    position: relative;
}

.module-modal-icon::after {
    display: none;
}

.module-modal-item:hover .module-modal-icon {
    transform: scale(1.1);
}

.module-modal-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.module-modal-item span {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .module-modal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .module-modal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .module-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .module-modal-body {
        padding: 16px;
    }
    
    .module-modal-item {
        padding: 16px 8px;
    }
    
    .module-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .module-modal-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .module-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-dark);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.sidebar-toggle:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed ~ .main-content .sidebar-toggle svg {
    transform: scaleX(-1);
}

[data-layout="sidebar-top"] .sidebar-toggle {
    position: fixed;
    left: 16px;
    top: 7px;
    z-index: 106;
    display: flex;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

[data-layout="header-left"] .sidebar-toggle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

[data-layout="sidebar-right"] .sidebar.collapsed ~ .main-content .sidebar-toggle svg {
    transform: scaleX(1);
}

[data-layout="sidebar-right"] .sidebar-toggle svg {
    transform: scaleX(-1);
}

.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
}

.status-dot.online {
    background: var(--success-color);
}

.user-info {
    overflow: hidden;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
}

.user-name {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.user-role {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%);
    min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nav-submenu-l3::-webkit-scrollbar {
    width: 4px;
}

.nav-submenu-l3::-webkit-scrollbar-track {
    background: transparent;
}

.nav-submenu-l3::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.nav-submenu-l3::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nav-submenu::-webkit-scrollbar {
    width: 4px;
}

.nav-submenu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-submenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.nav-submenu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nav-section {
    margin-bottom: 8px;
    padding: 8px 0;
}

.nav-section-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
}

.nav-menu {
    list-style: none;
    padding: 4px 0;
}

.nav-item {
    position: relative;
}

.nav-item + .nav-item {
    margin-top: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--sidebar-text);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #fff;
    transform: scaleY(0);
    transition: transform var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.nav-item.active > .nav-link {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.nav-item.active > .nav-link::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.sidebar.collapsed .nav-arrow {
    opacity: 0;
}

.nav-item.open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    list-style: none;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height var(--transition-normal);
    background: rgba(0, 0, 0, 0.2);
    margin: 0 8px;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item.open > .nav-submenu {
    max-height: none;
}

.nav-submenu li a {
    display: block;
    padding: 10px 20px 10px 52px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.nav-submenu li a::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-submenu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 56px;
}

.nav-submenu li a:hover::before {
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.nav-submenu li.has-submenu-l3 > a {
    position: relative;
    padding-right: 30px;
}

.nav-submenu li.has-submenu-l3 > a::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.nav-submenu li.has-submenu-l3.open > a::after {
    transform: translateY(-50%) rotate(90deg);
}

.nav-submenu-l3 {
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.25);
    transition: max-height 0.3s ease;
    margin: 4px 8px;
    border-radius: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-submenu li.has-submenu-l3.open > .nav-submenu-l3 {
    max-height: 10000px;
}

.nav-submenu-l3 li a {
    padding: 8px 20px 8px 68px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    cursor: pointer;
    user-select: none;
}

.nav-submenu-l3 li a::before {
    content: '';
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-submenu-l3 li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-submenu-l3 li a:hover::before {
    background: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.sidebar.collapsed .nav-submenu {
    display: none;
}

.sidebar.collapsed .nav-submenu-l3 {
    display: none;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.logout-btn span {
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.sidebar.collapsed .logout-btn span {
    opacity: 0;
    width: 0;
}

/* ============================================================================
 * 六、主内容区 - 内容区布局/头部工具栏/搜索/通知/用户菜单
 * ============================================================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-normal);
    overflow: hidden;
}

[data-layout="sidebar-top"] .main-content {
    margin-left: 0;
    margin-top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

[data-layout="sidebar-top"] .top-header {
    z-index: 50;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-shrink: 0;
    background: var(--card-bg);
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: auto;
}

[data-layout="sidebar-top"] .top-menu-toggle {
    display: none;
}

[data-layout="sidebar-top"] .sidebar.collapsed {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-text,
[data-layout="sidebar-top"] .sidebar.collapsed .nav-arrow {
    display: none;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-link {
    padding: 0 12px;
    justify-content: center;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-icon {
    margin: 0;
}

[data-layout="sidebar-top"] .sidebar.collapsed .nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

[data-layout="sidebar-top"] .main-content.sidebar-collapsed {
    margin-top: 60px;
    height: calc(100vh - 60px);
}

[data-layout="sidebar-top"] .main-content.sidebar-collapsed .top-header {
    top: 60px;
}

[data-layout="sidebar-top"] .main-content.sidebar-collapsed .content-wrapper {
    top: 86px;
}

.top-menu-toggle {
    display: none;
}

[data-layout="sidebar-top"] .header-row-top {
    height: 50px;
    min-height: 50px;
}

[data-layout="sidebar-top"] .header-row-bottom {
    position: relative;
    top: 0;
    z-index: 10;
    height: 36px;
    min-height: 36px;
}

[data-layout="sidebar-top"] .dynamic-tabs-container {
    min-height: 36px;
}

[data-layout="sidebar-top"] .dynamic-tab {
    padding: 8px 16px;
    font-size: 12px;
}

[data-layout="sidebar-top"] .content-wrapper {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-layout="sidebar-top"] .page-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-layout="sidebar-top"] .page-content.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-layout="sidebar-top"] .dashboard-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: var(--bg-color, #f5f7fa);
}

[data-layout="sidebar-top"] .page-iframe {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
    min-height: 0;
}

[data-layout="sidebar-top"] .theme-dropdown {
    z-index: 103;
}

[data-layout="sidebar-top"] .theme-selector {
    position: relative;
    z-index: 104;
}

[data-layout="sidebar-top"] .header-actions {
    position: relative;
    z-index: 105;
    pointer-events: auto;
}

[data-layout="sidebar-right"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

[data-layout="sidebar-right"] .sidebar.collapsed ~ .main-content {
    margin-right: var(--sidebar-collapsed-width);
}

[data-layout="header-left"] .main-content {
    margin-left: 0 !important;
    flex: 1;
}

[data-layout="boxed"] .main-content {
    height: 100vh;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

[data-layout="sidebar-right"] .sidebar.collapsed ~ .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-collapsed-width);
}

[data-layout="compact"] .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

[data-layout="wide"] .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.top-header {
    background: var(--card-bg);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header-row-top {
    height: var(--header-height);
}

.header-row-bottom {
    background: #f1f5f9;
    padding: 0;
    border-top: none;
    display: flex;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 16px;


    min-height: 28px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: #f0f0f0;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #e4e4e4;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.mobile-menu-btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    color: var(--text-secondary);
    font-size: 13px;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 24px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 60px 0 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-color);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-shortcut {
    position: absolute;
    right: 12px;
    padding: 4px 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
}

/* ============================================================================
 * 七、动态标签页 - 多标签页浏览/标签切换/关闭/滚动
 * ============================================================================ */
.dynamic-tabs-container {
    display: flex;
    align-items: stretch;
    background: #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: none;
    min-height: 40px;
    position: relative;
    flex: 1;
    padding: 0;
}

.dynamic-tabs {
    display: flex;
    flex: 0 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    gap: 0;
    scroll-behavior: smooth;
    min-width: 0;
}

.dynamic-tabs::-webkit-scrollbar {
    display: none;
}

.dynamic-tabs-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    z-index: 1;
}

.dynamic-tabs-container .tabs-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    z-index: 1;
}

.dynamic-tabs-container.can-scroll-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 1px;
    width: 30px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 15;
}

.dynamic-tabs-container.can-scroll-right .scroll-right-gradient {
    position: absolute;
    right: 60px;
    top: 0;
    bottom: 1px;
    width: 30px;
    background: linear-gradient(270deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 15;
    display: block;
}

.scroll-right-gradient {
    display: none;
}

.dynamic-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-bottom: 1px solid var(--primary-color);
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-right: 4px;
}

.dynamic-tab:first-child {
    margin-left: 10px;
}

.dynamic-tab:hover {
    color: var(--primary-color);
    background: #f8fafc;
    border-color: #d1d5db;
    border-bottom: 1px solid var(--primary-color);
}

.dynamic-tab.active {
    color: var(--primary-dark);
    background: #ffffff;
    z-index: 20;
    position: relative;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    border-bottom: 1px solid transparent;
    margin-right: 4px;
}

.dynamic-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    z-index: 22;
}

.dynamic-tab .tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0.5;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.dynamic-tab:hover .tab-close {
    opacity: 1;
    background: rgba(0, 0, 0, 0.12);
}

.dynamic-tab.active .tab-close {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.05);
}

.dynamic-tab .tab-close:hover {
    background: rgba(239, 68, 68, 0.15);
    opacity: 1;
}

.dynamic-tab .tab-close:hover svg {
    color: #ef4444;
}

.dynamic-tab .tab-close svg {
    width: 10px;
    height: 10px;
    color: #64748b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-selector {
    position: relative;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.action-btn.with-label {
    width: auto;
    height: 36px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 6px;
    background: #f0f0f0;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.action-btn.with-label:hover {
    background: #e4e4e4;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.action-btn.with-label:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-primary {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.action-btn.with-label.btn-primary:hover {
    background: var(--primary-dark, #337ecc);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.6);
}

.action-btn.with-label.btn-primary:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-success {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.action-btn.with-label.btn-success:hover {
    background: #529b2e;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(103, 194, 58, 0.6);
}

.action-btn.with-label.btn-success:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-danger {
    background: var(--danger-color, #f56c6c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.action-btn.with-label.btn-danger:hover {
    background: #c45656;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 108, 108, 0.6);
}


.action-btn.with-label.btn-danger:active {
    box-shadow: 0 2px 4px rgba(245, 108, 108, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-warning {
    background: var(--warning-color, #e6a23c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.action-btn.with-label.btn-warning:hover {
    background: #cf9236;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 162, 60, 0.6);
}

.action-btn.with-label.btn-warning:active {
    box-shadow: 0 2px 4px rgba(230, 162, 60, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-info {
    background: var(--info-color, #909399);
    color: #fff;
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.5);
}

.action-btn.with-label.btn-info:hover {
    background: #73767a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(144, 147, 153, 0.6);
}

.action-btn.with-label.btn-info:active {
    box-shadow: 0 2px 4px rgba(144, 147, 153, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-cyan {
    background: #00acc1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.action-btn.with-label.btn-cyan:hover {
    background: #00838f;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 172, 193, 0.6);
}

.action-btn.with-label.btn-cyan:active {
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label.btn-secondary {
    background: #78909c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(120, 144, 156, 0.5);
}

.action-btn.with-label.btn-secondary:hover {
    background: #546e7a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(120, 144, 156, 0.6);
}

.action-btn.with-label.btn-secondary:active {
    box-shadow: 0 2px 4px rgba(120, 144, 156, 0.4);
    transform: translateY(-1px);
}

.action-btn.with-label span {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn.with-label svg {
    width: 18px;
    height: 18px;
}

.notification-btn .notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section {
    margin-bottom: 8px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.theme-option:hover {
    background: var(--bg-color);
}

.theme-option.active {
    background: var(--primary-color);
}

.theme-option.active span:last-child {
    color: white;
}

.theme-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.theme-option.active .theme-preview {
    border-color: white;
}

.theme-option span:last-child {
    font-size: 11px;
    color: var(--text-primary);
    text-align: center;
}

.layout-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.layout-option:hover {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.layout-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.layout-option.active span {
    color: white;
}

.layout-preview {
    width: 48px;
    height: 36px;
    background: var(--bg-color);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.layout-option.active .layout-preview {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.layout-sidebar {
    width: 10px;
    height: 100%;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar {
    background: rgba(255,255,255,0.5);
}

.layout-sidebar-top {
    width: 100%;
    height: 8px;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar-top {
    background: rgba(255,255,255,0.5);
}

.layout-sidebar-right {
    width: 10px;
    height: 100%;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar-right {
    background: rgba(255,255,255,0.5);
}

.layout-sidebar-compact {
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar-compact {
    background: rgba(255,255,255,0.5);
}

.layout-sidebar-wide {
    width: 14px;
    height: 100%;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar-wide {
    background: rgba(255,255,255,0.5);
}

.layout-sidebar-left-small {
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.layout-option.active .layout-sidebar-left-small {
    background: rgba(255,255,255,0.5);
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-main-wide {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-header {
    height: 6px;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.layout-option.active .layout-header {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.2);
}

.layout-header-compact {
    height: 4px;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.layout-option.active .layout-header-compact {
    background: rgba(255,255,255,0.3);
}

.layout-header-left {
    height: 8px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
}

.layout-option.active .layout-header-left {
    background: rgba(255,255,255,0.5);
}

.layout-body {
    flex: 1;
    display: flex;
}

.layout-content {
    flex: 1;
    background: white;
}

.layout-option.active .layout-content {
    background: rgba(255,255,255,0.4);
}

.layout-content-wide {
    flex: 1;
    background: white;
}

.layout-option.active .layout-content-wide {
    background: rgba(255,255,255,0.4);
}

.layout-tabs {
    height: 6px;
    background: #e2e8f0;
    display: flex;
    gap: 2px;
    padding: 1px;
}

.layout-option.active .layout-tabs {
    background: rgba(255,255,255,0.3);
}

.layout-boxed-preview {
    background: #e2e8f0 !important;
    padding: 4px;
}

.layout-option.active .layout-boxed-preview {
    background: rgba(255,255,255,0.2) !important;
}

.layout-boxed-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 2px;
    overflow: hidden;
}

.layout-option.active .layout-boxed-wrapper {
    background: rgba(255,255,255,0.3);
}

.layout-header-left-preview {
    flex-direction: column !important;
}

.layout-option span {
    font-size: 10px;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-color);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 10000;
}

.user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    grid-template-columns: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-color);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.content-wrapper {
    flex: 1;
    padding: 0;
    background: var(--bg-color, #f5f7fa);
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.content-wrapper.has-iframe {
    padding: 0;
    margin: 0;
}

.content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: var(--card-bg);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);

    background: rgba(30, 136, 229, 0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-gradient);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stat-icon svg {
    width: 34px;
    height: 34px;
    color: #fff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-icon.blue {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    box-shadow: 
        0 4px 8px rgba(30, 136, 229, 0.2),
        0 8px 20px rgba(30, 136, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-icon.green {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    box-shadow: 
        0 4px 8px rgba(67, 160, 71, 0.2),
        0 8px 20px rgba(67, 160, 71, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #ffb74d 0%, #fb8c00 100%);
    box-shadow: 
        0 4px 8px rgba(251, 140, 0, 0.2),
        0 8px 20px rgba(251, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
    box-shadow: 
        0 4px 8px rgba(142, 36, 170, 0.2),
        0 8px 20px rgba(142, 36, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.stat-change svg {
    width: 14px;
    height: 14px;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.dashboard-content {
    padding: 20px;
    background: var(--bg-color, #f5f7fa);
    min-height: 100%;
    box-sizing: border-box;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

.card:hover {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-6px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-more {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.card-more:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.card-more svg {
    width: 18px;
    height: 18px;
}

.card-body {
    padding: 20px 24px;
}

.chart-card {
    grid-column: span 2;
}

.chart-tabs {
    display: flex;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.chart-tab {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.chart-tab:hover {
    color: var(--text-primary);
}

.chart-tab.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.chart-container {
    height: 280px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.todo-list {
    list-style: none;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.todo-priority.high {
    background: var(--danger-color);
}

.todo-priority.medium {
    background: var(--warning-color);
}

.todo-priority.low {
    background: var(--success-color);
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-text {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.todo-action {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.todo-action:hover {
    background: var(--success-color);
    color: #fff;
}

.todo-action svg {
    width: 16px;
    height: 16px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c0c4cc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid #b0b4b8;
    border-right: 1px solid #c8ccd0;
    background: #f0f2f5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    color: var(--text-primary);
    border-bottom: 1px solid #d8dce0;
    border-right: 1px solid #d8dce0;
    background: #fff;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f5f7fa;
}

.order-id {
    font-weight: 500;
    color: var(--primary-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(67, 160, 71, 0.1);
    color: var(--success-color);
}

.status-badge.warning {
    background: rgba(251, 140, 0, 0.1);
    color: var(--warning-color);
}

.status-badge.danger {
    background: rgba(229, 57, 53, 0.1);
    color: var(--danger-color);
}

.status-badge.info {
    background: rgba(0, 172, 193, 0.1);
    color: var(--info-color);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    transition: all var(--transition-fast);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.quick-icon.blue {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.quick-icon.green {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.quick-icon.orange {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
}

.quick-icon.purple {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.quick-icon.teal {
    background: linear-gradient(135deg, #00acc1, #00838f);
}

.quick-icon.red {
    background: linear-gradient(135deg, #e53935, #c62828);
}

.quick-action-btn span {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.announcement-list {
    list-style: none;
}

.announcement-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.announcement-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.announcement-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.main-footer {
    padding: 16px 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left span {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-right a:hover {
    color: var(--primary-color);
}

.notification-panel {
    position: fixed;
    top: var(--header-height);
    right: -400px;
    width: 360px;
    height: calc(100vh - var(--header-height));
    background: var(--card-bg);
    box-shadow: var(--shadow-xl);
    z-index: 90;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.notification-panel.show {
    right: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mark-all-read {
    font-size: 12px;
    color: var(--primary-color);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-color);
}

.notification-item.unread {
    background: rgba(30, 136, 229, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.notification-icon.blue {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.notification-icon.green {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.notification-icon.orange {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
}

.notification-icon.purple {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.notification-content p {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.card {
    animation: fadeInUp 0.5s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.4s; }

.sidebar-nav-item {
    animation: slideInLeft 0.3s ease forwards;
}

.sidebar-nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar-nav-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar-nav-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar-nav-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar-nav-item:nth-child(6) { animation-delay: 0.35s; }
.sidebar-nav-item:nth-child(7) { animation-delay: 0.4s; }
.sidebar-nav-item:nth-child(8) { animation-delay: 0.45s; }

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-card {
        grid-column: span 2;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-center {
        display: none;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        grid-column: span 1;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1400px) {
    .login-container {
        max-width: 1050px;
    }
    
    .login-left {
        flex: 0 0 55%;
    }
    
    .login-right {
        flex: 0 0 45%;
    }
}

@media (max-width: 1200px) {
    .login-container {
        max-width: 950px;
    }
    
    .login-left {
        flex: 0 0 50%;
        padding: 20px;
    }
    
    .login-right {
        flex: 0 0 50%;
    }
    
    .tech-svg {
        max-width: 480px;
        max-height: 320px;
    }
}

@media (max-width: 992px) {
    .login-page {
        padding: 16px;
    }
    
    .login-container {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .login-left {
        flex: 0 0 45%;
    }
    
    .login-right {
        flex: 0 0 55%;
    }
    
    .tech-svg {
        max-width: 400px;
        max-height: 280px;
    }
    
    .slide-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 16px;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .login-container.layout-center {
        max-width: 100%;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 30px 24px;
    }
    
    .login-form-container {
        max-width: 100%;
        padding-top: 10px;
    }
    
    .login-header {
        margin-bottom: 24px;
    }
    
    .login-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }
    
    .login-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .input-wrapper input {
        height: 44px;
        font-size: 14px;
    }
    
    .captcha-image {
        width: 110px;
        height: 44px;
    }
    
    .form-options {
        margin-bottom: 18px;
    }
    
    .login-btn {
        height: 46px;
        font-size: 15px;
    }
    
    .login-footer-links {
        margin-top: 18px;
        padding-top: 14px;
    }
    
    .layout-switcher {
        padding-top: 18px;
    }
    
    .login-copyright {
        margin-top: 24px;
        padding: 16px 0;
    }
    
    .theme-switcher {
        top: 12px;
        right: 16px;
    }
    
    .theme-btn {
        width: 22px;
        height: 22px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .user-name-small {
        display: none;
    }
    
    .main-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 12px;
    }
    
    .login-right {
        padding: 20px 16px;
    }
    
    .login-header h2 {
        font-size: 18px;
    }
    
    .login-header p {
        font-size: 12px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .captcha-wrapper {
        flex-direction: column;
    }
    
    .captcha-image {
        width: 100%;
        height: 44px;
    }
    
    .layout-switcher {
        flex-direction: column;
        gap: 8px;
    }
    
    .login-copyright {
        margin-top: 20px;
        padding: 14px 0;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}

.grid-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

/* ============================================================================
 * 八、数据表格工具栏 - 搜索/操作按钮/下拉菜单
 * ============================================================================ */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    position: relative;
    z-index: 200;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.toolbar-btn:hover {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toolbar-btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}
.toolbar-btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
}
.toolbar-btn-danger {
    background: var(--danger-color);
    color: #ffffff;
}
.toolbar-btn-danger:hover {
    background: #c62828;
    color: #ffffff;
}
.toolbar-btn-success {
    background: var(--success-color);
    color: #ffffff;
}
.toolbar-btn-success:hover {
    background: #2e7d32;
    color: #ffffff;
}
.toolbar-btn-warning {
    background: var(--warning-color);
    color: #ffffff;
}
.toolbar-btn-warning:hover {
    background: #ef6c00;
    color: #ffffff;
}
.toolbar-btn-info {
    background: var(--info-color);
    color: #ffffff;
}
.toolbar-btn-info:hover {
    background: #00838f;
    color: #ffffff;
}
.toolbar-btn-secondary {
    background: var(--secondary-color);
    color: #ffffff;
}
.toolbar-btn-secondary:hover {
    background: #546e7a;
    color: #ffffff;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

/* ============================================================================
 * 九、数据表格 - 表头/数据行/排序/列拖拽/列宽调整/分页/状态标签
 * ============================================================================ */
.data-grid {
width: 100%;
min-width: max-content;
border-collapse: collapse;
border-spacing: 0;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 4px;
overflow: hidden;
}

.data-grid th {
padding: 4px 4px;
background: #f0f2f5;
border-bottom: 1px solid #d9d9d9;
border-right: 1px solid #e6e6e6;
text-align: center;
font-size: 13px;
font-weight: 600;
color: #333333;
position: relative;
user-select: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.data-grid th:last-child {
border-right: none;
}

.data-grid th .th-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
cursor: pointer;
}

.data-grid th .th-content span:first-child {
flex: 1;
}

.data-grid th.grid-col-sortable .th-content {
cursor: pointer;
}

.data-grid th.grid-col-sortable:hover {
background: #e9ecef;
}

.sort-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.sort-icon i {
    font-size: 12px;
}

.data-grid th:hover .sort-icon,
.data-grid th.sort-asc .sort-icon,
.data-grid th.sort-desc .sort-icon {
    opacity: 1;
}

.data-grid th.sort-asc .sort-icon,
.data-grid th.sort-desc .sort-icon {
    color: var(--primary-color);
}

.col-resize {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    cursor: col-resize;
    background: transparent;
    transition: background var(--transition-fast);
}

.col-resize:hover,
.col-resize.resizing {
    background: var(--primary-color);
}

.data-grid th.grid-col-checkbox {
    width: 50px;
    text-align: center;
}

.data-grid th.grid-col-checkbox .th-content {
    justify-content: center;
    padding: 8px;
}

.data-grid td {
padding: 8px 12px;
border-bottom: 1px solid #e6e6e6;
border-right: 1px solid #f0f0f0;
font-size: 13px;
color: #333333;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 300px;
background: #fff;
cursor: text;
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
position: relative;
}

.data-grid td:hover {
background: #f5f7fa;
}

.data-grid td::selection,
.data-grid td *::selection {
background: #1e88e5;
color: #ffffff;
}

.data-grid td:last-child {
border-right: none;
}

.data-grid tbody tr:last-child td {
border-bottom: none;
}

.data-grid th,
.data-grid td {
position: relative;
}

.data-grid tbody tr {
transition: all 0.2s ease;
}

.data-grid tbody tr:hover {
background: #f8f9fa;
}

.data-grid tbody tr:hover td {
background: #f8f9fa;
}

.data-grid tbody tr:hover td.grid-col-checkbox,
.data-grid tbody tr:hover td.grid-col-action {
background: #f8f9fa;
}

.data-grid tbody tr.selected {
    background: #e6f2ff;
}

.data-grid tbody tr.selected td {
    background: #e6f2ff;
}

.data-grid tbody tr.selected td.grid-col-checkbox,
.data-grid tbody tr.selected td.grid-col-action {
    background: #e6f2ff;
}

.data-grid tbody tr.highlight-row {
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 50%, #fde047 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.3);
}

.data-grid tbody tr.highlight-row td {
    border-color: rgba(234, 179, 8, 0.2);
}

.data-grid tbody tr.highlight-row td.grid-col-checkbox,
.data-grid tbody tr.highlight-row td.grid-col-action {
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 50%, #fde047 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.3);
}

.data-grid td.highlight-col {
background: rgba(0, 0, 0, 0.04) !important;
border-color: rgba(0, 0, 0, 0.08) !important;
}

.data-grid th.highlight-col {
background: rgba(0, 0, 0, 0.04) !important;
}

.data-grid tbody tr.dragging {
    opacity: 0.5;
    background: #e3f2fd;
}

.data-grid tbody tr.drag-over {
    border-top: 3px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

.data-grid th.dragging-col {
    opacity: 0.6;
    background: #e3f2fd !important;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3) !important;
    transform: scale(1.02);
    z-index: 100;
}

.data-grid th.drag-over-col {
    border-left: 3px solid #1e88e5 !important;
    background: #e8f5e9 !important;
}

.data-grid td.drag-over-col {
    border-left: 3px solid #1e88e5 !important;
    background: rgba(232, 245, 233, 0.5) !important;
}

/* 可拖拽列的样式 */
.data-grid th.draggable-column .th-content {
    cursor: grab;
    position: relative;
}

.data-grid th.draggable-column .th-content:hover::before {
    content: '⋮⋮';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    letter-spacing: -2px;
}

.data-grid th.draggable-column .th-content:active {
    cursor: grabbing;
}

.data-grid td.grid-col-checkbox {
    text-align: center;
    padding: 12px;
    position: sticky;
    left: 0;
    z-index: 70;
    background: var(--card-bg, #ffffff);
}

.data-grid td.grid-col-action {
text-align: center;
position: sticky;
left: 50px;
z-index: 60;
background: #ffffff;
padding: 8px 10px;
white-space: nowrap;
}

.grid-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 3px;
    background: #dcdcdc;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.grid-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grid-action-btn:hover::before {
    opacity: 1;
}

.grid-action-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.grid-action-btn:hover {
    transform: translateY(-2px);
    background: #d0d0d0;
}

.grid-action-btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.grid-action-btn.edit {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.edit:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.edit:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.copy {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.copy:hover {
    background: #529b2e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.copy:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
}

.grid-action-btn.detail {
    background: var(--warning-color, #e6a23c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.detail:hover {
    background: #cf9236;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.detail:active {
    box-shadow: 0 2px 4px rgba(230, 162, 60, 0.4);
}

.grid-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.grid-status.active {
    background: rgba(67, 160, 71, 0.1);
    color: var(--success-color);
}

.grid-status.inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.grid-status.pending {
    background: rgba(251, 140, 0, 0.1);
    color: var(--warning-color);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f0f0f0;
    border: none;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 12px;
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-btn:hover:not(:disabled) {
    background: #e4e4e4;
    color: var(--primary-color);
}

.pagination-btn:active:not(:disabled) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    box-shadow: none;
}

.pagination-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}

.pagination-item label {
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
}

.pagination-input {
    width: 48px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #c5cad3;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.pagination-info {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}

.pagination-info strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    border-radius: 4px;
    margin: 0 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .grid-toolbar {
        padding: 10px 12px;
    }
    
    .toolbar-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .toolbar-btn span {
        display: none;
    }
    
    .toolbar-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .grid-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-left,
    .pagination-center,
    .pagination-right {
        justify-content: center;
    }
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-search {
    display: flex;
    align-items: center;
    background:#F8F8F8;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.toolbar-search:focus-within {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.search-input {
    width: 180px;
    height: 32px;
    padding: 0 12px;
    border: none;
    font-size: 13px;
    color: var(--text-primary);
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background:#ECECEC;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    box-shadow: none;
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

.search-btn:hover {
    background: #d8d8d8;
    color: var(--primary-color);
}

.search-btn:active {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toolbar-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.toolbar-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.toolbar-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    margin-top: 4px;
    padding: 8px;
    display: none;
}

.toolbar-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.toolbar-dropdown .dropdown-menu .dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.toolbar-right .toolbar-dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.dropdown-item:hover svg {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

@media (max-width: 768px) {
    .toolbar-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .search-input {
        width: 140px;
    }
}

.grid-page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--card-bg, #ffffff);
    overflow: visible;
    position: relative;
}

.grid-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 200;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1a1a2e);
    background: #dcdcdc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.toolbar-btn:hover {
    color: var(--primary-color);
    background: #d0d0d0;
}

.toolbar-btn:active {
    background: #c4c4c4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toolbar-btn svg {
    width: 18px;
    height: 18px;
}

.toolbar-btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.5);
}
.toolbar-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
.toolbar-btn-primary:active {
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.4);
}
.toolbar-btn-danger {
    background: var(--danger-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.5);
}
.toolbar-btn-danger:hover {
    background: #c62828;
    color: #fff;
}
.toolbar-btn-danger:active {
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.4);
}
.toolbar-btn-success {
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.5);
}
.toolbar-btn-success:hover {
    background: #2e7d32;
    color: #fff;
}
.toolbar-btn-success:active {
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.4);
}
.toolbar-btn-info {
    background: var(--info-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}
.toolbar-btn-info:hover {
    background: #00838f;
    color: #fff;
}
.toolbar-btn-info:active {
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.4);
}
.toolbar-btn-secondary {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(120, 144, 156, 0.5);
}
.toolbar-btn-secondary:hover {
    background: #546e7a;
    color: #fff;
}
.toolbar-btn-secondary:active {
    box-shadow: 0 2px 4px rgba(120, 144, 156, 0.4);
}

.grid-wrapper {
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: var(--card-bg, #ffffff);
    position: relative;
    border-radius: 12px;
}

.grid-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.grid-wrapper::-webkit-scrollbar-track {
    background: var(--bg-color, #f5f7fa);
    border-radius: 5px;
}

.grid-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c0c8d0 0%, #a8b0b8 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-color, #f5f7fa);
}

.grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a8b0b8 0%, #909aa4 100%);
}

.grid-wrapper::-webkit-scrollbar-corner {
    background: var(--bg-color, #f5f7fa);
}

.grid-scroll-container {
    min-width: max-content;
}

.data-grid thead {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f0f2f5;
}

.data-grid thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

.data-grid thead th:first-child {
    border-top-left-radius: 12px;
}

.data-grid thead th:last-child {
    border-top-right-radius: 12px;
}

.data-grid tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.data-grid tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.data-grid th {
    background: linear-gradient(180deg, #f8f9fb 0%, #eef0f4 100%);
    border-bottom: 2px solid #d0d5dd;
    border-right: 1px solid #e6e6e6;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.data-grid th.grid-col-action {
    width: 900px;
    min-width: 900px;
    position: sticky;
    left: 50px;
    top: 0;
    z-index: 120;
    background: #f0f2f5;
}

.grid-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.data-grid th.grid-col-checkbox {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 130;
    background: #f0f2f5;
}

.grid-pagination {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(30, 136, 229, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pagination-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: transparent;
    pointer-events: none;
    border-radius: 6px 6px 0 0;
}

.pagination-btn:hover:not(:disabled) {
    background: #e4e4e4;
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pagination-btn:active:not(:disabled) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.pagination-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-item label {
    font-size: 12px;
    color: var(--text-primary, #1a1a2e);
    font-weight: 500;
    white-space: nowrap;
}

.pagination-input {
    width: 55px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary, #1a1a2e);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.pagination-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.pagination-info {
    font-size: 12px;
    color: var(--text-primary, #1a1a2e);
    font-weight: 500;
}

.pagination-info strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    border-radius: 4px;
    margin: 0 2px;
    box-shadow: 0 2px 5px rgba(30, 136, 229, 0.3);
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-secondary, #4a5568);
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: var(--primary-color, #667eea);
    color: #fff;
    border-color: var(--primary-color, #667eea);
}

.page-size-select {
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 4px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%234a5568'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.page-info {
    font-size: 13px;
    color: var(--text-secondary, #5a6a7e);
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary, #5a6a7e);
}

.page-jump input {
    width: 50px;
    padding: 4px 8px;
    font-size: 13px;
    text-align: center;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 4px;
}

.grid-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    border: 1px solid #d0d5dd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.grid-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grid-action-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.grid-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.grid-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.grid-action-btn.edit {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.edit:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.edit:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.copy {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.copy:hover {
    background: #529b2e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.copy:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
}

.grid-action-btn.detail {
    background: var(--warning-color, #e6a23c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.detail:hover {
    background: #cf9236;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.detail:active {
    box-shadow: 0 2px 4px rgba(230, 162, 60, 0.4);
}

.grid-action-btn.form {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.form:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.form:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.draft {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.draft:hover {
    background: #7b1fa2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.draft:active {
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.4);
}

.grid-action-btn.flow {
    background: #00acc1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.flow:hover {
    background: #00838f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.flow:active {
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.4);
}

.grid-action-btn.handle {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.handle:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.handle:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.delegate {
    background: var(--danger-color, #f56c6c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.delegate:hover {
    background: #c45656;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.delegate:active {
    box-shadow: 0 2px 4px rgba(245, 108, 108, 0.4);
}

.grid-action-btn.flowinfo {
    background: #00acc1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.flowinfo:hover {
    background: #00838f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.flowinfo:active {
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.4);
}

.grid-action-btn.callback {
    background: var(--warning-color, #e6a23c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.callback:hover {
    background: #cf9236;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.callback:active {
    box-shadow: 0 2px 4px rgba(230, 162, 60, 0.4);
}

.grid-action-btn.urge {
    background: var(--danger-color, #f56c6c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.urge:hover {
    background: #c45656;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.urge:active {
    box-shadow: 0 2px 4px rgba(245, 108, 108, 0.4);
}

.grid-action-btn.assist {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.assist:hover {
    background: #529b2e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.assist:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
}

.grid-action-btn.supervise {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.supervise:hover {
    background: #7b1fa2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.supervise:active {
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.4);
}

.grid-action-btn.read {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.read:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.read:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.todo {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.todo:hover {
    background: #529b2e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.todo:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
}

.grid-action-btn.dispatch {
    background: #00acc1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.dispatch:hover {
    background: #00838f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.5);
}

.grid-action-btn.dispatch:active {
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.4);
}

.grid-action-btn.lock {
    background: #78909c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(120, 144, 156, 0.5);
}

.grid-action-btn.lock:hover {
    background: #546e7a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(120, 144, 156, 0.5);
}

.grid-action-btn.lock:active {
    box-shadow: 0 2px 4px rgba(120, 144, 156, 0.4);
}

.grid-action-btn.delete {
    background: var(--danger-color, #f56c6c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.delete:hover {
    background: #c45656;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.5);
}

.grid-action-btn.delete:active {
    box-shadow: 0 2px 4px rgba(245, 108, 108, 0.4);
}

.grid-action-btn.mobile {
    background: var(--info-color, #909399);
    color: #fff;
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.5);
}

.grid-action-btn.mobile:hover {
    background: #73767a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.5);
}

.grid-action-btn.mobile:active {
    box-shadow: 0 2px 4px rgba(144, 147, 153, 0.4);
}

.grid-action-btn.preview {
    background: var(--warning-color, #e6a23c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.preview:hover {
    background: #cf9236;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.5);
}

.grid-action-btn.preview:active {
    box-shadow: 0 2px 4px rgba(230, 162, 60, 0.4);
}

.grid-action-btn.print {
    background: var(--primary-color, #409eff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.print:hover {
    background: var(--primary-dark, #337ecc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.5);
}

.grid-action-btn.print:active {
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.4);
}

.grid-action-btn.database {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.database:hover {
    background: #7b1fa2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5);
}

.grid-action-btn.database:active {
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.4);
}

.grid-action-btn.report {
    background: var(--success-color, #67c23a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.report:hover {
    background: #529b2e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.5);
}

.grid-action-btn.report:active {
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.4);
}

.advanced-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.advanced-search-overlay.show {
    opacity: 1;
    visibility: visible;
}

.advanced-search-modal {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.advanced-search-overlay.show .advanced-search-modal {
    transform: scale(1) translateY(0);
}

.advanced-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--primary-gradient);
    border-bottom: none;
}

.advanced-search-header h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.advanced-search-close {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advanced-search-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.advanced-search-close svg {
    width: 14px;
    height: 14px;
}

.advanced-search-body {
    padding: 24px;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

.search-form-grid {
    display: block;
}

.search-form-grid .form-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c0c4cc;
    background: var(--card-bg, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form-grid .form-table tr {
    transition: all 0.2s ease;
}

.search-form-grid .form-table tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

.search-form-grid .form-table td {
    padding: 0;
    border: 1px solid #d8dce0;
    vertical-align: middle;
    height: 40px;
}

.search-form-grid .form-table .label-cell {
    background: #f0f2f5;
    color: var(--text-primary, #1a1a2e);
    font-weight: 600;
    font-size: 13px;
    padding: 0 14px;
    text-align: right;
    width: 80px;
    min-width: 80px;
    white-space: nowrap;
    border-right: 2px solid #b0b4b8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.search-form-grid .form-table .label-cell .required {
    color: var(--danger-color, #e53935);
    margin-left: 2px;
}

.search-form-grid .form-table .value-cell {
    padding: 6px 10px;
    background: var(--card-bg, #ffffff);
    min-width: 150px;
}

.search-form-grid .form-table .form-control {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary, #1a1a2e);
    background: var(--card-bg, #ffffff);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-form-grid .form-table .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-form-grid .form-table .form-control:read-only {
    background: #f5f7fa;
    color: var(--text-muted, #94a3b8);
}

.search-form-grid .form-table .form-control::placeholder {
    color: var(--text-muted, #94a3b8);
}

.search-form-grid .form-table select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%234a5568'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.search-form-grid .form-table .input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form-grid .form-table .input-group input {
    flex: 1;
}

.advanced-search-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-color, #f5f7fa);
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.search-btn-reset,
.search-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.search-btn-reset {
    background: #dcdcdc;
    color: #606266;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.search-btn-reset:hover {
    background: #d0d0d0;
}

.search-btn-reset:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.search-btn-submit {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.5);
}
.search-btn-submit:hover {
    background: var(--primary-dark);
}
.search-btn-submit:active {
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.4);
}

.search-btn-reset svg,
.search-btn-submit svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 992px) {
    .search-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .search-form-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-search-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .advanced-search-body {
        padding: 16px;
    }
    
    .advanced-search-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .search-btn-reset,
    .search-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Help Modal Styles */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.help-modal-overlay.show {
    display: flex;
}

.help-modal {
    width: 900px;
    max-width: 95vw;
    height: 600px;
    max-height: 85vh;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease;
}

.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: #fff;
}

.help-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.help-modal-title i {
    font-size: 20px;
}

.help-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.help-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.help-sidebar {
    width: 200px;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 16px 0;
    flex-shrink: 0;
}

.help-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.help-nav-item:hover {
    background: rgba(30, 136, 229, 0.08);
    color: var(--primary-color);
}

.help-nav-item.active {
    background: rgba(30, 136, 229, 0.12);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.help-nav-item i {
    width: 20px;
    text-align: center;
}

.help-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.help-panel {
    display: none;
}

.help-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.help-panel h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.help-section {
    margin-bottom: 24px;
}

.help-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.help-section h4 i {
    color: var(--primary-color);
}

.help-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.help-section ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.help-section ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-color);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(30, 136, 229, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 16px;
    max-height: 200px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Shortcut Styles */
.shortcut-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.shortcut-key {
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
    min-width: 80px;
    text-align: center;
}

.shortcut-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.contact-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.contact-item > i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Update Log Styles */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-item {
    padding: 18px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.update-version {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 12px;

    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.update-content {
    padding-left: 18px;
    color: var(--text-secondary);
}

.update-content li {
    margin-bottom: 4px;
    line-height: 1.6;
}

/* Copyright Modal Styles */
.copyright-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.copyright-modal-overlay.show {
    display: flex;
}

.copyright-modal {
    width: 480px;
    max-width: 95vw;
    max-height: 85vh;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.copyright-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: #fff;
}

.copyright-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.copyright-modal-title i {
    font-size: 20px;
}

.copyright-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copyright-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.copyright-modal-body {
    padding: 24px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
}

.copyright-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.copyright-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.copyright-version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.copyright-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.copyright-info {
    text-align: left;
    margin-bottom: 20px;
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.copyright-row:last-child {
    border-bottom: none;
}

.copyright-label {
    color: var(--text-muted);
    font-size: 13px;
}

.copyright-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.copyright-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright-value a:hover {
    text-decoration: underline;
}

.copyright-licenses {
    text-align: left;
    margin-bottom: 20px;
}

.copyright-licenses h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.copyright-licenses p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.copyright-licenses ul {
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-secondary);
}

.copyright-licenses ul li {
    margin-bottom: 4px;
}

.copyright-notice {
    padding: 14px;
    background: var(--bg-color);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .help-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .help-modal-body {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .help-nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
    }
    
    .help-nav-item.active {
        border-bottom: 3px solid var(--primary-color);
    }
    
    .shortcut-list,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .copyright-modal {
        width: 100%;
        max-width: none;
        border-radius: 0;
        height: 100%;
    }
}

/* ============================================================================
 * 十三、增强视觉效果 - 全局动画/毛玻璃/卡片悬浮/液波动画
 * 最后更新：2026-05-06
 * ============================================================================ */

/* --- 页面加载动画：淡入+上滑 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* --- 按钮涟漪点击效果 --- */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- 卡片增强悬浮效果 --- */
.card,
.style-section,
.dashboard-tabs {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover,
.style-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- 毛玻璃背景效果工具类 --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* --- 表格行增强悬浮效果 --- */
.grid-table tbody tr {
    transition: all var(--transition-fast);
}

.grid-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.04) 0%, rgba(30, 136, 229, 0.02) 100%) !important;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.grid-table tbody tr.selected {
    background: rgba(30, 136, 229, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

/* --- 工具栏按钮增强 --- */
.toolbar-btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.toolbar-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.toolbar-btn:active::after {
    width: 200px;
    height: 200px;
}

.toolbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.toolbar-btn:active {
    transform: translateY(0) scale(0.97);
}

/* --- 模态框增强动画 --- */
.modal-overlay {
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    animation: fadeIn 0.2s ease;
}

.modal-container {
    animation: fadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 侧边栏菜单项增强效果 --- */
.nav-link {
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: #fff;
    border-radius: 0 3px 3px 0;
    transition: transform var(--transition-normal);
}

.nav-item.active > .nav-link::before,
.nav-link:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* --- 分页控件增强 --- */
.pagination-btn {
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.95);
}

/* --- 输入框增强聚焦效果 --- */
.grid-search-input:focus,
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12), var(--shadow-sm);
    border-color: var(--primary-color);
}

/* --- 标签页切换增强 --- */
.dynamic-tab {
    transition: all var(--transition-fast);
}

.dynamic-tab:hover {
    background:#ffffff;
}

.dynamic-tab.active {
    position: relative;
}

.dynamic-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px 2px 0 0;
}

/* --- 通知徽章动画 --- */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.notification-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* --- 加载骨架屏效果 --- */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* --- 滚动条美化 --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* --- 选中文本样式 --- */
::selection {
    background: rgba(30, 136, 229, 0.2);
    color: var(--text-primary);
}

/* --- 聚焦可见性指示器（无障碍访问） --- */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* --- 表单卡片微动画 --- */
.form-card,
.form-section-card {
    animation: fadeInUp 0.4s ease both;
}

.form-card:nth-child(1) { animation-delay: 0.05s; }
.form-card:nth-child(2) { animation-delay: 0.1s; }
.form-card:nth-child(3) { animation-delay: 0.15s; }
.form-card:nth-child(4) { animation-delay: 0.2s; }
.form-card:nth-child(5) { animation-delay: 0.25s; }
.form-card:nth-child(6) { animation-delay: 0.3s; }
