/* 悬浮球样式 */
.feedback-float-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 9999;
  animation: pulse-shadow 2s infinite;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
}

.feedback-float-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.feedback-float-button:active {
  cursor: grabbing;
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.6);
  }
}

/* 反馈模态框 */
.feedback-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
  align-items: center;
  justify-content: center;
}

.feedback-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.feedback-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feedback-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-close {
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s;
  background: none;
  border: none;
  color: white;
}

.feedback-close:hover {
  opacity: 1;
}

.feedback-modal-body {
  padding: 30px;
}

.feedback-form-group {
  margin-bottom: 20px;
}

.feedback-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.feedback-form-group input,
.feedback-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.feedback-form-group input:disabled,
.feedback-form-group textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.feedback-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-form-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}

.feedback-btn-cancel,
.feedback-btn-submit {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.feedback-btn-cancel {
  background: #6c757d;
  color: white;
}

.feedback-btn-cancel:hover {
  background: #5a6268;
}

.feedback-btn-submit {
  background: #28a745;
  color: white;
}

.feedback-btn-submit:hover {
  background: #218838;
}

.feedback-btn-submit:disabled {
  background: #c0c0c0;
  cursor: not-allowed;
}

.feedback-success-message {
  text-align: center;
  padding: 40px;
}

.feedback-success-message i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 20px;
}

.feedback-success-message h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feedback-success-message p {
  color: #666;
  font-size: 0.95rem;
}

.feedback-error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

