/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.admin-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo {
    font-size: 20px;
    font-weight: bold;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 110px);
}

.admin-sidebar {
    width: 250px;
    background-color: #34495e;
    color: white;
    padding: 20px 0;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    padding: 0;
}

.admin-sidebar li.active a {
    background-color: #2c3e50;
    border-left: 4px solid #3498db;
}

.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar a:hover {
    background-color: #2c3e50;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background-color: white;
}

.admin-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-section, .list-section {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section h3, .list-section h3 {
    margin-bottom: 20px;
    color: #34495e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    margin-right: 10px;
}

.btn {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

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

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

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #fce4e2;
    color: #e74c3c;
    border: 1px solid #fadbd8;
}

.alert.success {
    background-color: #d4efdf;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.stats-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 18px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.admin-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

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