@charset "utf-8";

ul {
	list-style: none;
}

@keyframes mask-animate {
	from {
		background-color: rgba(255, 255, 255, 0);
	}

	to {
		background-color: rgba(255, 255, 255, .7);
	}
}

@keyframes aside-animate {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

#product-gallery {
	width: 100%;
	height: 400px;
	position: relative;
}

#product-gallery .phone-display {
	display: block;
	position: relative;
	height: 100%;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

#product-gallery .open-video {
	position: absolute;
	bottom: 10px;
	left: 0;
	/* width: 70px; */
	height: 28px;
	background: url('/visual-editor/images/shop_goods_detail/icon50.png') no-repeat -38px 0;
	width: 28px;
	border-radius: 50%;
}

#product-gallery video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: #000;
	display: none;
	object-fit: contain;
}

#product-gallery .close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 15px;
	height: 15px;
	cursor: pointer;
	background: url("/visual-editor/images/shop_goods_detail/icon50.png") no-repeat -0 -160px;
	z-index: 2;
	display: none;
}


#product-gallery .bottom-nav {
	margin-top: 20px;
}

#product-gallery .bottom-nav .tab-btn {
	position: relative;
	width: 40px;
	height: 60px;
	cursor: pointer;
}

#product-gallery .tab-btn:hover {
	opacity: .6;
}

#product-gallery .tab-btn.btn-left {
	float: left;
}

#product-gallery .tab-btn.btn-right {
	float: right;
}

/*遮罩区域样式*/
#product-gallery .mask-layer {
	animation: mask-animate .7s forwards;
	position: absolute;
	border: 1px solid #ccc;
	cursor: move;
}

/*放大盒子样式*/
#product-gallery .aside-box {
	animation: aside-animate .7s forwards;
	z-index: 10;
	background-color: #fff;
	position: absolute;
	left: 105%;
	border: 2px solid #ccc;
	background-repeat: no-repeat;
}

#product-gallery .shift-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 26px;
	height: 26px;
	border: 1px solid #999;
	border-radius: 50%;
}

#product-gallery .shift-icon>span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-bottom: 1.5px solid #999;
}

#product-gallery .btn-left .shift-icon>span {
	border-left: 1.5px solid #999;
	transform: translate(-30%, -50%) rotate(45deg);
}

#product-gallery .btn-right .shift-icon>span {
	border-right: 1.5px solid #999;
	transform: translate(-70%, -50%) rotate(-45deg);
}


#product-gallery .bottom-nav .bottom-center-nav {
	position: relative;
	height: 60px;
	margin: 0 50px;
	overflow: hidden;
}

#product-gallery .bottom-center-nav .small-img-ul {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	transition: all .1s ease;
}

#product-gallery .small-img-ul .img {
	float: left;
	height: 100%;
	border: 1px solid #fff;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
}

#product-gallery .small-img-ul .img.active {
	border-color: rgb(160, 27, 27);
}

/* 视频缩略图播放图标 */
#product-gallery .small-img-ul .video-thumb {
	position: relative;
	background: #000 !important;
}

#product-gallery .small-img-ul .video-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#product-gallery .small-img-ul .video-play-icon::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
	margin-left: 2px;
}