/* Six shared sections for Chinese corporate navigation and footers. */
.site-header[data-nav-six][data-template="immersive"] .main-nav { gap: clamp(18px,2vw,30px); }
.site-header[data-nav-six] .nav-item[data-current="true"] > summary::after { transform: scaleX(1); }
.site-header[data-nav-six] .nav-six-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 35px; padding: 30px max(3.15vw,calc((100vw - 1100px)/2)); }
.site-header[data-nav-six] .nav-six-panel a { display: block; padding: 14px 18px; font-size: 15px; line-height: 1.7; background: #f6f7f8; border-radius: 3px; }
.site-header[data-nav-six] .nav-six-panel a:hover,.site-header[data-nav-six] .nav-six-panel a[aria-current="page"] { background: #eceff2; }
.site-header[data-nav-six][data-template="legacy"] .desktop-nav { gap: clamp(12px,1.5vw,24px); }
.site-header[data-nav-six][data-template="legacy"] .bilingual-dropdown > summary::after { content: none; }
.site-footer[data-nav-six] { background: #15191d; color: #fff; }
.site-footer[data-nav-six] .nav-six-footer-identity { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:30px; }
.site-footer[data-nav-six] .footer-brand>a.brand-wordmark { margin:0; }
.site-footer[data-nav-six] .footer-brand { display:flex; align-items:center; gap:28px; min-width:0; }
.site-footer[data-nav-six] .footer-brand .nav-six-footer-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin:0; font-size:13px; line-height:1.8; color:#9ca6b0; }
.site-footer[data-nav-six] .nav-six-footer-meta>span { white-space:nowrap; }
.site-footer[data-nav-six] .nav-six-footer-meta>:not(:first-child)::before { content:"·"; margin-right:14px; color:#8b939b; }
.site-footer[data-nav-six] .nav-six-email { font-size:13px; line-height:inherit; color:inherit; text-decoration:none; white-space:nowrap; }
.site-footer[data-nav-six] .nav-six-email:hover { text-decoration:underline; text-underline-offset:4px; }
.site-footer[data-nav-six] .nav-six-footer-identity>.cn-top-link { flex-shrink:0; margin:0; }
.site-footer[data-nav-six] .nav-six-footer-columns { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 25px; padding-bottom: 40px; }
.site-footer[data-nav-six] .footer-column { min-width: 0; }
.site-footer[data-nav-six] .footer-column h3 { font-size: 14px; line-height: 1.6; margin: 0 0 18px; font-weight: 500; color: #fff; }
.site-footer[data-nav-six] .footer-column nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer[data-nav-six] .footer-column a { font-size: 12px; line-height: 1.8; color: #9ca6b0; text-decoration: none; overflow-wrap: anywhere; }
.site-footer[data-nav-six] .footer-column a:hover { color: #fff; }
.support-index { padding: 22px var(--page-gutter); display: flex; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid #e3e7eb; font-size: 13px; }
.support-index a { padding: 5px 0; }
.support-section { scroll-margin-top: 90px; }
.support-intro { font-size: 14px; color: #6b7681; margin-bottom: 28px; }
.support-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.support-document { padding: 28px; background: #f5f7f9; border-radius: 4px; }
.support-document h3 { font-size: 24px; line-height: 1.6; margin-bottom: 12px; }
.support-document > p:not(.section-label) { font-size: 12px; color: #6c7782; }
.support-document .action-row { margin-top: 22px; gap: 22px; font-size: 13px; }
.support-document .action-row a { border-bottom: 1px solid #aab1b8; padding: 3px 0; }
.support-video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 24px; }
.support-video h3 { font-size: 20px; line-height: 1.6; margin: 17px 0 9px; }
.support-video > p { font-size: 13px; line-height: 1.9; color: #6b7681; }
.support-video .media-card { aspect-ratio: 16/9; }
.support-video .media-card img { height: 100%; object-fit: cover; }
@media (max-width:1100px) { .site-header[data-nav-six][data-template="immersive"] .main-nav { gap: 18px; font-size: 13px; } .site-footer[data-nav-six] .nav-six-footer-columns { gap: 18px; } }
@media (max-width:800px) {
 .site-footer[data-nav-six] .nav-six-footer-identity { align-items:flex-start; flex-direction:column; padding-bottom:26px; gap:18px; }
 .site-footer[data-nav-six] .footer-brand { flex-direction:column; align-items:flex-start; gap:14px; }
 .site-footer[data-nav-six] .footer-brand .nav-six-footer-meta { gap:4px 10px; font-size:12px; }
 .site-footer[data-nav-six] .nav-six-footer-meta>:not(:first-child)::before { margin-right:10px; }
 .site-footer[data-nav-six] .nav-six-footer-meta>a::before { content:none; }
 .site-footer[data-nav-six] .nav-six-footer-meta>a { font-size:inherit; }
 .site-footer[data-nav-six] .nav-six-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 20px; padding-bottom: 30px; }
 .site-footer[data-nav-six] .footer-column h3 { font-size: 14px; margin-bottom: 16px; }
 .site-footer[data-nav-six] .footer-column a { font-size: 12px; }
 .support-index { padding: 18px 6vw; gap: 12px 24px; font-size: 12px; }
 .support-document-grid,.support-video-grid { grid-template-columns: 1fr; gap: 25px; }
 .support-document { padding: 24px; }
 .support-document h3 { font-size: 22px; }
 .support-intro { font-size: 13px; }
}

/* Remove obsolete space reserved for the former chat launcher. */
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer.cn-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .footer-bottom{padding-bottom:max(24px,env(safe-area-inset-bottom))}
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .cn-footer-bottom{margin-top:0}
html[lang^="zh"] body[data-brand-surface="corporate"] #mda1-simulation{scroll-margin-top:96px}

/* Keep the company directory beside the wordmark, with utilities on the right. */
@media(min-width:1100px){
 html[lang^="zh"] body[data-brand-surface="corporate"] .site-header[data-nav-six] .main-nav{margin:0 auto 0 24px;justify-content:flex-start;flex:0 0 auto}
 html[lang^="zh"] body[data-brand-surface="corporate"] .site-header[data-nav-six][data-template="legacy"] .locale-switch{margin-left:0}
}

@media(max-width:800px){
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .footer-bottom,
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .cn-footer-bottom{padding-right:72px}
}

/* Keep legal links clear of the expanded desktop chat entry. */
@media(min-width:761px){
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .footer-bottom,
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .cn-footer-bottom{padding-right:230px;flex-wrap:wrap}
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .footer-bottom>div,
html[lang^="zh"] body[data-brand-surface="corporate"] .site-footer .cn-footer-bottom>div{min-width:0;max-width:100%}
}
