/* ==================== 全局变量 ==================== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s;
    --transition: 0.3s;
    --transition-slow: 0.5s;
}

/* ==================== 重置样式 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 背景动画 ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.08));
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.08));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.05); }
    50% { transform: translate(0, -100px) scale(1); }
    75% { transform: translate(-50px, -50px) scale(0.95); }
}

/* 网格背景 */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ==================== 布局 ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.2); }
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 4px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.1;
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-item.active::before {
    display: none;
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item.expanded .nav-arrow {
    transform: rotate(180deg);
}

/* 子菜单 */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.nav-item.expanded + .nav-submenu {
    max-height: 300px;
}

.nav-submenu .nav-item {
    padding-left: 52px;
    font-size: 14px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== 顶部栏 ==================== */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 240px;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    width: 300px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--bg-secondary);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.icon-btn .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ==================== 页面内容 ==================== */
.page-content {
    padding: 32px;
    flex: 1;
}

.page-header {
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease backwards;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ==================== 统计卡片网格 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    animation-delay: calc(var(--i) * 0.1s);
}

.stat-card:nth-child(1) { --i: 1; }
.stat-card:nth-child(2) { --i: 2; }
.stat-card:nth-child(3) { --i: 3; }
.stat-card:nth-child(4) { --i: 4; }

.stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.stat-icon.secondary {
    background: linear-gradient(135deg, var(--secondary), #f472b6);
}

.stat-icon.accent {
    background: linear-gradient(135deg, var(--accent), #22d3ee);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success), #34d399);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-change.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-change.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    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, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

/* ==================== 图表区域 ==================== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    padding: 24px;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* 简易图表条形 */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 240px;
    padding: 30px 10px 10px;
    gap: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: var(--radius);
    position: relative;
}

.bar-chart::before {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.bar-chart::after {
    content: '¥';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    position: relative;
}

.bar {
    width: 100%;
    max-width: 50px;
    min-height: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, rgba(99, 102, 241, 0.3) 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    margin-top: auto;
    box-shadow: 0 -4px 15px rgba(99, 102, 241, 0.3);
}

.bar:nth-child(2) { background: linear-gradient(180deg, var(--secondary) 0%, #f472b6 50%, rgba(236, 72, 153, 0.3) 100%); box-shadow: 0 -4px 15px rgba(236, 72, 153, 0.3); }
.bar:nth-child(3) { background: linear-gradient(180deg, var(--accent) 0%, #22d3ee 50%, rgba(6, 182, 212, 0.3) 100%); box-shadow: 0 -4px 15px rgba(6, 182, 212, 0.3); }
.bar:nth-child(4) { background: linear-gradient(180deg, var(--success) 0%, #34d399 50%, rgba(16, 185, 129, 0.3) 100%); box-shadow: 0 -4px 15px rgba(16, 185, 129, 0.3); }
.bar:nth-child(5) { background: linear-gradient(180deg, var(--warning) 0%, #fbbf24 50%, rgba(245, 158, 11, 0.3) 100%); box-shadow: 0 -4px 15px rgba(245, 158, 11, 0.3); }
.bar:nth-child(6) { background: linear-gradient(180deg, var(--info) 0%, #60a5fa 50%, rgba(59, 130, 246, 0.3) 100%); box-shadow: 0 -4px 15px rgba(59, 130, 246, 0.3); }
.bar:nth-child(7) { background: linear-gradient(180deg, var(--danger) 0%, #f87171 50%, rgba(239, 68, 68, 0.3) 100%); box-shadow: 0 -4px 15px rgba(239, 68, 68, 0.3); }

.bar:hover {
    filter: brightness(1.15);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 8px 8px 50% 50%;
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.bar:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.bar-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 图表动画 */
.bar-chart.animate .bar {
    animation: barGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* 饼图 */
.pie-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        var(--primary) 0deg 126deg,
        var(--secondary) 126deg 216deg,
        var(--accent) 216deg 288deg,
        var(--success) 288deg 360deg
    );
    margin: 20px auto;
    animation: pieRotate 20s linear infinite;
}

@keyframes pieRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pie-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ==================== 表格 ==================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.table tbody tr {
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease backwards;
    animation-delay: calc(var(--i) * 0.05s);
}

.table tbody tr:nth-child(1) { --i: 1; }
.table tbody tr:nth-child(2) { --i: 2; }
.table tbody tr:nth-child(3) { --i: 3; }
.table tbody tr:nth-child(4) { --i: 4; }
.table tbody tr:nth-child(5) { --i: 5; }

.table tbody tr:hover {
    background: var(--bg-tertiary);
    transform: scale(1.01);
}

.table tbody tr:hover td:first-child {
    border-left: 3px solid var(--primary);
}

/* 状态标签 */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-active::before { background: var(--success); }

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-pending::before { background: var(--warning); }

.status-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.status-inactive::before { background: var(--text-secondary); }

/* 操作按钮 */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.action-btn.edit:hover {
    background: var(--info);
    color: white;
    transform: rotate(10deg);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.action-btn.view {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.action-btn.view:hover {
    background: var(--success);
    color: white;
}

/* ==================== 进度条 ==================== */
.progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressFlow 2s linear infinite;
}

@keyframes progressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ==================== 表单 ==================== */
.form-input,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-input:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-input,
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ==================== 表单组和标签 ==================== */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

/* 输入框前缀/后缀 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.input-wrapper .form-input {
    padding-left: 44px;
}

.input-wrapper .form-input.has-suffix {
    padding-right: 44px;
}

/* 浮动标签输入框 */
.floating-label {
    position: relative;
}

.floating-label input {
    padding-top: 20px;
    padding-bottom: 8px;
}

.floating-label label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 11px;
    color: var(--primary);
}

/* 表单提示文字 */
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 表单错误状态 */
.form-input.is-error,
.form-control.is-error {
    border-color: var(--danger);
    animation: shake 0.4s ease;
}

.form-input.is-error:focus,
.form-control.is-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

/* 成功状态 */
.form-input.is-success,
.form-control.is-success {
    border-color: var(--success);
}

.form-input.is-success:focus,
.form-control.is-success:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* 聚焦时的浮动效果 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 美化文本域 */
textarea.form-input,
textarea.form-control {
    min-height: 140px;
    line-height: 1.6;
    resize: vertical;
}

/* 美化单选/复选框 */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s;
}

.form-checkbox:hover,
.form-radio:hover {
    color: var(--primary);
}

.form-checkbox input,
.form-radio input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.form-checkbox input:checked {
    transform: scale(1.1);
}

.form-radio input {
    border-radius: 50%;
}

/* 开关样式 */
.form-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-switch input {
    display: none;
}

.switch-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    transition: all 0.3s;
}

.switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-switch input:checked + .switch-slider {
    background: var(--primary);
}

.form-switch input:checked + .switch-slider::before {
    transform: translateX(22px);
}

/* 增强按钮尺寸 */
.form-group .btn {
    padding: 14px 28px;
    font-size: 14px;
}

.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

/* ==================== 工具提示 ==================== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 8px 12px;
    background: var(--text-primary);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 动画关键帧 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 16px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .search-box input {
        width: 160px;
    }

    .search-box input:focus {
        width: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== 登录页特殊样式 ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.8s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
}

.login-form {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* ==================== 拖放上传 ==================== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-zone .hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 标签页 ==================== */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ==================== 步骤指示器 ==================== */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step.active .step-number,
.step.completed .step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.step.active .step-title {
    color: var(--primary);
}

/* ==================== 通知提示 ==================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toast.success .toast-icon {
    background: var(--success);
    color: white;
}

.toast.error .toast-icon {
    background: var(--danger);
    color: white;
}

.toast.warning .toast-icon {
    background: var(--warning);
    color: white;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==================== 加载动画 ==================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* ==================== 头像 ==================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -10px;
    border: 2px solid var(--bg-secondary);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-primary { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ==================== 列表组 ==================== */
.list-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.list-group-item {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--bg-tertiary);
}

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.list-content {
    flex: 1;
}

.list-title {
    font-weight: 500;
    color: var(--text-primary);
}

.list-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 时间线 ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 14px;
    color: var(--text-primary);
}

/* ==================== 下拉菜单 ==================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ==================== 浮动元素动画 ==================== */
.float-element {
    animation: floatBounce 4s ease-in-out infinite;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-element-delay-1 { animation-delay: -1s; }
.float-element-delay-2 { animation-delay: -2s; }
.float-element-delay-3 { animation-delay: -3s; }

/* ==================== 霓虹文字 ==================== */
.neon-text {
    color: var(--primary);
    text-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow:
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 20px var(--primary);
    }
    to {
        text-shadow:
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 80px var(--primary);
    }
}

/* ==================== 渐变边框 ==================== */
.gradient-border {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ==================== 玻璃态效果 ==================== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 美化筛选栏 ==================== */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* 美化搜索框 */
.filter-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 320px;
}

.filter-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-search input:focus {
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.filter-search input:focus + i,
.filter-search input:hover + i {
    color: var(--primary);
}

/* 美化选择框 */
.filter-select {
    position: relative;
    min-width: 140px;
}

.filter-select select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.15);
    outline: none;
}

.filter-select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
    transition: border-color 0.3s;
}

.filter-select select:focus + ::after,
.filter-select:hover::after {
    border-top-color: var(--primary);
}

/* 日期选择器美化 */
.filter-date {
    position: relative;
    min-width: 160px;
}

.filter-date input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-date input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* 筛选标签 */
.filter-tags,
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.filter-tag,
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover,
.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-tag.active,
.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-tag .remove,
.filter-tab .remove {
    font-size: 12px;
    opacity: 0.7;
}

.filter-tag .remove:hover,
.filter-tab .remove:hover {
    opacity: 1;
}

/* 日期筛选器 */
.date-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.date-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-filter-label i {
    color: var(--primary);
}

.date-filter-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-filter input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.date-filter input[type="date"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 搜索条件组合 */
.search-conditions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-conditions .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.search-conditions .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-conditions .search-box i {
    color: var(--text-muted);
}

.search-conditions .search-box input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    min-width: 200px;
}

.search-conditions .search-box input:focus {
    outline: none;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.date-range-picker:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date-range-picker i {
    color: var(--text-muted);
    font-size: 14px;
}

.date-range-picker input[type="date"] {
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    min-width: 110px;
}

.date-range-picker input[type="date"]:focus {
    outline: none;
}

.date-range-picker span {
    color: var(--text-muted);
    font-size: 13px;
}

.date-filter span {
    color: var(--text-muted);
    font-size: 13px;
}

/* 筛选操作按钮 */
.filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-actions .btn {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

/* 筛选分组 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: var(--radius);
    border: 1px dashed rgba(99, 102, 241, 0.2);
}

.filter-group-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 高级筛选展开 */
.filter-advanced {
    width: 100%;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    display: none;
}

.filter-advanced.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式筛选栏 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search {
        max-width: none;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* ==================== 分页组件 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.pagination-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* page-btn 通用兜底样式（部分列表页使用） */
.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.page-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--text-muted);
    font-size: 14px;
}

.pagination .fas {
    font-size: 12px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.pagination-select:hover {
    border-color: var(--primary);
}

.pagination-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}


/* ==================== 表格分页组件 ==================== */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.table-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-pagination .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.table-pagination .pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.table-pagination .pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.table-pagination .pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.table-pagination .pagination-btn:first-child,
.table-pagination .pagination-btn:last-child {
    padding: 0 12px;
    font-size: 13px;
}

/* 响应式分页 */
@media (max-width: 640px) {
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .table-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
