{# 第一部分:总体表现 #}

{{ t.part('part1') }}

{{ t.p1_h1_overall_status }}

{{ t.total_score }}
{{ "%.1f"|format(overall.score) }}
{{ "%+.1f"|format(overall.score - overall.district_avg) }} {{ t.vs_district_avg }} ({{ "%.1f"|format(overall.district_avg) }})
{{ t.rank_in_district }}
{{ overall.rank_in_district }}/{{ overall.total_schools }}
{% if overall.rank_in_city is defined and overall.total_schools_in_city %}
{{ t.rank_in_city }}
{{ overall.rank_in_city }}/{{ overall.total_schools_in_city }}
{% set city_pct = (overall.rank_in_city / overall.total_schools_in_city * 100) | round(1) %}
{{ t.rank_in_top_pct.format(pct=city_pct) }}
{% endif %}
{{ t.same_type_avg }}
{{ "%.1f"|format(overall.same_type_avg) }}
{{ "%+.1f"|format(overall.score - overall.same_type_avg) }} {{ t.vs_same_type }}
{{ t.cluster_type }}
{% set cluster_raw = (overall.cluster or '') %} {% set is_good = ('较好' in cluster_raw) or ('High' in cluster_raw) or ('high' in cluster_raw) %} {{ t.cluster_label(cluster_raw) }}
{{ t.fig2_0a }}
{{ t.fig2_0b }}
{{ llm_sections.get('part2_caption_profile', '') | safe }}
{{ t.fig2_1 }}
{{ t.fig2_2 }}
{{ llm_sections.get('part2_caption_scores', '') | safe }}
{{ t.fig2_3 }}
{{ t.fig2_4 }}
{{ llm_sections.get('part2_caption_cluster', '') | safe }}
{{ t.fig2_5 }}
{{ t.fig2_6 }}
{{ llm_sections.get('part2_caption_ranking', '') | safe }}
{{ t.fig2_7 }}
{{ llm_sections.get('part2_caption_correlation', '') | safe }}
{{ llm_sections.get('part2_overview', '

' + t.loading + '

') | safe }}
{# ===== 紧急预警框(仅在存在预警子维度时显示) ===== #} {% if llm_sections.get('part2_alert') %}

{{ t.alert_title }}

{{ llm_sections.get('part2_alert') | safe }}
{% endif %} {# ===== 学校定位与实际表现差距分析(所有学校均显示) ===== #} {% if llm_sections.get('part2_positioning_gap') %}

{{ t.positioning_gap_title }}

{{ llm_sections.get('part2_positioning_gap') | safe }}
{% endif %}

{{ t.p1_h1_dim_status }}

{% if overall.total_schools_in_city %}{% endif %} {% for dim_name, dim_data in dimensions.items() %} {% if overall.total_schools_in_city %} {% endif %} {% endfor %}
{{ t.dimension }} {{ school_display }} {{ t.district_avg }} {{ t.same_type_avg }} {{ t.diff_vs_district }} {{ t.rank_in_district }}{{ t.rank_in_city }}
{{ t.dim(dim_name) }} {{ "%.2f"|format(dim_data.score) }} {{ "%.2f"|format(dim_data.district_avg) }} {{ "%.2f"|format(dim_data.same_type_avg) }} {{ "%+.2f"|format(dim_data.diff_district) }} {{ dim_data.rank_in_district }}/{{ overall.total_schools }}{{ dim_data.rank_in_city if dim_data.rank_in_city is defined else '-' }}/{{ overall.total_schools_in_city }}