/* 翻译切换按钮样式 */
#lang-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#language-selector {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #4a5568;
  background: #f7fafc;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #2d3748;
  outline: none;
  transition: all 0.2s ease;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#language-selector:hover {
  background: #edf2f7;
  border-color: #2d3748;
}

#language-selector:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

#language-selector option {
  padding: 8px;
}

/* 翻译进度条样式 */
#translate-overlay {
    position: fixed;
    bottom: 140px;
    right: 10px;
    z-index: 9999;
    display: none;
}

.translate-box {
    width: 260px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    color: #fff;
    font-family: Arial;
}

.translate-title {
    font-size: 14px;
    margin-bottom: 10px;
}

.translate-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.translate-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    transition: width 0.3s ease;
}

.translate-percent {
    margin-top: 8px;
    text-align: right;
    font-size: 13px;
}