/* ============================================================
   i18n 语言切换器 - 美化版
   ============================================================ */

/* 容器 */
.i18n-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  padding: 4px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
  0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.i18n-switcher:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15),
  0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 下拉框 */
.i18n-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 36px 8px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  min-width: 130px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.i18n-select:hover {
  background: linear-gradient(135deg, #eef1ff 0%, #f5f7ff 100%);
  color: #667eea;
}

.i18n-select:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  color: #667eea;
}

/* 下拉选项 */
.i18n-select option {
  padding: 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

/* 图标装饰 */
.i18n-switcher::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.i18n-switcher:hover::before {
  opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .i18n-switcher {
    top: 8px;
    right: 8px;
    padding: 3px;
    border-radius: 10px;
  }

  .i18n-select {
    padding: 6px 30px 6px 10px;
    font-size: 12px;
    min-width: 110px;
    background-position: right 8px center;
    background-size: 12px;
  }
}

/* 深色模式（可选） */
@media (prefers-color-scheme: dark) {
  .i18n-switcher {
    background: rgba(40, 40, 50, 0.95);
  }

  .i18n-select {
    background: linear-gradient(135deg, #2a2a35 0%, #353542 100%);
    color: #e0e0e0;
  }

  .i18n-select:hover,
  .i18n-select:focus {
    color: #a5b4fc;
  }
}
