/* XGBoost 特有样式 */

/* ── 主演示区 ── */
.xgb-demo-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.xgb-chart-box {
    flex: 2;
    min-width: 300px;
}

.xgb-panel {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.xgb-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.xgb-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.xgb-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.xgb-stat-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── 控制栏 ── */
.xgb-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.xgb-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.32rem 0.85rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    margin: 0;
}

.action-btn.play-btn {
    background: #1a6fe8;
    color: #fff;
    border-color: #1a6fe8;
}

.action-btn.play-btn:hover { background: #1558c0; border-color: #1558c0; }

.action-btn.reset-btn {
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}

.action-btn.reset-btn:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }

.action-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── 树列表 ── */
.xgb-tree-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 240px;
    overflow-y: auto;
}

.xgb-tree-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: border-color 0.15s;
}

.xgb-tree-item.latest {
    border-color: #1a6fe8;
    background: #eff6ff;
}

.xgb-tree-badge {
    background: #1a6fe8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.xgb-tree-rmse {
    color: #e83a1a;
    font-weight: 600;
    margin-left: auto;
}

/* ── 步骤列表（复用 style.css） ── */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.step-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #1a6fe8;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.step-content strong { display: block; margin-bottom: 0.2rem; color: #1e293b; font-size: 0.85rem; }
.step-content p { margin: 0; color: #475569; font-size: 0.8rem; line-height: 1.5; }

/* ── 参数控制栏 ── */
.xgb-param-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.xgb-param-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
    min-width: 90px;
}

.xgb-param-row input[type=range] {
    flex: 1;
    min-width: 100px;
    accent-color: #1a6fe8;
}

.xgb-param-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a6fe8;
    min-width: 36px;
    text-align: right;
}
