:root {
  --code-font-stack: 'Maple Mono','Maple Mono CN','Maple Mono NF','Noto Color Emoji',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@font-face {
  font-family: 'MapleMono';
  src: url('/fonts/NF-CN/MapleMono-NF-CN-Regular.woff2') format('woff2'),
       url('/fonts/MapleMono-NF-CN-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
code, pre, .highlight code, .highlight pre {
  font-family: var(--code-font-stack);
  font-feature-settings: "calt" 1, "liga" 1, "zero" 1;
  line-height: 1.7;
}

/* 响应式代码字体大小 */
@media (max-width: 768px) {
  code, pre, .highlight code, .highlight pre {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  code, pre, .highlight code, .highlight pre {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* 优化正文字体栈（如果主题没有设置） */
:root {
  --body-font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

body {
  font-family: var(--body-font-stack);
}

