/* 夸克 常见问题 —— 样式
 * 视觉跟随 quark.cn：白底、PingFang SC、夸克蓝 #0d53ff
 * 列表页只放「问题 + 摘要」，完整正文在 article.html
 */
:root {
  --q-blue: #0d53ff;
  --q-blue-2: #1e8bff;
  --q-cyan: #99e8ff;
  --q-ink: #1f2026;
  --q-ink-2: #52555f;
  --q-ink-3: #797d88;
  --q-grey: #9d9d9d;
  --q-line: #e8eaf0;
  --q-line-2: #f0f1f4;
  --q-bg: #f5f6f7;
  --q-soft: #f4faff;
  --r: 16px;
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--q-ink);
  font-family: PingFang SC, Microsoft YaHei, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── 顶栏 ───────────────────────────────── */
.q-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--q-line);
}

.q-header-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 30px;
}

.q-logo { height: 26px; width: auto; }

.q-nav { display: flex; gap: 26px; font-size: 14px; color: var(--q-ink-2); }
.q-nav a { padding: 4px 0; position: relative; transition: color .2s; white-space: nowrap; }
.q-nav a:hover { color: var(--q-blue); }
.q-nav a.active { color: var(--q-blue); font-weight: 500; }
.q-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--q-blue);
}

.q-header-cta {
  margin-left: auto; flex: none;
  padding: 8px 20px; border-radius: 999px;
  background: var(--q-blue); color: #fff;
  font-size: 14px; font-weight: 500;
  transition: opacity .2s, transform .2s;
}
.q-header-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── Hero ───────────────────────────────── */
.faq-hero {
  padding: 62px 28px 34px;
  max-width: 1180px; margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(760px 300px at 50% -60px, rgba(30, 139, 255, .13), transparent 70%);
}

.faq-hero h1 {
  margin: 0 0 14px;
  font-size: 40px; line-height: 1.25; letter-spacing: -.5px;
  font-weight: 600;
}

.faq-hero .sub {
  margin: 0 auto; max-width: 660px;
  font-size: 16px; color: var(--q-ink-3);
}

/* 搜索框 */
.faq-search {
  margin: 30px auto 0; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: #fff; border: 1px solid var(--q-line);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(13, 83, 255, .07);
  transition: border-color .2s, box-shadow .2s;
}
.faq-search:focus-within {
  border-color: var(--q-blue-2);
  box-shadow: 0 8px 30px rgba(13, 83, 255, .14);
}
.faq-search .ic { font-size: 16px; opacity: .5; flex: none; }
.faq-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--q-ink);
  font-family: inherit;
}
.faq-search input::placeholder { color: #b4b7c0; }
.faq-search .clr {
  display: none; flex: none; cursor: pointer; border: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--q-line); color: var(--q-ink-3);
  font-size: 15px; line-height: 1;
}
.faq-search .clr:hover { background: #dcdfe6; }

/* ── 分类筛选 ───────────────────────────── */
.faq-filters {
  max-width: 1180px; margin: 0 auto; padding: 26px 28px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

.faq-filters button {
  cursor: pointer; font-family: inherit;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--q-line);
  background: #fff; color: var(--q-ink-2);
  font-size: 13.5px;
  transition: all .18s;
}
.faq-filters button:hover { border-color: var(--q-blue-2); color: var(--q-blue); }
.faq-filters button.active {
  background: var(--q-blue); border-color: var(--q-blue);
  color: #fff; font-weight: 500;
}
.faq-filters button .n { opacity: .55; margin-left: 3px; font-size: 12px; }

/* ── 列表主体 ───────────────────────────── */
.faq-body { max-width: 1180px; margin: 0 auto; padding: 36px 28px 80px; }

.faq-group { margin-bottom: 44px; }

.faq-group-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--q-line);
}
.faq-group-head h2 {
  margin: 0; font-size: 21px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.faq-group-head h2::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--q-blue-2), var(--q-blue));
}
.faq-group-head .count { font-size: 13px; color: var(--q-grey); }

