/* 产品展示页面样式 */

/* 禁止移动端浏览器自动调整字体大小 */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.show-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 100px 20px 60px;
}

.show-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 60px; */
    /* align-items: start; */
    background: #fff;
    border-radius: 24px;
}

/* 左侧轮播区域 */
.show-left {
    position: sticky;
    top: 100px;
}

.main-carousel {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    border-radius: 24px 0 0 24px;
}

/* 3D容器 */
.threed-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.threed-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 0 0 24px;
    transition: opacity 0.3s ease;
}

.threed-container.iframe-active img {
    display: none;
}

.threed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px 0 0 24px;
}

.threed-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    cursor: pointer;
    z-index: 2;


    width: 120px;
    height: 120px;
    background-image: url('./imgs/show/iconzx.png');
    background-repeat: no-repeat;
    background-size: auto 120px;
    -webkit-animation: icon-circle 5s linear infinite;
    animation: icon-circle 5s linear infinite;

    margin-left: -60px; 
    margin-top: -60px; 
    /* transition: opacity 0.3s ease;  */

    /* 
    width: 120px;
    height: 120px;
    background-image: url('./imgs/show/vrlogo_animation.png');
    background-size: auto 120px;
    background-repeat: no-repeat;
    -webkit-animation: vr_animation_logo_keyframes 3.08333333s 0s steps(74) infinite normal;
    animation: vr_animation_logo_keyframes 3.08333333s 0s steps(74) infinite normal;
    transition: opacity 0.3s ease; */

}

@keyframes icon-circle {
	0% {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg)
	}
	50% {
		-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		transform: rotate(180deg)
	}
	100% {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		 transform: rotate(360deg)
	}
}
.threed-container.iframe-active .threed-icon {
    display: none;
}

@-webkit-keyframes vr_animation_logo_keyframes {
    0% {
        background-position: 0 0
    }

    to {
        background-position: 100% 0
    }
}

@keyframes vr_animation_logo_keyframes {
    0% {
        background-position: 0 0
    }

    to {
        background-position: 100% 0
    }
}

.threed-icon:hover {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

/* 视频容器 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    border-radius: 24px 0 0 24px;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px 0 0 24px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgb(255 255 255 / 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-play-btn svg {
    width: 60px;
    height: 60px;
    color: #ff6b35;
    margin-left: 2px;
}

.video-container video:not([poster]) ~ .video-play-btn,
.video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* 视频关闭按钮 */
.video-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.video-container.playing .video-close-btn {
    display: flex;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.video-close-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke-width: 3;
}

/* 隐藏默认视频控制界面 */
.video-container video::-webkit-media-controls {
    display: none !important;
}

.video-container video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* 播放时显示原生控制界面 */
.video-container.playing video::-webkit-media-controls {
    display: flex !important;
}

.video-container.playing video::-webkit-media-controls-enclosure {
    display: flex !important;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgb(0 0 0 / 22%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.main-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* 缩略图导航 - 悬浮在底部 */
.thumbnail-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 3px 6px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    height: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thumbnail-nav.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.thumbnail-item {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 10px;
    position: relative;
    height: 26px;
}

.thumbnail-item:hover {
    background: rgb(0 0 0 / 65%);
}

.thumbnail-item.active {
    background: rgb(0 0 0 / 85%);
}

.thumbnail-content {
    display: none;
}

.thumbnail-overlay {
    display: none;
}

.thumbnail-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.thumbnail-item.active .thumbnail-label {
    color: #fff;
}

/* 右侧产品信息 */
.show-right {
    background: #fff;
    border-radius: 0 24px 24px 0;
    padding: 20px;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); */
}

.product-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 产品标题区域 */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.product-header .product-title {
    margin: 0;
    flex: 1;
}

/* 分享按钮 */
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    width: 13px;
    /* height: 18px; */
    color: #495057;
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

.share-modal-close svg {
    width: 18px;
    height: 18px;
    color: #495057;
}

.share-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
}

.share-qrcode-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 20px;
}

.share-qrcode-container #shareQrcode {
    display: block;
}

.share-qrcode-container #shareQrcode img,
.share-qrcode-container #shareQrcode canvas {
    display: block;
    border-radius: 8px;
}

.share-modal-tip {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
}

