/* @import url("../images/icon/iconfont.css"); */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 0.8rem 0 0.4rem;
  height: auto;
  min-height: 0.8rem;
  box-shadow: 0 2px 10px #00000014;
  z-index: 100;
  background: #fff;
}

.header.header-scroll {
  background: #fff;
}
.header.header-scroll .nav .logo {
  transform: scale(0.8);
}


/* 顶部滚动 */
.header .scroll-tip {
  position: fixed;
  left: 3.6rem;
  width: calc(100% - 7rem);
  top: 0;
  overflow: hidden;
  margin: 0 auto;
  line-height: 0.24rem;
  color: #000;
}

.header-scroll .scroll-tip .swiper-slide {
  color: #333;
}

.header .scroll-tip .swiper-wrapper {
  transition-timing-function: linear !important;
}

.header .scroll-tip .swiper-slide {
  font-size: 0.14rem;
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  animation: marquee 20s linear infinite;
  font-size: 12px;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}
.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav .nav-right {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.nav .nav-list > ul {
  display: flex;
  flex-direction: row;
}

.nav .nav-list > ul > li {
  padding: 0.28rem 0.24rem;
  float: left;
  box-sizing: border-box;
  height: 0.82rem;
  text-align: center;
  min-width: 0.96rem;
  position: relative;
  cursor: pointer;
}
/* .nav .nav-list > ul > li::after {
  content: '';
  display: block;
  height: 0.05rem;
  width: 0%;
  background: #ca9b52;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 4px;
  transition: all 0.5s ease;
}

.nav .nav-list > ul > li.active::after,
.nav .nav-list > ul > li:hover::after {
  content: '';
  display: block;
  height: 0.05rem;
  width: 0.96rem;
  background: #ca9b52;
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  margin: auto;
  transition: all 0.3s;
} */

.nav .nav-list > ul > li > a {
  transition: all 0.3s;
}

.nav .nav-list > ul > li.active > a,
.nav .nav-list > ul > li:hover > a {
  color: #d4a04e;
}

.nav .nav-list a {
  color: #000 !important;
  transition: 0.3s;
}

/* 二级导航 */
/* .nav .nav-list .popmenu {
  width: 1.76rem;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
  text-align: center;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.82rem;
} */
.nav .nav-list .popmenu {
  width: 10rem;
  background: #ffffff;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 5);
  /* text-align: center; */
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.82rem;

  border-radius: 10px;
  display: grid;
  grid-template-areas: "1 1 1 1"
}

.popmenu_icon {
  width: 0.3rem;
  height: 0.3rem;
  color: rgb(0, 102, 255);
}

.popmenu_list li{
  text-align: center !important;
}

.nav .nav-list .popmenu::-webkit-scrollbar {
  width: 4px;
}
.nav .nav-list .popmenu::-webkit-scrollbar-thumb {
  background: #d4a04e;
}
.nav .nav-list .popmenu.hide {
  height: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.nav .nav-list .popmenu.show {
  height: auto;
  padding: 0.2rem;
}

.nav .nav-list .popmenu li {
  /* margin-top: 0.14rem; */
  margin: 0.1rem;
  text-align: left;
}
.nav .nav-list .popmenu li a {
  font-size: 0.2rem;
  color: #000000;
  font-weight: 400;
}
.nav .nav-list .popmenu li a:hover {
  color: #d4a04e;
}

.nav .logo {
  width: 3.03rem;
  height: 0.77rem;
}

.nav .logo img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.nav .contact {
  float: left;
  height: 1rem;
  margin-right: 0.3rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
}

.nav .contact h5 {
  font-weight: 400;
  font-size: 0.16rem;
  text-align: right;
}

.nav .contact h6 {
  font-family: '思源黑体';
  font-size: 0.12rem;
  margin-right: -4px;
  max-width: 190px;
}

.nav .contact h6 span {
  display: block;
  font-size: 0.12rem;
}
.nav .contact h6 span:nth-child(1) {
  margin-top: 0.08rem;
  margin-bottom: 0.08rem;
}

.nav .phone {
  width: 1rem;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #d4a04e;
}

.nav .phone img {
  width: 0.38rem;
  height: 0.38rem;
}

/* 滚动样式兼容 */
.header.header-scroll .nav .nav-list a {
  color: #7f7f7f;
}

.header.header-scroll .nav .contact {
  color: #7f7f7f;
}

.header.header-scroll .scroll-tip {
  color: #7f7f7f;
}

.header.header-scroll .nav .nav-list > ul > li:hover > a,
.header.header-scroll .nav .nav-list > ul > li.active > a {
  color: #000;
}

.triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent white transparent;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 5));
}

.nav .nav-list .hide {
  display: none;
}

@media screen and (min-width: 300px) and (max-width: 750px) {
  main.mask::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: 0.8rem;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
  }

  .header {
    padding: 0;
    background: white;
  }
  .header.header-scroll .nav .logo {
    transform: scale(1);
  }

  .header .nav .contact {
    color: #7f7f7f;
  }

  .scroll-tip {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 50vw;
    top: 0.8rem;
    bottom: 0;
    height: auto;
    overflow-y: scroll;
    background: white;
    z-index: 20;
  }
  .nav .nav-list.mobile-nav > ul {
    display: flex;
    flex-direction: column;
  }
  .nav .nav-list.mobile-nav > ul > li {
    text-align: left;
    height: auto;
  }
  .nav .nav-list.mobile-nav a {
    color: #747474;
  }
  .nav .nav-list.mobile-nav > ul > li::after {
    bottom: 5px;
    left: 0;
    right: unset;
  }
  .nav .nav-list.mobile-nav > ul > li.active::after,
  .nav .nav-list.mobile-nav > ul > li:hover::after {
    left: 0.2rem;
    bottom: -0.05rem;
    width: 1.5rem;
  }

  .nav .nav-list.mobile-nav .popmenu {
    position: unset;
    box-shadow: unset;
    padding-left: 0.3rem;
    width: 100%;
    transform: unset;
  }
  .nav .nav-list.mobile-nav .popmenu li {
    text-align: left;
  }

  .nav .nav-list .popmenu {
    width: 8rem;
    background: #ffffff;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 5);
    text-align: center;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.82rem;
  
    border-radius: 10px;
    display: flex;
    flex-direction: column;
  }

  .popmenu_list li{
    text-align: left !important;
  }

  .triangle {
    display: none;
  }
  .popmenu_icon {
    display: none;
  }
}
