.section-product-showcase {
    background: linear-gradient(135deg, #f5f7fa 0%, #b0d1fa 100%) !important;
}

/* 只在产品展示容器内应用这些重置样式 */
.product-showcase-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-showcase-container *:before,
.product-showcase-container *:after {
    box-sizing: border-box;
}

/* 只在产品展示容器内应用这些样式 */
.product-showcase-container img, 
.product-showcase-container video {
    max-width: 100%;
    display: block;
}

/* 防止元素超出容器 - 只在产品展示容器内应用 */
.product-showcase-container .container * {
    max-width: 100%;
}

/* 只在产品展示容器内应用这些样式 */
.product-showcase-container {
    font-family: 'Arial', sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 只在产品展示容器内应用这些样式 */
.product-showcase-container .container {
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 只在产品展示容器内应用这些样式 */
.product-showcase-container .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    box-sizing: border-box;
    align-items: stretch;
    /* 防止收缩问题 */
    width: 100%;
    min-width: 0;
}

/* 左侧轮播图区域 - 只在产品展示容器内应用 */
.product-showcase-container .left-carousel {
    padding: 30px;
    background: transparent;
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: 
        "title"
        "divider"
        "display"
        "carousel";
    align-content: start;
    box-sizing: border-box;
    row-gap: 20px;
    /* 防止内容溢出和不必要的扩展 */
    min-width: 0;
    overflow: hidden;
    flex-shrink: 1;
}

.product-showcase-container .carousel-title {
    grid-area: title;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 5px;
}

.product-showcase-container .divider-line {
    grid-area: divider;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    border-radius: 0.5px;
}

/* 主展示窗口 - 只在产品展示容器内应用 */
.product-showcase-container .main-display {
    grid-area: display;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
    /* 防止内容溢出 */
    min-width: 0;
}
.product-showcase-container .main-display picture,
.product-showcase-container .main-display img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Video.js 自定义样式 - 只在产品展示容器内应用 */
.product-showcase-container .main-display .video-js {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

.product-showcase-container .main-display .video-js .vjs-tech {
    object-fit: cover;
}

/* 隐藏Video.js的默认控制栏，使用自定义样式 - 只在产品展示容器内应用 */
.product-showcase-container .main-display .video-js .vjs-control-bar {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    height: 60px;
    padding: 10px 15px;
}

.product-showcase-container .main-display .video-js .vjs-progress-control {
    height: 8px;
    margin: 0 10px;
}

.product-showcase-container .main-display .video-js .vjs-progress-holder {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.product-showcase-container .main-display .video-js .vjs-load-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.product-showcase-container .main-display .video-js .vjs-play-progress {
    background: white;
    border-radius: 4px;
}

.product-showcase-container .main-display .video-js .vjs-time-control {
    color: white;
    font-size: 14px;
}

.product-showcase-container .main-display .video-js .vjs-button {
    color: white;
}

.product-showcase-container .main-display .video-js .vjs-button:hover {
    color: #fff;
    text-shadow: 0 0 1em #fff;
}


/* 缩略图轮播 - 只在产品展示容器内应用 */
.product-showcase-container .thumbnail-carousel {
    grid-area: carousel;
    position: relative;
    margin-top: 0;
    align-self: start;
    padding-top: 10px;
    padding-bottom: 20px;
    /* 防止容器过度扩展 */
    min-width: 0;
    overflow: hidden;
}

.product-showcase-container .thumbnail-swiper {
    width: 100%;
    height: 7vw;
    min-height: 60px;
    /* 防止swiper容器过度扩展 */
    min-width: 0;
    flex-shrink: 1;
}

.product-showcase-container .thumbnail-slide {
    width: 7vw;
    height: 7vw;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    /* 防止缩略图过度扩展 */
    min-width: 60px;
    min-height: 60px;
    flex-shrink: 0;
}

.product-showcase-container .thumbnail-slide.active {
    border-color: #007bff;
}

.product-showcase-container .thumbnail-slide img,
.product-showcase-container .thumbnail-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* 视频缩略图样式 - 只在产品展示容器内应用 */
.product-showcase-container .video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-showcase-container .video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-showcase-container .video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: #f0f0f0;
}

.product-showcase-container .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-showcase-container .play-button {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-showcase-container .thumbnail-slide:hover .play-button {
    background: #fff;
    transform: scale(1.1);
}

.product-showcase-container .thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-showcase-container .thumbnail-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.product-showcase-container .thumbnail-nav.prev {
    left: -15px;
}

.product-showcase-container .thumbnail-nav.next {
    right: -15px;
}

/* 操作按钮 - 只在产品展示容器内应用 */
.product-showcase-container .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.product-showcase-container .btn {
    flex: 0 0 auto;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.product-showcase-container .btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-showcase-container .btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.product-showcase-container .btn-primary {
    background: linear-gradient(to right, #02669c, #34b6fd);
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 102, 156, 0.3);
}

.product-showcase-container .btn-primary:hover {
    background: linear-gradient(to right, #034d77, #2698d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 102, 156, 0.4);
    letter-spacing: 2px;
}

/* 右侧内容区域 - 只在产品展示容器内应用 */
.product-showcase-container .right-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    /* 确保右侧能够正常收缩 */
    min-width: 0;
    overflow: hidden;
}

/* 占位元素，确保和左侧标题+分割线对齐 */
.product-showcase-container .right-content::before {
    content: '';
    display: block;
    height: 41px;
    flex-shrink: 0;
}

.product-showcase-container .product-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    width: 100%;
    background: #f5f5f5;
    flex-shrink: 0;
    /* 防止图片溢出 */
    min-width: 0;
}

.product-showcase-container .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-showcase-container .product-title {
    font-size: clamp(18px, 2vw, 32px);
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    margin: 20px 0 15px 0;
    flex-shrink: 0;
    /* 防止文本溢出 */
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-showcase-container .product-description {
    font-size: clamp(12px, 0.9vw, 16px);
    color: #666;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
    flex-shrink: 0;
    /* 防止文本溢出 */
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 响应式设计 - 只在产品展示容器内应用 */
@media (max-width: 1024px) {
    .product-showcase-container .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }
    
    .product-showcase-container .left-carousel {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .product-showcase-container .right-content::before {
        display: none;
    }

    .product-showcase-container .thumbnail-swiper {
        height: 80px;
    }

    .product-showcase-container .thumbnail-slide {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .product-showcase-container .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .product-showcase-container .left-carousel,
    .product-showcase-container .right-content {
        padding: 20px;
    }
    
    .product-showcase-container .thumbnail-swiper {
        height: 70px;
    }

    .product-showcase-container .thumbnail-slide {
        width: 70px;
        height: 70px;
    }
    
    .product-showcase-container .action-buttons {
        justify-content: center;
    }

    .product-showcase-container .thumbnail-carousel {
        margin-top: 15px;
    }
}

/* 加载动画 - 只在产品展示容器内应用 */
.product-showcase-container .loading {
    grid-area: display;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16/9;
    font-size: 16px;
    color: #666;
    background: #f5f5f5;
}

.product-showcase-container .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
