/* 布局样式 */
.layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #304156;
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    background-color: #263445;
    text-align: center;
    border-bottom: 1px solid #41485c;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: #263445;
    color: white;
    border-left-color: #409eff;
}

.sidebar-menu a.active {
    background-color: #263445;
    color: white;
    border-left-color: #409eff;
}

.sidebar-menu .menu-icon {
    margin-right: 10px;
    width: 20px;
    display: inline-block;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* 顶部导航栏 */
.top-navbar {
    background-color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-navbar h2 {
    font-size: 20px;
    color: #303133;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 内容区域 */
.content-wrapper {
    padding: 30px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 14px;
    color: #909399;
    margin-bottom: 10px;
    font-weight: normal;
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #303133;
}

.stat-icon {
    font-size: 48px;
    opacity: 0.3;
}

.stat-card.primary .stat-icon {
    color: #409eff;
}

.stat-card.success .stat-icon {
    color: #67c23a;
}

.stat-card.warning .stat-icon {
    color: #e6a23c;
}

.stat-card.danger .stat-icon {
    color: #f56c6c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

