body {
  background: #eef3ff;
  padding: 0;
  margin: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.bg-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
/* 导航栏 */
.login-header {
  /* width: 1920px; */
  height: 60px;
  background: #ffffff;
  position: relative;
  z-index: 9999;
}
.login-header-container {
  max-width: 1920px;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.header-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  width: calc(100% - 40px - 167px - 20px);
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端侧边菜单 */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
  padding-top: 80px;
}

.mobile-sidebar.active {
  right: 0;
}

/* 移动端侧边栏隐藏滚动条 */
.mobile-sidebar::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.mobile-sidebar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 移动端菜单遮罩 */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 移动端菜单项样式 */
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav > li > a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}

.mobile-nav > li > a::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: transform 0.3s ease;
}

.mobile-nav > li.active > a::after {
  transform: translateY(-50%) rotate(45deg);
}

.mobile-nav > li:hover > a,
.mobile-nav > li.active > a {
  background: linear-gradient(90deg, #165dff, #1fa3ff);
  color: white;
}

/* 移动端二级菜单 */
.mobile-sub-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-sub-nav.active {
  max-height: 500px;
}

.mobile-sub-nav li {
  border-bottom: 1px solid #e9ecef;
}

.mobile-sub-nav li:last-child {
  border-bottom: none;
}

.mobile-sub-nav li a {
  display: block;
  padding: 12px 40px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

/* 移动端三级菜单 */
.mobile-third-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f0f2f5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-third-nav.active {
  max-height: 400px;
}

.mobile-third-nav li {
  border-bottom: 1px solid #ddd;
}

.mobile-third-nav li:last-child {
  border-bottom: none;
}

.mobile-third-nav li a {
  display: block;
  padding: 10px 60px;
  color: #777;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.mobile-third-nav li:hover a,
.mobile-third-nav li.active a {
  background: linear-gradient(90deg, #165dff, #1fa3ff);
  color: white;
}

/* 二级菜单项有子菜单时的箭头 */
.mobile-sub-nav > li > a {
  position: relative;
}

.mobile-sub-nav > li.has-children > a::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-sub-nav > li.has-children.active > a::after {
  transform: translateY(-50%) rotate(45deg);
}
.header-nav li {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 60px;
}
.header-nav li a {
  text-decoration: none;
  color: black;
  line-height: 1;

  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
}
.header-nav > li:hover {
  background: linear-gradient(90deg, #165dff, #1fa3ff);
}
.header-nav > li:hover > a {
  color: white;
}
.header-nav li .header-sub-nav {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  justify-content: center;
  padding: 0;
  align-items: baseline;
  gap: 20px;
  display: none;
}

.header-nav > li:hover > .header-sub-nav {
  display: flex;

}
.header-sub-nav li {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}
.header-sub-nav > li a {
  text-decoration: none;
  color: #666666;
  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
  border-radius: 4px;

  font-weight: bold;
  background-image: linear-gradient(to right, #165dff, #1fa3ff);
  -webkit-background-clip: text;
  color: transparent;
}
.header-sub-sub-nav {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 20px;
}
.header-sub-sub-nav li {
  padding: 0;
}
.header-sub-sub-nav li a {
  text-decoration: none;
  color: #666666;
  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
  border-radius: 4px;
}
.header-sub-sub-nav li a:hover {
  font-weight: bold;
  background-image: linear-gradient(to right, #165dff, #1fa3ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* 媒体查询 - 响应式设计 */

/* 大屏幕 (1920px及以上) */
@media (min-width: 1920px) {
  .login-header-container {
    padding: 0 5%;
  }
}

/* 中大屏幕 (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .login-header-container {
    padding: 0 20px;
    width: calc(100% - 40px);
  }
}

/* 中等屏幕 (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .login-header-container {
    padding: 0 20px;
    width: calc(100% - 40px);
  }
}

/* 小屏幕 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .login-header {
  }
  .login-header-container {
    padding: 0 20px;
    width: calc(100% - 40px);
  }
}

/* 超小屏幕 (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .login-header {
    height: 45px;
  }
  .login-header-container {
    padding: 0 15px;
  }
}

/* 极小屏幕 (最大479px) */
@media (max-width: 479px) {
  .login-header {
    height: 40px;
  }
  .login-header-container {
    padding: 0 10px;
  }
  .header-nav {
    display: none; /* 隐藏桌面导航 */
  }
  .mobile-menu-toggle {
    display: flex; /* 显示汉堡菜单按钮 */
  }
}

/* 移动端媒体查询 */
@media (max-width: 768px) {
  .header-nav {
    display: none; /* 隐藏桌面导航 */
  }
  .mobile-menu-toggle {
    display: flex; /* 显示汉堡菜单按钮 */
  }
}