@charset "utf-8";
/* CSS Document */

  /* 分页器样式 */
  .pagination-wrapper {
    margin-top: 40px;
  }

  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
  }

  .pagination-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .pagination-stats {
    color: #666;
    font-size: 14px;
  }

  .page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
  }

  .page-size-selector select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
  }

  .page-size-selector select:hover {
    border-color: #016bb5;
  }

  .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pagination-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pagination-btn {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 32px;
    height: 32px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #016bb5;
    color: #016bb5;
  }

  .pagination-btn.active {
    background: #016bb5;
    border-color: #016bb5;
    color: white;
  }

  .pagination-btn.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #d9d9d9;
  }

  .pagination-ellipsis {
    padding: 10px 8px;
    color: #999;
    user-select: none;
    box-sizing: border-box;
  }

  /* 跳转输入框 */
  .jump-to {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
  }

  .jump-to input {
    width: 50px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
  }

  .jump-to input:hover {
    border-color: #016bb5;
  }

  .jump-to input:focus {
    border-color: #016bb5;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }

  .jump-to button {
    height: 32px;
    padding: 4px 12px;
    background: #016bb5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    box-sizing: border-box;
  }

  .jump-to button:hover {
    background: #1178c2;
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    /* 移动端分页器布局调整 */
    .pagination-container {
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
    }

    .pagination-left {
      flex-direction: column;
      gap: 8px;
      align-items: flex-start;
    }

    .pagination-stats {
      font-size: 13px;
    }

    .page-size-selector {
      font-size: 13px;
    }

    .page-size-selector select {
      font-size: 13px;
    }

    .pagination {
      justify-content: center;
      gap: 4px;
      flex-wrap: wrap;
    }

    .pagination-btn {
      min-width: 36px;
      height: 36px;
      font-size: 13px;
      padding: 6px 8px;
      /* 增加触摸目标大小 */
      touch-action: manipulation;
      box-sizing: border-box;
    }

    .pagination-ellipsis {
      padding: 8px 6px;
      font-size: 13px;
      box-sizing: border-box;
    }

    .pagination-right {
      justify-content: center;
    }

    .jump-to {
      font-size: 13px;
    }

    .jump-to input {
      width: 45px;
      height: 36px;
      font-size: 13px;
    }

    .jump-to button {
      height: 36px;
      font-size: 13px;
      padding: 6px 10px;
      box-sizing: border-box;
    }

    .config-grid {
      grid-template-columns: 1fr;
    }
  }

  /* 超小屏幕适配 */
  @media (max-width: 480px) {
    .pagination-container {
      gap: 10px;
    }

    .pagination-left {
      gap: 6px;
    }

    .pagination-stats {
      font-size: 12px;
      text-align: center;
      width: 100%;
    }

    .page-size-selector {
      font-size: 12px;
      justify-content: center;
      width: 100%;
    }

    .pagination {
      gap: 2px;
    }

    .pagination-btn {
      min-width: 32px;
      height: 32px;
      font-size: 12px;
      padding: 4px 6px;
      box-sizing: border-box;
    }

    .pagination-ellipsis {
      padding: 6px 4px;
      font-size: 12px;
      box-sizing: border-box;
    }

    .jump-to {
      font-size: 12px;
      gap: 6px;
    }

    .jump-to input {
      width: 40px;
      height: 32px;
      font-size: 12px;
    }

    .jump-to button {
      height: 32px;
      font-size: 12px;
      padding: 4px 8px;
      box-sizing: border-box;
    }

    /* 隐藏部分页码以节省空间 */
    .pagination-btn:nth-child(n + 6):nth-last-child(n + 6) {
      display: none;
    }
  }
