{% extends "base.html" %} {% block content %} {# Executive Summary #} {% if executive_summary %}
{{ executive_summary }}
{% endif %} {# ── Macro: standard item card (non-review) — shows verdict only ── #} {% macro render_item(item, accent_class="bg-base-100 border-base-300") %}

{{ item.title }}

{{ item.summary }}

{% if item.key_facts %} {% endif %} {% if item.verdict %}

🦞 {{ item.verdict }}

{% endif %} {% if item.tags %}
{% for tag in item.tags %} {{ tag }} {% endfor %}
{% endif %} {% if item.sources %}
📎 {{ item.sources | join(' · ') }}
{% endif %}
{% endmacro %} {# ── Macro: review item card — shows full claw_comment ── #} {% macro render_review_item(item) %}

{{ item.title }}

{{ item.summary }}

{% if item.key_facts %} {% endif %} {% if item.claw_comment %}

🦞 Claw 锐评:{{ item.claw_comment.highlight }}

{% if item.claw_comment.concerns %}

⚠️ {{ item.claw_comment.concerns | join(';') }}

{% endif %}

📌 {{ item.claw_comment.verdict }}

{% endif %} {% if item.tags %}
{% for tag in item.tags %} {{ tag }} {% endfor %}
{% endif %} {% if item.sources %}
📎 {{ item.sources | join(' · ') }}
{% 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, "📰") %} {% if sec_type == 'strategy' %} {# Strategy: all items inside one shared card #}

{{ section.icon or default_icon }} {{ section.heading }}

{% if section.prose %}
{{ section.prose }}
{% endif %} {% for item in sec_items %}

{{ item.title }}

{{ item.summary }}

{% endfor %}
{% else %} {# Standard layout: section header + item cards #}

{{ 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) }} {% elif sec_type == 'hero' %} {{ render_item(item, accent_class="bg-base-100 border-primary/30") }} {% else %} {{ render_item(item) }} {% endif %} {% endfor %}
{% endif %} {% 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 %}