/* 联系表单成功模态框样式 */

/* 模态框遮罩层 */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* 模态框主体 */
.contact-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  position: relative;
}

.contact-modal-overlay.show .contact-modal {
  transform: scale(1);
  opacity: 1;
}

/* 模态框头部 */
.contact-modal-header {
  text-align: center;
  padding: 40px 30px 20px;
  position: relative;
}

/* 成功图标 */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 1s ease-in-out;
}

.success-icon svg {
  width: 50px;
  height: 50px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.5s ease-in-out 0.3s forwards;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* 模态框内容 */
.contact-modal-content {
  background-color: #ffffff;
  padding: 30px;
  text-align: center;
}

.contact-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.contact-modal-message {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.contact-modal-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px;
}

/* 模态框按钮 */
.contact-modal-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-modal-button:active {
  transform: translateY(0);
}

/* 关闭按钮 */
.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.contact-modal-close::before,
.contact-modal-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #ffffff;
}

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

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

/* 装饰元素 */
.modal-decoration {
  position: absolute;
  opacity: 0.1;
}

.modal-decoration-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.modal-decoration-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  bottom: -75px;
  left: -75px;
  border-radius: 50%;
}

/* 响应式 */
@media (max-width: 576px) {
  .contact-modal {
    width: 95%;
    margin: 20px;
  }
  
  .contact-modal-header {
    padding: 30px 20px 15px;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
  }
  
  .success-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .contact-modal-title {
    font-size: 20px;
  }
  
  .contact-modal-message {
    font-size: 14px;
  }
  
  .contact-modal-content {
    padding: 25px 20px;
  }
  
  .contact-modal-content p {
    font-size: 14px;
  }
}

