/* ============================================================
   SJB 2026 WORLD CUP PREDICTION — 主样式
   配色：白底 + 蓝色主题 + 灰色辅助
   ============================================================ */

:root {
    --sjb-blue: #0d6efd;
    --sjb-blue-dark: #0a58ca;
    --sjb-green: #198754;
    --sjb-red: #dc3545;
    --sjb-gray: #6c757d;
    --sjb-light: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 卡片 */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-header {
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

/* 比分显示 */
.score-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sjb-blue-dark);
}
.live-badge {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 晋级图 */
.bracket-wrapper {
    min-height: 400px;
    overflow-x: auto;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 200px;
    padding: 10px;
}
.bracket-match {
    background: white;
    border: 2px solid var(--sjb-blue);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.2s;
}
.bracket-match:hover {
    border-color: var(--sjb-blue-dark);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}
.bracket-match .team-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.bracket-match .team-score {
    font-weight: 700;
    color: var(--sjb-blue-dark);
}
.bracket-match .winner {
    color: var(--sjb-green);
}
.bracket-connector {
    width: 30px;
    border-right: 2px solid #ccc;
}

/* 维度进度条 */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}
.progress-bar {
    transition: width 0.6s ease;
}

/* 管理后台 */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--sjb-gray);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .bracket-round {
        min-width: 140px;
    }
    .bracket-match {
        min-width: 140px;
        padding: 6px 8px;
    }
    .display-6 {
        font-size: 1.5rem;
    }
}

/* 预测弹窗 */
.modal-body .list-group-item {
    border-left: none;
    border-right: none;
}

/* 首页快速入口 */
.card h3 {
    font-size: 3rem;
}

/* 阶段筛选按钮 */
.stage-filter.active {
    background-color: var(--sjb-blue);
    color: white;
}
