/* 产品展示页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    margin-top: 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 产品分类 */
.product-categories {
    padding: 40px 0;
    background: var(--white);
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* 产品列表 */
.product-list {
    padding: 60px 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    opacity: 1;
}

.product-item.hidden {
    display: none;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-item .product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.product-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-content {
    padding: 30px;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.product-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 5px;
}

.btn-detail {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .product-item .product-image {
        height: 200px;
    }

    .product-content {
        padding: 20px;
    }

    .product-item h3 {
        font-size: 18px;
    }
}
