/**
 * Chinese Font Optimization Styles
 * 针对中文字体的专项优化样式
 *
 * @package Quhe_Business
 * @since 1.0.0
 */

/* 针对中文字体的全局优化 */
body.font-mode-chinese {
  /* 优化中文排版：增加行高，改善中文字符的可读性 */
  line-height: 1.8;
  
  /* 优化中文字体间距 */
  letter-spacing: 0.02em;
  
  /* 调整中文字体的字重，确保中文内容有足够的视觉权重 */
  font-weight: 400;
}

/* 标题类元素的中文优化 */
body.font-mode-chinese h1,
body.font-mode-chinese h2,
body.font-mode-chinese h3,
body.font-mode-chinese h4,
body.font-mode-chinese h5,
body.font-mode-chinese h6 {
  /* 调整中文标题的行高，避免行与行之间过于紧密 */
  line-height: 1.4;
  
  /* 优化中文字体的字重分布 */
  font-weight: 600;
  
  /* 中文字符的适当间距调整 */
  letter-spacing: 0.05em;
}

/* 文章标题的字体大小优化 */
body.font-mode-chinese h2.entry-title {
  font-size: 1.3rem;
}

/* 段落元素的中文优化 */
body.font-mode-chinese p {
  /* 中文字体的行高优化 */
  line-height: 1.8;
  
  /* 段落间距调整，为中文内容提供更好的视觉分隔 */
  margin-bottom: 1.2em;
  
  /* 中英文混排优化 */
  word-spacing: 0.1em;
  
  /* 中文字体大小优化 */
  font-size: 1.2rem;
}


/* 导航菜单的中文优化 */
body.font-mode-chinese .main-navigation,
body.font-mode-chinese .site-header .navigation {
  /* 导航菜单的中文字体优化 */
  font-weight: 500;
  
  /* 调整导航项的间距以适应中文字符 */
  letter-spacing: 0.02em;
}

body.font-mode-chinese .main-navigation a,
body.font-mode-chinese .site-header .navigation a {
  /* 导航链接的中文字体调整 */
  line-height: 1.6;
  font-weight: 600;
}

/* 卡片组件的中文优化 */
body.font-mode-chinese .card,
body.font-mode-chinese .feature-card {
  /* 卡片内容的中文优化 */
  line-height: 1.7;
}

