/* ============================================================
   contact.css
   仅联系我们页特有样式；导航 / CTA banner / Footer / .reveal /
   .page / .stage / .center-frame 继承自 main.css。
   ============================================================ */

/* 当前页菜单高亮 */
.menu a.active {
  color: #1677ff;
}

.menu a.active::after {
  width: 100%;
}

/* ============================================================
   1. Hero（圆角卡片，蓝色渐变 + 建筑剪影）
   ============================================================ */
.contact-hero {
  left: 0;
  right: 0;
  top: 100px;
  /* width: 1190px; */
  height: 521px;
  margin: 0 auto;
  /* border-radius: 24px; */
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 32, 72, .12);
}

.contact-hero-bg {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-tag {
  left: 124px;
  top: 96px;
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 16px rgba(7, 31, 92, .2);
}

.contact-hero-title {
  left: 124px;
  top: 170px;
  margin: 0;
  width: 720px;
  font-size: 64px;
  line-height: 88px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 2px 24px rgba(7, 31, 92, .25);
}

.contact-hero-btn {
  left: 124px;
  top: 362px;
  padding: 0 26px;
  height: 46px;
  border: 0;
  border-radius: 23px;
  background: linear-gradient(180deg, #2ec1ff 0%, #1b86ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(21, 120, 255, .35);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}

.contact-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(21, 120, 255, .45);
}

/* English hero copy is longer, tune layout to avoid overlap. */
html[lang="en-US"] .contact-hero-tag {
  top: 88px;
  font-size: 44px;
}

html[lang="en-US"] .contact-hero-title {
  top: 156px;
  width: 860px;
  font-size: 56px;
  line-height: 74px;
}

html[lang="en-US"] .contact-hero-btn {
  top: 404px;
}

/* ============================================================
   2. 品牌故事
   ============================================================ */
.about-section {
  left: 0;
  top: 640px;
  width: 100%;
  height: 520px;
}

.about-image {
  left: 124px;
  top: 60px;
  width: 480px;
  height: 360px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(15, 32, 72, .15);
}

.about-title {
  left: 700px;
  top: 100px;
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
}

.about-text {
  left: 700px;
  top: 190px;
  width: 580px;
  margin: 0;
  font-size: 16px;
  line-height: 30px;
  color: var(--c-muted);
}

.about-deco {
  right: 100px;
  top: 420px;
  width: 80px;
  height: 80px;
  animation: floatY 5s var(--ease-soft) infinite alternate;
}

.about-deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(0 12px 24px rgba(22, 119, 255, .35));
}

/* ============================================================
   3. 为什么选择 Ai Talky
   ============================================================ */
.choose-section {
  left: 0;
  top: 1220px;
  width: 100%;
  height: 660px;
}

.choose-title {
  left: 0;
  right: 0;
  top: 80px;
  margin: 0;
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  text-align: center;
}

.choose-sub {
  left: 0;
  right: 0;
  top: 144px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: var(--c-muted);
}

.choose-card {
  width: 360px;
  height: 460px;
  border-radius: 16px;
  background: #0e1c40;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 32, 72, .18);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
  position: absolute;
}

.choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(22, 119, 255, .25);
}

.choose-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choose-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 14, 34, .88) 78%, rgba(6, 14, 34, .95) 100%);
  pointer-events: none;
}

.choose-card h3 {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.choose-card p {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .32);
}

.choose-card-1 { left: 156px; top: 224px; }
.choose-card-2 { left: 540px; top: 224px; }
.choose-card-3 { left: 924px; top: 224px; }

/* ============================================================
   4. 办公地址
   ============================================================ */
