.contact-btn {
  position: fixed;
  right: 10px;
  bottom: 120px;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  width: 60px;
  height: 60px;
  background: #005bb7;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  z-index: 999;
}

.contact-btn span {
  display: block;
  letter-spacing: 2px;
}

.contact-btn span:first-child {
  margin-bottom: 5px;
}

/* 弹窗基础样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 5px;
  box-sizing: border-box;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 20px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0;
  margin-right: 10px;
  min-width: 70px;
}

.form-group input, .form-group textarea {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background: #005bb7;
  color: white;
  padding: 10px 20px;
  border: none;
  margin: 0 auto;
  border-radius: 4px;
  cursor: pointer;
  width: 200px;
}

/* 加载遮罩层样式 */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #005bb7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 成功提示弹窗样式 */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.success-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
}

.success-icon {
  color: #67C23A;
  font-size: 48px;
  margin-bottom: 20px;
}

.success-message {
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-button {
  background: #005bb7;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.success-button:hover {
  background: #004a94;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px auto;
    padding: 15px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-group label {
    min-width: 60px;
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* 防止 iOS 自动放大 */
    padding: 8px;
  }

  .success-content {
    padding: 20px;
    width: 95%;
  }

  .success-icon {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .success-message {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .success-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }

  .close {
    padding: 10px; /* 增大点击区域 */
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .contact-btn {
    width: 50px;
    height: 50px;
    right: 5px;
    bottom: 90px;
    font-size: 11px;
  }

  .contact-btn span {
    letter-spacing: 1px;
  }
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
  .modal-content {
    padding: 10px;
  }

  .form-group label {
    min-width: 50px;
    font-size: 13px;
  }

  .success-content {
    padding: 15px;
  }

  .success-message {
    font-size: 13px;
  }

  .contact-btn {
    width: 45px;
    height: 45px;
    right: 8px;
    bottom: 70px;
    font-size: 10px;
  }
}
