/* v2/css/page-lists.css  lists 页面群组专属样式（由对应开发者维护）。只动 transform/opacity，不用 backdrop-filter 与 SVG 滤镜。 */
/* 适用：services.asp / trainings.asp / insights.asp / documents.asp / search.asp（inc/list-*.asp 输出） */

/* ---------- 筛选框：外框已有 focus-within 高亮，去掉输入框自身的焦点框 ---------- */
.insight-filter input:focus, .insight-filter input:focus-visible { outline: none; box-shadow: none; }
.insight-filter input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- 驗證新知卡片封面（正文第一张站内图片；没有就用中性纹样） ---------- */
.lx-card .lx-cover { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 9; margin: 0 0 20px; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.lx-card .lx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.lx-card:hover .lx-cover img { transform: scale(1.04); }
.lx-card .lx-cover.is-empty { display: grid; place-items: center; color: var(--brand);
  background-color: #f7f3f3;
  background-image: repeating-linear-gradient(135deg, rgba(191, 63, 72, .06) 0 1px, transparent 1px 14px), linear-gradient(160deg, #fbeff0, #f6f4f2 70%); }
.lx-card .lx-cover.is-empty svg { width: 40px; height: 40px; opacity: .35; transition: transform .45s var(--ease, ease), opacity .45s; }
.lx-card:hover .lx-cover.is-empty svg { transform: translateY(-3px); opacity: .55; }
.insight-wrap .svc-grid .svc-card.lx-card h3 { margin-top: 10px; }
.lx-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
[data-theme="classic"] .lx-card .svc-cat { max-width: none; }

/* ---------- 公開文件 ---------- */
.doc-grid .doc-card p { flex: 1; }
.doc-pdf { white-space: nowrap; }

/* ---------- 站內搜尋 ---------- */
.search-wrap { margin-left: auto; margin-right: auto; }
.search-form input:focus, .search-form input:focus-visible { outline: none; box-shadow: none; }
.search-form:focus-within { border-color: var(--brand); }
.search-results .tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--brand); font-size: 12px; font-weight: 600; }
.search-results p { overflow-wrap: anywhere; }
.lx-prompt { padding: 8px 0 24px; }

/* 分页 */
.lx-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.lx-pg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s, transform .2s; }
.lx-pg svg { width: 16px; height: 16px; }
a.lx-pg:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.lx-pg.is-cur { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.lx-pg.is-gap { min-width: 24px; padding: 0; border: 0; background: none; }
.lx-pg.is-off { opacity: .4; }

@media (max-width: 640px) {
  .lx-card .lx-cover.is-empty { display: none; }
  .lx-card .lx-cover { aspect-ratio: 16 / 8; margin-bottom: 16px; }
  .lx-pg-nav span { display: none; }
  .lx-pg { min-width: 36px; height: 36px; padding: 0 10px; }
  .search-form { padding-left: 14px; }
  .search-form input { font-size: 16px; }
}
