/* body { */
    /* font-family: "LXGW WenKai", sans-serif; */
  /* }  */

/* 定义字体 */
:root {
  --md-text-font: "Ubuntu", "Noto Serif SC";  /* 英文 Roboto，中文用思源黑体 */
}

/* 设置代码块字体 */ 
code, pre {
  font-family: 'Roboto Mono', monospace;
  /*  自动适应屏幕换行 */
  /* white-space: pre-wrap; */
}

.hightlight {
  background-color: rgba(30, 30, 30, 0.9); /* 深色背景 */
  color: #f8f8f2; /* 浅色字体 */
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 8px;
  padding: 1rem;
  display: block;
  overflow-x: auto;
}

/* 使所有二级标题加粗 */
.md-typeset h2 {
  font-weight: bold;
  margin-top: 30px;
}

.md-typeset h1 {
  font-weight: bold;
  margin-bottom: 30px;
}

/* 自定义 bash 高亮样式 */
code.language-bash .hljs-comment {
  color: #6a9955;
}

code.language-bash .hljs-built_in {
  color: #4EC9B0;
}

/* 设置md文档中图片居中样式 */
/* 使用方式为![](){: .center}, 且在mkdocs.yml中添加`- attr_list` */
.center {
  display: block;
  margin: 0 auto;
}

/* 所有类型的Admonition提示框都变成透明背景 */
.md-typeset .admonition,
.md-typeset details {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
  -webkit-backdrop-filter: blur(10px); /* 兼容 Safari */
  /* box-shadow: none; */
  /* border: none; */
}

/* 设置内容宽度 */
.md-grid {
  max-width: 66rem; /* 改成你想要的 */
}

.md-content {
  max-width: 100%;
}