{# 系统设置：2 列独立卡片 #}
<div class="settings-page settings-page--grid">
    <div class="settings-grid-2col">
        <div class="settings-grid-cell">
            {% include 'display_prefs_panel.html' %}
        </div>

        {% if display.show_settings_password %}
        <div class="settings-grid-cell">
            <div class="card settings-card settings-card--standalone">
                {% include 'password_settings_panel.html' %}
            </div>
        </div>
        {% endif %}

        {% if instance_settings.show_transfer and display.show_settings_transfer %}
        <div class="settings-grid-cell">
            <div class="card settings-card settings-card--standalone">
                <h2>永续资金划转</h2>
                <p class="settings-subcard-desc">子账户永续：资金账户与交易账户之间划转 USDT。</p>
                {% include 'instance_transfer_panel.html' %}
            </div>
        </div>
        {% endif %}

        {% if display.show_settings_export %}
        <div class="settings-grid-cell">
            <div class="card settings-card settings-card--standalone settings-card--export">
                <h2>数据导出</h2>
                <p class="settings-subcard-desc muted">CSV · v{{ instance_settings.data_export_version }}</p>
                <div class="settings-export-links-inline settings-export-links-block">
                    <a href="/export/trade_records">交易记录</a>
                    <a href="/export/journal_entries">复盘记录</a>
                    <a href="/export/key_monitors">关键位（当前）</a>
                    <a href="/export/key_monitor_history">关键位历史</a>
                </div>
            </div>
        </div>
        {% endif %}

        {% if instance_settings.options_settings_enabled and display.show_settings_options_swap %}
        <div class="settings-grid-cell">
            <div class="card settings-card settings-card--standalone">
                <h2>币种兑换</h2>
                {% include 'options_settings_swap.html' %}
            </div>
        </div>
        {% endif %}

        {% if instance_settings.options_settings_enabled and display.show_settings_options_transfer %}
        <div class="settings-grid-cell">
            <div class="card settings-card settings-card--standalone">
                <h2>期权资金划转</h2>
                {% include 'options_settings_transfer.html' %}
            </div>
        </div>
        {% endif %}

        {% if instance_settings.options_settings_enabled %}
        <div class="settings-grid-cell settings-grid-cell--full">
            {% include 'options_settings_panel.html' %}
        </div>
        {% endif %}
    </div>
</div>
