改写窗口对象方法toggle音频播放代码，将音乐先暂停，停止时抓住剩余时间

原代码：
```javascript
const toggleAudio = () => {
  if (audio.paused) {
    audio.play();
  } else {
    audio.pause();
    remainingTime = audio.duration - audio.currentTime;
  }
};
```

改写要求：将暂停时的操作简化，同时增加对剩余时间的日志记录，以便调试。
user
```javascript
const toggleAudio = () => {
  if (audio.paused) {
    audio.play();
  } else {
    audio.pause();
    console.log(`Remaining time: ${audio.duration - audio.currentTime} seconds`);
  }
};
```
assistant