<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{DAY_N_TITLE}}</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.8; color: #333; background: #f8f9fa; padding: 20px; }
        .container { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
        h1 { color: #2c3e50; border-bottom: 3px solid #e74c3c; padding-bottom: 10px; margin-bottom: 30px; }
        h2 { color: #34495e; margin-top: 40px; margin-bottom: 20px; }
        h3 { color: #2c3e50; margin-top: 30px; margin-bottom: 15px; }
        .section { background: #fff; margin-bottom: 20px; border-left: 4px solid #e74c3c; padding: 20px; border-radius: 0 8px 8px 0; }
        .module { background: #e8f4f8; padding: 15px 20px; margin-bottom: 15px; border-radius: 8px; font-weight: bold; color: #2980b9; }
        .math { font-family: "Times New Roman", serif; font-style: italic; }
        .equation { background: #f0f3f5; padding: 20px; margin: 20px 0; border-radius: 8px; text-align: center; font-size: 1.2em; }
        code { background: #f1f1f1; padding: 2px 6px; border-radius: 4px; font-family: "Fira Code", monospace; }
        strong { color: #e74c3c; }
        .youtube { color: #e74c3c; font-weight: bold; }
        ul { margin-left: 20px; margin-bottom: 15px; }
    </style>
</head>
<body>
    <div class="container">
        <h1>Day {{DAY_N}}: {{TOPIC_NAME}}</h1>

        <div class="section">
            <div class="module">【技术债与演进动机】</div>
            <p>{{TECHNICAL_DEBT}}</p>
        </div>

        <div class="section">
            <div class="module">【直觉建立】</div>
            <p>{{INTUITION}}</p>
            <p>🔍 <strong>视频查找关键词:</strong> <span class="youtube">{{VIDEO_KEYWORD}}</span></p>
        </div>

        <div class="section">
            <div class="module">【符号解码字典】</div>
            <p>{{SYMBOL_DECODER}}</p>
        </div>

        <div class="section">
            <div class="module">【核心推导】</div>
            <p>{{CORE_DERIVATION}}</p>
            <div class="equation">{{LATEX_FORMULA}}</div>
        </div>

        <div class="section">
            <div class="module">【工程优化点】</div>
            <p>{{OPTIMIZATION_POINTS}}</p>
        </div>

        <div class="section">
            <div class="module">【今日靶机】</div>
            <p>{{CODING_TASK}}</p>
        </div>
    </div>
</body>
</html>