/* 语言选择器样式 */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-selector-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-selector-toggle:hover {
  background: #444;
  transform: translateY(-1px);
}

.lang-selector-toggle:focus {
  outline: 2px solid #8fd68f;
  outline-offset: 2px;
}

/* 语言菜单样式 */
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  min-width: 120px;
  z-index: 1000;
  display: none;
}

/* 语言选项样式 */
.lang-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: #444;
}

.lang-option:focus {
  outline: none;
  background: #555;
}

/* 语言菜单背景遮罩 */
.lang-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
}

/* 确保语言选择器在导航栏中正确对齐 */
.ghibli-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}