/* =========================================================
   中文适配层 —— 叠加在原站 theme.css / 内联 critical CSS 之上
   原则：只替换字体，不改动任何尺寸、行高、字距、布局
   （本文件在 <head> 末尾加载，同优先级下晚于原站声明，可直接覆盖）

   2026-10-17：全站统一「思源宋体 Source Han Serif SC」
   安全约束：绝不使用 `* { font-family: inherit }` 一类通配覆盖，
   否则会抹掉 body 的字体声明，并连带毁掉图标字体 glyphset-1 / slick。
   ========================================================= */

/* ---------- 1. 思源宋体 Source Han Serif SC（自托管，官方开源） ----------
   来源：Adobe source-han-serif 2.003R
         https://github.com/adobe-fonts/source-han-serif/releases/tag/2.003R
         资产 09_SourceHanSerifSC.zip → OTF/SimplifiedChinese/SourceHanSerifSC-*.otf
   许可：SIL Open Font License 1.1（可商用 / 可自托管）
   处理：fontTools.subset 按「本站字符集 ∪ GB2312 全集 ∪ 假名 ∪ 拉丁」子集化为
         7,508 字形后转 WOFF2；三字重合计约 4.3MB */
@font-face {
  font-family: 'Source Han Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/demos/tcm-clinic/_assets/fonts/source-han-serif/SourceHanSerifSC-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Han Serif SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/demos/tcm-clinic/_assets/fonts/source-han-serif/SourceHanSerifSC-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Han Serif SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/demos/tcm-clinic/_assets/fonts/source-han-serif/SourceHanSerifSC-Bold.woff2') format('woff2');
}

/* ---------- 2. 全站基准字体 ----------
   原站 body 为 "Noto Sans JP",sans-serif（内联 critical CSS 声明）；
   本文件随后加载、选择器同为 body，直接覆盖。
   Songti SC / SimSun 等系统字体仅作 WebFont 加载失败后的最终 fallback。 */
body,
button,
input,
select,
textarea,
optgroup,
option {
  font-family: "Source Han Serif SC", "Source Han Serif", "Songti SC", "SimSun", serif;
}

/* ---------- 3. 原站英文辅助字（Marcellus SC）→ 思源宋体 ---------- */
.l-ftr__sc-lbl,
.l-ftr__cpy,
.c-arcv__time,
.c-bdy-fig-lnk__en,
.c-btn__t-en,
.c-hdln-md__lbl,
.c-hdln__lbl,
.c-hdng time,
.c-hdng--lg time,
.c-edtr h2 time,
.c-hdng--md time,
.c-edtr h3 time,
.c-hdng--sm time,
.c-edtr h4 time,
.c-hdng--xs time,
.c-edtr h5 time,
.c-hdng--xxs time,
.c-edtr h6 time,
.c-hdng--bdl time,
.c-hdng__en,
.c-pager a,
.c-pgnav__bdy span,
.c-pgnav__bdy a,
.c-pst-hdr__time,
.p-cf__thnk,
.p-dg-smp__en,
.p-fp-ctch__hdg,
.p-fp-fc-crsl__en,
.p-fp-lnk__t-en,
.p-srv-ft__nm::before,
.l-nv-lnk__t-en,
.l-nv__btn,
.l-pgh__ttlen,
.l-pgh__ttl404,
.c-ldr,
.c-lgo__en,
.bdx__en,
.bdx__card-en {
  font-family: "Source Han Serif SC", "Source Han Serif", "Songti SC", "SimSun", serif;
}

/* ---------- 4. 定制 logo 字体 clinic-font-1 → 思源宋体 ----------
   该字体按日文 logo 字形定制（仅约 44 个码位），不含「疗」「松」「本」「颈」「髋」
   等简体字形，中日混排会导致同词内字形与字重不一致。 */
.p-dg-smp__hdg,
.c-lgo__tag,
.c-lgo__nm,
.cli1 {
  font-family: "Source Han Serif SC", "Source Han Serif", "Songti SC", "SimSun", serif;
}

/* ---------- 5. 人体交互模块（BODY_INTERACTION_V1_FINAL） ----------
   仅通过全站字体规则让其中可见文字使用思源宋体；
   不修改模块自身 CSS / JS / 布局 / CAMERA / Overlay / 连线 / 雷达。
   注意：body-interaction-v1.css 在本文件之后加载，同特异性会被它覆盖，
        因此这里统一提高一级特异性（.bdx 内）来稳压模块自带的
        .bdx__en / .bdx__card-en { font-family:"Marcellus SC",serif }。 */
.bdx,
.bdx .bdx__nm,
.bdx .bdx__en,
.bdx .bdx__dot,
.bdx .bdx__card-nm,
.bdx .bdx__card-en,
.bdx .bdx__card-desc,
.bdx .bdx__card-cta,
.bdx .bdx__thumb,
.bdx .bdx__hit {
  font-family: "Source Han Serif SC", "Source Han Serif", "Songti SC", "SimSun", serif;
}


/* ---------- 6. 思源宋体下的英文小标签字距校正 ----------
   原站英文标签使用拉丁装饰衬线 Marcellus SC，其字形较窄，.18em~.2em 的字距尚可；
   改用思源宋体（拉丁为 Source Serif，字面较宽）后，同一字距下会明显过散。
   此处仅下调 letter-spacing，不动字号 / 字重 / 行高 / 布局尺寸。
   数值依据真实 Chrome 截图逐项核对后确定。 */
.l-nv-lnk__t-en {
  letter-spacing: .1em;
}
.l-ftr__sc-lbl {
  letter-spacing: .1em;
}
.c-hdln__lbl,
.c-hdln-md__lbl,
.p-dg-smp__en,
.p-fp-lnk__t-en {
  letter-spacing: .06em;
}
.bdx .bdx__en {
  letter-spacing: .08em;
}
.bdx .bdx__card-en {
  letter-spacing: .1em;
}


/* ---------- 7. 首页 #first-visitor 底部间距修正（P-01） ----------
   实测（真实 Chrome 1920）：
     #first-visitor padding-top:60px / padding-bottom:0px
     兄弟 section（#diagnosis / #examination）padding-bottom 均为 80px
     → .p-fp-phls__btn 下边缘 = section 下边缘（间距 0px），按钮贴底
     → .p-fp-phls__img--3（左下圆图，position:absolute）下边缘超出 section 底部 50px
     → 紧接的 .p-glob-bnr 被顶住
   修法：只补 padding-bottom，与兄弟 section 的 80px 一致；不动任何子元素定位、尺寸、文案、图片。
   注意不能加在 #philosophy 上：它是 absolute 子图的包含块，改它的 padding 会整体位移圆图。 */
#first-visitor {
  padding-bottom: 130px;
}
