/* Language Icons Styles */
.language-switcher-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
 

  width: 100%;
  height: 100%;
}

.language-switcher-icons ul {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;

}

.language-switcher-icons li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.language-link:hover {
  opacity: 0.8;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.language-switcher-icons .language-flag,
.language-switcher-icons img.language-flag,
.language-switcher-icons .language-icon,
.language-switcher-icons img.img-responsive,
.container .language-switcher-icons .language-flag,
.row .language-switcher-icons .language-flag,
.col .language-switcher-icons .language-flag,
.container .language-switcher-icons img.language-flag,
.row .language-switcher-icons img.language-flag,
.col .language-switcher-icons img.language-flag,
.container .language-switcher-icons img.img-responsive,
.row .language-switcher-icons img.img-responsive,
.col .language-switcher-icons img.img-responsive {
  width: 16px !important;
  height: 12px !important;
  display: block !important;
  border: none !important;
  border-radius: 3px !important;
  max-width: 16px !important;
  min-width: 16px !important;
  min-height: 12px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

/* 当前语言样式 */
.language-flag.current-language {
  opacity: 1;
  border: 2px solid #007cba;
}

/* 可切换语言样式 */
.language-link .language-flag {
  opacity: 0.8;
}

.language-link:hover .language-flag {
  opacity: 1;
}

/* 当前语言的悬停效果 */
.language-link:hover .language-flag.current-language {
  opacity: 1;
  transform: scale(1.05);
}

.language-switcher-language-url {
  position: relative;
  float: right;
  width: 100px;
  height: 100%;
}

/* 搜索框样式 */
.search-block-form {
  height: 58px;
  z-index: 1;
  position: relative;
  order: 1;  /* 搜索框排在第一位（左边） */

}

/* 语言切换器样式 */
.language-switcher-icons,
#block-bootstrap-customlanguageicons,
section#block-bootstrap-customlanguageicons {
  order: 4 !important;  /* 语言切换器排在第四位（最右边） */
  flex-shrink: 0 !important; /* 防止被压缩 */
  width: 5%;
  display: flex;
  gap: 0;
}

/* 语言切换器区块高度 */
#block-bootstrap-languageswitcher,
.language-switcher-icons,
section#block-bootstrap-languageswitcher {
  height: 6rem !important;
}

/* 恢复外层容器为col-xs-12的正确表现 */
#block-bootstrap-headerrighttop.col-xs-12 {
  width: 100% !important; /* col-xs-12应该是100%宽度 */
  max-width: 100% !important;
  float: none !important; /* col-xs-12通常不需要float */
}



/* Header Left 区块样式 - 使用多个选择器确保生效 */
#navbar .navbar-header .group-header-left,
.navbar-header .group-header-left,
.group-header-left,
#block-bootstrap-headerleft,
.block-blockgroup.block-block-groupheader-left {
  border-right: 1px solid #efefef !important;
}

/* Header Right Top 区块样式 */
#block-bootstrap-headerrighttop,
.block-block-groupheader-right-top,
section#block-bootstrap-headerrighttop {
  height: 6rem !important;
  display: flex;
  padding-left: 0 !important;  /* 移除左侧padding */
  padding-right: 0 !important; /* 移除右侧padding */
  border-bottom: 1px solid #efefef !important; /* 底部边框现在可以100%覆盖 */
}


/* 响应式设计 */
@media (max-width: 768px) {
  .language-switcher-icons .language-flag,
  .language-switcher-icons img.language-flag,
  .language-switcher-icons .language-icon,
  .language-switcher-icons img.img-responsive,
  .container .language-switcher-icons .language-flag,
  .row .language-switcher-icons .language-flag,
  .col .language-switcher-icons .language-flag,
  .container .language-switcher-icons img.language-flag,
  .row .language-switcher-icons img.language-flag,
  .col .language-switcher-icons img.language-flag,
  .container .language-switcher-icons img.img-responsive,
  .row .language-switcher-icons img.img-responsive,
  .col .language-switcher-icons img.img-responsive {
    width: 14px !important;
    height: 10px !important;
    max-width: 14px !important;
    min-width: 14px !important;
    min-height: 10px !important;
  }
  
  
}