/* General styles for the FAQ page scope */
.page-faq {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  display: block; /* Ensure it takes up space */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area */
  display: block;
  border-radius: 8px;
}

.page-faq__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary color text */
  border: 2px solid #F2C14E; /* Primary color border */
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #111111; /* Dark text for primary background */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

/* Content Section */
.page-faq__content-section {
  padding: 40px 0;
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Primary color for section titles */
}

.page-faq__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF6D6; /* Text Main */
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  border-color: #F2C14E; /* Highlight when open */
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

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: rgba(242, 193, 78, 0.1); /* Light hover effect */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Text Main */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #FFD36B; /* Auxiliary color when open */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Darker background for answer */
  border-top: 1px solid #3A2A12; /* Border color */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
}

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

.page-faq__faq-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-start;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  padding: 60px 0;
  text-align: center;
  background: #111111; /* Card BG */
  margin-top: 40px;
  border-top: 1px solid #3A2A12; /* Border color */
}

.page-faq__contact-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
}

.page-faq__contact-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #FFF6D6; /* Text Main */
}

/* Generic image styling for content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 20px 30px;
  }
  .page-faq__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }
  .page-faq__intro-text {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-faq__faq-qtext {
    font-size: 1.05rem;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  .page-faq__faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Still small, rely on body padding */
    margin-bottom: 30px;
  }
  .page-faq__hero-image-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, or unset */
  }
  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow aspect ratio to be determined by content if object-fit: contain */
    position: relative; /* Change to relative for better flow if not covering full width */
    height: auto;
    max-width: 100%;
  }
  .page-faq__hero-content {
    padding: 30px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: center;
  }
  .page-faq__intro-text {
    font-size: 0.95rem;
    text-align: center;
  }

  /* 按钮与按钮容器 */
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__btn-primary,
  .page-faq__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 20px; /* Adjust padding for mobile */
    font-size: 0.95rem;
  }
  .page-faq__faq-buttons {
    flex-direction: column; /* Stack buttons vertically within FAQ answers */
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 (General section titles and descriptions) */
  .page-faq__section-title,
  .page-faq__contact-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    text-align: center;
  }
  .page-faq__section-description,
  .page-faq__contact-description {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
  }

  /* FAQ List specific mobile styles */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 18px;
  }
  .page-faq__faq-qtext {
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    width: 20px;
    margin-left: 15px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 18px 18px;
  }
  .page-faq__faq-answer p {
    font-size: 0.9rem;
  }
}