/* Contacts: one city switcher, supplied imagery and a compact editorial message area. */
/* Long translated labels wrap without shrinking the original Chinese layout. */
.site-page-contacts:not(.site-locale-zh-CN):not(.site-locale-zh-Hant) .contact-city-heading h2 { font-size:clamp(36px,6.3vw,88px); overflow-wrap:anywhere; }
.site-page-contacts .contact-office-heading { flex-wrap:wrap; }
.site-page-contacts .contact-tab-label { min-width:0; overflow-wrap:anywhere; }
.site-page-contacts .contact-section-head > div { min-width:0; }
.site-page-contacts .contact-section-head h2, .site-page-contacts .contact-form-heading h3 { overflow-wrap:anywhere; }
.site-page-contacts { --contact-blue: #0755bd; --contact-ink: #133652; --contact-muted: #506981; --contact-ice: #f4f9ff; background: var(--contact-ice); color: var(--contact-ink); }
.contact-page { overflow: clip; }
.contact-wrap { width: min(1380px,calc(100% - 112px)); margin: 0 auto; }
.contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-page [hidden] { display: none !important; }
.contact-page a, .contact-page button { -webkit-tap-highlight-color: transparent; }
.contact-page a:focus-visible, .contact-page button:focus-visible { outline: 2px solid #247edd; outline-offset: 5px; }
.contact-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 700px; min-height: clamp(700px,88svh,940px); padding: 140px 0 36px; overflow: hidden; color: #fff; background: #126acc; scroll-margin-top: 0; }
.contact-city-backdrops, .contact-city-backdrop { position: absolute; inset: 0; z-index: -2; }
.contact-city-backdrop { display: block; opacity: 0; transition: opacity .8s ease; }
.contact-city-backdrop.is-active { opacity: 1; }
.contact-city-backdrop img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% center; }
.contact-city-backdrop.is-shenzhen img { object-position: 68% center; }
.contact-city-backdrop.is-image-error img { visibility: hidden; }
.contact-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(4,53,121,.88),rgba(6,66,147,.64) 33%,rgba(10,84,172,.08) 75%),linear-gradient(180deg,rgba(5,60,145,.38),rgba(8,74,155,0) 35%,rgba(7,64,139,.16) 66%,rgba(7,66,146,.77)); }
.contact-hero-main { flex: 1; display: flex; align-items: center; }
.contact-hero-copy { width: min(650px,55%); padding: 18px 0 32px; }
.contact-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font: 12px/1.8 Arial,sans-serif; letter-spacing: .18em; }
.contact-eyebrow::before { content: ""; flex: 0 0 28px; height: 1px; background: currentColor; }
.contact-hero-intro { margin: 0 0 30px; font-size: 21px; font-weight: 400; line-height: 1.8; }
.contact-hero-intro > span { display: block; margin-top: 5px; color: #e4f1ff; font-size: 14px; }
.contact-city-panels { display: grid; grid-template-columns: minmax(0,1fr); min-height: 252px; }
/* Both cities size the SAME grid row, even without JS. A longer address/translation
   must not resize the hero (and recrop both cover images) when the city changes. */
.contact-city-panel { grid-area: 1 / 1; min-width: 0; align-self: start; }
.contact-city-panels > .contact-city-panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.contact-city-heading { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.contact-city-heading h2 { margin: 0; font-size: clamp(62px,6.3vw,106px); line-height: 1.12; font-weight: 500; letter-spacing: -.04em; }
.contact-city-heading > span { font: 13px/1.6 Arial,sans-serif; letter-spacing: .18em; color: #e4f1ff; }
.contact-city-office { margin: 18px 0 15px; font-size: 17px; letter-spacing: .03em; }
.contact-city-office > span { padding: 0 8px; color: #c9e8ff; }
.contact-city-panel address { max-width: 530px; min-height: 56px; font-style: normal; color: #eef7ff; font-size: 15px; line-height: 1.85; }
.contact-hero-phone { display: inline-flex; gap: 18px; align-items: baseline; margin-top: 14px; font: 24px/1.5 Arial,sans-serif; }
.contact-hero-phone > span { font: 13px/1.5 "Microsoft YaHei",sans-serif; color: #e4f1ff; }
.contact-hero-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; margin-top: 26px; padding: 11px 24px; border: 1px solid rgba(255,255,255,.52); border-radius: 99px; background: rgba(9,70,147,.16); backdrop-filter: blur(8px); font-size: 14px; transition: background .2s,color .2s; }
.contact-hero-cta:hover { background: #fff; color: #0755bd; }
.contact-hero a:focus-visible { outline-color: #fff; }
.contact-hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-top: 22px; }
.contact-city-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(590px,75%); gap: 12px; }
.contact-city-tab { position: relative; display: flex; align-items: center; gap: 18px; min-height: 86px; padding: 17px 23px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; background: rgba(7,58,130,.4); backdrop-filter: blur(14px); transition: background .25s,border-color .25s; }
.contact-city-tab:hover, .contact-city-tab.is-active { background: rgba(11,84,182,.72); border-color: rgba(255,255,255,.85); }
.contact-city-tab::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: #88e6ff; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.contact-city-tab.is-active::after { transform: scaleX(1); }
.contact-tab-number { font: 12px/1.5 Arial,sans-serif; color: #e4f1ff; }
.contact-tab-label { font-size: 16px; }
.contact-tab-label small { display: block; margin-top: 3px; font: 12px/1.5 Arial,sans-serif; letter-spacing: .09em; color: #e4f1ff; }
.contact-tab-arrow { margin-left: auto; font-size: 22px; }
.contact-scroll-link { display: flex; align-items: center; gap: 24px; min-height: 44px; font-size: 12px; }
.contact-scroll-link > span:last-child { font-size: 25px; }
.contact-message-section { position: relative; padding: clamp(80px,8vw,126px) 0 92px; background: linear-gradient(180deg,#f4f9ff,#fff 48%); scroll-margin-top: 96px; }
.contact-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,7vw,100px); align-items: end; margin-bottom: 66px; }
.contact-section-head .contact-eyebrow { color: #3e75a8; }
.contact-section-head h2 { margin: 0; font-size: clamp(34px,3.4vw,54px); font-weight: 500; line-height: 1.45; letter-spacing: -.04em; }
.contact-section-head h2 > span { display: block; color: #2271be; }
.contact-section-head > p { margin: 0 0 8px; font-size: 16px; line-height: 1.95; color: var(--contact-muted); max-width: 570px; }
.contact-message-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(42px,6vw,92px); align-items: start; }
.contact-details { padding-top: clamp(26px,3vw,44px); }
.contact-office { padding: 0 0 28px; border: 0; }
.contact-office + .contact-office { padding-top: 28px; border-top: 1px solid #e0e9f2; }
.contact-office:last-child { padding-bottom: 0; }
.contact-office-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.contact-office h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.6; }
.contact-office-heading > span { color: #506981; font: 12px/1.8 Arial,sans-serif; letter-spacing: .06em; }
.contact-office address { font-size: 14px; line-height: 1.9; font-style: normal; color: var(--contact-muted); margin-top: 14px; overflow-wrap: anywhere; }
.contact-office-phone { display: flex; gap: 18px; align-items: baseline; margin-top: 14px; width: fit-content; font: 20px/1.8 Arial,sans-serif; color: #0755bd; }
.contact-office-phone > span { font: 13px/1.8 "Microsoft YaHei",sans-serif; color: var(--contact-muted); }
.contact-office-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.contact-office-actions a, .contact-office-actions button { display: inline-flex; align-items: center; gap: 12px; padding: 7px 0; min-height: 36px; color: #0755bd; background: none; border: 0; cursor: pointer; font-size: 13px; }
.contact-office-actions a:hover, .contact-office-actions button:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-visit-note { margin: 22px 0 28px; color: var(--contact-muted); font-size: 13px; line-height: 1.9; }
.contact-email-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.contact-email-list > div > span { display: block; color: var(--contact-muted); font-size: 13px; margin-bottom: 8px; }
.contact-email-list a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #0755bd; font: 17px/1.7 Arial,sans-serif; overflow-wrap: anywhere; }
.contact-form-shell { min-width: 0; padding: clamp(26px,3vw,44px); border: 0; border-radius: 14px; background: #edf4fc; box-shadow: none; }
.contact-form-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 28px; }
.contact-form-heading h3 { font-size: 28px; font-weight: 500; margin: 0; line-height: 1.5; }
.contact-form-heading > span { font: 12px/1.8 Arial,sans-serif; letter-spacing: .09em; color: #506981; }
.contact-form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
.contact-field label { display: block; font-size: 14px; margin-bottom: 9px; }
.contact-field label > span { color: #0755bd; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-width: 0; padding: 14px 16px; color: var(--contact-ink); background: #fff; border: 1px solid transparent; border-radius: 7px; font-size: 16px; line-height: 1.7; box-shadow: none; caret-color: #326ba7; transition: border-color .18s ease; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #8794a5; opacity: 1; }
/* One stable focus edge for mouse and keyboard; no offset outline + underline stack. */
.contact-field input:focus, .contact-field textarea:focus { border-color: #4277b4; outline: none; box-shadow: none; }
.contact-field textarea { min-height: 160px; resize: vertical; }
.contact-field input.is-invalid, .contact-field textarea.is-invalid { border-color: #b93642; }
.contact-field-hint { font-size: 12px; line-height: 1.8; color: var(--contact-muted); margin: 9px 0 0; }
.contact-submit-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: flex-end; margin-top: 32px; }
.contact-form-note { color: var(--contact-muted); font-size: 12px; line-height: 1.9; margin: 0; flex: 1 1 220px; }
.contact-form-note a { color: #0755bd; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 12px 23px; color: #fff; background: #0755bd; border: 1px solid #0755bd; border-radius: 99px; font-size: 14px; cursor: pointer; transition: background .2s; }
.contact-submit:hover { background: #064b9f; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-form-status { min-height: 24px; margin-top: 19px; font-size: 13px; line-height: 1.85; color: #176046; overflow-wrap: anywhere; }
.contact-form-status.is-error { color: #a22e3d; }
.contact-form-status a { display: inline-block; margin-left: 8px; color: #0755bd; text-decoration: underline; text-underline-offset: 4px; }
.contact-closing { color: #fff; background: #0755bd; padding: 38px 0; }
.contact-closing > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-closing p { font-size: clamp(21px,2.1vw,30px); margin: 0; }
.contact-closing a { display: flex; align-items: center; gap: 22px; flex-shrink: 0; font-size: 13px; min-height: 44px; }
.site-page-contacts .site-footer { background: #0755bd; color: #e5f2ff; border: 0; }
.site-page-contacts .site-footer-inner { width: min(1380px,calc(100% - 112px)); border-top: 1px solid rgba(255,255,255,.22); padding: 22px 0 28px; font-size: 12px; }
.contact-toast { position: fixed; z-index: 150; left: 50%; bottom: 30px; width: max-content; max-width: calc(100% - 40px); transform: translate(-50%,8px); padding: 12px 22px; color: #fff; background: #0755bd; border-radius: 6px; opacity: 0; visibility: hidden; pointer-events: none; font-size: 14px; transition: opacity .2s,transform .2s,visibility .2s; }
.contact-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
@media (max-width:1120px) {
    .contact-wrap, .site-page-contacts .site-footer-inner { width: calc(100% - 64px); }
    .contact-hero-copy { width: min(600px,65%); }
    .contact-message-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 36px; }
    .contact-section-head { gap: 36px; }
    .contact-email-list { grid-template-columns: 1fr; gap: 20px; }
    .contact-form-shell { padding: 28px; }
    .contact-details { padding-top: 28px; }
}
@media (max-width:900px) {
    .contact-message-layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
    .contact-office-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
    .contact-details { padding-top: 0; }
    .contact-office { padding-bottom: 0; }
    .contact-office + .contact-office { border-top: 0; padding-top: 0; }
    .contact-email-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-field-full { grid-column: 1 / -1; }
    .contact-section-head { grid-template-columns: minmax(0,1fr); gap: 24px; margin-bottom: 44px; }
    .contact-hero-copy { width: min(600px,80%); }
    .contact-city-switch { width: min(590px,100%); }
    .contact-scroll-link { display: none; }
}
@media (max-width:640px) {
    .contact-wrap, .site-page-contacts .site-footer-inner { width: calc(100% - 40px); }
    .contact-hero { min-height: 760px; min-height: max(760px,92svh); padding: 116px 0 24px; }
    .contact-hero-copy { width: 100%; padding: 16px 0 28px; }
    .contact-city-backdrop img { object-position: 76% center; }
    .contact-city-backdrop.is-shenzhen img { object-position: 71% center; }
    .contact-hero::before { background: linear-gradient(90deg,rgba(4,53,121,.86),rgba(6,66,147,.56)),linear-gradient(180deg,rgba(5,60,145,.16),rgba(7,66,146,.12) 60%,rgba(7,66,146,.7)); }
    .contact-hero-intro { font-size: 19px; margin-bottom: 28px; }
    .contact-city-heading { gap: 16px; }
    .contact-city-heading h2 { font-size: 70px; }
    .contact-city-heading > span { font-size: 12px; letter-spacing: .08em; }
    .contact-city-panels { min-height: 272px; }
    .contact-city-office { font-size: 15px; }
    .contact-city-office > span { padding: 0 3px; }
    .contact-city-panel address { font-size: 14px; }
    .contact-hero-cta { margin-top: 18px; }
    .contact-hero-bottom { margin-top: 6px; }
    .contact-city-switch { gap: 10px; }
    .contact-city-tab { min-height: 82px; padding: 15px 13px; gap: 10px; }
    .contact-tab-label { font-size: 15px; }
    .contact-tab-label small { font-size: 12px; letter-spacing: .02em; }
    .contact-tab-arrow { display: none; }
    .contact-city-tab::after { left: 13px; right: 13px; }
    .contact-message-section { padding: 64px 0; }
    .contact-section-head h2 { font-size: 34px; }
    .contact-section-head > p { font-size: 15px; }
    .contact-office-list { grid-template-columns: minmax(0,1fr); gap: 0; }
    .contact-office + .contact-office { margin-top: 26px; padding-top: 26px; border-top: 1px solid #e0e9f2; }
    .contact-form-shell { padding: 26px 20px 20px; border-radius: 10px; }
    .contact-form-grid { grid-template-columns: minmax(0,1fr); }
    .contact-email-list { gap: 16px; }
    .contact-email-list a { font-size: 16px; gap: 8px; }
    .contact-submit-row { align-items: stretch; gap: 20px; }
    .contact-submit { width: 100%; }
    .contact-closing > div { align-items: flex-start; flex-direction: column; gap: 12px; }
    .site-page-contacts .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion:reduce) {
    .contact-city-backdrop, .contact-city-tab, .contact-city-tab::after, .contact-toast, .contact-hero-cta, .contact-submit { transition: none; transform: none; }
    .contact-field input, .contact-field textarea { transition: none; }
    .contact-toast { transform: translateX(-50%); }
}
@media (forced-colors:active) {
    .contact-field input, .contact-field textarea { border-color: CanvasText; }
    .contact-field input:focus, .contact-field textarea:focus { border-color: Highlight; outline: 2px solid Highlight; outline-offset: 2px; }
}
