/* Static Chinese / English links; does not change fixed-header or drawer rules. */
.zf-header-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.zf-language-switch{display:flex;align-items:center;flex:0 0 auto;gap:2px;box-sizing:border-box;margin:0;padding:2px;background:#f5f0e9;border:1px solid #e7dcd2;border-radius:9px;font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.zf-language-switch a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;padding:0 8px;border-radius:6px;color:#6d5648;text-decoration:none;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}
.zf-language-switch a[aria-current="page"]{background:#9c3427;color:#fff}
.zf-language-switch a:hover{background:#eadbce;color:#74291f}
.zf-language-switch a[aria-current="page"]:hover{background:#842a20;color:#fff}
.zf-language-switch a:focus-visible{outline:3px solid #9c3427;outline-offset:2px}
html body .zf-site-header__inner{gap:16px}
html body .zf-site-header__logo{flex:0 0 auto}
html body .zf-site-nav{gap:clamp(14px,2.3vw,30px)}
@media(max-width:820px){
 .zf-header-tools{margin-left:auto;gap:6px}
 .zf-language-switch{padding:0;border-radius:7px}
 .zf-language-switch a{padding:0 6px;border-radius:6px}
 /* These six pages have a compact standalone header instead of a drawer. */
 html body .pt-header__in{gap:10px}
 html body .pt-logo{width:80px;flex:0 0 auto}
 html body .pt-nav{gap:8px;font-size:12px;flex-wrap:nowrap}
 html body .pt-nav a{min-height:44px;display:flex;align-items:center;white-space:nowrap}
}
@media print{.zf-language-switch{display:none}}
/* English sentences wrap naturally within the existing Chinese page layouts. */
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3{word-break:normal;overflow-wrap:anywhere;letter-spacing:normal}
html[lang="en"] p,html[lang="en"] dd,html[lang="en"] li{word-break:normal;overflow-wrap:break-word}
html[lang="en"] .zb-hero h1{font-size:clamp(32px,4.3vw,58px);line-height:1.12}
html[lang="en"] .zf-footer__brand strong{letter-spacing:2px}
html[lang="en"] .zf-mobile-drawer__eyebrow{letter-spacing:2px}
html[lang="en"] body #zf-about-directory-title{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important;height:auto!important}
@media(max-width:820px){
 html[lang="en"] .zf-mobile-drawer__links a{font-size:17px}
 html[lang="en"] .zb-nav{gap:4px}
 html[lang="en"] .zb-nav a{padding:10px 12px;font-size:12px}
}
