﻿.header-wrap,
.container {
  max-width: 8.3333rem;
  width: 100%;
  margin: 0 auto;
}

.fw {
  font-weight: bold;
}

.f18 {
  font-size: 0.0938rem;
}

header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: 0.5s;
}
header.on3,
header.on {
  background: #fff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

}

.logo-img img {
  max-width: 100%;
  height: 0.375rem;
}

.header-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 0 0.0781rem 0.0781rem;
  padding: 0 .1927rem;
  box-sizing: border-box;
}

.navBox ul li>a {
  text-transform: uppercase;
  line-height: 0.5729rem;
  padding: 0 1.5vw;
  position: relative;
}

.navBox ul li>a::after {
  height: .0208rem;
  background: #d61518;
  content: "";
  width: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transition: 0.5s;
}

@media (min-width: 1200px) {
    .navBox ul li.cur>a,
  .navBox ul li:hover>a {
    color: #1c1f88;
  }

  .navBox ul li.cur>a::after,
  .navBox ul li:hover>a::after {
    width: .3542rem;
  }

  .navBox ul li:hover .nav-item {
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }

  .nav-item {
    position: absolute;
    top: 0.5729rem;
    background: rgba(255, 255, 255, 1);
    left: 0;
    padding: 0rem 0.1563rem 0.0781rem 0.1563rem;
    visibility: hidden;
    transition: 0.5s;
    opacity: 0;
    box-shadow: 0rem .0208rem .0313rem rgba(0, 0, 0, 0.1);
  }

  .nav-item a {
    width: 100%;
    white-space: nowrap;
    line-height: 0.25rem;
    border-bottom: 1px solid #acabab;
  }

  .nav-item a:last-child {
    border-bottom: none;
  }
}

.search-tit {
  font-size: 0.1302rem;
  color: #1c1f88;
  margin-left: 0.0781rem;
  cursor: pointer;
}

.search-icon img {
  height: 0.151rem;
  max-width: 100%;
  margin: 0 auto;
}



/* 搜索 */
.search {
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: 0.5s;
}

.search.on1 {
  background: #1d2486;
}

.search .box {
  background: #1d2486;
  padding: 10px;
  box-sizing: border-box;
  height: 100%;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.search.on {
  top: 0;
}

.search-close {
  height: 40px;
  width: 50px;
  cursor: pointer;
}

.search-close img {

  max-width: 100%;
  margin:0 auto;
}

.search-input {
  width: calc(100% - 60px);
}

.search-input .input {
  width: calc(100% - 130px);
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 3px;
}

.search-input .input input {
  height: 36px;
  width: 90%;
  font-size: 16px;
}

.search-btn a {
  width: 120px;
  text-align: center;
  display: block;
  background: #f8f8f8;
  line-height: 40px;
  border-radius: 3px;
  font-size: 16px;
}

.search-btn a:hover {
  color: #fff;
  background: #1c1f88;
}

@media(max-width:1200px) {
  .search {
    background: #008cd6;
    .container {
      max-width: 96%;
    }
  }
  .search-close,
  .search-close img {
    height: 28px;
  }
  .search-input {
    width: calc(100% - 40px);
  }

  .search-input .input {
    width: calc(100% - 70px);
    padding: 0 10px;
  }

  .search-input .input input {
    height: 32px;
    font-size: 16px;
  }

  .search-btn a {
    font-size: 18px;
    width: 60px;
    line-height: 36px;
  }

  .search-icon img {
    height: 20px;
  }
}
/* 搜索 end */



@media (max-width: 1200px) {
  header {
    background: #fff;
  }

  .header-wrap {
    max-width: 96%;
    height: 60px;
    padding:0;
  }

  .header-utils {
    padding: 0;
  }

  .mob-nav {
    display: block;
  }

  .logo-img img {
    height: 40px;
  }

  .navBox {
    position: absolute;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    top: 60px;
    left: -100%;
    transition: 0.5s;
  }

  .navBox.on {
    left: 0;
  }

  .navBox ul {
    background: #f8f8f8;
    display: block;
    height: 100%;
    max-width: 480px;
    padding: 15px 30px;
    box-sizing: border-box;
  }

  .navBox ul li>a {
    padding: 0;
    line-height: 48px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
  }

  .nav-item {
    background: #fff;
    padding: 10px 20px;

    a {
      font-size: 14px;
      line-height: 48px;
    }
  }

  .search-tit {
    display: none;
  }


}

@media (max-width: 480px) {
  .navBox ul {
    max-width: 100%;
  }
}