.cj-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4c8ddf;
}
.logo {
  padding: 30px 0 25px;
}
.logo a {
  display: block;
  width: 100%;
  max-height: 71px;
}
.topRight {
  display: flex;
  flex-direction: column;
}
.topRight-top {
  display: flex;
  gap: 16px;
  color: #fff;
  justify-content: end;
}
.topRight-top li a {
  color: #fff;
}
.topRight-bottom {
}
.topRight-bottom img {
  margin-top: 19px;
}
.nav-box {
  display: flex;
  justify-content: center;
  transition: all 0.35s ease-in-out;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.9)
  );
  position: absolute;
  z-index: 9;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.cj-nav {
  height: 75px;
  width: 1280px;
}
.cj-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.cj-nav ul li {
  height: 72px;
  line-height: 72px;
  display: inline-block;
  padding: 0px 15px;
  position: relative;
}

@media screen and (max-width: 1280px) {
  .cj-nav ul li {
    padding: 0px 15px;
  }
}

.cj-nav ul li a,
.cj-nav ul li span {
  color: #fff;
  font-size: 16px;
}

.menu-item {
  position: relative;
}

.menu-title {
  cursor: pointer;
}

.menu-item .on {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background-color: #035cd9;
  box-sizing: border-box;
  /* padding: 10px 0; */
  z-index: 10;
}

/* 当鼠标悬停在菜单项或其子菜单上时显示 */
.menu-item:hover .on {
  display: block;
}

/* 添加一个透明的区域来保持菜单显示 */
.menu-item .on::before {
  content: '';
  position: absolute;
  top: -20px; /* 向上延伸20px */
  left: 0;
  right: 0;
  height: 20px; /* 与top的负值相同 */
  background: transparent;
}

.menu-item:hover {
  border-bottom: 2px solid #ccc;
}

/* 添加二级菜单项的hover效果 */
.menu-item .on a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 2px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

/* 调整二级菜单的字体大小 */
.menu-item .on a span {
  font-size: 16px !important; /* 将字体大小从18px减小到16px */
}

.menu-item .on a:hover {
  background-color: #fff;
  color: #035cd9 !important;
}

.menu-item .on a:hover span {
  color: #035cd9 !important;
}
.header-img {
  height: 365px;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 吸顶导航样式 */
.sticky-nav-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #4c8ddf;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
}

.sticky-nav-box.show {
  transform: translateY(0);
}

.sticky-nav-box .cj-nav {
  height: 60px; /* 吸顶导航稍微窄一些 */
  width: 1280px; /* 确保与原导航宽度一致 */
}

.sticky-nav-box .cj-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.sticky-nav-box .cj-nav ul li {
  height: 60px;
  line-height: 60px;
}

/* 确保吸顶导航的子菜单正常显示 */
.sticky-nav-box .menu-item .on {
  top: 60px;
}

/* 搜索弹出框样式 */
.header-search-dialog {
  position: fixed;
  left: 0;
  top: -30vh;
  width: 100%;
  height: 100vh;
  z-index: 1000000;
  opacity: 0;
  visibility: hidden;
  transition: 0.6s;
}

.header-search-dialog.active {
  opacity: 1;
  visibility: visible;
  top: 0;
}

.header-search-top {
  width: 100%;
  height: 30vh;
  background-color: #2777df;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-container {
  width: 80%;
  max-width: 700px;
  display: flex;
  align-items: center;
  background-color: #3a85e9;
  border-radius: 4px;
  padding: 10px 20px;
}

.header-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  outline: none;
  padding: 0 10px;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

.header-search-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 30px;
  line-height: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search-mask {
  width: 100%;
  height: 70vh;
  background: rgba(0, 0, 0, 0.7);
}

/* 移动端导航相关样式 */
.m_header_box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  background-color: #4c8ddf;
}

#m_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 15px;
}

#logo {
  height: 100%;
}

.box_table {
  display: table;
  height: 100%;
}

.box_table_cell {
  display: table-cell;
  vertical-align: middle;
}

#logo img {
  height: 91px;
}

#nav_btn_box {
  width: 48px;
  height: 48px;
  margin-right: 32px;
  position: relative;
}

#nav_btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point {
  position: relative;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.navbtn {
  position: absolute;
  display: block;
  width: 48px;
  height: 4px;
  background-color: #fff;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.navbtn:before,
.navbtn:after {
  content: '';
  position: absolute;
  width: 48px;
  height: 4px;
  background-color: #fff;
  transition: all 0.3s ease;
  left: 0;
}

.navbtn:before {
  top: -16px;
}

.navbtn:after {
  top: 16px;
}

.point.active .navbtn {
  background-color: transparent;
}

.point.active .navbtn:before {
  transform: rotate(45deg);
  top: 0;
}

.point.active .navbtn:after {
  transform: rotate(-45deg);
  top: 0;
}

/* 移动导航菜单 */
#m_nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  background-color: #1167cc;
  z-index: 10000;
  overflow-y: auto;
  transition: transform 0.3s ease;
  transform: translateX(100%);
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1200px) {
  #m_nav li a {
    font-size: 24px;
  }
}

#m_nav.show {
  transform: translateX(0);
}

/* 关闭按钮容器 */
.mobile-nav-header {
  height: 91px;
  width: 100%;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 关闭按钮 */
.mobile-nav-close {
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}

/* 清除可能的伪元素干扰 */
.mobile-nav-close::after,
.mobile-nav-close::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #fff;
  border: none;
  transform-origin: center;
}

.mobile-nav-close::before {
  transform: rotate(45deg);
}

.mobile-nav-close::after {
  transform: rotate(-45deg);
}

/* 移动导航菜单主体内容 */
.mobile-nav-content {
  flex-grow: 1;
  overflow-y: auto;
}

.m_nav_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 背景遮罩 */
.mobile-nav-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.mobile-nav-mask.show {
  display: block;
}

/* 禁止滚动的样式 */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.m_nav_list .title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.m_nav_list .title a.a {
  display: block;
  padding: 40px;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.m_nav_list .title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
}

@media screen and (max-width: 1200px) {
  .m_nav_list .title h3 {
    margin: 0;
    font-size: 28px;
    font-weight: normal;
  }
}

/* 为有子菜单的项添加箭头样式 - 使用伪元素替代i标签 */
.m_nav_list .title a.a:after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
  display: none; /* 默认隐藏 */
}

/* 只有有子菜单的项才显示箭头 */
.m_nav_list .title:has(.list) a.a:after {
  display: block;
}

/* 展开状态的箭头方向 */
.m_nav_list .title.open a.a:after {
  transform: translateY(-50%) rotate(-135deg);
}

.m_nav_list .list {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 5px 0;
}

.m_nav_list .list a {
  display: block;
  padding: 25px 50px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

/* 媒体查询 */
@media screen and (max-width: 1200px) {
  .cj-logo,
  .nav-box,
  .sticky-nav-box {
    display: none !important;
  }

  .m_header_box {
    display: block;
  }

  .header-img {
    margin-top: 120px;
  }
}
