.banner {
  width: 100%;
  height: 628px;
  position: relative;
  background-image: url("../img/contact-banner.png");
  background-size: 100%;
  background-repeat: no-repeat;
  font-family: "Alibaba PuHuiTi";
  /* margin-top: 72px; */
}
.banner-text {
  width: 509px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  position: absolute;
  top: 40%;
  left: 20%;
  color: #fff;
  font-size: 54px;
  font-weight: 900;
  line-height: 120%;
}
.banner-text p {
  font-size: 24px;
  line-height: 180%;
  font-weight: 400;
}
.map {
  width: 1240px;
  margin: 0 auto;
  position: relative;
  height: 685px;
  background-image: url("../img/Map.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.map-content {
  position: absolute;
  top: 230px;
  right: 200px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.map-text {
  width: 190px;
  height: 82px;
  padding: 12px 16px;
  background-color: #fff;
  font-size: 14px;
  color: #161a34;
  line-height: 20px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}
.map-text-text {
  font-size: 12px;
  color: #7e8492;
  line-height: 18px;
}
.pin {
  width: 54px;
  height: 54px;
}
.pin img {
  width: 100%;
}
.contact-container {
  width: 1240px;
  margin: 0 auto;
  display: flex;
  padding: 40px;
  justify-content: space-between;
  font-family: "Alibaba PuHuiTi";
  margin-bottom: 100px;
}

.contact-info {
  width: 40%;
}

.contact-info h2 {
  color: #111214;
  font-size: 40px;
  padding: 10px 40px;
  border-left: 8px solid #0047FF;
  font-family: "Alibaba PuHuiTi";
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.contact-info .contact-info-item {
  margin: 40px 0;
  display: flex;
  align-items: center;
}

.contact-info img {
  width: 20px;
  margin-right: 10px;
}
.contat-info-title {
  font-size: 16px;
  color: #111214;
}
.contact-info-text {
  font-size: 14px;
  color: #a9a9a9;
}
.contact-form {
  width: 55%;
}

.contact-form h3 {
  font-size: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe2e5;
}

.contact-form .highlight {
  color: #0047FF;
}

.contact-form label {
  display: block;
  margin: 10px 0 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background: #fafafa;
  border: none;
  color: #171717;
  border-radius: 5px;
  height: 56px;
  box-sizing: border-box;
}
.contact-form  textarea {
  height: 160px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #0091ff;
}
.email-phone {
  display: flex;
  gap: 24px;
}
.email-phone div {
  width: 48%;
}
.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: #0047ff;
  border: none;
  overflow: hidden; /* 防止背景溢出 */
  cursor: pointer;
  z-index: 1; /* 保持内容在前 */
  transition: color 0.3s ease; /* 控制文字颜色变化 */
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%; /* 初始位置在按钮右侧外 */
  width: 100%;
  height: 100%;
  background: black;
  z-index: 0; /* 背景层在按钮内容后 */
  transition: left 0.3s ease; /* 控制背景动画 */
}

.submit-button:hover::before {
  left: 0; /* 悬浮时背景滑动到按钮内部 */
}
.submit-button:hover span {
  color: #fff; /* 保持文字颜色对比 */
  position: relative;
  z-index: 2;
}
.submit-button:hover {
  color: black; /* 悬浮时文字颜色变化，与背景形成对比 */
}

.submit-button img {
  margin-right: 10px; /* 图片和文字间距 */
  z-index: 1; /* 确保图片在前 */
}

.contactus {
  /* display: none; */
}
.success {
  display: none;
}
.success-content {
  height: 500px;
  width: 1100px;
  margin: 0 auto;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.success p {
  font-size: 28px;
}
.success h2 {
  font-size: 70px;
}

@media (max-width: 767px) {
  .banner {
    background-position: 50% 0;
    background-size: unset;
  }
  .banner-text {
    width: unset;
    font-size: 40px;
    left: 20px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
  }
  .banner-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
  }
  .map {
    width: 100%;
    height: 230px;
    padding: 20px;
    box-sizing: border-box;
  }
  .contact-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: block;
  }
  .map-content {
    top: 12%;
    right: 5%;
  }
  .map-text {
    font-size: 10px;
    padding: 8px;
    width: 156px;
    height: 64px;
  }
  .map-text-text {
    font-size: 8px;
  }
  .pin {
    width: 24px;
    height: 24px;
  }
  .contact-info h2 {
    font-size: 20px;
  }
  .contact-form {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  .email-phone {
    display: block;
  }
  .email-phone div {
    width: 100%;
  }
  #detail {
    height: 185px;
  }
  .submit-button {
    padding: 16px 24px;
    width: 100%;
  }
  .success-content {
    width: 100%;
    height: 300px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 72px;
  }
  .success p {
    font-size: 14px;
  }
  .success h2 {
    font-size: 32px;
    text-align: center;
    box-sizing: border-box;
  }
}
