/* 全局字体设置 */
:root {
  /* 字体家族 - 使用仓耳渔阳体W03 */
  --font-primary: 'TsangerYuYangT W03', 'SimSun', 'STSong', 'Microsoft YaHei', 'WenQuanYi Micro Hei', serif;
  --font-serif: 'TsangerYuYangT W03', 'SimSun', 'STSong', 'Microsoft YaHei', 'WenQuanYi Micro Hei', serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  
  /* 字体大小 */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;
  
  /* 字重 */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

/* 全局字体应用 */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 网站名称 */
.navbar-logo {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
}

/* 导航菜单 */
.navbar-menu .navbar-item {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
}

/* 标题 */
h1, h2, h3, h4, h5, h6, .item-title {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

/* 文章标题 */
.item-title {
  font-weight: var(--font-weight-semibold);
}

/* 正文内容 */
.post-content {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* 文章摘要 */
.item-abstract {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 标签和元信息 */
.meta-item, .tag, .category {
  font-family: var(--font-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* 评论 */
.comment-content {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* 代码 */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* 图标字体 */
.iconfont {
  font-family: "Segoe UI Symbol", var(--font-primary);
  font-size: 24px;
  line-height: 1;
  font-weight: var(--font-weight-semibold);
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SVG图标 */
.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svg-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke: none;
}

.svg-icon svg path,
.svg-icon svg rect,
.svg-icon svg circle,
.svg-icon svg polygon {
  fill: currentColor;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
  :root {
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 28px;
  }
}

/* 打印样式 */
@media print {
  body {
    font-family: 'TsangerYuYangT W03', 'SimSun', serif;
  }
}