/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 全局正文字体 */
body, .md-typeset {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif !important;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans SC', sans-serif !important;
  font-weight: 500 !important;
}

/* 代码块字体 + 优化 */
.md-typeset pre > code,
.md-typeset code,
pre, code {
  font-family: 'JetBrains Mono', 'Consolas', monospace !important;
  font-size: 0.85em;
  line-height: 1.5;
  white-space: pre !important;
  overflow-x: auto;
}

/* 隐藏顶部导航栏 */
.md-header {
  display: none !important;
}

/* 隐藏右侧目录 */
/* .md-sidebar--secondary {
  display: none !important;
} */

/* 隐藏底部 footer */
.md-footer {
  display: none !important;
}

/* 全屏宽度布局 */
.md-grid {
  max-width: 100% !important;
}

.md-content {
  margin: 0 auto;
  max-width: 70% !important;
}

.md-content__inner {
  margin: 0 auto;
  padding: 0;
}

/* 👇 底部留白，避免内容直接贴到底 */
.md-content__inner {
  margin-bottom: 4rem !important; /* 4rem 就是底部填充，你可以改成 3rem/5rem 调整 */
}


/* 自动调整所有笔记中的图片大小 */
.md-content__inner img {
    max-width: 80%;       /* 防止溢出容器 */
    max-height: 500px;     /* 限制最大高度，避免过长 */
    width: auto;           /* 保持纵横比 */
    height: auto;
    display: block;
    margin: 1rem auto;     /* 上下留白，居中 */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); 可选：加点阴影更好看 */
}
