.category-scroller {
    max-width: 98%;
    margin: 70px auto 0 auto;
    position: relative;
}
.category-scroller .category-gender:hover {
    color: #fdd000;
    text-decoration: underline;
}
.category-scroller button[disabled] {
    background-color: #4d4d4d;
}
@media (min-width: 992px) {
    .category-scroller {
        width: 86%;
    }
}

.scroller-header {
    margin-bottom: 24px;
}

.scroller-title {
    margin: 0;
    color: #1a1a1a;
    text-align: left;
}

.scroller-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroller-container::-webkit-scrollbar {
    display: none;
}

.scroller-wrapper {
    display: flex;
    gap: 12px;
}

.category-card {
    flex: 0 0 auto;
    width: calc((100% / 4) - 9.5px);
    transition: transform 0.3s ease;
}

.category-image-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    /* 严格保持3:4宽高比 (4/3=1.3333) */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-image-container:hover .category-image {
    transform: scale(1.03);
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    margin: 10px 0;
    color: #333;
}

.category-gender-container {
    display: flex;
    gap: 1rem;
}

.category-gender-container .category-gender {
    text-decoration: underline;
}

.scroller-nav {
    display: flex;
    margin-top: 16px;
    gap: 1rem;
}

.scroller-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    padding: 0;
    color: #212121;
}

.scroller-btn:hover {
    background: #f7f7f7;
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.scroller-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: white;
}

.scroller-btn svg {
    width: 16px;
    height: 16px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .category-card {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .scroller-wrapper {
        padding-bottom: 15px;
    }

    .category-scroller {
        width: 90%;
    }

    .scroller-container {
        overflow-x: scroll;
        scrollbar-width: thin !important;
    }

    .category-card {
        width: calc(50% - 10px);
    }

    .scroller-nav {
        display: none;
    }

}

@media (max-width: 480px) {
    .category-card {
        width: calc(70% - 10px);
    }

    .scroller-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

}