/* ==========================================================================
   IDEEDA — 全站统一列表分页（inc/list-pagination.php 配套）
   规则：单页 → "Page 1 of 1" + "N items"；多页 → 页码 + "Showing x–y of N"
   最后加载，覆盖 acc-pagination / paginate_links / cs-pagination 旧样式
   ========================================================================== */

.ideeda-pager {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light, #E6ECF2);
  clear: both;
}

/* ---------- 页码区 ---------- */
.ideeda-pager__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ideeda-pager__num,
.ideeda-pager__arrow,
.ideeda-pager__single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--color-border, #DCE5EE);
  border-radius: 10px;
  background: #fff;
  color: var(--color-gray-700, #34455A);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ideeda-pager__num:hover,
.ideeda-pager__arrow:hover {
  background: var(--color-primary-50, #E6F5FC);
  border-color: var(--color-primary, #0095DA);
  color: var(--color-primary-600, #0077AE);
}

.ideeda-pager__num.is-current {
  background: var(--color-primary, #0095DA);
  border-color: var(--color-primary, #0095DA);
  color: #fff;
  cursor: default;
}

.ideeda-pager__arrow {
  font-size: 18px;
  color: var(--color-gray-500, #64748B);
}

.ideeda-pager__arrow.is-disabled {
  opacity: .4;
  background: #F7FAFC;
  border-color: #E6ECF2;
  cursor: not-allowed;
}

.ideeda-pager__dots {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 20px;
  height: 38px;
  color: var(--color-gray-400, #94A3B8);
  font-size: 14px;
  line-height: 34px;
  user-select: none;
}

/* 单页：淡一点的静态标签 */
.ideeda-pager__single {
  cursor: default;
  font-weight: 600;
  color: var(--color-gray-600, #475569);
  background: #F7FAFC;
  border-color: #E6ECF2;
}

/* ---------- 数量区 ---------- */
.ideeda-pager__info {
  margin: 0 !important;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-gray-500, #64748B);
  white-space: nowrap;
}

.ideeda-pager__info b {
  color: var(--color-gray-800, #1E293B);
  font-weight: 700;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .ideeda-pager {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    padding-top: 20px;
  }

  .ideeda-pager__pages {
    justify-content: center;
    order: 2;
  }

  .ideeda-pager {
    align-items: center;
  }

  .ideeda-pager__info {
    order: 1;
    text-align: center;
    white-space: normal;
    font-size: 13px;
  }

  .ideeda-pager__num,
  .ideeda-pager__arrow,
  .ideeda-pager__single {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 13px;
  }

  .ideeda-pager__dots {
    height: 34px;
    line-height: 30px;
  }
}

/* ---------- 兼容：旧分页容器里的残留元素 ---------- */
.ideeda-pager .pagination,
.ideeda-pager .page-numbers {
  all: unset;
}

/* ---------- 客户端分页（JS 版）：button 元素重置 ---------- */
button.ideeda-pager__num,
button.ideeda-pager__arrow {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* ---------- FAQ 页分页隐藏（不影响 main.js 的分类过滤 inline display） ---------- */
.faq-item.is-faq-page-hidden {
  display: none !important;
}

/* FAQ 页：分页与 800px 列表同宽对齐 */
.ideeda-pager--faq {
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}
