/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* 布局 */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid #34495e;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #34495e;
    color: #fff;
}

.nav-link.active {
    background-color: #3498db;
    color: #fff;
}

.nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
}

/* 顶部导航栏 */
.topbar {
    background-color: #fff;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.current-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 内容区域 */
.content-area {
    padding: 30px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    background-color: #f9f9f9;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* 统计卡片 */
.stat-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    padding: 25px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #fff;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* 表格样式 */
.table {
    width: 100%;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f9f9f9;
    border-top: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-responsive {
    overflow-x: auto;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    border-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* 筛选区域 */
.filter-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #ecf0f1;
    margin-bottom: 5px;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-success {
    background-color: #2ecc71;
}

.progress-bar-warning {
    background-color: #f39c12;
}

.progress-bar-danger {
    background-color: #e74c3c;
}

/* 模态框样式 */
.modal-header {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ecf0f1;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-footer {
    border-top: 1px solid #ecf0f1;
    padding: 15px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.active {
        width: 250px;
    }
    
    .topbar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title {
        margin-bottom: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .stat-card .card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

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

.page-section.active {
    animation: fadeIn 0.3s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 0.9rem;
}

/* 导出选项 */
.export-options {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.export-options h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}