path = r'c:\NeoZQYY\apps\miniprogram\miniprogram\pages\board-finance\board-finance.wxss'
with open(path, 'r', encoding='utf-8') as f:
    content = f.read()

old = '.gift-col--name {\n  text-align: left;\n  font-weight: 500;\n  align-items: flex-start;\n}'
new = '.gift-col--name {\n  text-align: left;\n  font-weight: 500;\n  align-items: flex-start;\n}\n\n/* 左列标题行：标题靠左，环比靠右 */\n.gift-col--name .gift-label-line {\n  display: flex;\n  width: 100%;\n  justify-content: space-between;\n  align-items: center;\n  gap: 8rpx;\n}'

if old in content:
    content = content.replace(old, new, 1)
    with open(path, 'w', encoding='utf-8') as f:
        f.write(content)
    print('OK')
else:
    print('NOT FOUND')
