:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-grey: #f1f3f5;
  --border-light: #e0e0e0;
}

/* 🚨 固定导航栏间距要求 */
/* HERO主图区域将处理 padding-top để tránh bị header cố định che khuất */

/* HERO主图区域样式 */
.page-contact__hero-contact-section {
  position: relative;
  width: 100%;
  padding-top: 180px; /* Desktop padding */
  padding-bottom: 60px; /* Add some bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light); /* Default text color for hero content */
  background-color: var(--primary-color); /* Fallback background */
  overflow: hidden; /* Ensure overlay doesn't spill */
}

.page-contact__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark semi-transparent overlay */
  z-index: 0;
}

.page-contact__hero-contact-container {
  position: relative; /* Bring content above image and overlay */
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-contact-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Use secondary color for title to stand out */
}

.page-contact__hero-contact-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__hero-contact-description .keyword {
  font-weight: bold;
  color: var(--secondary-color);
}

.page-contact__hero-contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on light background */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-contact__cta-button:hover {
  background: #e6c100; /* Slightly darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button--secondary {
  background: none;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.page-contact__cta-button--secondary:hover {
  background: rgba(255, 215, 0, 0.1); /* Light yellow tint on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 20px;
  background: var(--bg-light-grey);
  color: var(--text-dark);
}

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

.page-contact__info-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-contact__info-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
}

.page-contact__info-icon {
  width: 200px; /* Default size for desktop */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-contact__info-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__info-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-contact__info-card-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__info-card-text a:hover {
  text-decoration: underline;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 20px;
  background: var(--text-light);
  color: var(--text-dark);
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.page-contact__form-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-contact__form-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-contact__form-description .keyword {
  font-weight: bold;
  color: var(--primary-color);
}

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

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background: #002244; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Map Section */
.page-contact__map-section {
  padding: 80px 20px;
  background: var(--bg-light-grey);
  color: var(--text-dark);
}

.page-contact__map-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-contact__map-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-contact__map-description {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-contact__map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 20px;
  background: var(--text-light);
  color: var(--text-dark);
}

.page-contact__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-main-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-contact__faq-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-contact__faq-description .keyword {
  font-weight: bold;
  color: var(--primary-color);
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on entire question area */
  color: var(--text-dark);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Allow click on entire question area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

/* General image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
    padding-top: 160px !important; /* 移动端：根据移动端导航栏实际高度调整，通常为100-160px */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-contact-title {
    font-size: 32px;
  }

  .page-contact__hero-contact-description {
    font-size: 16px;
  }

  .page-contact__hero-contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__map-section,
  .page-contact__faq-section {
    padding: 40px 15px;
  }

  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__map-title,
  .page-contact__faq-main-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__info-card {
    padding: 25px;
  }
  
  .page-contact__info-icon {
    width: 100%; /* Fill container on mobile */
    max-width: 200px; /* Constrain max width even if container is larger */
    height: auto;
  }

  .page-contact__info-card-title {
    font-size: 20px;
  }

  .page-contact__info-card-text {
    font-size: 15px;
  }

  .page-contact__form-container {
    padding: 30px 20px;
  }

  .page-contact__form-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__form-label {
    font-size: 15px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-contact__form-submit-button {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .page-contact__map-embed {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile maps */
  }

  .page-contact__faq-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  /* 🚨 移动端强制适配所有图片容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-contact-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__map-section,
  .page-contact__faq-section,
  .page-contact__info-container,
  .page-contact__form-container,
  .page-contact__map-container,
  .page-contact__faq-container,
  .page-contact__info-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}