body {
    margin: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #FEF1EB;
    color: #333;
}

.banner {
    width: 100%;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}


main {
    min-height: 600px;
    margin-top: 64px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    gap: 40px;
    margin: 0 20vw 30px;
    align-items: stretch;
    justify-content: center;
    position: relative;
    z-index: 5;
    min-height: 600px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: none;
    /* 固定卡片尺寸，确保布局一致 */
    width: 240px;
    height: 210px;
    /* 确保内容不会溢出 */
    box-sizing: border-box;
}

/* 悬浮效果完全由JavaScript控制 */

/* 列悬浮特效由JavaScript控制 */

.card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #eee;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
    flex-shrink: 0;
}

/* 卡片内容区域 */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
    /* 确保内容区域填满剩余空间 */
    min-height: 0;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    /* 固定标题高度，支持2行文字 */
    height: 36px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin: 0 0 2px 0;
    word-wrap: break-word;
    word-break: break-word;
    transition: all 0.3s ease;
}

.card-meta {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 400;
    /* 元数据固定在底部 */
    margin-top: auto;
    flex-shrink: 0;
    height: 20px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 悬浮状态下的样式 */
.card:hover .card-title {
    /* 悬浮时标题显示3行 */
    /* -webkit-line-clamp: 3; */
    /* 3行文字的高度 */
    /* height: 54px; */

}

.card:hover .card-meta {
    /* 悬浮时元数据仍显示1行 */
    height: 20px;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 20vw 40px;
    position: relative;
    z-index: 10;
    margin-bottom: 420px;
}

.pagination button {
    background: #fff;
    border: 1px solid #d60000;
    color: #d60000;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 2px;
    transition: background 0.2s, color 0.2s;
}

.pagination button.active,
.pagination button:hover {
    background: #d60000;
    color: #fff;
}

.footer-decoration {
    width: 100%;
    position: relative;
}

.footer-decoration img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}


/* 响应式设计优化 */
@media (max-width: 1200px) {
    .card-list {
        grid-template-columns: repeat(3, 240px);
        gap: 30px 15px;
        margin: 0 20vw 30px;
    }
}

@media (max-width: 900px) {
    .card-list {
        grid-template-columns: repeat(2, 240px);
        gap: 20px 10px;
        margin: 0 20vw 30px;
    }

    .card {
        height: 220px;
        width: 240px;
    }

    .card:hover {
        height: 260px;
    }

    .card-img {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .card-list {
        grid-template-columns: 240px;
        gap: 15px;
        margin: 0 20vw 30px;
    }

    .card {
        height: 200px;
        width: 240px;
        margin: 0 auto;
    }

    .card:hover {
        height: 240px;
    }

    .card-img {
        height: 120px;
    }

    .card-title {
        font-size: 0.9rem;
        height: 32px;
    }

    .card-meta {
        font-size: 0.8rem;
    }
}