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

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

# 1. Add "零基础学编程，" before "用AI实现工作全自动提效"
content = content.replace(
    '<span class="highlight">\u7528AI\u5b9e\u73b0\u5de5\u4f5c\u5168\u81ea\u52a8\u63d0\u6548</span>',
    '<span class="highlight">\u96f6\u57fa\u7840\u5b66\u7f16\u7a0b\uff0c\u7528AI\u5b9e\u73b0\u5de5\u4f5c\u5168\u81ea\u52a8\u63d0\u6548</span>'
)

# 2. Remove "告别低效手动干活，用AI实现工作全自动提效" subtitle
content = content.replace(
    '    <div class="main-sub">\n      \u544a\u522b\u4f4e\u6548\u624b\u52a8\u5e72\u6d3b\uff0c\u7528AI\u5b9e\u73b0\u5de5\u4f5c\u5168\u81ea\u52a8\u63d0\u6548\n    </div>\n',
    ''
)

# 3. Fix mentor - exact text from user
# role line
content = content.replace(
    '\u542f\u8200AI\u521b\u59cb\u4eba | \u963f\u91cc\u6280\u672f\u51fa\u8eab',
    '\u542f\u8200 AI \u521b\u59cb\u4eba\uff5c\u963f\u91cc\u6280\u672f\u51fa\u8eab'
)

# desc line 1
content = content.replace(
    '\u6df7\u6c8c\u5b66\u56ed\u9996\u6279AI\u9886\u6559 | \u591a\u5bb6\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u987e\u95ee',
    '\u6df7\u6c8c\u5b66\u56ed\u9996\u6279 AI \u9886\u6559\uff5c\u591a\u5bb6\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u8d1f\u8d23\u4eba'
)

# desc line 2
content = content.replace(
    '\u6df1\u8015AI\u843d\u5730\u6559\u5b66\uff0c\u7d2f\u8ba1\u8d4b\u80fd\u6570\u767e\u4f4d\u96f6\u57fa\u7840\u804c\u573a\u4eba\u843d\u5730AI\u81ea\u52a8\u5316',
    '\u5e2e\u52a9\u6570\u767e\u540d\u975e\u6280\u672f\u4eba\u5458\u5b66\u4f1a\u7528AI\u89e3\u51b3\u5b9e\u9645\u5de5\u4f5c\u95ee\u9898'
)

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