/* ============================================================
   Megatex Blanket — FAQ 样式（job 模型：list.php / show.php）
   结构：手风琴列表（details/summary 原生折叠） / 简答面板 / 返回条
   依赖：news.css（hero / 面包屑 / 正文排版 / 分页）
   ============================================================ */

/* ---------- 1. 列表主体 ---------- */
.faq-body { background: #fff; padding: 52px 0 88px; }
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- 2. 手风琴卡片 ---------- */
.faq-item {
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: #c9c4bb; }
.faq-item details[open] {
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(44, 42, 37, .08);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: 10px;
}

/* 展开指示器：+ 转 × */
.faq-tgl {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.faq-tgl::before,
.faq-tgl::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}
.faq-tgl::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-tgl::after { transform: translate(-50%, -50%) rotate(0deg); }

/* 答案区 */
.faq-a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: #55504a;
  line-height: 1.75;
}
.faq-a p { margin: 0 0 12px; }
.faq-a p:last-of-type { margin-bottom: 0; }
.faq-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.faq-more:hover { opacity: .75; }

/* ---------- 3. 详情页：简答面板 ---------- */
.faq-answer-brief {
  margin-top: 26px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: #44403a;
  line-height: 1.75;
}
.faq-answer-brief p { margin: 0; }

/* ---------- 4. 详情页：底部返回条 ---------- */
.faq-back {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-back-link {
  font-size: 14px;
  color: #666;
}
.faq-back-link:hover { color: var(--ink); text-decoration: underline; }
.faq-back-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 12px 22px;
  border-radius: 6px;
  transition: background .2s;
}
.faq-back-cta:hover { background: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .faq-body { padding: 36px 0 64px; }
  .faq-list { gap: 10px; }
  .faq-item summary { padding: 15px 16px; font-size: 15px; }
  .faq-a { padding: 0 16px 16px; font-size: 14px; }
  .faq-answer-brief { padding: 16px 18px; font-size: 14px; }
  .faq-back { flex-direction: column; align-items: flex-start; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-tgl::before, .faq-tgl::after, .faq-back-cta { transition: none; }
}
