/* ============================================================
   洛华艾芭官网 · 常见问题 FAQ 板块样式
   适用：/faq/ 列表页 · /faq/xxx.html 详情页 · 首页 FAQ 模块
   配色铁律：暖白#F6F6F3 / #FFFFFF 75% + 李子黑#211922 20% + 品牌红#E60023 ≤5%
   ============================================================ */

/* ---------------- HERO（与全站列表页统一） ---------------- */
.f-hero {
  background: radial-gradient(ellipse at 82% 16%, rgba(230, 0, 35, .10), transparent 52%),
              linear-gradient(135deg, #1A1715 0%, #221E1B 55%, #2C2622 100%);
  color: #fff; padding: 46px 0 40px; text-align: center; position: relative; overflow: hidden;
}
.f-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 22%, rgba(255,255,255,.14) 0%, transparent 52%);
}
.f-hero .container { position: relative; z-index: 2; }
.f-hero__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: .16em; color: var(--brand-light);
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.1);
}
.f-hero h1 { margin-top: 18px; font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.25; }
.f-hero h1 em { font-style: normal; color: #FF5A5F; }
.f-hero__sub {
  margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.85);
  max-width: 760px; margin-left: auto; margin-right: auto;
}
/* HERO 内快捷数据条 */
.f-hero__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.72);
}
.f-hero__facts b { color: #fff; font-weight: 700; }

/* ---------------- 分类 Tab ---------------- */
.faq-cats {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft);
}
.faq-cats__in {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none;
}
.faq-cats__in::-webkit-scrollbar { display: none; }
.faq-cat {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); background: var(--bg-soft); border: 1px solid transparent;
  transition: all .18s ease; white-space: nowrap;
}
.faq-cat:hover { color: var(--ink); border-color: var(--line); }
.faq-cat.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-cat span { font-size: 12px; opacity: .65; margin-left: 5px; }

/* ---------------- 问答列表 ---------------- */
.faq-wrap { max-width: 940px; margin: 0 auto; }
.faq-count { font-size: 13px; color: var(--ink-3); margin: 22px 0 14px; }
.faq-count b { color: var(--red); font-weight: 700; }

