body {
    margin: 0;
    padding: 0;
    background-image: url("./images/backgeound.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    box-sizing: border-box;
    padding-bottom: 100px; /* 添加底部padding以确保可以滚动 */
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    text-align: left;
    height: 244px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card.selected {
    border: 2px solid #007bff;
}

.card-header {
    background-color: #e9ecef;
    color: #183153;
    padding: 10px;
}

.card-content {
    padding: 8px;
    margin: 0;
    color: #333;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    font-size: 12px;
    height: calc(100% - 40px);
}

.card-content p {
    margin: 0;
    color: #333;
    line-height: 2;
}

.pagination {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* 确保翻页按钮在内容上方显示 */
}

.pagination img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 0 10px;
}

/* 添加隐藏按钮的样式 */
.hidden {
    visibility: hidden;
}

.no-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}