.products-showcase {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #0056b3;
    background: transparent;
    color: #0056b3;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: #0056b3;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .product-overlay {
    opacity: 1;
}

.view-3d-btn, .compare-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #0056b3;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-3d-btn:hover, .compare-btn:hover {
    background: #003d82;
}

.product-info {
    padding: 20px;
}

.product-specs {
    margin: 15px 0;
    font-size: 14px;
}

.product-specs p {
    margin: 5px 0;
}

.details-btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #0056b3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.details-btn:hover {
    background: #003d82;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 80%;
    height: 80%;
    margin: 5% auto;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

#3d-viewer {
    width: 100%;
    height: calc(100% - 40px);
}

/* 产品对比区域样式 */
.product-comparison {
    padding: 60px 0;
}

.comparison-wrapper {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    margin-top: 30px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-categories {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        height: 90%;
        margin: 5% auto;
    }
    
    .product-specs {
        font-size: 12px;
    }
} 