/* TERENCE FQA 页样式覆盖 —— 继承官网 zuoan.css，仅保留页面级细节 */

/* ---------- 顶部标题 + 搜索 ---------- */
.fqa-hero{
  background:#fff;
  padding:40px 0 48px;
  border-bottom:1px solid #ddd;
}
.fqa-hero__title{
  font-size:30px;
  font-weight:700;
  color:#151515;
  margin:0 0 8px;
}
.fqa-hero__sub{
  font-size:14px;
  color:#666;
  margin:0 0 26px;
}
.fqa-search-wrap{
  max-width:680px;
  margin:0 auto;
  position:relative;
}
/* 搜索框：对齐官网 .media-search，只加长加高 */
.fqa-search.media-search{
  position:relative;
  width:100%;
  float:none;
  display:block;
  margin:0;
  height:50px;
}
.fqa-search.media-search input{
  width:100%;
  height:50px;
  border-radius:25px;
  border:1px solid #ddd;
  background:#fff;
  padding:0 60px 0 22px;
  font-size:14px;
  color:#333;
  outline:none;
  transition:border-color .25s, box-shadow .25s;
}
.fqa-search.media-search input:focus{
  border-color:var(--svc-brand,#dbbc87);
  box-shadow:0 0 0 4px rgba(219,188,135,.12);
}
.fqa-search.media-search button{
  position:absolute;
  right:2px;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  line-height:48px;
  border:none;
  background:transparent;
  color:#333;
  font-size:18px;
  cursor:pointer;
  transition:color .2s;
}
.fqa-search.media-search button:hover{
  color:var(--svc-brand,#dbbc87);
}

/* FQA 搜索建议下拉 */
.fqa-suggest{
  position:absolute;
  left:0; right:0; top:calc(100% + 8px);
  background:#fff;
  border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.12);
  border:1px solid #eee;
  padding:6px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .2s, transform .2s, visibility .2s;
  z-index:100;
  text-align:left;
  max-height:360px;
  overflow:auto;
}
.fqa-suggest.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.fqa-suggest__item{
  display:block;
  padding:11px 20px;
  color:#333;
  font-size:14px;
  cursor:pointer;
  transition:background .15s, color .15s;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.fqa-suggest__item:hover{
  background:#fbf6ec;
  color:var(--svc-brand,#dbbc87);
}

/* ---------- 两栏布局（学习 baoyangxuzhi 浮窗卡片） ---------- */
.fqa-cols{
  display:flex;
  gap:40px;
  align-items:flex-start;
}
.fqa-side{
  width:280px;
  flex:0 0 280px;
  /* 撑满问答区域，为内部 sticky 卡片提供滚动空间。 */
  align-self:stretch;
}
.fqa-float-card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  padding:18px 16px;
  position:sticky;
  top:90px;
  max-height:calc(100vh - 110px);
  overflow-y:auto;
  z-index:10;
}
.fqa-float-card__h{
  font-size:14px;
  color:#999;
  margin-bottom:10px;
  padding-left:10px;
}
.fqa-float-list{
  list-style:none;
  margin:0;
  padding:0;
}
/* 分类按钮自带描边，li 之间不再画分隔线
   （否则每个按钮顶部会出现一条多余的横线：li 的 border-top + 按钮自身 border 叠成双线） */
.fqa-float-list li,
.fqa-float-list li + li{
  border:0;
}
/* 分类按钮：黑字 + 浅灰底，悬停/选中变金色 */
.fqa-cat{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  text-align:left;
  background:#f5f5f5;
  border:1px solid #eee;
  border-radius:8px;
  padding:12px 10px;
  font-size:14px;
  color:#151515;
  cursor:pointer;
  transition:background .2s, color .2s, border-color .2s;
  margin-bottom:8px;
}
.fqa-cat i{
  color:#999;
  font-size:14px;
  transition:color .2s, transform .2s;
}
.fqa-cat:hover{
  color:var(--svc-brand,#dbbc87);
  background:#fbf6ec;
  border-color:#ecdcc0;
}
.fqa-cat:hover i{
  color:var(--svc-brand,#dbbc87);
}
.fqa-cat.on{
  background:#fbf6ec;
  color:var(--svc-brand,#dbbc87);
  border-color:#ecdcc0;
  font-weight:600;
}
.fqa-cat.on i{
  color:var(--svc-brand,#dbbc87);
  transform:translateX(2px);
}

.fqa-main{
  flex:1;
  min-width:0;
}

/* ---------- 问答行（说明书列表风格） ---------- */
.fqa-row{
  background:transparent;
  border-radius:0;
  padding:26px 0;
  margin-bottom:0;
  border-bottom:1px solid #eee;
  transition:background .2s;
}
.fqa-row:hover{
  background:#fafafa;
}
.fqa-row--highlight{
  animation:fqaPulse 1.6s ease;
}
@keyframes fqaPulse{
  0%{ background:rgba(219,188,135,.12); }
  70%{ background:rgba(219,188,135,0); }
  100%{ background:rgba(219,188,135,0); }
}
.fqa-row__q{
  font-size:20px;
  font-weight:700;
  color:#151515;
  margin-bottom:10px;
  line-height:1.5;
}
.fqa-row__a{
  font-size:14px;
  color:#666;
  line-height:1.9;
}
/* 答案内自动识别的超链接：品牌亮金 + 下划线，点击在新标签页跳转 */
.fqa-link,
.fqa-row__a a,
.fqa-detail__answer a{
  color:var(--svc-brand,#dbbc87);
  font-family:Bfont, sans-serif;
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-color:rgba(219,188,135,.45);
  word-break:break-all;
  transition:color .2s, text-decoration-color .2s;
}
.fqa-link:hover,
.fqa-row__a a:hover,
.fqa-detail__answer a:hover{
  color:var(--svc-brand,#dbbc87);
  text-decoration-color:rgba(219,188,135,.85);
}
/* 外链标记 ↗，提示可点击跳转（仅作用于自动识别出的超链接） */
.fqa-link::after{
  content:"\2197";
  font-size:.82em;
  margin-left:2px;
  text-decoration:none;
}
.fqa-row__full{
  display:none;
  font-size:14px;
  color:#555;
  line-height:1.9;
  margin-top:10px;
}
/* 「查看解答 >」按钮：默认白底黑字，悬停变品牌金色背景（每个答案均显示，点击跳转详情页） */
.fqa-row__more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  padding:9px 20px;
  background:#fff;
  color:#151515;
  font-size:14px;
  font-weight:600;
  border:1px solid #ddd;
  border-radius:22px;
  text-decoration:none;
  cursor:pointer;
  transition:background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.fqa-row__more:hover,
.fqa-row__more:focus-visible{
  background:var(--svc-brand,#dbbc87);
  border-color:var(--svc-brand,#dbbc87);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(219,188,135,.35);
}
.fqa-row__more i{
  font-size:12px;
}
.fqa-empty{
  text-align:center;
  padding:50px 0;
  color:#999;
  font-size:14px;
}

/* ---------- 折叠求助表单 ---------- */
.ask-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  background:#f5f5f5;
  border:1px solid #eee;
  color:#151515;
  border-radius:12px;
  padding:16px;
  font-size:15px;
  font-weight:600;
  margin:40px 0 0;
  transition:background .2s, color .2s, border-color .2s;
}
.ask-toggle:hover{
  background:#fbf6ec;
  color:var(--svc-brand,#dbbc87);
  border-color:#ecdcc0;
}
.ask-toggle i{ transition:transform .3s; }
.ask-panel{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.ask-panel.open{ max-height:700px; }
.ask-inner{
  background:#fff;
  border:1px solid #eee;
  border-top:0;
  border-radius:0 0 12px 12px;
  padding:24px;
}
.ask-form .row2{ display:flex; gap:16px; flex-wrap:wrap; }
.ask-form .field{ flex:1; min-width:220px; margin-bottom:16px; }
.ask-form label{ display:block; font-size:13px; color:#666; margin-bottom:6px; }
.ask-form label b{ color:#d8453b; }
.ask-form input, .ask-form textarea{
  width:100%;
  border:1px solid #ddd;
  border-radius:10px;
  padding:10px 14px;
  font-size:14px;
  color:#333;
  outline:none;
  transition:border-color .2s;
}
.ask-form input:focus, .ask-form textarea:focus{ border-color:var(--svc-brand,#dbbc87); }
.ask-form textarea{ min-height:90px; resize:vertical; }
.ask-form .cap-row{ display:flex; align-items:center; gap:12px; }
.ask-form .cap-q{ font-size:14px; color:var(--svc-brand,#dbbc87); white-space:nowrap; font-weight:600; }
.ask-submit{
  background:var(--svc-brand,#dbbc87);
  color:#fff;
  border:0;
  border-radius:10px;
  height:44px;
  padding:0 32px;
  font-size:15px;
  cursor:pointer;
  transition:background .2s;
}
.ask-submit:hover{ background:var(--svc-brand,#dbbc87); }
.ask-msg{ margin-top:14px; font-size:13px; }
.ask-msg.ok{ color:#2e8b57; }
.ask-msg.err{ color:#d8453b; }

@media (max-width:991px){
  .fqa-cols{ flex-direction:column; gap:24px; }
  .fqa-side{ width:100%; flex:none; }
  .fqa-float-card{ position:static; max-height:none; overflow-y:visible; }
  .fqa-float-list{ display:flex; flex-wrap:wrap; gap:8px; }
  .fqa-float-list li{ border:none; }
  .fqa-cat{ padding:8px 12px; margin-bottom:0; }
}

/* ---------- 分页（参考官网「说明书/资料下载」页 Bootstrap 风格） ---------- */
.fqa-pages{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  margin:34px 0 6px;
}
.fqa-pages .page-item,
.fqa-pages .page-link,
.fqa-pages .page-num{
  position:relative;
  display:block;
  padding:.5rem .75rem;
  margin-left:-1px;
  line-height:1.25;
  font-size:12px;
  color:#333;
  background-color:#fff;
  border:1px solid #dee2e6;
  outline:none;
  box-shadow:none;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .2s, color .2s, border-color .2s;
}
.fqa-pages .page-link:first-child,
.fqa-pages .page-num:first-child{ margin-left:0; border-top-left-radius:4px; border-bottom-left-radius:4px; }
.fqa-pages .page-link:last-child,
.fqa-pages .page-num:last-child{ border-top-right-radius:4px; border-bottom-right-radius:4px; }
.fqa-pages a.page-num:hover,
.fqa-pages a.page-link:hover{
  background-color:#f8f8f8;
  color:#333;
  text-decoration:none;
}
.fqa-pages .page-num-current,
.fqa-pages .page-num-current:hover{
  z-index:1;
  color:#fff !important;
  background-color:#333;
  border-color:#333;
  cursor:default;
}
.fqa-pages span.page-num{
  color:#6c757d;
  background-color:#fff;
  cursor:default;
}
.fqa-pages .page-link.disabled{
  color:#6c757d;
  background-color:#fff;
  cursor:not-allowed;
  pointer-events:none;
}
@media (max-width:767px){
  /* 移动端隐藏数字页码，仅保留 首页/上一页/下一页/尾页（与官网一致） */
  .fqa-pages .page-num:not(.page-num-current){ display:none; }
  .fqa-pages .page-num.page-num-current{ display:inline-block; }
}

/* ==========================================================
   FQA 单条详情页（detail.php）
   ========================================================== */
.fqa-detail{ background:#fff; padding:48px 0 64px; }
.fqa-detail__back{
  display:inline-block; margin-bottom:18px; color:var(--svc-brand,#dbbc87); font-size:14px; text-decoration:none;
}
.fqa-detail__back:hover{ color:var(--svc-brand,#dbbc87); }
.fqa-detail__q{
  font-size:20px; font-weight:700; color:#151515; margin:0 0 10px; line-height:1.5;
}
.fqa-detail__cat{
  display:inline-block; background:#fbf6ec; color:var(--svc-brand,#dbbc87); border:1px solid #ecdcc0;
  border-radius:20px; padding:4px 14px; font-size:13px; margin-bottom:22px;
}
.fqa-detail__answer{
  font-size:12px; color:#444; line-height:2; width:100%;
}
.fqa-detail__block{ margin-top:34px; }
.fqa-detail__h{
  font-size:14px; font-weight:600; color:#151515; margin:0 0 16px;
  padding-left:12px; border-left:4px solid var(--svc-brand,#dbbc87);
}
/* 图片画廊：单列竖排，每张图保持 16:9、占内容区域 50% 宽度 */
.fqa-detail__gallery{
  display:flex; flex-direction:column; gap:14px; width:100%;
}
.fqa-detail__img{
  display:flex; flex-direction:column; width:50%;
  border:1px solid #eee; border-radius:12px; overflow:hidden; background:#fafafa;
  transition:box-shadow .2s, transform .2s;
}
.fqa-detail__img:hover{ box-shadow:0 8px 24px rgba(0,0,0,.12); transform:translateY(-2px); }
.fqa-detail__img a{ display:block; }
.fqa-detail__img img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
/* 媒体标题：字号/颜色与正文一致（12px / #444），仅作内容区分 */
.fqa-detail__media-title{ font-size:12px; color:#444; line-height:1.6; padding:8px 10px; }
/* 视频：单列竖排，每条保持 16:9、占内容区域 50% 宽度 */
.fqa-detail__videos{
  display:flex; flex-direction:column; gap:14px; width:100%;
}
.fqa-detail__video-item{ width:50%; }
.fqa-detail__video{
  position:relative; width:100%; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#000;
}
.fqa-detail__video video,
.fqa-detail__video iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
/* 嵌入视频海报：点击后才加载真实 iframe，保证同时仅一条在播 */
.fqa-video__poster{
  position:absolute; inset:0; cursor:pointer;
  background:linear-gradient(135deg,#222 0%,#000 100%);
  display:flex; align-items:center; justify-content:center;
}
.fqa-video__poster:hover{ background:linear-gradient(135deg,#2c2c2c 0%,#0a0a0a 100%); }
.fqa-video__play{
  width:54px; height:54px; border-radius:50%;
  background:rgba(255,255,255,.92); box-shadow:0 4px 14px rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
}
.fqa-video__play::after{
  content:''; display:block; margin-left:4px;
  border-style:solid; border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent #151515;
}
@media (max-width:767px){
  .fqa-detail__img{ width:100%; }
  .fqa-detail__video-item{ width:100%; }
}

/* 反馈模块：此解答是否有用（弱化样式：分割线隔开 + 靠左，无底色卡片） */
.fqa-feedback{
  margin-top:40px; padding-top:24px; border-top:1px solid #e5e5e5; width:100%;
  text-align:left;
}
.fqa-feedback__q{ font-size:14px; font-weight:600; color:#333; margin-bottom:12px; }
.fqa-feedback__btns{ display:flex; gap:12px; justify-content:flex-start; }
.fb-btn{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid #ddd; background:#fff; color:#555;
  border-radius:18px; padding:6px 18px; font-size:13px; cursor:pointer;
  transition:background .2s, color .2s, border-color .2s;
}
.fb-btn:is(:hover,:active){ background:var(--svc-brand,#dbbc87); border-color:var(--svc-brand,#dbbc87); color:#fff; }
.fb-yes:is(:hover,:active), .fb-no:is(:hover,:active){ background:var(--svc-brand,#dbbc87); border-color:var(--svc-brand,#dbbc87); color:#fff; }
.fqa-feedback__stat{ margin-top:12px; font-size:12px; color:#999; }
.fqa-feedback__done{ margin-top:10px; font-size:13px; color:#2e8b57; font-weight:600; }

/* 相关问题推荐 */
.fqa-related{ margin-top:44px; width:100%; }
.fqa-related__h{ font-size:18px; font-weight:700; color:#151515; margin:0 0 16px; padding-left:12px; border-left:4px solid var(--svc-brand,#dbbc87); }
.fqa-related__list{ list-style:none; margin:0; padding:0; }
.fqa-related__list li{ border-bottom:1px solid #eee; }
.fqa-related__list a{
  display:flex; align-items:center; gap:10px; padding:14px 4px; color:#333; font-size:15px; text-decoration:none;
  transition:color .2s, padding-left .2s;
}
.fqa-related__list a:hover{ color:var(--svc-brand,#dbbc87); padding-left:10px; }
.fqa-related__dot{ width:7px; height:7px; border-radius:50%; background:var(--svc-brand,#dbbc87); flex:0 0 7px; }

/* 图片灯箱 */
.fqa-lightbox{
  display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center;
  background:rgba(0,0,0,.82); cursor:zoom-out;
}
.fqa-lightbox img{ max-width:92vw; max-height:88vh; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,.5); }

.fqa-detail__missing{ text-align:center; padding:60px 0; }
.fqa-detail__missing h1{ font-size:24px; color:#151515; }
.fqa-detail__missing a{ color:var(--svc-brand,#dbbc87); }

/* ===== 后台：图片/视频逐条录入单元格 ===== */
.media-cell{ vertical-align:top; padding:6px 4px; }
.media-list{ display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
.media-item{ border:1px solid #e6e6e6; border-radius:8px; padding:6px; background:#fafafa; }
.media-item__row{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.media-item__row .m-url{ flex:1 1 200px; min-width:160px; }
.media-item__row .m-title{ flex:1 1 140px; min-width:120px; }
.media-item .media-hint{ font-size:11px; color:#999; margin-top:4px; min-height:14px; }
.media-add{ margin-top:2px; }


/* 答案中通过 strong 标签标记的重点 */
.fqa-detail__answer .fqa-bold{font-family:Bfont,Sfont,sans-serif;font-weight:normal}

/* 答案页：降低原生视频控制栏的底部渐变深度。 */
.fqa-detail .fqa-detail__video video::-webkit-media-controls-panel{
  background-image:linear-gradient(transparent, rgba(0,0,0,.35));
}
