望远行·绣帏睡起,
柳永 ,宋代, 绣帏睡起。残妆浅,无绪匀红补翠。藻井凝尘,金梯铺藓。寂寞凤楼十二。风絮纷纷,烟芜苒苒,永日画阑,沈吟独倚。望远行,南陌春残悄归骑。
凝睇。消遣离愁无计。但暗掷、金钗买醉。对好景、空饮香醪,争奈转添珠泪。待伊游冶归来,故故解放翠羽,轻裙重系。见纤腰,图信人憔悴。
// 状态1:音频正在播放 → 暂停
if (audio && !audio.paused) {
audio.pause();
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
return;
}
// 状态2:音频已暂停 → 尝试继续播放,加catch兜底
if (audio && audio.paused) {
audio.play().then(()=>{
btn.innerText = "暂停";
btn.style.backgroundColor = 'green';
btn.style.color = 'white';
}).catch(e=>{
console.error("续播失败Safari限制:",e);
alert("苹果浏览器续播受限,将重新生成音频");
audio = null;
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
})
return;
}