/* style/faq.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* --- General Styles --- */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color, adjusted for dark background */
  background: var(--background); /* Default background color */
}

/* Intelligent color contrast for main content based on body background */
.page-faq {
  color: var(--text-main); /* Text Main: #F2FFF6 */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main); /* White text on dark image */
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* F2FFF6 */
}

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

.page-faq__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-faq__cta-button--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
  background: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
  border: 1px solid var(--border); /* #2E7A4E */
}

.page-faq__cta-button--secondary:hover {
  background: var(--border); /* #2E7A4E */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ List Section --- */
.page-faq__faq-list-section {
  padding: 60px 0;
  background: var(--background); /* #08160F */
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-category {
  margin-bottom: 40px;
  background: var(--card-b-g); /* #11271B */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--divider); /* #1E3A2A */
}

.page-faq__category-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 25px;
  text-align: left;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 15px;
}

.page-faq__faq-item {
  background: var(--deep-green); /* #0A4B2C */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden; /* Ensure content is hidden when closed */
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background: var(--deep-green); /* #0A4B2C */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> element */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-faq__faq-question:hover {
  background-color: var(--border); /* #2E7A4E */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--border); /* #2E7A4E */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-left: 15px;
  transition: transform 0.3s ease;
  user-select: none; /* Prevent text selection */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
  /* content: "−"; This is not a CSS property for content on existing elements */
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: left;
}

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

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__faq-answer strong {
  color: var(--text-main); /* #F2FFF6 */
}

.page-faq__inline-link {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- CTA Section at the bottom --- */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
  background: var(--card-b-g); /* #11271B */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--divider); /* #1E3A2A */
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__faq-category {
    padding: 25px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__main-title {
    font-size: 2.2rem;
  }
  .page-faq__intro-text {
    font-size: 1rem;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-faq__cta-button {
    width: 100%;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__section-description {
    font-size: 0.9rem;
  }
  .page-faq__faq-category {
    padding: 20px;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 1.6rem;
    padding-bottom: 10px;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }
  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 18px 15px 18px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image container mobile adaptation */
  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__faq-category,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Specific override for hero section padding if it affects width */
  .page-faq__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Video section small top padding */
  .page-faq__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq 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;
  }

  /* Button container mobile adaptation */
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8rem;
  }
  .page-faq__section-title {
    font-size: 1.6rem;
  }
  .page-faq__category-title {
    font-size: 1.3rem;
  }
  .page-faq__faq-question {
    font-size: 0.95rem;
  }
  .page-faq__cta-title {
    font-size: 1.6rem;
  }
}