/* 只为四柱、题字等短字使用项目现有华文行楷。字库同源加载，正文和表单不继承此字体；
   font-display:swap 保证首次下载字库时先显示可读文字，不等待字体才展示页面。 */
@font-face {
    font-family: "GuaXingKai";
    src: url("../fonts/华文行楷.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --gua-inscription-font: "GuaXingKai", "STXingkai", "KaiTi", serif;
    --gua-personal-name-font: "NamingQiuHong", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 只有大字节点标记字体；整名含缺字时使用system类，不把一个名字混成多种书写体。 */
.naming-font-personal { font-family: var(--gua-personal-name-font); font-weight:400; font-style:normal; font-synthesis:none; }
.naming-font-company { font-family: var(--gua-inscription-font); font-weight:400; font-style:normal; font-synthesis:none; }
.naming-font-system { font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif; }

/* 显式标记用途而非全局替换h1/strong，避免用户问题、订单金额、导航与长段说明变成连笔字。 */
.gua-inscription,
h2.gua-inscription,
.web-shell .brand.gua-inscription,
.register-seal > span.gua-inscription,
.hero h1.gua-inscription {
    font-family: var(--gua-inscription-font);
    font-weight: 400;
    font-style: normal;
    font-synthesis: none;
}

/* 独立覆盖只限已有展示节点；提高到与线上隔离样式同级以上，发布无需替换整份旧组件样式包。
   名字正文/评分/拼音仍继承原字体；明确设置字重和行距，避免旧strong/h3样式伪造粗笔画。 */
.bazi-chart .pillars strong,
.bazi-panel .bazi-chart .pillars strong,
.bazi-panel .pillars strong {
    font-family: var(--gua-inscription-font);
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.5;
}
.flying-report .flying-board .flying-numeral {
    font-family: var(--gua-inscription-font);
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.3;
}
.naming-panel .naming-candidates h3.naming-font-personal,
.name-result .name-overview-copy h2.naming-font-personal,
.name-result .name-character-glyph.naming-font-personal {
    font-family: var(--gua-personal-name-font);
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.5;
}
.naming-panel .naming-candidates h3.naming-font-company {
    font-family: var(--gua-inscription-font);
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.5;
}

/* 姓名作为结果的阅读入口，独立放大；缺字回退的系统字体也用同一字号，不能因字体选择变成小字。 */
.naming-panel .naming-candidates article h3 { font-size:clamp(32px,3.2vw,42px); line-height:1.5; overflow-wrap:anywhere; }
.name-result .name-overview-copy h2 { font-size:clamp(34px,3.4vw,44px); line-height:1.5; }
.name-result .name-character-glyph { font-size:clamp(34px,3vw,40px); line-height:1.4; }
/* 释义仍在同一候选卡内：用清楚的标签、细竖线和段距分层，不把每段再拆成独立卡。 */
.naming-panel .naming-candidates article dt {
    color:#684a32; font-size:16px; font-weight:650; line-height:1.5;
    border-left:3px solid #b38a5b; padding-left:8px; margin:18px 0 7px;
}
.naming-panel .naming-candidates article dd { color:#44382e; font-size:15px; line-height:1.85; margin:0; }
/* 手机给姓名留足宽度；分数仍显著，但不能挤断三四字姓名。长姓名继续自然换行。 */
@media (max-width:600px) {
    .name-result .name-overview { gap:14px; align-items:flex-start; }
    .name-result .name-overview .name-score { min-width:100px; padding:12px; }
    .name-result .name-overview .name-score strong { font-size:56px; }
}
