/* 强制所有图片说明（Caption）及图片居中对齐 */
figure,
.figure {
  text-align: center;
}

figure figcaption,
.figure-caption,
figcaption {
  text-align: center !important;
  text-indent: 0 !important;
}

figure p,
.figure p,
.quarto-float p,
.quarto-figure p,
div.quarto-figure p {
  text-indent: 0 !important;
  margin-bottom: 0;
}

figure img,
.figure img,
.quarto-figure img,
div.quarto-figure-center img,
img.figure-img,
img.img-fluid {
  max-width: min(100%, 560px) !important;
  max-height: 520px !important;
  object-fit: contain !important;
  height: auto !important;
  display: block !important;
  margin: 1.2rem auto !important;
  border-radius: 4px;
}

/* 中文排版：段落开头首行缩进 2 个字符 */
p {
  text-indent: 2em !important;
}

/* 移除二级标题（## 副标题）下方的横线 */
h2,
.level2 h2,
h2.anchored {
  border-bottom: none !important;
}

/* 音频组件居中对齐与取消下载选项 */
audio {
  display: block !important;
  margin: 1.5rem auto !important;
  max-width: 540px !important;
  width: 100% !important;
}

/* 隐藏 Chromium / WebKit 浏览器的音频下载按钮 */
audio::-webkit-media-controls-download-button {
  display: none !important;
}
audio::-webkit-media-controls-enclosure {
  overflow: hidden !important;
}