贺新郎(三和),
刘克庄 ,宋代, 谪下神清洞。更遭他、揶揄黠鬼,路旁遮送。薄命书生鸡肋尔,却笑尊拳忒重。破故纸、谁教_弄。一枕茅檐春睡美,便周公、大圣何须梦。门前客,任题凤。
卜邻羊仲并求仲。愿春来、西畴雨足,土膏犁动。白发巡官占岁稔,不问京房翼奉。槔与瓮、从今无用。醉与老农同击壤,莫随人、投献嘉禾颂。在陋巷,胜华栋。
// 状态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;
}