/* 产品中心样式 */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 70px;
    overflow: hidden;
    background: url('../images/products-banner.jpg') no-repeat center center/cover;
}

.page-banner img {
    display: none; /* 隐藏原有的图片元素 */
}

.page-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-title h1 {
    color: #fff;
    font-size: 42px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    position: relative;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.main {
    padding: 60px 0;
}

/* 产品分类导航栏美化 */
.product-sidebar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 28px 18px 18px 18px;
    min-width: 220px;
    max-width: 260px;
    margin-bottom: 32px;
    border: 1px solid #f0f0f0;
}
.category-block {
    background: #f8faff;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.04);
    padding: 16px 12px 10px 12px;
    transition: box-shadow 0.3s;
}
.category-block:hover {
    box-shadow: 0 4px 16px rgba(0,123,255,0.10);
}
.category-block h3 {
    font-size: 18px;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    padding-right: 18px;
    background: none;
}
.category-list > li {
    padding: 7px 0 7px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}
.category-list > li:hover, .category-list > li:active {
    background: #e6f0ff;
    color: #007bff;
}
.category-list > li > a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.category-list > li > a:hover {
    color: #007bff;
}
.category-block.collapsed .category-list {
    max-height: 0;
    padding: 0;
    margin: 0;
}
.category-block .category-list {
    max-height: 500px;
    transition: max-height 0.3s;
}

/* 产品列表 */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    margin-bottom: 6px;
    font-size: 15px;
    color: #333;
}

.product-info p {
    margin-bottom: 10px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.btn-more {
    display: inline-block;
    padding: 5px 14px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-more:hover {
    background-color: #0056b3;
}

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

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }

    .category-nav {
        flex-wrap: wrap;
    }
    
    .category-nav li {
        margin: 5px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 140px;
    }
} 