/* theme1633 · 数据化补充组件
 * 静态交付物未覆盖：列表缩略图、服务端分页、空态、上下篇、FAQ、站内搜索。
 * 全部沿用 tokens/style.css 的变量，不新增配色。
 */

/* ------------------------------------------------------------ 列表缩略图 */
.list-card { align-items: flex-start; }
.list-thumb {
  flex: none;
  display: block;
  width: 168px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}
.list-card .body { flex: 1 1 auto; }

/* ------------------------------------------------------------ 分页 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  color: var(--muted);
  font-size: var(--fs-1);
  letter-spacing: 0.04em;
}
.pagination a:hover { color: var(--accent-soft); border-color: var(--accent); }
.pagination .current {
  color: #12161d;
  background: var(--accent);
  border-color: var(--accent);
}
.pagination .page-gap { border-color: transparent; }

/* ------------------------------------------------------------ 空态 */
.empty-state {
  padding: 54px 0 46px;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-5);
  color: var(--ink);
}
.empty-state p { margin-bottom: 18px; }

/* ------------------------------------------------------------ 上下篇 */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
}
.article-nav-item span {
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.article-nav-item strong {
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}
.article-nav-item:hover { border-color: var(--accent); }
.article-nav-next { text-align: right; }

/* ------------------------------------------------------------ 详情 FAQ */
.detail-faq { padding: 0 0 64px; }
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq-item {
  padding: 0 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  border-radius: var(--r-1);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
  font-size: var(--fs-3);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: var(--fs-2);
  line-height: 1.9;
}

/* ------------------------------------------------------------ 站内搜索 */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
}
.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-1);
  font: inherit;
  font-size: var(--fs-2);
}
.search-form input:focus { border-color: var(--accent); outline: none; }
.search-form button {
  flex: none;
  padding: 12px 22px;
  color: #12161d;
  background: var(--accent);
  border-radius: var(--r-1);
  font-size: var(--fs-2);
}
.search-form button:hover { background: var(--accent-soft); }

/* chip 作为链接时的盒模型 */
.chip { display: inline-flex; align-items: center; }

/* 空态按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-size: var(--fs-2);
  color: var(--accent-soft);
}
.btn:hover { border-color: var(--accent); }

/* 无目录时的单栏正文 */
.article-wrap--solo { grid-template-columns: minmax(0, 760px); }
.article > section:first-child h2 { margin-top: 0; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 900px) {
  .list-thumb { width: 140px; }
}

@media (max-width: 620px) {
  .list-card { flex-wrap: wrap; }
  .list-card .idx { order: 1; }
  .list-thumb { order: 2; width: 100%; }
  .list-card .body { order: 3; flex-basis: 100%; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { text-align: left; }
  .search-form { flex-direction: column; }
}
