nav {
  background: var(--primary-color);
  font-size: var(--nav-font-size);
  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 .logo {
  max-height: 70px;
}
nav ul {
  display: flex;
  justify-content: space-between;
  line-height: 0.8rem;
  width: 100%;
}
nav ul li:after {
  content: "";
  width: 11px;
  height: 6px;
  background-color: #f9cea2;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: -20px;
}
nav ul li.active,
nav ul li:hover {
  color: var(--second-theme-color);
}
nav ul li.active::after,
nav ul li:hover::after {
  display: block;
}
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;
}
@media (max-width: 768px) {
  #menuIcon {
    display: flex;
    background-color: var(--primary-color);
    color: #fff;
    height: 0.8rem;
  }
  nav ul {
    width: unset;
  }
  nav .m-logo {
    max-height: 0.4rem;
  }
  nav .menu-list {
    display: block;
    font-size: 0.3rem;
    position: fixed;
    top: 1rem;
    right: 0;
    text-align: center;
    color: var(--primary-color);
    box-shadow: 2px 4px 26px 1px rgba(0, 0, 0, 0.14);
  }
  nav .menu-list::before {
    background: #fff;
    width: 0.3rem;
    height: 0.2rem;
    display: block;
    content: "";
    -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    margin-left: auto;
    margin-right: 0.5rem;
  }
  nav .menu-list li {
    background: #fff;
    padding: 0 0.5rem;
  }
  nav .menu-list li a {
    display: block;
    border-bottom: 1px solid #d2d2d2;
  }
  nav .menu-list li::after {
    display: none !important;
  }
  nav .menu-list li.active {
    color: var(--primary-color);
    background-color: #e7eaf3;
  }
  nav .menu-list li.active a {
    border-bottom: 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;
}
