/* ===== 基础外观 ===== */
/* 基础分页样式 */
        .pagination {
            display: flex;
            list-style: none;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin: 20px 0;
        }

        .pagination li {
            display: inline-flex;
        }

        /* 基础链接样式 */
        .pagination a {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            text-decoration: none;
            color: #cbd5e1;
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            background: rgba(15, 23, 42, 0.6);
            position: relative;
            overflow: hidden;
        }

        .pagination a::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .pagination a:hover {
            color: #f8fafc;
            border-color: rgba(56, 189, 248, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
        }

        .pagination a:hover::before {
            opacity: 0.8;
        }

        /* 当前页样式 */
        .pagination li.active span {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
            color: #f8fafc;
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: default;
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
            position: relative;
        }

        .pagination li.active span::after {
            content: "";
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
            z-index: -1;
            border-radius: 10px;
            filter: blur(5px);
            opacity: 0.7;
        }

        /* 禁用状态样式 */
        .pagination li.disabled span {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            color: #64748b;
            border: 1px solid rgba(100, 116, 139, 0.2);
            border-radius: 8px;
            font-size: 14px;
            cursor: not-allowed;
            background: rgba(15, 23, 42, 0.4);
        }

        /* 现代风格 - 圆形按钮 */
        .pagination-modern a,
        .pagination-modern li.active span,
        .pagination-modern li.disabled span {
            border-radius: 50%;
            width: 42px;
            height: 42px;
            padding: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .pagination-modern li.active span {
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
        }
/* ===== 自适应裁剪 ===== */
@media (max-width:480px){
  /* 1. 只保留 3 个页码按钮 + 必要控制 */
  .responsive li:not(.active):not(.prev):not(.next){
    display:none
  }
  /* 2. 当前页左右各留 1 个 */
  .responsive .active + li,
  .responsive li:has(+ .active){
    display:inline-flex
  }
  /* 3. 首尾、上下页始终可见 */
  .responsive .first,
  .responsive .last,
  .responsive .prev,
  .responsive .next{
    display:inline-flex
  }
  /* 4. 用伪元素生成“…”提示还有页 */
  .responsive .last::before{
    content:"…";margin-right:4px;color:#9ca3af
  }
}