.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  height: 87px;
  padding-left: 40px;
  padding-right: 40px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  position: sticky;
  font-size: 16px !important;
  border-bottom: 1px solid #eee;
}
@media screen and (max-width: 768px) {
  .header-nav {
    display: none !important;
  }
}
.header-nav .logo {
  width: 217px;
  height: 53px;
}
.header-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.header-nav-active{
  color: #4D66FF !important;
}

.header-nav li {
  float: left;
  margin-right: 40px;
  line-height: 50px;
}
.header-nav li a,
.dropbtn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: PingFangTC, PingFangTC;
  font-size: 16px !important;
  color: #000000;
  line-height: 22px;
  font-style: normal;
}

.header-nav li a:hover,
.dropdown:hover .dropbtn {
  color: #4d66ff;
}

.header-nav li.dropdown {
  display: inline-block;
}
/* 插入下拉箭头 */
.header-nav li.dropdown::after{
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000;
  margin-left: 5px;
  vertical-align: middle;
}
/* .header-nav li.dropdown:hover::after{
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #4D66FF;
} */
.header-nav li.dropdown:has(.header-nav-active)::after{
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #4D66FF;
}
.header-nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.header-nav .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.header-nav .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.header-nav .dropdown:hover .dropdown-content {
  display: block;
}
.header-nav .nav-right {
  display: flex;
  align-items: center;
  font-family: PingFangTC, PingFangTC;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #bfbfbf;
  text-align: left;
  font-style: normal;
  gap: 24px;
}
.header-nav .nav-right .lang-content {
  display: flex;
}
.header-nav .nav-right .change-lang-button {
  cursor: pointer;
}
.header-nav .nav-right .change-lang-button.lang-active {
  color: #000000;
}

.header-nav .login-btn {
  width: 96px;
  height: 40px;
  background: #4d66ff;
  border-radius: 27px;
  border: 1px solid #4d66ff;
  font-family: PingFangTC, PingFangTC;
  font-size: 18px;
  color: #ffffff;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  text-align: center;
  line-height: 40px;
  box-sizing: border-box;
}
.header-nav .login-btn:hover {
  background: #3249d9;
  border: 1px solid #3249d9;
}
.header-nav .nav-right .user {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav .nav-right .user img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.header-nav .nav-right .user img:hover {
  opacity: 0.4;
}

.header-nav .menu {
  position: relative;
}

.header-nav .menu .menu-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  right: 0;
  top: 100%;
  min-width: 216px;
  box-sizing: border-box;
  height: 107px;
  background: #ffffff;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.menu-content-email {
  line-height: 54px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  text-align: left;
  font-style: normal;
  border-bottom: 1px solid #eeeeee;
  text-align: center;
  padding: 0 16px;
}
.menu-content-logout {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #4d66ff;
  line-height: 20px;
  font-style: normal;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
}
.menu-content-logout-btn {
  width: 100%;
  height: 100%;
  line-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-content-logout-btn:hover {
  background: #f3f3f3;
  border-radius: 4px;
}
.header-nav .menu:hover .menu-content {
  display: block;
}
