@charset "UTF-8";
/* Header Styles */
.headerbgm {
  display: flex;
  justify-content: center;
  height: 148px;
  background: #002147;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.headfixed {
  padding: 0;
}

.headerCont {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 148px;
}

.logo {
  max-width: 60%;
}

.logo img {
  width: 295px;
  height: 115px;
}

.main-navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.main-navbar .search {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
}

.main-navbar .search .search-icon {
  width: 20px;
  height: 20px;
}

.main-navbar .search .line {
  width: 1px;
  height: 15px;
  margin: 0 19px;
  background-color: #fff;
  opacity: 0.9;
}

.main-navbar .search .txt {
  font-size: 16px;
  color: #fff;
}

.main-navbar .main-nav {
  display: flex;
  list-style: none;
}

.main-navbar .main-nav .nav-item {
  position: relative;
  margin: 0 10px;
}

.main-navbar .main-nav .nav-item .nav-link {
  display: block;
  padding: 10px 15px;
  color: #fff;
  /* 改为白色 */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  /* 当前页面选中样式 */
}

.main-navbar .main-nav .nav-item .nav-link:hover {
  color: #ffb400;
}

.main-navbar .main-nav .nav-item .nav-link.active {
  color: #ffb400;
}

.main-navbar .main-nav .nav-item .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: #ffb400;
}

.main-navbar .main-nav .nav-item .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.main-navbar .main-nav .nav-item .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.main-navbar .main-nav .nav-item .dropdown-menu a:hover {
  background-color: rgba(7, 50, 119, 0.1);
  color: #073277;
  padding-left: 25px;
}

.main-navbar .main-nav .nav-item:hover .dropdown-menu {
  display: block;
}

.right-box {
  display: flex;
  align-items: center;
  margin-right: 50px;
}

.right-box .header-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  background-color: #ffb400;
  margin-left: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 15px;
}

.right-box .header-toggle:hover {
  background-color: #e6a300;
}

.right-box .header-toggle span {
  display: block;
  width: 40px;
  height: 4px;
  background-color: #fff;
  margin: 2px 0;
  transition: all 0.3s;
}

.right-box .header-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #fff;
}

.right-box .header-toggle.active span:nth-child(2) {
  opacity: 0;
}

.right-box .header-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #fff;
}

.menu-list {
  display: none;
}

/* 下拉菜单样式 */
.header-dropdown-menu {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background-color: rgba(40, 90, 160, 0.9);
  /* 比#204b91稍微浅一点的颜色 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 998;
  height: 801px;
  display: none;
  /* 添加 display: none */
}

.header-dropdown-menu.active {
  max-height: 801px;
  transform: scaleY(1);
  opacity: 1;
  display: block;
  /* 激活时显示 */
}

.dropdown-nav ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.dropdown-nav ul li {
  border-bottom: none;
  flex: 0 0 auto;
}

.dropdown-nav ul li:last-child {
  border-right: none;
}

.dropdown-nav ul li a {
  display: block;
  padding: 15px 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-nav ul li a:hover {
  background-color: rgba(255, 180, 0, 0.1);
  color: #ffb400;
  transform: translateY(-2px);
}

.dropdown-nav ul li .main-page a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  text-indent: 20px;
}

.dropdown-nav ul li .main-page a::before {
  content: '';
  display: block;
  width: 4px;
  height: 23px;
  background-color: #ffb400;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 15px;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #204b91;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #204b91;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #204b91;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #ffb400;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 媒体查询 */
@media (max-width: 1024px) {
  .headfixed {
    padding: 0px 30px;
  }
  .headerbgm {
    height: 100px;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle {
    top: 25px;
    right: 20px;
  }
  .menu-toggle.active {
    top: 0;
    right: 0;
  }
  .menu-list {
    position: fixed !important;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 56px 0 0;
    display: block;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
  }
  .menu-list .flexsb {
    display: block;
  }
  .menu-list h3 {
    height: auto;
  }
  .menu-list.active {
    width: 30%;
    right: 0;
  }
  .menu-list ul {
    flex-direction: column;
    width: 100%;
  }
  .menu-list ul li {
    margin: 0;
  }
  .menu-list ul li h3 a {
    padding: 15px 0;
    text-align: left;
    color: #333;
  }
  .menu-list ul li h3 a::after {
    bottom: 15px;
  }
  .menu-list ul li h3 a:hover {
    background: #f5f5f5;
    color: #f4b95d;
  }
  .right-box {
    display: none;
  }
  /* 返回顶部按钮在移动端的样式 */
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .main-navbar {
    display: none;
  }
  .logo img {
    width: 147.5px;
    height: 57.5px;
  }
  .headfixed {
    padding: 0px 30px;
  }
  .headerbgm {
    height: 80px;
  }
  .headerCont {
    height: 80px;
  }
  .headerbgm {
    height: 80px;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle {
    top: 5px;
    right: 0;
  }
  .menu-list {
    position: fixed !important;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 56px 0 0;
    display: block;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
  }
  .menu-list .flexsb {
    display: block;
  }
  .menu-list h3 {
    height: auto;
  }
  .menu-list.active {
    width: 50%;
    right: 0;
  }
  .menu-list ul {
    flex-direction: column;
    width: 100%;
  }
  .menu-list ul li {
    margin: 0;
  }
  .menu-list ul li h3 a {
    padding: 15px 0;
    text-align: left;
    color: #333;
  }
  .menu-list ul li h3 a::after {
    bottom: 15px;
  }
  .menu-list ul li h3 a:hover {
    background: #f5f5f5;
    color: #f4b95d;
  }
  .right-box {
    display: none;
  }
  /* 返回顶部按钮在小屏幕移动端的样式 */
  .back-to-top {
    width: 35px;
    height: 35px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}
