/* ==========================================================
   联系我们：Banner / 联系方式卡片
   说明：卡片 1118x494（设计稿 1344 宽），红色点状底纹用
        Rectangle 630.png 平铺；四个信息图标与公司 logo 均走
        CSS 背景图，不使用 <img>，减少请求与占用。
   ========================================================== */

/* ===================== Banner ===================== */
.page-banner {
  width: 100%;
  line-height: 0;
  position: relative;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===================== 卡片外壳 ===================== */
.contact {
  padding: 4px 0 76px;
}

.contact-card {
  position: relative;
  display: flex;
  gap: 89px;
  width: 1118px;
  max-width: 100%;
  margin: 0 auto;
  padding: 43px 42px 38px;
  background-color: var(--red);
  background-image: url("../img/Rectangle%20630.png");
  background-repeat: repeat;
}

/* 卡片背后的深色块：左右各露出 30px，上下内缩 */
.contact-card::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 42px;
  bottom: 49px;
  background: #3F2639;
  z-index: -1;
}

/* ===================== 左侧二维码 ===================== */
.contact-qr {
  flex: 0 0 371px;
  text-align: center;
}

.qr-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 371px;
  height: 370px;
  background: var(--white);
}

.qr-panel img {
  display: block;
  width: 300px;
  height: 300px;
}

.qr-tip {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 1px;
  color: var(--white);
}

/* ===================== 右侧公司信息 ===================== */
.contact-info {
  flex: 1;
  min-width: 0;
  padding-top: 33px;
}

.contact-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 白色圆底 + icon_02.png */
.contact-logo {
  flex: none;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--white) url("../img/icon_02.png") center / 64px 64px no-repeat;
}

.contact-name {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

/* 信息列表：行距 60px */
.contact-list {
  margin-top: 46px;
}

.contact-list li {
  display: flex;
  align-items: center;
}

.contact-list li + li {
  margin-top: 35px;
}

/* 四个图标：统一 24x24 容器，居中显示 */
.contact-ico {
  flex: none;
  width: 24px;
  height: 24px;
  margin-right: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-ico-phone {
  background-image: url("../img/sj.png");
}

.contact-ico-wx {
  background-image: url("../img/wx.png");
}

.contact-ico-addr {
  background-image: url("../img/dz.png");
}

.contact-ico-person {
  background-image: url("../img/lxr.png");
}

.contact-txt {
  font-size: 22px;
  font-weight: 700;
  line-height: 25px;
  color: var(--white);
}

.contact-txt a {
  color: inherit;
  transition: opacity 0.2s ease;
}

.contact-txt a:hover {
  opacity: 0.85;
}

/* 复制按钮：默认隐藏，鼠标移入所在行才显示 */
.contact-copy {
  flex: none;
  margin-left: 17px;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, visibility 0.2s ease;
}

.contact-list li:hover .contact-copy {
  opacity: 1;
  visibility: visible;
}

.contact-copy:hover {
  background: var(--white);
  color: var(--red);
}

/* 键盘操作时也要能看到按钮 */
.contact-copy:focus-visible {
  opacity: 1;
  visibility: visible;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1200px) {
  .contact-card {
    gap: 48px;
    padding: 34px 32px 30px;
  }

  .contact-qr {
    flex-basis: 320px;
  }

  .qr-panel {
    width: 320px;
    height: 319px;
  }

  .qr-panel img {
    width: 256px;
    height: 256px;
  }

  .contact-info {
    padding-top: 24px;
  }

  .contact-logo {
    width: 64px;
    height: 64px;
    background-size: 56px 56px;
  }

  .contact-name {
    font-size: 28px;
  }

  .contact-list {
    margin-top: 38px;
  }

  .contact-txt {
    font-size: 22px;
    line-height: 24px;
  }

  .contact-list li + li {
    margin-top: 28px;
  }
}

@media (max-width: 1024px) {
  .contact {
    padding: 0 0 48px;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 26px 20px 30px;
  }

  .contact-card::before {
    left: -10px;
    right: -10px;
    top: 20px;
    bottom: 24px;
  }

  .contact-qr {
    flex: none;
    width: 100%;
  }

  .qr-panel {
    width: 240px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .qr-panel img {
    width: 70%;
    height: auto;
  }

  .qr-tip {
    margin-top: 14px;
    font-size: 15px;
  }

  .contact-info {
    width: 100%;
    padding-top: 0;
  }

  .contact-head {
    gap: 10px;
  }

  .contact-logo {
    width: 46px;
    height: 46px;
    background-size: 40px 40px;
  }

  .contact-name {
    font-size: 18px;
  }

  .contact-list {
    margin-top: 24px;
  }

  .contact-list li + li {
    margin-top: 18px;
  }

  .contact-ico {
    width: 20px;
    height: 22px;
    margin-right: 12px;
  }

  .contact-txt {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
  }

  .contact-copy {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
  }
}
