/* Base styles for page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body */
  background-color: #FFFFFF; /* Default white background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  margin-bottom: 40px;
  text-align: center;
  background-color: #f5f5f5;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  margin-top: -100px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #017439;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Register/Login color */
  border: 2px solid #C30808;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00606;
  border-color: #a00606;
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__intro-text {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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;
}

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: #f5f5f5;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555;
  font-size: 16px;
}

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

/* Additional Info Section */
.page-faq__additional-info {
  padding: 40px;
  background-color: #e8f5e9; /* Light green background */
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.page-faq__sub-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
}

.page-faq__additional-info p {
  font-size: 17px;
  color: #444;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-faq__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-faq__contact-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__contact-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-faq__contact-button {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  padding: 15px 35px;
  font-size: 18px;
}

.page-faq__contact-button:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -80px;
  }
  .page-faq__hero-image-wrapper {
    height: 400px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    padding: 10px 20px;
    font-size: 15px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 17px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  .page-faq__additional-info {
    padding: 30px;
  }
  .page-faq__additional-info p {
    font-size: 16px;
  }
  .page-faq__contact-cta-section {
    padding: 50px 15px;
  }
  .page-faq__contact-description {
    font-size: 17px;
  }
  .page-faq__contact-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 20px;
  }
  .page-faq__hero-image-wrapper {
    height: 250px;
  }
  .page-faq__hero-image {
    object-fit: contain !important; /* Mobile: prevent cropping */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-content {
    margin-top: -50px;
    padding: 20px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .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;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-faq__container,
  .page-faq__content-section,
  .page-faq__additional-info,
  .page-faq__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ List */
  .page-faq__content-section {
    padding: 20px 0;
    margin-bottom: 20px;
  }
  .page-faq__section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  /* Additional Info Section */
  .page-faq__additional-info {
    padding: 20px;
    margin-top: 40px;
  }
  .page-faq__sub-title {
    font-size: clamp(18px, 5vw, 28px);
    margin-bottom: 15px;
  }
  .page-faq__additional-info p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Contact CTA Section */
  .page-faq__contact-cta-section {
    padding: 40px 15px;
  }
  .page-faq__contact-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-faq__contact-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__contact-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Product display area (not applicable for FAQ page, but included for completeness of mobile media query requirement) */
/* This section is not present in the HTML, but its media query structure is required */
/* .page-faq__products-grid { /* No product grid on FAQ page */
/*   display: grid; */
/*   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
/*   gap: 20px; */
/* } */
@media (max-width: 768px) {
  /* .page-faq__products-grid { */
  /*   grid-template-columns: repeat(2, 1fr) !important; */
  /*   gap: 15px !important; */
  /*   overflow-x: hidden; */
  /* } */
  /* .page-faq__product-card:nth-child(n+3) { */
  /*   grid-column: span 1; */
  /* } */
}

/* Decorative title + long text SEO area (general content elements) */
.page-faq__article-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.page-faq__article-body p {
  margin-bottom: 1em;
}
.page-faq__article-body h3 {
  font-size: 24px;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}
.page-faq__article-figure {
  text-align: center;
  margin: 20px 0;
}
.page-faq__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .page-faq__article-body {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__article-body h3 {
    font-size: clamp(20px, 5vw, 24px);
    text-align: left;
  }
  .page-faq__article-body p {
    font-size: 15px;
  }
  .page-faq__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .page-faq__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* No CSS filter for images */
.page-faq img {
  filter: none; /* Ensure no CSS filter is applied */
}