/**
 * 彩虹外链网盘 - 后台管理界面全新样式
 * 响应式设计，适配各种设备屏幕
 * 配色方案：现代简约风格，使用青色/绿色/橙色/红色为主色调
 */

/* ==================== CSS变量定义 ==================== */
:root {
    /* 主色调 - 使用青色代替蓝紫渐变 */
    --primary-color: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    
    /* 辅助色 */
    --success-color: #10b981;
    --success-light: #34d399;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --info-color: #3b82f6;
    --info-light: #60a5fa;
    
    /* 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 背景色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    
    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* 侧边栏 */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== 布局框架 ==================== */
body.admin-logged-in {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    transition: margin-left var(--transition);
}

body.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* ==================== 顶部导航栏 ==================== */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1030;
    display: flex;
    align-items: center;
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius);
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

.topbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-brand:hover {
    text-decoration: none;
    color: var(--text-primary);
}

.topbar-brand i {
    color: var(--primary-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    color: var(--gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--danger-color);
    color: #fff;
    text-decoration: none;
}

/* ==================== 侧边栏 ==================== */
.admin-sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    transition: width var(--transition), transform var(--transition);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.sidebar-brand i {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
    max-height: calc(100vh - 180px);
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 2px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    gap: 12px;
}

.sidebar-link:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-link i:first-child {
    width: 24px;
    text-align: center;
    font-size: 16px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.sidebar-link:hover i:first-child {
    color: var(--primary-color);
}

.sidebar-text {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
}

.sidebar-item.active > .sidebar-link {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.04) 70%, rgba(13, 148, 136, 0) 100%);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item.active > .sidebar-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 34px;
    background: var(--primary-gradient);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item.active > .sidebar-link i:first-child {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item:not(.active) > .sidebar-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 子菜单 */
.has-submenu > .sidebar-link {
    cursor: pointer;
}

.submenu-arrow {
    font-size: 14px;
    transition: transform var(--transition);
    color: var(--gray-400);
}

.has-submenu.open > .sidebar-link .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: var(--gray-50);
    display: none;
}

.has-submenu.open > .submenu {
    display: block;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 56px;
    color: var(--gray-500);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.submenu li a:hover {
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.05);
    text-decoration: none;
}

.submenu li a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-400);
    margin-right: 8px;
    flex-shrink: 0;
}

