/* ===================== 分页条（pagination::site） =====================
   用于 resources/views/vendor/pagination/site.blade.php
   被 web-template、help 列表页等 site 布局下的列表共用。

   视觉规范：
   - 主色跟随站点强调色 var(--primary)，未定义时回落站点红 #e60012，
     与 help / 站点主色保持一致
   - 胶囊形页码 + 细腻悬浮/选中态 + 低调省略号
======================================================================== */

.pg-nav {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.pg-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-item {
  display: inline-flex;
}

.pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e6eaf2;
  background: #fff;
  color: #5e6d82;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease,
              background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* 普通页码 / 箭头：悬浮态 */
.pg-item:not(.disabled):not(.active) .pg-link:hover {
  color: var(--primary, #e60012);
  border-color: rgba(230, 0, 18, .35);
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(230, 0, 18, .12);
}

/* 当前页：主色实心 + 同色光晕 */
.pg-item.active .pg-link {
  color: #fff;
  border-color: transparent;
  background: var(--primary, #e60012);
  box-shadow: 0 8px 18px rgba(230, 0, 18, .25);
  cursor: default;
}

/* 禁用态（上一页/下一页在首末页时）：低调、不可点 */
.pg-item.disabled .pg-link {
  color: #c4ccd8;
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 省略号（字符串元素，无 aria-hidden）：仅以点状低调呈现，不做灰底块 */
.pg-item.disabled .pg-link:not([aria-hidden]) {
  color: #aeb6c2;
  letter-spacing: 2px;
  font-weight: 700;
}

/* 首尾箭头（上一页 / 下一页）放大，更醒目 */
.pg-item:first-child .pg-link,
.pg-item:last-child .pg-link {
  font-size: 20px;
  font-weight: 700;
  min-width: 42px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .pg-nav { margin-top: 26px; }

  .pg-list { gap: 6px; }

  .pg-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pg-item:first-child .pg-link,
  .pg-item:last-child .pg-link {
    font-size: 18px;
    min-width: 38px;
  }
}
