/*
 * 中文排印优化 (2026-09-07)
 * 1) 中文字体栈：英文沿用 Lato，中文有序回落到各平台最优字体
 * 2) 正文行高适配中文
 * 3) 中和为拉丁字母设计的字距
 * 作用范围覆盖主题中显式声明 font-family 的常用元素
 */

:root {
    --cn-font-stack: 'Lato', -apple-system, BlinkMacSystemFont,
        'PingFang SC', 'HarmonyOS Sans SC', 'XinGothic',
        'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

body,
h1, h2, h3, h4, h5, h6,
p, li, a, span, label, td, th,
button, input, select, textarea,
.common_content_style, .wrapper,
.site_btn, .site_btn_new, .add-arrow-to-btn,
.footer_menu, .mega_menu, .con_input_field {
    font-family: var(--cn-font-stack);
}

/* 正文行高：中文需要更多呼吸感 */
.common_content_style p,
body .elementor-widget-text-editor p,
article p, .entry-content p {
    line-height: 1.78;
}

/* 中和拉丁字距类对中文的影响 */
.tracking-wide { letter-spacing: 0; }
.tracking-wider { letter-spacing: 0.02em; }

/* 中文大标题适当减重，避免系统字体加粗过黑 */
h1.font-bold, h2.font-bold {
    font-weight: 600;
}

/* 中西文混排：CJK 与拉丁字符间留出视觉空隙（渐进增强，支持的浏览器生效） */
:lang(zh), :lang(zh-CN), :lang(zh-Hans) {
    text-autospace: ideograph-alpha ideograph-numeric;
}

/* ===== 税务计算器手机端适配（2026-09-08，#SCTC=新加坡页 / #HKTC=香港页）===== */
@media (max-width: 640px) {
  #SCTC h1, #HKTC h1 { font-size: 28px !important; line-height: 1.3 !important; }
  #SCTC .section-header, #HKTC .section-header { font-size: 20px !important; margin: 18px 0 !important; }
  #SCTC th, #SCTC td, #HKTC th, #HKTC td { padding: 8px 6px !important; font-size: 14px; }
  #SCTC .result-box, #HKTC .result-box { padding: 14px !important; }
}
