﻿.header {
  width: 100%;
  height: 70px;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  background-color: #fff;
}


.header-container {
  width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header .header-logo {
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.header-logo img {
  height: 40px;
  padding-left:20px;
}

.header .header-right {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.show {
  display: block !important;
}

.header .nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 220px;
  font-size: 18px;
}

.nav-active {
  font-weight: bold;
  color: #333;
}

/* 带下拉菜单 */
.header .nav-menu .item-area {
  position: relative;
  height: 100%;
  display: flex;
  margin: 0 20px;
  cursor: pointer;

}

.header .nav-menu .item-area .item {
  display: flex;
  align-items: center;
  height: 100%;
}
.header .nav-menu .item-area .item,.header .nav-menu .nav-package span,.header .nav-menu .nav-package .dropdown{
    transition:color 0.4s;
}

.header .nav-menu .nav-package .dropdown {
  display: inline-block;
  font-size: 12px;
  margin: 1px 0 0 15px;
  font-weight: 400;
  transition: transform 0.4s linear;
}

.header .nav-menu .nav-package:hover span {
  color: #3B83F8;
}

.header .nav-menu .nav-package:hover .dropdown {
  transform: rotate(-180deg);
  color: #3B83F8;
}



/* 弹窗框 */
.header .nav-menu .item-area .popover {
  position: absolute;
  z-index: 9999;
  left: -10px;
  top: 60px;
  overflow: hidden;
  visibility: hidden;
  border-radius: 8px;
  /* max-height: 0; */
  /*隐藏*/
  transition: visibility 0.2s ease-out;
  background-color: #fff;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

.header .nav-menu .item-area .popover .menu-main {
  padding: 30px 15px 10px;
  width: 500px;
  display: flex;
  flex-wrap: wrap;
}

.header .nav-menu .item-area .popover .menu-main .package-group {
  width: 50%;
  margin-bottom: 20px;
}

.header .nav-menu .item-area .popover .menu-main .package-group p {
  line-height: 28px;
}

.header .nav-menu .item-area .popover .menu-main .package-group p:last-child {
  font-size: 14px;
  color: #999;
}

.package-group img {
  height: 50px;
  margin-right: 10px;
  position: relative;
  top: -5px;
}

.header .nav-menu .nav-package:hover .popover {
  /* max-height: 192px; */
  visibility: visible;
}

/* pc端登录注册按钮 */
.header-right .pc-login {
  display: flex;
  min-width: 200px;
}
.header-right .pc-login a.pc-reg-btn,.header-right .pc-login a.pc-login-btn,.header-right .pc-login a.pc-user-btn {
    transition:box-shadow 0.4s;
}

.header-right .pc-login a.pc-reg-btn,
.header-right .pc-login a.pc-user-btn {
  font-size: 14px;
  color: #fff;
  background: linear-gradient(116deg, #3B83F8 0%, #599FFD 100%);
}

.header-right .pc-login a {
  display: block;
  min-width: 90px;
  height: 32px;
  text-align: center;
  margin-left: 12px;
  line-height: 32px;
  border-radius: 6px;
}

.header-right .pc-login a[name='login_ok'] {
  display: none;
}

.header-right .pc-login a.pc-login-btn {
  font-size: 14px;
  color: #3B83F8;
  border: 1px solid #DEDEDE;
  box-shadow: 0 0 2px #3B83F8;
  background: #FFFFFF;
  transition: 0.4s;
}

.header-right .pc-login a:hover {
  box-shadow: 0 0 14px rgba(59, 131, 248, 0.6);
}

.header-right .pc-login a.pc-user-btn {
  width: 80px;
}

.pc-login .pc-user-name{
    line-height:32px;
}

/* 右侧 */
.header .action-menu,
.header-right .drop-list-btns {
  display: none
}

/* -------------------------------------------------------------------移动端 */
@media(max-width: 1199px) {

  .header {
    height: 60px;
    background: #fff !important;
  }

  .header .header-container {
    width: 100%;
    display: block;
    position: relative;
  }

  .header .header-logo {
    padding-left: 10px;
    height: 60px;
    display: table-cell;
    vertical-align: middle;
  }

  .header .header-right {
    display: none;
    position: absolute;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: auto;
    top: 60px;
    background: #fff;
    z-index: 9999;
  }


  .header-right .pc-login {
    display: none;
  }

  .header-right .drop-list-btns {
    display: block;
    width: 90%;
    margin: 50px auto 20px;
    overflow: hidden;
  }

  .drop-list-btns a {
    display: block;
    margin: 0 3%;
    width: 44%;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    font-size: 14px;
    float: left;
  }

  .drop-list-btns a.mobile-login-btn {
    background: #3F87F9;
    color: #fff;
  }

  .drop-list-btns a.mobile-reg-btn {
    color: #3F87F9;
    background: #fff;
    border: 1px solid #3F87F9;
    margin-right: 0px;
  }

  .drop-list-btns a.mobile-user-btn {
    width: 80%;
    margin: 0 auto;
    color: #3F87F9;
    background: #fff;
    border: 1px solid #3F87F9;
    float: none;
    display: none;
  }


  .header .action-menu {
    display: block;
    text-align: right;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  .header .action-menu .iconfont {
    font-size: 24px;
    margin-right: 16px;
    line-height: 60px;
  }
  .header .action-menu .iconfont.icon-yonghu{
      margin-right:8px ;
     
  }


  /* 展开菜单 */
  .header .nav-menu {
    padding-left: 0;
    width: 100%;
    height: unset;
    flex-direction: column;
    align-items: flex-start;
  }

  .header .nav-menu .item-area {
    width: 100%;
    margin: 0;
    padding: 16px 20px;
    display: inline-block;
  }

  .header .nav-menu .nav-package:hover .popover {
    max-height: none;
  }

  .header .nav-menu .item-area .popover {
    position: unset;
    display: none;
    visibility: visible;
    box-shadow: none;
    width: 100%;
  }

  .header .nav-menu .item-area .popover .menu-main {
    width: 100%;
    padding: 5px;
    flex-direction: column;
    border: none;
    font-size: 14px;

  }

  .header .nav-menu .item-area .popover .menu-main .package-group {
    width: 100%;
    margin-bottom: 10px;
  }

  .header .nav-menu .item-area .popover .menu-main .package-group:first-child {
    margin-top: 10px;
  }

  .header .nav-menu .item-area .popover .menu-main .package-group:last-child {
    margin-bottom: 0;
  }

  .header .nav-menu .item-area .popover .menu-main .package-group img {
    width: 30px;
    height: 30px;
  }

  .header .nav-menu .item-area .popover .menu-main .package-group p {
    line-height: 24px;
    color: #666;
  }

  .header .nav-menu .item-area .popover .menu-main .package-group p:last-child {
    font-size: 12px;
    color: #999;
  }

  .header .nav-menu .item-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header .nav-menu .item-area.nemu-active {
    padding-bottom: 0px;
  }

  .header .nav-menu .item-area.nemu-active .popover {
    display: block;
  }

  .header .nav-menu .nav-package:hover .dropdown {
    transform: unset;
  }

  /* 点击菜单 */
  .header .nav-menu .item-area.nemu-active .dropdown {
    transform: rotate(-180deg);
  }
}