/* Base styles and variables */
:root {
  --page-faq-primary-color: #F2C14E;
  --page-faq-secondary-color: #FFD36B;
  --page-faq-card-bg: #111111;
  --page-faq-background: #0A0A0A;
  --page-faq-text-main: #FFF6D6;
  --page-faq-border-color: #3A2A12;
  --page-faq-glow-color: #FFD36B;
  --page-faq-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --page-faq-button-text-color: #ffffff;
  --page-faq-light-text: #333333;
  --page-faq-light-bg: #ffffff;
  --page-faq-light-border: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--page-faq-text-main); /* Default text color for dark body bg */
  background-color: var(--page-faq-background); /* This will be overridden by shared.css body bg */
}

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

.page-faq__section {
  padding: 60px 0;
  text-align: center;
}

.page-faq__dark-section {
  background-color: var(--page-faq-background);
  color: var(--page-faq-text-main);
}

.page-faq__light-bg {
  background-color: var(--page-faq-light-bg);
  color: var(--page-faq-light-text);
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--page-faq-primary-color);
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--page-faq-text-main);
}

.page-faq__light-bg .page-faq__description {
  color: var(--page-faq-light-text);
}

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

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

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-faq__hero-content .page-faq__main-title {
  color: var(--page-faq-secondary-color);
}

.page-faq__hero-content .page-faq__description {
  color: var(--page-faq-text-main);
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-button-text-color);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--page-faq-secondary-color);
  border: 2px solid var(--page-faq-secondary-color);
}

.page-faq__btn-secondary:hover {
  background: var(--page-faq-secondary-color);
  color: var(--page-faq-background);
}

/* FAQ Accordion Styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__light-bg details.page-faq__faq-item {
  background-color: var(--page-faq-light-bg);
  border: 1px solid var(--page-faq-light-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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: var(--page-faq-text-main);
  font-size: 18px;
  font-weight: 600;
}

.page-faq__light-bg details.page-faq__faq-item summary.page-faq__faq-question {
  color: var(--page-faq-light-text);
}

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-color: rgba(var(--page-faq-primary-color), 0.1);
}

.page-faq__light-bg details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-faq__faq-qtext {
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-faq-secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

.page-faq__light-bg .page-faq__faq-toggle {
  color: var(--page-faq-primary-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background-color: rgba(var(--page-faq-primary-color), 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--page-faq-text-main);
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.page-faq__light-bg details.page-faq__faq-item .page-faq__faq-answer {
  background-color: #f9f9f9;
  color: var(--page-faq-light-text);
}

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

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

details.page-faq__faq-item .page-faq__faq-answer ul,
details.page-faq__faq-item .page-faq__faq-answer ol {
  margin: 15px 0;
  padding-left: 25px;
}

details.page-faq__faq-item .page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__light-bg .page-faq__content-image {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__footer-cta {
  padding: 80px 20px;
  background-color: var(--page-faq-background);
  color: var(--page-faq-text-main);
}

.page-faq__footer-cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--page-faq-secondary-color);
}

.page-faq__footer-cta-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--page-faq-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(28px, 4vw, 42px);
  }
  .page-faq__section-title {
    font-size: clamp(24px, 3.5vw, 34px);
  }
  .page-faq__description,
  .page-faq__footer-cta-description {
    font-size: 17px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 16px 20px;
    font-size: 17px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
  }
}

@media (max-width: 849px) {
  .page-faq__hero-image img {
    object-fit: contain !important; /* Ensure hero image is not cropped on smaller screens */
    aspect-ratio: unset !important;
    position: relative;
    width: 100%;
    height: auto;
  }
  .page-faq__hero-image-wrapper {
    position: relative;
    height: auto;
    min-height: 200px;
  }
  .page-faq__hero-section {
    min-height: unset;
    padding-bottom: 40px;
  }
  .page-faq__hero-content {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 25px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-faq__hero-image-wrapper {
    height: auto;
    min-height: 200px;
  }
  .page-faq__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-content {
    padding: 20px 15px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px) !important;
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  /* General Section and Container */
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  .page-faq__section-title {
    font-size: clamp(22px, 6vw, 32px) !important;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-faq__content-area,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* 按钮与按钮容器 */
  .page-faq__cta-buttons,
  .page-faq__button-group {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ items */
  details.page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-faq__faq-qtext {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
  details.page-faq__faq-item .page-faq__faq-answer ul,
  details.page-faq__faq-item .page-faq__faq-answer ol {
    padding-left: 20px;
  }

  /* Footer CTA */
  .page-faq__footer-cta {
    padding: 50px 15px;
  }
  .page-faq__footer-cta-title {
    font-size: clamp(22px, 6vw, 36px) !important;
    margin-bottom: 20px;
  }
  .page-faq__footer-cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
}

/* No product display grid on FAQ page, so no specific mobile rule for it. */
/* No article body for FAQ page in this sense, so no specific mobile rule for it. */