.floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  font-family: inherit;
  outline: none;
}

.floating-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.floating-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
}

.floating-button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.floating-button svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.floating-button:hover svg {
  transform: scale(1.1);
}

/* 确保在油猴脚本环境中不受宿主页面样式影响 */
.floating-button * {
  box-sizing: border-box;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .floating-button {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  
  .floating-button svg {
    width: 20px;
    height: 20px;
  }
}
