/* 产品列表页面样式 */

/* 轮播图占位符 */
.banner-placeholder {
    width: 100%;
    height: 400px;
    background: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

/* 产品目录标题 */
.catalog-header {
    margin-bottom: 2rem;
}

.catalog-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    display: inline-block;
}

/* 产品列表区域 */
.product-list-section {
    padding: 3rem 0;
    /* background: #f5f5f5; */
}

.product-list-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* 左侧边栏 */
.product-sidebar {
    background: white;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    position: sticky;
    top: 180px;
    border: 1px solid #e0e0e0;
}

.category-list {
    padding: 0;
}

/* 分类组 */
.category-group {
    border-bottom: 1px solid #e0e0e0;
}

.category-group:last-child {
    border-bottom: none;
}

/* 父级分类 */
.category-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: white;
    font-size: 0.9375rem;
}

    .category-parent:hover {
        border-left-color: #ff8c42;
        background: #f9f9f9;
    }

    .category-parent.active {
        border-left-color: #ff8c42;
        background: #ff8c42;
        color:white
    }
        .category-parent.active .category-arrow {
            color: white
        }

        .category-text {
            flex: 1;
        }

.category-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #999999;
}

/* 子级分类 */
.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.category-children.show {
    max-height: 500px;
}

.category-child {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
}

.category-child:hover {
    background: #f0f0f0;
    color: #333333;
    border-left-color: #ff8c42;
}

/* Contact Us 联系模块 */
.contact-us-box {
    margin-top: 0;
    padding: 1.5rem;
    background: #3d3d3d;
    color: white;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.contact-subtitle {
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.contact-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* 产品网格容器 */
.product-grid-container {
    background: white;
    border-radius: 0;
    /* padding: 2.5rem; */
    box-shadow: none;
    /* border: 1px solid #e0e0e0; */
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 产品卡片 */
.product-card {
    background: #ECECEC;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding:1rem;
}

.product-model {
    display: inline-block;
    background: #f5f5f5;
    color: #666666;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 400;
/*    color: #333333;*/
/*    margin: 0 0 0.75rem 0;*/
    line-height: 1.4;
}

.product-desc {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.layui-laypage a,.layui-laypage span {
    display: inline-block;
    vertical-align: middle;
    padding: 5px 15px;
    /* height: 1.5rem; */
    /* line-height: 1.5; */
    /* margin: 0 -1px 5px 0; */
    background-color: #fff;
    color: #333;
    font-size: 1rem
}
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn,
.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d0d0;
    background: white;
    color: #666666;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.page-btn:hover:not(.disabled),
.page-number:hover {
    background: #f5f5f5;
    color: #333333;
    border-color: #d0d0d0;
}

.page-number.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #9ca3af;
    padding: 0 0.5rem;
}

.page-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.page-total {
    font-weight: 600;
    color: var(--primary-blue);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-list-container {
        grid-template-columns: 1fr;
    }
    
    .product-sidebar {
        position: static;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
}


