/* banner */
.contact-banner{
  width: 100%;
  overflow: hidden;
}
/* 使图片均匀填充容器 */
.contact-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 使用 cover 使图片均匀填充容器 */
}

/* 主体内容 */
.contact-container {
  padding: 50px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-container h1 {
  color: rgb(0, 0, 0);
  font-family: Montserrat;
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0px;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.contact-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  /* gap: 50px; */
  height: auto;
}

.contact-main-text {
  color: rgb(0, 0, 0);
  font-family: Montserrat;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0px;
  text-align: left;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  height: 100%;
  margin-bottom: 0px;
}

.contact-main-text span {
  display: block;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 2;
}

.contact-main-text p {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0px;
}
.text-section {
  margin-top: 55px;
  /* line-height: 2; */
}
.contact-main-img {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* height: 100%; */
}

.contact-main-img img {
    /* max-width: 360px; */
    object-fit: inherit;
    height: 100%;
    max-height: 730px;
}
@media (min-width: 1000px) {
  .contact-main-img img {
    max-width: 360px;
  }
}
/* 笔记本端的自适应 */
@media (max-width: 1200px) {
  .contact-container {
      padding: 40px 20px;
  }

  .contact-container h1 {
      font-size: 3.4rem;
  }

  .contact-main {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
  }
}

/* 平板端的自适应 */
@media (max-width: 768px) {
  .contact-container {
      padding: 30px 20px;
  }

  .contact-container h1 {
      font-size: 3rem;
  }

  .contact-main {
      grid-template-columns: 1fr;
      gap: 30px;
  }

  .contact-main-text {
      font-size: 1.2rem;
      text-align: left;
      /* align-items: center; */
  }

  .contact-main-img {
      justify-content: center;
  }

  .contact-main-img img {
      max-width: 300px;
      height: auto; /* 确保高度自动适应 */
  }
  .text-section{
    margin-top: 0px;
  }
}

/* 移动端的自适应 */
@media (max-width: 480px) {
  .contact-container {
    padding: 20px 20px;
}

  .contact-container h1 {
      font-size: 2.4rem;
      margin-bottom: auto;
  }

  .contact-main-text span {
      font-size: 1rem;
      text-align: left;
      flex-wrap: wrap;
      gap: 0px;
  }

  .contact-main {
      gap: 20px;
  }

  .contact-main-text {
      font-size: 1.2rem;
  }

  .contact-main-text p {
      font-size: 1.4rem;
  }

  .contact-main-img img {
      max-width: 100%;
      height: auto; /* 确保高度自动适应 */
  }
  .contact-main-img{
    width: 100%;
  }
  .contact-main-img img{
    max-height: unset;
  }
}

.text-section{
  padding: 0 !important;
}

.contact-main-text a{
  text-decoration: none;
  color: rgb(0, 0, 0);
}
.contact-main-text div{
  display: flex;
  flex-wrap: wrap;
}

.contact-row{
  margin-top: 40px;
}
.contact-row-tel{
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}