/* =========================================================================
   佳孚 JIAFU AUTO - Contact us 二级页样式
   严格按 PSD「汽车网站 - 二级页.psd」(1920×4825) 与效果图「联系我们.jpg」还原
   设计稿基准：页面宽 1920，内容区 x=356~1564（宽 1208），下面所有数值均取自 PSD 图层坐标
   ========================================================================= */

:root {
  --c-primary: #ff6a00;
  --c-bg: #f6f7f9;      /* 内容区底色（取样 246,247,249） */
  --c-social: #e8e8e8;  /* Follow us 区底色（取样 232,232,232） */
  --c-title: #141414;
  --c-text: #333333;
  --c-muted: #8e8e8e;
  --c-line: #ececec;
}

.contact-page { background: var(--c-bg); }

/* 页内锚点跳转时避让 sticky 页头（高 66px） */
#about-us, #company-profile, #contact-block, #follow { scroll-margin-top: 80px; }

/* ---------------- Hero 大图 + 页面内二级导航 ---------------- */
.page-hero {
  position: relative;
  height: 755px;              /* PSD: header 60 + 大图 761 = 821；本站 header 66，故大图 755 */
  overflow: hidden;
}
.page-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-tabs {
  position: absolute;
  top: 55px;                  /* PSD: 文字 y=115，header 高 60 → 距大图顶 55 */
  right: 192px;               /* PSD: 最右按钮右边界 1728 → 1920-1728=192 */
  display: flex;
  gap: 96px;                  /* PSD: 按钮间距 99/93/100，取 96 */
}
.page-tabs a {
  color: #ffffff;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: opacity .2s;
}
.page-tabs a:hover { opacity: .82; }
.page-tabs a.is-current { font-weight: 700; }

/* ---------------- 内容区容器 ---------------- */
.contact-body {
  background: var(--c-bg);
  padding-bottom: 71px;       /* 距 Follow us 区 71（3621→3692） */
}
.c-wrap {
  width: 100%;
  max-width: 1208px;          /* PSD: 356~1564 */
  margin: 0 auto;
}

/* ---------------- 两张白色内容卡（左文右图） ---------------- */
.intro-cards { padding-top: 139px; }   /* PSD: 大图底 821 → 卡片顶 960 */
.info-card {
  background: #fff;
  height: 543px;                          /* PSD: 960→1503 */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 2px 14px rgba(16, 24, 40, .04);
}
.info-card + .info-card { margin-top: 29px; }  /* PSD: 1503→1532 */
.info-text { padding: 100px 0 0 64px; }        /* PSD: 标题左 420(356+64)、上 103 */
.info-text h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  color: var(--c-title);
}
.info-text p {
  margin-top: 31px;              /* PSD: 标题底 1095 → 正文 1126 */
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
}
.info-media {
  width: 653px;                  /* PSD: 图 884~1537 */
  flex: 0 0 653px;
  margin: 31px 27px 0 0;         /* PSD: 上 31、右 27 */
}
.info-media img {
  width: 100%;
  height: 481px;                 /* PSD: 991~1472 */
  object-fit: cover;
  display: block;
}

/* ---------------- NEW ERA AUTOMOBILE WAREHOUSING 区 ---------------- */
.warehouse { padding-top: 121px; }   /* PSD: 2075→2196 */
.section-title {
  text-align: center;
  font-size: 31px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 3px;
  color: var(--c-title);
  text-transform: uppercase;
}
.section-sub {
  margin-top: 42px;              /* PSD: 2227→2272 */
  text-align: center;
  font-size: 18px;
  line-height: 27px;
  color: var(--c-text);
}

.feature-grid {
  margin-top: 42px;              /* PSD: 2325→2370 */
  display: grid;
  grid-template-columns: 596px 596px;   /* PSD: 每格 596 宽 */
  gap: 14px 15px;                       /* PSD: 列间 15、行间 14 */
  justify-content: center;
}
.feature-grid img {
  width: 596px;
  height: 398px;                 /* PSD: 2370~2768 */
  object-fit: cover;
  display: block;
}

