.product-category-sidebar {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-category-sidebar-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
}

.product-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-category-list ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
}

.product-category-item {
    position: relative;
}

.product-category-item > a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 4px;
    line-height: 2;
}

.product-category-item > a:hover {
    color: #fdb016;
}

.product-category-item.current-cat > a,
.product-category-item.current-cat-parent > a {
    color: #fdb016;
    font-weight: 600;
}

.product-category-item .children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
}

.product-category-item.active > .children {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.product-category-item .toggle {
    position: absolute;
    right: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.product-category-item .toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.product-category-item .count {
    margin-left: 4px;
}

/* 优化子分类的缩进和样式 */
.product-category-list ul {
    margin-top: 2px;
}

.product-category-list ul .product-category-item > a {
    padding-left: 15px;
}

/* 优化空分类的样式 */
.product-category-item.empty-category > a {
    opacity: 0.7;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .product-category-sidebar {
        padding: 15px;
    }
    
    .product-category-item > a {
        padding: 6px 32px 6px 8px;
    }
} 