/* style/contact.css */
.page-contact {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  margin-bottom: 40px;
  text-align: center;
  background-color: #17191F;
  border-bottom: 2px solid #A84F0C;
}

.page-contact__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-contact__hero-content {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for responsive H1 font-size */
  font-weight: 700;
  color: #FFB04D; /* Glow color for title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255,176,77,0.5);
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Info Section */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #17191F;
  border-radius: 8px;
  border: 1px solid #A84F0C;
}

.page-contact__info-section .page-contact__container,
.page-contact__form-section .page-contact__container,
.page-contact__faq-section .page-contact__container {
  text-align: center;
}

.page-contact__info-title,
.page-contact__form-title,
.page-contact__faq-main-title {
  font-size: 2.2em;
  color: #FF8C1A;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-contact__info-description,
.page-contact__form-description,
.page-contact__faq-intro-text {
  font-size: 1.05em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__method-card {
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-contact__method-text {
  color: #FFF3E6;
  margin-bottom: 25px;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #FF8C1A;
  color: #FFF3E6;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #FFA53A;
}

/* Form Section */
.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C;
  border-radius: 5px;
  background-color: #17191F;
  color: #FFF3E6;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-note {
  color: #FFF3E6;
  font-size: 0.95em;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
  margin-top: 20px;
}

.page-contact__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

/* FAQ Section */
.page-contact__faq-main-title {
  margin-top: 0;
}

.page-contact__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color from custom colors */
  overflow: hidden;
  background: #0D0E12; /* Background from custom colors */
}

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: #FFA53A; /* Auxiliary color for question text */
  font-weight: 600;
}

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: rgba(255, 165, 58, 0.1); /* Lighter hover effect */
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #17191F; /* Card BG color for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 1em;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__faq-main-title {
    font-size: 2em;
  }
  .page-contact__contact-methods {
    gap: 20px;
  }
  .page-contact__method-card {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__hero-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__faq-main-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description,
  .page-contact__info-description,
  .page-contact__form-description,
  .page-contact__faq-intro-text {
    font-size: 0.95em;
  }
  .page-contact__contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .page-contact__method-card {
    max-width: 100%;
    width: 100%;
    padding: 20px;
  }
  .page-contact__method-icon {
    max-width: 180px;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-group {
    margin-bottom: 15px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.95em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
    margin-top: 10px; /* Adjust margin for stacked buttons */
  }
  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-methods,
  .page-contact__social-links,
  .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;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
  /* CSS for modules from '必写清单' (even if not present in HTML on this page) */
  /* 1. 首页轮播 (__hero-slider) - this page uses __hero-section, but keeping the rule */
  .page-contact__hero-slider {
    padding-top: 10px !important;
    overflow: hidden !important;
  }
  /* 2. 首页双列 CTA (__promo-duo / __promo-duo-grid) */
  .page-contact__promo-duo-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  /* 3. 首页长文滚动框/博客滑块 (__home-content, __home-content-inner, __blog-slider, __post-cover) */
  .page-contact__home-content-inner {
    height: 60vh !important;
    overflow-y: auto !important;
  }
  .page-contact__post-cover {
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
  }
  .page-contact__blog-slider .page-contact__blog-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-contact table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}