﻿@import url('iconfont.css');
/* 产品图片预览区域样式 */

/* 预览容器 */
.preview-container {
    display: flex;
    margin-bottom: 20px;
}
.preview-container #media {
    background: #FAFAFA;
    width: 100%;
    height: 100%;
}
.preview-container .vPlay {
    display: none;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 99;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 22px;
    cursor: pointer;
}

/* 缩略图盒子 */
.thumbnail-box {
    width: 85px;
    margin-right: 30px;
    position: relative;
}
.thumbnail-box .list {
    height: 375px;
    overflow: hidden;
    margin: 10px 0px;
}
.thumbnail-box .list .item {
    width: 100%;
    cursor: pointer;
    border: 1px solid #DCDCDC;
    border-radius: 12px;
}
.thumbnail-box .list .item.item-cur {
    border-color: #f6f6f6;
}
.thumbnail-box .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 控制按钮 */
.prodetails-button-next,
.prodetails-button-prev {
    width: 100%;
    height: 28px;
    background: #FFF;
    border: 1px solid #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #373636;
    cursor: pointer;
    border-radius: 12px;
}
.prodetails-button-prev {
    transform: rotateX(180deg);
}

/* 页码指示器 */
.banner-page {
    display: none;
}
.page-now, .of, .page-all {
    /* 继承自 banner-page */
}

/* 主图显示区域 */
.thumbnail-show {
    position: relative;
    width: 100%;
    height: 450px;
}
.thumbnail-show .small-box {
    width: 100%;
    height: 100%;
    border: 1px solid #dfdfdf;
}
.thumbnail-show .small-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-show .small-box .hover {
    position: absolute;
    width: 180px;
    height: 180px;
    background-color: rgba(204, 204, 204, .6);
    border: 1px solid #EEE;
    display: none;
    cursor: move;
    z-index: 9;
}
.thumbnail-show .big-box {
    display: none;
    border: 1px solid #dfdfdf;
    border-left: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%;
    top: 0px;
    overflow: hidden;
    z-index: 999;
    background: #FFF;
}
.thumbnail-show .big-box img {
    display: block;
    max-width: none;
    max-height: none;
    width: 150%;
}

/* 懒加载 */
.lazy-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}
.lazy-wrap::after {
    content: "";
    display: block;
    padding-bottom: 50%;
}
.lazy-wrap.lazy-loaded .lazy-load {
    -webkit-animation: none;
    animation: none;
    display: none;
}
.lazy-wrap.lazy-loaded::after {
    padding-bottom: 0px;
}
.lazy-load {
    width: 30px;
    height: 30px;
    display: inline-block;
    padding: 0px;
    border-radius: 100%;
    border: 3px solid;
    border-top-color: #000;
    border-bottom-color: rgba(0, 0, 0, .1);
    border-left-color: #000;
    border-right-color: rgba(0, 0, 0, .1);
    position: absolute;
    left: 50%;
    top: 50%;
    animation: loading-animation 1s ease-in-out infinite;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}
@keyframes loading-animation {
    from {
        transform: translate(-50%, -50%) rotate(0)
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}
img.lazy {
    display: inline-block;
    opacity: 0;
}
img.lazy, img.tst {
    transition: opacity .6s, transform .3s ease;
}
img.loaded {
    opacity: 1;
}
.imgalt {
    display: none;
}

/* 响应式样式 */
@media (max-width:1440px) {
    .thumbnail-show {
        width: 400px;
        height: 400px;
    }
    .thumbnail-box {
        width: 72px;
        margin-right: 10px;
    }
    .thumbnail-box .list {
        height: 324px;
    }
}

@media (max-width:1280px) {
    .preview-container {
        width: 100%;
    }
    .thumbnail-box {
        width: 100px;
    }
}
@media (max-width:1024px){
    /* 滑动相关样式 */
    .pagehistory-next,.pagehistory-prev{left:16px;width:40px;height:40px}
    #historySwiper{height:660px}
}
@media (max-width:768px){
    /* 滑动相关样式 */
    #historySwiper{height:500px}

    /* 产品详情图片预览样式 */
    .thumbnail-show{display:none}
    .thumbnail-box{width:100%}
    .thumbnail-box .list{margin:0px;border:1px solid #EEE;height:calc(100vw - 30px);border-radius:var(--borderradius)}
    .singglepic{width:100%;height:calc(100vw - 30px)}
    .prodetails-button-next,.prodetails-button-prev{display:none}
    .pro-d-main .banner-inner{display:none}
    .pro-d-main .common-main{padding-top:15px}
    .thumbnail-box .list .item{border:none}
    .banner-page{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:5px 10px;position:absolute;bottom:9px;right:10px;z-index:99;background:var(--color);color:#FFF;border-radius:30px}
    .banner-page .of{padding:0px 2px}
    .imgalt{position:absolute;left:50%;transform:translateX(-50%);z-index:99;bottom:8px;background:rgba(0,0,0,.2);color:#FFF;width:95%;padding:0px 6px;line-height:35px;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;border-radius:30px;font-size:14px;padding-right:40px;text-transform:capitalize}

    /* 预览容器样式 */
    .preview-container{display:block}
    #gallerythumbs{display:block}
}
@media (max-width:450px){
}