/* ==========================================================================
   章动咨询 · 常见问题 FAQ（单页，折叠式问答）
   设计 token 继承自 index.css（--gold / --brown / --cream / --muted / --border）
   ========================================================================== */

/* ---------- 内页 Hero（与 news.css 保持一致） ---------- */
.page-hero {
  position: relative;
  padding: 168px 40px 84px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 70% at 50% -12%, rgba(200, 150, 62, 0.26), transparent 62%),
    linear-gradient(180deg, #2c1810 0%, #241109 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 150, 62, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero .ph-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.55);
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(250, 248, 245, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }
.page-hero h1 {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 1px;
}
.page-hero h1 .gradient-text {
  background: linear-gradient(111deg, var(--gold) 5%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero .ph-sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.62);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 搜索 ---------- */
.faq-search-wrap { max-width: 640px; margin: 0 auto 40px; }
.faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, 0.12);
}
.faq-search .fs-icon { color: var(--muted); flex-shrink: 0; display: flex; }
.faq-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--brown);
}
.faq-search input::placeholder { color: rgba(107, 93, 82, 0.5); }
.faq-search button {
  border: none;
  cursor: pointer;
  height: 42px;
  padding: 0 26px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  flex-shrink: 0;
}
.faq-search button:hover { background: var(--gold-dark); }

/* ---------- 分类快捷筛选 ---------- */
.faq-cats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.faq-cat {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-cat:hover { border-color: var(--gold); color: var(--gold); }
.faq-cat.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.28);
}

/* ---------- 分组 ---------- */
.faq-content { max-width: 860px; margin: 0 auto; }
.faq-group { margin-bottom: 48px; }
.faq-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.faq-group-head .fg-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(200, 150, 62, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-group-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
}
.faq-group-head .fg-count {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 3px 12px;
  border-radius: 100px;
}

/* ---------- 手风琴 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open {
  border-color: rgba(200, 150, 62, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold); }
.faq-q .fq-qmark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200, 150, 62, 0.1);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-q .fq-text { flex: 1; line-height: 1.5; }
.faq-q .fq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s;
}
.faq-q .fq-icon::before,
.faq-q .fq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.faq-q .fq-icon::before { width: 14px; height: 2px; }
.faq-q .fq-icon::after { width: 2px; height: 14px; transition: transform 0.3s, opacity 0.3s; }
.faq-item.open .fq-icon { transform: rotate(180deg); }
.faq-item.open .fq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 24px 24px 68px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.faq-a-inner p { margin-bottom: 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner ul { padding-left: 20px; margin: 8px 0; }
.faq-a-inner li { margin-bottom: 6px; }
.faq-a-inner li::marker { color: var(--gold); }
.faq-a-inner strong { color: var(--brown); }
.faq-a-inner li b { color: var(--brown); }

/* 无结果提示 */
.faq-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.faq-empty .fe-icon { font-size: 40px; margin-bottom: 14px; }
.faq-empty h3 { font-size: 18px; color: var(--brown); margin-bottom: 8px; }

/* ---------- 联系 CTA ---------- */
.faq-contact {
  margin-top: 24px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(200, 150, 62, 0.08), transparent 60%),
    var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
}
.faq-contact h3 {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
}
.faq-contact p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.faq-contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .page-hero { padding: 140px 20px 64px; }
  .page-hero h1 { font-size: 34px; }
  .faq-q { padding: 18px 18px; }
  .faq-a-inner { padding: 0 18px 20px 62px; }
  .faq-contact { padding: 32px 22px; }
  .faq-search { padding: 8px 8px 8px 18px; }
  .faq-search button { padding: 0 18px; }
}
