/* 产品详情页面样式 */
.product-detail {
    padding-top: 80px;
    background: #f8f9fa;
}

/* 产品展示区样式 */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5%;
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.product-info {
    padding: 2rem;
}

.product-info h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.category {
    color: var(--primary-color);
    font-weight: 500;
}

.product-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 1rem;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.features i {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-3d-preview,
.btn-contact {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-3d-preview {
    background: linear-gradient(45deg, var(--primary-color), var(--ceramic-red));
    color: white;
}

.btn-contact {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-3d-preview:hover,
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* 3D预览模态框样式 */
.modal-3d {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-3d.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-viewer {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    position: relative;
}

#modelCanvas {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
}

.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1002;
}

.control-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.model-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.model-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 产品详情区样式 */
.product-details {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 5%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.detail-content h2,
.specs-content h2,
.reviews-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-images img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.detail-images img:hover {
    transform: scale(1.05);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 200px;
    color: #666;
    font-weight: 500;
}

.review-item {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.reviewer-info h4 {
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffd700;
}

.review-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-images {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.review-images img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* 相关产品推荐样式 */
.related-products {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 5%;
}

.related-products h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.related-item h3 {
    padding: 1rem;
    color: var(--secondary-color);
}

.related-item p {
    padding: 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-item .view-details {
    display: block;
    padding: 0.8rem;
    text-align: center;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item .view-details:hover {
    background: var(--ceramic-red);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .product-showcase {
        padding: 2rem 5%;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .detail-images {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 200px;
    }
}

.map-container {
    margin-top: 1rem;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* 确保页脚不会遮挡地图 */
footer {
    position: relative;
    z-index: 1;
} 