pre,
code {
  font-family: consolas, Menlo, monospace, 'PingFang SC', 'Microsoft YaHei';
}
code {
  border-radius: 3px;
  font-size: 0.875em;
  padding: 2px 4px;
  overflow-wrap: break-word;
}
figure.highlight {
  overflow: auto;
  position: relative;
  background-color: #fff;
  border-radius: calc(var(--bs-border-radius));
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
figure.highlight pre {
  border: 0;
  margin: 0;
  padding: 10px 0;
}
figure.highlight table {
  border: 0;
  margin: 0;
  width: auto;
}
figure.highlight td {
  border: 0;
  padding: 0;
}
figure.highlight .gutter {
  -webkit-user-select: none;
  user-select: none;
}
figure.highlight .gutter pre {
  background: var(--highlight-gutter-background);
  color: var(--highlight-gutter-foreground);
  padding-left: 10px;
  padding-right: 10px;
  text-align: right;
  border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
figure.highlight .code pre {
  padding-left: 10px;
  width: 100%;
}
figure.highlight .marked {
  background: rgba(0,0,0,0.3);
}
pre .caption {
  margin-bottom: 10px;
}
.gist table {
  width: auto;
}
.gist table td {
  border: 0;
}
pre {
  overflow: auto;
  padding: 10px;
}
pre code {
  background: none;
  padding: 0;
  text-shadow: none;
}
.comment,
.quote {
  color: #a0a1a7;
  font-style: italic;
}
.doctag,
.keyword,
.formula {
  color: #a626a4;
}
.section,
.name,
.selector-tag,
.deletion,
.subst {
  color: #e45649;
}
.literal {
  color: #0184bb;
}
.string,
.regexp,
.addition,
.attribute,
.meta .string {
  color: #50a14f;
}
.attr,
.variable,
.template-variable,
.type,
.selector-class,
.selector-attr,
.selector-pseudo,
.number {
  color: #986801;
}
.symbol,
.bullet,
.link,
.meta,
.selector-id,
.title {
  color: #4078f2;
}
.built_in,
.title.class_,
.class .title {
  color: #c18401;
}
.emphasis {
  font-style: italic;
}
.strong {
  font-weight: bold;
}
.link {
  text-decoration: underline;
}
/* 确保所有文本内容都能正确换行 */
body {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* 设置非第一个文章模块间距 */
.post:not(:first-of-type) {
  padding-top: 4em;
}
/* checkbox 列表对齐 */
ul li:has(input[type="checkbox"]) {
  list-style: none;
  margin-left: -1em;
}
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.category-list {
  font-size: large;
  list-style: none;
}
.category-list .category-list-count {
  font-size: small;
  color: #555;
  font-weight: bold;
  line-height: 1;
  margin-left: 6px;
  padding: 1px 4px;
}
