
.container1 {
    width: 12.8rem;
    margin: 0 auto;
    padding: .2rem;
    background-color: #fff;
    border-radius: 0.08rem;
    box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 4.98rem;
  }

  .position{
    width: 12.8rem;
    margin: 0 auto;
  }

  h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: .3rem !important;
    font-size: .24rem !important;
  }

  .search-box {
    display: flex;
    margin-bottom: .2rem;
    gap: .1rem;
  }

  .search-input {
    flex: 1;
    padding: .1rem .15rem;
    border: .01rem solid #ddd;
    border-radius: .04rem;
    font-size: .14rem;
    outline: none;
    transition: border-color 0.3s;
  }

  .search-input:focus {
    border-color: #3498db;
  }

  .search-button,
  .reset-button {
    padding: .1rem .2rem;
    border: none;
    border-radius: .04rem;
    cursor: pointer;
    font-size: .14rem;
    transition: background-color 0.3s;
  }

  .search-button {
    background-color: #3498db;
    color: white;
  }

  .search-button:hover {
    background-color: #2980b9;
  }

  .reset-button {
    background-color: #95a5a6;
    color: white;
  }

  .reset-button:hover {
    background-color: #7f8c8d;
  }

  .table-container {
    overflow-x: auto;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .20rem!important;
  }

  th,
  td {
    padding: .12rem .15rem !important;
    text-align: left;
    border-bottom: .01rem solid #ddd !important;
  }

  th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
  }

  tr:hover {
    background-color: #f5f5f5;
  }

  tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .no-results {
    text-align: center;
    padding: .2rem;
    color: #7f8c8d;
    font-style: italic;
  }

  /* 在原有CSS基础上添加以下样式 */

  .loading {
    display: none;
    text-align: center;
    padding: .2rem;
    color: #3498db;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .spinner {
    border: .05rem solid #f3f3f3;
    border-top: .05rem solid #3498db;
    border-radius: 50%;
    width: .5rem;
    height: .5rem;
    animation: spin 1s linear infinite;
    margin: 0 auto .15rem;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* 在原有CSS基础上添加以下样式 */

  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: .2rem;
    padding: .1rem 0;
    border-top: 0.01rem solid #eee;
  }

  .pagination-info {
    color: #666;
    font-size: .14rem;
  }

  .pagination-controls {
    display: flex;
    align-items: center;
  }

  .page-button {
    padding: .06rem .12rem;
    margin: 0 0.05rem;
    border: 0.01rem solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 0.04rem;
    cursor: pointer;
    transition: all 0.3s;
  }

  .page-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
  }

  .page-button:disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
  }

  .page-numbers {
    display: flex;
  }

  .page-number {
    padding: 0.06rem .12rem;
    margin: 0 0.02rem;
    border: 0.01rem solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 0.04rem;
    cursor: pointer;
    transition: all 0.3s;
  }

  .page-number:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
  }

  .page-number.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
  }

  .page-size-selector {
    font-size: .14rem;
  }

  .page-size-selector select {
    padding: .04rem 0.08rem;
    border: 0.01rem solid #ddd;
    border-radius: 0.04rem;
    background-color: #fff;
  }