@charset "utf-8";
/* ==========================================================================
   威勤传感 · 技术问答中心（FQA）内容页样式
   文件：/templets/weiqin/style/fqa-article.css
   依赖：fqa.css（先引入 fqa.css，再引入本文件）
   ========================================================================== */

/* ---------- 1. 阅读进度条 ---------- */
.read-progress {
  position: fixed; left: 0; top: 0; z-index: 80; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--c-brand), var(--c-teal));
  transition: width .08s linear;
}

/* ---------- 2. 正文区布局 ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px; align-items: start; padding-bottom: 56px;
}

.article {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-s);
  padding: 34px 40px 40px;
}

/* ---------- 3. 文章头部 ---------- */
.article-head { padding-bottom: 20px; border-bottom: 1px solid var(--c-line-soft); }
.article-head__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-head h1 {
  font-size: 27px; line-height: 1.5; font-weight: 700; color: var(--c-ink);
  letter-spacing: .2px; margin-bottom: 14px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 13px; color: #8996A8;
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta .ico { color: #A9B5C6; }
.article-meta__actions { margin-left: auto; display: flex; gap: 8px; }
.mini-btn {
  height: 30px; padding: 0 11px; border-radius: 6px;
  border: 1px solid var(--c-line); background: #fff;
  color: var(--c-text); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px;
  transition: all .16s ease;
}
.mini-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.mini-btn.is-done { background: #E9F6F0; border-color: #BEE3D4; color: #17795B; }

/* ---------- 4. 快速结论（GEO 答案前置）---------- */
.answer-lead {
  position: relative; margin: 24px 0 26px; padding: 22px 24px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F2F7FE, #F8FBFF);
  border: 1px solid #D7E5F8;
  border-left: 4px solid var(--c-brand);
}
.answer-lead__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--c-brand); margin-bottom: 10px; text-transform: uppercase;
}
.answer-lead__label::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px;
  background: var(--c-brand); opacity: .18;
  position: absolute; left: 24px; margin-top: 2px;
}
.answer-lead__label span { position: relative; z-index: 1; padding-left: 22px; }
.answer-lead p { font-size: 15.5px; line-height: 1.85; color: #22314A; }
.answer-lead p + p { margin-top: 8px; }
.answer-lead b, .answer-lead strong { color: var(--c-brand); font-weight: 700; }
.answer-lead mark {
  background: #FFF1CE; color: #8A5B00; padding: 0 3px; border-radius: 3px;
}

/* ---------- 5. 目录 ---------- */
.toc {
  margin: 0 0 28px; padding: 16px 20px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #FBFCFE;
}
.toc__t {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px;
}
.toc__t::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--c-brand);
}
.toc ol { counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 4px 0 4px 24px; position: relative;
  font-size: 13.5px; color: #4A5A73; line-height: 1.65;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 4px;
  font-size: 11.5px; color: #A9B5C6; font-family: Georgia, serif;
}
.toc a:hover, .toc a.is-active { color: var(--c-brand); }
.toc a.is-active::before { color: var(--c-brand); }

/* ---------- 6. 正文排版 ---------- */
.article-body { font-size: 15.5px; line-height: 1.95; color: #38455C; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 {
  position: relative; margin: 38px 0 16px; padding-left: 14px;
  font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--c-ink);
  scroll-margin-top: 92px;
}
.article-body h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 3px; background: linear-gradient(var(--c-brand), var(--c-teal));
}
.article-body h3 {
  margin: 26px 0 10px; font-size: 16.5px; font-weight: 700; color: var(--c-ink);
  scroll-margin-top: 92px;
}
.article-body p { margin: 0 0 15px; }
.article-body a {
  color: var(--c-brand); border-bottom: 1px solid rgba(11, 77, 162, .28);
  padding-bottom: 1px;
}
.article-body a:hover { border-bottom-color: var(--c-brand); }
.article-body strong, .article-body b { color: var(--c-ink); font-weight: 700; }
.article-body mark { background: #FFF3D6; color: #7A5000; padding: 0 3px; border-radius: 3px; }

.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 4px; }
.article-body ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-brand); opacity: .5;
}
.article-body ol { counter-reset: li; }
.article-body ol li { position: relative; padding-left: 26px; margin-bottom: 9px; counter-increment: li; }
.article-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--c-brand-soft); color: var(--c-brand);
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}

