{% extends "base.html" %} {% block content %} {# ── Executive Summary ── #} {% if executive_summary %}
{{ executive_summary }}
{% endif %} {# ── Macro: standard item card ── #} {% macro render_item(item, card_class="item-card") %}

{{ item.title }}

{{ item.summary }}

{% if item.key_facts %}
{% for fact in item.key_facts %} 📌 {{ fact }} {% endfor %}
{% endif %} {% if item.verdict %}
🦞 {{ item.verdict }}
{% endif %}
{% if item.tags %}
{% for tag in item.tags %} {{ tag }} {% endfor %}
{% else %}
{% endif %} {% if item.sources %} {% endif %}
{% endmacro %} {# ── Macro: review item card with claw_comment ── #} {% macro render_review_item(item) %}

{{ item.title }}

{{ item.summary }}

{% if item.key_facts %}
{% for fact in item.key_facts %} 📌 {{ fact }} {% endfor %}
{% endif %} {% if item.claw_comment %}

🦞 {{ item.claw_comment.highlight }}

{% if item.claw_comment.concerns %}
{% for concern in item.claw_comment.concerns %}

⚠️ {{ concern }}

{% endfor %}
{% endif %}

📌 {{ item.claw_comment.verdict }}

{% endif %}
{% if item.tags %}
{% for tag in item.tags %} {{ tag }} {% endfor %}
{% else %}
{% endif %} {% if item.sources %} {% endif %}
{% endmacro %} {# ── Sections ── #} {% for section in sections %} {% set sec_type = section.section_type %} {% set sec_items = section["items"] %} {% set icons = {"hero": "🔥", "review": "🦞", "analysis": "📊", "items": "📰", "strategy": "📋"} %} {% set default_icon = icons.get(sec_type, "📰") %} {% set card_classes = {"hero": "item-card hero-card", "analysis": "item-card analysis-card"} %} {% set card_class = card_classes.get(sec_type, "item-card") %}
{{ section.icon or default_icon }}

{{ section.heading }}

{% if section.prose %}
{{ section.prose }}
{% endif %} {% for item in sec_items %} {% if sec_type == 'review' %} {{ render_review_item(item) }} {% else %} {{ render_item(item, card_class=card_class) }} {% endif %} {% endfor %}
{% endfor %} {# ── Time coverage gaps ── #} {% if time_range and time_range.coverage_gaps %}
⚠️ 数据覆盖缺口:{{ time_range.coverage_gaps | join(';') }}
{% endif %} {# ── Sources used ── #} {% if metadata and metadata.sources_used %}
数据来源:{{ metadata.sources_used | join(' · ') }}
{% endif %} {% endblock %}