.submenu .divider {
    height: 1px;
    margin: 8px 20px;
    background: var(--border-color);
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1015;
    display: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* 侧边栏折叠状态 */
body.sidebar-collapsed .admin-sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-header,
body.sidebar-collapsed .sidebar-footer {
    display: none;
}

body.sidebar-collapsed .sidebar-text,
body.sidebar-collapsed .submenu-arrow {
    display: none;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 15px 0;
}

body.sidebar-collapsed .sidebar-link i:first-child {
    width: auto;
    font-size: 20px;
}

body.sidebar-collapsed .submenu {
    display: none !important;
}

body.sidebar-collapsed .sidebar-item.active > .sidebar-link {
    border-left: none;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 12px;
    margin: 0 10px;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .sidebar-item.active > .sidebar-link::after {
    display: none;
}

body.sidebar-collapsed .sidebar-item.active > .sidebar-link i:first-child {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 主内容区 ==================== */
.main-content {
    padding: 24px;
    max-width: 100%;
}

.container {
    padding: 24px;
    max-width: 100%;
}

/* ==================== 页面标题区 ==================== */
.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1, .page-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-title-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.stat-card:hover .stat-icon::after {
    width: 100%;
    height: 100%;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.stat-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.stat-icon.red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.stat-icon.teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.stat-card:hover .stat-icon.blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.stat-card:hover .stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.stat-card:hover .stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.stat-card:hover .stat-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.stat-card:hover .stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.stat-card:hover .stat-icon.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color var(--transition);
}

.stat-card:hover .stat-info h3 {
    color: var(--primary-color);
}

.stat-info p {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== 卡片组件 ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.card-header h3, .card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i, .card-header h4 i {
    color: var(--primary-color);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
}

/* 渐变头部卡片 */
.card-header-gradient {
    background: var(--primary-gradient);
    color: #fff;
    border-bottom: none;
}

.card-header-gradient h3, .card-header-gradient h4 {
    color: #fff;
}

.card-header-gradient h3 i, .card-header-gradient h4 i {
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== 筛选区域 ==================== */
.filter-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    width: 100%;
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-light) 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
    color: #fff;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--info-light) 100%);
    color: #fff;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-xs {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.btn-lg {
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--border-radius);
}

/* 操作按钮组 */
.action-group {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-action:hover {
    transform: translateY(-1px);
}

.btn-action.edit {
    background: #dbeafe;
    color: var(--info-color);
}

.btn-action.edit:hover {
    background: var(--info-color);
    color: #fff;
}

.btn-action.view {
    background: #d1fae5;
    color: var(--success-color);
}

.btn-action.view:hover {
    background: var(--success-color);
    color: #fff;
}

.btn-action.delete {
    background: #fee2e2;
    color: var(--danger-color);
}

.btn-action.delete:hover {
    background: var(--danger-color);
    color: #fff;
}

.btn-action.disable {
    background: #ffedd5;
    color: var(--warning-color);
}

.btn-action.disable:hover {
    background: var(--warning-color);
    color: #fff;
}

.btn-action.enable {
    background: #d1fae5;
    color: var(--success-color);
}

.btn-action.enable:hover {
    background: var(--success-color);
    color: #fff;
}

/* ==================== 表格样式 ==================== */
.table-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1000px;
}

.data-table thead th {
    background: var(--gray-50);
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-align: left;
}

.data-table thead th:first-child {
    width: 40px;
    text-align: center;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格列样式 */
.col-id {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
    width: 60px;
}

.col-name {
    max-width: 300px;
}

.col-size {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.col-date {
    font-size: 13px;
    color: var(--text-secondary);
    width: 160px;
}

.col-date .primary {
    color: var(--text-primary);
}

.col-date .secondary {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.col-status {
    width: 100px;
}

.col-actions {
    width: 140px;
}

/* 状态徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    white-space: nowrap;
}

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

.status-badge.normal, .status-badge.active, .status-badge.paid, .status-badge.unused {
    background: #dcfce7;
    color: #166534;
}

.status-badge.normal::before, .status-badge.active::before, .status-badge.paid::before, .status-badge.unused::before {
    background: #22c55e;
}

.status-badge.banned, .status-badge.inactive, .status-badge.disabled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.banned::before, .status-badge.inactive::before, .status-badge.disabled::before {
    background: #ef4444;
}

.status-badge.pending, .status-badge.unpaid {
    background: #ffedd5;
    color: #9a3412;
}

.status-badge.pending::before, .status-badge.unpaid::before {
    background: #f97316;
}

.status-badge.used {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.used::before {
    background: #3b82f6;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* 类型徽章 */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-badge.storage { background: #dbeafe; color: #1e40af; }
.type-badge.traffic { background: #d1fae5; color: #065f46; }
.type-badge.both { background: #fef3c7; color: #92400e; }
.type-badge.combo { background: #f3e8ff; color: #7c3aed; }
.type-badge.vip { background: #fef9c3; color: #a16207; }
.type-badge.normal { background: #f3f4f6; color: #6b7280; }

/* 文件信息 */
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    flex-shrink: 0;
}

.file-icon.image { background: #fef3c7; color: #d97706; }
.file-icon.video { background: #fee2e2; color: #dc2626; }
.file-icon.audio { background: #dbeafe; color: #2563eb; }
.file-icon.document { background: #d1fae5; color: #059669; }
.file-icon.archive { background: #e0e7ff; color: #4f46e5; }
.file-icon.code { background: #f3e8ff; color: #7c3aed; }

.file-details {
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.file-name a {
    color: inherit;
    text-decoration: none;
}

.file-name a:hover {
    color: var(--primary-color);
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    min-width: 0;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-login {
    font-size: 12px;
    color: var(--text-muted);
}

/* 配额条 */
.quota-bar {
    width: 100px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.quota-bar-inner {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width var(--transition);
}

.quota-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
    flex-wrap: wrap;
    gap: 12px;
}

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

.pagination {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination li a:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.pagination li.disabled span {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ==================== 模态框 ==================== */
.modal-overlay,
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show,
.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal,
.custom-modal {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

.modal-overlay.show .modal,
.custom-modal-overlay.show .custom-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header,
.custom-modal-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-header::before,
.custom-modal-header::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.08'%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;
}

.modal-header h4,
.custom-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.modal-header h4 i,
.custom-modal-header h4 i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(4px);
}

.modal-close,
.custom-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.modal-close:hover,
.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body,
.custom-modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.modal-footer,
.custom-modal-footer {
    padding: 20px 28px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 表单行 */
.form-row {
    margin-bottom: 24px;
    position: relative;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.form-input:hover {
    border-color: var(--gray-300);
}

.form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background: #fff;
}

.form-input:disabled {
    background: var(--gray-100);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 48px;
    transition: all 0.2s ease;
}

.form-select:hover {
    border-color: var(--gray-300);
}

.help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-text::before {
    content: '\f05a';
    font-family: 'FontAwesome';
    font-size: 12px;
    color: #0ea5e9;
}

.input-group {
    display: flex;
}

.input-group .form-input {
    border-radius: 12px 0 0 12px;
    flex: 1;
    border-right: none;
}

.input-group-addon {
    height: 48px;
    padding: 0 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    color: #0284c7;
    font-size: 14px;
    font-weight: 600;
}

.input-group .form-input:focus + .input-group-addon {
    border-color: #0ea5e9;
}

/* ==================== 工具栏 ==================== */
.toolbar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.batch-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-batch {
    height: 38px;
    padding: 0 16px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-batch:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-batch.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger-color);
}

.btn-batch.ban:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: var(--warning-color);
}

.btn-batch.unban:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: var(--success-color);
}

.selected-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 8px 14px;
    border-radius: var(--border-radius);
}

.selected-count span {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 警告提示 ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ==================== 标签页 ==================== */
.nav-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.nav-tabs li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.nav-tabs li a:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.nav-tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: 20px 0;
}

/* ==================== 图表容器 ==================== */
.chart-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.chart-card h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.chart-container {
    height: 250px;
}

/* ==================== 响应式布局 ==================== */

/* 大屏幕 */
@media (max-width: 1400px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 18px;
        gap: 14px;
    }
    
    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
}

@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 平板 */
@media (max-width: 991px) {
    body.admin-logged-in {
        margin-left: 0;
    }
    
    body.sidebar-collapsed {
        margin-left: 0;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        top: var(--topbar-height);
        height: calc(100vh - var(--topbar-height));
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
    }
    
    /* 移动端禁用折叠状态 */
    body.sidebar-collapsed .admin-sidebar {
        width: 280px;
    }
    
    body.sidebar-collapsed .sidebar-header,
    body.sidebar-collapsed .sidebar-footer,
    body.sidebar-collapsed .sidebar-text,
    body.sidebar-collapsed .submenu-arrow {
        display: block;
    }
    
    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    body.sidebar-collapsed .sidebar-link i:first-child {
        width: 24px;
        font-size: 16px;
    }
    
    .main-content, .container {
        padding: 16px;
    }
    
    .page-title h1, .page-title h2 {
        font-size: 20px;
    }
    
    .page-title-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
    
    .stat-info p {
        font-size: 12px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
}

/* 手机横屏 */
@media (max-width: 767px) {
    .main-content, .container {
        padding: 12px;
    }
    
    .page-header-section {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 14px 12px;
        gap: 10px;
    }
    
    .stat-card::before {
        width: 3px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: var(--border-radius-sm);
    }
    
    .stat-info h3 {
        font-size: 18px;
    }
    
    .stat-info p {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .filter-section {
        padding: 16px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .toolbar-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-batch {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .selected-count {
        text-align: center;
    }
    
    .table-section {
        border-radius: var(--border-radius);
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .modal,
    .custom-modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-footer,
    .custom-modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn,
    .custom-modal-footer .btn {
        width: 100%;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .admin-topbar {
        height: 55px;
    }

    .admin-sidebar {
        top: 55px;
        height: calc(100vh - 55px);
        width: 280px;
        overflow: hidden;
        flex-direction: column;
    }

    .admin-sidebar.show {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar-menu {
        padding-bottom: 20px;
    }
    
    body.admin-logged-in,
    body.sidebar-collapsed {
        padding-top: 55px;
    }
    
    .main-content, .container {
        padding: 10px;
    }
    
    .page-title h1, .page-title h2 {
        font-size: 18px;
    }
    
    .page-title-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .stat-card {
        padding: 16px;
        gap: 14px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
    
    .stat-info p {
        font-size: 12px;
    }
    
    .filter-section {
        padding: 14px;
        border-radius: var(--border-radius);
    }
    
    .batch-actions {
        width: 100%;
    }
    
    .btn-batch {
        flex: 1;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .table-section {
        border-radius: var(--border-radius-sm);
    }
    
    .data-table {
        min-width: 900px;
    }
    
    .data-table thead th {
        padding: 12px;
        font-size: 11px;
    }
    
    .data-table tbody td {
        padding: 12px;
        font-size: 13px;
    }
    
    .file-info {
        gap: 8px;
    }
    
    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .file-name {
        max-width: 180px;
    }
    
    .action-group {
        gap: 4px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .type-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .stat-card, .filter-section, .table-section {
    animation: fadeIn 0.4s ease-out;
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        margin-left: 0 !important;
        padding-top: 0;
        background: #fff;
    }
    
    .admin-topbar,
    .admin-sidebar,
    .sidebar-overlay,
    .btn,
    .modal-footer {
        display: none !important;
    }
    
    .main-content, .container {
        padding-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .data-table {
        font-size: 12px;
    }
}

/* ==================== 兼容旧版Bootstrap样式（首页使用） ==================== */

/* 栅格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-xs-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-xs-3 { flex: 0 0 25%; max-width: 25%; }
.col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.col-xs-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xs-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-xs-9 { flex: 0 0 75%; max-width: 75%; }
.col-xs-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-xs-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.pull-left { float: left; }
.pull-right { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Panel 面板样式 */
.panel {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-heading {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i {
    color: var(--primary-color);
}

.panel-body {
    padding: 20px;
}

.panel-footer {
    padding: 12px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.panel-footer:hover {
    background: var(--gray-100);
}

.panel-footer .fa-arrow-right {
    color: var(--primary-color);
}

/* 首页统计卡片特殊样式 */
.panel.stat-card {
    transition: all var(--transition);
}

.panel.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.panel.stat-card .panel-heading {
    border-bottom: none;
    padding: 24px 20px;
}

.panel.stat-card .stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.panel.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 列表组 */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item b {
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 8px;
}

/* 信息卡片 */
.info-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* 公告区域 */
.notice-wrap {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.notice-head {
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-head-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 18px;
}

.notice-head-title {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.notice-body {
    padding: 20px;
    min-height: 120px;
}

.notice-load,
.notice-none,
.notice-err {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notice-load i {
    animation: spin 1s linear infinite;
}

.notice-err {
    color: var(--danger-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 浏览器提示 */
.panel.panel-default {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--border-radius);
}

.panel.panel-default .panel-body {
    padding: 16px 20px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}

/* Bootstrap 模态框基础样式 - 仅用于兼容旧代码 */
.modal.bootstrap-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}

.modal.bootstrap-modal.fade.in {
    display: block;
}

.modal-dialog {
    position: relative;
    margin: 30px auto;
    max-width: 600px;
}

.modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 60px);
}

/* ==================== 首页统计卡片样式（美化版） ==================== */

/* 统计卡片网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* 统计卡片 - 美化版 */
.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

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

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px 16px;
    flex: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.stat-card:hover .stat-icon::after {
    width: 100%;
    height: 100%;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.stat-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.stat-icon.red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.stat-card:hover .stat-icon.blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.stat-card:hover .stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.stat-card:hover .stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.stat-card:hover .stat-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.stat-info {
    flex: 1;
    text-align: right;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 美化查看详情按钮 */
.stat-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.stat-card-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.stat-card-footer:hover {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.05);
    text-decoration: none;
}

.stat-card-footer:hover::after {
    width: 60%;
}

.stat-card-footer span {
    position: relative;
}

.stat-card-footer i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 10px;
    transition: all 0.2s ease;
}

.stat-card-footer:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(3px);
}

/* 解决选中变白问题 */
.stat-card-footer:focus,
.stat-card-footer:active,
.stat-card-footer:visited {
    color: var(--text-secondary);
    text-decoration: none;
    outline: none;
}

.stat-card-footer:focus:hover,
.stat-card-footer:active:hover {
    color: var(--primary-color);
}

/* 仪表板网格布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* 仪表板卡片 - 美化版 */
.dashboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dashboard-card-icon.primary {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
}

.dashboard-card-icon.info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.dashboard-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card-body {
    padding: 20px;
    flex: 1;
}

/* 服务器信息列表 */
.server-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.server-info-item:hover {
    background: rgba(14, 165, 233, 0.02);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.server-info-item:last-child {
    border-bottom: none;
}

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

.server-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* 公告加载状态 */
.notice-load {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.notice-load i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 弹窗公告样式修复 ==================== */
.popup-notice-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px 20px 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-notice-modal-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.popup-notice-modal {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-notice-modal-wrapper.show .popup-notice-modal {
    transform: scale(1) translateY(0);
}

.popup-notice-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.popup-notice-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(4px);
}

.popup-notice-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.popup-notice-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-notice-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.popup-notice-body {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.popup-notice-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

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

.popup-notice-btn-dismiss {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-notice-btn-dismiss:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.popup-notice-btn-confirm {
    padding: 10px 20px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.popup-notice-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* 弹窗公告手机端适配 */
@media (max-width: 576px) {
    .popup-notice-modal-wrapper {
        padding: 16px;
        align-items: center;
    }
    
    .popup-notice-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .popup-notice-header {
        padding: 20px;
        gap: 12px;
    }
    
    .popup-notice-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .popup-notice-title {
        font-size: 16px;
    }
    
    .popup-notice-close {
        width: 32px;
        height: 32px;
        right: 16px;
    }
    
    .popup-notice-body {
        padding: 20px;
    }
    
    .popup-notice-content {
        font-size: 14px;
    }
    
    .popup-notice-footer {
        padding: 14px 20px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .popup-notice-btn-dismiss,
    .popup-notice-btn-confirm {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

/* ==================== 统计卡片响应式适配 ==================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        border-radius: 14px;
    }
    
    .stat-card-header {
        padding: 16px 14px 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }
    
    .stat-num {
        font-size: 20px;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-card-footer {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
    }
    
    .stat-card-footer i {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .dashboard-card {
        border-radius: 14px;
    }
    
    .dashboard-card-header {
        padding: 14px 16px;
    }
    
    .dashboard-card-body {
        padding: 16px;
    }
    
    .server-info-item {
        padding: 10px 0;
    }
    
    .server-info-label,
    .server-info-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card-header {
        padding: 20px 18px 16px;
        gap: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 22px;
    }
    
    .stat-num {
        font-size: 26px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-card-footer {
        padding: 12px 18px;
    }
    
    .main-content {
        padding: 16px;
    }
}

/* ==================== 公告列表样式优化（简洁现代版） ==================== */

/* 公告列表容器 - 简洁网格布局 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 基础公告卡片样式 - 只应用于.notice-item类 */
.notice-item {
    margin: 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 左侧彩色边条 */
.notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 0 4px 4px 0;
    transition: all 0.25s ease;
}

/* 悬停效果 */
.notice-item:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notice-item:hover::before {
    width: 6px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* 链接样式 - 现代下划线动画版 */
.notice-item a,
.notice-list a {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0 2px;
    transition: color 0.3s ease;
}

.notice-item a::after,
.notice-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.notice-item a:hover,
.notice-list a:hover {
    color: #0f766e;
}

.notice-item a:hover::after,
.notice-list a:hover::after {
    width: 100%;
}

/* 外部链接特殊标识 */
.notice-item a[href^="http"]::before,
.notice-list a[href^="http"]::before {
    content: '\f08e';
    font-family: 'FontAwesome';
    font-size: 10px;
    margin-right: 4px;
    opacity: 0.7;
}

/* 下载链接特殊标识 */
.notice-item a[href$=".zip"]::before,
.notice-item a[href$=".rar"]::before,
.notice-item a[href$=".7z"]::before,
.notice-list a[href$=".zip"]::before,
.notice-list a[href$=".rar"]::before,
.notice-list a[href$=".7z"]::before {
    content: '\f019';
    font-family: 'FontAwesome';
    font-size: 10px;
    margin-right: 4px;
}

/* 加粗文字 */
.notice-item strong {
    color: #1f2937;
    font-weight: 700;
}

/* 斜体文字 */
.notice-item em {
    color: #6b7280;
    font-style: normal;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 公告加载状态 - 现代简约 */
.notice-load {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.notice-load-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
    animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

.notice-load-icon i {
    font-size: 24px;
    color: #fff;
    animation: spin-soft 1.5s linear infinite;
}

@keyframes spin-soft {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notice-load-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 公告空状态 - 简洁友好 */
.notice-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    text-align: center;
}

.notice-none-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.notice-none-icon i {
    font-size: 28px;
    color: #9ca3af;
}

.notice-none-text {
    font-size: 15px;
    color: #374151;
    font-weight: 600;
    margin: 0;
}

.notice-none-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* 公告错误状态 - 清晰明了 */
.notice-err {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    text-align: center;
}

.notice-err-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.notice-err-icon i {
    font-size: 28px;
    color: #ef4444;
}

.notice-err-text {
    font-size: 15px;
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

.notice-err-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* 公告卡片特殊优化 */
.notice-card {
    min-height: 360px;
}

.notice-card .dashboard-card-body {
    padding: 16px;
    min-height: 280px;
}

/* 公告类型标签 */
.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.notice-tag.important {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.notice-tag.update {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.notice-tag.info {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* 响应式适配 */
@media (max-width: 767px) {
    .notice-item {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .notice-load,
    .notice-none,
    .notice-err {
        padding: 48px 16px;
    }
    
    .notice-load-icon,
    .notice-none-icon,
    .notice-err-icon {
        width: 52px;
        height: 52px;
    }
    
    .notice-load-icon i,
    .notice-none-icon i,
    .notice-err-icon i {
        font-size: 22px;
    }
    
    .notice-card .dashboard-card-body {
        padding: 12px;
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .notice-item {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.6;
    }
    
    .notice-item::before {
        top: 8px;
        bottom: 8px;
        width: 3px;
    }
    
    .notice-load-icon,
    .notice-none-icon,
    .notice-err-icon {
        width: 48px;
        height: 48px;
    }
}

/* 动画优化 - 公告项渐入 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-item {
    animation: fadeInUp 0.3s ease-out;
}

.notice-item:nth-child(1) { animation-delay: 0s; }
.notice-item:nth-child(2) { animation-delay: 0.05s; }
.notice-item:nth-child(3) { animation-delay: 0.1s; }
.notice-item:nth-child(4) { animation-delay: 0.15s; }
.notice-item:nth-child(5) { animation-delay: 0.2s; }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .notice-item,
    .notice-load-icon {
        animation: none;
        transition: none;
    }
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
