:root {
  --primary-color: #C91F17; /* 主色调 */
  --secondary-color: #E53935; /* 辅助色 */
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* 按钮渐变 */
  --card-bg-color: #D32F2F; /* Card BG */
  --section-bg-color: #B71C1C; /* 背景 */
  --text-main-color: #FFF5E1; /* Text Main */
  --border-color: #F2B544; /* 边框 */
  --glow-color: #FFCC66; /* Glow */
  --gold-color: #F4D34D; /* Gold */
  --deep-red-color: #7A0E0E; /* Deep Red */
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* 默认文字颜色 */
  background-color: var(--color-background); /* 从 shared.css 获取 */
}

/* HERO 主图区域样式 */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* 小额顶距，body padding-top 已由 shared.css 承担 */
  background-color: var(--deep-red-color); /* 确保背景色，与图片分离 */
  border-bottom: 2px solid var(--border-color);
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* 确保在桌面端也占满宽度 */
}

.page-faq__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5em, 5vw, 3.2em); /* 使用clamp限制标题大小 */
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__intro-text {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #333333; /* 确保与渐变背景对比度 */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

/* 内容区块通用样式 */
.page-faq__content-section {
  padding: 60px 20px;
  background-color: var(--section-bg-color); /* 深红色背景 */
  color: var(--text-main-color);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

/* FAQ列表样式 */
.page-faq__faq-list {
  margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color); /* 卡片背景色 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
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, border-color 0.3s ease;
  color: var(--gold-color); /* 问题文字颜色 */
  font-weight: 700;
  font-size: 1.15em;
}
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: var(--deep-red-color); /* Hover时颜色变深 */
  border-color: var(--gold-color);
}
.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color); /* +/- 符号颜色 */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* 展开时旋转成X */
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.15); /* 答案区背景稍微变暗 */
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color); /* 答案文字颜色 */
  font-size: 1.05em;
}
.page-faq__faq-answer p {
  margin-bottom: 15px;
}
.page-faq__faq-answer ul, .page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
}
.page-faq__faq-answer li {
  margin-bottom: 8px;
}
.page-faq__faq-answer strong {
  color: var(--gold-color);
}
.page-faq__image-in-answer {
  width: 100%;
  height: auto;
  max-width: 800px; /* 限制图片最大宽度 */
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 按钮样式 */
.page-faq__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color); /* 主色调背景 */
  color: #ffffff; /* 白色文字 */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  margin-right: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--gold-color); /* 金色文字 */
  text-decoration: none;
  border: 2px solid var(--gold-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  margin-right: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-faq__cta-section {
  background: var(--deep-red-color);
  padding: 80px 20px;
  text-align: center;
  border-top: 2px solid var(--border-color);
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2.2em, 4.5vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* 移动端小额顶距 */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-image img {
    border-radius: 4px;
  }
  .page-faq__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* 使用clamp限制标题大小 */
    margin-bottom: 10px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-faq__content-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
    font-size: 1em;
    flex-wrap: wrap; /* 允许问题文字换行 */
  }
  .page-faq__faq-qtext {
    width: calc(100% - 45px); /* 留出空间给toggle图标 */
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }
  .page-faq__faq-answer ul, .page-faq__faq-answer ol {
    margin-left: 15px;
  }
  .page-faq__image-in-answer {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 15px auto;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    margin-top: 10px;
    margin-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__faq-answer a.page-faq__btn-primary,
  .page-faq__faq-answer a.page-faq__btn-secondary {
    display: block;
    margin-bottom: 10px;
  }

  .page-faq__cta-section {
    padding: 50px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 移动端图片和容器强制适配 */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-container,
  .page-faq__cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 确保所有a标签的href属性不为空 */
.page-faq a:not([href]):not([tabindex]) {
    pointer-events: none;
    cursor: default;
}