/* ===================================
   产品详情页样式
   =================================== */

/* 产品详情主区域 */
.product-detail-section {
    padding: 4rem 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* 产品图片画廊 */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.thumbnail-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border: 3px solid transparent;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary);
}

.thumbnail-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

/* 产品信息 */
.product-info {
    padding: 1rem 0;
}

.product-info-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.product-info-header .category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.product-info-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.product-rating span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 产品描述 */
.product-description {
    margin-bottom: 2rem;
}

.product-description p {
    color: var(--text-base);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 产品规格 */
.product-specs-section {
    margin-bottom: 2rem;
}

.product-specs-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-specs-section h3 i {
    color: var(--primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-base);
}

.spec-row .label {
    width: 100px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.spec-row .value {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

/* 产品特点 */
.product-features-section {
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-base);
}

.feature-item i {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

/* 价格与操作 */
.product-price-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-label {
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-actions-group {
    display: flex;
    gap: 1rem;
}

.product-actions-group .btn {
    flex: 1;
}

/* 服务保障 */
.service-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.guarantee-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.guarantee-item div {
    font-size: 0.875rem;
}

.guarantee-item strong {
    display: block;
    color: var(--text-dark);
}

.guarantee-item span {
    color: var(--text-muted);
}

/* 产品详情标签页 */
.product-tabs-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    margin-bottom: 1rem;
}

.tab-content p {
    color: var(--text-base);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tab-content ul {
    margin-bottom: 1.5rem;
}

.tab-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-base);
}

.tab-content ul li i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* 详情图片列表 */
.detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-images img {
    width: 100%;
    border-radius: var(--radius-lg);
}

/* 相关产品 */
.related-products-section {
    padding: 5rem 0;
}

/* 响应式 */
@media (max-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .specs-grid,
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .service-guarantees {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .detail-images {
        grid-template-columns: 1fr;
    }
    
    .product-actions-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .thumbnail-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-image img {
        height: 300px;
    }
}
