/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 布局样式 */
.container-fluid {
    padding: 0;
}

.sidebar {
    background: linear-gradient(120deg, #155799, #159957);
    color: white;
    height: 100vh;
    position: fixed;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.main-content {
    margin-left: 250px;
    padding-top: 20px;
}

/* 侧边栏样式 */
.sidebar-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    gap: 10px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 顶部导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    margin-bottom: 30px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #155799;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* 内容区域样式 */
.content {
    padding: 0 30px 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    color: #333;
}

/* 统计卡片样式 */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-users {
    background: rgba(21, 87, 153, 0.1);
    color: #155799;
}

.icon-game {
    background: rgba(21, 153, 87, 0.1);
    color: #159957;
}

.icon-store {
    background: rgba(153, 21, 87, 0.1);
    color: #991557;
}

.icon-chart {
    background: rgba(153, 87, 21, 0.1);
    color: #995715;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    margin: 0;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.table-header h3 {
    font-size: 20px;
    margin: 0;
}

/* 状态标签样式 */
.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active, .status.enabled {
    background: rgba(21, 153, 87, 0.1);
    color: #159957;
}

.status.inactive, .status.disabled {
    background: rgba(153, 21, 87, 0.1);
    color: #991557;
}

/* 按钮样式 */
.btn-primary {
    background: #155799;
    border: none;
}

.btn-primary:hover {
    background: #0d4a82;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.btn-cancel {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

/* 表单样式 */
.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    display: none;
}

.form-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-header h3 {
    font-size: 20px;
    margin: 0;
}

.image-preview {
    width: 100px;
    height: 100px;
    border: 1px dashed #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
}

/* 分页样式 */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.pagination-info {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-menu a {
        padding: 10px;
        font-size: 14px;
    }
    
    .content {
        padding: 0 15px 15px;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
}