/* 语言切换器样式 - 低调半透明设计 */
.language-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 6px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  opacity: 0.7;
}

/* .language-switcher:hover {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
} */

.language-switcher .el-select {
  min-width: 120px;
}

.language-switcher .el-select .el-input {
  height: 36px;
}

.language-switcher .el-select__wrapper {
  background: transparent !important  ;
}
.language-switcher .el-select__placeholder{
  color: #fff !important;
}
/*
.language-switcher .el-select .el-input__wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-switcher .el-select .el-input__wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.language-switcher .el-select .el-input__wrapper.is-focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-switcher .el-select .el-input__inner {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  font-size: 13px;
}

.language-switcher .el-select .el-input__suffix {
  color: rgba(255, 255, 255, 0.7);
} */

/* 移动端适配 */
@media (max-width: 768px) {
  .language-switcher {
    top: 15px;
    left: 15px;
    padding: 6px;
  }

  .language-switcher .el-select {
    min-width: 110px;
  }

  .language-switcher .el-select .el-input {
    height: 38px;
  }

  .language-switcher .el-select .el-input__inner {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    top: 10px;
    left: 10px;
    padding: 4px;
  }

  .language-switcher .el-select {
    min-width: 100px;
  }

  .language-switcher .el-select .el-input {
    height: 36px;
  }

  .language-switcher .el-select .el-input__inner {
    font-size: 12px;
  }
}

/* 下拉菜单样式 - 低调半透明设计 */
/* .el-select-dropdown {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  margin-top: 2px !important;
}

.el-select-dropdown .el-select-dropdown__item {
  padding: 8px 12px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.el-select-dropdown .el-select-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.el-select-dropdown .el-select-dropdown__item.selected {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500 !important;
  position: relative !important;
}

.el-select-dropdown .el-select-dropdown__item.selected::after {
  content: '✓' !important;
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: normal !important;
  font-size: 12px !important;
} */

/* 音乐控制按钮位置调整 - 避免与语言切换器重叠 */
#music_container  {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999 !important;
}

@media (max-width: 768px) {
  #music_container {
    top: 15px !important;
    right: 15px !important;
  }

  #query_container{
    top: 15px !important;
  }
}

@media (max-width: 480px) {
  #music_container {
    top: 10px !important;
    right: 10px !important;
  }

  #query_container{
    top: 10px !important;
  }
}

/* ========== RTL（希伯来语等）布局镜像 ========== */
html[dir='rtl'] .language-switcher {
  left: auto;
  right: 20px;
}

html[dir='rtl'] #music_container {
  right: auto !important;
  left: 20px !important;
}

html[dir='rtl'] #query_container {
  right: auto !important;
  left: 90px !important;
}

/* Element Plus 弹窗标题/表单项在 dir=rtl 下跟随文档方向 */
html[dir='rtl'] .el-dialog__header,
html[dir='rtl'] .el-form-item__label {
  text-align: start;
}

html[dir='rtl'] .el-input__inner,
html[dir='rtl'] .el-input__wrapper input {
  text-align: start;
}

@media (max-width: 768px) {
  html[dir='rtl'] .language-switcher {
    left: auto;
    right: 15px;
  }

  html[dir='rtl'] #music_container {
    left: 15px !important;
    right: auto !important;
  }

  html[dir='rtl'] #query_container {
    left: 85px !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  html[dir='rtl'] .language-switcher {
    left: auto;
    right: 10px;
  }

  html[dir='rtl'] #music_container {
    left: 10px !important;
    right: auto !important;
  }

  html[dir='rtl'] #query_container {
    left: 80px !important;
    right: auto !important;
  }
}
