/*
Theme Name: 琢光子主题
Theme URI: https://zhuoguang.quhenet.com/
Author: QuheNet
Author URI: https://www.quhenet.com/
Description: 琢光区块主题的轻量子主题，用于保存不会被父主题更新覆盖的站点定制。
Version: 1.0.1
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.3
Template: zhuoguang
License: Proprietary Commercial License
License URI: https://www.quhenet.com/
Text Domain: zhuoguang-child
Tags: full-site-editing, block-patterns, block-styles, style-variations, editor-style
*/

/* 在此添加需要保留的前台自定义样式。 */
/*
* Zhuoguang Chinese typography
* 中文官网全站字体与排版优化
*/

html:lang(zh) body,
html:lang(zh) button,
html:lang(zh) input,
html:lang(zh) select,
html:lang(zh) textarea {
font-family:
      "PingFang SC",
      "Hiragino Sans GB",
      "Microsoft YaHei UI",
      "Microsoft YaHei",
      "Noto Sans CJK SC",
      "Source Han Sans SC",
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Arial,
      sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* 中文标题：减少英文字体规则带来的过大字距和过重字重 */
html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3,
html:lang(zh) h4,
html:lang(zh) h5,
html:lang(zh) h6,
html:lang(zh) .wp-block-heading {
font-family: inherit;
font-weight: 700;
letter-spacing: 0;
line-height: 1.3;
text-wrap: balance;
word-break: normal;
overflow-wrap: break-word;
}

/* 首屏大标题 */
html:lang(zh) h1,
html:lang(zh) .zhuoguang-site-hero h1 {
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.015em;
}

/* 正文阅读体验 */
html:lang(zh) p,
html:lang(zh) li,
html:lang(zh) blockquote,
html:lang(zh) figcaption,
html:lang(zh) .wp-block-post-content {
line-height: 1.85;
letter-spacing: 0.01em;
overflow-wrap: break-word;
}

/* 导航菜单不使用英文大写字距 */
html:lang(zh) .wp-block-navigation,
html:lang(zh) .wp-block-navigation-item,
html:lang(zh) .wp-block-navigation-item__content {
font-family: inherit;
letter-spacing: 0;
}

/* 中文按钮保持紧凑 */
html:lang(zh) .wp-element-button,
html:lang(zh) .wp-block-button__link,
html:lang(zh) .zhuoguang-button,
html:lang(zh) button,
html:lang(zh) input[type="button"],
html:lang(zh) input[type="submit"] {
font-family: inherit;
font-weight: 700;
letter-spacing: 0.04em;
line-height: 1.4;
}

/* 表单字段 */
html:lang(zh) input,
html:lang(zh) select,
html:lang(zh) textarea {
line-height: 1.6;
letter-spacing: 0;
}

/* 小标题、标签和产品元信息 */
html:lang(zh) .wp-block-post-terms,
html:lang(zh) .wp-block-post-date,
html:lang(zh) .wp-block-post-author,
html:lang(zh) .zhuoguang-eyebrow {
letter-spacing: 0.04em;
line-height: 1.6;
}

/* 产品名称与卡片标题 */
html:lang(zh) .wp-block-post-title,
html:lang(zh) .zhuoguang-product-title,
html:lang(zh) .naibabiji-b2b-product-title {
font-family: inherit;
font-weight: 700;
letter-spacing: 0;
line-height: 1.45;
}

/* 移动端适当增加中文标题行高 */
@media (max-width: 767px) {
html:lang(zh) h1,
html:lang(zh) .zhuoguang-site-hero h1 {
      line-height: 1.25;
      letter-spacing: 0;
}

html:lang(zh) h2,
html:lang(zh) h3 {
      line-height: 1.35;
}

html:lang(zh) p,
html:lang(zh) li {
      line-height: 1.8;
}
}