/*---------------------------------------------
  语言切换器样式（i18n）
---------------------------------------------*/
#lang-switcher {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 99999;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: #015d4f;
  color: #ffffff;
  border: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.lang-switcher-btn:hover {
  background: #ea982b;
}

.lang-switcher-short {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.lang-switcher-btn .fa-angle-down {
  font-size: 12px;
  transition: transform 0.2s ease;
}

#lang-switcher.open .lang-switcher-btn .fa-angle-down {
  transform: rotate(180deg);
}

.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid #ea982b;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#lang-switcher.open .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.lang-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher-item:hover,
.lang-switcher-item:focus {
  background: #ea982b;
  color: #ffffff;
}

.lang-switcher-item.active {
  color: #015d4f;
}

.lang-switcher-item.active .fa-check {
  color: #ea982b;
  font-size: 12px;
}

.lang-item-label {
  flex: 1;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .lang-switcher-btn {
    padding: 10px 8px;
    font-size: 12px;
  }
  .lang-switcher-short {
    font-size: 12px;
  }
  .lang-switcher-menu {
    min-width: 130px;
  }
}
