﻿@charset "utf-8";
.fz {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.flip-3d {
    perspective: 1200px;
    width: calc((100% - 99px) / 4);
    float: left;
    margin-right: 8px;
}

.flip-3d figure {
    position: relative;
    transform-style: preserve-3d;
    transition: 1s transform;
    font-size: 1.6rem;
    margin-bottom: 0px;
    width: 100%;
}
.flip-3d figure>a{display:block;position: relative;height: 0;padding: 0 0 78% 0;border: 1px solid #ccc;}
.flip-3d figure img {
    display: block;
    opacity: 1;
    max-width: 100%;
    height: 213px;
    margin: 0 auto;
    position: absolute;
    max-height: 100%;
    top: 50%;
    left:50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.flip-3d figcaption {
    position: absolute;
    width: 100%;
    height: 60px;
    top: 260px;
    font-size: 15px;
    text-align: center;
    opacity: 1;
    color: #555;
    transition: 1s .5s opacity;
    margin-left: 0px;
}

.flip-3d:hover figure {
    transform: rotateX(90deg);
    transform: rotateY(1turn);
    background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}

.flip-3d:hover figcaption {
    opacity: 0.8;
}

.flip-3d figure:after {
    content: " ";
    display: block;
    height: 8vw;
    width: 100%;
    transition: .5s;
    transform: rotateX(90deg);
    background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

@media screen and (max-width: 800px) {
    #flip-3d {
        perspective-origin: center top;
    }

    div#flip-3d figure {
        float: none;
        width: 50%;
        margin: 0 auto;
        margin-bottom: 12vw;
    }

    .flip-3d figure figcaption {
        font-size: 0.8rem;
    }

    div#flip-3d figure:last-child {
        display: none;
    }
}


@media all and (min-width: 0px) and (max-width: 767px) {
	
	.flip-3d figure {
		margin: 0;
	}
	.flip-3d {
		width: 48%;
		margin-right: 2%;
		padding-bottom: 55px;
	}

	.flip-3d:nth-child(2n) {
		margin-right: 0;
	}

	.flip-3d figure img {
		height: auto;
	}

	.flip-3d figcaption {
		top: 72%;
		height: 40px;
		line-height: 20px;
		word-break: break-all;
	}

	.emal {
		width: 100% !important;
	}

	.xhl_form {
		width: 100% !important;
	}

	.emal fieldset {
		padding-left: 0;
	}

	.xhl-control-label {
		width: 100px !important;
	}

	.xhl-input-xlarge,
	.xhl-textarea {
		width: 94% !important;
	}

	.xhl-controls {
		margin-left: 116px !important;
	}

	.xhl-footer {
		text-align: center;
	}
}