/* ============================================================
   服务与支持-常见问答 (page-faq) — 主设计稿 686:2950 (X24948,Y16)
   深蓝 banner(680) + 大标题 + 搜索框 + 热门标签
   + 主体容器(240,656) 1440 宽白卡圆角16
   + 左侧问题列表(280,696) 228 宽 3折叠组 + 右问题详情(580,704) 1060 宽
   ============================================================ */
body.page-faq, body.page-faq-search { background: #F0F2F7; }

/* ---------- 顶部导航: 白色底子 (常见问答 + 搜索结果页共用) ---------- */
body.page-faq .site-header,
body.page-faq-search .site-header {
  background: #fff;
  box-shadow: inset 0 -1px 0 0 #EBEBEB;
}
body.page-faq .site-header .logo .logo-dark,
body.page-faq-search .site-header .logo .logo-dark { display: block; }
body.page-faq .site-header .logo .logo-light,
body.page-faq-search .site-header .logo .logo-light { display: none; }
body.page-faq .site-header .navbar > li > a,
body.page-faq-search .site-header .navbar > li > a { color: #2E3033; }
body.page-faq .site-header .navbar > li > a:hover,
body.page-faq-search .site-header .navbar > li > a:hover { color: #2168E5; opacity: 1; }
body.page-faq .site-header .navbar > li.active > a,
body.page-faq-search .site-header .navbar > li.active > a { color: #2168E5; }
body.page-faq .site-header .vr-pill,
body.page-faq-search .site-header .vr-pill { border-color: #5C6066; color: #2E3033; }
body.page-faq .site-header:not(.is-scrolled):not(.dd-open) .icon-btn img,
body.page-faq-search .site-header:not(.is-scrolled):not(.dd-open) .icon-btn img { filter: none; }
body.page-faq .site-header:not(.is-scrolled):not(.dd-open) .nav-toggle span,
body.page-faq-search .site-header:not(.is-scrolled):not(.dd-open) .nav-toggle span { background: #2E3033; }
body.page-faq .site-header.is-scrolled,
body.page-faq .site-header.is-solid,
body.page-faq-search .site-header.is-scrolled,
body.page-faq-search .site-header.is-solid {
  background: #fff;
  box-shadow: inset 0 -1px 0 0 #EBEBEB;
}

/* ============================================================
   banner (686:2950: 1920×680 深蓝图)
   ============================================================ */
.faq-banner {
  position: relative;
  height: 680px;
  overflow: hidden;
  margin-top: 64px;
  background: #293752;
}
.faq-banner-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;                    /* 图被 #29374F 遮罩压暗 */
}
.faq-banner-mask {
    position: absolute;
    inset: 0;
    background: hsl(218deg 32% 24% / 50%);
}
.faq-banner-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 144px;
}
.faq-banner-title {
  font-size: 48px;
  font-weight: 749;
  line-height: 72px;
  color: #fff;
}
.faq-banner-sub {
  margin: 12px auto 0;             /* auto: 限制宽度后让块本身在容器内居中 (容器是 flex column + text-align:center) */
  font-size: 22px;
  font-weight: 513;
  line-height: 40px;
  color: #fff;
  max-width: 560px;                /* 英文副标题较长 (22px 时整句约 1074px), 限制宽度折成 2 行 */
}
.faq-search {
    position: relative;
    margin-top: 84px;
    width: 800px;
    max-width: 100%;
    height: 60px;
    margin: 84px auto 0;
}
.faq-search-input {
  width: 100%;
  height: 100%;
  padding: 0 60px 0 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 53px;
  background: transparent;
  font-size: 18px;
  font-weight: 513;
  color: #fff;
  outline: none;
  box-sizing: border-box;
}
.faq-search-input::placeholder { color: #fff; }
.faq-search-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-search-ic {
  width: 24px;
  height: 24px;
  color: #fff;
  pointer-events: none;
}
.faq-hot {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    width: 800px;
    max-width: 100%;
    margin: 20px auto 0;
    padding-left: 40px;
}
.faq-hot a {
  font-size: 14px;
  font-weight: 489;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  transition: opacity .25s ease;
}
.faq-hot a:hover { opacity: .8; }

/* ============================================================
   主体 (686:2950: 容器(240,656) 1440 宽白卡圆角16, banner底744-88=656)
   ============================================================ */
.faq-main {
  position: relative;
  z-index: 2;
  width: 1440px;
  max-width: calc(100% - 48px);
  margin: -88px auto 100px;         /* 容器底 → footer 100px (设计 2190→2290) */
  display: flex;
  align-items: flex-start;          /* 左侧独立 800 滚动, 右侧详情撑高 */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* ---------- 左侧问题列表 (280,696) 228 宽 ---------- */
.faq-cats {
  flex-shrink: 0;
  width: 300px;                    /* 240..540: 列表 280..508 + 32 留白 + 线 */
  height: 800px;                   /* 设计问题列表 228×800, 超出内部滚动 */
  overflow-y: auto;
  padding: 40px 32px 40px 40px;    /* 列表 (280,696); 右 32 → 线 540 */
  box-sizing: border-box;
}
/* 滚动条样式 (轻量) */
.faq-cats::-webkit-scrollbar { width: 4px; }
.faq-cats::-webkit-scrollbar-thumb { background: #D5D9DE; border-radius: 2px; }
.faq-main::after {
  content: '';
  position: absolute;
  left: 300px;                     /* 线 x=540 = 容器 240 + 300 */
  top: 40px;                       /* Vector 78 (540,696): 容器顶 656 + 40 */
  bottom: 40px;                    /* 线底 2134 = 容器底 2174 - 40 */
  border-left: 1px solid rgba(0,0,0,.06);  /* Vector 78 stroke black 6% */
}
.faq-cat-group + .faq-cat-group { margin-top: 8px; }    /* 组间 8 (设计 852→860) */
.faq-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 32px;                /* 单行仍是 32; 组名过长时自动增高, 不再压到下一块 */
  padding: 5px 0;                  /* 5 + 22(行高) + 5 = 32 */
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: 666;
  line-height: 22px;               /* 换行后行距 22 */
  color: #2E3033;
  text-align: left;
  cursor: pointer;
}
.faq-cat-ic {
  position: relative;
  width: 16px;
  height: 16px;
  color: #BBBDBF;                  /* 设计 icon stroke (187,189,191) */
  flex: none;
  display: inline-flex;
}
.faq-cat-ic svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: opacity .25s ease;
}
.faq-cat-plus { opacity: 0; }      /* 默认(收起)隐藏 plus? 需 JS 同步 */
.faq-cat-group.is-open .faq-cat-minus { opacity: 1; }
.faq-cat-group.is-open .faq-cat-plus { opacity: 0; }
.faq-cat-group:not(.is-open) .faq-cat-minus { opacity: 0; }
.faq-cat-group:not(.is-open) .faq-cat-plus { opacity: 1; }
.faq-cat-body { margin-top: 4px; }
.faq-cat-group:not(.is-open) .faq-cat-body { display: none; }
.faq-cat-link {
  display: block;
  min-height: 40px;                /* 单行仍是 40 行距 (设计 896→936) */
  padding: 10px 0;                 /* 10 + 20(行高) + 10 = 40; 超出时自动增高, 不再重叠 */
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 513;
  line-height: 20px;               /* 换行后行距 20, 不会挤到下一项 */
  color: #2E3033;
  text-decoration: none;
  overflow-wrap: anywhere;         /* 超长英文单词/链接不撑破容器 */
  transition: color .25s ease;
}
.faq-cat-link:hover { color: #2168E5; }
.faq-cat-link.is-active { color: #2168E5; font-weight: 666; }

/* ---------- 右侧问题详情 (580,704) 1060 宽 ---------- */
.faq-detail {
  flex: 1;
  min-width: 0;
  padding: 48px 40px 80px 40px;    /* 详情 (580,704); bottom 80 → 容器底 2174 */
  box-sizing: border-box;
}
.faq-detail-title {
  margin: 0;
  text-align: center;              /* 设计 (1025,704) 详情区居中 */
  font-size: 28px;
  font-weight: 749;
  line-height: 42px;
  color: #2E3033;
}
.faq-detail-q {
  margin-top: 40px;                /* 组间距 40 (设计 938→978) */
}
.faq-detail-q:first-of-type { margin-top: 32px; }   /* 标题→首问 32 (设计 746→778) */
.faq-detail-h {
  margin: 0;
  font-size: 16px;
  font-weight: 666;
  line-height: 28px;
  color: #2E3033;
}
.faq-detail-a {
  margin-top: 12px;                /* 问题→答案 12 (设计 806→818) */
  font-size: 16px;
  font-weight: 513;
  line-height: 30px;
  color: #2E3033;
}
/* ============ 富文本编辑器内容样式 (对接 wangEditor/Quill 等) ============
   设计基线: 16px/30 行距 #2E3033 (设计答案样式), 覆盖编辑器输出的全部元素
   ================================================================ */
.faq-detail-a p,
.faq-detail-a div,
.faq-detail-a li { line-height: 30px; }
.faq-detail-a p { margin: 0 0 16px 0; }
.faq-detail-a p:last-child { margin-bottom: 0; }
.faq-detail-a h1,
.faq-detail-a h2,
.faq-detail-a h3,
.faq-detail-a h4,
.faq-detail-a h5,
.faq-detail-a h6 {
  margin: 24px 0 12px 0;
  font-weight: 666;
  line-height: 1.5;
  color: #2E3033;
}
.faq-detail-a h1 { font-size: 24px; }
.faq-detail-a h2 { font-size: 21px; }
.faq-detail-a h3 { font-size: 18px; }
.faq-detail-a h4 { font-size: 16px; }
.faq-detail-a h5 { font-size: 14px; }
.faq-detail-a h6 { font-size: 13px; }
.faq-detail-a h1:first-child,
.faq-detail-a h2:first-child,
.faq-detail-a h3:first-child { margin-top: 0; }
.faq-detail-a ul,
.faq-detail-a ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}
.faq-detail-a li {
  margin: 4px 0;
}
.faq-detail-a ul { list-style: disc; }
.faq-detail-a ul ul { list-style: circle; }
.faq-detail-a ol { list-style: decimal; }
.faq-detail-a blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 4px solid #2168E5;
  background: #F4F7FC;
  color: #2E3033;
}
.faq-detail-a a {
  color: #2168E5;
  text-decoration: underline;
}
.faq-detail-a a:hover { opacity: .8; }
.faq-detail-a strong { font-weight: 666; }
.faq-detail-a em { font-style: italic; }
.faq-detail-a code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #F1F2F4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.faq-detail-a pre {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: #F1F2F4;
  overflow-x: auto;
}
.faq-detail-a pre code { background: none; padding: 0; }
.faq-detail-a img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}
.faq-detail-a table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.faq-detail-a th,
.faq-detail-a td {
  padding: 10px 14px;
  border: 1px solid #E5E5E5;
  text-align: left;
  line-height: 26px;
}
.faq-detail-a th {
  background: #F5F6F7;
  font-weight: 666;
}
.faq-detail-a hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #E5E5E5;
}
.faq-detail-img {
  display: block;
  margin-top: 16px;                /* 答案→图 16 (设计 1218→1234) */
  width: 665px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================================
   自适应
   ============================================================ */
/* 中屏: 主体保持左右, 宽度随容器 */
@media (max-width: 1440px) {
  .faq-main { width: 100%; margin: -88px auto 100px; }
  .faq-search { width: 640px; }
}

/* 平板: 主体转纵向, 左侧分类横排为 3 分组 */
@media (max-width: 1100px) {
  .faq-banner { height: 480px; }
  .faq-banner-title { font-size: 40px; line-height: 60px; }
  .faq-banner-sub { font-size: 19px; line-height: 32px; }
  .faq-search { margin-top: 60px; }
  .faq-main { flex-direction: column; margin-top: 32px; margin-bottom: 80px; }
  .faq-cats {
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #E5E5E5;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
  }
  .faq-main::after { display: none; }   /* 纵向布局无左右分隔线 */
  .faq-cat-group { display: block !important; }
  .faq-cat-group .faq-cat-body { display: block !important; }  /* 平板全展开 */
  .faq-cat-head { cursor: default; }
  .faq-cat-ic { display: none; }                                /* 平板无折叠图标 */
  .faq-cat-group + .faq-cat-group { margin-top: 0; }
  .faq-cat-link { min-height: 36px; padding: 8px 0; }
  .faq-detail { padding: 40px 32px 32px; }
}

/* 小屏: 分类 2 列 */
@media (max-width: 900px) {
  .faq-banner { height: 440px; }
  .faq-banner-title { font-size: 36px; line-height: 54px; }
  .faq-banner-sub { font-size: 17px; line-height: 28px; }
  .faq-search { margin-top: 48px; width: 520px; }
  .faq-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .faq-detail-h { font-size: 15px; line-height: 26px; }
  .faq-detail-a p { font-size: 15px; line-height: 28px; }
}

/* ============================================================
   移动端抽屉: 悬浮按钮 + 遮罩 (默认隐藏, ≤767 生效)
   ============================================================ */
.faq-drawer-btn,
.faq-drawer-mask,
.faq-drawer-head,
.faq-drawer-close { display: none; }

/* 移动: 分类 1 列, 分组手风琴折叠, 详情缩放 */
@media (max-width: 767px) {
  .faq-banner { height: 480px; }
  .faq-banner-inner { padding-top: 90px; }
  .faq-banner-title { font-size: 34px; line-height: 52px; }
  .faq-banner-sub { font-size: 17px; line-height: 28px; }
  .faq-search { margin-top: 48px; height: 52px; width: 100%; max-width: 520px; }
  .faq-search-input { font-size: 15px; padding: 0 48px 0 24px; }
  .faq-hot { gap: 16px 24px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
  .faq-hot a { font-size: 13px; }
  .faq-main {
    margin-top: 0;               /* 原 -88px: 手机上热词会折成 2-3 行, 卡片上移会盖住热词 */
    margin-bottom: 60px;
    z-index: auto;                  /* 释放层叠上下文, 让 fixed 抽屉脱离 */
    overflow: visible;
  }
  .faq-drawer-head,
  .faq-drawer-close { display: flex; }
  /* 抽屉: 左侧滑出固定面板 */
  /* ===== 悬浮按钮 ===== */
  .faq-drawer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 1000;
    padding: 10px 18px;
    border: 0;
    border-radius: 24px;
    background: #2168E5;
    color: #fff;
    font-size: 14px;
    font-weight: 513;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(33,104,229,.35);
    transition: opacity .25s ease;
  }
  .faq-drawer-btn svg { width: 20px; height: 20px; }
  .faq-drawer-btn.is-open { opacity: 0; pointer-events: none; }

  /* ===== 遮罩: 全屏覆盖, 位于抽屉之下 ===== */
  .faq-drawer-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(12, 18, 28, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .faq-drawer-mask.is-show {
    display: block;
    opacity: 1;
  }

  /* ===== 抽屉: 左侧滑出, 最高层级盖住遮罩 ===== */
  .faq-cats {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 600;
    width: 78vw;
    max-width: 320px;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
    display: block;
    margin: 0;
    padding: 0 0 32px;
    background: #fff;
    border-right: 1px solid #E5E5E5;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    -webkit-overflow-scrolling: touch;
  }
  .faq-cats.is-drawer-open { transform: translateX(0); }
  .faq-main::after { display: none; }

  /* 抽屉顶部栏 */
  .faq-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #EEF0F3;
    margin-bottom: 6px;
  }
  .faq-drawer-title {
    font-size: 18px;
    font-weight: 666;
    line-height: 28px;
    color: #2E3033;
  }
  .faq-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F2F4F7;
    color: #5C6066;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
  }
  .faq-drawer-close svg { width: 18px; height: 18px; }
  .faq-drawer-close:active { background: #E3E8F0; color: #2168E5; }

  /* 抽屉内分组 */
  .faq-cat-group {
    padding: 0 20px;
  }
  .faq-cat-group + .faq-cat-group { margin-top: 8px; }
  .faq-cat-head {
    font-size: 16px;
    line-height: 28px;
    min-height: 44px;
    padding: 8px 0;
    cursor: pointer;
  }
  .faq-cat-link {
    min-height: 40px;
    padding: 10px 0;
    font-size: 14px;
  }
  .faq-cat-group .faq-cat-body { display: none !important; }
  .faq-cat-group.is-open .faq-cat-body { display: block !important; }
  .faq-cat-ic { display: inline-flex; }
  .faq-detail { padding: 28px 20px 24px; }
  .faq-detail-title { font-size: 22px; line-height: 32px; }
  .faq-detail-q { margin-top: 32px; }
  .faq-detail-q:first-of-type { margin-top: 24px; }
  .faq-detail-h { font-size: 15px; line-height: 26px; }
  .faq-detail-a { margin-top: 10px; }
  .faq-detail-a p { font-size: 14px; line-height: 26px; }
  .faq-detail-a ul, .faq-detail-a ol { padding-left: 20px; }
  .faq-detail-img { width: 100%; }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .faq-banner { height: 440px; }
  .faq-banner-title { font-size: 28px; line-height: 42px; }
  .faq-banner-sub { font-size: 15px; line-height: 24px; }
  .faq-cats { padding: 16px; }
  .faq-detail { padding: 24px 16px 20px; }
}

/* 分类无问答 → 暂无内容状态 (带图标, 同视频中心/下载页) */
.faq-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 120px;
}
.faq-status .status-ill {
  width: 306px;
  max-width: 100%;
}
.faq-status .status-ill img,
.faq-status .status-ill svg {
  display: block;
  width: 100%;
  height: auto;
}
.faq-status .status-msg {
  margin-top: 24px;
  text-align: center;
}
.faq-status .status-title {
  margin: 0;
  font-size: 20px;
  font-weight: 666;
  line-height: 30px;
  color: #2E3033;
}
.faq-status .status-sub {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 513;
  line-height: 20px;
  color: #2E3033;
  opacity: .85;
}

/* 右侧文章详情: 默认只显示当前激活篇 */
.faq-detail-item { display: none; }
.faq-detail-item.is-active { display: block; }

/* ============ 移动端 banner 图 (后台可上传; 留空回退 PC 图) ============ */
.faq-banner-img--m { display: none; }

@media (max-width: 767px) {
  .faq-banner-img--pc { display: none; }
  .faq-banner-img--m { display: block; }
}

/* ============================================================
   移动端: 推荐词布局修正 (客户要求)
   —— 原 .faq-hot 无 flex-wrap(窄屏挤成 3+1 且不居中) + padding-left:40px 把整块推右;
      移动端改为: 可换行 + 真正居中 + 合理行列间距, 桌面设计保持不变
   ============================================================ */
@media (max-width: 767px) {
  .faq-hot {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 10px;                    /* 客户要求: 行 5px / 列 10px */
    padding-left: 0;                  /* 去掉桌面 40px 偏移, 真正居中 */
    padding-right: 0;
  }
}

/* 移动端: 去掉 banner 遮罩 (客户要求) */
@media (max-width: 767px) {
  .faq-banner-mask { display: none; }
}
