/* 产品页面样式 */

/* 产品分类Tab */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border-color: transparent;
    color: #ffffff;
}

/* 产品分类内容 */
.product-category {
    display: none;
}

.product-category.active {
    display: block;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    padding: 25px;
    overflow: hidden;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.product-placeholder {
    width: 120px;
    height: 120px;
}

.product-placeholder svg {
    width: 100%;
    height: 100%;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.product-tags {
    margin-bottom: 12px;
}

.product-info > p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info {
    overflow: hidden;
}

/* 产品规格 */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.spec {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 70px;
    flex-shrink: 0;
}

.spec-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
    word-break: break-all;
}

.product-info .btn-primary {
    width: 100%;
}

/* 产品咨询 */
.product-cta {
    padding: 60px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* 响应式 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 768px) {
    .product-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-specs {
        gap: 8px;
    }
    
    .spec {
        flex-direction: column;
        gap: 2px;
    }
    
    .spec-label {
        min-width: auto;
    }
}
