木兰花慢(为静春赋),
张炎 ,宋代, 幽栖身懒动,邃庭悄、日偏长。甚不隐山林,不喧车马,不断生香。澄心淡然止水,笑东风、引得落花忙。慵对鱼翻暗藻,闲留莺管垂杨。
徜徉。净几明窗。穿窈窕、染芬芳。看白鹤无声,苍云息影,物外行藏。桃源去尘更远,问当年、何事识渔郎。争似重门昼掩,自看生意池塘。
// 状态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;
}