/* 
 * 绿色道路旅游网站字体配置
 * 优化的中文字体显示方案
 */

/* 引入 Google Fonts - Noto Sans SC (思源黑体) 用于正文 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* 引入 Google Fonts - Noto Serif SC (思源宋体) 用于标题 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

/* 引入 Google Fonts - Poppins 用于英文和数字 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 引入 Google Fonts - ZCOOL KuaiLe (站酷快乐体) 用于特殊标题装饰 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

/* 字体栈定义 */
:root {
  /* 主要正文字体 - 黑体系列，优先使用系统字体以提高性能 */
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Hiragino Sans GB', 'Heiti SC', 'WenQuanYi Micro Hei', sans-serif;
  
  /* 标题字体 - 宋体系列，更有气质 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', '宋体', serif;
  
  /* 英文和数字字体 - 现代无衬线 */
  --font-english: 'Poppins', 'Helvetica Neue', 'Arial', sans-serif;
  
  /* 装饰性字体 - 用于特殊场景 */
  --font-display: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  
  /* 等宽字体 - 用于代码或特殊格式 */
  --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
}

/* 字体优化设置 */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* 标题字体应用 */
h1, h2, h3, h4, h5, h6,
.heading-font {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 英文和数字优化显示 */
.font-english,
.number-display {
  font-family: var(--font-english);
}

/* 装饰性文字 */
.font-display {
  font-family: var(--font-display);
}

/* 响应式字体大小 */
@media (max-width: 640px) {
  :root {
    font-size: 14px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    font-size: 15px;
  }
}

@media (min-width: 1025px) {
  :root {
    font-size: 16px;
  }
}
