/* ========================================
   产品中心页样式
   ======================================== */

/* 页面标题区 */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
}

/* 产品区域 */
.products-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #f5f7f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--color-primary);
    background: rgba(0, 102, 204, 0.08);
}

.filter-tab.active {
    color: #fff;
    background: var(--color-primary);
}

.filter-result {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-count {
    color: var(--color-primary);
    font-weight: 600;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 产品卡片 */
.product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.12);
}

.product-item.hidden {
    display: none;
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--color-primary);
    opacity: 0.4;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
}

.product-badge.hot {
    background: #ff6b6b;
}

.product-badge.new {
    background: #00A651;
}

.product-badge.recommend {
    background: var(--color-primary);
}

.product-badge:empty {
    display: none;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-category {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-model {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-features {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-arrow {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 600;
}

/* 空状态 */
.products-empty {
    text-align: center;
    padding: 60px 20px;
}

.products-empty svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-muted);
    margin-bottom: 16px;
}

.products-empty p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 联系CTA */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066CC 0%, #004080 100%);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #fff;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-lg:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-lg:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .page-hero {
        padding: 100px 0 50px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 90px 0 40px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 15px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-lg,
    .btn-outline-lg {
        width: 100%;
        max-width: 280px;
    }
}