.faq-list {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* 单条问答卡片 —— 外层只放摘要 */
.faq-item {
  display: flex; flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--q-line); border-radius: var(--r);
  background: #fff;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 83, 255, .3);
  box-shadow: 0 12px 32px rgba(20, 40, 90, .1);
}

.faq-item h3 {
  margin: 0 0 11px;
  font-size: 16.5px; line-height: 1.5; font-weight: 600;
  display: flex; gap: 10px; align-items: flex-start;
}
.faq-item h3 .qm {
  flex: none; margin-top: 1px;
  width: 21px; height: 21px; border-radius: 6px;
  background: linear-gradient(135deg, var(--q-blue-2), var(--q-blue));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.faq-summary {
  margin: 0 0 16px; flex: 1;
  font-size: 14px; color: var(--q-ink-2); line-height: 1.72;
}

/* ── 发布时间 / 访问量 元信息行 ─────────────
 * 用户要求每条问题都带这一行。列表页与文章页共用同一套类名。
 */
.q-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px; color: var(--q-grey);
  letter-spacing: .2px;
}
.q-meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.q-meta .mi svg { width: 13px; height: 13px; flex: none; opacity: .75; }
.q-meta .mv { font-variant-numeric: tabular-nums; }

/* 卡片底部：元信息 + 阅读入口 */
.faq-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 13px; border-top: 1px dashed var(--q-line);
}
.faq-foot .q-meta { flex: 1; gap: 12px; }

.faq-more {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 500; color: var(--q-blue);
}
.faq-more .ar { transition: transform .2s; }
.faq-item:hover .faq-more .ar { transform: translateX(3px); }

.faq-tag {
  flex: none; padding: 2px 9px; border-radius: 6px;
  background: var(--q-soft); color: var(--q-blue-2);
  font-size: 11.5px;
}

/* 空状态 */
.faq-empty {
  padding: 80px 20px; text-align: center; color: var(--q-grey);
}
.faq-empty .big { display: block; font-size: 40px; margin-bottom: 14px; }

/* ── 文章页 ─────────────────────────────── */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 34px 28px 90px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--q-grey); margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--q-blue); }
.breadcrumb .sep { opacity: .5; }

.article-head { padding-bottom: 22px; border-bottom: 1px solid var(--q-line); }

.article-head .kicker {
  display: inline-block; margin-bottom: 13px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--q-soft); color: var(--q-blue);
  font-size: 12.5px; font-weight: 500;
}

.article-head h1 {
  margin: 0 0 15px;
  font-size: 31px; line-height: 1.36; font-weight: 600;
  letter-spacing: -.3px;
}

.article-head .lede {
  margin: 0 0 18px;
  font-size: 16px; color: var(--q-ink-2); line-height: 1.78;
}

/* 文章页元信息行更醒目一点 */
.article-head .q-meta { font-size: 13.5px; gap: 18px; }

/* 目录 */
.toc {
  margin: 26px 0 6px; padding: 18px 22px;
  background: var(--q-bg); border-radius: 12px;
  border: 1px solid var(--q-line-2);
}
.toc h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 600;
  color: var(--q-ink-3); letter-spacing: .5px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14px; margin-bottom: 5px; color: var(--q-ink-2); }
.toc a:hover { color: var(--q-blue); text-decoration: underline; }

/* 正文排版 */
.article-content { padding-top: 8px; font-size: 15.5px; line-height: 1.85; }

.article-content h2 {
  margin: 38px 0 14px; font-size: 21px; font-weight: 600;
  scroll-margin-top: 80px;
  display: flex; align-items: center; gap: 9px;
}
.article-content h2::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--q-blue-2), var(--q-blue));
}

.article-content h3 {
  margin: 26px 0 10px; font-size: 17px; font-weight: 600;
  color: var(--q-ink);
}

