/* ========================================
   蓝色科技风格UI设计规范 - 完整版
   核心风格：蓝色科技风，克制、现代、专业
   视觉基调：浅白基底 + 渐变蓝科技边框 + 深灰侧边栏
   ======================================== */

:root {
    /* ========================================
       一、色彩体系规范
       ======================================== */
    
    /* 科技蓝主色系 */
    --tech-primary: #1677FF;           /* 科技蓝主色 - 顶部栏、按钮、选中态、图表主色 */
    --tech-primary-light: #E6F2FF;     /* 科技蓝浅阶 - 按钮 hover、卡片 hover、标签背景 */
    --tech-primary-dark: #0E58C2;      /* 科技蓝深阶 - 按钮点击态、标题强调 */
    --tech-primary-hover: #2563EB;     /* 科技蓝 hover 态 */
    
    /* 侧边栏色彩 */
    --sidebar-bg: #1F2937;             /* 侧边栏深灰背景 */
    --sidebar-active: #2563EB;         /* 侧边栏选中蓝 */
    --sidebar-hover: #374151;          /* 侧边栏 hover 背景 */
    --sidebar-text: #9CA3AF;           /* 侧边栏未选中文字 */
    --sidebar-text-active: #FFFFFF;    /* 侧边栏选中文字 */
    
    /* 全局背景色 */
    --bg-global: #F8FAFC;              /* 页面整体背景 */
    --bg-card: #FFFFFF;                /* 所有卡片、面板容器 */
    
    /* 文字色彩 */
    --text-primary: #1F2937;           /* 正文、标题 */
    --text-secondary: #6B7280;         /* 辅助说明、统计标签 */
    
    /* 分割线/边框 */
    --border-color: #E5E7EB;           /* 模块分隔、输入框边框 */
    
    /* 状态色 */
    --status-success: #10B981;         /* 成功率、接通率等正向指标 */
    --status-warning: #F59E0B;         /* 待处理、预警提示 */
    --status-danger: #EF4444;          /* 失败、异常提示 */
    
    /* 状态色背景 */
    --status-success-bg: #D1FAE5;
    --status-warning-bg: #FEF3C7;
    --status-danger-bg: #FEE2E2;
    --status-info-bg: #E6F2FF;
    
    /* ========================================
       二、布局规范
       ======================================== */
    
    /* 左侧导航栏 */
    --sidebar-width: 250px;
    --sidebar-logo-height: 64px;
    --sidebar-indicator-width: 4px;
    
    /* 顶部栏 */
    --header-height: 64px;
    
    /* 内容区 */
    --content-padding: 24px;
    --module-gap: 24px;
    
    /* ========================================
       三、圆角规范
       ======================================== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* ========================================
       四、阴影规范
       ======================================== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 14px rgba(22, 119, 255, 0.25);
    
    /* ========================================
       五、动效规范
       ======================================== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ========================================
       六、字体规范
       ======================================== */
    --font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', Monaco, monospace;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    
    /* ========================================
       七、间距规范（8px网格系统）
       ======================================== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* ========================================
   全局基础样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-global);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   SVG 全局渲染一致性修复
   解决核显/独显 Chrome 硬件加速渲染差异
   ======================================== */

svg {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    paint-order: stroke fill markers;
    color-interpolation: sRGB;
    stroke-linejoin: round;
    stroke-linecap: round;
}

svg path,
svg circle,
svg rect,
svg line,
svg polyline,
svg polygon,
svg ellipse,
svg g {
    shape-rendering: inherit;
}

svg text {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
}

select,
.form-select {
    image-rendering: auto;
}

/* ========================================
   布局容器
   ======================================== */

.tech-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-global);
}

/* ========================================
   左侧导航栏
   ======================================== */

.tech-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* Logo区域 */
.tech-sidebar-logo {
    height: var(--sidebar-logo-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-sidebar-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.tech-sidebar-logo-text{
    flex: 1;
    overflow: hidden;
}

.tech-sidebar-logo-text h1 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sidebar-text-active);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-sidebar-logo-text p {
    font-size: var(--font-size-xs);
    color: var(--sidebar-text);
    margin-top: 2px;
}

/* 导航菜单 */
.tech-sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.tech-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.tech-nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.tech-nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.tech-nav-item.active::before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--sidebar-indicator-width);
    height: 20px;
    background: var(--tech-primary);
    border-radius: 0 2px 2px 0;
}

