/*
Theme Name:   安徽恒瑞斯精密机械制造有限公司子主题
Author:       安徽恒瑞斯精密机械制造有限公司
Author URI:   https://www.honrons.net.cn/
Template:     twentyten
Version:      1.2.0
*/

/* ==========================================================
   1) 载入本地字体：Noto Sans SC（来自子主题 fonts/ 目录）
   ========================================================== */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-sc-400.woff2") format("woff2"),
       url("fonts/noto-sans-sc-400.woff") format("woff"),
       url("fonts/noto-sans-sc-400.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500; /* Medium */
  font-display: swap;
  src: url("fonts/noto-sans-sc-500.woff2") format("woff2"),
       url("fonts/noto-sans-sc-500.woff") format("woff"),
       url("fonts/noto-sans-sc-500.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-sans-sc-700.woff2") format("woff2"),
       url("fonts/noto-sans-sc-700.woff") format("woff"),
       url("fonts/noto-sans-sc-700.ttf") format("truetype");
}

/* ==========================================================
   2) 全站统一字体（覆盖 Twenty Ten 默认 Georgia/Helvetica）
   重点：表单控件、导航、标题、站点标题、上一篇/下一篇、评论标题等
   ========================================================== */

/* 基础：正文 + 表单控件（避免 input/textarea 使用默认字体） */
body,
button, input, select, textarea,
.page-title span,
.entry-meta,
.entry-utility,
#site-generator,
#site-info {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  font-style: normal !important;
  line-height: 1.8;
}

/* Twenty Ten 默认用 Helvetica 的区域：站点标题、标题、导航、菜单等 */
#site-title, #site-title a,
#site-description,
.entry-title,
.page-title,
.widget-title,
.comment-reply-title,
#comments-title,
#reply-title,
#access, #access *,
#nav-above, #nav-below, #nav-single,
.navigation, .nav-previous, .nav-next {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  font-style: normal !important;
}

/* 评论区：确保 #commentform 的 label/span 也命中（你报告里漏掉的点） */
#comments,
#respond, #commentform,
#respond input, #respond textarea, #respond select, #respond button,
#commentform input, #commentform textarea, #commentform select, #commentform button,
#respond label, #commentform label,
#commentform label span,
.comment-notes {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  font-style: normal !important;
}

/* 区块搜索小工具按钮：你报告里显示为 Arial */
.wp-block-search__input,
.wp-block-search__button,
.wp-block-search button,
.wp-block-search input {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}

/* 标题字重统一（可按需调整） */
#site-title, .entry-title, .widget-title, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-style: normal !important;
}

/* 菜单：你使用 500 字重，这里确保真实命中 Medium */
#access a {
  font-weight: 500;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}

/* ==========================================================
   3) 页脚与备案图标（保留你原有功能）
   ========================================================== */
#site-info, #site-generator {
  width: auto !important;
  color: #666;
}

#footer #site-generator a.imprint {
  background-image: url("images/beian.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  padding-left: 20px !important;
  display: inline-block !important;
  font-style: normal !important;
}

/* 细节（可选） */
.entry-content { font-feature-settings: "tnum"; }
/* ==========================================================
   6) 评论列表元信息与回复链接（防止回退 Helvetica）
   - 你最新的 CSV 显示 Hello World 的 comment metadata & reply link 仍是 Helvetica
   ========================================================== */
.comment-meta,
.comment-meta a,
.commentmetadata,
.commentmetadata a,
.reply,
.reply a {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
  font-style: normal !important;
}
