header {
  width: 100%;
}

header .htop {
  width: 100%;
  font-size: 0;
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  justify-content: space-between;
}

header .htop .hel {
  display: inline-block;
  vertical-align: middle;
  width: calc((100% - 2.31rem) / 2);
  font-size: 0;
}

header .htop .hel .menux{
  display: none;
}

header .htop .hel .select-con {
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  width: auto;
  font-size: calc(12px - 0.12rem + 0.14rem);
  line-height: 2.5;
  height: 2.5em;
  background: #fff;
  border: 1px solid #fff;
  overflow: hidden;
  position: relative;
}

header .htop .hel .select-con .select-value {
  width: auto;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  line-height: 2.5;
  height: 2.5em;
  color: #666666;
  padding: 0 0.3rem 0 0.25rem;
  font-size: calc(12px - 0.12rem + 0.14rem);
  text-align: left;
}

header .htop .hel .select-con select {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  opacity: 0;
}

header .htop .hel .select-con select option {
  color: #666666;
  font-size: calc(12px - 0.12rem + 0.14rem);
  line-height: 2.5;
}

header .htop .hel .select-con:after {
  display: inline-block;
  content: "";
  border-left: 0.05rem solid transparent;
  border-top: 0.05rem solid #666;
  border-right: 0.05rem solid transparent;
  position: absolute;
  right: 0.13rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

header .htop .logo {
  display: inline-block;
  vertical-align: middle;
  /* width: 2.31rem; */
  width: auto;
  height: 0.5rem;
}

header .htop .logo a, header .htop .logo img {
  /* width: 100%; */
  height: 100%;
  display: block;
}

header .htop .her {
  display: inline-block;
  vertical-align: middle;
  width: calc((100% - 2.31rem) / 2);
  font-size: 0;
  text-align: right;
}

header .htop .her .hertm .user{
  width: 123px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

header .htop .her .hertm {
  display: inline-block;
  vertical-align: middle;
}

header .htop .her .hertm a {
  display: inline-block;
  vertical-align: middle;
  /*width: 0.3rem;*/
  height: 0.3rem;
  line-height: 0.3rem;
  font-size: 14px;
}

header .htop .her .hertm a img {
  width: 100%;
  height: 100%;
  display: block;
}

header .htop .her .hertm + .hertm {
  margin-left: 0.15rem;
}

header .htop .menu {
  display: none;
}

header nav {
  width: 100%;
  border-top: solid 1px #eeeeee;
  border-bottom: solid 1px #eeeeee;
  position: relative;
}

header nav .w1400{
  position: initial;
}

header nav .navem {
  display: inline-block;
  vertical-align: middle;
  /* position: relative; */
  font-size: 0;
}

header nav .navem .nae {
  display: inline-block;
  position: relative;
  color: #333;
  font-size: calc(12px - 0.12rem + 0.15rem);
  line-height: 2.5;
  padding: 0 0.15rem;
}

header nav .navem .navul {
  border-top: solid 1px #e9e9e9;
  border-bottom: solid 1px #e9e9e9;
  position: absolute;
  width: 100vw;
  left: 0;
  top: 100%;
  z-index: 8;
  background: #fff;
  padding: 0.2rem 0;
  display: none;
}

header nav .navem .navul .nul {
  width: calc(100% - 6.1rem);
  display: inline-block;
  vertical-align: top;
}

header nav .navem .navul .nul ul {
  width: 100%;
  font-size: 0;
}

header nav .navem .navul .nul ul li {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}

header nav .navem .navul .nul ul li a {
  width: 100%;
  color: #666666;
  font-size: calc(12px - 0.12rem + 0.14rem);
  display: block;
  line-height: 2.5;
}

header nav .navem .navul .nul ul li:hover a {
  color: #ef6e7e;
}

header nav .navem .navul .nmg {
  display: inline-block;
  vertical-align: top;
  width: 6.1rem;
}

header nav .navem.on .nae {
  color: #ef6e7e;
}
@media (max-width: 768px) {
  header nav .navem .nae {
    font-size: calc(12px - 0.12rem + 0.19rem);
  }
}

header .black {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  cursor: pointer;
}

header .sform {
  width: 100%;
  padding: 0.3rem 0;
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  background: #fff;
  display: none;
}

header .sform .inputx {
  display: inline-block;
  vertical-align: middle;
  font-size: 0;
  width: 100%;
  background: #e9e9e9;
  font-size: calc(12px - 0.12rem + 0.2rem);
  line-height: 2.5;
  border-radius: 0.4rem;
  font-size: 0;
  padding: 0 0.2rem;
}

header .sform .inputx .inx {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 0.3rem);
  background: none;
  border: none;
  color: #333;
  font-size: calc(12px - 0.12rem + 0.2rem);
  line-height: 2.5;
  height: 2.5em;
}

header .sform .inputx .iconx {
  display: inline-block;
  vertical-align: top;
  width: 0.3rem;
  height: 0.3rem;
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

header .sform .inputx .iconx input {
  width: 100%;
  height: 100%;
  display: inline-block;
  vertical-align: middle;
  background: url("../images/i3.png") no-repeat;
  background-size: 100%;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  header .htop .her .hertm .user{
    font-size: 0;
    width: auto;
  }
  header .htop .hel {
    width: auto;
    padding-left: 30px;
    text-align: left;
    position: relative;
  }
  header .htop .hel .menux{
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    z-index: 2;
  }
  header .htop .hel .menux img{
    width: 100%;
    height: 100%;
    display: block;
  }
  header .htop .her {
    width: 100%;
    /* width: calc(100% - 2.31rem - 0.4rem - 0.2rem);
    width: auto; */
    margin-right: 0.1rem;
  }
  header .htop .her .hertm a {
    width: 0.36rem;
    height: 0.36rem;
  }
  header .htop .menu {
    width: 32px;
    justify-content: 0.38em;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
  }
  header .htop .menu img {
    width: 100%;
    height: 100%;
    display: block;
  }
  header nav {
    width: 60%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: #fff;
    margin-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: auto;
    z-index: 1000;
    transform: translate(100%, 0);
    transition: transform .3s;
  }
  header nav .navem {
    width: 100%;
    position: relative;
  }
  header nav .navem .navul {
    width: 100%;
    position: relative;
    padding: 0.1rem 0;
  }
  header nav .navem .navul .nul {
    width: 100%;
  }
  header nav .navem .navul .nul ul li {
    width: 100%;
  }
  header nav .navem .navul .nmg {
    width: 100%;
    display: none;
  }
  header nav .navem.has-nav:after {
    content: "+";
    display: inline-block;
    font-size: calc(12px - 0.12rem + 0.14rem);
    line-height: 2.5;
    width: 2.5em;
    height: 2.5em;
    text-align: center;
    position: absolute;
    background: none;
    right: 0;
    transform: translateX(0);
    top: 0;
    color: #666;
  }
  header nav .navem.has-nav.show:after {
    content: "-";
  }
  header.menu-state nav {
    transform: translate(0, 0);
  }
  header.menu-state .black {
    display: block;
  }
}

.flex {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1450px) {
  header .w1400 {
    width: 94%;
  }
}
@media (max-width: 768px) {
  header .htop .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }
}
