

#pagination {
  margin: 2rem auto;
  text-align: center;
}

/* 搜索结果弹出框样式 */
.search-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      overflow-y: auto;
    }

    .search-modal {
      position: relative;
      background-color: white;
      margin: 10% auto;
      padding: 0;
      width: 90%;
      max-width: 800px;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title {
      margin: 0;
      font-size: 18px;
      font-weight: 500;
    }

    .close-btn {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #666;
      padding: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-btn:hover {
      color: #333;
    }

    .modal-content {
      padding: 20px;
      max-height: 70vh;
      overflow-y: auto;
    }

    /* 搜索结果样式 */
    #hits {
      margin-bottom: 20px;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .search-modal {
        margin: 5% auto;
        width: 95%;
      }
      
      .modal-content {
        max-height: 80vh;
      }
    }
