/* ==========================================================================
   SHMD · AnQiCMS 模板补充层
   只补 CMS 动态内容需要的组件（分页 / 空状态 / 二维码 / 搜索结果）。
   加载顺序：main.css -> cms.css -> [solutions.css] -> ui.css
   约束：全站零圆角，颜色一律走 ui.css 的设计令牌。
   ========================================================================== */

/* hidden 属性优先于任何 display 声明，保证筛选与浮层收起可靠 */
[hidden] { display: none !important; }

/* ---------- 分页 ---------- */
.pagination-wrap { margin: 44px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--n-0, #fff);
  color: var(--ink); font-size: 14.5px; line-height: 1;
  text-decoration: none; transition: border-color 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out;
}
.page-item:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--e-1, 0 1px 3px rgb(19 39 62/.08)); }
.page-item.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination-meta { margin: 0; color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }

/* ---------- 空状态 ---------- */
.empty-state {
  border: 1px solid var(--line); background: var(--n-25, #f9fbfe);
  padding: 42px 28px; text-align: center; color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: 15px; line-height: 1.8; }

/* ---------- 二维码 ---------- */
.rail-qrcode, .contact-qrcode { display: block; width: 156px; height: 156px; object-fit: contain; background: #fff; border: 1px solid var(--line); margin: 10px 0; }
.contact-qr-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.footer-qrcode { display: block; width: 112px; height: 112px; object-fit: contain; background: #fff; border: 1px solid rgba(255,255,255,.22); margin: 12px 0 8px; }

/* ---------- 页脚备案 ---------- */
.footer-bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.32); }
.footer-bottom a:hover { color: var(--c-amber-2, #ffc568); border-bottom-color: currentColor; }

/* ---------- 搜索结果 ---------- */
.search-results { align-items: stretch; }
.search-results > a.info-panel { display: block; text-decoration: none; color: inherit; transition: border-color 220ms ease-out, box-shadow 220ms ease-out; }
.search-results > a.info-panel:hover { border-color: var(--brand); box-shadow: var(--e-2, 0 10px 22px -8px rgb(19 39 62/.11)); }
.search-results > a.info-panel .card-heading { margin-top: 6px; }
.search-results .empty-state { grid-column: 1 / -1; }
.search-results .empty-state a, .empty-state a { color: var(--brand); }
/* ---------- 搜索框 ---------- */
.search-box { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 34px; }
.search-box input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15.5px; font-family: inherit; border-radius: 0;
}
.search-box input[type="search"]:focus { outline: 2px solid var(--c-amber, #fba537); outline-offset: -1px; border-color: var(--brand); }
.search-box button {
  height: 48px; padding: 0 26px; border: 0; cursor: pointer;
  background: var(--grad-brand, var(--brand)); color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
}
.search-box button:hover { filter: brightness(1.06); }
.search-item + .search-item { margin-top: 0; }

/* ---------- 文档正文（产品详情 / 单页面）---------- */
.entry-content { color: var(--ink-soft); font-size: 16.5px; line-height: 1.9; }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 { font-size: 25px; margin-top: 34px; color: var(--ink); }
.entry-content h3 { font-size: 20px; margin-top: 28px; color: var(--ink); }
.entry-content h4 { font-size: 17.5px; margin-top: 24px; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { color: var(--brand); }
.entry-content blockquote {
  margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--c-amber, #fba537);
  background: var(--n-25, #f9fbfe); color: var(--ink-soft);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---------- 带正文的详情版式 ---------- */
.detail-text-block { margin-top: 30px; }
.detail-text-block > .section-kicker { margin-bottom: 10px; }

@media (max-width: 720px) {
  .page-item { min-width: 38px; height: 38px; padding: 0 11px; font-size: 14px; }
  .rail-qrcode, .contact-qrcode { width: 132px; height: 132px; }
  .entry-content { font-size: 16px; }
}
