/* 产品中心页面专用样式 */

/* 面包屑导航 */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 产品分类导航 */
.product-nav-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.product-nav {
    display: flex;
    justify-content: center;
}

.product-categories {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-item {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #e9ecef;
    color: #007bff;
}

.category-item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 产品列表 */
.product-list-section {
    padding: 60px 0;
    background: #fff;
}

.product-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-category.active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature {
    background: #f8f9fa;
    color: #007bff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: #007bff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* 联系信息 */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.contact-details p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin: 0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .product-categories {
        gap: 10px;
    }
    
    .category-item {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 1.3rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 15px 0;
    }
    
    .product-nav-section {
        padding: 20px 0;
    }
    
    .product-list-section {
        padding: 40px 0;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-features {
        gap: 6px;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* 产品详情页面的特殊样式 */
.product-detail {
    max-width: 800px;
    margin: 0 auto;
}

.product-detail .product-image {
    height: 400px;
}

.product-detail .product-info {
    padding: 40px;
}

.product-detail .product-name {
    font-size: 2rem;
}

.product-detail .product-desc {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* 产品规格表格 */
.product-specs {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.specs-table td {
    color: #666;
}

/* 产品图片轮播 */
.product-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
