/*prouducts*/

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            display: flex;
            width:98%;
            min-height: 100vh;
            max-width: 1275px;
            margin-left:0px;
            margin-right:0px
        }
        
        /* 左侧导航栏样式 */
        .sidebar {
            width: 310px;
            background-color: #fff;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .nav-list {
            list-style: none;
        }
        
        .nav-item {
            padding: 30px 30px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .nav-item:hover {
            background-color: #918876;
            color: white;
            font-size: 18px;
        }
        
        /* 联系我们导航项不变化 */
        .nav-item.contact-item:hover {
            background-color: white;
            color: #333;
            font-size: 16px;
            cursor: default;
        }
        
        .nav-item.active {
            background-color: #918876;
            color: white;
            font-weight: bold;
        }
        
        .nav-link {
            text-decoration: none;
            color: inherit;
            display: block;
            width: 100%;
        }
        
        /* 右侧产品展示区样式 */
        .content {
            flex: 1;
            padding: 30px;
            
            
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
        
        .product-card {
            background-color: white;
            border-radius: 0px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            background-color: #918876 ;
            color: #fff;
            border: solid 1px #918876;
        }
        
        .product-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.1);
        }
        
        .product-info {
            padding: 10px;
        }
        
        .product-name {
            font-size: 16px;
            margin-bottom: 5px;
            text-align: center;
            
        }
        
        .product-price {
            color: #918876;
            font-weight: bold;
            font-size: 18px;
        }
        
        .product-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        /* 移动端样式 */
        @media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    
    .nav-item {
        padding: 3px 10px;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
        font-size: 14px;
    }
    
    .contact-item {
        display: none;
    }
    
    .content {
        padding: 20px 0px;
        
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    /* 移动端最多显示8个产品 */
    .product-category.active .products-grid .product-card:nth-child(n+9) {
        display: none !important;
    }
}
        
        /* 隐藏所有产品类别，只显示当前激活的 */
        .product-category {
            display: none;
        }
        
        .product-category.active {
            display: block;
        }