.navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 99;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: #7cd18dcc;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 9999;
}
.navbar .logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-align: center;
  color: #f8781c;
}
.navbar .logo img {
  width: 35px;
  height: 40px;
  margin-right: 10px;
}

.navbar .menus {
  display: flex;
}
.navbar .menus li {
  position: relative;
  margin-left: 30px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.navbar .menus li a {
  color: #fff;
}
.navbar .menus li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px; /* 光线的高度 */
  background: #ff6600; /* 光线的颜色 */
  transition: width 0.3s ease-in-out; /* 动画过渡 */
}
.navbar .menus li:hover a{
  color: #ff6600;
}
.navbar .menus li:hover::after {
  width: 100%; /* 光线宽度扩展至全宽 */
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-icon .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Transformations for active state */
.menu-icon.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
}

.menu-icon.active .bar:nth-child(2) {
  opacity: 0; /* 隐藏中间横线 */
}

.menu-icon.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -5px);
}

.menuPop {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: #7cd18d;
  transition: all 0.3s;
  transform: translateY(-100%);
  font-size: 30px;
  font-weight: bold;
  z-index: 999;
}
.menuPop a {
  cursor: pointer;
  color: #fff;
  margin-bottom: 10px;
}

.showMenuPop {
  transform: translateY(0%);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
  }
  .navbar .menus {
    display: none;
  }
}

/* From Uiverse.io by adamgiebl */
.downBtn {
  color: #ecf0f1;
  font-size: 17px;
  background-color: #e67e22;
  border: 1px solid #f39c12;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0px 6px 0px #d35400;
  transition: all 0.1s;
}

.downBtn:active {
  box-shadow: 0px 2px 0px #d35400;
  position: relative;
  top: 2px;
}
