/**
 * 全局字体优化
 * 提供跨平台的中文字体回退方案
 */

/* CSS 变量定义 */
:root {
  --font-sans-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
}

/* 全局字体覆盖 */
html {
  font-family: var(--font-sans-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans-cn);
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

input, textarea, select, button {
  font-family: var(--font-sans-cn);
}

[style*="Microsoft YaHei"] {
  font-family: var(--font-sans-cn) !important;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

img[src=""],
img:not([src]) {
  visibility: hidden;
}
