/* 产品展示页面样式 */

/* 产品展示头部 */
.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.product-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 产品分类导航 */
.product-nav {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.category-tab.active {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.category-tab-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.category-tab-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.category-tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tab-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-tab-icon i {
    font-size: 24px;
    color: white;
}

.category-tab-text {
    flex: 1;
    text-align: left;
}

.category-tab-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-tab-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.category-tab.active .category-tab-text h4,
.category-tab.active .category-tab-text p {
    color: white;
}

/* 产品展示区域 */
.product-showcase {
    padding: 80px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.btn-detail {
    background: white;
    color: #3498db;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #3498db;
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.product-info p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-specs span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid #e9ecef;
}

/* 产品详情模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close:hover {
    color: #333;
}

/* 产品详情样式 */
.product-detail {
    padding: 40px;
}

.product-detail-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-detail-info h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 2rem;
}

.product-detail-info p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.product-detail-specs {
    margin-bottom: 40px;
}

.product-detail-specs h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.spec-value {
    color: #666;
}

.product-detail-features h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.features-list li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .product-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .product-detail {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .category-tab-content {
        padding: 15px;
        gap: 10px;
    }
    
    .category-tab-image {
        width: 50px;
        height: 50px;
    }
    
    .category-tab-text h4 {
        font-size: 1rem;
    }
    
    .category-tab-text p {
        font-size: 0.8rem;
    }
} 