.contact-img {
  /* width: 100%; */
  /* position: relative; */
  height: 520px;
  position: relative;
  background: url('../image/contact.jpg');
  background-size: cover;
  background-position: center;
}

.contact-text {
  position: absolute;
  top: 19%;
  left: 50%;
  width: 450px;
  height: 280px;
  transform: translateX(-50%);
  padding: 58px 62px;
  text-align: center;
  background: rgba(159, 91, 91, 0.6);
  color: #fff;
}

.contact-text h2 {
  margin-bottom: 36px;
}

.contact-text p {
  line-height: 28px;
}

.contact-us {
  width: 1180px;
  padding-top: 10px;
  margin: 0 auto;
  transform: translateY(-60px);
  text-align: center;
  background-color: #fff;
}

.contact-us>h2,
.job h2 {
  display: inline-block;
  margin-top: 22px;
  font-size: 30px;
  padding: 0 1rem 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 0.5rem solid var(--primary-color);
}

.contact-map {
  padding: 30px 20px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-us-content {
  position: relative;
  display: grid;
  grid-template-rows: 1.6fr 1fr 1fr 1fr;
  margin-top: 100px;
  padding: 0 10px 300px 10px;
  text-align: left;
}

.contact-us-content .call,
.contact-us-content .mail,
.contact-us-content .wechat {
  /* position: relative; */
  line-height: 50px;
  height: 50px;  
}

.contact-us-content .address {
  height: 100px;
  display: flex;
}

.contact-us-content .address span {
  display: inline-block;
  line-height: 42px;
}

.contact-us-content p {
  display: inline-block;
}

.contact-us-content .address::before,
.contact-us-content .call::before,
.contact-us-content .mail::before,
.contact-us-content .wechat::before {
  content: '';
  display: inline-block;
}

.contact-us-content .address::before {
  width: 26px;
  height: 27px;
  margin-right: 10px;
  padding-right: 4px;
  background: url('../image/c-address.png');
  background-size: 24px 27px;
  background-repeat: no-repeat;
  transform: translateY(5px);
}

.contact-us-content .call::before {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background: url('../image/c-call.png');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  transform: translateY(5px);
}

.contact-us-content .mail::before {
  width: 24px;
  height: 19px;
  margin-right: 10px;
  background: url('../image/c-mail.png');
  background-size: 24px 19px;
  background-repeat: no-repeat;
  transform: translateY(4px);
}

.contact-us-content .wechat::before {
  width: 26px;
  height: 21px;
  margin-right: 5px;
  background: url('../image/c-wechat.png');
  background-size: 26px 21px;
  background-repeat: no-repeat;
  transform: translateY(5px);
}

.wechat {
  position: relative;
}

.wechat .real-qrcode {
  display: none;
  width: 160px;
  position: absolute;
  top: 48px;
  left: 22px;
  text-align: center;
  background: #fff;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, .2));
  z-index: 9;
}

/* .wechat .real-qrcode p {
  line-height: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
} */

.wechat:hover .real-qrcode {
  display: block;
}

#dituContent {
  margin: 100px auto;
  width: 600px;
  height: 500px;
}

/* header变成fixed后页面向上平移*/
.sticky-trans {
  margin-top: 80px;
}
.open-trans {
  transform: translateY(80px);
}

/* 地图 */
#container {
  height: 550px;
  width: 100%;
}

#container .amap-icon img {
  width: 25px;
  height: 34px;
}

#container .amap-marker-label{
  border: 0;
  background-color: transparent;
}

#container .info{
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  position: fixed;
  top: 1rem;
  background-color: white;
  width: auto;
  min-width: 22rem;
  border-width: 0;
  right: 1rem;
  box-shadow: 0 2px 6px 0 rgb(114 124 245 / 50%);

  position: relative;
  top: 0;
  right: 0;
  min-width: 0;
  color: #921D22;
  font-size: 14px;
}

/* 加入我们 */
.job {
  width: 100%;
  margin: 0 auto;
  padding-top: 6px;
  padding-bottom: 32px;
  background-color: #F2F3F5;
  text-align: center;
}

