<div class="funnel-step-content" style="animation: fadeIn 0.3s ease-in-out;">
    <div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;">
        <div>
            <h3 style="margin: 0 0 6px 0;">阶段 2: 资产方向建议</h3>
            <p style="margin: 0; color: var(--color-text-secondary); font-size: 13px;">
                本阶段把宏观准入结果翻译成权益、债券、商品、现金的系统建议，不直接下单。
            </p>
        </div>
        <span class="badge badge-neutral">系统建议</span>
    </div>
    <div class="attention-card" style="margin-bottom: 20px; border-left: 4px solid #0f766e;">
        <div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;">
            <div>
                <h4 class="attention-card__title" style="margin-bottom: 8px;">当前决策账户</h4>
                <p style="margin: 0 0 6px 0;"><strong data-workspace-account-name>默认账户</strong></p>
                <p style="margin: 0; color: var(--color-text-muted); font-size: 13px;">
                    账户选择会保留在当前路径中，方便把系统级方向判断衔接到账户执行口径。
                </p>
            </div>
            <span class="badge badge-neutral">系统级分析</span>
        </div>
        <p style="margin: 12px 0 0 0; color: var(--color-text-secondary); font-size: 13px;">
            本阶段输出的是系统级资产方向，不会因当前账户仓位不同而改变建议比例。
            账户级交易数量、价格、止盈止损在 Step 5 生成调仓计划时确定。
        </p>
        <div class="workspace-freshness-panel">
            <div class="workspace-freshness-card">
                <div class="workspace-freshness-head">
                    <span class="workspace-freshness-title">{{ recommendation_freshness.label }}</span>
                    <span class="workspace-freshness-badge workspace-freshness-badge-{{ recommendation_freshness.badge_class }}">{{ recommendation_freshness.status_label }}</span>
                </div>
                <div class="workspace-freshness-meta">
                    <span>数据日期: {{ recommendation_freshness.observed_at_display }}</span>
                    <span>有效至: {{ recommendation_freshness.expires_at_display }}</span>
                    <span>来源: {{ recommendation_freshness.source_label }}</span>
                    <span>口径: 每晚预计算</span>
                </div>
                <div class="workspace-freshness-note">{{ recommendation_freshness.note }}</div>
            </div>
        </div>
    </div>
    
    <div class="attention-card" style="margin-bottom: 20px;">
        <h4 class="attention-card__title">配置逻辑 (Action Recommendation)</h4>
        <p style="margin-top: 10px;">{{ action_recommendation.reasoning }}</p>
        <p style="color: var(--color-text-muted); font-size: 13px; margin-top: 5px;">{{ action_recommendation.regime_contribution }} | {{ action_recommendation.pulse_contribution }}</p>
    </div>

    <div class="status-grid" style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
        <div class="attention-card">
            <h4 class="attention-card__title">建议仓位比例</h4>
            <ul style="margin-top: 15px; list-style: none; padding: 0;">
                {% for asset, weight in asset_weights.items %}
                    <li style="margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;">
                        <strong>{{ asset|title }}</strong>
                        <span class="badge badge-primary">{{ weight|floatformat:2 }}</span>
                    </li>
                {% endfor %}
            </ul>
        </div>
        
        <div class="attention-card" style="border-left: 4px solid #f59e0b;">
            <div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;">
                <h4 class="attention-card__title" style="margin: 0;">建议风险敞口上限</h4>
                <span class="badge badge-neutral">不可在此处编辑</span>
            </div>
            <div style="font-size: 36px; font-weight: 700; color: var(--color-text-primary); margin: 18px 0 8px;">
                {{ risk_budget_display_pct|floatformat:0 }}%
            </div>
            <p style="color: var(--color-text-muted); font-size: 13px; line-height: 1.6; margin: 0;">
                含义：当前宏观与 Pulse 条件下，系统建议账户对权益/风险资产的总敞口不要超过该比例。
                它不是单笔交易限额，也不是本页可调参数；后续 Step 5 会结合持仓、现金和采纳推荐生成具体数量。
            </p>
            <p style="color: var(--color-text-muted); font-size: 12px; line-height: 1.6; margin: 10px 0 0;">
                计算来源：Regime 基础风险预算 × Pulse 强弱修正，并受 Beta Gate 上限约束。若要改变个人风险偏好，请到账户设置调整风险偏好；若要改变模型阈值，请到配置中心。
            </p>
        </div>
    </div>
</div>
