/* Random Forest 特有样式 */

/* ── 演示区：单树 vs 森林并排 ── */
.rf-demo-wrap {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rf-chart-col {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rf-chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    letter-spacing: 0.03em;
}

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

.rf-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; }

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

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

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

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

/* ── 统计卡片行 ── */
.rf-stats-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rf-stat-card {
    flex: 1;
    min-width: 110px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

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

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

.rf-stat-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* ── 步骤列表 ── */
.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; }
