/* 产品Banner + 面包屑样式 */
.products-banner {
    position: relative;
    height: 200px;
    background-color: #222;
    color: #fff;
    display: flex;
    align-items: center;
}

.products-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.products-banner .container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.products-banner .breadcrumb {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.products-banner .breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.products-banner .breadcrumb a:hover {
    color: #4CAF50;
}

.products-banner .breadcrumb span {
    color: #ddd;
}

.products-banner .breadcrumb .active {
    color: #4CAF50;
    font-weight: 500;
}

.products-banner h1 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* 产品列表主区域 */
.products-list-section {
    padding: 60px 0;
    background-color: #fff;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 左侧筛选侧边栏 */
.products-sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

.filter-widget {
    margin-bottom: 30px;
}

.filter-widget h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

/* 分类筛选样式 */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list li.active > a {
    color: #4CAF50;
    font-weight: 600;
}

.categories-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #4CAF50;
}

.subcategories {
    list-style: none;
    padding-left: 15px;
    margin-top: 8px;
    display: block;
}

.subcategories li {
    margin-bottom: 8px;
}

.subcategories a {
    color: #666;
    font-size: 13px;
    display: block;
    padding: 4px 0;
}

/* 筛选条件样式 */
.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.filter-options label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

/* 清空筛选按钮 */
.clear-all-btn {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.clear-all-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 右侧产品内容区 */
.products-content {
    width: 100%;
}

/* 产品列表顶部控制栏 */
.products-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.results-count p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.view-toggle {
    display: flex;
    border: 1px solid #ddd;
}

.view-toggle button {
    width: 36px;
    height: 36px;
    background-color: #fff;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background-color: #4CAF50;
    color: #fff;
}

.view-toggle button:hover:not(.active) {
    background-color: #f5f5f5;
}

/* 产品网格列表 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding: 15px 15px 8px;
    margin: 0;
}

.product-desc {
    font-size: 13px;
    color: #666;
    padding: 0 15px 15px;
    margin: 0;
    line-height: 1.5;
}

.view-details-btn {
    display: block;
    text-align: center;
    padding: 10px;
    margin: 0 15px 15px;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    background-color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.page-link:hover:not(.active) {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.page-item.next .page-link {
    width: 40px;
    height: 40px;
}

/* 产品优势模块 */
.products-advantages {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.advantage-item {
    padding: 0 15px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.advantage-item h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #222;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .products-banner h1 {
        font-size: 30px;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-by-widget {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .products-banner {
        height: 180px;
    }
    
    .products-banner h1 {
        font-size: 26px;
    }
    
    .products-list-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .products-sidebar {
        grid-template-columns: 1fr;
    }
    
    .filter-by-widget {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .products-banner {
        height: 150px;
    }
    
    .products-banner h1 {
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 180px;
    }
    
    .pagination .page-link {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}