* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 侧边栏 */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #07C160 0%, #06ad56 100%);
    color: white;
    padding: 28px 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(7, 193, 96, 0.15);
}

.admin-sidebar h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 36px;
    text-align: center;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(2px);
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
}

/* 头部 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.admin-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #07C160, #06ad56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 卡片 */
.admin-card {
    background-color: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.stat-card {
    background: linear-gradient(135deg, #07C160 0%, #06ad56 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.25);
}

.stat-card h3 {
    font-size: 48px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-card p {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
}

/* 表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    font-weight: 600;
    color: #666;
    background-color: #fafafa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background-color: #fafafa;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #07C160 0%, #06ad56 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.25);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-danger {
    background: linear-gradient(135deg, #fa5151 0%, #e14848 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(250, 81, 81, 0.25);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 180px;
    }
    .admin-content {
        margin-left: 180px;
        padding: 20px;
    }
    .stat-card h3 {
        font-size: 36px;
    }
}
