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

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

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Gradient for hero */
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* For responsive button container */
  max-width: 100%; /* For responsive button container */
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break */
}

.page-faq__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-faq__btn--secondary {
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn--secondary:hover {
  background: #7A0E0E; /* Deep Red */
  border-color: #FFCC66; /* Glow */
  transform: translateY(-2px);
}

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

.page-faq__faq-section,
.page-faq__promo-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
}

.page-faq__section-title,
.page-faq__promo-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-faq__section-intro,
.page-faq__promo-text {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #FFF5E1; /* Text Main */
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: #FFF5E1; /* Text Main */
  position: relative;
  user-select: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #F4D34D; /* Gold */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate + to become X */
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  line-height: 1.8;
}

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

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

.page-faq__faq-answer a {
  color: #F4D34D; /* Gold */
  text-decoration: underline;
}

.page-faq__faq-answer ul {
  list-style: disc;
  margin-left: 25px;
  padding-left: 0;
}

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

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

.page-faq__promo-section {
  padding-top: 40px;
  padding-bottom: 80px;
  background-color: #7A0E0E; /* Deep Red */
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-faq__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-faq__cta-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-faq__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-faq__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title,
  .page-faq__promo-title {
    font-size: 1.7rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-faq__section-intro,
  .page-faq__promo-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* 3. 通用图片与 figure */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__hero-image,
  .page-faq__content-image,
  .page-faq__promo-image {
    margin: 20px auto;
    padding: 0;
  }

  /* 4. 按钮与按钮容器 (already handled in .page-faq__cta-group and .page-faq__btn) */
  .page-faq__cta-group {
    flex-wrap: wrap !important;
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-faq__faq-section,
  .page-faq__promo-section {
    padding: 40px 0;
  }

  .page-faq__faq-list {
    gap: 10px;
    padding: 0 15px;
  }

  .page-faq__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px 20px;
  }
  
  .page-faq__faq-answer ul {
    margin-left: 15px;
  }
}