/* ==========================================================================
   Contact — /contact/ and /zh/contact-zh/.
   Ported from 调研/preview/contact.html + assets/pages.css (owner-approved
   2026-11-09). Scoped under `.xyz-contact`; the native enquiry form is styled
   through `.inquiry-form--full` so product pages keep their compact form.
   ========================================================================== */

.xyz-contact {
  --ink: #11151A;
  --ink-2: #2C333A;
  --muted: #5E6772;
  --paper-2: #F2F5F8;
  --accent-900: #0B2C49;
  --accent-600: #125F96;
  --accent-100: #E2EFF8;
  --copper: #C9601F;
  --line: #E1E6EB;
  --font-display: "Archivo", "Noto Sans SC", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Mono", monospace;
  --xyz-c-shell: 1320px;
  --xyz-c-gutter: 32px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
.xyz-contact *,
.xyz-contact *::before,
.xyz-contact *::after { box-sizing: border-box; }
.xyz-contact h1,
.xyz-contact h2,
.xyz-contact h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.xyz-contact p { margin: 0; }
.xyz-contact img { display: block; max-width: 100%; height: auto; }
.xyz-contact dl,
.xyz-contact dd { margin: 0; }
.xyz-c-shell {
  width: min(100% - 2 * var(--xyz-c-gutter), var(--xyz-c-shell));
  margin-inline: auto;
}
.xyz-contact .eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.xyz-contact .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-contact .crumbs a { color: var(--muted); text-decoration: none; }
.xyz-contact .crumbs a:hover { color: var(--accent-600); }
.xyz-contact .crumbs i { font-style: normal; opacity: .5; }
.xyz-contact .crumbs b { font-weight: 400; color: var(--accent-600); }

/* ----------------------------------------------------------- page head --- */

.xyz-contact .cch {
  padding: clamp(50px, 6vw, 84px) 0 clamp(44px, 5vw, 66px);
  background: var(--accent-900);
  color: #fff;
}
.xyz-contact .cch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}
.xyz-contact .cch h1 {
  max-width: 16ch;
  margin-top: 22px;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 300;
  line-height: .99;
  letter-spacing: -.035em;
  color: #fff;
}
.xyz-contact .cch h1 em { font-style: normal; color: #8FC7EC; }
.xyz-contact .cch .crumbs,
.xyz-contact .cch .crumbs a { color: rgba(255, 255, 255, .5); }
.xyz-contact .cch .crumbs a:hover { color: #fff; }
.xyz-contact .cch .crumbs b { color: #8FC7EC; }
.xyz-contact .cch .eyebrow { color: #8FC7EC; }
.xyz-contact .cch__lines { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .24); }
.xyz-contact .cch__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  text-decoration: none;
}
.xyz-contact .cch__line span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.xyz-contact .cch__line b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -.01em;
}
.xyz-contact .cch__line:hover b { color: #8FC7EC; }

/* ------------------------------------------------------------ the desk --- */

.xyz-contact .cbody { padding: clamp(44px, 5.5vw, 76px) 0; }
.xyz-contact .cbody__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.xyz-contact .cbody h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 300; }
.xyz-contact .cbody__lead {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------- enquiry form --- */

.xyz-contact .inquiry-block { margin-top: 30px; scroll-margin-top: 110px; }
.xyz-contact .inquiry-notice {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-left: 2px solid var(--accent-600);
  background: var(--accent-100);
  color: var(--accent-900);
  font-size: 13px;
}
.xyz-contact .inquiry-notice--error { border-left-color: var(--copper); background: #FBEDE4; color: #7A3213; }
.xyz-contact .inquiry-form--full { display: block; }
.xyz-contact .inquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 26px;
}
.xyz-contact .inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 2px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.xyz-contact .inquiry-field:focus-within { border-bottom-color: var(--accent-600); }
.xyz-contact .inquiry-field--full { grid-column: 1 / -1; }
.xyz-contact .inquiry-field label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-contact .inquiry-field label i { font-style: normal; color: var(--copper); }
.xyz-contact .inquiry-field input,
.xyz-contact .inquiry-field select,
.xyz-contact .inquiry-field textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.xyz-contact .inquiry-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
.xyz-contact .inquiry-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 17px, calc(100% - 7px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.xyz-contact .inquiry-honeypot { position: absolute; left: -9999px; }
.xyz-contact .inquiry-actions--full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.xyz-contact .inquiry-submit {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--accent-600);
  background: var(--accent-600);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.xyz-contact .inquiry-submit:hover,
.xyz-contact .inquiry-submit:focus-visible { background: var(--accent-900); border-color: var(--accent-900); }
.xyz-contact .inquiry-note {
  max-width: 44ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------- desk card --- */

.xyz-contact .ccard {
  padding: clamp(26px, 3vw, 36px);
  background: var(--accent-900);
  color: #fff;
}
.xyz-contact .ccard h3 {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #fff;
}
.xyz-contact .ccard__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px;
}
.xyz-contact .ccard__row dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.xyz-contact .ccard__row dd { color: rgba(255, 255, 255, .85); line-height: 1.5; }
.xyz-contact .ccard__row a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.xyz-contact .ccard__row a:hover { color: #8FC7EC; }

.xyz-contact .ccheck { margin-top: 22px; padding: 22px; background: var(--paper-2); }
.xyz-contact .ccheck p {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--copper);
}
.xyz-contact .ccheck ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.xyz-contact .ccheck li { margin-bottom: 6px; }
.xyz-contact .ccheck li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ port band --- */

.xyz-contact .cport {
  position: relative;
  height: clamp(260px, 29vw, 360px);
  overflow: hidden;
  background: var(--accent-900);
}
.xyz-contact .cport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xyz-contact .cport::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 44, .05) 18%, rgba(6, 26, 44, .62) 62%, rgba(6, 26, 44, .88));
}
.xyz-contact .cport .xyz-c-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(22px, 3vw, 34px);
  color: #fff;
}
.xyz-contact .cport__route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.xyz-contact .cport__route span,
.xyz-contact .cport__route b { white-space: nowrap; }
.xyz-contact .cport__route i { font-style: normal; color: #8FC7EC; }
.xyz-contact .cport__route b { font-weight: 400; color: #8FC7EC; }
.xyz-contact .cport__note {
  max-width: 54ch;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

/* ----------------------------------------------------------- shipping --- */

.xyz-contact .cship-sec { padding: clamp(44px, 5.5vw, 76px) 0; scroll-margin-top: 96px; }
.xyz-contact .cship__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.xyz-contact .cship__head h2 {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
}
.xyz-contact .cship__head > p {
  max-width: 44ch;
  font-size: 14.5px;
  color: var(--muted);
}
.xyz-contact .cship { margin-top: 34px; border-top: 1px solid var(--ink); }
.xyz-contact .cship__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.xyz-contact .cship__row dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.xyz-contact .cship__row dd { font-size: 14px; color: var(--ink-2); }
.xyz-contact .cship__row dd + dd { color: var(--ink); font-weight: 500; }
.xyz-contact .note-line {
  max-width: 78ch;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ----------------------------------------------------------------- CTA --- */

.xyz-contact .ccta {
  padding: clamp(56px, 7vw, 80px) 0;
  background: var(--accent-600);
  color: #fff;
}
.xyz-contact .ccta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.xyz-contact .ccta h2 {
  max-width: 16ch;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
}
.xyz-contact .ccta p {
  margin-top: 14px;
  color: #DCE8FF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .03em;
}
.xyz-contact .cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--accent-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.xyz-contact .cbtn:hover { background: var(--accent-100); border-color: var(--accent-100); color: var(--accent-900); }

/* --------------------------------------------------------------- widths --- */

@media (max-width: 980px) {
  .xyz-contact .cch__inner { grid-template-columns: 1fr; align-items: start; }
  .xyz-contact .cbody__inner { grid-template-columns: 1fr; gap: 34px; }
  .xyz-contact .cship__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}
@media (max-width: 820px) {
  .xyz-contact .cbody { padding: 36px 0 44px; }
  .xyz-contact .cship-sec { padding: 36px 0 44px; }
}
@media (max-width: 760px) {
  .xyz-c-shell { width: min(100% - 48px, var(--xyz-c-shell)); }
  .xyz-contact .cship__row { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .xyz-contact .cship__row dd + dd { color: var(--ink-2); font-weight: 400; }
}
@media (max-width: 640px) {
  .xyz-contact .inquiry-fields { grid-template-columns: 1fr; gap: 22px; }
  .xyz-contact .cch { padding-bottom: 26px; }
  .xyz-contact .cport { height: 300px; }
  .xyz-contact .cport::after { background: linear-gradient(180deg, rgba(6, 26, 44, .06) 8%, rgba(6, 26, 44, .6) 38%, rgba(6, 26, 44, .94)); }
  .xyz-contact .cport__route { font-size: 9.5px; letter-spacing: .1em; gap: 6px 8px; }
  .xyz-contact .cport__note { font-size: 13px; margin-top: 9px; }
  .xyz-contact .inquiry-actions--full { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .xyz-contact .inquiry-field,
  .xyz-contact .inquiry-submit { transition: none; }
}