.nav-part{
  border: none;
  height: auto;
  display: flex;
  justify-content: space-between;
  /* padding: 20px 40px; */
  /* padding-top: 20px;
  padding-bottom: 20px; */
  padding-block: 20px;
  z-index: 1000;
  position: relative;
}
.nav-part-left{
  display: flex;
  gap: 100px;
  align-items: center;
}
.nav-part-right{
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  align-items: center;
}
.nav-part-left > div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-part-left > div:first-child > img{
  width: 30px;
}
.nav-part-left > div:first-child > span{
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-part-left > div:first-child > span > span{
  font-weight: 500;
}

/* 导航栏的几个选项 */
.nav-part-left > div:last-child{
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
}
/* 
.nav-part-right > div:first-child{
 
} */

.nav-part-right > div:last-child{
  color: white;
  background-color: black;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 200;
  text-transform: capitalize;
}


/* 交互处理 */
div.nav-items-container.nav-items-container{
  gap: 0px;
}

div.nav-items-container.nav-items-container > span{
  /* border: 1px solid red; */
  width:90px;
  display: flex;

  
}

div.nav-items-container.nav-items-container > span:first-child{
  margin-right: 20px;
}

.nav-items-container > span{
  color: rgb(62, 62, 62);
  cursor: pointer;
}


.nav-items-container > span > span:hover{
  color: black;
  font-weight: 700;
}

.nav-items-container > span > span {
  position: relative;
  z-index: 0;
  /* border: 3px solid green; */
}

.nav-items-container > span > span > div{
  padding-top: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  /* background-color: white; */
  /* border: 3px solid red; */
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  /* transform: translateY(0px); */;
}

.nav-items-container > span > span:hover > div{
  opacity: 1;
  pointer-events: auto;

}

.sub-nav-card{
  width: 250px;
  /* height: 200px; */
  /* border: 2px solid blue; */
  transition:  transform 0.3s ease;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 300;
}

.nav-items-container > span > span:hover > div > div{
  transform: translateY(10px);
}

.sub-nav-card-item{
  display: flex;
  gap: 10px;
  /* border: 1px solid red; */
}

.sub-nav-card-item > div:first-child{
  height: 18px;
  width: 18px;
  /* border: 1px solid red; */
  position: relative;
  top: 2px;
}

.sub-nav-card-item > div:last-child{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sub-nav-card-item > div:last-child > span:first-child{
  font-weight: 700;
  font-size: 1.1rem;
}
.sub-nav-card-item > div:last-child > span:last-child{
  text-transform: capitalize;
  color: rgb(172, 172, 172);
  text-wrap: nowrap;
}


.mobile-nav-container{
  display: none;
  font-size: 2rem;
  /* display: flex; */
  justify-content: center;
  align-items: center;

}
.mobile-nav-container > .hamicon{
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;

  /* display: block; */
}

.mobile-nav-content{
  position: absolute;
  width: 100%;
  height: 100dvh;
  background-color: rgb(255, 255, 255);
  left: 0;
  top: 0;
  padding: 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}


#mobile-nav{
  display: none;
}

#mobile-nav:checked ~ .mobile-nav-content{
  transform: translateY(0);
}


.mobile-nav-content-header{
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  text-transform: capitalize;
  font-weight: 700;
  margin-bottom: 60px;
}
.mobile-nav-content-items{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-content-one-item{
  display:flex;
  flex-direction: column;
}

#mobile-nav-item1{
  display: none;
}

.mobile-nav-content-one-item > label{
  display: flex;
  justify-content: space-between;
}

.mobile-nav-content-one-item > div:last-child{
  display: flex;
  flex-direction: column;
  /* border: 2px solid green; */
  height: 0px;
  overflow: hidden;
  transition: height 0.3s ease;
}

.mobile-sub-icon{
  height: 16px;
  width: 16px;
  padding: 2px;
  /* border: 2px solid red; */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

#mobile-nav-item1:checked + label > .mobile-sub-icon{
  transform: rotate(-90deg);
}

#mobile-nav-item1:checked ~ div{
  height: 160px;
}


/* 次级菜单的内容 */
.mobile-nav-content-sub-menu-box{
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  gap: 30px;
  margin-top: 20px;
}
.mobile-nav-content-sub-menu-one{
  display: flex;
  align-items: center;
  gap: 10px;

}

.mobile-nav-content-sub-menu-one > div:first-child{
  width: 24px;
  height: 24px;
  /* border: 1px solid red; */
  display: flex;
}
.mobile-nav-content-sub-menu-one > div:last-child{
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-content-sub-menu-one > div:last-child > span{
  font-size: 1.6rem;
  font-weight: 400;
}
.mobile-nav-content-sub-menu-one > div:last-child > span:last-child{
  color: rgb(172, 172, 172);
  font-size: 1.2rem;
  font-weight: 400;
}

/* 移动导航栏的底部两个按钮 */

.mobile-buttons{
  position: absolute;
  bottom: 5vh;
  left: 0;
  width: 100%;
  /* border: 2px solid red; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}


.mobile-buttons > div:first-child{
  background-color: black;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 6px;

}

.mobile-buttons > span{
  font-size: 1.2rem;
}



@media screen and (max-width: 1024px) {
    .nav-items-container.nav-items-container.nav-items-container{
      display: none;
    }
    .nav-part-right{
      display: none;
    }
    .mobile-nav-container{
      display: flex;
      justify-content: center;
      justify-content: center;
    }
}

@media screen and (max-width: 768px){
  .mobile-nav-container{
    font-size: 1.4rem;
  }
  .mobile-nav-content-sub-menu-one > div:last-child >  span{
    font-size: 1.4rem;
  }
}


@media screen and (max-width: 400px){
  .mobile-nav-content-sub-menu-one > div:last-child{
    flex-direction: column;
    align-items: flex-start;
  }
  #mobile-nav-item1:checked ~ div{
    height: 240px;
  }
  .mobile-nav-content-header{
    margin-bottom: 30px;
  }
  .mobile-buttons{
    bottom: 3vw;
  }
}