/* 产品页面特定样式 */
.products-page {
    padding-top: 80px;
}

.page-banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 4rem 2rem;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.products-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 3rem var(--padding-desktop);
}

/* 产品分类导航 */
.product-categories {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-categories h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.product-categories ul {
    list-style: none;
}

.product-categories li {
    margin-bottom: 1rem;
}

.product-categories a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-categories a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-categories li.active a::after {
    transform: scaleX(1);
}

.product-categories li.active a,
.product-categories a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    animation: fadeIn 0.5s ease forwards;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.detail-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.detail-btn:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .product-categories {
        margin-bottom: 2rem;
    }

    .product-categories ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .product-categories li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 3rem 1rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 优化分类链接的样式 */
.product-categories a {
    position: relative;
    overflow: hidden;
}

.product-categories a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-categories li.active a::after {
    transform: scaleX(1);
}

/* 产品切换时的过渡效果 */
.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item.hidden {
    opacity: 0;
    transform: translateY(20px);
} 