/* === 字体引入：仅限中文字符，避免英文强制加载自定义字体 === */

/* 中文 Light 字重（适用于正文） */
@font-face {
  font-family: 'MyCJKFont';
  src: url('/fonts/NotoSansSC-Light.woff2') format('woff2');
  font-weight: 150;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

/* 中文 Bold 字重（适用于标题） */
@font-face {
  font-family: 'MyCJKFont';
  src: url('/fonts/NotoSansSC-Bold.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

/* === 全站默认字体设置（桌面端） === */
body {
  font-family: 'Helvetica Neue', 'Segoe UI', 'Arial', 'MyCJKFont', sans-serif;
  font-weight: 150;
  font-size: 16px;
  line-height: 1.75em;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

/* === 正文段落文字优化 === */
#single .page-content p {
  font-family: 'Helvetica Neue', 'Segoe UI', 'Arial', 'MyCJKFont', sans-serif;
  font-weight: 150;
  letter-spacing: 0.1em !important;
  line-height: 1.75em;
}

/* === 标题字体统一使用中文粗体、英文默认 === */
#single .page-content h1,
#single .page-content h2,
#single .page-content h3,
#single .page-content h4,
#single .page-content h5,
#single .page-content h6 {
  font-family: 'Helvetica Neue', 'Segoe UI', 'Arial', 'MyCJKFont', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em !important;
  line-height: 1.4em;
}

/* === 列表文字优化 === */
#single .page-content ul,
#single .page-content ol {
  font-family: 'Helvetica Neue', 'Segoe UI', 'Arial', 'MyCJKFont', sans-serif;
  letter-spacing: 0.1em !important;
  line-height: 1.75em;
}

/* === 引用块优化 === */
#single .page-content blockquote {
  font-family: 'Helvetica Neue', 'Segoe UI', 'Arial', 'MyCJKFont', sans-serif;
  font-style: normal;
  letter-spacing: 0.02em !important;
}

/* === 代码块字体设置 === */
#single .page-content code,
#single .page-content pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.01em;
}

/* === 手机端优化：响应式字体 === */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.7em;
  }

  #single .page-content p {
    font-size: 15px;
    line-height: 1.7em;
  }

  #single .page-content h1 {
    font-size: 1.5em;
  }

  #single .page-content h2 {
    font-size: 1.35em;
  }

  #single .page-content h3 {
    font-size: 1.2em;
  }

  #single .page-content h4,
  #single .page-content h5,
  #single .page-content h6 {
    font-size: 1.1em;
  }
}



/* 取消最大宽度限制 */
.container, .container-md, .container-lg, .container-xl {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}