/* 参数表格 */
.table-wrap {
  margin: 18px 0 22px; overflow-x: auto;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.table-wrap caption {
  padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600;
  color: var(--c-ink); background: #F7FAFE; border-bottom: 1px solid var(--c-line);
}
.table-wrap th, .table-wrap td {
  padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--c-line-soft);
  line-height: 1.6;
}
.table-wrap thead th {
  background: #F7FAFE; color: var(--c-ink); font-weight: 600; font-size: 13.5px;
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: #FBFCFE; }
.table-wrap td.is-key { color: var(--c-brand); font-weight: 700; }

/* 提示块 */
.callout {
  display: flex; gap: 12px; margin: 20px 0;
  padding: 16px 18px; border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.85;
}
.callout__ico { flex: 0 0 auto; font-size: 15px; line-height: 1.5; }
.callout p:last-child { margin-bottom: 0; }
.callout--tip { background: #F0F8F6; border: 1px solid #CFE9E2; color: #1F5C4E; }
.callout--warn { background: #FEF6EC; border: 1px solid #F6E0C4; color: #7A4E12; }
.callout--info { background: #F1F6FD; border: 1px solid #D6E4F7; color: #1E4573; }

/* 小结 */
.summary-box {
  margin: 32px 0 0; padding: 20px 22px; border-radius: var(--radius);
  background: #F8FAFD; border: 1px dashed #D3DFEF;
}
.summary-box h2 {
  margin: 0 0 10px; padding: 0; font-size: 15.5px; color: var(--c-ink);
}
.summary-box h2::before { display: none; }
.summary-box ul { margin-bottom: 0; }

/* ---------- 7. 内容页尾部 ---------- */
.article-foot { margin-top: 34px; padding: 22px 0 22px 0; border-top: 1px solid var(--c-line-soft); }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin:18px 18px;}
.article-tags .lbl { color: #ffffff; }
.article-tags a {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: 5px; background: #F3F6FB; color: #55647C; font-size: 12.5px;
}
.article-tags a:hover { background: var(--c-brand-soft); color: var(--c-brand); }

.article-share {
  display: flex; align-items: center; gap: 10px; margin: 0 18px;
  font-size: 13px; color:#ffffff;
}
.article-share button {
  height: 32px; padding: 0 13px; border-radius: 6px;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-text);
  font-size: 12.5px;
}
.article-share button:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* 上下篇（适配织梦 {dede:prenext} 原生输出） */
.post-nav {
  display: flex; flex-wrap: wraps; align-items: center; gap: 10px 8px;
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--c-line);
  font-size: 13.5px; line-height: 1.7;
}
.post-nav a {
  color: var(--c-text); display: inline-block;
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 11px; border-radius: 6px; background: #F6F8FC;
  transition: all .16s ease;
}
.post-nav a:hover { background: var(--c-brand-soft); color: var(--c-brand); }
.post-nav a + a { margin-left: 0; }

/* ---------- 8. 相关问答 ---------- */
.related { margin-top: 22px; padding: 26px 30px 28px; }
.related__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.related__head h2 {
  font-size: 17px; font-weight: 700; color: var(--c-ink);
  display: flex; align-items: center; gap: 8px;
}
.related__head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--c-brand);
}
.related__head a { font-size: 13px; color: var(--c-muted); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-grid a {
  display: flex; gap: 10px; padding: 13px 15px; border-radius: var(--radius-s);
  background: #FAFBFE; border: 1px solid var(--c-line-soft);
  font-size: 14px; color: var(--c-text); line-height: 1.6;
  transition: all .16s ease;
}
.related-grid a:hover {
  background: #fff; border-color: #C5D7F0; color: var(--c-brand);
  box-shadow: var(--shadow-s);
}
.related-grid .q {
  flex: 0 0 auto; color: var(--c-brand); font-weight: 700;
  font-family: Georgia, serif; font-size: 13px; line-height: 1.7;
}

/* ---------- 9. 内容页侧栏（目录跟随）---------- */
.article-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.side-toc { max-height: calc(100vh - 140px); overflow: auto; }
.side-toc ol { padding: 4px 18px 16px; }
.side-toc li { border-left: 2px solid var(--c-line-soft); }
.side-toc a {
  display: block; padding: 7px 0 7px 12px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px; color: #5B6A82; line-height: 1.6;
  transition: all .16s ease;
}
.side-toc a:hover { color: var(--c-brand); }
.side-toc a.is-active {
  color: var(--c-brand); font-weight: 600; border-left-color: var(--c-brand);
  background: linear-gradient(90deg, #F1F6FD, transparent);
}
.side-toc li:has(> a.is-active) { border-left-color: transparent; }

/* 作者/技术顾问卡 */
.expert-card {
  display: flex; gap: 12px; padding: 18px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
}
.expert-card__avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, #1A66C9, #073A7B); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.expert-card__name { font-size: 14px; font-weight: 700; color: var(--c-ink); }
.expert-card__role { font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.expert-card__desc { font-size: 12.5px; line-height: 1.7; color: #6B7A90; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 268px; gap: 20px; }
  .article { padding: 28px 30px 34px; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; }
  .side-toc { max-height: none; }
  .toc ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article { padding: 22px 18px 26px; border-radius: var(--radius); }
  .article-head h1 { font-size: 20px; }
  .answer-lead { padding: 18px 16px; }
  .answer-lead__label::before { left: 16px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 18px; margin-top: 30px; }
  .related { padding: 20px 18px; }
  .related-grid, .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .article-meta__actions { margin-left: 0; width: 100%; }
}

/* ---------- 11. 打印 ---------- */
@media print {
  .site-head, .topbar, .site-foot, .article-side, .to-top,
  .read-progress, .post-nav, .article-share, .related, .crumb { display: none !important; }
  body { background: #fff; }
  .article { border: 0; box-shadow: none; padding: 0; }
  .article-body a { color: #000; border-bottom: 0; }
}
