/* 语言切换器样式 */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.lang-current {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  justify-content: space-between;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-current .arrow {
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.lang-switcher.open .lang-current .arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 4px;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown .lang-option {
  display: block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.lang-dropdown .lang-option:last-child {
  border-bottom: none;
}

.lang-dropdown .lang-option:hover {
  background-color: #f8f9fa;
}

.lang-dropdown .lang-option.active {
  background-color: #007bff;
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 1024px) {
  .lang-switcher {
    margin-right: 15px;
  }
  
  .lang-current {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 80px;
  }
  
  .lang-dropdown .lang-option {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-right: 10px;
  }
  
  .lang-current {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 70px;
  }
  
  .lang-dropdown .lang-option {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* 移动端导航中的语言切换器 */
.mh_nav .lang-switcher {
  margin: 15px 20px 20px 20px;
  width: calc(100% - 40px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.mh_nav .lang-current {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #333;
  width: 100%;
  font-weight: 500;
  border-radius: 6px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.mh_nav .lang-current:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.mh_nav .lang-current .arrow {
  transition: transform 0.2s ease;
  font-size: 12px;
}

.mh_nav .lang-switcher.open .lang-current .arrow {
  transform: rotate(180deg);
}

.mh_nav .lang-dropdown {
  position: relative;
  display: none;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 6px;
}

.mh_nav .lang-switcher.open .lang-dropdown {
  display: block;
}

.mh_nav .lang-dropdown .lang-option {
  background: #fff;
  margin-bottom: 0;
  border-radius: 0;
  border-bottom: 1px solid #f1f3f4;
  padding: 12px 16px;
  color: #333;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.mh_nav .lang-dropdown .lang-option:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.mh_nav .lang-dropdown .lang-option:last-child {
  border-bottom: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.mh_nav .lang-dropdown .lang-option:hover {
  background: #f8f9fa;
}

.mh_nav .lang-dropdown .lang-option.active {
  background: #007bff;
  color: #fff;
  font-weight: 500;
}

.mh_nav .lang-dropdown .lang-option.active:hover {
  background: #0056b3;
}

/* 移动端select语言切换器 */
.mobile-lang-select-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.mobile-lang-select {
  height: 32px;
  padding: 0 12px;
  border: none;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  margin-right: 12px;
}



.mobile-lang-select option {
  padding: 8px;
  background: #fff;
  color: #333;
}