/* 联系我们页面样式 */
/* CSS变量定义 */
:root {
  --coffee-brown: #4e342e;
  --coffee-light: #d7ccc8;
  --coffee-dark: #3e2723;
  --accent-cream: #fff8e1;
  --text-color: #2e1d19;
  --hover-color: #8d6e63;
}
/* Hero 区域 */
.contact-hero {
  background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 50%, #9370DB 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="50" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  animation: float 20s linear infinite;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: slideInDown 1s ease-out;
}

.contact-hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* 主要内容区域 */
.contact-main {
  padding: 40px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* 联系表单 */
.contact-form-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  animation: fadeInLeft 0.8s ease-out;
}

.contact-form-section h2 {
  font-size: 2.2rem;
  color: #4A90E2;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-form-section .subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

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

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4A90E2;
  background: white;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.submit-btn::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-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* 联系信息 */
.contact-info-section {
  animation: fadeInRight 0.8s ease-out;
}

.contact-info-section h2 {
  font-size: 2.2rem;
  color: #4A90E2;
  margin-bottom: 30px;
  font-weight: 700;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-details p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* 社交媒体 */
.social-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.social-section h3 {
  font-size: 1.4rem;
  color: #4A90E2;
  margin-bottom: 20px;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* 地图区域 */
.contact-map {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
}

.contact-map h2 {
  font-size: 2.5rem;
  color: #4A90E2;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-map p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ 区域 */
.contact-faq {
  padding: 80px 20px;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  font-size: 2.5rem;
  color: #4A90E2;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 20px;
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #3A7BC8, #6B58CE);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 200px;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 动画 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-hero p {
    font-size: 1.1rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-section,
  .contact-info-section {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-methods {
    gap: 20px;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .map-container {
    height: 300px;
  }
  
  .faq-container h2,
  .contact-map h2 {
    font-size: 2rem;
  }
}