/* 后台管理系统样式 */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.admin-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    background: linear-gradient(135deg, #0c5c3c 0%, #1a7f5a 100%);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    width: 260px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    padding: 0 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.admin-nav a {
    display: block;
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    padding: 30px;
}

.header {
    background: white;
    padding: 24px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    color: #0c5c3c;
}

.user-info {
    color: #666;
    font-size: 16px;
}

/* 数据卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

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

.stat-icon {
    font-size: 48px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #0c5c3c;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 区块 */
.section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section h2 {
    font-size: 24px;
    color: #0c5c3c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

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

.data-table thead {
    background: #f5f5f5;
}

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

.data-table th {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.data-table td {
    color: #333;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f9f9f9;
}

/* 状态标签 */
.status-success {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-processing {
    display: inline-block;
    padding: 6px 12px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    display: inline-block;
    padding: 6px 12px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 排名 */
.rank-good {
    color: #2e7d32;
    font-weight: bold;
}

.rank-normal {
    color: #f57c00;
    font-weight: bold;
}

.rank-bad {
    color: #c62828;
    font-weight: bold;
}

/* 趋势 */
.trend-up {
    color: #2e7d32;
}

.trend-down {
    color: #c62828;
}

.trend-stable {
    color: #f57c00;
}

/* SEO 网格 */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.seo-card {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 10px;
}

.seo-card h3 {
    font-size: 18px;
    color: #0c5c3c;
    margin-bottom: 16px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c5c3c 0%, #1a7f5a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 92, 60, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #999 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0c5c3c;
}

/* 响应式 */
@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
    }
}
