﻿.main-container {
    width: 100%;
    min-height:70vh;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    width: 90%;
}

@media screen and (min-width: 1600px) {
    .content-wrapper {
        width: 65%;
    }
}

.category-menu {
    display: flex;
    justify-content: space-between; /* 均匀分布 */
    align-items: center;
    flex-wrap: nowrap; /* 禁止换行 */
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    box-sizing: border-box;
    gap: 0; /* 去掉间隙 */
}

    .category-menu a {
        flex: 1; /* 所有项等宽 */
        text-align: center;
        font-size: 1.2rem;
        padding: 12px 0;
        text-decoration: none;
        background-color: #f5f5f5;
        color: #333;
        border-radius: 4px;
        margin: 0 5px;
        transition: background-color 0.3s ease;
        white-space: nowrap; /* 防止文字换行 */
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .category-menu a:hover {
            background-color: #ffe58a;
            color: #333;
        }

        .category-menu a.active {
            background-color: #FF9910;
            color: white;
            font-weight: 500;
        }

.search-tip {
    font-size: 16px;
    padding-left: 20px;
    color: #666;
}

.pagination {
    margin-top: 30px;
    text-align: right;
}

    .pagination button {
        margin: 0 10px;
        padding: 8px 16px;
        font-size: 14px;
        background-color: #42b983;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

        .pagination button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 自动行列 */
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

.card-item {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

    .card-item img {
        width: 100%;
        height: 150px;
        border-radius: 8px;
        object-fit: cover;
        border-bottom: 1px solid #f0f0f0;
    }

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #ee4c0c;
    text-align: center;
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}
