/* 产品分类页面样式 */

/* 页面横幅 */
.page-banner {
    background: linear-gradient(to right, #6a11cb, #8a2be2);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-banner h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.page-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* 分类选项卡 */
.product-categories {
    margin-bottom: 40px;
}

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

.category-tab {
    background-color: transparent;
    border: 2px solid #8a2be2;
    color: #8a2be2;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background-color: rgba(138, 43, 226, 0.1);
}

.category-tab.active {
    background-color: #8a2be2;
    color: #fff;
}

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

.product-card {
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #8a2be2;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.product-info p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #8a2be2;
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-details, .btn-contact {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details {
    background-color: transparent;
    border: 1px solid #8a2be2;
    color: #8a2be2;
}

.btn-details:hover {
    background-color: rgba(138, 43, 226, 0.1);
}

.btn-contact {
    background-color: #8a2be2;
    color: #fff;
}

.btn-contact:hover {
    background-color: #7621bc;
}

/* CTA 部分 */
.cta-section {
    background: linear-gradient(to right, #6a11cb, #8a2be2);
    padding: 80px 0;
    margin-top: 40px;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: #fff;
    color: #8a2be2;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

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

@media (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }
    
    .page-banner h1 {
        font-size: 32px;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info h3 {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
} 