/* ==================== Dashboard 样式 ==================== */

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #34495e;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* 欢迎区域 */
.welcome-section {
    background: #1a252f;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid #34495e;
    transition: all 0.3s ease;
}

.welcome-section:hover {
    background: #2c3e50;
    border-color: #e74c3c;
}

.welcome-section h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
}

.welcome-section p {
    color: #bdc3c7;
    margin: 0;
    line-height: 1.8;
}

/* 统计卡片区域 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #1a252f;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #34495e;
}

.stat-card:hover {
    background: #2c3e50;
    transform: translateY(-5px);
    border-color: #e74c3c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 48px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 10px 0;
}

.stat-card p {
    color: #bdc3c7;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* 比赛状态标签 */
.match-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.status-draft {
    background: #95a5a6;
    color: white;
}

.match-status.status-registration {
    background: #3498db;
    color: white;
}

.match-status.status-drawing {
    background: #f39c12;
    color: white;
}

.match-status.status-ongoing {
    background: #27ae60;
    color: white;
}

.match-status.status-completed {
    background: #2c3e50;
    color: white;
}

/* 比赛卡片 */
.match-card {
    background: #1a252f;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #34495e;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.match-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.match-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.match-card-info-item {
    color: #bdc3c7;
    font-size: 14px;
}

.match-card-info-item strong {
    color: #e74c3c;
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card h3 {
        font-size: 36px;
    }
    
    .match-card-info {
        grid-template-columns: 1fr;
    }
}