.faq-group { margin-bottom: 34px; scroll-margin-top: 80px; }
.faq-group__hd {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
}
.faq-group__idx {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--ink);
  color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.faq-group__tt { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.faq-group__en { font-size: 12px; color: var(--ink-3); letter-spacing: .14em; margin-left: 2px; }

.faq-item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { border-color: var(--line); box-shadow: var(--shadow); }
.faq-item.is-open { border-color: rgba(230,0,35,.28); box-shadow: var(--shadow); }

/* 问题行：图 + 问 + 简答 */
.faq-q {
  display: grid; grid-template-columns: 176px 1fr 44px; gap: 18px;
  align-items: start; padding: 16px; width: 100%; text-align: left;
}
.faq-q__pic {
  width: 176px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-soft);
}
.faq-q__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faq-q__body { min-width: 0; }
.faq-q__cat {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: .04em; margin-bottom: 6px;
}
.faq-q__tt { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.faq-q__tt::before { content: "Q"; color: var(--red); font-weight: 900; margin-right: 8px; }
.faq-q__ans {
  margin-top: 7px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.faq-item.is-open .faq-q__ans { display: none; }
.faq-q__more {
  margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 4px;
}
.faq-q__more::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}
.faq-item.is-open .faq-q__more::after { transform: rotate(-135deg) translateY(-1px); }
.faq-q__arrow {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* 展开的完整答案（始终存在于 DOM，利于搜索与 AI 抓取） */
.faq-a { padding: 0 16px 18px 210px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a__in {
  background: var(--bg-soft); border-radius: 14px; padding: 18px 20px;
  font-size: 15.5px; line-height: 1.95; color: var(--ink);
}
.faq-a__in p { margin-bottom: 12px; }
.faq-a__in p:last-child { margin-bottom: 0; }
.faq-a__in b { color: var(--ink); font-weight: 700; }
.faq-a__in ul { margin: 10px 0; }
.faq-a__in li {
  position: relative; padding-left: 18px; margin-bottom: 7px; color: var(--ink-2);
}
.faq-a__in li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--red);
}
.faq-a__in li b { color: var(--ink); }
.faq-a__foot {
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.faq-a__foot a { color: var(--red); font-weight: 600; }

/* 底部提问条 */
.faq-ask {
  margin-top: 8px; background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 26px 24px; text-align: center;
}
.faq-ask__tt { font-size: 19px; font-weight: 800; }
.faq-ask__sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.faq-ask__tel {
  display: inline-block; margin-top: 14px; font-size: 30px; font-weight: 800;
  color: var(--ink); letter-spacing: .02em; font-family: var(--num-font);
}
.faq-ask__btns { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 详情页 ---------------- */
.fd-main { max-width: 880px; margin: 0 auto; }
.fd-q {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 20px;
}
.fd-q__cat { font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .06em; }
.fd-q__tt { margin-top: 10px; font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; line-height: 1.42; }
.fd-q__tt::before { content: "Q"; color: var(--red); font-weight: 900; margin-right: 10px; }
.fd-q__meta {
  margin-top: 12px; font-size: 13px; color: var(--ink-3);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.fd-a { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.fd-a__pic { border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.fd-a__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fd-a__pic figcaption {
  padding: 9px 12px; font-size: 12.5px; color: var(--ink-3); background: var(--bg-soft);
}
.fd-a__body { font-size: 16px; line-height: 1.95; color: var(--ink); }
.fd-a__body::before {
  content: "A"; display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: var(--ink); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 800;
  margin-right: 10px; vertical-align: 2px;
}
.fd-a__body p { margin-bottom: 14px; }
.fd-a__body ul { margin: 12px 0; }
.fd-a__body li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-2); }
.fd-a__body li::before {
  content: ""; position: absolute; left: 5px; top: 13px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--red);
}
.fd-a__body li b { color: var(--ink); }

/* 相关推荐 */
.fd-rel { margin-top: 34px; }
.fd-rel__hd {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.fd-rel__tt { font-size: 17px; font-weight: 800; }
.fd-rel__en { font-size: 12px; color: var(--ink-3); letter-spacing: .14em; }
.fd-rel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fd-rel__item {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 14px; background: #fff; transition: all .18s ease;
}
.fd-rel__item:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-1px); }
.fd-rel__pic { width: 72px; flex: 0 0 72px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; }
.fd-rel__pic img { width: 100%; height: 100%; object-fit: cover; }
.fd-rel__tt2 {
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd-rel__cat { margin-top: 6px; font-size: 12px; color: var(--red); font-weight: 600; }

/* 上/下篇 */
.fd-pager {
  margin-top: 26px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap;
}
.fd-pager a {
  flex: 1 1 300px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: #fff; font-size: 14px; color: var(--ink-2); transition: all .18s ease;
}
.fd-pager a:hover { border-color: var(--line); box-shadow: var(--shadow); }
.fd-pager a b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-pager a span { font-size: 12px; color: var(--ink-3); }

/* ---------------- 首页 FAQ 模块 ---------------- */
.hfaq { background: var(--bg-soft); }
.hfaq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.hfaq__item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.hfaq__item:hover { border-color: var(--line); box-shadow: var(--shadow); }
.hfaq__hd { display: grid; grid-template-columns: 96px 1fr 34px; gap: 14px; align-items: start;
  padding: 14px; width: 100%; text-align: left; }
.hfaq__pic { width: 96px; aspect-ratio: 1/1; border-radius: 11px; overflow: hidden; background: var(--bg-soft); }
.hfaq__pic img { width: 100%; height: 100%; object-fit: cover; }
.hfaq__cat { display: block; font-size: 11.5px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.hfaq__tt { display: block; margin-top: 5px; font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.hfaq__tt::before { content: "Q"; color: var(--red); font-weight: 900; margin-right: 6px; }
.hfaq__arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px;
}
.hfaq__bd { display: none; padding: 0 14px 14px 124px; }
.hfaq__item.is-open .hfaq__bd { display: block; }
.hfaq__a {
  background: var(--bg-soft); border-radius: 12px; padding: 14px 16px;
  font-size: 14.5px; line-height: 1.85; color: var(--ink-2);
}
.hfaq__a b { color: var(--ink); }
.hfaq__foot { margin-top: 10px; font-size: 12.5px; }
.hfaq__foot a { color: var(--red); font-weight: 600; }
.hfaq__more { margin-top: 24px; text-align: center; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .faq-q { grid-template-columns: 128px 1fr 34px; gap: 14px; padding: 14px; }
  .faq-q__pic { width: 128px; }
  .faq-a { padding: 0 14px 16px; }
  .fd-a { grid-template-columns: 1fr; gap: 16px; }
  .fd-a__pic { max-width: 340px; }
  .hfaq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .f-hero { padding: 34px 0 30px; }
  .f-hero__facts { gap: 6px 16px; font-size: 12px; }
  .faq-q { grid-template-columns: 1fr; gap: 12px; }
  .faq-q__pic { width: 100%; aspect-ratio: 16 / 9; }
  .faq-q__arrow { display: none; }
  .faq-q__tt { font-size: 16px; }
  .faq-q__ans { -webkit-line-clamp: 3; }
  .faq-a { padding: 0 14px 16px; }
  .faq-a__in { padding: 15px 16px; font-size: 15px; }
  .fd-q { padding: 20px 18px; }
  .fd-rel__grid { grid-template-columns: 1fr; }
  .hfaq__hd { grid-template-columns: 72px 1fr 30px; gap: 12px; }
  .hfaq__pic { width: 72px; }
  .hfaq__bd { padding: 0 14px 14px 98px; }
  .faq-ask { padding: 22px 18px; }
  .faq-ask__tel { font-size: 26px; }
}
@media (max-width: 480px) {
  .hfaq__bd { padding: 0 14px 14px; }
  .hfaq__tt { font-size: 15px; }
}
