/**
 * Product Detail Page Styles
 * 商品详情页样式
 */

body {
    background: var(--bg-light);
}

/* ========== 面包屑导航 ========== */
.breadcrumb-section {
    padding-top: 100px;
    padding-bottom: var(--space-xs);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    padding-top: var(--space-3xs);
    font-size: var(--font-size-body);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text-dark);
}

/* ========== 产品展示区 ========== */
.product-hero {
    margin-bottom: var(--space-lg);
    padding: 0;
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* 左侧图片区 */
.product-gallery {
    display: flex;
    row-gap: var(--space-2xs);
    column-gap: var(--space-xs);
    width: 100%;
    margin: 0 auto;
}

.product-thumbnails {
    width: 15%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
}

.thumbnail-item {
    width: 100%;
    flex: 1;
    border: 1px solid #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: var(--bg-white);
}

.thumbnail-item:empty {
    background: #ffffff;
    cursor: default;
}

.thumbnail-item:empty:hover {
    border-color: #ffffff;
}

.thumbnail-item:not(:empty):hover,
.thumbnail-item.active {
    border-color: var(--accent-color);
}

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

.product-main-image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧信息区 */


.product-title {
    font-size: var(--font-size-display);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-2xs);
}

.product-description {
    font-size: var(--font-size-h4);
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-xs);
}

.product-section {
    margin-bottom: var(--space-xs);
}

.product-section-title {
    font-size: var(--font-size-h4);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-2xs);
}

/* 适应人群标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
}

.product-tag {
    padding: 8px 20px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-body);
    font-weight: 400;
}

/* 商品参数 */
.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xs);
}

.spec-row {
    display: flex;
    gap: var(--space-2xs);
    font-size: var(--font-size-body);
}

.spec-label {
    color: var(--text-light);
    min-width: 80px;
}

.spec-value {
    color: var(--text-dark);
}

.product-note {
    font-size: var(--font-size-caption);
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: var(--space-xs);
}

/* ========== 场景图片轮播 ========== */
.product-scene {

}

.scene-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.scene-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 1;
}

.scene-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scene-slide.active {
    opacity: 1;
}

.scene-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 轮播指示器 */
.scene-dots {
    position: absolute;
    bottom: var(--space-2xs);
    right: var(--space-2xs);
    display: flex;
    gap: 8px;
    padding: var(--space-3xs);
}

.scene-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.scene-dot:hover,
.scene-dot.active {
    background: var(--bg-white);
}

.scene-dot:last-child.active {
    background: var(--primary-color);
}

/* ========== 产品详情 ========== */
.product-detail-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: clamp(200px, 21.5vw, 300px) 2fr;
    gap: var(--space-sm);
    align-items: start;
}

/* 推荐商品侧边栏 */

.recommend-title {
    font-size: var(--font-size-button);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-2xs);
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.recommend-image {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);

}


.recommend-name {
    padding-top: var(--space-2xs);
    font-size: var(--font-size-h4);
    font-weight: 500;
    color: var(--text-dark);
}

.recommend-desc {
    font-size:var(--font-size-body);
    color: var(--text-muted);
    line-height: 1.5;
}

.product-detail-wrapper {
    min-width: 0;
}

.product-detail-title {
    font-size: var(--font-size-button);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-2xs);
}

.product-detail-content {
    background: #ffffff;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
}

.detail-image {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .product-gallery {
        flex-direction: row-reverse;
    }

    .product-thumbnails {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    .thumbnail-item {
        width: 100%;
        height: auto;
        flex: none;
    }

    .product-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .product-recommend-sidebar {
        position: static;
        order: 2;
    }

    .product-detail-wrapper {
        order: 1;
    }

    .recommend-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
        padding-bottom: var(--space-3xs);
    }

    .recommend-item {
        flex-shrink: 0;
        width:100%;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding-top: 80px;
    }

    .product-gallery {
        flex-direction: column-reverse;
        row-gap: var(--space-xs);
    }

    .product-thumbnails {
        display: grid;
        grid-template-columns: repeat(5,1fr);
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-xs);
    }

    .product-tags {
        gap: var(--space-3xs);
    }


    .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-label {
        min-width: auto;
    }

    .scene-slides {
        aspect-ratio: 3.5 / 1;
    }

    .scene-dots {
        bottom: var(--space-xs);
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding: var(--space-2xs) 0;
    }

    .product-title {
        font-size: var(--font-size-h3);
    }

    .product-description {
        font-size: var(--font-size-caption);
    }

    .product-section-title {
        font-size: var(--font-size-body);
    }

    .product-detail-section {
        padding: var(--space-sm) 0;
    }

    .product-detail-title {
        font-size: var(--font-size-h4);
    }
}
