/* 全局基础样式 */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
  z-index: 10001;
}

.header-wrap {
  color: #fff;
}

.logo img {
  max-width: 100%;
  height: 60px;
}

.m-none {
  display: none;
}

/* 桌面端样式（≥1200px） */
@media (min-width: 1200px) {
  .navlist li .a1 {
    font-size: 18px;
    color: #fff;
    line-height: 87px;
    padding: 0 1.3vw;
    position: relative;
  }

  .navlist li .a1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background: #365ea3;
    transition: 0.5s;
  }

  .navlist li:hover .a1 {
    color: #365ea3 !important;
    font-weight: bold;
    background: #f4f4f4;
  }

  .navlist li:hover .a1::after {
    width: 100%;
  }

  .nav-item {
    position: absolute;
    top: 87px;
    left: 0;
    width: 200px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .nav-item a {
    display: block;
    font-size: 16px;
    line-height: 46px;
    padding-left: 20px;
    white-space: nowrap;
    border-bottom: 1px solid #acabab;
  }

  .nav-item a:last-child {
    border-bottom: none;
  }

  .nav-item a:hover {
    color: #365ea3;
    font-weight: bold;
  }

  .navBox ul li:hover .nav-item {
    opacity: 1;
    visibility: visible;
  }

  .icon-search {
    font-size: 30px !important;
    margin-right: 30px;
    cursor: pointer;
  }

  .lang {
    width: 108px;
    height: 40px;
    background: transparent;
    border: 1px solid #d8d8d8;
    border-radius: 50px;
    transition: 0.5s;
  }

  .lang:hover {
    border-color: #365ea3;
    background: #365ea3;
    color: #fff !important;
  }

  .lang-qh {
    line-height: 40px;
    padding: 0 10px;
    cursor: pointer;
    box-sizing: border-box;
  }

  .lang-qh .txt {
    font-size: 16px;
  }

  .icon-yuyan {
    font-size: 24px !important;
  }

  .icon-right {
    font-size: 20px !important;
    transition: 0.5s;
  }

  .lang:hover .icon-right {
    transform: rotate(90deg);
  }

  .subLan {
    position: absolute;
    left: 0;
    top: 60px;
    width: 100%;
    padding: 10px;
    color: #fff;
    border-radius: 10px;
    background: #365ea3;
    visibility: hidden;
    transition: 0.2s;
    box-sizing: border-box;
  }

  .subLan a {
    display: block;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
    color: #fff;
  }

  .subLan a:hover {
    background: #fff;
    color: #000;
  }

  .lang:hover .subLan {
    top: 50px;
    visibility: visible;
  }

  header.on,
  header:hover {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
  }

  header.on .a1,
  header.on .header-wrap,
  header:hover .header-wrap,
  header:hover .a1 {
    color: #333;
  }
}

/* 移动端样式（≤1200px） */
@media (max-width: 1200px) {
  .m-none {
    display: block;
  }

  header {
    height: 60px;
    background: #fff;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .header-wrap {
    max-width: 96%;
    margin: 0 auto;
    width: 100%;
  }

  .logo img {
    height: 40px;
  }

  .icon-search {
    font-size: 28px !important;
    color: #333;
  }

  .lang {
    display: none;
  }

  .mob-nav {
    display: block;
  }

  .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: 100%;
    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;
  }

  .nav-item a {
    font-size: 14px;
    line-height: 48px;
  }
}

/* 搜索模块样式 */
.search {
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: 0.5s;
  background: #365ea3;
}

.search .box {
  box-sizing: border-box;
  max-width: 80%;
  width: 100%;
  height: 100%;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  margin: 0 auto;
}

.search.on {
  top: 0;
}

.search-close {
  height: 32px;
  cursor: pointer;
}

.search-close img {
  height: 32px;
  width: 100%;
}

.search-input {
  width: calc(100% - 60px);
}

.search-input .input {
  width: calc(100% - 120px);
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 15px;
  box-sizing: border-box;
  border-radius: 5px;
}

.search-input .input input {
  height: 32px;
  width: 90%;
  font-size: 18px;
}

.search-btn a {
  width: 100px;
  text-align: center;
  display: block;
  background: #f8f8f8;
  line-height: 36px;
  border-radius: 5px;
  font-size: 18px;
}

.search-btn a:hover {
  color: #fff;
  background: #1c1f88;
}

/* 搜索模块移动端适配 */
@media (max-width: 1200px) {
  .search .box {
    max-width: 94%;
  }
}