/* 新闻页独立样式；公共头尾及交互由 public.css / public.js 提供。 */
.contact-main { --contact-gutter: var(--gutter-page); color: var(--c-ink); }
.contact-banner {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(420px, 46vw, calc(100vh - var(--nav-h)));
  height: clamp(420px, 46vw, calc(100dvh - var(--nav-h)));
}
.contact-banner__image {
  position: absolute; inset: 0; z-index: -2;
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.contact-banner__panel {
  position: absolute; inset: 0; z-index: -1;
  background: url("../imgs/infobox_orange_left.png") left top / 100% 100% no-repeat;
  clip-path: polygon(0 0, 46% 0, 41% 100%, 0 100%);
}
.contact-banner__inner { height: 100%; padding-inline: var(--contact-gutter); display: flex; align-items: center; padding-bottom: calc(var(--application-banner-height) * var(--inner-banner-title-lift) * 2); }
.contact-banner__copy { max-width: calc(46vw - var(--contact-gutter) - var(--sp-5)); }
.contact-banner__copy h1, .contact-banner__copy p {
  font-size: min(var(--fs-6xl), calc((46vw - var(--contact-gutter) - var(--sp-5)) / 9));
  font-weight: 700; line-height: 1.5;
}

.contact-layout { padding: var(--company-space) var(--contact-gutter); display: grid; grid-template-columns: minmax(0, 240fr) minmax(0, 1140fr); gap: var(--company-col-gap); scroll-margin-top: var(--nav-h); }
.contact-illustration img { display: block; width: 240px; max-width: 100%; height: auto; }
.contact-content { min-width: 0; }
.contact-title { font-size: var(--fs-6xl); line-height: 1.3; margin-bottom: var(--sp-5); }
/* 联系人沿用团队页卡片形式，独立限定于联系页。 */
.contact-person { display: flex; flex-direction: column; width: 480px; max-width: 100%; min-width: 0; margin-bottom: var(--sp-7); }
.contact-person__portrait { position: relative; z-index: 1; display: block; width: 68%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-inline: auto; }
.contact-person__body { display: grid; grid-template-columns: var(--team-contact-icon) minmax(0, 1fr); align-items: center; gap: var(--sp-5) var(--sp-4); margin-top: -25.5%; padding: calc(25.5% + var(--sp-6)) var(--sp-5) var(--sp-5); background: linear-gradient(180deg, var(--c-accent-green), #0aab89); }
.contact-person__icon { display: block; width: 100%; height: auto; }
.contact-person__person-icon { align-self: start;  }
.contact-person__info { min-width: 0; }
.contact-person h3 { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.3; }
.contact-person__role { margin-top: var(--sp-3); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.4; }
.contact-person address { margin-top: var(--sp-4); font-size: var(--fs-sm); font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
.contact-person__contact { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--sp-2); border-radius: 999px; background: var(--c-ink); color: var(--c-paper); font-size: var(--fs-xs); line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.contact-person__contact:hover { background: #252525; text-decoration: underline; }
.contact-intro { border-left: 3px solid var(--c-ink); padding-left: var(--sp-5); margin-bottom: var(--sp-6); }
.contact-intro p { font-size: var(--fs-base); line-height: var(--lh-lead); }
.contact-form { max-width: 852px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.contact-field { position: relative; min-width: 0; border: 1px solid var(--c-text); padding: var(--sp-2) var(--sp-5); }
.contact-field label { display: block; font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.5; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; min-width: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: var(--c-ink); font-size: var(--fs-lead); line-height: 1.6; min-height: 1.6em; }
.contact-field:focus-within { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.contact-field select { appearance: none; padding-right: var(--sp-5); cursor: pointer; }
.contact-field--select::after { content: ''; position: absolute; right: var(--sp-5); top: 50%; width: 12px; height: 12px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.contact-field--custom { cursor: pointer; }
.contact-field--custom select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; pointer-events: none; padding: 0; }
.contact-select__trigger { display: block; width: 100%; text-align: left; padding-right: var(--sp-5); color: var(--c-ink); font-size: var(--fs-lead); line-height: 1.6; }
.contact-select__trigger:focus-visible { outline: none !important; }
.contact-field--custom.is-open { z-index: 5; border-color: var(--c-ink); }
.contact-field--custom.is-open::after { transform: translateY(-10%) rotate(225deg); }
.contact-select__options { position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; max-height: 260px; overflow-y: auto; padding: var(--sp-2); background: #fff; border: 1px solid var(--c-border); box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: var(--radius); }
.contact-select__options[hidden] { display: none; }
.contact-select__option { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); width: 100%; padding: var(--sp-3) var(--sp-4); text-align: left; font-size: var(--fs-lead); line-height: 1.5; border-radius: var(--radius); color: var(--c-text); }
.contact-select__option:hover, .contact-select__option:focus-visible { background: #f3f3f3; outline: none !important; }
.contact-select__option[aria-selected="true"] { background: #f0f0f0; color: var(--c-ink); font-weight: 700; }
.contact-select__option[aria-selected="true"]::after { content: '✓'; }
.contact-field--message { grid-column: 1 / -1; }
.contact-field textarea { resize: vertical; min-height: 128px; }
.contact-checks { display: grid; gap: var(--sp-4); margin-block: var(--sp-6); }
.contact-check { display: flex; align-items: flex-start; gap: var(--sp-4); font-size: var(--fs-lead); }
.contact-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2em; accent-color: var(--c-ink); }
.contact-check span, .contact-check a { line-height: 1.6; }
.contact-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); width: 334px; max-width: 100%; min-height: var(--btn-h); padding: var(--sp-3) var(--sp-5); border-radius: 999px; background: var(--c-ink); color: #fff; font-size: var(--fs-lead); }
.contact-submit svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.contact-submit:hover { background: var(--c-text); }
.contact-submit:disabled { opacity: .6; cursor: default; }
.contact-status { position: fixed; z-index: 2000; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100vw - 32px); width: max-content; padding: var(--sp-4) var(--sp-6); border-radius: var(--radius); background: rgba(0,0,0,.8); color: #fff; font-size: var(--fs-base); line-height: 1.7; text-align: center; pointer-events: none; opacity: 0; }
.contact-status.is-visible { opacity: 1; }
.contact-status:empty { display: none; }
.contact-direct { margin-top: var(--company-space); }
.contact-country { }
.contact-country h3 { padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 3px solid var(--c-accent-green); font-size: var(--fs-3xl); line-height: 1.5; }
.contact-offices { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); }
.contact-country address, .contact-country p, .contact-country h4, .contact-country a { font-size: var(--fs-lead); font-style: normal; line-height: 1.6; }
.contact-country address { min-width: 0; overflow-wrap: anywhere; }
.contact-country h4 { font-weight: 700; }
.contact-country a { color: inherit; }
.contact-country a:hover { color: var(--c-text-2); }
.contact-map { display: block; align-self: start; grid-column: 1 / -1; }
.contact-map img { display: block; width: 100%; height: auto; }
.contact-country-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--company-col-gap); }
.contact-main a:focus-visible, .contact-main button:focus-visible, .contact-check input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }
#address, #email { scroll-margin-top: calc(var(--nav-h) + var(--sp-5)); }
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 160fr) minmax(0, 780fr); gap: var(--sp-6); }
  .contact-country-pair { gap: var(--sp-6); }
}
@media (max-width: 768px) {
  .contact-illustration { display: none; }
  .contact-main { --contact-gutter: 16px; }
  .contact-banner__panel { clip-path: none; background-size: 70% 100%; }
  .contact-banner__image { object-position: 65% center; }
  .contact-banner__copy { max-width: 70%; }
  .contact-banner__copy h1, .contact-banner__copy p, .contact-title { font-size: var(--fs-5xl); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-illustration img { width: 120px; }
  .contact-fields, .contact-offices, .contact-country-pair { grid-template-columns: minmax(0, 1fr); }
  .contact-country-pair { gap: 0; }
  .contact-country { margin-top: var(--sp-7); }
}
