/* =========================================
   Hexo Theme LX - Custom Styles
   Author: icewater
   说明: 大众化字体大小、舒适行高，适合手机与电脑
   ========================================= */
/* =========================
   手机端默认字体（正文与标题）
   ========================= */
body {
  font-size: 16px /* 正文字体 */;
  line-height: 1.6 /* 舒适行高 */;
  letter-spacing: 0.5px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Serif SC", serif;
}
/* 全局标题字体（手机端） */
h1 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: 600 !important;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
h4 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
/* =========================
   首页摘要 / 列表字体
   ========================= */
.post-list {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.post-list p,
.post-list li {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-bottom: 1em /* 段落间距舒适 */;
}
.post-list h2 {
  font-size: 20px;
  line-height: 1.3;
}
.post-list h3 {
  font-size: 18px;
  line-height: 1.3;
}
/* =========================
   文章正文
   ========================= */
.lx-post {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.lx-post p,
.lx-post li,
.lx-post td,
.lx-post blockquote,
.lx-post br {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-bottom: 1em /* 段落间距舒适 */;
}
.lx-post h1 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
.lx-post h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
.lx-post h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
.lx-post h4 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-weight: bold;
}
/* =========================
   响应式设置（电脑端字体适度放大）
   ========================= */
@media screen and (min-width: 768px) {
  .post-list {
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.5px;
  }
  .post-list p,
  .post-list li {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    margin-bottom: 1.2em;
  }
  .post-list h2 {
    font-size: 22px;
    line-height: 1.3;
  }
  .post-list h3 {
    font-size: 20px;
    line-height: 1.3;
  }
  .lx-post {
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.5px;
  }
  .lx-post p,
  .lx-post li,
  .lx-post td,
  .lx-post blockquote,
  .lx-post br {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    margin-bottom: 1.2em;
  }
  .lx-post h1 {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
  .lx-post h2 {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
  .lx-post h3 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
  .lx-post h4 {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
}
/* =========================
   按钮、表格、引用文字微调
   ========================= */
.btn,
a.btn {
  font-size: 14px;
  letter-spacing: 0.5px;
}
table {
  font-size: 0.875em;
  letter-spacing: 0.5px;
}
blockquote {
  font-size: 0.95em;
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin-bottom: 1em;
}
/* 列表标题（黑色、加粗） */
.post-list .title a {
  color: #000;
  font-weight: 700; /* 标题最粗 */
  text-decoration: none; /* 去掉下划线（如果有） */
}
/* 列表的日期、分类等（黑色、稍微粗一点） */
.lx-post-detail {
  font-weight: 500;
  color: #000;
}
/* 列表的摘要正文（黑色、普通粗细） */
.post-list p {
  color: #000;
  font-weight: 500;
}
/* =========================
   文章段落首行缩进
   ========================= */
.lx-post p:not(:has(img)),
.post-list p:not(:has(img)) {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin-bottom: 1em; /* 段落间距 */
  text-indent: 1.5em; /* 首行缩进1.5字符宽 */
  white-space: pre-wrap; /* 保留换行符和空格 */
}
/* =========================
   列表样式
   ========================= */
.lx-post ol,
.lx-post ul,
.post-list ol,
.post-list ul {
  list-style-position: outside; /* 编号/符号在外 */
  padding-left: 1.5em; /* 整体左缩进1.5字符宽 */
  margin: 0 0 1em 0; /* 上下间距 */
}
/* li 内文字不缩进 */
.lx-post li,
.post-list li {
  text-indent: 0 !important; /* 禁止首行缩进 */
  margin-bottom: 0.5em; /* 列表项间距 */
}
/* li 内的段落 p */
.lx-post li p,
.post-list li p {
  text-indent: 0 !important; /* 段落首行不缩进 */
  margin: 0.5em 0; /* 段落间距 */
}
