.qq-button {
  position: fixed;
  right: 0;
  top: 65%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 10px 15px; /* 减小内边距 */
  border-radius: 8px 0 0 8px; /* 减小圆角 */
  cursor: pointer;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.15); /* 减小阴影 */
  z-index: 999;
  transition: all 0.3s ease;
  font-size: 14px; /* 减小字号 */
  white-space: nowrap;
}

.qq-button:hover {
  padding-right: 25px; /* 调整悬停效果 */
}

.qq-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qq-modal.show {
  opacity: 1;
}

.qq-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.qq-modal.show .qq-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.qq-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.qq-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qq-input-group {
  margin-bottom: 20px;
}

.qq-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.qq-input:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  outline: none;
}

.captcha-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.captcha-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.captcha-input:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  outline: none;
}

.captcha-canvas {
  width: 120px;
  height: 45px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.captcha-canvas:hover {
  transform: scale(1.02);
}

.qq-search-btn {
  width: 100%;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qq-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.qq-search-btn:hover::before {
  left: 100%;
}

.qq-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.qq-result {
  text-align: center;
  font-size: 16px;
  color: #333;
  margin: 20px 0 0;
  min-height: 24px;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 12px;
}

.qq-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.qq-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.qq-close::before,
.qq-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  background-color: #666;
  transition: all 0.3s ease;
}

.qq-close::before {
  transform: rotate(45deg);
}

.qq-close::after {
  transform: rotate(-45deg);
}

@keyframes qq-input-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: qq-input-shake 0.5s ease-in-out;
}

@media (max-width: 480px) {
  .qq-modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .qq-button {
    right: 0;
    padding: 8px 12px; /* 统一移动端尺寸 */
    font-size: 13px; /* 统一移动端字号 */
  }
  
  .qq-button:hover {
    padding-right: 20px; /* 调整移动端悬停效果 */
  }

  .captcha-container {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 15px;
  }

  .captcha-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    min-width: 0;
  }

  .captcha-canvas {
    width: 100px;
    height: 40px;
  }

  .qq-input-group {
    margin-bottom: 15px;
  }

  .qq-result {
    margin: 15px 0 0;
    font-size: 14px;
  }
}

.qq-hint {
  position: fixed;
  right: 125px; /* 调整位置 */
  top: 65%;
  transform: translateY(-50%);
  background: white;
  padding: 8px 15px; /* 减小内边距 */
  border-radius: 6px; /* 减小圆角 */
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* 减小阴影 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 13px; /* 减小字号 */
  color: #333;
  white-space: nowrap;
}

.qq-hint:before {
  content: '';
  position: absolute;
  right: -8px; /* 调整箭头位置 */
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid white; /* 减小箭头尺寸 */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.qq-hint.show {
  opacity: 1;
  visibility: visible;
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-60%);
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .qq-hint {
    right: 75px; /* 调整移动端位置 */
    padding: 6px 10px; /* 调整移动端内边距 */
    font-size: 11px; /* 调整移动端字号 */
  }
} 