.offices-section {
  left: 0;
  top: 1940px;
  width: 100%;
  height: 760px;
  background: linear-gradient(180deg, #0a1428 0%, #0e1c40 100%);
}

.offices-title {
  left: 0;
  right: 0;
  top: 80px;
  margin: 0;
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.offices-sub {
  left: 0;
  right: 0;
  top: 144px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: rgba(255, 255, 255, .65);
}

.offices-map {
  position: absolute;
  left: 120px;
  top: 220px;
  width: 1200px;
  height: 480px;
}

.offices-map > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.city-card {
  position: absolute;
  width: 320px;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 12px 30px rgba(7, 20, 56, .28);
  border-radius: 14px;
  display: block;
  transition: transform .3s var(--ease-soft);
}

.city-card:hover {
  transform: translateY(-4px);
}

.city-card img {
  width: 100%;
  height: 128px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.city-meta {
  color: #1f65c7;
  line-height: 1.3;
  margin-top: 10px;
  padding: 0 6px;
}

.city-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.city-country {
  display: none;
}

.city-card-newyork  { left: 18px;  top: 34px; }
.city-card-dubai    { left: 410px; top: 236px; }
.city-card-hongkong { left: 790px; top: 26px; }

/* ============================================================
   5. 联系我们
   ============================================================ */
.contact-section {
  left: 0;
  top: 2760px;
  width: 100%;
  height: 640px;
}

.contact-title {
  left: 0;
  right: 0;
  top: 80px;
  margin: 0;
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  text-align: center;
}

.contact-sub {
  left: 0;
  right: 0;
  top: 144px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: var(--c-muted);
}

.contact-card {
  width: 480px;
  height: 120px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 32, 72, .1);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(22, 119, 255, .18);
}

.contact-card > img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.contact-card-meta {
  flex: 1;
}

.contact-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #00080c;
}

.contact-card-desc {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 4px;
}

.contact-card-arrow {
  font-size: 22px;
  color: #1677ff;
  transition: transform .25s var(--ease-soft);
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(6px);
}

.contact-card-tg { left: 188px; top: 240px; }
.contact-card-tg-2 { left: 772px; top: 240px; }
.contact-card-tg-3 { left: 188px; top: 384px; }
.contact-card-tg-4 { left: 772px; top: 384px; }
.contact-card-wa { left: 772px; top: 240px; }

/* ============================================================
   覆盖：CTA banner / footer 在联系我们页面的位置
   ============================================================ */
.stage--contact .cta-banner {
  top: 3460px;
}

.stage--contact footer {
  top: 3910px;
}

/* ============================================================
   H5 / 窄屏：跳出 main.css 等比缩放，流式布局
   ============================================================ */
@media (max-width: 768px) {
  .page.page--contact {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .page.page--contact .stage--contact {
    width: 100% !important;
    transform: none !important;
    transform-origin: top center;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .stage--contact > .nav.abs {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(15, 32, 72, .06);
  }

  .stage--contact > .nav.is-scrolled {
    left: 0;
    transform: none;
    animation: none;
  }

  /* Hero */
  .stage--contact > .contact-hero {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: calc(68px + env(safe-area-inset-top, 0px)) auto 0;
    height: auto;
    min-height: 300px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 32, 72, .14);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .stage--contact .contact-hero-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .stage--contact .contact-hero-tag {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    padding: 22px 20px 0;
    font-size: clamp(28px, 8vw, 40px);
    z-index: 1;
  }

  .stage--contact .contact-hero-title {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin: 12px 0 0;
    padding: 0 20px;
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1.2;
    z-index: 1;
  }

  .stage--contact .contact-hero-btn {
    position: relative;
    left: auto;
    top: auto;
    margin: 20px 20px 24px;
    z-index: 1;
    align-self: flex-start;
  }

  html[lang="en-US"] .stage--contact .contact-hero-tag {
    top: auto;
    font-size: clamp(24px, 7vw, 36px);
  }

  html[lang="en-US"] .stage--contact .contact-hero-title {
    top: auto;
    width: auto;
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.22;
  }

  html[lang="en-US"] .stage--contact .contact-hero-btn {
    top: auto;
  }

  /* 品牌故事 */
  .stage--contact .about-section {
    position: relative;
    top: auto;
    height: auto;
    padding: 36px 0 40px;
  }

  .stage--contact .about-section .center-frame {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
  }

  .stage--contact .about-image {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 20px;
  }

  .stage--contact .about-title {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 12px;
    font-size: 26px;
  }

  .stage--contact .about-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .stage--contact .about-deco {
    display: none;
  }

  /* 为什么选择 */
  .stage--contact .choose-section {
    position: relative;
    top: auto;
    height: auto;
    padding: 40px 0 48px;
  }

  .stage--contact .choose-section .center-frame {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .stage--contact .choose-title {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 8px;
    padding: 0 4px;
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.3;
  }

  .stage--contact .choose-sub {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 8px;
    padding: 0 4px;
    font-size: 15px;
    line-height: 1.5;
  }

  .stage--contact .choose-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto;
    height: 280px;
  }

  .stage--contact .choose-card h3 {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.15;
  }

  .stage--contact .choose-card:hover {
    transform: none;
  }

  /* 办公地址：地图 + 卡片纵向排列 */
  .stage--contact .offices-section {
    position: relative;
    top: auto;
    height: auto;
    padding: 44px 0 40px;
  }

  .stage--contact .offices-section .center-frame {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
  }

  .stage--contact .offices-title {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 8px;
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.3;
  }

  .stage--contact .offices-sub {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .stage--contact .offices-map {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .stage--contact .offices-map > img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: none;
  }

  .stage--contact .city-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 380px;
    margin: 0;
  }

  .stage--contact .city-card:hover {
    transform: none;
  }

  /* 联系我们卡片 */
  .stage--contact .contact-section {
    position: relative;
    top: auto;
    height: auto;
    padding: 40px 0 36px;
  }

  .stage--contact .contact-section .center-frame {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .stage--contact .contact-title {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 8px;
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.3;
  }

  .stage--contact .contact-sub {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
  }

  .stage--contact .contact-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto;
    height: auto;
    min-height: 96px;
    padding: 16px 18px;
    gap: 16px;
    border-radius: 16px;
  }

  .stage--contact .contact-card > img {
    width: 52px;
    height: 52px;
  }

  .stage--contact .contact-card-title {
    font-size: 17px;
  }

  .stage--contact .contact-card:hover {
    transform: none;
  }

  /* CTA */
  .stage--contact .cta-banner {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 240px;
    padding: 40px 20px 48px;
    overflow: hidden;
  }

  .stage--contact .cta-banner .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }

  .stage--contact .cta-banner .cta-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 8px;
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.35;
    z-index: 1;
  }

  .stage--contact .cta-banner .btn {
    position: relative;
    top: auto;
    left: auto;
    margin: 20px auto 0;
    display: block;
    z-index: 1;
  }

  /* 页脚 */
  .stage--contact footer {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 36px 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .stage--contact footer .center-frame {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .stage--contact footer .abs {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 22px 0;
    transform: none !important;
  }

  .stage--contact footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .stage--contact footer .footer-brand img {
    width: 40px;
    height: auto;
  }

  .stage--contact footer .footer-brand-text {
    font-size: 22px;
  }

  .stage--contact footer .footer-contact-label-1,
  .stage--contact footer .footer-contact-label-2 {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #9aa3af;
  }

  .stage--contact footer .footer-contact-value-1,
  .stage--contact footer .footer-contact-value-2 {
    display: block;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .stage--contact footer .col .col-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .stage--contact footer .col a {
    font-size: 14px;
    line-height: 1.85;
  }

  .stage--contact footer .footer-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .stage--contact footer .footer-contact-icon {
    width: 16px;
    height: 16px;
  }

  .stage--contact footer .copy {
    position: static;
    display: block;
    text-align: center;
    margin: 28px 0 0;
    padding-top: 16px;
    font-size: 12px;
    color: #9aa3af;
  }
}