.detail-label {
    font-size: 16px;
    color: #999;
    min-width: 60px;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    flex: 1;
}

.detail-link {
    font-size: 15px;
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.detail-link:hover {
    color: #ff6b35;
    transform: translateX(4px);
}

/* 顾问卡片 */
.consultant-card {
    display: flex;
    width: 190px;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consultant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultant-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consultant-info {
    flex: 1;
}

.consultant-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px 0;
}

.consultant-exp {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 顾问二维码弹出层 */
.consultant-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    min-width: 180px;
}

.consultant-card:hover .consultant-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-20px);
}

.consultant-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.consultant-qrcode img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.consultant-qrcode p {
    margin: 12px 0 0 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 联系按钮 */
.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.btn-contact svg {
    width: 20px;
    height: 20px;
}

.btn-phone {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    /* box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3); */
    font-size: 20px;
    cursor: default;
}

.btn-phone:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4); */
}

.btn-chat {
    /* background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%); */
    /* box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3); */
    width: 130px;
    background: #fff;
    border: 1px solid #ff6000;
    color: #ff6000;
}

.btn-chat:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 12px 32px rgba(74, 144, 226, 0.4); */
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .show-content {
        /* gap: 40px; */
    }
    
    .show-right {
        padding: 28px;
    }
    
    .product-title {
        font-size: 24px;
    }
}

@media (max-width: 968px) {

    .threed-container img,.carousel-item img,.video-container video,.main-carousel,.show-right{border-radius: 0;}
    .show-container {
        padding: 80px 16px 40px;
    }
    
    .show-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .show-left {
        position: relative;
        top: 0;
    }
    
    .thumbnail-nav {
        bottom: 16px;
        gap: 10px;
        padding: 10px 16px;
    }
    
    .thumbnail-item {
        padding: 8px 16px;
    }
    
    .thumbnail-label {
        font-size: 14px;
    }
    
    .show-right {
        padding: 20px;
    }
    
    /* 移动端标题区域改为纵向布局 */
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-header .product-title {
        width: 100%;
    }
    
    .product-title {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    /* 移动端分享按钮靠左对齐 */
    .share-btn {
        align-self: flex-start;
    }
    
    .product-details {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .detail-item {
        padding: 5px 0;
    }
    
    .detail-label,
    .detail-value {
        font-size: 13px;
    }
    
    .detail-link {
        font-size: 13px;
    }
    
    .consultant-card {
        padding: 4px;
        margin-bottom: 14px;
    }
    
    .consultant-avatar {
        width: 50px;
        height: 50px;
    }
    
    .consultant-name {
        font-size: 18px;
    }
    
    .consultant-exp {
        font-size: 12px;
    }
    
    /* 移动端联系按钮保持两列布局，电话按钮更宽 */
    .contact-buttons {
        grid-template-columns: 2fr 1fr;  /* 电话按钮占2份，在线问占1份 */
        gap: 10px;
    }
    
    .btn-contact {
        padding: 12px 16px;
        font-size: 15px;
        gap: 6px;
    }
    
    .btn-contact svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-phone {
        font-size: 16px;
    }
    
    .btn-chat {
        width: auto;
        padding: 12px 10px;  /* 在线问按钮内边距稍小 */
    }
}

@media (max-width: 640px) {

   
    .threed-icon{
        width: 80px;
        height: 80px;
        margin-left: -40px;
        margin-top: -40px;
        background-size: auto 80px;
    }
    .detail-label{
        min-width:auto
    }

    .thumbnail-item{
        height: 22px;
    }
    .thumbnail-nav {
        bottom: 12px;
        gap: 6px;
        padding: 3px 5px;
        flex-wrap: nowrap;
        max-width: calc(100% - 40px);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    /* 隐藏滚动条 */
    .thumbnail-nav::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail-item {
        padding: 6px 12px;
        flex-shrink: 0;
    }
    
    .thumbnail-label {
        font-size: 13px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-prev {
        left: 12px;
    }
    
    .carousel-next {
        right: 12px;
    }
    
    .video-play-btn {
        width: 64px;
        height: 64px;
    }
    
    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.show-left {
    animation-delay: 0.1s;
}

.show-right {
    animation-delay: 0.2s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