.article-content p { margin: 0 0 15px; color: #33363f; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; }
.article-content li { margin-bottom: 8px; color: #33363f; }
.article-content strong { font-weight: 600; color: var(--q-ink); }
.article-content a { color: var(--q-blue); text-decoration: underline; text-underline-offset: 2px; }

.article-content code {
  padding: 2px 6px; border-radius: 5px;
  background: var(--q-bg); border: 1px solid var(--q-line-2);
  font-family: SFMono-Regular, Consolas, Monaco, monospace;
  font-size: 13px; color: #c7254e;
  word-break: break-all;
}

/* 表格 */
.table-wrap {
  margin: 0 0 20px; overflow-x: auto;
  border: 1px solid var(--q-line); border-radius: 12px;
}
.article-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-content th, .article-content td {
  padding: 11px 15px; text-align: left;
  border-bottom: 1px solid var(--q-line-2);
}
.article-content th {
  background: var(--q-bg); font-weight: 600;
  color: var(--q-ink); white-space: nowrap;
}
.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content tbody tr:hover { background: #fafbfd; }

/* 配图 */
.article-content figure {
  margin: 22px 0; padding: 0;
}
.article-content figure img {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--q-line);
  background: var(--q-bg);
}
.article-content figure.narrow img {
  max-width: 300px; margin: 0 auto; padding: 22px;
}
/* 宽幅截图：占满正文宽度，不加内边距，突出画面本身 */
.article-content figure.shot img {
  width: 100%; padding: 0;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20, 40, 90, .08);
}
.article-content figure.qr img { max-width: 190px; margin: 0 auto; padding: 14px; }
.article-content figcaption {
  margin-top: 9px; text-align: center;
  font-size: 12.5px; color: var(--q-grey); line-height: 1.6;
}
.figure-row {
  display: grid; gap: 14px; margin: 22px 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.figure-row figure { margin: 0; }

/* 提示块 */
.callout {
  margin: 20px 0; padding: 15px 18px;
  border-radius: 12px; font-size: 14.5px; line-height: 1.76;
  border-left: 3px solid var(--q-blue-2);
  background: var(--q-soft);
}
.callout .ct { display: block; font-weight: 600; margin-bottom: 5px; color: var(--q-ink); }
.callout.warn { background: #fff8ed; border-left-color: #f5a623; }
.callout.danger { background: #fff1f0; border-left-color: #e64340; }
.callout.ok { background: #f2fbf5; border-left-color: #22a06b; }

/* 未核实标记 —— 研究里标了 UNVERIFIED 的内容用这个呈现，不冒充事实 */
.unverified {
  margin: 20px 0; padding: 14px 17px;
  background: #fffbe9; border: 1px dashed #e6c34a; border-radius: 12px;
  font-size: 14px; color: #6a5417; line-height: 1.74;
}
.unverified .flag {
  display: inline-block; margin-right: 8px;
  padding: 1px 8px; border-radius: 5px;
  background: #e6c34a; color: #fff; font-size: 11.5px; font-weight: 600;
}

/* 资料来源 */
.sources {
  margin: 36px 0 0; padding: 20px 22px;
  background: var(--q-bg); border-radius: 12px;
}
.sources h4 { margin: 0 0 11px; font-size: 14px; font-weight: 600; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li {
  font-size: 13px; color: var(--q-ink-3);
  margin-bottom: 7px; line-height: 1.65; word-break: break-all;
}
.sources a { color: var(--q-blue-2); }
.sources a:hover { text-decoration: underline; }

/* 相关阅读 */
.related { margin-top: 40px; }
.related h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.related-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.related-card {
  display: block; padding: 15px 17px;
  border: 1px solid var(--q-line); border-radius: 12px;
  transition: all .2s;
}
.related-card:hover {
  border-color: rgba(13, 83, 255, .3);
  box-shadow: 0 8px 22px rgba(20, 40, 90, .08);
  transform: translateY(-2px);
}
.related-card .rc-cat {
  display: block; font-size: 11.5px; color: var(--q-blue-2); margin-bottom: 5px;
}
.related-card .rc-q {
  display: block; font-size: 14px; font-weight: 500;
  line-height: 1.55; color: var(--q-ink);
}
.related-card .q-meta { margin-top: 8px; font-size: 11.5px; gap: 10px; }

/* 上下篇 */
.prevnext {
  display: grid; gap: 12px; margin-top: 34px;
  grid-template-columns: 1fr 1fr;
}
.prevnext a {
  padding: 14px 17px; border-radius: 12px;
  border: 1px solid var(--q-line);
  transition: all .2s; min-width: 0;
}
.prevnext a:not(.disabled):hover { border-color: rgba(13, 83, 255, .3); background: #fafbfd; }
.prevnext a.disabled { opacity: .45; }
.prevnext .dir { display: block; font-size: 12px; color: var(--q-grey); margin-bottom: 4px; }
.prevnext .t {
  display: block; font-size: 14px; color: var(--q-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prevnext .next { text-align: right; }

.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 30px; padding: 10px 20px;
  border-radius: 999px; background: var(--q-blue); color: #fff;
  font-size: 14px; font-weight: 500;
  transition: opacity .2s;
}
.back-btn:hover { opacity: .88; }

.state-box { padding: 90px 20px; text-align: center; }
.state-box h2 { margin: 0 0 10px; font-size: 23px; }
.state-box p { color: var(--q-ink-3); margin: 0 0 8px; }

/* ── 页脚 ───────────────────────────────── */
.q-footer {
  border-top: 1px solid var(--q-line);
  background: var(--q-bg);
  padding: 26px 28px;
  font-size: 12px; color: var(--q-grey); line-height: 2;
}
.q-footer-wrap { max-width: 1180px; margin: 0 auto; }
.q-footer .row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.q-footer a { color: var(--q-grey); }
.q-footer a:hover { color: var(--q-blue); }
.q-footer .line { opacity: .45; }

/* ── 响应式 ─────────────────────────────── */
@media (max-width: 900px) {
  .q-header-wrap { gap: 16px; padding: 0 16px; height: 56px; }
  .q-nav { display: none; }
  .faq-hero { padding: 40px 18px 24px; }
  .faq-hero h1 { font-size: 28px; }
  .faq-hero .sub { font-size: 14.5px; }
  .faq-filters { padding: 20px 16px 0; justify-content: flex-start; }
  .faq-body { padding: 26px 16px 60px; }
  .faq-list { grid-template-columns: 1fr; }
  .article-wrap { padding: 22px 18px 60px; }
  .article-head h1 { font-size: 24px; }
  .article-content { font-size: 15px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
}

@media print {
  .q-header, .q-footer, .prevnext, .related, .back-btn, .faq-filters, .faq-pager { display: none; }
  .article-wrap { max-width: none; }
}

/* ── 分页器 ────────────────────────────── */
.faq-pager {
  max-width: 1180px; margin: 0 auto; padding: 4px 28px 64px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center;
}
.faq-pager .pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--q-line); border-radius: 10px; background: #fff;
  color: var(--q-ink-2); font-size: 14px; cursor: pointer; transition: all .16s;
}
.faq-pager button.pg:hover { border-color: var(--q-blue); color: var(--q-blue); }
.faq-pager .pg.cur {
  background: var(--q-blue); border-color: var(--q-blue); color: #fff; font-weight: 600;
}
.faq-pager .pg.disabled { opacity: .4; cursor: default; }
.faq-pager .pg.gap { border: 0; min-width: 20px; cursor: default; }
.faq-pager .pg.jump { border: 0; background: transparent; color: var(--q-ink-3); font-size: 13px; }
.faq-pager .pg.jump input {
  width: 52px; height: 30px; margin: 0 2px; text-align: center;
  border: 1px solid var(--q-line); border-radius: 8px; font-size: 13px;
}

/* ── 内联 SVG 配图 ────────────────────── */
.article-content .svg-fig {
  margin: 22px 0; padding: 14px 16px; background: #fbfcfe;
  border: 1px solid var(--q-line); border-radius: 14px;
}
.article-content .svg-fig svg { display: block; }
.article-content .svg-fig figcaption {
  margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--q-ink-3);
}

@media (max-width: 900px) {
  .faq-pager { padding: 4px 12px 48px; gap: 6px; }
  .faq-pager .pg { min-width: 34px; height: 34px; padding: 0 9px; font-size: 13px; }
  .faq-pager .pg.jump { display: none; }
}
