
/* 组图 */

.photos {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    font-size: 14px;
}

.photos p {
    margin: 0;
}

.photos .pic {
    position: relative;
    overflow: hidden;
    height: 500px;
    border: 1px solid #ddd;
    padding: 34px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px 5px 0 0;
}

.photos .pic img {
    min-width: 200px;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    background: url(../images/loading.gif) center no-repeat;
    background-size: 24px;
}

.photos .pic li {
    position: relative;
    height: 500px;
}

.photos .pic li a {
    position: relative;
    overflow: hidden;
    display: inline-block;
    min-width: 200px;
    line-height: 0;
    font-size: 0;
    top: 50%;
    transform: translate(0, -50%);
    transition: all .3s;
}

.photos .pic li span {
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    line-height: 20px;
    font-size: 16px;
    background: #333;
    background: linear-gradient(to top, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    opacity: 0;
    transform: translate(0, 90px);
    transition: all .3s;
}

.photos .pic li:hover span {
    opacity: 1;
    transform: translate(0, 0);
}

.photos .handle {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 80px;
    height: 24px;
    margin-left: -40px;
    line-height: 24px;
    background-color: #fff;
    background-color: rgba(255, 255, 255, .5);
    border: 1px solid #ddd;
    border-radius: 3px 3px 0 0;
}

.play-state {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 4px;
    line-height: 16px;
    text-align: center;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle/%3E%3C/defs%3E%3Cpath fill='%2300a0e9' d='M238.933 170.667h204.8v682.666h-204.8zm341.334 0h204.8v682.666h-204.8z'/%3E%3C/svg%3E") center no-repeat;
    vertical-align: middle;
    cursor: pointer;
}

.pauseState {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2306b' d='M388.876 833.1l438.132-352.593-438.133-344.248z'/%3E%3C/svg%3E") center no-repeat;
}

.page-state {
    display: inline-block;
    width: 4em;
    text-align: center;
    vertical-align: middle;
}

.pic-prev,
.pic-next {
    position: absolute;
    top: 50%;
    display: block;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .5);
    color: #fff;
    opacity: 0;
    transition: all .3s;
}

.pic-prev {
    transform: translate(-50px, 0);
    left: 10px;
}

.pic-next {
    transform: translate(50px, 0);
    right: 10px;
}

.photos .pic:hover .pic-prev,
.photos .pic:hover .pic-next {
    opacity: 1;
    transform: translate(0, 0);
    color: #fff;
}

.pic-prev:hover,
.pic-next:hover {
    background-color: #00a0e9;
}

.photos .preview {
    position: relative;
    border: 1px solid #ddd;
    margin-top: -1px;
    padding: 0 4px;
    height: 100px;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
}

.photos .preview li {
    float: left;
    width: 20%;
    font-size: 14px;
}

.photos .preview li a {
    position: relative;
    overflow: hidden;
    display: block;
    height: 80px;
    margin: 10px 5px;
    line-height: 20px;
    background-color: #f1f1f1;
    transition: all .3s;
}

.photos .preview li.on a {
    background-color: #00a0e9;
    color: #fff;
}

.photos .preview li img {
    display: block;
    margin: 0 auto;
    width: 100%;
    min-height: 80px;
    opacity: .5;
    transform: scale(1);
    transition: all .3s;
}

.photos .preview li a:hover img,
.photos .preview li.on img {
    transform: scale(1.05);
    opacity: 1;
}

.photos .preview li a span {
    display: block;
    max-height: 60px;
    margin: 10px;
    overflow: hidden;
}

.preview-prev,
.preview-next {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin-top: -12px;
    text-align: center;
    font-size: 18px;
    background-color: #06b;
    color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .15);
    opacity: 0;
    transform: scale(0.8, 0.8);
    transition: all .3s;
}

.prevStop,
.nextStop {
    background-color: #aaa !important;
    cursor: not-allowed;
}

.preview:hover .preview-prev,
.preview:hover .preview-next {
    transform: scale(1, 1);
    opacity: 1;
    color: #fff;
}

.preview-prev {
    left: -12px;
}

.preview-next {
    right: -12px;
}

@media (max-width: 768px) {
    .photos {
        width: auto;
        margin: 20px 0;
    }

    .photos .pic {
        padding: 14px;
    }

    .photos .preview {
        display: none;
    }
}