/* 模态弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.5s;
}

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

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.modal-header h2 {
  margin: 0 0 10px;
  color: #333;
  font-size: 28px;
}

.modal-header p {
  color: #666;
  margin: 0;
  font-size: 16px;
}

.modal-body {
  padding: 30px 40px;
  display: flex;
  flex-wrap: wrap;
}

/* 联系表单样式 */
.contact-form-container {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.form-group .required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

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

/* 联系信息样式 */
.contact-info-container {
  flex: 1;
  min-width: 300px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 22px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.contact-info-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #555;
}

.contact-info-list li i {
  margin-right: 15px;
  color: #4a90e2;
  width: 20px;
  text-align: center;
}

.social-links {
  margin-bottom: 30px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #4a90e2;
  color: #fff;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #3476c5;
}

.map-container {
  height: 200px;
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-body {
    flex-direction: column;
    padding: 20px;
  }
  
  .contact-form-container {
    padding-right: 0;
    margin-bottom: 30px;
  }
}
