* {
  box-sizing: border-box;
}

/* 主导航容器 */
.header_nav {
  width: 100%;
  background: #245399;
  box-shadow: 0px 2px 8px 0px rgba(8, 44, 102, 0.3);
  position: relative;
  z-index: 1000;
}

/* 导航底部容器 */
.header-bottomsoid {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* 头部容器 */
.header-container {
  width: 100%;
  position: relative;
}

/* 导航栏容器 */
.navbar-container {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

/* 园区教育局标题样式 */
.home-active-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 24px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  background-image: url(../images/header-main-bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
  width: 20%;
  height: 100%;
}

/* .home-active-mobile:hover {
  background: linear-gradient(135deg, #5BA0F2 0%, #4A8ACD 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  filter: brightness(1.1);
} */

/* 主导航菜单样式 */
.x-header-navbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.x-header-navbar li {
  margin: 0;
  position: relative;
  width: 25%;
  text-align: center;
}

.x-header-navbar li a {
  display: block;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* 菜单项之间的分割线 */
.x-header-navbar li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%);
}

.x-header-navbar .aon {
  color: #e4b56d;
}

/* 菜单项悬停效果 */
/* .x-header-navbar li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
} */

/* 菜单项底部边框效果 */
/* .x-header-navbar li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #57A8FF;
  transition: all 0.3s ease;
  transform: translateX(-50%);
} */

.x-header-navbar li a:hover::after {
  width: 80%;
}

/* 活跃状态样式 */
.x-header-navbar li.active a {
  background: rgba(255, 255, 255, 0.1);
  color: #e4b56d;
}

.x-header-navbar li.active a::after {
  width: 80%;
}

/* 响应式设计 */
/* @media screen and (max-width: 1024px) {
  .navbar-container {
    padding: 0 15px;
    height: auto;
    min-height: 60px;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .home-active-mobile {
    font-size: 18px;
    padding: 10px 20px;
  }

  .x-header-navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .x-header-navbar li a {
    padding: 12px 16px;
    font-size: 14px;
  }
} */

@media screen and (max-width: 768px) {
  .navbar-container {
    display: flex;
    flex-direction: row;
  }
  .home-active-mobile {
    display: none;
  }

  .home-float-right {
    display: none;
  }

  .fit-container {
    align-items: flex-end !important;
    flex-wrap: nowrap !important;
  }
  .navbar-container {
    padding: 0 10px;
  }

  .x-header-navbar {
    width: 100%;
    justify-content: space-around;
  }

  .x-header-navbar li a {
    padding: 10px 12px;
    font-size: 15px;
  }

  .home-active-mobile {
    font-size: 16px;
    padding: 8px 16px;
  }
}
