/* ==========================================================================
   EEYUN 统一 FAQ 模板  (static/css/faq.css)
   ---------------------------------------------------------------------------
   版式与 about / blog / seg 改版后的「规格单」语言一致：
   红色小标 + 左对齐大标题 + 细线分隔 + 右侧细 +/−，展开时才出答案。
   仅供参考的旧样式：无编号（两列排布时编号会重复起号）

     <section class="faq-sec">
       <span class="faq-eyebrow">FAQ <em>· 5 questions</em></span>
       <h2 class="faq-h2">Frequently asked questions …</h2>
       <p class="faq-lead">…</p>
       <div class="faq-wrap">
         <div class="faq-item is-open">                 <!-- 首条默认展开 -->
           <div class="faq-question">问题<span class="faq-icon"></span></div>
           <div class="faq-answer"><p>答案</p></div>
         </div>
         …
   点击行为：切换父级 .faq-item 的 is-open（各页内联一行脚本）
   ========================================================================== */

/* ---------- 标题区（新版块用，旧页面可不用） ---------- */
.faq-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: #c8102e;
}
.faq-eyebrow::before { content: ""; width: 26px; height: 2px; background: #c8102e; }
.faq-eyebrow em { font-style: normal; color: #8a979d; letter-spacing: .1em; font-weight: 500; }

.faq-h2 {
  font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; letter-spacing: -.016em;
  font-weight: 600; color: #0c1a1e; margin: 12px 0 8px;
}
.faq-lead { font-size: 14.5px; line-height: 1.7; color: #5b6a70; margin: 0; }

/* ---------- 问答列表 ---------- */
.faq-wrap {
  margin-top: 22px;
  border-top: 1px solid #e3e9eb;
}

.faq-wrap .faq-item { border-bottom: 1px solid #e3e9eb; }

.faq-wrap .faq-question {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  font-size: 15.5px; font-weight: 600; color: #0c1a1e;
  cursor: pointer; user-select: none;
  transition: color .2s ease;
}
.faq-wrap .faq-question:hover { color: #c8102e; }

/* +/− 图标：两条伪元素，展开时竖线收掉 */
.faq-wrap .faq-question .faq-icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; justify-self: end; }
.faq-wrap .faq-question .faq-icon::before,
.faq-wrap .faq-question .faq-icon::after {
  content: ""; position: absolute; background: #0c1a1e; border-radius: 1px;
  transition: transform .3s ease, background .2s ease;
}
.faq-wrap .faq-question .faq-icon::before {
  width: 100%; height: 1.5px; left: 0; top: 50%; transform: translateY(-50%);
}
.faq-wrap .faq-question .faq-icon::after {
  width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%);
}
.faq-wrap .faq-question:hover .faq-icon::before,
.faq-wrap .faq-question:hover .faq-icon::after { background: #c8102e; }
.faq-wrap .faq-item.is-open .faq-question .faq-icon::after { transform: translateX(-50%) scaleY(0); }

/* 答案：与问题文字左对齐（缩进 62px = 编号列 + 间距），默认收起 */
.faq-wrap .faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-wrap .faq-answer p {
  margin: 0; padding: 0 0 15px;
  font-size: 13.8px; line-height: 1.78; color: #5b6a70;
}
.faq-wrap .faq-item.is-open .faq-answer { max-height: 560px; }

/* ---------- 小屏 ---------- */
@media (max-width: 767px) {
  .faq-wrap { margin-top: 18px; }
  .faq-wrap .faq-question {
    grid-template-columns: 1fr 14px; gap: 12px;
    padding: 14px 0; font-size: 14.5px; line-height: 1.5;
  }
  .faq-wrap .faq-answer p { font-size: 13.2px; line-height: 1.75; }
  .faq-h2 { font-size: 21px; }
}
