/* 联系我们页专用样式 */

/* 顶部 Hero 区域 */
.contact-hero-section {
  position: relative;
  margin-top: var(--header-height);
  height: 45vh;
  min-height: 360px;
  overflow: hidden;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/banner/04.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  padding: 0 5%;
  z-index: 2;
}

.contact-hero-content {
  max-width: 1200px;
  width: 100%;
  text-align: left;
  pointer-events: auto;
}

.contact-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(148, 142, 255, 0.5), 0 0 15px rgba(148, 142, 255, 0.3);
  margin-bottom: 0.8rem;
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.8;
  max-width: 800px;
  text-shadow: 2px 2px 6px rgba(148, 142, 255, 0.5), 0 0 15px rgba(148, 142, 255, 0.3);
}

/* 表单区域 */
.contact-page {
  padding: 5rem 5%;
  background: #fff;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(148,142,255,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148,142,255,0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(148,142,255,0.1);
}

.form-group input:hover {
  border-color: rgba(148,142,255,0.4);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.submit-button {
  padding: 1rem 4rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(148, 142, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(148, 142, 255, 0.5);
}

.submit-button:active {
  transform: translateY(-1px);
}

/* Loading 状态样式 */
.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.submit-button:disabled:hover {
  transform: none !important;
  box-shadow: 0 8px 25px rgba(148, 142, 255, 0.3);
}

.button-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact-hero-section {
    height: 40vh;
    min-height: 300px;
  }
  
  .contact-hero-title {
    font-size: 2rem;
  }
  
  .contact-hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-page {
    padding: 3rem 5%;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .submit-button {
    width: 100%;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .contact-hero-section {
    height: 35vh;
    min-height: 250px;
  }
  
  .contact-hero-title {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 1.5rem 1.2rem;
  }
}

