/* About and Services share the same contact chapter as Home and Social. */
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('./assets/fonts/alibaba-puhuiti-site-subset.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
html[lang^="zh"] .contact-page { font-family: 'Alibaba PuHuiTi', 'Noto Sans CJK SC', sans-serif; }
html[lang="en"] .contact-page { font-family: Jost, Arial, sans-serif; }
.contact-page {
  margin-top: 86px;
  padding: 12px clamp(24px, 5vw, 80px) 62px;
  background: #eef6ff;
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 76px clamp(32px, 4.2vw, 64px) 30px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 32px;
  color: #173653;
  background:
    radial-gradient(ellipse 55% 75% at 98% 96%, rgba(248, 216, 194, .2), transparent 83%),
    linear-gradient(128deg, #e6f2fb 0%, #e1eef9 38%, #eef2f5 67%, #f8eae1 100%);
  box-shadow: 0 24px 60px rgba(58, 98, 144, .1);
}
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -26%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 46% at 12% 24%, rgba(164, 203, 239, .19), transparent 78%),
    radial-gradient(ellipse 40% 47% at 81% 73%, rgba(247, 208, 181, .17), transparent 82%),
    radial-gradient(ellipse 29% 35% at 53% 16%, rgba(255, 255, 255, .3), transparent 76%);
  opacity: .58;
  transform: translate3d(-2%, -1%, 0) scale(1);
  animation: contact-color-flow 18s ease-in-out infinite alternate;
  transition: opacity .7s ease;
}
.contact-panel:hover::before,
.contact-panel:focus-within::before { opacity: .72; }
.contact-panel > * { position: relative; z-index: 1; }
@keyframes contact-color-flow {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.07); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.12); }
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding-bottom: 68px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 17px;
  border: 1px solid #c9ddea;
  border-radius: 999px;
  color: #18467c;
  background: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}
.contact-pill::before { content: "✦"; margin-right: 9px; color: #ff7b26; font-size: 16px; line-height: 1; }
.contact-lead h2 {
  max-width: 780px;
  margin: 27px 0 18px;
  color: #143751;
  font-size: clamp(48px, 4.2vw, 65px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.13;
  text-wrap: balance;
}
.contact-lead h2 span { display: block; }
.contact-lead p { margin: 0; color: #627b91; font-size: clamp(15px, 1.23vw, 18px); line-height: 1.7; }
.contact-options { display: grid; gap: 12px; min-width: 0; }
.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 89px;
  padding: 19px 24px;
  border: 1px solid #c7dced;
  border-radius: 17px;
  color: #18467c;
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}
.contact-option:hover { transform: translateY(-4px); border-color: #89b8df; box-shadow: 0 14px 27px rgba(27, 93, 164, .1); }
.contact-option-primary { color: #fff; border-color: #075ac9; background: #075ac9; }
.contact-option-primary:hover { border-color: #1268dc; background: #1268dc; }
.contact-option-secondary { background: rgba(255, 255, 255, .83); }
.contact-option-secondary:hover { background: #eff8ff; }
.contact-option-copy { display: grid; gap: 7px; min-width: 0; }
.contact-option-copy small { color: #52759a; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.contact-option-primary .contact-option-copy small { color: #d5e7ff; }
.contact-option-copy strong { font-size: 18px; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-option-arrow { align-self: center; font-size: 22px; font-weight: 400; }
.contact-brand-row {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr) minmax(165px, .65fr);
  align-items: center;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px solid #d4e3f0;
  color: #627b91;
}
.contact-brand { display: flex; align-items: center; gap: 12px; color: #173b60; }
.contact-brand img { width: 48px; height: 48px; object-fit: contain; }
.contact-brand strong { font-size: 17px; line-height: 1.04; font-weight: 790; letter-spacing: -.035em; }
.contact-brand-row p { margin: 0; text-align: center; font-size: 12px; line-height: 1.7; }
.contact-brand-row > span { text-align: right; font-size: 11px; line-height: 1.6; }
.contact-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid #d4e3f0;
  color: #627b91;
}
.contact-meta-row small { font-size: 10px; line-height: 1.5; }
.contact-meta-row small:nth-child(2) { text-align: center; letter-spacing: .1em; }
.contact-meta-row a { justify-self: end; font-size: 11px; transition: color .25s, transform .25s; }
.contact-meta-row a:hover { color: #075ac9; transform: translateY(-2px); }

html[lang="en"] .contact-lead h2 { font-family: Jost, Arial, sans-serif; font-size: clamp(40px, 3.45vw, 53px); letter-spacing: -.05em; }
html[lang="en"] .contact-lead p { font-family: Jost, Arial, sans-serif; }
html[lang^="zh"] .contact-lead h2,
html[lang^="zh"] .contact-lead p { font-family: 'Alibaba PuHuiTi', 'Noto Sans CJK SC', sans-serif; }

@media (max-width: 1100px) {
  .contact-main { gap: 35px; }
  .contact-panel { padding: 65px 38px 28px; }
  .contact-lead h2 { font-size: clamp(44px, 4.4vw, 55px); }
}
@media (max-width: 800px) {
  .contact-page { padding: 8px 25px 48px; }
  .contact-panel { min-height: 0; padding: 52px 34px 26px; border-radius: 26px; }
  .contact-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 60px; }
  .contact-lead h2 { max-width: 700px; font-size: clamp(47px, 6.4vw, 62px); }
  .contact-options { max-width: 680px; }
  .contact-brand-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-brand-row p { text-align: right; }
  .contact-brand-row > span { grid-column: 1 / -1; text-align: left; }
  .contact-meta-row { grid-template-columns: 1fr auto; }
  .contact-meta-row small:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .contact-page { margin-top: 55px; padding: 0 18px 35px; }
  .contact-panel { padding: 43px 25px 24px; border-radius: 24px; }
  .contact-main { gap: 31px; padding-bottom: 49px; }
  .contact-lead h2 { margin: 23px 0 17px; font-size: clamp(39px, 9.5vw, 53px); line-height: 1.16; }
  .contact-lead p { font-size: 14px; }
  .contact-option { min-height: 79px; padding: 16px 18px; border-radius: 14px; }
  .contact-option-copy strong { font-size: 16px; }
  .contact-brand-row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .contact-brand-row p, .contact-brand-row > span { text-align: left; grid-column: auto; font-size: 11px; }
  .contact-brand strong { font-size: 15px; }
  .contact-meta-row { gap: 12px; padding-top: 18px; }
  .contact-meta-row small, .contact-meta-row a { font-size: 9px; }
  html[lang="en"] .contact-lead h2 { font-size: clamp(37px, 8.5vw, 49px); }
}
@media (prefers-reduced-motion: reduce) { .contact-panel::before { animation: none; transform: none; } }