/* ---------------- 三张圆角联系卡片 ---------------- */
.contact-block {
  padding-top: 109px;            /* PSD: 3179→3288 */
  display: grid;
  grid-template-columns: repeat(3, 374px);  /* PSD: 每卡 374 宽 */
  gap: 43px;                                /* PSD: 730→773 */
  justify-content: center;
}
.contact-card {
  height: 333px;                 /* PSD: 3288→3621 */
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  text-align: center;
  padding: 76px 16px 0;          /* PSD: 胶囊顶 3364(3288+76) */
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;                  /* PSD: 3364~3420 */
  padding: 0 30px;
  border: 1px solid #f7a179;
  border-radius: 28px;
  color: var(--c-primary);
  font-size: 20px;
  line-height: 1;
  transition: background .2s, color .2s;
}
.contact-chip:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.contact-card h3 {
  margin-top: 42px;              /* PSD: 胶囊底 3420 → 标题 3462 */
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: var(--c-title);
}
.contact-card p {
  margin-top: 27px;              /* PSD: 标题底 3488 → 说明 3515 */
  font-size: 15px;
  line-height: 20px;
  color: var(--c-muted);
}

/* ---------------- Follow us on social media ---------------- */
.social {
  background: var(--c-social);
  height: 880px;                 /* PSD: 3692→4572 */
  overflow: hidden;
}
.social-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 48px 0 42px 170px;    /* PSD: 手机图 left 170、top 3740(区顶 3692 → 48) */
  display: flex;
  align-items: flex-start;
  gap: 41px;                     /* PSD: 手机图右 950 → 文案左 991 */
}
.social-phones {
  width: 780px;                  /* PSD: 170~950 */
  flex: 0 0 780px;
}
.social-phones img { width: 100%; height: auto; display: block; }

.social-right { padding-top: 97px; }   /* PSD: 标题 3837，区顶 + 145，手机图已占 48 */
.social-right h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  color: #2f2f2f;
}
.social-right > p {
  margin-top: 41px;              /* PSD: 标题底 3876 → 副文 3917 */
  font-size: 18px;
  line-height: 26px;
  color: #5a5a5a;
}

/* 6 个二维码位置（后续替换成真实社媒二维码，改 img 的 src 即可） */
.qr-grid {
  margin-top: 65px;              /* PSD: 副文底 3942 → 二维码 4007 */
  display: grid;
  grid-template-columns: repeat(3, 165px);  /* PSD: 卡宽 165 */
  gap: 51px 25px;                            /* PSD: 列距 190-165=25、行距 217-166=51 */
}
.qr-slot {
  width: 165px;
  height: 166px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.qr-slot:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.qr-slot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 页面底部留白（PSD: 灰区止于 4572，画布到 4825） */
.contact-foot { height: 253px; background: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1560px) {
  .page-tabs { right: 40px; gap: 60px; }
  .social-inner { padding-left: 40px; gap: 30px; }
  .social-phones { width: 600px; flex-basis: 600px; }
}

@media (max-width: 1260px) {
  .c-wrap { padding-left: 20px; padding-right: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid img { width: 100%; height: auto; aspect-ratio: 596 / 398; }
  .contact-block { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .contact-card { height: auto; padding: 48px 12px 36px; }
}

@media (max-width: 1080px) {
  .page-hero { height: 480px; }
  .page-tabs { top: 28px; right: 20px; gap: 24px; font-size: 14px; }

  .social { height: auto; }

  .intro-cards { padding-top: 60px; }
  .info-card { height: auto; flex-direction: column-reverse; }
  .info-card + .info-card { margin-top: 24px; }
  .info-text { padding: 28px 24px 32px; }
  .info-text h2 { font-size: 24px; }
  .info-media { width: 100%; flex: none; margin: 24px 0 0; padding: 0 24px; }
  .info-media img { width: 100%; height: auto; aspect-ratio: 653 / 481; }

  .warehouse { padding-top: 64px; }
  .section-title { font-size: 24px; letter-spacing: 1.5px; padding: 0 16px; }
  .section-sub { margin-top: 20px; font-size: 16px; }
  .feature-grid { margin-top: 28px; grid-template-columns: 1fr; gap: 14px; padding: 0 20px; }

  .contact-block { padding: 64px 20px 0; grid-template-columns: 1fr; gap: 20px; }

  .social-inner { flex-direction: column; padding: 40px 20px 50px; gap: 28px; }
  .social-phones { width: 100%; flex: none; max-width: 620px; }
  .social-right { padding-top: 0; }
  .social-right h2 { font-size: 28px; line-height: 34px; }
  .social-right > p { margin-top: 18px; font-size: 16px; }
  .qr-grid { margin-top: 32px; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 540px; }
  .qr-slot { width: auto; height: auto; aspect-ratio: 1 / 1; }
  .contact-foot { height: 60px; }
}