.job ul {
  width: 1180px;
  margin: 0 auto;
  padding: 10px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4px;
  row-gap: 4px;
  text-align: left;
}

.job li {
  padding: 16px 20px 12px;
  background-color: #fff;
}

.job a {
  color: #333;
}

.job li p {
  font-size: 18px;
  line-height: 32px;
  padding-bottom: 10px;
}

.job li p span{
  color: var(--header-color);
  
}

.job li a>span {
  display: block;
  font-size: 14px;
  color: #aaa;
}

@media (max-width: 1200px) {
  .contact-img {
    width: 100%;
    height: 420px;
  }

  .contact-text {
    top: 16%;
    height: 250px;
    padding: 48px 52px;
  }
  
  .contact-text h2 {
    margin-bottom: 20px;
  }

  .contact-us {
    width: 96%;
  }

  .contact-us>h2,
  .job h2 {
    font-size: 28px;
    padding-bottom: 0.6rem;
    border-bottom: 7px solid var(--primary-color);
  }  

  .contact-map {
    padding-left: 20px;
    grid-template-columns: 1fr;
  }

  .contact-us-content {
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 30px;
    grid-template-rows: 1fr 1fr 1fr 1.8fr;
  }

  .contact-us-content .address {
    height: 50px;
  }

  .contact-us-content .address::before {
    padding-right: 2px;
  }

  .job ul {
    width: 96%;
  }

}

@media (max-width: 860px) {
  .job ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-us-content .wechat::before {
    margin-right: 5px;
  }
}

@media (max-width: 760px) {
  .contact-us-content {
    grid-template-rows: 1.6fr 1fr 1fr 1.6fr;
  }

  .contact-us-content .address {
    height: 80px;
  }

  .contact-us-content .address span {
    line-height: 38px;
  }

  .contact-us-content .address::before {
    padding-right: 4px;
  }
}

@media (max-width: 640px) {
  .contact-img {
    width: 100%;
    height: 360px;
  }

  .contact-text {
    top: 13%;
    width: 88%;
    height: 220px;
    padding: 36px 20px;
  }
  
  .contact-text h2 {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .contact-text p {
    font-size: 14px;
  } 

  .contact-us>h2,
  .job h2 {
    padding: 0 10px 5px 10px;
    font-size: 20px;
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--primary-color);
  }  

  .contact-map {
    margin-top: 0;
    padding: 10px 2px 0 2px;
    grid-template-columns: unset;
    grid-template-rows: 0.4fr 1fr;
  }

  .contact-us-content {
    padding-bottom: 30px;
    grid-template-rows: 1.6fr 1fr 1fr 1.6fr;
  }

  .contact-us-content .address {
    height: 36px;
    font-size: 14px;
  }

  .contact-us-content .address span {
    line-height: 28px;
  }
  
  .contact-us-content .call,
  .contact-us-content .mail,
  .contact-us-content .wechat {
    line-height: 25px;
    font-size: 14px;
  }

  .contact-us-content .address::before {
    width: 16px;
    height: 18px;
    background-size: 16px 18px;
    margin-right: 2px;
  }
  
  .contact-us-content .call::before {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    margin-right: 8px;
  }
  
  .contact-us-content .mail::before {
    width: 16px;
    height: 12px;
    background-size: 16px 12px;
    margin-right: 8px;
    padding-bottom: 4px;
  }
  
  .contact-us-content .wechat::before {
    width: 19px;
    height: 14px;
    background-size: 19px 14px;
    margin-right: 2px;
    padding-bottom: 2px;
  }

  .wechat .real-qrcode {
    width: 140px;
    top: 32px;
  }

  /* 地图 */
  #container {
    height: 450px;
    width: 98%;
  }

  /* 加入我们 */
  .job ul {
    grid-template-columns: 1fr;
  }

  .job li p {
    font-size: 16px;
  }

  .job li>span {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .contact-us-content .address::before {
    width: 29px;
  }
}
