/* 请您留言 - 浮动按钮与弹窗表单 */

.feedback-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #c00 0%, #a00 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feedback-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.feedback-modal-body-overflow {
  overflow: hidden;
}

.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}
.feedback-modal.feedback-modal-open {
  visibility: visible;
  opacity: 1;
}

.feedback-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.feedback-modal-box {
  position: relative;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  border-radius: 10px 10px 0 0;
}

.feedback-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.feedback-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.feedback-modal-close:hover {
  color: #c00;
  background: #f0f0f0;
}

.feedback-form {
  padding: 20px;
}

.feedback-form-item {
  margin-bottom: 16px;
}

.feedback-form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.feedback-required {
  color: #c00;
}

.feedback-form-item input,
.feedback-form-item textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.feedback-form-item input:focus,
.feedback-form-item textarea:focus {
  outline: none;
  border-color: #c00;
}
.feedback-form-item textarea {
  resize: vertical;
  min-height: 80px;
}

.feedback-form-error {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #c00;
  min-height: 18px;
}

.feedback-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.feedback-btn {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.feedback-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedback-btn-cancel {
  color: #666;
  background: #f0f0f0;
  border: none;
}
.feedback-btn-cancel:hover:not(:disabled) {
  background: #e5e5e5;
}

.feedback-btn-submit {
  color: #fff;
  background: linear-gradient(135deg, #c00 0%, #a00 100%);
  border: none;
}
.feedback-btn-submit:hover:not(:disabled) {
  opacity: 0.9;
}

/* 提示条 */
.feedback-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-60px);
  z-index: 10001;
  padding: 12px 24px;
  font-size: 14px;
  color: #fff;
  background: #333;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.feedback-toast.feedback-toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.feedback-toast.feedback-toast-error {
  background: #a00;
}
