/* ===== LAYOUT ===== */
.container{
    max-width:1280px;
    margin:30px auto;
    display:flex;
    gap:30px;
    padding:0 20px;
}
/* ===== SIDEBAR ===== */
.sidebar{
    width:260px;
}

.pc-sidebar{
    display:block;
}

.mobile-sidebar{
    display:none;
}
.block{
    margin-bottom:25px;
}
.block-title{
    background:#f5f5f5;
    padding:8px 12px;
    font-weight:bold;
    font-size:14px;
}
.block ul{
    list-style:none;
    padding:10px 12px;
    margin:0;
}
.block li{
    font-size:13px;
    padding:6px 0;
    color:#555;
}
.block li:hover{color:#000;}
.show-more{
    font-size:12px;
    color:#999;
}

/* 品牌列表样式 */
.block .brand-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.block .brand-list li:last-child {
    border-bottom: none;
}

.block .brand-list li a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 6px 10px;
}

.block .brand-list li a:hover {
    background: #f5f5f5;
    color: #C69C6D;
}

/* 分类列表美化样式 */
.category-item {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.category-toggle:hover {
    background: #f5f5f5;
    color: #C69C6D;
}

.category-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    transition: transform 0.3s ease;
}

.category-toggle.active::after {
    transform: rotate(180deg);
}

/* 子分类样式 */
.sub-category {
    padding-left: 15px;
    margin: 5px 0;
    border-left: 2px solid #f0f0f0;
}

.sub-category li {
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.sub-category li:hover {
    background: #fafafa;
}

.sub-category li a {
    color: #666;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.sub-category li a:hover {
    color: #C69C6D;
}

/* 选中的分类样式 */
.sub-category li.active a {
    color: #C69C6D;
    font-weight: 500;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle{
    display:none;
    background:#f5f5f5;
    padding:12px 15px;
    font-weight:bold;
    font-size:14px;
    cursor:pointer;
    margin-bottom:15px;
    position:relative;
}
.mobile-sidebar-toggle::after{
    content:'+';
    position:absolute;
    right:35px;
    top:50%;
    transform:translateY(-50%);
    font-size:18px;
    font-weight:bold;
}
.mobile-sidebar-toggle.active::after{
    content:'-';
}
.mobile-sidebar-wrapper{
    display:none;
}
.mobile-sidebar-wrapper.active{
    display:block;
}

/* ===== CONTENT ===== */

/* ===== CONTENT ===== */
.content{
    flex:1;
    width:auto;
}

/* Banner */
.filter-banner{
    background:url('/assets/img/banner_list.jpg') center/cover no-repeat;
    padding:20px;
    border-radius:8px;
    color:#fff;
    height:220px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}
.search-section{
    /* background:#fff; */
    padding:15px;
    margin-top:10px;
    border-radius:6px;
    width:auto;
    border-radius: 0px 5px 5px;
}
.filter-box{
    background:#fff;
    padding:15px;
    margin-top:10px;
    border-radius:6px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.filter-box select,
.filter-box button{
    padding:8px;
    font-size:13px;
}
.filter-box button{
    background:#EDCCAE;
    border:none;
    cursor:pointer;
}

/* Products */
.section-title{
    text-align:center;
    font-size:24px;
    font-weight:700;
    margin:30px 0 20px;
    color:#000;
}

.products{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:30px;
}
.product{
    border:1px solid #eee;
    border-radius:10px;
    padding:15px;
    background:#fff;
}
.product-link{
    text-decoration:none;
    color:inherit;
}
.product img{
    width: 100%;
    height: 180px;
    object-fit: contain;
}
.product h4{
    font-size:14px;
    margin:10px 0 5px;
}
.price{
    color:#C69C6D;
    font-weight:bold;
    margin-top:6px;
}
.product small{color:#999;font-size:12px;}

/* 空数据提示样式 */
.empty-tip{
    text-align:center;
    padding:60px 20px;
    font-size:16px;
    color:#999;
    grid-column:1/-1;
}

/* Pagination */
.pagination{
    text-align:center;
    margin:40px 0;
}
.pagination ul{
    display:inline-flex;
    list-style:none;
    padding:0;
    margin:0;
}
.pagination li{
    margin:0 4px;
}
.pagination li a,
.pagination li span{
    display:inline-block;
    padding:8px 14px;
    font-size:14px;
    color:#333;
    background:#fff;
    border:1px solid #ddd;
    border-radius:4px;
    text-decoration:none;
    transition:all 0.3s ease;
}
.pagination li a:hover{
    background:#C69C6D;
    color:#fff;
    border-color:#C69C6D;
}
.pagination li.active span{
    background:#C69C6D;
    color:#fff;
    border-color:#C69C6D;
}
.pagination li.disabled span{
    color:#999;
    background:#f5f5f5;
    border-color:#ddd;
    cursor:not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container{
        padding:0 15px;
        gap:0;
        margin:0;
        display:block;
    }

    .pc-sidebar{
        display:none;
    }

    .mobile-sidebar{
        display:block;
    }

    .mobile-sidebar-toggle{
        display:block;
        margin: 15px 0;
    }

    .mobile-sidebar-wrapper{
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 10001;
        background: #fff;
    }

    .mobile-sidebar-wrapper.active{
        display: block !important;
    }

    .mobile-sidebar-wrapper.active .sidebar{
        display: block !important;
        width: 100%;
        padding: 0;
    }

    .mobile-sidebar-wrapper.active .block{
        padding: 0 15px;
    }

    /* 关闭按钮 */
    .mobile-sidebar-close {
        position: absolute;
        top: 60px;
        right: 15px;
        font-size: 30px;
        color: #333;
        cursor: pointer;
        z-index: 1000;
        background: #fff;
        width: 40px;
        height: 40px;
        line-height: 38px;
        text-align: center;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .content{
        width:100%;
        max-width:100%;
        padding:0;
    }

    .filter-banner{
        padding:15px;
        height:auto;
    }

    .section-title{
        font-size:20px;
        margin:20px 0 15px;
    }

    .filter-box{
        flex-direction:column;
        gap:8px;
    }

    .filter-box select,
    .filter-box button{
        width:100%;
        box-sizing:border-box;
    }

    .products{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
        padding:0;
        margin-top:15px;
        max-width:100%;
    }

    .product{
        padding:8px;
    }

    .product img{
        max-height:120px;
        object-fit:contain;
    }

    .product h4{
        font-size:12px;
        margin:8px 0 4px;
    }

    .product small{
        font-size:11px;
    }

    .price{
        font-size:13px;
        margin-top:4px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products{
        grid-template-columns:repeat(3,1fr);
        gap:12px;
    }

    .product{
        padding:8px;
    }

    .product img{
        max-height:130px;
        object-fit:contain;
    }

    .product h4{
        font-size:12px;
        margin:6px 0 3px;
    }

    .product small{
        font-size:11px;
    }

    .price{
        font-size:13px;
        margin-top:4px;
    }
}