/* ===== 页面专属样式：帮助中心 (.page-faq) ===== */
.page-faq {
  --faq-bg-card: #FFFFFF;
  --faq-border-light: #E8ECF0;
  --faq-radius-panel: 14px;
  --faq-shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
  --faq-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.08);
  --faq-gap-section: 56px;
  --faq-gap-items: 8px;

  display: block;
  width: 100%;
  background: var(--bg-light);
  padding: 32px 0 48px;
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* 容器复用全局 .container，此处只做微调 */
.page-faq .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 面包屑 ---- */
.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.page-faq .faq-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
.page-faq .faq-breadcrumb a:hover {
  color: var(--orange);
}
.page-faq .faq-breadcrumb-sep {
  color: #B0B8C4;
  font-weight: 300;
}

/* ---- 页面标题 ---- */
.page-faq .faq-page-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  position: relative;
}
.page-faq .faq-page-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin-top: 10px;
}
.page-faq .faq-page-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0 0 32px;
  max-width: 640px;
}

/* ---- 区域通用 ---- */
.page-faq .faq-section {
  margin-bottom: var(--faq-gap-section);
  scroll-margin-top: 24px;
}
.page-faq .faq-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-gray);
  padding-bottom: 10px;
}
.page-faq .faq-section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.page-faq .faq-section-meta {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-faq .faq-section-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- 折叠面板容器 ---- */
.page-faq .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--faq-gap-items);
  flex: 1 1 0;
  min-width: 0;
}

/* ---- 单个折叠项 (details) ---- */
.page-faq .faq-item {
  background: var(--faq-bg-card);
  border-radius: var(--faq-radius-panel);
  box-shadow: var(--faq-shadow-soft);
  border: 1px solid var(--faq-border-light);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.page-faq .faq-item:hover {
  box-shadow: var(--faq-shadow-hover);
  border-color: var(--blue);
}

/* ---- 问题标题 (summary) ---- */
.page-faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.page-faq .faq-question::-webkit-details-marker {
  display: none;
}
.page-faq .faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center / 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform var(--transition), background var(--transition);
}
.page-faq .faq-question:hover {
  background: #F4F7FB;
  color: var(--blue);
}
.page-faq .faq-question:hover::after {
  background: var(--orange);
}

/* 展开状态 */
.page-faq .faq-item[open] .faq-question {
  background: #EEF3FA;
  color: var(--blue);
  border-bottom: 1px solid var(--faq-border-light);
}
.page-faq .faq-item[open] .faq-question::after {
  transform: rotate(180deg);
  background: var(--orange);
}

/* ---- 答案内容 ---- */
.page-faq .faq-answer {
  padding: 12px 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  background: #FCFCFD;
}
.page-faq .faq-answer p {
  margin: 0 0 10px;
}
.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.page-faq .faq-answer a:hover {
  color: var(--orange);
}
.page-faq .faq-answer strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- 图片区域 ---- */
.page-faq .faq-figure {
  margin: 0;
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #F0F4F9;
  box-shadow: var(--faq-shadow-soft);
  align-self: center;
}
.page-faq .faq-figure-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
.page-faq .faq-figure-caption {
  padding: 8px 14px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #6B7280;
  background: #F8F9FB;
  border-top: 1px solid var(--faq-border-light);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---- 底部联系栏 ---- */
.page-faq .faq-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 28px 24px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  text-align: center;
}
.page-faq .faq-cta-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0;
  line-height: 1.4;
}
.page-faq .faq-cta-bar .btn-accent {
  background: var(--orange);
  color: #FFFFFF;
  border: none;
  padding: 12px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-faq .faq-cta-bar .btn-accent:hover {
  background: #E55A2B;
  transform: translateY(-2px);
}

/* ---- 返回顶部按钮 ---- */
.page-faq .faq-scroll-btn {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.30);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-faq .faq-scroll-btn::after {
  content: '';
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") center / 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") center / 100% no-repeat;
}
.page-faq .faq-scroll-btn.is-visible {
  opacity: 0.92;
  visibility: visible;
}
.page-faq .faq-scroll-btn:hover {
  background: var(--orange);
  transform: scale(1.08);
  opacity: 1;
}

/* ===== 移动端优先 -> 桌面增强 ===== */
@media (min-width: 768px) {
  .page-faq {
    padding: 48px 0 64px;
  }
  .page-faq .container {
    padding: 0 32px;
  }
  .page-faq .faq-page-title {
    font-size: 44px;
  }
  .page-faq .faq-page-title::after {
    width: 80px;
    height: 5px;
  }
  .page-faq .faq-page-desc {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .page-faq .faq-section-title {
    font-size: 30px;
  }
  .page-faq .faq-section-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .page-faq .faq-section-body--reverse {
    flex-direction: row-reverse;
  }
  .page-faq .faq-figure {
    max-width: 340px;
    align-self: flex-start;
    margin-top: 4px;
  }
  .page-faq .faq-question {
    padding: 18px 24px;
    font-size: 17px;
  }
  .page-faq .faq-answer {
    padding: 14px 24px 22px;
    font-size: 15.5px;
  }
  .page-faq .faq-cta-bar {
    flex-direction: row;
    justify-content: space-between;
    padding: 32px 40px;
    text-align: left;
  }
  .page-faq .faq-cta-text {
    font-size: 20px;
  }
  .page-faq .faq-scroll-btn {
    bottom: 40px;
    right: 36px;
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .page-faq {
    padding: 56px 0 80px;
  }
  .page-faq .container {
    padding: 0 40px;
  }
  .page-faq .faq-page-title {
    font-size: 52px;
  }
  .page-faq .faq-section-title {
    font-size: 34px;
  }
  .page-faq .faq-section-body {
    gap: 48px;
  }
  .page-faq .faq-figure {
    max-width: 400px;
  }
  .page-faq .faq-cta-bar {
    padding: 36px 48px;
  }
}

/* 极窄屏保护 */
@media (max-width: 420px) {
  .page-faq .container {
    padding: 0 12px;
  }
  .page-faq .faq-question {
    padding: 14px 14px;
    font-size: 15px;
  }
  .page-faq .faq-answer {
    padding: 10px 14px 16px;
    font-size: 14px;
  }
  .page-faq .faq-figure {
    max-width: 100%;
  }
  .page-faq .faq-cta-bar {
    padding: 20px 16px;
  }
}
