
/* 全模块定位和总布局 用定位top/left,没有margin但不脱标调位置 */

.container-ljw {
	position: relative;
	top: 200px;
	left: 100px;
}
/* 主要用来装功能块在容器内保证定位 相当于该功能块的padding*/

.container-ljw .wrap {
	width: 100px;
	height: 100px;
	top: 150px;
	left: 150px;
	margin: 0;
}
/* 功能块 */

.container-ljw .wrap .cube {
	width: 100px;
	height: 100px;
	transform-style: preserve-3d;
	/* perspective: 500px; */
	transform: rotateX(-30deg) rotateY(-80deg);
	animation: ziZhuan linear 20s infinite;
	animation-direction: alternate-reverse;
	transition: all 0.5s;
}

@keyframes ziZhuan {
	0% {
		transform: rotateX(0deg) rotateY(0deg);
	}
	100% {
		transform: rotateX(360deg) rotateY(360deg);
	}
}

.container-ljw .wrap .cube div {
	position: absolute;
	top: 0;
	left: 0;
	width: 300px;
	height: 300px;
	background-color: rgb(0, 183, 255);
	z-index: -1;
	transition: all 0.5s;
	opacity:1;
	outline: rgb(40, 226, 240) solid thick;
	box-shadow: rgba(17, 123, 194, 0.712) 0 0 50px 50px;
}

.container-ljw .wrap .cube div img {
	width: 100%;
	height: 100%;
}

.container-ljw .wrap .cube span {
	position: absolute;
	top: 50px;
	left: 50px;
	display: block;
	width: 200px;
	height: 200px;
	outline: rgba(21, 40, 211, 0.664) solid thin;
	background-color: rgba(11, 96, 224, 0.295);
}

.container-ljw .wrap .cube span img {
	width: 100%;
	height: 100%;
}

.container-ljw .wrap .cube .out-front {
	transform: rotateY(0deg) translateZ(153px);
}

.container-ljw .wrap .cube .out-back {
	transform: translateZ(-153px);
}
/* //y正方向逆时针 */

.container-ljw .wrap .cube .out-left {
	transform: rotateY(-90deg) translateZ(153px);
}

.container-ljw .wrap .cube .out-right {
	transform: rotateY(90deg) translateZ(153px);
}
/*  x->正-上*/

.container-ljw .wrap .cube .out-top {
	transform: rotateX(90deg) translateZ(153px);
}

.container-ljw .wrap .cube .out-bottom {
	background-color: rgba(36, 238, 80, 0.253);
	transform: rotateX(-90deg) translateZ(153px);
}

.container-ljw .wrap .cube .in-left {
	transform: rotateY(-90deg) translateZ(102px);
}

.container-ljw .wrap .cube .in-right {
	transform: rotateY(90deg) translateZ(102px);
}

.container-ljw .wrap .cube .in-back {
	transform: translateZ(-50px);
}

.container-ljw .wrap .cube .in-front {
	transform: translateZ(102px);
}

.container-ljw .wrap .cube .in-top {
	transform: rotateX(90deg) translateZ(102px);
}

.container-ljw .wrap .cube .in-bottom {
	transform: rotateX(-90deg) translateZ(102px);
}

.container-ljw .wrap .cube:hover .out-front {
	transform: rotateY(0deg) translateZ(200px);
}

.container-ljw .wrap .cube:hover .out-back {
	transform: rotateY(0deg) translateZ(-200px);
}

.container-ljw .wrap .cube:hover .out-top {
	transform: rotateX(90deg) translateZ(200px);
}

.container-ljw .wrap .cube:hover .out-bottom {
	transform: rotateX(-90deg) translateZ(200px);
}

.container-ljw .wrap .cube:hover .out-right {
	transform: rotateY(90deg) translateZ(200px);
}

.container-ljw .wrap .cube:hover .out-left {
	transform: rotateY(-90deg) translateZ(200px);
}