.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  transition: all 0.5s;
}
.header .head-bg {
  padding-top: 12px;
  padding-bottom: 0;
  transition: all 0.5s;
}
.header .head-bg .logo img {
  display: block;
  cursor: pointer;
  margin-right: 4vw;
}
.header .head-bg .logo-blue {
  display: none;
}
.header .head-bg .nav li > a {
  display: block;
  line-height: 78px;
  color: #fff;
  transition: all 0.3s;
}
.header .head-bg .nav li > a::after {
  display: block;
  margin: 0 auto;
  content: '';
  width: 30%;
  height: 3px;
  background-color: #0F4696;
  opacity: 0;
}
.header .head-bg .nav li.active a::after {
  width: 100%;
  opacity: 1;
  transition: all 0.5s;
}
.header .head-bg .nav-icon a {
  color: #fff;
  padding: 10px;
  font-size: 20px;
  margin-left: 10px;
}
.header .nav-second {
  width: 100%;
}
.header .nav-second .nav-child {
  padding-top: 20px;
  background-image: linear-gradient(90deg, #fff 0, #fff 100%), url("../img/nav-open-bg.png");
  background-position: center top, center bottom;
  background-repeat: no-repeat;
  background-size: 100% calc(100% - 4.10vw), 100% auto;
  padding-bottom: 4.22%;
}
.header .nav-second .nav-child a {
  line-height: 50px;
  display: inline-block;
  margin-right: 50px;
}
.header .nav-second .nav-child:first-child {
  background-image: none;
}
.header:hover .head-bg,
.header.scroll-header .head-bg {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  transition: all 0.5s;
  background-color: #ffffff;
  box-shadow: 0px 1px 30px rgba(53, 53, 53, 0.1);
}
.header:hover .head-bg .logo img,
.header.scroll-header .head-bg .logo img {
  display: block;
}
.header:hover .head-bg .logo-while,
.header.scroll-header .head-bg .logo-while {
  display: none;
}
.header:hover .head-bg .logo-blue,
.header.scroll-header .head-bg .logo-blue {
  display: block;
}
.header:hover .head-bg .nav li a,
.header.scroll-header .head-bg .nav li a {
  color: #353535;
}
.header:hover .head-bg .nav li.active a,
.header.scroll-header .head-bg .nav li.active a {
  color: #0F4696;
}
.header:hover .head-bg .nav-icon a,
.header.scroll-header .head-bg .nav-icon a {
  color: #0F4696;
}
.header .pop-right {
  position: fixed;
  z-index: 2;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  text-align: center;
}
.header .pop-right a {
  display: block;
  background-color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  color: #00A04B;
  margin-bottom: 1px;
  padding: 12px 6px 8px;
  line-height: 14px;
}
.header .pop-right a::before {
  display: block;
  font-size: 20px;
  margin-bottom: 7px;
}
.header .pop-right a:hover {
  background-color: #00A04B;
  color: #fff;
  transition: background-color 0.5s, color 0.5s;
}
.header .pop-right a.totop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}
.header .pop-right a.icon-show {
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 1450px) {
  .header .head-bg {
    padding: 12px 20px 0;
    transition: all 0.5s;
  }
  .header .head-bg .nav li > a {
    line-height: 68px;
  }
  .header .nav-second .nav-child a {
    margin-right: 3.2vw;
  }
}
@media screen and (max-width: 1280px) {
  .header .head-bg {
    padding: 14px 20px;
    transition: all 0.5s;
  }
  .header .head-bg .logo img {
    margin-right: 3vw;
  }
  .header .head-bg .nav li > a {
    line-height: 68px;
    color: #fff;
    transition: all 0.5s;
  }
  .header .head-bg .nav-icon a {
    color: #fff;
    padding: 10px;
    font-size: 20px;
    margin-left: 0;
  }
  .header .nav-second .nav-child a {
    margin-right: 2vw;
  }
}
@media screen and (max-width: 1080px) {
  .header .head-bg {
    padding: 14px 20px;
    transition: all 0.5s;
  }
  .header .head-bg .logo {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
  }
  .header .head-bg .nav {
    display: none;
    transition: all 0.5s;
  }
  .header.scroll-header .head-bg {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media screen and (max-width: 992px) {
  .header .head-bg {
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    transition: all 0.5s;
    background-color: #ffffff;
    box-shadow: 0px 1px 30px rgba(53, 53, 53, 0.1);
  }
  .header .head-bg .logo img {
    display: block;
    max-width: 40vw;
    transition: all 0.5s;
  }
  .header .head-bg .logo-while {
    display: none;
  }
  .header .head-bg .logo-blue {
    display: block;
  }
  .header .head-bg .nav li a {
    color: #353535;
  }
  .header .head-bg .nav li.active a {
    color: #0F4696;
  }
  .header .head-bg .nav-icon a {
    color: #0F4696;
  }
  .header:hover .head-bg {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header .pop-right {
    display: none;
  }
}

