/* ===== 自托管字体：Noto Sans（SIL OFL 1.1，免费可商用）=====
   SC 档按站点用字裁剪，三档合计约 790 KB；Mono 只含 ASCII。
   文案新增生僻字后跑一次 tools/subset_fonts.py 重新裁剪。 */
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/notosans-sc-400.woff2?v=1") format("woff2")}
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:500;font-display:swap;
  src:url("fonts/notosans-sc-500.woff2?v=1") format("woff2")}
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:700;font-display:swap;
  src:url("fonts/notosans-sc-700.woff2?v=1") format("woff2")}
@font-face{font-family:"Noto Sans Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/notosans-mono-400.woff2?v=1") format("woff2")}

:root{
  /* 字号令牌：全站标题只有四档，改这里即全站生效 */
  --t-hero:clamp(34px,4.7vw,68px);
  --t-h1:clamp(30px,3.9vw,54px);
  --t-h2:clamp(24px,3.2vw,46px);
  --t-h3:20px;
  /* 动效令牌：缓动只有一条「快出慢收」，时长三档 */
  --e-out:cubic-bezier(.16,1,.3,1);
  --e-in-out:cubic-bezier(.65,0,.35,1);
  --d-fast:160ms;
  --d-base:260ms;
  --d-slow:460ms;

  --t-num:clamp(24px,2.6vw,32px);
}

/* ===== 字号阶梯（最后加载，统一覆盖各页） =====
   原则：正文 18px；卡片/说明 14.5–15px；辅助标签 12.5px；表格 14.5px。
   只调字号与行高，不动布局与颜色。 */

body{font-size:18px}

/* 段落与导语 */
.sec-lead,.lead,.p-hero .lead,.s-hero .lead,.prod-sec .lead{font-size:18px;line-height:1.78}
.hero-sub{font-size:clamp(17px,1.35vw,18px);line-height:1.7}
.mission-two{font-size:var(--t-h3);line-height:1.85}

/* 标签与编号 */
.sec-no,.eyebrow,.mission-kicker,.pcard .k,.sol__body .k,.case .tag{font-size:12.5px;letter-spacing:.13em}
.hero-badge{font-size:12.5px}
.prod .pending,.shot__box span,.logo-slot{font-size:13.5px}

/* 标题（只微调字距，字号保持视觉层级） */
.sec-title,.hero-title,.mission-line,h1,h2{letter-spacing:-.035em;line-height:1.12}
.pcard h3,.sol__body h3,.kpi b,.flow .st b,.prod h3,.meth .m b,.case h3{letter-spacing:-.01em}

/* 卡片正文 */
.prod p,.pcard p,.kpi span,.flow .st span,.meth .m p,.dm div p,.loop3 .l ul,
.sol__body p,.case p,.point p,.todo ul{font-size:14.5px;line-height:1.72}
.pcard h3{font-size:17px}
.kpi b,.flow .st b,.meth .m b{font-size:14.5px}
.sol__body h3{font-size:20px}
.sol__body .more{font-size:14.5px}

/* 图表与图注 */
.demo-cap{font-size:13.5px}
.demo-live{font-size:12.5px}
.shot figcaption,.cap{font-size:14.5px}
table.cmp{font-size:14.5px}
table.cmp th{font-size:12.5px}
.loop3 .l .n{font-size:13.5px}

/* 按钮与标签 */
.btn-lg{font-size:14.5px;padding:15px 28px}
.btn{font-size:14.5px;padding:12px 22px}
.join-roles span{font-size:14.5px}
.brief-num b{font-size:32px}
.brief-num span{font-size:13.5px}

/* 导航 */
.nav-links>a,.nav-links .nav-item>a{font-size:14.5px}
.nav-drop a{font-size:14.5px}
.nav-drop a small{font-size:12.5px}
.tool-btn .lg{font-size:12.5px}

/* 中/EN：12px 文字实际宽 42px，超出 38px 圆钮的 36px 内框 → 右侧溢出、视觉偏右 4.5px。
   改为按内容自适应宽度的胶囊，文字真正居中；两个图标按钮仍保持圆形。 */
.tool-btn#langBtn{width:38px;height:38px;padding:0}
.tool-btn#langBtn .lg{display:block;font-size:11px;letter-spacing:-.01em;line-height:1;white-space:nowrap}

/* 页脚 */
.foot-cols a,.site-foot a{font-size:14.5px}
.foot p,.site-foot .brand p{font-size:13.5px;line-height:1.75}
.foot-bottom,.site-foot .bottom{font-size:13.5px}
.foot-cols h4,.site-foot h4{font-size:11px}

/* 手机端：字号不缩，靠行高与间距让位 */
@media (max-width:640px){
  body{font-size:17px}
  .sec-lead,.lead,.p-hero .lead,.s-hero .lead,.prod-sec .lead{font-size:17px}
  .prod p,.pcard p,.kpi span,.flow .st span,.meth .m p,.dm div p,.loop3 .l ul,
  .sol__body p,.case p,.point p,.todo ul{font-size:14.5px}
  .btn-lg{font-size:14.5px;padding:13px 22px}
  .nav-links>a,.nav-links .nav-item>a{font-size:14.5px}
}


/* 手机端令牌：标题只留 30 / 24 两档，避免各页 clamp 最小值散成 24/28/30/32/34 */
@media (max-width:820px){
  :root{--t-hero:30px;--t-h1:30px;--t-h2:24px;--t-h3:20px;--t-num:24px}
  h1,.hero-title{font-size:var(--t-h1)}
  h2,.sec-title,.mission-line{font-size:var(--t-h2)}
}

/* 断行优化：标题均衡断行、正文避免末行只剩一两个字 */
h1,h2,h3,.sec-title,.hero-title,.mission-line,.pcard h3,.sol__body h3{text-wrap:balance}
p,.sec-lead,.lead{text-wrap:pretty}

/* ---- 备案号：全站页脚最后一行，居中（桌面与手机一致） ---- */
footer .icp-line{margin:14px 0 0;width:100%;text-align:center}
footer .icp-line{display:block}
footer .icp-line a{display:inline;text-align:center}

/* 手机端：版权/标语与备案号一并对齐到中线，避免左对齐与居中混排 */
@media (max-width:820px){
  .site-foot .bottom,.foot-bottom{flex-direction:column;align-items:center;text-align:center;gap:6px}
  .site-foot .bottom span,.foot-bottom span{text-align:center}
}
