/**
 *
 * 这是电脑端   顶部语言切换
 */

.language-switcher .btn-secondary{    background-color: #212529;}

.language-switcher {
  position: relative;
}
.language-switcher .dropdown-menu.visible li{float: left;}
/* 菜单容器（宽度更窄） */
.language-switcher .dropdown-menu {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border: 1px solid #ccc;
  padding-top: 8px;             /* 留出三角空间 */
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;

  position: absolute;
  top: calc(100% + -1px);
  left: 50%;
  transform: translateX(-50%);

  min-width: 120px;  /* ↓ 缩窄宽度 */
  max-width: 140px;
  width: auto;
  z-index: 1000;
}

/* 小三角 */
.language-switcher .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent #fff transparent;
}

/* 显示状态 */
.language-switcher .dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

/* 内容居中 */
.language-switcher .dropdown-menu li a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.language-switcher .dropdown-menu li img {
  margin-right: 6px;
}

/***************电脑端语言切换结束************/


/**
 * 手机导航开始
 */


/********************手机导航结束*************/

/**
 *
 * 这是手机端 顶部语言切换
 */



/**************这是手机端 顶部语言切换  end**************/

/* ========== 语言切换 ========== */
/* ======= 网页右上角语言切换（独立定位，不受父容器影响） ======= */

/* ======= 网页右上角语言切换（独立定位，不受父容器影响） ======= */
.lang-switch {
  position: fixed;
  top: 0px;
  right: 10px;
  z-index: 9999;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lang-switch-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
  visibility: visible !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.lang-switch-btn:hover {
  background: #f5f5f5;
}

.lang-globe { color: #666; flex-shrink: 0; }

.lang-arrow {
  color: #666;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.lang-switch:hover .lang-arrow { transform: rotate(180deg); }

/* 手机端：只显示地球图标 */
@media (max-width: 768px) {
  .lang-label,
  .lang-arrow { display: none !important; }
  .lang-switch-btn { padding: 8px; }
}

/* 下拉框 */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  list-style: none !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 10000;
}
.lang-switch:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* li: 强制块级一行一个 */
.lang-dropdown li,
.lang-item {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: both !important;
}

.lang-item a {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.lang-item a:hover { background: #f5f5f5; }
.lang-item img { width: 16px; height: auto; border-radius: 2px; }
.lang-active a { color: #c00; }



