/* 导航栏容器样式 */
.navbar {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky; /* 滚动时固定顶部 */
  top: 0;
  z-index: 1001;
}
 .navbar .navbar-container{
     height: 70px;
 }
.navbar-container {
  width: 100%;
  min-width: 80%;
  /*margin: 0 auto;*/
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1); 
  padding: 0 20px;
}

/* Logo样式（无图片，用文字替代） */
.logo img {
  width: 140px;
}

/* 一级菜单样式 */
.nav-menu {
  /*flex: 1;*/
  display: flex;
  align-items: center;
  margin-left: 15px;
    min-height: 70px;
}

.nav-links {
  /*flex: 1;*/
  display: flex;
  justify-content: center;
  align-items: center;
  /*margin-right: 30px;*/
}

.nav-links li {
  position: relative; /* 为二级菜单定位 */
  margin: 0 15px;
}

.nav-links li a {
  color: var(--gray-dark);
  font-size: var(--text-modelfive-size);
  padding: 10px 0;
  display: inline-block;
  min-width: 60px;
  transition: color 0.3s;
  font-weight: 600;
    display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.nav-links li a:hover,
.nav-links li a.active-nav {
  color: var(--primary) !important;
  border-bottom: solid 2px var(--primary);
}

/* 二级菜单样式（默认隐藏，优化过渡） */
.submenu {
  position: absolute;
  top: 100%;
  left: -50px;
  width: 180px;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  opacity: 0;
  box-shadow: 0 0 5px #999;
  transform: translateY(10px); /* 下拉动画初始位置 */
  transition: opacity 0.3s, transform 0.3s;
}

.submenu li {
  margin: 0;
  padding: 0 15px;

}

.submenu li a {
  color: var(--gray);
  font-size: var(--text-modelfive-size);
  padding: 8px 0;
  display: block; /* 占满li宽度，方便点击 */
  transition: padding-left 0.3s; /* 左移过渡 */
  text-align: center !important;
}

.submenu li a:hover {
  color: var(--primary);
  background-color: var(--gray-light);
  padding-left: 5px;
}

/* 鼠标悬浮一级菜单时，显示二级菜单 */
.nav-links .has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0); /* 动画结束位置 */
}

/* 搜索框样式（无图片，用文字图标） */
.search-box {
  position: relative;
  margin-right: 20px;
}

.search-input {
  width: 180px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-gray);
  border-radius: 18px;
  font-size: var(--text-modelfive-size);
  outline: none;
  transition: width 0.3s, border-color 0.3s;
}

.search-input:focus {
  width: 220px;
  border-color: var(--primary);
}

.search-button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: var(--text-modeltree-size); /* 文字图标大小 */
}

/* 语言切换样式（无图片，用纯色块替代国旗） */
.language-dropdown {
  position: relative;
  margin-left: 10px;
}
.nav-menu .language-dropdown{
    display: none;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--gray-dark);
  font-size: var(--text-modelfive-size);
  background-color: var(--primary);
  padding: 5px 10px;
  border-radius: 5px;
}

/* 纯色块替代国旗图标 */
.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  margin-right: 6px;
}
/* 中文国旗色（红色） */
.flag-icon.zh {
  background-color: #de2910;
}
/* 英文国旗色（蓝底白十字简化） */
.flag-icon.en {
  background-color: #00247d;
  position: relative;
}
.flag-icon.en::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: translateY(-50%);
}
.flag-icon.en::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #fff;
  transform: translateX(-50%);
}

/* 下拉箭头（用CSS绘制，无图片） */
.chevron {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--gray);
}
.dropdown-content_box{
    width: 100vw ;
    height: 100vh;
    background-color: rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
     display: none;
}
.cuohao_yuyan{
    height: 25px;
    width: 25px;
    font-size: 20px;
    border-radius: 13px;
    background-color: rgba(0,0,0,0.3);
    cursor:pointer ;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
      position: absolute;
    top: -3%;
    right:  -3%;
    z-index: 12;
    
}
.dropdown-content {
  box-shadow: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 950px;
  min-height: 450px;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 20px;
    display: grid;
     grid-template-columns: repeat(5, 1fr);
   
   @media (max-width: 786px) {
       grid-template-columns: repeat(2, 1fr);
}
   
}

.dropdown-content .dropdown-item {
  max-width: 100px;
  display: flex;
  align-items: center;
  color: var(--gray);
  padding: 8px 5px;
  transition: background-color 0.3s, color 0.3s;
}
.dropdown-content .dropdown-item span{
      font-size: var(--text-modeltwo-size);
}
.dropdown-item:hover {
  background-color: var(--gray-light);
  color: var(--primary);
}


/* 汉堡菜单样式（移动端，CSS绘制，无图片） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #666;
  border-radius: 1px;
  transition: all 0.3s;
}

/* 响应式适配（移动端） */
@media (max-width: 1280px) {
  .navbar-container {
    /*width: 95% !important;*/
    justify-content: center;
    padding: 10px 0;
  }
}

@media (max-width: 992px) {
    .navbar-container {
    width: 100% !important;
    justify-content: space-between;
    padding: 10px !important
    ;
    margin: 0 auto;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.05);
    transition: left 0.3s;
    margin: 0 !important;
  }
.nav-menu .language-dropdown{
    display: block !important;
}
  .nav-links {
    flex-direction: column;
    margin-right: 0;
    width: 100%;
  }

  .nav-links li {
    margin: 8px 0;
  }

  /* 移动端二级菜单调整（取消绝对定位） */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-top: 1px solid var(--border-gray);
    margin-top: 8px;
    padding-top: 8px;
  }

  .search-box {
    margin: 15px 0;
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .language-dropdown {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
  }

  /* 汉堡菜单展开时显示导航 */
  .nav-menu.active {
    left: 0;
  }
}
/*竖向语言切换*/
.pullDown{
    display: none;
    position: absolute;
    top: 110%;
    background-color: #FFF;
    z-index: 958621;
    box-shadow:  0 0 2px #000;
    border-radius: 3px;
}
.pullDown .pullDown_items{
    display: flex;
    flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 10px;
}
.pullDown .pullDown_items .pullDown_item{
    display: flex;
    flex-direction: column;
   align-items: static;
   justify-content: center;
   gap: 10px;
}



