/* 产品中心专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    color: white;
    padding: 80px 0 40px;
    margin-top: 70px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 12px;
}

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

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

.category-tab {
    padding: 10px 25px;
    background: #f1f5f9;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    /* 消除点击延迟 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.category-tab:hover {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}

.category-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* 产品网格 */
.product-grid-section {
    padding: 60px 0;
    background-color: #f1f5f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 避免进入页面时先显示全部产品再被分页隐藏 */
html.products-preload .product-grid {
    visibility: hidden;
}

.product-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.product-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

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

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

.image-placeholder {
    color: white;
    font-size: 60px;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 图片加载状?*/
.image-loading {
    opacity: 0.5;
    filter: blur(5px);
}

.image-loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.5s, filter 0.5s;
}

.product-badge {
    display: none;
    top: 15px;
    right: 15px;
    background: #059669;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.product-specs {
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.spec-item i {
    color: #2563eb;
    width: 16px;
}

.product-desc {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.page-link:hover {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}

.page-link.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.page-dots {
    color: #9ca3af;
    padding: 0 10px;
}

.page-link.next {
    width: auto;
    padding: 0 20px;
}

/* 产品对比 */
.product-comparison {
    padding: 80px 0;
    background-color: white;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th {
    background: #2563eb;
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.comparison-table tbody tr:hover {
    background-color: #f1f5f9;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* 技术咨?*/
.tech-consult {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    color: white;
    text-align: center;
}

.consult-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.consult-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* 响应式设?*/
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
        /* 移动端增大触摸区?*/
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 14px;
        /* 消除点击延迟 */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 通过伪元素进一步增大触摸区?*/
    .category-tab::after {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .consult-content h2 {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .consult-content h2 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}