<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <title>{{reportTitle}}</title>
    <style>
        @page {
            size: A4;
            margin: 0;
        }

        body {
            margin: 0;
            padding: 0;
            background: #f5f7fa;
            color: #263241;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 14px;
            line-height: 1.72;
        }

        .report-container {
            max-width: 1200px;
            margin: 0 auto;
            background: #fff;
            border: 1px solid #e7edf5;
            border-radius: 14px;
            padding: 32px;
        }

        .report-title {
            margin: 0 0 8px;
            color: #233f76;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 28px;
            font-weight: 700;
            text-align: center;
        }

        .report-subtitle {
            margin: 0 0 24px;
            color: #68768a;
            font-family: MiSans, ReportFont, sans-serif;
            text-align: center;
        }

        .result-header {
            margin: 0 0 22px;
            padding: 22px 24px;
            background: #fff7ed;
            border: 1px solid #ffe1c2;
            border-radius: 14px;
            text-align: center;
            page-break-inside: avoid;
        }

        .completion-title {
            margin: 0 0 6px;
            color: #9a4f00;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 22px;
            font-weight: 700;
        }

        .completion-subtitle {
            margin: 0;
            color: #7b5a2f;
        }

        .result-grid {
            width: 100%;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 14px 0;
            margin-bottom: 26px;
        }

        .result-card {
            width: 25%;
            vertical-align: top;
            background: #f8fbff;
            border: 1px solid #e2eaf5;
            border-radius: 12px;
            padding: 14px;
            text-align: center;
            page-break-inside: avoid;
        }

        .result-value {
            color: #ff7d00;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 24px;
            font-weight: 700;
            line-height: 1.2;
        }

        .result-label {
            margin-top: 6px;
            color: #56657a;
            font-size: 13px;
        }

        .section {
            margin-top: 24px;
            page-break-inside: avoid;
        }

        .section-title {
            margin: 0 0 14px;
            border-left: 6px solid #ff7d00;
            padding-left: 12px;
            color: #233f76;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 20px;
            font-weight: 700;
        }

        .comparison-section {
            margin-top: 0;
            margin-bottom: 50px;
        }

        .comparison-section .section-title {
            margin: 0 0 25px;
        }

        .card {
            background: #fafbfc;
            border: 1px solid #eaeef5;
            border-radius: 10px;
            padding: 25px;
            page-break-inside: avoid;
        }

        .chart-box {
            width: 100%;
            height: 260px;
            margin: 10px 0;
            background: #f8fbff;
            border-radius: 10px;
        }

        .data-text {
            color: #444;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 14px;
            line-height: 1.8;
        }

        .chart-box svg {
            display: block;
            width: 100%;
            height: 100%;
        }

        .chart-value {
            fill: #233f76;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 13px;
            font-weight: 700;
        }

        .chart-label {
            fill: #56657a;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 12px;
        }

        .chart-tick-label {
            fill: #68768a;
            font-family: MiSans, ReportFont, sans-serif;
            font-size: 11px;
        }

        .detail-text {
            margin: 8px 0;
            color: #3d4a5d;
            font-family: MiSans, ReportFont, sans-serif;
        }

        .highlight {
            color: #ff7d00;
            font-weight: 700;
        }

        .hit-panel {
            background: #f8fbff;
            border: 1px solid #e2eaf5;
            border-radius: 12px;
            padding: 18px;
            page-break-inside: avoid;
        }

        .hit-stats {
            width: 100%;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 12px 0;
            margin-bottom: 14px;
        }

        .hit-stat {
            width: 25%;
            background: #fff;
            border: 1px solid #e7edf5;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .hit-stat-label {
            color: #68768a;
            font-size: 12px;
        }

        .hit-stat-value {
            color: #233f76;
            font-size: 18px;
            font-weight: 700;
        }

        .word-list {
            margin-top: 10px;
        }

        .word-item {
            display: inline-block;
            margin: 0 8px 8px 0;
            padding: 5px 12px;
            border-radius: 999px;
            background: #fff1e7;
            color: #9a4f00;
            font-family: MiSans, ReportFont, sans-serif;
            font-weight: 600;
        }

        .word-empty {
            padding: 14px;
            border: 1px dashed #c6d2e3;
            border-radius: 10px;
            color: #68768a;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="report-container">
    <h1 class="report-title">{{reportTitle}}</h1>
    <p class="report-subtitle">{{reportSubtitle}}</p>

    <div class="result-header">
        <h2 class="completion-title">{{completionTitle}}</h2>
        <p class="completion-subtitle">{{completionSubtitle}}</p>
    </div>

    <table class="result-grid" role="presentation">
        <tr>
            <td class="result-card">
                <div class="result-value">{{vocabularyGrowthText}}</div>
                <div class="result-label">词汇量提升（个）</div>
            </td>
            <td class="result-card">
                <div class="result-value">{{paperKnownWordsGrowthText}}</div>
                <div class="result-label">试卷熟词提升（个）</div>
            </td>
            <td class="result-card">
                <div class="result-value">{{unknownWordHitRateText}}</div>
                <div class="result-label">真题生词命中率</div>
            </td>
            <td class="result-card">
                <div class="result-value">{{learningEfficiencyText}}</div>
                <div class="result-label">学习效率提升</div>
            </td>
        </tr>
    </table>

    <div class="section comparison-section">
        <h2 class="section-title">模块一：词汇量对比</h2>
        <div class="card">
            <div class="chart-box">{{vocabularyComparisonChart}}</div>
            <div class="data-text">训练前词汇量：<span class="highlight">{{vocabularyBeforeText}}</span><br/>
                训练后词汇量：<span class="highlight">{{vocabularyAfterText}}</span><br/>
                本次提升：<span class="highlight">{{vocabularyGrowthDetailText}}</span><br/>
                {{stageVocabularyLabel}}：<span class="highlight">{{stageVocabularyText}}</span><br/>
                掌握率：<span class="highlight">{{studentVocabMasteryBeforeText}} -&gt; {{studentVocabMasteryAfterText}}</span><br/>
                掌握率提升：<span class="highlight">{{studentVocabMasteryImprovementText}}</span></div>
        </div>
    </div>

    <div class="section comparison-section">
        <h2 class="section-title">模块二：试卷熟词量对比</h2>
        <div class="card">
            <div class="chart-box">{{paperKnownWordsComparisonChart}}</div>
            <div class="data-text">训练前熟词量：<span class="highlight">{{paperKnownWordsBeforeText}}</span><br/>
                训练后熟词量：<span class="highlight">{{paperKnownWordsAfterText}}</span><br/>
                本次提升：<span class="highlight">{{paperKnownWordsGrowthDetailText}}</span><br/>
                试卷标题：<span class="highlight">{{testPaperTitle}}</span><br/>
                试卷总词量：<span class="highlight">{{testPaperWordCountText}}</span><br/>
                训练前/后生词：<span class="highlight">{{testPaperUnknownWordsBeforeText}} -&gt; {{testPaperUnknownWordsAfterText}}</span><br/>
                试卷词率：<span class="highlight">{{testPaperMasteryRateBeforeText}} -&gt; {{testPaperMasteryRateAfterText}}</span><br/>
                试卷词率提升：<span class="highlight">{{testPaperMasteryRateImprovementText}}</span></div>
        </div>
    </div>

    <div class="section">
        <h2 class="section-title">模块三：实考生词命中状况</h2>
        <div class="hit-panel">
            <table class="hit-stats" role="presentation">
                <tr>
                    <td class="hit-stat">
                        <div class="hit-stat-value">{{hitStatusUnknownWordHitRateText}}</div>
                        <div class="hit-stat-label">真题生词命中率</div>
                    </td>
                    <td class="hit-stat">
                        <div class="hit-stat-value">{{hitStatusLearningEfficiencyText}}</div>
                        <div class="hit-stat-label">学习效率提升</div>
                    </td>
                    <td class="hit-stat">
                        <div class="hit-stat-value">{{unknownWordsBeforeText}}</div>
                        <div class="hit-stat-label">训练前生词</div>
                    </td>
                    <td class="hit-stat">
                        <div class="hit-stat-value">{{unknownWordsAfterText}}</div>
                        <div class="hit-stat-label">训练后生词</div>
                    </td>
                </tr>
            </table>
            <p class="detail-text">成功减少生词：<span class="highlight">{{reducedUnknownWordsText}}</span></p>
            <div class="word-list">{{hitWords}}</div>
        </div>
    </div>
</div>
</body>
</html>
