.contact-page {
  background: #fff;
  color: var(--text);
}

.contact-page .container {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #dce8f4;
  background: #edf6fb;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(244, 250, 255, .99) 0%, rgba(244, 250, 255, .94) 38%, rgba(244, 250, 255, .66) 67%, rgba(244, 250, 255, .25) 100%),
    url("../images/home/cta-nanning-bridge.webp") right center / cover no-repeat;
}

.contact-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 74px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 84%);
}

.contact-hero .container {
  position: relative;
  z-index: 1;
  min-height: 410px;
  display: grid;
  align-items: center;
  padding: 44px 0 70px;
}

.breadcrumb {
  margin: 0 0 28px;
  color: #5f768b;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.contact-hero-copy {
  max-width: 720px;
}

.contact-hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.contact-hero-copy .lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #36536c;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.9;
  font-weight: 500;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-section,.location-section {
  padding: clamp(58px, 6vw, 82px) 0;
  background: #fff;
}

 
.location-section {
  padding-top: 100px;
  padding-bottom: clamp(78px, 7vw, 108px);
}

.section-title {
  #display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.section-title h2 {
  margin: 0;
  color: #0b2238;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.8vw, 36px);
  line-height: 1.18;
  font-weight: 820;
  letter-spacing: 0;
}

#contact-method,
#location {
  scroll-margin-top: 104px;
}

.section-title p {
  max-width: 800px;
  margin: 3px 0 0;
  color: #526d84;
  font-size: 16px;
  line-height: 1.85;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e3edf6;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-row dt,
.contact-row dd {
  margin: 0;
}

.contact-row dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #49657c;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
}

.contact-row dt img,
.wechat-copy img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(20%) sepia(32%) saturate(1375%) hue-rotate(174deg) brightness(94%) contrast(91%);
}

.contact-icon-qq,
.contact-icon-time {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.contact-icon-qq {
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #123d68;
  border-radius: 5px;
  color: #123d68;
  font-family: var(--font-latin);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.02em;
}

.contact-icon-time {
  position: relative;
  border: 2px solid #123d68;
  border-radius: 50%;
}

.contact-icon-time:before,
.contact-icon-time:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  border-radius: 2px;
  background: #123d68;
  transform-origin: 50% 100%;
}

.contact-icon-time:before {
  height: 7px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.contact-icon-time:after {
  height: 6px;
  transform: translate(-50%, -100%) rotate(90deg);
}

.contact-row dd {
  color: #0d2338;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  word-break: break-word;
}

.contact-row dd small {
  display: block;
  margin-top: 2px;
  color: #49657c;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 550;
}

.contact-row a {
  color: inherit;
  text-decoration: none;
}

.contact-row a:hover,
.contact-row a:focus-visible,
.map-link:hover,
.map-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wechat-block {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding-left: clamp(26px, 4vw, 44px);
  border-left: 1px solid #e3edf6;
  text-align: center;
}

.wechat-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.wechat-copy span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #49657c;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

.wechat-copy strong {
  color: #0d2338;
  font-size: 17px;
  line-height: 1.5;
}

.wechat-block > img {
  width: 102px;
  height: 102px;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 4px;
  outline: 1px solid #d8e6f2;
}

.location-block {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.map-shot {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f3f7fb;
}

.map-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1040 / 520;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.map-link {
  display: table;
  margin: 24px auto 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .section-title,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-title {
    gap: 12px;
  }

  .contact-panel {
    gap: 28px;
  }

  .wechat-block {
    justify-items: start;
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid #e3edf6;
    border-left: 0;
    text-align: left;
  }

  .wechat-copy {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .contact-page .container {
    width: min(100% - 28px, 1040px);
  }

  .contact-hero .container {
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .breadcrumb {
    margin-bottom: 18px;
  }

  .contact-hero-copy h1 {
    font-size: 36px;
  }

  .contact-hero-copy .lead,
  .section-title p {
    font-size: 15px;
    line-height: 1.78;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-section {
    padding: 46px 0;
  }

  .location-section {
    padding-top: 38px;
    padding-bottom: 62px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .contact-panel,
  .location-block {
    padding: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 0;
  }

  .contact-row dd,
  .wechat-copy strong {
    font-size: 16px;
  }

  .wechat-block > img {
    width: 96px;
    height: 96px;
    border-width: 5px;
  }

  .map-shot img {
    aspect-ratio: 750 / 467;
  }
}
