
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 12;
  color: #fff
}
.header .logo{
  height: 56px;
  padding-top: 8px;
}
.header .logo .on {
  display: block
}

.header .logo .off {
  display: none
}

/*menu*/
.header ul.menu {
  flex: 1;
  display: flex;
  align-items: center;
  /*justify-content: space-evenly;*/
  margin: 0;
  padding: 0;
}
.header ul.menu>li {
  position: relative;
  min-width: 120px;
}
@media screen and (max-width: 991.98px) {
  .header ul.menu>li {
    min-width: 100px;
  }
}
.header ul.menu>li>a.nav-link {
  font-size: 16px;
  display: block;
  text-align: center;
  position: relative;
  color: #fff;
  line-height: 56px;
}
.header ul.menu>li>a.on {
  font-weight:500;
}
.header ul.menu>li:hover>a.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.header .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  z-index: -7;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
  background-color: #ff6a00;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  /*-webkit-transform-origin: 100% 0;
  transform-origin: 100% 0;*/
}

.header .nav-link:hover::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  /*-webkit-transform-origin: 0 0;
  transform-origin: 0 0;*/
}
.header ul.menu li i{
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
}
.header ul.menu li:hover .dropdown-toggle svg{
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  transition: all .3s;
}

/*固定一级菜单*/

.header.header_fix,
.header.header_top {
  background: #fff;
  -webkit-box-shadow: 0px 13px 35px -12px rgba(43, 50, 54, 0.2);
  box-shadow: 0px 13px 35px -12px rgba(43, 50, 54, 0.2);
  -webkit-animation: stickyMenu 0.7s ease-in-out;
  animation: stickyMenu 0.7s ease-in-out;
}

@-webkit-keyframes stickyMenu {
  0% {
    margin-top: -120px;
    opacity: 0;
  }

  50% {
    margin-top: -64px;
    opacity: 0;
  }

  100% {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes stickyMenu {
  0% {
    margin-top: -120px;
    opacity: 0;
  }

  50% {
    margin-top: -64px;
    opacity: 0;
  }

  100% {
    margin-top: 0;
    opacity: 1;
  }
}

.header.header_fix .logo .on,
.header.header_top .logo .on {
  display: none
}

.header.header_fix .logo .off,
.header.header_top .logo .off {
  display: block
}

.header.header_fix .top_lg svg path,
.header.header_top .top_lg svg path {
  fill: var(--color-default)
}
.header.header_fix ul.menu>li>a.nav-link {
  color: #1a1a1a;
}

/*二级菜单*/
.header ul.menu>li>ul {
  position: absolute;
  border: 0;
  background: #fff;
  padding: 0;
  margin: 0;
  border-radius: 0 0 2px 2px;
  -webkit-box-shadow: 0px 13px 35px 0 rgba(43, 50, 54, 0.2);
  box-shadow: 0px 13px 35px 0 rgba(43, 50, 54, 0.2);
  display: none;
  width: 200px;
}

.header ul.menu>li>ul>li>a {
  display: block;
  width: 100%;
  padding: 4px 16px;
  margin: 12px 0;
  color: #1a1a1a;
  text-decoration: none;
  position: relative;
}

.header ul.menu>li>ul>li>a:focus,
.header ul.menu>li>ul>li>a:hover {
  border-left: 4px solid #ff6a00;
  color: #ff6a00;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.header ul.menu>li:hover>ul {
  display: block;
}
/*手机menu*/
.h-page-bg{
  width: auto;
  min-width: 320px;
}
.h-page-bg .tit {
  height: 56px;
  line-height: 56px;
  background: #ff8f00;
}
.h-page-bg ul{
  padding-left: 20px;
}
.h-page-bg ul li{
  border-top: 1px solid #e5e5e5;
}
.h-page-bg ul li ul{
  margin: 0;
  padding: 0;
}
.h-page-bg ul li a{
  padding: 0;
}

.dropdown-toggle i{
  margin-left: 8px;
}
.dropdown-toggle i svg{
  padding-top: 2px;
}
@media only screen and (max-width:767px) {
  .h-page-bg{
    min-width: 240px;
  }

}