
/* KING AI v7.9 — layout stability, bilingual typography and image-crop repair */
html,body{max-width:100%;overflow-x:hidden}
body{position:relative}
body.evos,body.v63-page{overflow-x:hidden}
header,main,footer,section{max-width:100%}
body.evos main,body.v63-page main{overflow-x:clip}
img,svg,video,canvas{max-width:100%}

/* Prevent the English hero from running into the image area. */
body.evos .ka-hero-grid{grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr)}
body.evos .ka-hero-copy{min-width:0}
body.evos .ka-home-title{max-width:100%!important;overflow-wrap:normal;word-break:normal;text-wrap:balance}
body.evos .ka-title-line{display:block}
html[lang="en"] body.evos .ka-title-line{white-space:normal}
html[lang="en"] body.evos .ka-home-title{font-size:clamp(1.92rem,3.15vw,2.86rem)!important;line-height:1.14!important;letter-spacing:-.043em!important;max-width:100%!important}
html[lang^="zh"] body.evos .ka-title-line{white-space:nowrap}

/* Shared content template: retain image proportions and stop horizontal page drift. */
body.v63-page .container{max-width:calc(100vw - 48px)}
body.v63-page .v63-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
body.v63-page .v63-detail-copy{min-width:0}
body.v63-page .v63-detail-visual{display:block;width:100%;height:auto;min-height:0;aspect-ratio:16/9;align-self:center;overflow:hidden;background:#f7f6fd}
body.v63-page .v63-detail-visual img{display:block;width:100%;height:100%;object-fit:cover!important;object-position:center center!important;transform:none!important}
body.v63-page .smart-card-media{display:block;width:100%;height:auto;min-height:0;aspect-ratio:16/10;overflow:hidden;background:#f7f6fd}
body.v63-page .smart-card-media img{display:block;width:100%;height:100%;object-fit:cover!important;object-position:center center!important;transform:none!important}
body.v63-page .page-hero h1,body.v63-page .v63-detail-copy h2,body.v63-page .section-head h2{max-width:100%;word-break:normal;overflow-wrap:normal;text-wrap:balance}
html[lang="en"] body.v63-page h1,html[lang="en"] body.v63-page h2,html[lang="en"] body.v63-page h3{word-break:normal;overflow-wrap:break-word;text-wrap:balance}

/* Prevent short final lines on narrow Chinese screens without forcing overflow. */
html[lang^="zh"] h1,html[lang^="zh"] h2,html[lang^="zh"] h3{word-break:normal;overflow-wrap:normal;text-wrap:balance}
@media(max-width:760px){
  body.evos .ka-container{width:calc(100% - 28px)}
  html[lang="en"] body.evos .ka-home-title{font-size:clamp(1.58rem,7.4vw,2.18rem)!important;line-height:1.18!important}
  body.v63-page .container{max-width:calc(100vw - 32px)}
  body.v63-page .v63-detail-grid{grid-template-columns:1fr;padding:12px;gap:18px}
  body.v63-page .v63-detail-visual{order:-1;aspect-ratio:16/10}
  body.v63-page .v63-detail-copy{padding:8px 4px 10px}
  body.v63-page .page-hero h1{font-size:clamp(1.62rem,7.2vw,2.14rem);line-height:1.18}
  body.v63-page .v63-detail-copy h2{font-size:clamp(1.38rem,6.25vw,1.86rem);line-height:1.22}
  body.v63-page .section-head h2{font-size:clamp(1.36rem,6vw,1.86rem);line-height:1.24}
  body.v63-page .v63-detail-pills{gap:6px}
  body.v63-page .v63-detail-pills span{white-space:normal;text-align:center;line-height:1.35}
}
@media(max-width:430px){
  html[lang^="zh"] body.evos .ka-home-title{font-size:clamp(1.12rem,6.2vw,1.82rem)!important;line-height:1.18!important;letter-spacing:-.05em!important}
  html[lang^="zh"] body.evos .ka-title-line{white-space:nowrap}
  body.v63-page .container{max-width:calc(100vw - 28px)}
  body.v63-page .v63-detail-visual,body.v63-page .smart-card-media{aspect-ratio:16/10}
  body.v63-page .page-hero h1{font-size:clamp(1.52rem,7.05vw,1.84rem);letter-spacing:-.038em}
  body.v63-page .v63-detail-copy h2{font-size:clamp(1.32rem,6.05vw,1.68rem);letter-spacing:-.032em}
  body.v63-page .section-head h2{font-size:clamp(1.30rem,5.9vw,1.66rem);letter-spacing:-.03em}
}
