.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #140C0C;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 15px;
}

.page-faq__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-faq__intro-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card BG */
  border-bottom: 1px solid #6A1E1E; /* Border */
}

.page-faq__intro-title {
  font-size: 2.2em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-faq__intro-text {
  font-size: 1.05em;
  color: #FFF1E8; /* Text Main */
  text-align: justify;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #E53030; /* Auxiliary color */
  margin-bottom: 25px;
  border-bottom: 2px solid #6A1E1E; /* Border */
  padding-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__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: #F3C54D; /* Gold */
  font-weight: 600;
  font-size: 1.1em;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #3a1a1a; /* Slightly darker Card BG on hover */
}

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

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

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

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #1e0f0f; /* Darker than Card BG */
  border-radius: 0 0 8px 8px;
  color: #FFF1E8; /* Text Main */
  font-size: 0.95em;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__btn-link {
  color: #F3C54D; /* Gold */
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__btn-link:hover {
  color: #FFB04A; /* Lighter gold */
}

/* CTA Section */
.page-faq__cta-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #C61F1F 0%, #7E0D0D 100%); /* Deep Red with brand primary */
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF1E8; /* Text Main */
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: rgba(243, 197, 77, 0.1); /* Light gold background on hover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__category-title {
    font-size: 1.6em;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域 */
  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
    max-height: 400px;
  }
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-content {
    padding: 0 10px;
  }
  .page-faq__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    padding-bottom: 30px;
  }
  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 300px;
  }
  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }
  .page-faq__hero-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-faq__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }

  /* Intro Section */
  .page-faq__intro-section {
    padding: 40px 0;
  }
  .page-faq__intro-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-faq__intro-text {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-faq__faq-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-faq__faq-category {
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 1em;
    flex-wrap: wrap;
  }
  .page-faq__faq-qtext {
    font-size: 0.95em;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9em;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 40px 0;
  }
  .page-faq__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container rules for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__intro-section .page-faq__container,
  .page-faq__faq-section .page-faq__container,
  .page-faq__cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-section .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-category {
    padding-left: 15px;
    padding-right: 15px;
  }
}