.main-list {
    min-height: calc(100vh - 560px + 77px);
}
section {
    padding: 0.8rem 0;
    box-sizing: border-box;
}

.title_bar {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 25px;
    margin: 0.8rem 0;
    background: var(--footer);
    border-radius: 8px;
}

.category-menu {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 1rem 0.8rem;
    box-sizing: border-box;
    width: 100%;
    /* 添加下面几行确保样式生效 */
    align-items: center;
}

.category-item {
    white-space: nowrap;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #eee;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.category-item.active {
    background-color: #ff416c !important;
    color: white !important;
    font-weight: bold;
}

.game-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}
.game-list ul li {
    width: 100%;
    height: 6rem;
    border-radius: 12px;
    overflow: hidden;
}
.game-list li img {
    width: 100%;
    height: 100%;
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0.7;
    transition: opacity 0.5s ease-in-out;
    background-color: #333;
    object-fit: cover;
}

.lazy-load.loaded {
    opacity: 1;
}

.btn {
    width: 100%;
    text-align: center;
    margin: 1.2rem 0;
}
.btn button {
    border: none;
    padding: 12px 20px;
    border-radius: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    background-color: rgba(255,255,255,0.2);
    text-align: center;
    cursor: pointer;
}


@media screen and (max-width: 576px) {
    .game-list ul {
        grid-template-columns: repeat(1fr, 1fr);
    }
    .game-list ul li {
        height: 8rem;
    }
    
    .category-menu {
        gap: 10px;
    }
    
    .category-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}