/* Shared language controls: match the existing white / Sinounite blue header. */
.site-language-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 132px;
    align-items: center;
    width: 132px;
    height: 36px;
    box-sizing: border-box;
    color: #fff;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 5px;
    background: rgba(12,73,122,.32);
    direction: ltr;
    font: 14px/1.4 Arial,"Microsoft YaHei",sans-serif;
    transition: background-color .18s,border-color .18s;
}
.site-language-switch:hover,
html.site-i18n-keyboard .site-language-switch:focus-within { background: rgba(12,73,122,.75); border-color: #fff; }
.site-language-switch select {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 23px 0 34px;
    box-sizing: border-box;
    border: 0;
    outline: none;
    border-radius: inherit;
    color: inherit;
    background: transparent;
    font: inherit;
    line-height: normal;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* Native selects may retain :focus-visible after a mouse-opened menu closes.
   Show the extra ring only for keyboard navigation, never for pointer focus. */
.site-language-switch select:focus { outline: none; }
html.site-i18n-keyboard .site-language-switch select:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-language-switch select option { color: #173a56; background: #fff; font: 14px/1.5 Arial,"Microsoft YaHei",sans-serif; }
.site-language-switch svg { position: absolute; display: block; pointer-events: none; }
.site-language-globe { left: 10px; width: 17px; height: 17px; }
.site-language-chevron { right: 8px; width: 11px; height: 11px; }

/* Reserve a separate language slot without squeezing the logo or clipping submenus. */
.head-wrap { box-sizing: border-box; gap: 12px; padding-inline: 3%; }
.head-wrap > .logo { flex: 0 0 auto; margin: 0; }
.head-wrap > .logo img { max-width: clamp(130px,15vw,220px); max-height: 52px; width: auto; height: auto; }
.head-wrap > ul { flex: 1 1 auto; justify-content: flex-end; min-width: 0; margin: 0; }
.head-wrap > ul > li { flex: 0 1 auto; min-width: 0; padding-inline: clamp(7px,1.1vw,20px); }
.head-wrap > ul > li > a { max-width: 118px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.head-wrap > .site-language-switch { margin: 0; }
.head-wrap > ul > li .submenu { width: 180px; margin-left: 0; transform: translateX(-50%); }
.head-wrap > ul > li .submenu a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-inline: 12px; }
.head-wrap > ul > li:focus-within .submenu { visibility: visible; opacity: 1; max-height: 1000px; }
html[data-site-lang="en"] .head-wrap > ul > li,
html[data-site-lang="pt"] .head-wrap > ul > li,
html[data-site-lang="ar"] .head-wrap > ul > li { font-size: 14px; }
html:not([data-site-lang="zh"]) body.site-i18n-desktop { font-family: Arial,Tahoma,"Microsoft YaHei",sans-serif; }

/* Truncate navigation and card titles; article bodies and job requirements stay complete. */
body.site-i18n-desktop .news-nav ul { gap: 12px; }
body.site-i18n-desktop .news-nav ul li { min-width: 0; flex: 1 1 0; }
body.site-i18n-desktop .news-nav ul li > a { display: block; width: auto !important; max-width: 100%; }
body.site-i18n-desktop .news-nav ul li,
body.site-i18n-desktop .news-nav ul li > a,
.news-list .news-title > .title,
.content-main-item .item-title,
.content-main-items .item-title,
.content-right-item .item-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-list .news-title > .title { min-width: 0; flex: 1 1 auto; padding-inline-end: 12px; }
.news-list .news-title > .cut { flex: 0 0 auto; }
/* Homepage list rows reserve the date before sizing translated headlines. */
body.site-i18n-desktop .main-news .top-news > .content > a,
body.site-i18n-desktop .main-news .top-news > .tab-partys > a {
    min-width: 0;
    column-gap: 20px;
    flex-wrap: nowrap;
}
body.site-i18n-desktop .main-news .top-news > .content > a > div:first-child,
body.site-i18n-desktop .main-news .top-news > .tab-partys > a > div:first-child {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.site-i18n-desktop .main-news .top-news > .content > a > div:last-child,
body.site-i18n-desktop .main-news .top-news > .tab-partys > a > div:last-child {
    flex: 0 0 auto;
    min-width: 6.5em;
    white-space: nowrap;
    text-align: right;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}
.flash-content .flash-title,
.tab-party .party-title,
.tab-party .party-item-title,
.news-films .cover-item .title,
.news-publicity .cover-item .title,
.rider-car .slide-text .title,
.detail-list .info {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}
.flash-content,.content-right-item > .right,.content-main-item,.content-main-items,.tab-party .party-matter { min-width: 0; }
.news-text-content,.news-text-resume,.serve-main-centent-details,.serve-main-centent-modul-content,
.detail-main .center,.news-subcont > .content { overflow-wrap: anywhere; }
.detail-main .center .tits,.news-subcont > .title h1 { overflow-wrap: anywhere; white-space: normal; }
.news-subcont > .content img,.news-text-content img { max-width: 100%; height: auto; }
/* Keep company-profile copy readable inside its card, with a stationary heading. */
body.site-i18n-desktop .news-main .news-show.on .site-company-intro { overflow: hidden; }
body.site-i18n-desktop .news-main .news-show.on .site-company-intro > .left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
body.site-i18n-desktop .site-company-intro > .left > .title { flex: 0 0 auto; }
.site-company-copy {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    padding-inline-end: 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    direction: ltr;
}
body.site-i18n-desktop .site-company-copy { flex: 1 1 auto; }
body.site-i18n-mobile .site-company-copy { max-height: min(65vh,680px); overscroll-behavior-y: auto; }
.site-company-copy-content > :last-child { margin-bottom: 0; }
.site-company-copy img { max-width: 100%; height: auto; }
.site-company-copy:focus-visible { outline: 2px solid #216dad; outline-offset: -2px; border-radius: 3px; }
/* Use a custom thumb in WebKit/Blink; standard scrollbar properties take precedence otherwise. */
@supports selector(::-webkit-scrollbar) {
    .site-company-copy { scrollbar-width: auto; scrollbar-color: auto; }
}
.site-company-copy::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; }
.site-company-copy::-webkit-scrollbar-track,
.site-company-copy::-webkit-scrollbar-track-piece { background: transparent; border: 0; box-shadow: none; }
.site-company-copy::-webkit-scrollbar-thumb { background: #ccc; border-radius: 8px; min-height: 32px; }
.site-company-copy::-webkit-scrollbar-thumb:hover { background: #b8b8b8; }
.site-company-copy::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.site-company-copy::-webkit-scrollbar-corner { background: transparent; }
/* Team biographies share the profile scrollbar without stretching portraits. */
body.site-i18n-desktop .news-main .news-show.on .site-leader-card {
    height: 280px;
    min-height: 280px;
    box-sizing: border-box;
    overflow: hidden;
}
body.site-i18n-desktop .news-main .news-show.on .site-leader-card > .left { flex: 0 0 210px; height: 100%; }
body.site-i18n-desktop .news-main .news-show.on .site-leader-card > .left > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
body.site-i18n-desktop .news-main .news-show.on .site-leader-card > .right {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    padding: 20px 45px 20px 35px;
}
.news-main .news-show.on .site-leader-card > .right > .title {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px 12px;
    overflow-wrap: anywhere;
}
.news-main .news-show.on .site-leader-card > .right > .title > .post { margin-left: 0; min-width: 0; }
body.site-i18n-mobile .news-main .news-show.on .site-leader-card > .left { flex: 0 0 1.44rem; }
body.site-i18n-mobile .news-main .news-show.on .site-leader-card > .left > img { object-fit: contain; }
body.site-i18n-mobile .news-main .news-show.on .site-leader-card > .right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
body.site-i18n-mobile .site-leader-copy { max-height: min(40vh,3.4rem); }
/* Business descriptions scroll inside their color band; titles and photos stay outside. */
body.site-i18n-desktop .site-business-panel {
    display: flex;
    flex-direction: column;
    height: 700px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    padding-bottom: 24px;
}
.site-business-panel > .serve-main-centent-title { flex: 0 0 auto; overflow-wrap: anywhere; }
body.site-i18n-mobile .site-business-panel { display: flex; flex-direction: column; min-width: 0; }
body.site-i18n-mobile .site-business-copy { max-height: min(65vh,680px); padding-inline-end: 8px; }
.footer .desc-nav .info,.footer .f-addr .desc > div { overflow-wrap: anywhere; }
html:not([data-site-lang="zh"]) .footer .footer-desc .jump-list .jump-item { min-width: 0; }
html:not([data-site-lang="zh"]) .footer .footer-desc .jump-list .jump-item a { display: block; max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Runtime moves this mobile control from the shared menu into .header / .headers. */
.site-language-switch--mobile {
    position: absolute;
    top: .24rem;
    right: .8rem;
    z-index: 20;
    width: clamp(118px,34vw,142px);
    height: .64rem;
    min-height: 34px;
    max-height: 40px;
    font-size: 12px;
    border-radius: 4px;
}
.site-language-switch--mobile .site-language-globe { left: 8px; width: 16px; height: 16px; }
.site-language-switch--mobile select { padding-left: 29px; }
body.site-i18n-mobile .header,body.site-i18n-mobile .headers { position: relative; }
body.site-i18n-mobile .headers .title { max-width: calc(100% - 1.28rem); }
body.site-i18n-mobile .headers .title .label,body.site-i18n-mobile .headers .title .label1,
body.site-i18n-mobile .nav .left .nav-left-left .title,
body.site-i18n-mobile .nav .right .nav-right-item > a {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    line-height: 1.4;
}
body.site-i18n-mobile .nav .left .nav-left-left .title { flex: 1 1 auto; }
body.site-i18n-mobile .nav .left .nav-left-left > img { flex: 0 0 .32rem; }
body.site-i18n-mobile .nav .right { min-width: 0; }
body.site-i18n-mobile .news-nav ul { gap: .08rem; }
body.site-i18n-mobile .news-nav ul li { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.site-i18n-mobile .news-nav ul li > a,body.site-i18n-mobile .news-nav ul li > .title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.site-i18n-mobile .news-flash .flash-item .title,body.site-i18n-mobile .news-films .title { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-overflow: ellipsis; line-height: 1.5; }
body.site-i18n-mobile .news-subcont > .title h1 { line-height: 1.6; }
html:not([data-site-lang="zh"]) .news-subcont > .content { letter-spacing: normal; }
body.site-i18n-mobile .news-subcont .page { display: flex; gap: .15rem; }
body.site-i18n-mobile .news-subcont .page > div { min-width: 0; flex: 1 1 0; }
body.site-i18n-mobile .news-subcont .page a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Arabic changes text direction only; navigation, images and columns keep their positions. */
html[data-site-lang="ar"] body { font-family: Tahoma,Arial,"Microsoft YaHei",sans-serif; }
html[data-site-lang="ar"] .site-i18n-fixed { font-family: Tahoma,Arial,sans-serif; letter-spacing: normal; unicode-bidi: isolate; }
html[data-site-lang="ar"] .site-i18n-rtl-text { direction: rtl; unicode-bidi: isolate; text-indent: 0 !important; }
html[data-site-lang="ar"] .site-i18n-rtl-align { text-align: right !important; }
html[data-site-lang="ar"] .news-text-content,html[data-site-lang="ar"] .serve-main-centent-details,
html[data-site-lang="ar"] .serve-main-centent-modul-content,html[data-site-lang="ar"] .news-subcont > .content { line-height: 1.8; }

/* Non-blocking translation progress / retry. The source page always stays readable. */
.site-i18n-status {
    position: fixed;
    z-index: 10020;
    left: 50%;
    bottom: max(18px,env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: block;
    max-width: calc(100vw - 32px);
    min-height: 38px;
    padding: 9px 16px;
    box-sizing: border-box;
    border: 1px solid #c9e0f2;
    border-radius: 5px;
    color: #135e97;
    background: #f6fbff;
    box-shadow: 0 3px 16px rgba(17,65,105,.14);
    font: 13px/1.5 Arial,"Microsoft YaHei",sans-serif;
    text-align: center;
    cursor: pointer;
}
.site-i18n-status:disabled { opacity: 1; cursor: progress; }
.site-i18n-status:focus-visible { outline: 2px solid #216dad; outline-offset: 3px; }
.site-i18n-status[hidden] { display: none !important; }
@media (max-width:1280px) {
    .head-wrap { gap: 7px; padding-inline: 2%; }
    .head-wrap > ul > li { padding-inline: 8px; font-size: 14px; }
    .head-wrap > .site-language-switch { margin: 0; flex-basis: 124px; width: 124px; }
}
