.navbar_box,
.footer_box {
  width: 100%;
  background: #2d2d2d;
  color: white;
  z-index: 9999999;
}

.navbar_box {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sticky_class {
  position: sticky;
  top: 0;
}
.navbar {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999999;
}
.navbar .navbar-left {
  display: flex;
  align-items: center;
  flex: 1;
}
.navbar .navbar-left .logo {
  position: absolute;
  top: 14px;
  left: 0;
  width: 135px;
  height: 47px;
}
.navbar .menu {
  margin-left: 215px;
}
.navbar .menu a {
  margin: 0 15px;
  font-weight: 500;
  font-size: 20px;
  color: #aaaaaa;
  line-height: 23px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8a33ff, #f55bba);
  transition: width 0.3s ease;
}

.navbar .menu a:hover::after {
  width: 100%;
}
.navbar .menu .active {
  font-weight: bold;
  font-size: 20px;
  color: #ffffff;
  line-height: 23px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.navbar .nav_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 175px;
  height: 50px;
  background: linear-gradient(88deg, #8a33ff 0%, #f55bba 100%);
  border-radius: 40px;
}
.navbar .nav_btn .go_icon {
  width: 26px;
  height: 26px;
  margin-right: 3px;
}
/* 下拉菜单容器 */
.menu-item-dropdown {
  position: relative;
  display: inline-block;
}

.menu-item-dropdown .dropdown-box {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  min-width: 160px;
  padding: 10px 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* 下拉内容容器，默认隐藏 */
.menu-item-dropdown .dropdown-box .dropdown-content {
  position: relative;
  background-color: #444444; /* 与导航栏背景颜色区分开 */
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
}

/* 下拉内容中的链接样式 */
.menu-item-dropdown .dropdown-content a {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 18px;
  transition: background-color 0.3s ease;
  margin: 0;
}

/* 鼠标悬停时显示下拉内容 */
.menu-item-dropdown:hover .dropdown-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 鼠标悬停在下拉链接上时的样式 */
.menu-item-dropdown .dropdown-content a:hover {
  background-color: #555555;
}

/* 三角形指示器 */
.menu-item-dropdown .dropdown-content::after {
  content: "";
  position: absolute;
  top: -8px; /* 调整三角形的位置 */
  left: 20px; /* 根据需要调整水平位置 */
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #444444 transparent;
}
/* 汉堡菜单样式 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.footer_box {
  position: relative;
}
.footer {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  position: relative;
}
.footer_logo {
  width: 160px;
  height: 56px;
}
.footer .footer_left {
  display: flex;
}

.footer .footer_left .footer_menu {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  margin-left: 40px;
}
.footer .footer_left .footer_menu .footer_text {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  line-height: 19px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 30px;
}
.footer .footer_left .footer_menu .footer_text .footer_text_item {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative; /* 為了定位 ::after 伪元素 */
}

.footer .footer_left .footer_menu .footer_text .Facebook_logo {
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.footer .footer_left .footer_menu .footer_text .footer_text_center_line {
  margin: 0 20px;
}
.footer .footer_right {
  /*width: 87px;*/
}
.footer .footer_right .footer_line_box {
  width: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.footer .footer_right .footer_line_box .line-logo {
  width: 20px;
  height: 20px;
}

.footer .footer_right .footer_line_box .footer_line_text {
  font-weight: 500;
  font-size: 20px;
  color: #ffffff;
  line-height: 19px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.footer .footer_right .line-code {
  width: 220px;
  height: 220px;
}

/* 移动端菜单背景遮罩 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    width: 95%;
    padding: 15px 0;
    flex-wrap: wrap;
    position: relative;
  }

  .navbar .navbar-left .logo {
    width: 100px;
    height: 35px;
    position: static;
  }

  .navbar .menu {
    margin-left: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 25px 0;
    border-top: 1px solid #444;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 15px 15px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .navbar .menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar .menu a {
    margin: 12px 20px;
    text-align: left;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .navbar .menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .navbar .menu a:hover::before {
    left: 100%;
  }

  .navbar .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }

  .navbar .menu a.active {
    background: linear-gradient(135deg, #8a33ff 0%, #f55bba 100%);
    color: #fff;
  }

  .navbar .nav_btn {
    width: 140px;
    height: 40px;
    margin: 15px 20px 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(138, 51, 255, 0.3);
    transition: all 0.3s ease;
  }

  .navbar .nav_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 51, 255, 0.4);
  }

  .hamburger {
    display: flex;
  }

  /* 下拉菜单在移动端的调整 */
  .menu-item-dropdown {
    width: 100%;
  }

  .menu-item-dropdown .dropdown-box {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .menu-item-dropdown .dropdown-content {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #444;
    overflow: hidden;
  }

  .menu-item-dropdown .dropdown-content::after {
    display: none;
  }

  .menu-item-dropdown .dropdown-content a {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
  }

  .menu-item-dropdown .dropdown-content a:last-child {
    border-bottom: none;
  }

  .menu-item-dropdown .dropdown-content a:hover {
    background: rgba(138, 51, 255, 0.2);
    transform: translateX(8px);
    padding-left: 28px;
  }

  .menu-item-dropdown .dropdown-content a::before {
    content: '▶';
    position: absolute;
    left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #8a33ff;
  }

  .menu-item-dropdown .dropdown-content a:hover::before {
    opacity: 1;
  }

  /* 页脚响应式 */
  .footer {
    flex-direction: column;
    width: 95%;
    padding: 20px 0;
    text-align: center;
  }

  .footer .footer_left {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .footer .footer_left .footer_menu {
    margin-left: 0;
    margin-top: 20px;
  }

  .footer .footer_left .footer_menu .footer_text {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .footer .footer_left .footer_menu .footer_text .footer_text_center_line {
    margin: 0 10px;
  }

  .footer .footer_right {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer .footer_right .footer_line_box {
    width: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 100%;
    padding: 10px 15px;
  }

  .navbar .navbar-left .logo {
    width: 80px;
    height: 28px;
  }

  .navbar .menu {
    padding: 20px 0;
    border-radius: 0 0 12px 12px;
  }

  .navbar .menu a {
    font-size: 16px;
    margin: 8px 15px;
    padding: 10px 15px;
  }

  .navbar .nav_btn {
    width: 120px;
    height: 35px;
    font-size: 14px;
    margin: 12px 15px 8px 15px;
  }

  .navbar .nav_btn .go_icon {
    width: 20px;
    height: 20px;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 3px 0;
  }

  /* 手机端下拉菜单优化 */
  .menu-item-dropdown .dropdown-box {
    margin-left: 15px;
    margin-right: 15px;
  }

  .menu-item-dropdown .dropdown-content a {
    padding: 12px 15px;
    font-size: 15px;
  }

  .menu-item-dropdown .dropdown-content a:hover {
    padding-left: 23px;
    transform: translateX(5px);
  }

  /* 页脚手机响应式 */
  .footer {
    width: 100%;
    padding: 15px;
  }

  .footer_logo {
    width: 120px;
    height: 42px;
  }

  .footer .footer_left .footer_menu .footer_text {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .footer .footer_left .footer_menu .footer_text .footer_text_center_line {
    margin: 0 5px;
  }

  .footer .footer_right .footer_line_box .footer_line_text {
    font-size: 14px;
  }

  .footer .footer_right .line-code {
    width: 70px;
    height: 70px;
  }
}
