/* Banner样式 */
.list-banner {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.list-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-content{
    background-image: url(../images/bg-detail.jpg);
    background-repeat: repeat-y;
    background-size: cover;
    background-position: center;
    width: 100%;
}

/* 内容容器 */
.content-container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background-color: transparent;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* 分类筛选 */
.category-filter {
    background: #f8f8f8;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-label {
    min-width: 80px;
    font-weight: bold;
    color: #333;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-options a {
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    color: #fff !important;
    background-color: #E10000;
}

/* 产品展示区域 */
.product-container {
    display: flex;
    gap: 30px;
}

/* 左侧推荐产品 */
.recommended-products {
    width: 240px;
    flex-shrink: 0;
}

.recommended-products h2 {
    font-size: 18px;
    padding: 10px;
    /*border-bottom: 2px solid #007bff;*/
    text-align: center;
    background-color: #0e0e0e;
    color: #FFF;
    margin: 0;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s;
    padding: 15px;
    text-align: center;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    color: #ff4d4f;
    font-size: 16px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.product-price {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

/* 右侧产品列表 */
.product-list {
    flex: 1;
}

.list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-options a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.sort-options a:hover,
.sort-options a.active {
    color: #007bff;
}

.sort-options a i {
    padding-left: 4px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    padding: 15px;
    text-align: center;
}

.grid-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-item-info {
    padding: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.pagination li a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.pagination li span {
    color: #9e9e9e;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.pagination .active span{
    background-color: #E10000;
    border-color: #E10000;
}

.pagination .active span:hover{
    background-color: #E10000;
    border-color: #E10000;
}

.pagination li a:hover,
.pagination li a.active {
    color: #FFF !important;
    background: #E10000;
    border-color: #E10000;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .list-banner {
        height: 500px;
    }

    .content-container {
        max-width: 900px;
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommended-products {
        width: 250px;
    }
}

@media screen and (max-width: 768px) {
    .list-banner {
        height: 400px;
    }
    .product-container {
        flex-direction: column-reverse;
    }

    .recommended-products {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-options {
        gap: 10px;
    }

    .filter-options a {
        padding: 3px 10px;
    }
}
