/* Scintilla - 全新布局架构 */
/* 设计理念: 完全不同的布局结构，现代仪表盘风格 */

/* ========== CSS 变量定义 ========== */
:root {
    /* 明亮配色 - 现代浅色主题 */
    --bg-dark: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    
    /* 强调色 - 活力蓝紫 */
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #f59e0b;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-tertiary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.15) 100%);
    
    /* 文字 - 增强对比度 */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-glow: rgba(59,130,246,0.3);
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(59,130,246,0.15);
    --shadow-glow-pink: 0 0 20px rgba(139,92,246,0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 尺寸 */
    --header-height: 80px;
    --sidebar-width: 280px;
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ========== 新布局架构 ========== */
/* 整体布局：顶部导航 + 主内容区（左侧内容+右侧面板） */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== 顶部导航 - 全新设计 ========== */
.top-nav {
    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 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    -webkit-text-fill-color: white;
    box-shadow: var(--shadow-glow);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-primary);
    background: rgba(59,130,246,0.1);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item:hover,
.nav-item:focus,
.nav-item:active {
    text-decoration: none;
}

.nav-item i {
    font-style: normal;
    font-size: 16px;
}

/* 导航下拉菜单 */
.nav-item.has-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.nav-item.has-dropdown:hover .nav-dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(59,130,246,0.1);
    color: var(--accent-primary);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* 搜索框 */
.search-box {
    position: relative;
}

.search-box input {
    width: 280px;
    padding: 12px 16px 12px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-danger);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== 主内容区 ========== */
.main-wrapper {
    display: flex;
    flex: 1;
    margin-top: var(--header-height);
    padding: 24px;
    gap: 24px;
}

/* 左侧内容区 */
.content-area {
    flex: 1;
    min-width: 0;
}

/* 右侧面板 */
.right-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========== 页面标题 - 新设计 ========== */
.page-header-new {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.page-header-new h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.page-header-new p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* ========== 统计网格 - 新设计 ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-box.primary::before { background: var(--gradient-primary); }
.stat-box.secondary::before { background: var(--gradient-secondary); }
.stat-box.tertiary::before { background: var(--gradient-tertiary); }
.stat-box.success::before { background: linear-gradient(90deg, var(--accent-success), #00cc66); }

.stat-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-box.primary .stat-box-icon { color: var(--accent-primary); }
.stat-box.secondary .stat-box-icon { color: var(--accent-secondary); }
.stat-box.tertiary .stat-box-icon { color: var(--accent-tertiary); }
.stat-box.success .stat-box-icon { color: var(--accent-success); }

.stat-box-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-box-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ========== 卡片 - 新设计 ========== */
.card-new {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-new:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card-header-new {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-new h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-new h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card-body-new {
    padding: 24px;
}

/* ========== 按钮 - 新设计 ========== */
.btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary-new {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.btn-secondary-new {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-weight: 600;
}

.btn-secondary-new:hover {
    background: rgba(59,130,246,0.1);
    box-shadow: var(--shadow-glow);
}

.btn-ghost-new {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.btn-ghost-new:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========== 表格 - 新设计 ========== */
.table-new {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-new th,
.table-new td {
    padding: 16px 20px;
    text-align: left;
}

.table-new th {
    background: var(--bg-input);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.table-new tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.table-new tbody tr:hover {
    background: var(--bg-card-hover);
}

.table-new td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
}

/* ========== 状态标签 - 新设计 ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.success {
    background: rgba(16,185,129,0.15);
    color: #059669;
}

.status-badge.success::before {
    background: #059669;
}

.status-badge.warning {
    background: rgba(245,158,11,0.15);
    color: #d97706;
}

.status-badge.warning::before {
    background: #d97706;
}

.status-badge.danger {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
}

.status-badge.danger::before {
    background: #dc2626;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== 右侧面板组件 ========== */
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.panel-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 快速操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 24px;
    font-style: normal;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== 登录页 - 全新设计 ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    position: relative;
}

.login-brand {
    position: absolute;
    top: 40px;
    left: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-primary);
}

.login-hero {
    max-width: 480px;
}

.login-hero h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.login-hero h2 span {
    color: var(--accent-primary);
}

.login-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.login-features {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.login-feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
}

.login-form-wrapper {
    width: 100%;
    max-width: 360px;
}

.login-form-wrapper h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

/* 表单样式 */
.form-group-new {
    margin-bottom: 20px;
}

.form-label-new {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-input-new {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.form-input-new:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-input-new::placeholder {
    color: var(--text-muted);
}

/* 警告框 */
.alert-new {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-error-new {
    background: rgba(255,51,102,0.1);
    border: 1px solid rgba(255,51,102,0.2);
    color: var(--accent-danger);
}

.alert-success-new {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.2);
    color: var(--accent-success);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .right-panel {
        display: none;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .main-wrapper {
        padding: 16px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        width: 100%;
    }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========== 兼容性样式 - 旧类名映射到新样式 ========== */

/* 页面标题 */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card-body {
    padding: 24px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-warning) 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger) 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-default {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-default:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
}

.table th {
    background: var(--bg-input);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
}

.table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
}

.table td a:not(.btn) {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.table td a:not(.btn):hover {
    text-decoration: none;
}

/* 表单 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}

select.form-control {
    cursor: pointer;
}

/* 警告框 */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-success {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.2);
    color: var(--accent-success);
}

.alert-error {
    background: rgba(255,51,102,0.1);
    border: 1px solid rgba(255,51,102,0.2);
    color: var(--accent-danger);
}

.alert-warning {
    background: rgba(255,170,0,0.1);
    border: 1px solid rgba(255,170,0,0.2);
    color: var(--accent-warning);
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

.status-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

.status-tag.success {
    background: rgba(16,185,129,0.15);
    color: #059669;
}

.status-tag.success::before {
    background: #059669;
}

.status-tag.warning {
    background: rgba(245,158,11,0.15);
    color: #d97706;
}

.status-tag.warning::before {
    background: #d97706;
}

.status-tag.danger {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
}

.status-tag.danger::before {
    background: #dc2626;
}

.status-tag.info {
    background: rgba(59,130,246,0.15);
    color: #2563eb;
}

.status-tag.info::before {
    background: #2563eb;
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 160px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 1;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.page-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-btns {
    display: flex;
    gap: 8px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-color: transparent;
}

.page-btn.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 操作按钮组 */
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* 表格中的操作列，确保边框对齐 */
table td.actions {
    vertical-align: middle;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label .required {
    color: var(--accent-danger);
    margin-left: 4px;
}

.form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 文本域 */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 布局辅助 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }

.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }

/* 隐藏元素 */
.hidden { display: none !important; }

/* ========== Admin 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-card.primary { border-top: 3px solid var(--accent-primary); }
.stat-card.warning { border-top: 3px solid var(--accent-warning); }
.stat-card.success { border-top: 3px solid var(--accent-success); }
.stat-card.danger { border-top: 3px solid var(--accent-danger); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.stat-card.primary .stat-icon { color: var(--accent-primary); }
.stat-card.warning .stat-icon { color: var(--accent-warning); }
.stat-card.success .stat-icon { color: var(--accent-success); }
.stat-card.danger .stat-icon { color: var(--accent-danger); }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Alert 链接样式 */
.alert a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.alert a:hover {
    text-decoration: none;
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-primary);
}

.footer-divider {
    color: var(--border-color);
    margin: 0 12px;
}

.site-footer p {
    margin-top: 8px;
    font-size: 12px;
    margin-bottom: 0;
}
