/* ======================================
   发稿大师 - FAQ 常见问题专题页
   ====================================== */

/* banner：与「联系我们 / GEO发稿 / 媒体资源 / 媒体资讯」等页共用 common.css 的 .page-banner
   （深海军蓝→宝蓝渐变 + 白字 + 淡蓝强调色；小标签用 .hero-eyebrow）。
   2026-09-12 由原「浅底 + 橙色强调」改版 —— 用户要求与联系我们专题页效果一致。
   本文件只负责 FAQ 专属构件（搜索框 / 署名行），底色与字号不再在这里定义。 */
.faq-hero .lead {
  font-size: 18px;
  color: var(--c-dark-on-sub);
  max-width: 720px;
  line-height: 1.7;
}

/* 搜索框：深底上保留白底输入（对比度最高）；图标是单色线性 SVG，不用 emoji */
.faq-search {
  max-width: 580px;
  margin: 32px 0 0;
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
  color: var(--c-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.faq-search input::placeholder { color: var(--c-text-mute); }

.faq-search input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(0,82,217, .3);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--c-text-mute);
  pointer-events: none;
}

/* 分类导航 */
.faq-nav {
  background: #fff;
  border-bottom: 1px solid #F0F0F0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.faq-nav-list {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.faq-nav-list a {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f5f7fb;
  color: var(--c-text);
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
}

.faq-nav-list a:hover {
  background: #ECF2FE;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* 分类区块 */
.faq-section {
  padding: 48px 0;
  border-bottom: 1px solid #F0F0F0;
}

.faq-section:last-child { border-bottom: none; }

.faq-section .sec-head {
  margin-bottom: 32px;
}

.faq-section .sec-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-section .sec-head h2 .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), #3071E8);
  color: #fff;
  font-size: 20px;
}

.faq-section .sec-head h2 .badge.acc { background: linear-gradient(135deg, var(--c-accent), #FFB84D); }
.faq-section .sec-head h2 .badge.grn { background: linear-gradient(135deg, var(--c-success), #43C69B); }
.faq-section .sec-head h2 .badge.gray { background: linear-gradient(135deg, #6C7A93, #98A5BD); }

.faq-section .sec-head .sec-sub {
  color: var(--c-text-mute);
  font-size: 14px;
  padding-left: 52px;
}

/* 单个 Q&A */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--c-primary);
  box-shadow: 0 6px 20px rgba(0,82,217, .08);
}

.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
}

.faq-q .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), #3071E8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.faq-q .q-text { flex: 1; }

.faq-q .arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  transition: transform .3s;
}

.faq-item.is-open .faq-q .arrow { transform: rotate(-135deg); }

.faq-a {
  display: none;
  padding: 0 22px 22px 64px;
  color: var(--c-text-mute);
  line-height: 1.85;
  font-size: 14.5px;
}

.faq-a strong { color: var(--c-text); }
.faq-a .hl { color: var(--c-accent); font-weight: 700; }

.faq-item.is-open .faq-a { display: block; }

/* 关键词搜索：只切 hidden 属性（显式写 display:none，避免被作者样式盖掉） */
.faq-item[hidden],
.faq-section[hidden],
.faq-empty[hidden] { display: none; }

/* 搜索无结果时的空状态 */
.faq-empty {
  padding: 72px 24px 80px;
  text-align: center;
  color: var(--c-text-mute);
}
.faq-empty svg { width: 40px; height: 40px; color: #C3CBD9; }
.faq-empty p { margin: 14px 0 0; font-size: 15px; }
.faq-empty a { color: var(--c-primary); font-weight: 600; }

/* 底部 CTA */
.faq-cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, #3071E8 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.faq-cta h2 {
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 800;
}

.faq-cta p {
  font-size: 16px;
  opacity: .92;
  margin: 0 0 28px;
}

.faq-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-cta .btn-white {
  background: #fff;
  color: var(--c-primary);
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.faq-cta .btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

@media (max-width: 768px) {
  /* banner 的 h1 字号由 common.css 的 .page-banner 断点统一处理（30px） */
  .faq-section { padding: 32px 0; }
  .faq-q { font-size: 14px; padding: 14px 16px; }
  .faq-a { padding-left: 50px; padding-right: 16px; }
  .faq-byline { gap: 6px 16px; }
}

/* ===== EEAT：内容审核与更新署名（深底浅字，随 banner 一起改深色）===== */
.faq-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--c-dark-on-sub);
}

.faq-byline span { display: inline-flex; align-items: center; gap: 6px; }

.faq-byline .byline-icon {
    width: 14px;
    height: 14px;
    color: var(--c-dark-on-hi);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .faq-q { font-size: 13px; padding: 12px 14px; }
    .faq-a { padding-left: 14px; padding-right: 14px; font-size: 13px; }
    .faq-section { padding: 24px 0; }
}
