import sys
sys.stdout = open(1, 'w', encoding='utf-8', closefd=False)

with open('C:/Users/YZKJ/.openclaw/workspace/course-poster-noqr.html','r',encoding='utf-8') as f:
    content = f.read()

drink_html = '''    <!-- 赠饮 -->
    <div class="section-label" style="margin-top:24px">\u2728 报名赠饮</div>
    <div style="background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:14px">
      <div style="display:flex;gap:12px;align-items:flex-start">
        <div style="width:32px;height:32px;min-width:32px;border-radius:50%;background:linear-gradient(135deg,rgba(251,191,36,0.2),rgba(245,158,11,0.2));border:1px solid rgba(251,191,36,0.3);display:flex;align-items:center;justify-content:center;font-size:16px">\U0001f378</div>
        <div>
          <div style="font-size:14px;font-weight:600;margin-bottom:2px">鸡尾酒 \u00b7 原点</div>
          <div style="font-size:12px;color:#94a3b8;line-height:1.5">自制红茶金酒、柠檬汁、蜂蜜、苏打水</div>
        </div>
      </div>
      <div style="display:flex;gap:12px;align-items:flex-start">
        <div style="width:32px;height:32px;min-width:32px;border-radius:50%;background:linear-gradient(135deg,rgba(52,211,153,0.2),rgba(16,185,129,0.2));border:1px solid rgba(52,211,153,0.3);display:flex;align-items:center;justify-content:center;font-size:16px">\U0001f379</div>
        <div>
          <div style="font-size:14px;font-weight:600;margin-bottom:2px">无酒精饮品 \u00b7 夜夏</div>
          <div style="font-size:12px;color:#94a3b8;line-height:1.5">菠萝汁、芒果汁、柠檬汁、椰子糖</div>
        </div>
      </div>
      <div style="font-size:12px;color:#818cf8;text-align:center;padding-top:10px;border-top:1px solid rgba(255,255,255,0.04)">\U0001f381 报名即赠价值\uffe558饮品一杯（二选一）</div>
    </div>'''

# Insert after the closing </div> of footer-info
content = content.replace(
    '      </div>\n    </div>\n\n  </div>\n</div>\n</body>',
    '      </div>\n    </div>\n' + drink_html + '\n\n  </div>\n</div>\n</body>'
)

with open('C:/Users/YZKJ/.openclaw/workspace/course-poster-noqr.html','w',encoding='utf-8') as f:
    f.write(content)
print('Done!')
