/* 本地字体定义 */
@font-face {
  font-family: 'SimSun';
  src: url('../fonts/simsun.ttc') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SimHei';
  src: url('../fonts/simhei.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KaiTi';
  src: url('../fonts/simkai.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Arial';
  src: url('../fonts/arial.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Times New Roman';
  src: url('../fonts/times.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 全局字体设置 */
body {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Noto Sans SC', 'SimHei', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

/* 正文内容 */
p {
  margin-bottom: 1em;
}

/* 代码字体 */
code, pre {
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
}

/* 表格字体 */
table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
  font-weight: 500;
}

/* 引用字体 */
blockquote {
  font-family: 'Noto Sans SC', 'SimSun', serif;
  font-style: italic;
  border-left: 4px solid #ddd;
  padding-left: 1em;
  margin: 1em 0;
  color: #666;
}

/* 链接字体 */
a {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
}

/* 标签字体 */
.tag-link {
  font-family: 'Roboto', 'Noto Sans SC', 'SimHei', sans-serif;
  font-size: 0.85rem;
}

/* 面包屑导航字体 */
.breadcrumb {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
  font-size: 0.9rem;
}

/* 导航栏字体 */
.navbar {
  font-family: 'Inter', 'Noto Sans SC', 'SimHei', sans-serif;
}

/* 卡片字体 */
.card {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
}

/* 工具列表字体 */
.content-list {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
}

/* 游戏列表字体 */
.game-list {
  font-family: 'Inter', 'Noto Sans SC', 'SimSun', sans-serif;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}
