/* 引入思源宋体（Noto Serif SC）- 常用字重 */
/* 使用中科大 LUG 提供的 Google Fonts 镜像，加速中国大陆访问 */
@import url('https://fonts.proxy.ustclug.org/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap');

/* ------------------------------------------- */
/* 可选：如果你想确保网站所有中文正文都使用此字体，可以添加以下样式 */
/* 注意：请确保你在 _config.fluid.yml 中设置了 font_family: "Noto Serif SC", serif */

/* 为正文、段落和列表等元素应用字体 */
/* body {
    font-family: "Noto Serif SC", serif !important;
} */

/* 为文章内容（Fluid主题内）应用字体 */
/* .post-content {
    font-family: "Noto Serif SC", serif !important;
} */
 .post-content p {
    /* 首行缩进两个字符 */
    text-indent: 2em;
}
/* --- 让文章中的图片自动居中 --- */

/* 1. 针对没有链接的图片 (结构: <p><img></p>) */
article p > img:only-child {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 可选：加个小阴影 */
}

/* 2. 针对有链接的图片 (结构: <p><a><img></a>) */
/* 这在 Fluid 主题中很常见 (fancybox 灯箱)  */
article p > a:only-child {
  /* 检查这个 a 标签是不是只包含一个 img */
  /* 如果是，就把 'a' 标签自己变成块级并居中 */
  display: block;
  text-align: center; /* 居中 'a' 标签内的 'img' */
}

/* 确保 'a' 标签内的 'img' 表现正常 */
article p > a:only-child > img {
   /* display: block; 
      margin: 0 auto; 
      上面两行通常不需要了，因为 text-align: center 已经搞定
   */
}