.tech-nav-item i,
.tech-nav-item .icon{
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* 菜单分组 */
.tech-nav-group {
    margin-bottom: 8px;
}

.tech-nav-group-title{
    padding: 12px 16px 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-nav-group-title:hover{
    color: rgba(255, 255, 255, 0.6);
}

.tech-nav-group-title .arrow{
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.tech-nav-group.expanded .tech-nav-group-title .arrow{
    transform: rotate(180deg);
}

.tech-nav-group-items{
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.tech-nav-group.expanded .tech-nav-group-items{
    max-height: 500px;
}

.tech-nav-item.sub{
    padding-left: 36px;
    font-size: var(--font-size-xs);
}

/* 侧边栏底部 */
.tech-sidebar-footer{
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-logout-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.tech-logout-btn:hover{
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

/* ========================================
   顶部栏
   ======================================== */

.tech-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--content-padding);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tech-header-left{
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-header-title{
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-header-right{
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-notification{
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tech-notification:hover{
    background: var(--tech-primary-light);
}

.tech-notification .badge{
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: var(--status-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.tech-user-info{
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-user-name{
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.tech-logout-header{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--status-danger-bg), #FECACA);
    color: #991B1B;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tech-logout-header:hover{
    background: linear-gradient(135deg, var(--status-danger), #DC2626);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ========================================
   主内容区
   ======================================== */

.tech-main{
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tech-content{
    padding: var(--content-padding);
    flex: 1;
}

/* ========================================
   卡片组件
   ======================================== */

.tech-card{
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--module-gap);
    transition: all var(--transition-fast);
}

.tech-card:hover{
    box-shadow: var(--shadow-card-hover);
}

.tech-card-header{
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-card-title{
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.tech-card-body{
    padding: 20px;
}

.tech-card-footer{
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-global);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ========================================
   数据统计卡片
   ======================================== */

.tech-stats{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--content-padding);
    margin-bottom: var(--module-gap);
}

.tech-stat-card{
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.tech-stat-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tech-primary);
}

.tech-stat-card:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.tech-stat-card.success::before{
    background: var(--status-success);
}

.tech-stat-card.warning::before{
    background: var(--status-warning);
}

.tech-stat-card.danger::before{
    background: var(--status-danger);
}

.tech-stat-icon{
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--tech-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--tech-primary);
    flex-shrink: 0;
}

.tech-stat-card.success .tech-stat-icon{
    background: var(--status-success-bg);
    color: var(--status-success);
}

.tech-stat-card.warning .tech-stat-icon{
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.tech-stat-card.danger .tech-stat-icon{
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.tech-stat-content{
    flex: 1;
    min-width: 0;
}

.tech-stat-value{
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.tech-stat-label{
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   按钮组件
   ======================================== */

.tech-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

/* 主按钮 */
.tech-btn-primary{
    background: var(--tech-primary);
    color: white;
}

.tech-btn-primary:hover{
    background: var(--tech-primary-hover);
}

.tech-btn-primary:active{
    background: var(--tech-primary-dark);
}

/* 次要按钮 */
.tech-btn-secondary{
    background: var(--bg-card);
    color: var(--tech-primary);
    border: 1px solid var(--tech-primary);
}

.tech-btn-secondary:hover{
    background: var(--tech-primary-light);
}

/* 成功按钮 */
.tech-btn-success{
    background: var(--status-success);
    color: white;
}

.tech-btn-success:hover{
    background: #059669;
}

/* 警告按钮 */
.tech-btn-warning{
    background: var(--status-warning);
    color: white;
}

.tech-btn-warning:hover{
    background: #D97706;
}

/* 危险按钮 */
.tech-btn-danger{
    background: var(--status-danger);
    color: white;
}

.tech-btn-danger:hover{
    background: #DC2626;
}

/* 小按钮 */
.tech-btn-sm{
    padding: 6px 12px;
    font-size: var(--font-size-xs);
}

/* 大按钮 */
.tech-btn-lg{
    padding: 12px 24px;
    font-size: var(--font-size-base);
}

/* 禁用状态 */
.tech-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   列表/表格组件
   ======================================== */

.tech-table{
    width: 100%;
    border-collapse: collapse;
}

.tech-table th{
    text-align: left;
    padding: 12px 16px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-global);
    border-bottom: 1px solid var(--border-color);
}

.tech-table td{
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.tech-table tr:hover td{
    background: var(--bg-global);
}

.tech-table tr:last-child td{
    border-bottom: none;
}

/* ========================================
   状态标签
   ======================================== */

.tech-tag{
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.tech-tag-success{
    background: var(--status-success-bg);
    color: var(--status-success);
}

.tech-tag-warning{
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.tech-tag-danger{
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.tech-tag-primary{
    background: var(--tech-primary-light);
    color: var(--tech-primary);
}

.tech-tag-default{
    background: var(--bg-global);
    color: var(--text-secondary);
}

/* ========================================
   表单组件
   ======================================== */

.tech-form-group{
    margin-bottom: 16px;
}

.tech-form-label{
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tech-form-input,
.tech-form-select,
.tech-form-textarea{
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.tech-form-input:focus,
.tech-form-select:focus,
.tech-form-textarea:focus{
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.tech-form-input::placeholder,
.tech-form-textarea::placeholder{
    color: var(--text-secondary);
}

/* ========================================
   分页组件
   ======================================== */

.tech-pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.tech-page-btn{
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tech-page-btn:hover{
    border-color: var(--tech-primary);
    color: var(--tech-primary);
    background: var(--tech-primary-light);
}

.tech-page-btn.active{
    background: var(--tech-primary);
    border-color: var(--tech-primary);
    color: white;
}

/* ========================================
   动画效果
   ======================================== */

/* 页面加载动画 */
@keyframes techFadeIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-animate-in{
    animation: techFadeIn 0.3s ease-out;
}

/* 卡片依次淡入 */
.tech-stats .tech-stat-card:nth-child(1){ animation: techFadeIn 0.3s ease-out 0.05s both; }
.tech-stats .tech-stat-card:nth-child(2){ animation: techFadeIn 0.3s ease-out 0.1s both; }
.tech-stats .tech-stat-card:nth-child(3){ animation: techFadeIn 0.3s ease-out 0.15s both; }
.tech-stats .tech-stat-card:nth-child(4){ animation: techFadeIn 0.3s ease-out 0.2s both; }

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px){
    :root{
        --sidebar-width: 200px;
    }
    
    .tech-stats{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px){
    :root{
        --sidebar-width: 180px;
    }
    
    .tech-sidebar{
        position: fixed;
        left: calc(-1 * var(--sidebar-width));
        z-index: 200;
    }
    
    .tech-sidebar.open{
        left: 0;
    }
    
    .tech-main{
        margin-left: 0;
    }
    
    .tech-mobile-menu-btn{
        display: flex;
    }
}

@media (max-width: 768px){
    :root{
        --content-padding: 16px;
        --module-gap: 16px;
    }
    
    .tech-stats{
        grid-template-columns: 1fr;
    }
    
    .tech-header{
        padding: 0 16px;
    }
    
    .tech-header-title{
        font-size: 16px;
    }
    
    .tech-user-name{
        display: none;
    }
}

@media (max-width: 480px){
    .tech-stat-card{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-stat-icon{
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tech-stat-value{
        font-size: 20px;
    }
}

/* ========================================
   滚动条样式
   ======================================== */

::-webkit-scrollbar{
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track{
    background: var(--bg-global);
}

::-webkit-scrollbar-thumb{
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover{
    background: var(--text-secondary);
}

/* ========================================
   选择文本颜色
   ======================================== */

::selection{
    background: var(--tech-primary);
    color: white;
}

/* ========================================
   移动端菜单按钮
   ======================================== */

.tech-mobile-menu-btn{
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tech-mobile-menu-btn:hover{
    background: var(--tech-primary-light);
}

@media (max-width: 1024px){
    .tech-mobile-menu-btn{
        display: flex;
    }
}

/* ========================================
   遮罩层
   ======================================== */

.tech-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

.tech-overlay.show{
    display: block;
}

/* ========================================
   登录页面专用样式
   ======================================== */

.login-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

/* 科技感背景装饰 */
.login-page::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(22, 119, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(22, 119, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

/* 网格背景 */
.login-page::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(22, 119, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 119, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.login-container{
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(22, 119, 255, 0.1);
    max-width: 920px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: loginSlideUp 0.5s ease-out;
}

@keyframes loginSlideUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.login-left{
    flex: 1;
    background: linear-gradient(135deg, #1677FF 0%, #0E58C2 100%);
    padding: 60px 44px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 左侧装饰 */
.login-left::before{
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.login-left h1{
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}

.login-left p{
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
}

.login-left .features{
    margin-top: 32px;
    position: relative;
}

.login-left .feature-item{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.login-left .feature-icon{
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.login-right{
    flex: 1;
    padding: 60px 44px;
    background: var(--bg-card);
}

.login-tabs{
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-global);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.login-tab{
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.login-tab:hover{
    color: var(--tech-primary);
}

.login-tab.active{
    background: var(--tech-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.login-title{
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle{
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group{
    margin-bottom: 20px;
}

.form-group label{
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input{
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.form-group input:focus{
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.form-group input::placeholder{
    color: var(--text-secondary);
}

.btn-login{
    width: 100%;
    padding: 14px;
    background: var(--tech-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-login::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover{
    background: var(--tech-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-login:hover::before{
    left: 100%;
}

.btn-login:active{
    background: var(--tech-primary-dark);
    transform: translateY(0);
}

.error-tip{
    background: var(--status-danger-bg);
    color: var(--status-danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-tip{
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--tech-primary-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    border: 1px solid rgba(22, 119, 255, 0.2);
}

.login-tip strong{
    color: var(--tech-primary);
}

.logo-wrap{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.logo-img{
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.2);
    padding: 8px;
    backdrop-filter: blur(4px);
}

.logo-placeholder{
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px){
    .login-left{
        display: none;
    }
    .login-right{
        padding: 40px 28px;
    }
    .login-container{
        max-width: 420px;
    }
}

@media (max-width: 480px){
    .login-right{
        padding: 32px 20px;
    }
    .login-title{
        font-size: 20px;
    }
}

/* ========================================
   进度条组件
   ======================================== */

.tech-progress{
    height: 8px;
    background: var(--tech-primary-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tech-progress-bar{
    height: 100%;
    background: var(--tech-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.tech-progress-bar.success{
    background: var(--status-success);
}

.tech-progress-bar.warning{
    background: var(--status-warning);
}

.tech-progress-bar.danger{
    background: var(--status-danger);
}

/* ========================================
   模态框组件
   ======================================== */

.tech-modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tech-modal.show{
    display: flex;
}

.tech-modal-content{
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn{
    from{
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tech-modal-header{
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-modal-title{
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-modal-close{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.tech-modal-close:hover{
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.tech-modal-body{
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.tech-modal-footer{
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-global);
}

/* ========================================
   通知/提示组件
   ======================================== */

.tech-alert{
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tech-alert-success{
    background: var(--status-success-bg);
    color: var(--status-success);
    border: 1px solid var(--status-success);
}

.tech-alert-warning{
    background: var(--status-warning-bg);
    color: #B45309;
    border: 1px solid var(--status-warning);
}

.tech-alert-danger{
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid var(--status-danger);
}

.tech-alert-info{
    background: var(--status-info-bg);
    color: var(--tech-primary);
    border: 1px solid var(--tech-primary);
}

/* ========================================
   Toast通知
   ======================================== */

.tech-toast-container{
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-toast{
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn{
    from{
        opacity: 0;
        transform: translateX(100%);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-toast-success{
    background: linear-gradient(135deg, #059669, var(--status-success));
}

.tech-toast-warning{
    background: linear-gradient(135deg, #D97706, var(--status-warning));
}

.tech-toast-danger{
    background: linear-gradient(135deg, #DC2626, var(--status-danger));
}

.tech-toast-info{
    background: linear-gradient(135deg, var(--tech-primary-hover), var(--tech-primary));
}

/* ========================================
   兼容 index.php 使用的 .sidebar 类
   ======================================== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg) !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h1 {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    font-size: 14px;
    transition: all var(--transition-fast);
    position: relative;
}

.menu-item:hover {
    background: var(--sidebar-hover);
    color: #FFFFFF;
}

.menu-item.active {
    background: var(--sidebar-active);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 0 2px 2px 0;
}

.menu-item.sub {
    padding-left: 24px;
    font-size: 13px;
}

.menu-group {
    margin-bottom: 8px;
}

.menu-group-title {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-group-title:hover {
    color: rgba(255, 255, 255, 0.6);
}

.menu-group-title .arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: transform 0.25s ease;
    opacity: 0.6;
    margin-right: 6px;
}

.menu-group.expanded .menu-group-title .arrow {
    transform: rotate(90deg);
    opacity: 1;
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg-global);
}

.main-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-content {
    padding: var(--content-padding);
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--module-gap);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* 统计卡片 */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: #1677FF;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #0E58C2;
    box-shadow: var(--shadow-primary);
}

.btn-success {
    background: var(--status-success);
    color: #FFFFFF;
}

.btn-danger {
    background: var(--status-danger);
    color: #FFFFFF;
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* 表格样式 */
.data-table,
.case-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.case-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
}

.data-table td,
.case-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover,
.case-table tr:hover {
    background: var(--tech-primary-light);
}

/* 状态标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-success {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.tag-warning {
    background: var(--status-warning-bg);
    color: #B45309;
}

.tag-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
}

.tag-info {
    background: var(--tech-primary-light);
    color: var(--tech-primary);
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 90%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-global);
}
