/*
 * 雅讯官网 · 商务字体优化
 * ------------------------------------------------------------
 * 原站正文大量使用内联的 SimSun / 宋体 以及自定义的
 * fontface__宋体__* 字库，在 Windows 上笔画发虚、观感偏旧。
 * 这里统一替换为跨平台的现代无衬线字体栈：
 *   - Windows：拉丁字母用 Segoe UI，中文用 Microsoft YaHei UI
 *   - macOS：PingFang SC
 *   - 其他平台：Hiragino / Noto Sans / 思源黑体
 * 仅覆盖正文与内联宋体，不触碰 icomoon、swiper-icons 等图标字体。
 */

:root {
  --ait-business-font: "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "微软雅黑", "Noto Sans SC",
    "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  font-family: var(--ait-business-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 表单控件默认字体独立于 body，需要显式统一 */
button,
input,
select,
textarea {
  font-family: var(--ait-business-font);
}

/* 覆盖内联的宋体 / 自定义宋体字库（内联样式优先级高，必须 !important） */
[style*="SimSun" i],
[style*="simsun" i],
[style*="宋体"],
[style*="fontface" i],
font[face*="宋体"],
font[face*="SimSun" i],
font[face*="fontface" i] {
  font-family: var(--ait-business-font) !important;
}

/* 少数通过 class 使用自定义字库的元素 */
[class*="fontface__"] {
  font-family: var(--ait-business-font) !important;
}

/*
 * 在线地图本地静态化
 * 页面中的「在线地图」模块会加载百度地图 SDK 及外部瓦片。
 * static-api-stub.js 已拦截该 SDK，这里用本地静态地图作为背景，
 * 保证页面视觉效果且不产生任何外部请求。
 */
.module_online_map .map_container {
  background: url('/assets/local/contact-map.png') center center / cover no-repeat;
}
