/* ===== 页面专属 CSS：.page-faq ===== */
/* 移动端优先，窄屏不横向溢出 */
.page-faq {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg-light, #F5F5F5);
  font-family: var(--font-body, Georgia, 'Times New Roman', serif);
  color: var(--text-dark, #1A1A1A);
}

.page-faq .container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---- 面包屑 ---- */
.page-faq .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 18px 0 10px;
  font-size: 0.85rem;
  color: var(--text-medium, #4A4A4A);
}
.page-faq .breadcrumb-link {
  color: var(--primary, #0B3D2E);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition, 0.25s ease);
}
.page-faq .breadcrumb-link:hover,
.page-faq .breadcrumb-link:focus {
  color: var(--accent, #FF6B35);
  outline: none;
  text-decoration: underline;
}
.page-faq .breadcrumb-sep {
  margin: 0 2px;
  color: var(--border, #D0D0D0);
}
.page-faq .breadcrumb-item {
  color: var(--text-medium, #4A4A4A);
  font-weight: 400;
}

/* ---- 页面标题区 ---- */
.page-faq .faq-hero {
  padding: 20px 0 16px;
  border-bottom: 3px solid var(--accent, #FF6B35);
  margin-bottom: 28px;
}
.page-faq .faq-hero-title {
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--primary-dark, #07261D);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}
.page-faq .faq-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium, #4A4A4A);
  max-width: 680px;
  margin: 0;
}

/* ---- 搜索框 ---- */
.page-faq .faq-search-wrap {
  position: relative;
  margin-bottom: 32px;
  max-width: 640px;
}
.page-faq .faq-search-input {
  display: block;
  width: 100%;
  padding: 14px 48px 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body, Georgia, 'Times New Roman', serif);
  color: var(--text-dark, #1A1A1A);
  background: var(--bg-white, #FFFFFF);
  border: 2px solid var(--border, #D0D0D0);
  border-radius: var(--radius, 4px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.page-faq .faq-search-input::placeholder {
  color: #999;
  opacity: 1;
}
.page-faq .faq-search-input:focus {
  border-color: var(--accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}
.page-faq .faq-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-medium, #4A4A4A);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 手风琴整体 ---- */
.page-faq .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

/* ---- 分类标题 ---- */
.page-faq .faq-category {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border, #D0D0D0);
  border-radius: var(--radius, 4px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
  overflow: hidden;
  transition: box-shadow var(--transition, 0.25s ease);
}
.page-faq .faq-category:hover {
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.10));
}
.page-faq .faq-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin: 0;
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--primary, #0B3D2E);
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.04) 0%, rgba(255, 107, 53, 0.04) 100%);
  border-bottom: 2px solid var(--primary-light, #1A6B4D);
}
.page-faq .faq-category-icon {
  display: flex;
  align-items: center;
  color: var(--accent, #FF6B35);
  flex-shrink: 0;
}

/* ---- 手风琴条目列表容器 ---- */
.page-faq .faq-items {
  display: flex;
  flex-direction: column;
}

/* ---- 单个条目 details/summary ---- */
.page-faq .faq-item {
  border-bottom: 1px solid var(--border, #D0D0D0);
  transition: background var(--transition, 0.25s ease);
}
.page-faq .faq-item:last-child {
  border-bottom: none;
}
.page-faq .faq-item:hover {
  background: rgba(11, 61, 46, 0.02);
}

.page-faq .faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-dark, #1A1A1A);
  transition: color var(--transition, 0.25s ease), background var(--transition, 0.25s ease);
  outline: none;
}
.page-faq .faq-question::-webkit-details-marker {
  display: none;
}
.page-faq .faq-question::marker {
  display: none;
  content: '';
}
.page-faq .faq-question:hover,
.page-faq .faq-question:focus {
  color: var(--primary, #0B3D2E);
  background: rgba(255, 107, 53, 0.06);
}
.page-faq .faq-question:focus-visible {
  outline: 2px solid var(--accent, #FF6B35);
  outline-offset: -2px;
}

.page-faq .faq-q-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary, #0B3D2E);
  color: var(--text-on-primary, #FFFFFF);
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.page-faq .faq-q-text {
  flex: 1;
  min-width: 0;
}
.page-faq .faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light, #1A6B4D);
  transition: transform var(--transition, 0.3s ease);
}
.page-faq .faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  color: var(--accent, #FF6B35);
}

/* ---- 答案区 ---- */
.page-faq .faq-answer {
  padding: 0 20px 4px 56px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium, #4A4A4A);
}
.page-faq .faq-answer-inner {
  padding-bottom: 18px;
}
.page-faq .faq-answer p {
  margin: 0 0 12px 0;
}
.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- 答案内图片 ---- */
.page-faq .faq-ans-img-icon {
  float: right;
  margin: 0 0 12px 16px;
  width: 80px;
  height: auto;
  border-radius: var(--radius, 4px);
  background: var(--bg-light, #F5F5F5);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}
.page-faq .faq-ans-figure {
  margin: 16px 0;
  text-align: center;
}
.page-faq .faq-ans-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius, 4px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  object-fit: cover;
  aspect-ratio: 600 / 400;
  background: var(--bg-light, #F5F5F5);
}
.page-faq .faq-ans-figure figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-medium, #4A4A4A);
  font-style: italic;
}

/* ---- 底部CTA ---- */
.page-faq .faq-footer-cta {
  margin-top: 20px;
  margin-bottom: 48px;
}
.page-faq .faq-cta-card {
  background: var(--primary, #0B3D2E);
  color: var(--text-on-primary, #FFFFFF);
  padding: 36px 32px;
  border-radius: var(--radius, 4px);
  text-align: center;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.12));
  border: 1px solid var(--primary-light, #1A6B4D);
}
.page-faq .faq-cta-title {
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: var(--accent-light, #FF8C5A);
}
.page-faq .faq-cta-desc {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  opacity: 0.9;
}
.page-faq .faq-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-faq .faq-cta-or {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}
.page-faq .faq-cta-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

/* ---- 全局按钮复用（作用域内重定义） ---- */
.page-faq .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headings, Impact, 'Arial Black', sans-serif);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  transition: background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}
.page-faq .btn:hover,
.page-faq .btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.12));
}
.page-faq .btn:focus-visible {
  outline: 2px solid var(--accent, #FF6B35);
  outline-offset: 2px;
}
.page-faq .btn-primary {
  background: var(--primary, #0B3D2E);
  color: var(--text-on-primary, #FFFFFF);
}
.page-faq .btn-primary:hover {
  background: var(--primary-dark, #07261D);
}
.page-faq .btn-accent {
  background: var(--accent, #FF6B35);
  color: var(--text-on-primary, #FFFFFF);
}
.page-faq .btn-accent:hover {
  background: var(--accent-light, #FF8C5A);
}

/* ---- 工具类 ---- */
.page-faq .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== 媒体查询：桌面端 ≥ 768px ===== */
@media (min-width: 768px) {
  .page-faq .faq-hero-title {
    font-size: 3rem;
  }
  .page-faq .faq-hero-desc {
    font-size: 1.1rem;
  }
  .page-faq .faq-category-title {
    font-size: 1.5rem;
    padding: 18px 28px;
  }
  .page-faq .faq-question {
    padding: 18px 28px;
    font-size: 1.05rem;
  }
  .page-faq .faq-answer {
    padding: 0 28px 6px 64px;
    font-size: 1rem;
  }
  .page-faq .faq-ans-img-icon {
    width: 80px;
    margin: 0 0 16px 20px;
  }
  .page-faq .faq-cta-card {
    padding: 48px 64px;
  }
  .page-faq .faq-cta-title {
    font-size: 2rem;
  }
  .page-faq .faq-search-input {
    padding: 16px 52px 16px 22px;
    font-size: 1.05rem;
  }
  .page-faq .faq-search-wrap {
    max-width: 700px;
  }
}

/* ===== 桌面宽屏 ≥ 1024px ===== */
@media (min-width: 1024px) {
  .page-faq .faq-accordion {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 880px;
  }
  .page-faq .faq-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .page-faq .faq-hero-title {
    font-size: 3.2rem;
  }
  .page-faq .faq-category-title {
    font-size: 1.6rem;
  }
  .page-faq .faq-cta-card {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ===== 确保窄屏无横向溢出 ===== */
@media (max-width: 480px) {
  .page-faq .faq-answer {
    padding-left: 20px;
    padding-right: 12px;
  }
  .page-faq .faq-q-marker {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
  .page-faq .faq-q-text {
    font-size: 0.92rem;
  }
  .page-faq .faq-cta-card {
    padding: 24px 16px;
  }
  .page-faq .faq-cta-title {
    font-size: 1.3rem;
  }
  .page-faq .faq-cta-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq .faq-cta-or {
    display: none;
  }
  .page-faq .faq-ans-img-icon {
    float: none;
    display: block;
    margin: 0 auto 12px;
  }
}
