@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
}

html, body {
  width: 100%;
}

body {
  line-height: 1.5;
  max-width: 65ch;
  margin: 0 auto;
  /* 使內容居中 */
}

a {
  text-decoration: underline;
  color: #3273dc;
}

a:hover {
  color: #3273dc;
}

nav a {
  text-decoration: none;
}

nav a.active {
  text-decoration: underline;
}

/* 引用块样式 */
blockquote {
  margin: 15px;
  padding-left: 15px;
  border-left: 2px solid #888;
  margin-bottom: 21px;
  /* 添加这行 */
}

/* 代码块样式 */
pre {
  overflow-x: auto;
  /* 内容过长时可以横向滚动 */
  margin-bottom: 21px;
  /* 与下方段落的间距 */
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1.4em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 21px;
  text-indent: 0;
}

hr {
  margin: 10px;
  border: 1px solid #eee;
}

img {
  max-width: 700px;
}

ol, ul {
  margin-left: 35px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

li {
  margin: 0;
  padding: 0;
}

li > ol, li > ul {
  margin-top: 0;
  margin-bottom: 0;
}

ol:not(:last-child) + *,
ul:not(:last-child) + * {
  margin-top: 21px;
}

p {
  margin-bottom: 21px;
}

table {
  width: 100%;
}

tbody tr:hover {
  background-color: #f5f5f5;
}

td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

th {
  padding: 8px;
  border-bottom: 1px solid #ccc;
  background: #f5f5f5;
}

a.reversefootnote {
  display: none;
}

.container-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 800px;
}

.container-header {
  width: 100%;
  padding: 10px 0;
  border-bottom: solid 1px #aaa;
  overflow: hidden;
}

.container-main {
  width: 100%;
  margin: 10px auto;
  overflow: hidden;
  min-height: 50vh;
}

.container-footer {
  padding: 10px 0;
  border-top: none;
  overflow: hidden;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.float-center {
  text-align: center;
}

.header-info {
  display: block;
  position: relative;
  margin: 10px 0;
}

.header-info-name {
  font-size: 2em;
  font-weight: bold;
}

.header-info-desc {
  font-size: 0.9em;
}

.header-main-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  /* 确保菜单项靠左对齐 */
}

.header-main-nav-item {
  display: block;
  position: relative;
  float: left;
  line-height: 24px;
  margin-right: 10px;
  /* 仅设置右外边距 */
}

/* 针对第一个菜单项，确保其左外边距为 0 */
.header-main-nav-item:first-child {
  margin-left: 0;
}

.footer-copyright {
  overflow: hidden;
}

.footer-copyright-text {
  display: block;
  position: relative;
  font-size: 14px;
}

.page-title {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 21px;
}

.page-author {
  display: none;
}

.page-content p {
  line-height: 21px;
}

.page-content img {
  display: block;
  margin: 10px auto;
}

/* 添加分类列表的样式 */
.categories-list {
  margin-top: 0;
  /* 上边距为0，避免与标题的margin重叠 */
  margin-bottom: 21px;
  /* 与下方内容的间距为21px */
}

.posts-list-item {
  display: block;
  position: relative;
  line-height: 24px;
  margin: 5px 0;
  overflow: hidden;
}

.posts-list-item-name {
  width: calc(100% - 100px);
  font-weight: 300;
}

.list-pagination {
  margin: 20px 0 10px 0;
  text-align: center;
}

.post-title {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 21px;
}

.post-content {
  /* 當內容超出寬度時自動換行 */
  overflow-wrap: break-word;
  /* 替代 word-wrap: break-word; */
  word-break: normal;
  /* 替代 word-break: break-all; */
  hyphens: auto;
  /* 在適當的地方添加連字符 */
}

.post-content p {
  line-height: 21px;
}

.post-content img {
  display: block;
  margin: 10px auto;
}

.post-info {
  line-height: 24px;
  margin: 10px 0;
}

.post-category,
.post-tag {
  margin: 0 5px 0 0;
  /* 上下外边距为 0，右外边距为 5px，左外边距为 0 */
}

.post-category:first-child,
.post-tag:first-child {
  margin-left: 0;
  /* 确保第一个分类或标签的左外边距为 0 */
}

.highlight > pre,
pre.highlight {
  line-height: 18px;
  margin: 10px 0;
  padding: 16px;
  border: 1px solid #e1e4e8;
  overflow-x: auto;
  font-size: 14px;
  text-indent: 0px;
  background-color: #fafafa;
  box-shadow: none;
}

.highlighter-rouge {
  font-size: 14px;
  background-color: #fafafa;
}

@media screen and (max-width: 768px) {
  /* reset default styles */
  /* 全局设置 box-sizing */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* 为 body 添加左右内边距 */
  body {
    padding-left: 15px;
    padding-right: 15px;
  }

  img {
    width: 100%;
    max-width: 300px;
  }

  /* Posts list */
  .list-pagination {
    margin: 10px 0 5px 0;
  }

  /* Footer */
  .footer-copyright .float-left,
  .footer-copyright .float-right {
    float: none;
  }
}
.print-post-author {
  display: none;
}

@media print {
  /* Header */
  .container-header {
    display: none;
  }

  /* Footer */
  .container-footer {
    display: none;
  }

  /* Post */
  .post-title {
    text-align: center;
  }

  .post-author {
    display: block;
    text-align: center;
  }

  .post-info {
    display: none;
  }

  /* Highlight */
  pre.highlight {
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
  }
}
.task-list-item {
  list-style: none;
}

.task-list-item-checkbox {
  position: relative;
  right: 15px;
}

code.language-mermaid {
  display: block;
  text-align: center;
}

/* 添加全局样式 */
html {
  scrollbar-gutter: stable;
}
