nav {
  background: var(--primary-color);
  font-size: 0.16rem;
  z-index: 100;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  color: #fff;
  z-index: 999;
}
nav .cont {
  max-width: 1300px;
}
nav .logo {
  max-height: 70px;
}
nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 0.8rem;
  width: 100%;
  margin: 0;
}
nav ul li a {
  padding: 0 0.2rem;
  display: block;
}
nav ul li.active a,
nav ul li:hover a {
  color: #fff;
  background-color: var(--first-theme-color);
  border-radius: 0.2rem;
  line-height: 0.4rem;
}
nav .cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mask {
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background: rgba(0, 0, 0, 0.38);
}
#menuIcon {
  display: none;
}
.icon-menu {
  width: 0.6rem;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: end;
  flex-direction: column;
}
.icon-menu span {
  display: block;
  width: 0.6rem;
  height: 0.06rem;
  border-radius: 0.03rem;
  margin: 0.05rem 0;
  background-color: #fff;
  transition: 500ms;
  width: 100%;
}
.icon-menu span:first-child {
  width: 50%;
}
.icon-menu span:nth-child(2) {
  width: 75%;
}
.icon-menu.active span:nth-child(1) {
  transform-origin: left;
  transform: rotate(46deg);
  margin-bottom: 0.1rem;
  transition: 500ms;
  width: 100%;
}
.icon-menu.active span:nth-child(2) {
  width: 0;
  transition: 500ms;
}
.icon-menu.active span:nth-child(3) {
  transform-origin: left;
  transform: rotate(-46deg);
  margin-top: 0.1rem;
  transition: 500ms;
}
