e undone.' : '确定要清空所有历史记录吗？这个操作不可撤销。';
    if (confirm(confirmMessage)) {
        history = [];
        localStorage.removeItem('audioGeneratorHistory');
        updateHistoryUI();
        showStatus(lang === 'en' ? 'History cleared.' : '历史记录已清空', 'success');
    }
}
function saveHistory() {
    localStorage.setItem('audioGeneratorHistory', JSON.stringify(history.map(item => ({...item, blob: null }))));
}
function loadHistory() {
    const savedHisto