.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Matches shared.css body background */
  padding-bottom: 60px; /* Ensure space before footer */
}

.page-faq__hero-banner {
  padding-top: 0; /* shared.css should handle body padding-top */
  padding-bottom: 60px;
  background-color: #003366; /* Main brand color for hero */
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3; /* Subtle background effect */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

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

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

/* FAQ容器样式 */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly more rounded corners */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* FAQ默认状态 - 答案隐藏 */
.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; /* Adjusted padding */
  opacity: 0;
  color: #f0f0f0; /* Light text for dark background */
  background-color: #2a2a2a; /* Darker background for answer */
  border-radius: 0 0 8px 8px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
}

/* 问题样式 */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Main brand color for question background */
  border: 1px solid #FFD700; /* Gold border */
  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: #004488; /* Slightly lighter blue on hover */
  border-color: #ffe066; /* Lighter gold on hover */
}

.page-faq__faq-question:active {
  background: #002244;
}

/* 问题标题样式 */
.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-faq__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  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: 32px; /* Larger toggle area */
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff; /* White toggle when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #f0f0f0; /* Light text */
}

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

.page-faq__faq-answer strong {
  color: #FFD700; /* Gold for strong text */
}

/* Buttons */
.page-faq__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 15px;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #003366; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  border-color: #e6c200;
  color: #002244;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700; /* Gold border */
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700; /* Gold background on hover */
  color: #003366; /* Dark blue text on hover */
}

.page-faq__btn-inline-link {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__btn-inline-link:hover {
  color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-faq__hero-banner {
    padding-bottom: 40px;
  }
  .page-faq__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
  .page-faq__btn {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    margin-left: 0;
    margin-right: 0;
  }
  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-faq__faq-items-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  /* Ensure images in content are responsive and don't overflow */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}