.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #1F2D3D);
  background-color: var(--Background, #F4F7FB);
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default to cover for desktop */
  filter: brightness(0.8); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--Text-Main, #1F2D3D);
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: var(--Text-Main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__methods-section {
  background-color: var(--Card-BG, #FFFFFF);
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__method-card {
  background-color: var(--Background, #F4F7FB);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--Border, #D6E2FF);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--Text-Main, #1F2D3D);
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1rem;
  color: var(--Text-Main, #1F2D3D);
  margin-bottom: 25px;
}

.page-contact__method-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--Main-Color, #2F6BFF);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__method-button:hover {
  background: var(--Auxiliary-Color, #6FA3FF);
}

.page-contact__address-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: var(--Background, #F4F7FB);
  border-radius: 10px;
}

.page-contact__address-details {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--Text-Main, #1F2D3D);
}

.page-contact__address-details p {
  margin-bottom: 10px;
}

.page-contact__map-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--Card-BG, #FFFFFF);
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-list {
  margin-top: 40px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border, #D6E2FF);
  overflow: hidden;
  background: var(--Background, #F4F7FB);
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--Text-Main, #1F2D3D);
}

details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #e0e0e0;
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Text-Main, #1F2D3D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: var(--Card-BG, #FFFFFF);
  border-radius: 0 0 5px 5px;
  color: var(--Text-Main, #1F2D3D);
}

.page-contact__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-contact__cta-bottom .page-contact__section-title,
.page-contact__cta-bottom .page-contact__section-description {
  color: #ffffff;
}

/* --- General Image and Container Responsiveness --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__container,
.page-contact__methods-grid,
.page-contact__method-card,
.page-contact__address-details,
.page-contact__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .page-contact__container {
    padding: 15px;
  }

  .page-contact__hero-content {
    max-width: 90%;
    padding: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-contact__description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-title {
    font-size: 1.4rem;
  }

  .page-contact__method-text {
    font-size: 0.95rem;
  }

  .page-contact__method-image {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    filter: none; /* Remove filter on mobile for clearer image */
  }
  .page-contact__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 30px;
  }
  .page-contact__hero-content {
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    padding: 20px 15px; /* Adjust padding */
    background: none; /* Remove background */
    color: var(--Text-Main, #1F2D3D); /* Adjust text color for light background */
    text-shadow: none;
    max-width: 100%;
  }
  .page-contact__hero-content .page-contact__main-title {
    color: var(--Text-Main, #1F2D3D);
  }
  .page-contact__hero-content .page-contact__description {
    color: var(--Text-Main, #1F2D3D);
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__container,
  .page-contact__methods-grid,
  .page-contact__method-card,
  .page-contact__address-details,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-button,
  .page-contact__method-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column for methods */
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-image {
    max-width: 150px; /* Smaller image on mobile */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    text-align: center;
  }
  .page-contact__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-contact__address-details {
    font-size: 1rem;
  }
  .page-contact__map-wrapper {
    padding: 0 15px;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  .page-contact__cta-bottom {
    padding: 50px 15px;
  }
}