/* 
 * ╔═══════════════════════════════════════════════════════════════╗
 * ║   ⚠️  立神 AI - 管理后台样式 V1.2  核心文件                    ║
 * ║   🚫 禁止删除 | 禁止修改 | 禁止覆盖                          ║
 * ╚═══════════════════════════════════════════════════════════════╝
 * 
 * 浏览器兼容：Chrome / Firefox / Safari / Edge / IE11+
 */

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== 基础样式 ========== */
body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    background: -webkit-linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    background: -moz-linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    background: -o-linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部导航 ========== */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background: -webkit-linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background: -moz-linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background: -o-linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
    padding: 0 24px;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(99, 102, 241, 0.2);
}

.nav-brand { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.nav-title { font-size: 18px; font-weight: 700; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-user { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 500; }

/* ========== 左侧边栏 ========== */
.sidebar {
    position: fixed; left: 0; top: 60px; bottom: 0;
    width: 240px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    background: -webkit-linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    background: -moz-linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    background: -o-linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -webkit-flex-direction: column; -moz-box-orient: vertical; -moz-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    z-index: 9998;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.sidebar-logo {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    background: -webkit-linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    background: -moz-linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    background: -o-linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.sidebar-logo img {
    width: 64px; height: 64px;
    border-radius: 16px;
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.5), inset 0 -2px 12px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(99, 102, 241, 0.4);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.sidebar-logo img:hover { 
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05); 
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.6), inset 0 -2px 12px rgba(0, 0, 0, 0.15), 0 6px 24px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.5);
}

.sidebar-type {
    font-size: 12px; 
    font-weight: 600;
    color: #f59e0b;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    background: -webkit-linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    background: -moz-linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    background: -o-linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========== 菜单列表 ========== */
.menu { 
    -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; 
    overflow-y: auto; 
    padding: 16px 0; 
    list-style: none; 
}

.menu-item { font-size: 14px; font-weight: 500;
    display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    white-space: nowrap;
    border-radius: 8px;
    margin: 2px 12px;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    background: -webkit-linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    background: -moz-linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    background: -o-linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-left-color: #6366f1;
    color: #fff;
    -webkit-transform: translateX(4px);
    -moz-transform: translateX(4px);
    -ms-transform: translateX(4px);
    -o-transform: translateX(4px);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    background: -webkit-linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    background: -moz-linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    background: -o-linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-left-color: #6366f1;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 0 12px rgba(99, 102, 241, 0.2);
}

.menu-icon { 
    font-size: 18px; 
    width: 24px; 
    text-align: center; 
    -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.menu-text { 
    -webkit-box-flex: 1; -webkit-flex: 1; -moz-box-flex: 1; -ms-flex: 1; flex: 1; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(99, 102, 241, 0.3); }

.back-home {
    display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -webkit-justify-content: center; -moz-box-pack: center; -ms-flex-pack: center; justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background: -webkit-linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background: -moz-linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background: -o-linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    color: #fff; 
    text-decoration: none;
    font-weight: 700; 
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.back-home::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;
}

.back-home:hover::before {
    left: 100%;
}

.back-home:hover { 
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px); 
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.back-home:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* ========== 右侧内容区 ========== */
.content {
    margin-left: 240px; margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
    background: transparent;
    position: relative;
}

.page-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(99, 102, 241, 0.2); }
.page-header h1 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.page-header p { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    background: -webkit-linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    background: -moz-linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    background: -o-linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 24px; 
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
}

.card-title { 
    font-size: 18px; 
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== 统计卡片 ========== */
.stats { 
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; 
    margin-bottom: 30px; 
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    background: -webkit-linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    background: -moz-linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    background: -o-linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    padding: 24px; 
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    -o-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
}

.stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ========== 版本号 ========== */
.version-badge {
    position: fixed; bottom: 20px; right: 20px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    background: -webkit-linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    background: -moz-linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    background: -o-linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; 
    font-size: 12px; 
    font-weight: 600;
    z-index: 9998;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-badge:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ========== 滚动条 ========== */
.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-track { background: rgba(26, 26, 46, 0.5); }
.menu::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 3px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid rgba(99, 102, 241, 0.2); }
    .content { margin-left: 0; }
}
