/* 产品展示页面样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.product-card img:hover {
    opacity: 0.9;
    cursor: pointer;
}

.product-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    list-style: none;
}

.category-nav a {
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 0.5rem;
}
.category-nav a.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(8, 102, 255, 0.1), rgba(74, 144, 255, 0.1));
    border-color: transparent;
    
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-nav {
        flex-direction: column;
    }
}
