.page-contact {
  background-color: #140C0C;
  color: #FFF1E8;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px;
}

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

.page-contact__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 50px;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-contact__hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-contact__main-title {
  font-size: 3.5em;
  font-weight: 700;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%; /* Ensures H1 doesn't overflow */
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #FFF1E8;
  margin-bottom: 40px;
  max-width: 800px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-info-section {
  padding: 80px 0;
  background-color: #2A1212;
}

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

.page-contact__info-card {
  background-color: #140C0C;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__info-card-title {
  font-size: 1.8em;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-contact__info-card-text,
.page-contact__email,
.page-contact__phone {
  color: #FFF1E8;
  font-size: 1em;
  margin-bottom: 20px;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto; /* Pushes button to the bottom */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFC77A 0%, #E57D2A 100%);
}

.page-contact__form-section {
  padding: 80px 0;
  background-color: #140C0C;
}

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-contact__contact-form {
  flex: 1;
  background-color: #2A1212;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #6A1E1E;
}

.page-contact__form-group {
  margin-bottom: 20px;
}

.page-contact__form-label {
  display: block;
  color: #F3C54D;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E;
  border-radius: 6px;
  background-color: #140C0C;
  color: #FFF1E8;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #7E0D0D;
}

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

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-contact__form-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-contact__faq-section {
  padding: 80px 0;
  background-color: #2A1212;
}

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

.page-contact__faq-item {
  background-color: #140C0C;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFF1E8;
  background-color: #2A1212;
  border-bottom: 1px solid #6A1E1E;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  color: #F3C54D;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 20px 25px;
  background-color: #140C0C;
  color: #FFF1E8;
  font-size: 1em;
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__faq-answer a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #F3C54D;
  border: 2px solid #F3C54D;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C;
}

.page-contact__faq-image-container {
  text-align: center;
  margin-top: 40px;
}

.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-contact__social-section {
  padding: 80px 0;
  background-color: #140C0C;
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-contact__social-icon {
  display: block;
  width: 60px;
  height: 60px;
  background-color: #2A1212;
  border: 2px solid #6A1E1E;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-contact__social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(20deg) brightness(1.5); /* Simulate gold color for icons */
}

.page-contact__social-icon--facebook::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.477 2 2 6.477 2 12c0 5.016 3.655 9.183 8.438 9.916V14.89h-2.54V12h2.54V9.797c0-2.505 1.493-3.89 3.776-3.89 1.094 0 2.24.195 2.24.195V8.89h-1.299c-1.248 0-1.628.772-1.628 1.563V12h2.77L16 14.89h-2.138v6.026C18.344 21.183 22 17.015 22 12c0-5.523-4.477-10-10-10z"/></svg>');
}

.page-contact__social-icon--twitter::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22.46 6c-.77.34-1.6.56-2.46.66.89-.53 1.57-1.37 1.89-2.37-.83.49-1.75.84-2.72 1.03C18.35 4.54 17.2 4 15.96 4c-2.35 0-4.26 1.9-4.26 4.26 0 .33.04.65.11.95-3.54-.18-6.69-1.87-8.8-4.43-.37.63-.58 1.37-.58 2.16 0 1.48.75 2.79 1.89 3.56-.7-.02-1.37-.22-1.95-.5v.05c0 2.05 1.46 3.76 3.39 4.14-.36.1-.73.15-1.11.15-.27 0-.53-.03-.79-.07.54 1.68 2.1 2.91 3.96 2.94-1.46 1.14-3.3 1.82-5.32 1.82-.35 0-.7-.02-1.05-.06C3.47 20.25 5.6 21 7.96 21c8.35 0 12.92-6.9 12.92-12.92 0-.2-.01-.4-.02-.6.9-.65 1.68-1.46 2.3-2.37z"/></svg>');
}

.page-contact__social-icon--telegram::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.721 7.143l-2.484 10.957c-.16.713-.616.894-1.222.564l-3.504-2.585-1.683 1.621c-.198.198-.363.363-.73.363l.307-3.415 6.275-5.694c.273-.244-.06-.376-.437-.123L7.792 14.07l-3.385-1.05c-.694-.216-.704-.675.143-.99l13.14-5.068c.57-.22.955-.078.736.315z"/></svg>');
}

.page-contact__social-icon:hover {
  background-color: #C61F1F;
  border-color: #F3C54D;
}

.page-contact__social-image-container {
  text-align: center;
  margin-top: 40px;
}

.page-contact__social-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 3em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__hero-content-wrapper {
    padding: 120px 20px 60px;
  }

  .page-contact__form-wrapper {
    flex-direction: column;
  }

  .page-contact__contact-form, .page-contact__form-image-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 30px;
  }

  .page-contact__hero-content-wrapper {
    padding: 80px 15px 40px !important;
    min-height: 350px;
  }

  .page-contact__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 - 通用 */
  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section {
    padding: 40px 0;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

  .page-contact__info-card-title {
    font-size: 1.5em;
  }

  .page-contact__info-card-text,
  .page-contact__email,
  .page-contact__phone {
    font-size: 0.95em;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image-wrapper,
  .page-contact__form-image-container,
  .page-contact__faq-image-container,
  .page-contact__social-image-container,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-submit,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    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__contact-form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

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

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-contact__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  .page-contact__social-icon::before {
    width: 25px;
    height: 25px;
  }
}