/* 分类卡片小部件样式 */
.category-card-widget {
    display: block;
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.category-card-link:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

.category-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.category-card-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #fff;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.category-card-count svg {
    width: 12px;
    height: 12px;
}

.category-card-link:hover .category-card-count {
    opacity: 1;
    transform: translateX(0);
}

/* 手机端隐藏产品数量 */
@media (max-width: 767px) {
    .category-card-count {
        display: none !important;
    }
}