body.font-mode-chinese .card-title,
body.font-mode-chinese .feature-card h3,
body.font-mode-chinese .feature-card h4 {
  /* 卡片标题的中文字体优化 */
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.font-mode-chinese .card-description,
body.font-mode-chinese .feature-card p {
  /* 卡片描述的中文字体优化 */
  line-height: 1.8;
}

/* 页脚的中文优化 */
body.font-mode-chinese .site-footer {
  /* 页脚内容的中文字体优化 */
  line-height: 1.7;
}

body.font-mode-chinese .site-footer .widget-title,
body.font-mode-chinese .site-footer h3,
body.font-mode-chinese .site-footer h4 {
  /* 页脚标题的中文字体优化 */
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 页脚联系信息的中文字体优化 */
body.font-mode-chinese .quhe-footer-contact-item {
  /* 优化联系信息项目的间距 */
  gap: 0.6rem;
  
  /* 优化行高以适应中文字符 */
  line-height: 1.5;
}
body.font-mode-chinese .quhe-footer-widget-title {
    font-size: 1.5rem;
}

body.font-mode-chinese .quhe-footer-contact-item a,
body.font-mode-chinese .quhe-footer-contact-item address {
  /* 优化联系信息文字的字号 */
  font-size: 0.9rem;
  
  /* 调整行高以适应中文字符 */
  line-height: 1.5;
  
  /* 优化字母间距 */
  letter-spacing: 0.02em;
}

/* 页脚导航菜单垂直对齐优化 */
body.font-mode-chinese .quhe-footer-nav {
  /* 向上偏移10像素以与联系方式内容对齐 */
  margin-top: -10px;
}

/* 页脚菜单间距优化 */
body.font-mode-chinese .quhe-footer-menu {
  gap: 0.3rem;
}

/* 页脚菜单链接的中文字体优化 */
body.font-mode-chinese .quhe-footer-menu a {
  /* 减小字号以适应中文字体 */
  font-size: 1rem;
  
  /* 调整行高以适应中文字符 */
  line-height: 1.4;
  
  /* 优化字母间距 */
  letter-spacing: 0.02em;
  
  /* 减小菜单项之间的垂直间距 */
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

/* 页脚菜单列表项的间距优化 */
body.font-mode-chinese .quhe-footer-menu li {
  /* 减小菜单列表项的下边距 */
  margin-bottom: 0;
  
  /* 确保没有额外的内边距影响间距 */
  padding: 0;
}

/* 卡片内容中的文章标题外边距优化 */
body.font-mode-chinese .post-card-content .entry-header {
  margin-bottom: 0;
}

/* 表单元素的中文优化 */
body.font-mode-chinese input,
body.font-mode-chinese textarea,
body.font-mode-chinese select {
  /* 表单输入元素的中文字体优化 */
  line-height: 1.6;
  
  /* 确保中文输入的舒适性 */
  font-family: var(--font-chinese);
  
  /* 表单元素的最小高度，确保中文显示完整 */
  min-height: 44px;
}

/* 标签和占位符的中文优化 */
body.font-mode-chinese label {
  /* 表单标签的中文字体优化 */
  font-weight: 500;
  line-height: 1.4;
}

body.font-mode-chinese::placeholder {
  /* 占位符文字的中文优化 */
  color: rgba(0, 0, 0, 0.5);
  font-style: normal;
}

/* 列表元素的中文优化 */
body.font-mode-chinese ul,
body.font-mode-chinese ol {
  /* 列表的行高优化 */
  line-height: 1.8;
}

body.font-mode-chinese li {
  /* 列表项的中文字体优化 */
  margin-bottom: 0.5em;
}

/* 引用块的中文优化 */
body.font-mode-chinese blockquote {
  /* 引用块的中文字体优化 */
  line-height: 1.8;
  
  /* 引用内容的字重调整 */
  font-weight: 400;
  
  /* 引用块的左右内边距调整 */
  padding-left: 1.5em;
  border-left: 4px solid var(--color-accent);
}

/* 代码元素的中文优化 */
body.font-mode-chinese code,
body.font-mode-chinese pre {
  /* 代码元素的中文字体优化（保持等宽字体） */
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* 代码的行高调整 */
  line-height: 1.6;
}

/* 表格的中文优化 */
body.font-mode-chinese table {
  /* 表格的中文字体优化 */
  line-height: 1.6;
}

body.font-mode-chinese th,
body.font-mode-chinese td {
  /* 表格单元格的中文字体优化 */
  padding: 0.75em 1em;
}

/* 面包屑导航的中文优化 */
body.font-mode-chinese .breadcrumb,
body.font-mode-chinese .breadcrumbs {
  /* 面包屑的中文字体优化 */
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 响应式中文优化 */
@media (max-width: 768px) {
  body.font-mode-chinese {
    /* 移动端中文优化：增加行高以改善可读性 */
    line-height: 1.9;
  }
  
  body.font-mode-chinese h1,
  body.font-mode-chinese h2,
  body.font-mode-chinese h3 {
    /* 移动端标题的中文字体优化 */
    line-height: 1.5;
  }
  
  body.font-mode-chinese p {
    /* 移动端段落的中文字体优化 */
    line-height: 1.9;
    margin-bottom: 1.4em;
  }
}

@media (max-width: 480px) {
  body.font-mode-chinese {
    /* 小屏幕设备的额外中文优化 */
    line-height: 2.0;
  }
}

/* 高对比度模式下的中文优化 */
@media (prefers-contrast: high) {
  body.font-mode-chinese {
    /* 高对比度模式下的中文字体调整 */
    font-weight: 500;
    letter-spacing: 0.03em;
  }
}

/* 深色模式下的中文优化 */
@media (prefers-color-scheme: dark) {
  body.font-mode-chinese a {
    /* 深色模式下链接的中文字体优化 */
    text-decoration-color: rgba(255, 255, 255, 0.6);
  }
  
  body.font-mode-chinese::placeholder {
    /* 深色模式下占位符的中文优化 */
    color: rgba(255, 255, 255, 0.5);
  }
}

/* 页脚底部文字优化 */
body.font-mode-chinese .quhe-footer-copyright,
body.font-mode-chinese .quhe-icp-number {
  /* 优化页脚版权和ICP号文字的字号 */
  font-size: 0.85rem;
  
  /* 调整行高以适应中文字符 */
  line-height: 1.5;
  
  /* 优化字母间距 */
  letter-spacing: 0.01em;
}

/* Read More链接的中文字体优化 */
body.font-mode-chinese .read-more {
  /* 优化Read More链接在中文字体下的字号 */
  font-size: 1.1rem;
  
  /* 保持合适的行高以适应中文字符 */
  line-height: 1.5;
  
  /* 优化字母间距以提高可读性 */
  letter-spacing: 0.03em;
  
  /* 确保链接内容的对齐和间距 */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.font-mode-chinese .read-more svg {
  /* 优化图标尺寸以匹配中文字体大小 */
  width: 1rem;
  height: 1rem;
}

/* 响应式中文字体优化：移动端Read More链接 */
@media (max-width: 768px) {
  body.font-mode-chinese .read-more {
    font-size: 1rem;
    gap: 0.4rem;
  }
  
  body.font-mode-chinese .read-more svg {
    width: 0.9rem;
    height: 0.9rem;
  }
}

@media (max-width: 480px) {
  body.font-mode-chinese .read-more {
    font-size: 0.95rem;
    gap: 0.3rem;
  }
  
  body.font-mode-chinese .read-more svg {
    width: 0.8rem;
    height: 0.8rem;
  }
}