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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f6fa;
    color: #2d3436;
}

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

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.logo h2 {
    font-size: 1.5em;
    color: #ecf0f1;
}

nav ul {
    list-style: none;
    padding: 20px 0;
}

nav ul li {
    padding: 10px 20px;
    margin: 5px 0;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 10px;
    width: 20px;
}

nav ul li.active {
    background-color: #34495e;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 顶部栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-icon i {
    color: white;
    font-size: 24px;
}

.card-info h3 {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.card-info .number {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.trend {
    font-size: 0.9em;
}

.trend.up {
    color: #2ecc71;
}

.trend.down {
    color: #e74c3c;
}

/* 图表容器 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.chart {
    height: 300px;
}

/* 最近活动列表 */
.recent-activities {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-activities h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.activity-item .time {
    min-width: 80px;
    color: #7f8c8d;
}

.activity-item .event {
    margin-left: 15px;
} 