body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "LXGW WenKai Screen", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.book-brand,
.book-menu,
.book-header,
.book-footer,
.book-post-title,
.book-post-date,
.book-post-description {
  letter-spacing: 0.01em;
}

.book-post-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
}

.book-post-content,
.book-post-description,
.markdown,
.markdown p,
.markdown li,
.markdown blockquote {
  line-height: 1.95;
}

.markdown p,
.markdown li {
  text-wrap: pretty;
}

.markdown h1 {
  font-size: 2.15rem;
}

.markdown h2 {
  font-size: 1.7rem;
}

.markdown h3 {
  font-size: 1.35rem;
}

.markdown blockquote {
  font-size: 0.98em;
}

.markdown code {
  font-size: 0.9em;
}

.markdown pre,
.markdown pre code,
code,
pre,
kbd,
samp {
  line-height: 1.7;
}

@media screen and (max-width: 56rem) {
  body {
    font-size: 16px;
    line-height: 1.85;
  }

  .markdown h1 {
    font-size: 1.9rem;
  }

  .markdown h2 {
    font-size: 1.5rem;
  }
}

code,
pre,
kbd,
samp {
  font-family: Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
}

/* 图片居中 - 仅针对使用 article layout 的页面 */
.book-article-custom img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 段落首行缩进 2 字符 - 仅针对使用 article layout 的页面 */
.book-article-custom p {
  text-indent: 2em !important;
}
