/**
 * DS Music 公共样式
 * 包含语言切换按钮和其他通用样式
 */

/* 语言切换按钮容器 */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* 语言切换按钮 */
.language-switcher button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 语言按钮悬停效果 */
.language-switcher button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* 激活状态的语言按钮 */
.language-switcher button.active {
  background: #007bff;
  color: white;
  font-weight: 600;
}

.language-switcher button.active:hover {
  background: #0056b3;
}

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

  .language-switcher button {
    padding: 5px 12px;
    font-size: 13px;
  }
}

/* 确保在小屏幕上不遮挡内容 */
@media (max-width: 576px) {
  body {
    padding-top: 50px;
  }

  .language-switcher {
    top: 10px;
    right: 10px;
  }
}

/* 打印时隐藏语言切换按钮 */
@media print {
  .language-switcher {
    display: none;
  }
}
