.page-faq {
  background-color: #000; /* Body background is dark */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Assumed shared.css handles body padding for header offset */
}

.page-faq__hero-section {
  background: linear-gradient(135deg, #DC143C, #FFD700);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: 0; /* Ensures no double padding if shared.css sets body padding-top */
}

.page-faq__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #000000; /* Ensure contrast on #FFD700 */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-faq__content-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for content */
  color: #ffffff;
}

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

.page-faq__section-title {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #DC143C;
  border-radius: 2px;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFD700;
}

.page-faq__faq-question:active {
  background: rgba(255, 255, 255, 0.35);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #DC143C;
  transform: rotate(180deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
}

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

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

.page-faq__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 10px 20px;
  border: 2px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 10px;
  margin-top: 10px;
  cursor: pointer;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000; /* Ensure contrast on #FFD700 */
}

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

.page-faq__image--large {
  width: 100%;
}

/* General image and container responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__container,
.page-faq__content-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile responsive design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__intro-text {
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-faq__btn-secondary {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: 0 !important; /* Ensures no double padding if shared.css sets body padding-top */
  }
  .page-faq__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-faq__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
    font-size: 17px !important;
  }

  /* 其他内容模块 */
  .page-faq__content-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-faq__faq-item {
    margin-bottom: 10px;
  }
  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
  .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 15px !important;
    font-size: 15px !important;
    margin-right: 0;
    margin-top: 10px;
  }
  /* 通用图片与容器 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__image {
    margin: 15px auto;
  }
  /* 按钮与按钮容器 */
  .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 !important;
  }
}