/* 本地字体配置 - 使用系统自带字体 */
/* 替代Google Fonts，避免需要科学上网 */

:root {
  /* 字体栈配置 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-title: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-elegant: "PingFang SC", "Hiragino Sans GB", "Source Han Serif SC", "Noto Serif SC", "Microsoft YaHei", "微软雅黑", "Times New Roman", serif;
}

/* 基础字体配置 */
body {
  font-family: var(--font-sans);
}

.font-sans {
  font-family: var(--font-sans) !important;
}

.font-title {
  font-family: var(--font-title) !important;
}

.font-elegant {
  font-family: var(--font-elegant) !important;
}

/* 字重配置 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* 针对不同操作系统的字体优化 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* WebKit 浏览器 */
  :root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Roboto, Arial, sans-serif;
  }
}

/* Windows系统优化 */
@media screen and (min-width: 0\0) {
  :root {
    --font-sans: "Segoe UI", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  }
}

/* 确保中文字符显示正常 */
.chinese-text {
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
} 