@import "base/variables";

/* Tools */
@import "tools/mixin";
// @import "tools/fonts";
@import "tools/media";

/* Base */
@import "base/normalize";
@import "base/base";

/* Layout */
@import "layout/topbar";
@import "layout/header";
@import "layout/footer";

/* Modules */
// @import "modules/form";
// @import "modules/list";
// @import "modules/piclist";
// @import "modules/table";
// @import "modules/button";
// @import "modules/single";
// @import "modules/toggle";

/* Components */
// @import "components/dropmenu";
// @import "components/panel";
@import "components/scrolltop";
@import "components/slider";
// @import "components/tab";
@import "components/pop";


/* S iconfont */
@font-face {
    @include font-face-custom(iconfont);
}

.iconfont-custom {
    @include font-custom(iconfont);
}

/* S Other */
body{
    background-color: #f5f5f5;
    // overflow: hidden;
}
.wrapper{
    padding-top: 60px;
    width: 100%;
    background-color: #f5f5f5;
}
/* E Other */

/* S Common */
.m-gallery{
}
.m-gallery__slider{
    .m-slider{
        height: 100%;
    }
}
.m-gallery__inner{
    width: 100%;
    height: 100%;
}
/* E Common */

/* S Main */
.m-waterFlow{
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    .item-con{
        position: absolute;
        visibility: hidden;
    }
    .item-base{
        margin: 10px 10px 0 10px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.18);
        background-color: #fff;
    }
    .item-img{
        display: block;
        overflow: hidden;
        img{
            width: 100%;
            display: block;
            overflow: hidden;
        }
    }
    .item-meta{
        p{
            line-height: 20px;
            font-size: 14px;
            color: #333333;
            padding: 7px 10px;
        }
    }
    .item-info{
        padding: 0 10px 7px;
        height: 16px;
        line-height: 16px;
        overflow: hidden;
    }
    .item-info--comment{
        float: left;
        font-size: 12px;
        color: #666666;
        font-weight: 400;
        i{
            padding-right: 4px;
            font-size: 14px;
        }
    }
    .item-info--time{
        float: right;
        font-size: 12px;
        color: #666666;
    }
}

/* E Main */

/* S m-img */
.m-img__wrap{
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
}
.m-img__wrap {
    height: 100%;
    background: #2d2d2d;
    overflow:hidden;
}
.m-img__header{
    height: 44px;
    line-height: 44px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    left:0;
    top:0;
    background: rgba(45,45,45,0.6);
    transform: translate3d(0, 0, 0);
    z-index: 10;
    @include webkitbox(1);
}
.m-img__back{
    width: 38px;
    height: 44px;
    line-height: 44px;
    font-size: 22px;
    color: #fff;
    text-align: center;
}
.m-img__title{
    @include flex(1);
    width: 1px;
    height: 44px;
    color: #fff;
    font-size: 20px;
}
.m-img_num{
    width: 50px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

.img-control{
    position: absolute;
    bottom:0;
    left: 0;
    height: 44px;
    line-height: 44px;
    width: 100%;
    background: rgba(45, 45, 45, 0.6);
    transform: translate3d(0, 0, 0);
    z-index: 10;
    color: #fff;
    .ico-ding{
        float: left;
        width: 22px;
        height: 40px;
        background: url(../img/ico-imgControl.png) 4px 12px no-repeat;
        background-size: 70px;
    }
    .ico-cai{
        float: left;
        width: 22px;
        height: 40px;
        background: url(../img/ico-imgControl.png) -20px 16px no-repeat;
        background-size: 70px;
    }
    .ico-download{
        float: right;
        width: 24px;
        height: 40px;
        background: url(../img/ico-imgControl.png) right center no-repeat;
        background-size: 70px;
    }
}
.img-control__num{
    float: left;
    padding-left: 5px;
}
.img-control--ding{
    float: left;
    margin-left: 10px;
    overflow: hidden;
    &.checked{
        .ico-ding{
            background-image: url(../img/ico-imgControl2.png);
        }
        .img-control__num{
            color: #e50050;
        }
    }
}
.img-control--cai{
    float: left;
    margin-left: 30px;
    overflow: hidden;
    &.checked{
        .ico-cai{
            background-image: url(../img/ico-imgControl2.png);
        }
        .img-control__num{
            color: #e50050;
        }
    }
}
.img-control--download{
    float: right;
    margin-right: 10px;
}
.img-info {
    position: absolute;
    z-index: 10;
    bottom: 44px;
    left: 0;
    width: 100%;
    background: rgba(45, 45, 45, 0.6);
    transform: translate3d(0, 0, 0);
    color: #fff;
}

.img-info > p {
    font-size: 14px;
    line-height: 20px;
    margin: 0 10px;
    padding: 8px 0;
    border-bottom: 1px solid #484848;
}
.img-show {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.swipe {
    overflow: hidden;
    visibility: hidden;
    position: relative;
    height: 100%;
}
.swipe__wrap {
    overflow: hidden;
    position: relative;
    height: 100%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
}
.swipe__wrap > div {
    float:left;
    width:100%;
    height: 100%;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.swipe__wrap > div:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.swipe__wrap >div img {
    max-height: 100%;
    max-width: 100%;
    vertical-align: middle;
}

.swipe {
    visibility: visible;
}
//下一个图集
.next-album {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    vertical-align: middle;
    p {
        color: #999;
        font-size: 20px;
    }
}
/* E m-img */

/* S Tab Effect */
.m-link{
    &:hover,&:focus,&:active{
        color: #e50050;
    }
}
/* E Tab Effect */

/* S Loading */
.m-loading{
    background-color: #f5f5f5;
}

.spinner {
  margin: 30px auto;
  width: 25px;
  height: 25px;
  position: relative;
}

.container1 > div, .container2 > div, .container3 > div {
  width: 8px;
  height: 8px;
  background-color: #afafaf;

  border-radius: 100%;
  position: absolute;
  -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  animation: bouncedelay 1.2s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.spinner .spinner-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.container2 {
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.container3 {
  -webkit-transform: rotateZ(90deg);
  transform: rotateZ(90deg);
}

.circle1 { top: 0; left: 0; }
.circle2 { top: 0; right: 0; }
.circle3 { right: 0; bottom: 0; }
.circle4 { left: 0; bottom: 0; }

.container2 .circle1 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.container3 .circle1 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.container1 .circle2 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.container2 .circle2 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.container3 .circle2 {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.container1 .circle3 {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.container2 .circle3 {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}

.container3 .circle3 {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}

.container1 .circle4 {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}

.container2 .circle4 {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}

.container3 .circle4 {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}

@-webkit-keyframes bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0.0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 40% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}
/* E Loading */


/* 图库分类菜单 */
.m-gallery-sort{
    position: absolute;
    top: 90px;
    left: 0px;
    width: 100%;
    background-color: #FFFFFF;
    transform:translateY(-100%);
    transition: all 200ms linear;
}

.m-gallery-sort--expend{
    transform:translateY(-37px);
    .m-gallery-sort__trigger{
        background-color: #F5F5F5;
        h3::before{
            -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
        }
    }

}

.m-gallery-sort__trigger{
    height: 35px;
    line-height: 35px;
    font-size: pxToRem(15);
    text-align: center;
    border-top: 1px solid #E4E4E4;
    border-bottom: 1px solid #E4E4E4;
    h3{
        color: #333;
        padding-right: 17px;
        position: relative;
        display: inline-block;
    }
    h3::before{
        position: absolute;
        top: 50%;
        right: 0px;
        margin-top: -6px;
        background-image: url("../img/ico-dropmenu.png");
        background-position: 0 0;
        background-repeat: no-repeat;
        width: 12px;
        height: 12px;
        content: "";
        background-size: 100%;
    }
}

.m-gallery-sort__bd{
    background-color: #FFF;
    .sort{
        padding-bottom: 15px;
        a{
            display: inline-block;
            height: 31px;
            line-height: 31px;
            border: 1px solid #D8D8D8;
            box-sizing: border-box;
            margin-left: 3%;
            font-size: pxToRem(13);
            text-align: center;
            width: 20%;
            color: #666;
            border-radius: 3px;
            margin-top: 15px;
            overflow: hidden;
            vertical-align: top;
        }
    }
}

.m-gallery-sort__close{
    background-color: #F5F5F5;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-bottom: 1px solid #E4E4E4;
    border-top: 1px solid #E4E4E4;
    &::before{
        content: "";
        display: inline-block;
        background-image: url("../img/ico-dropmenu.png");
        background-position: 0 0;
        background-repeat: no-repeat;
        width: 12px;
        height: 12px;
        content: "";
        background-size: 100%;
        vertical-align: middle;
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
}

.m-type{
    position: absolute;
    top: 53px;
    left: 0;
    width: 100%;
    min-height: 45px;
    background-color: #222222;
    color: #fff;
    z-index: 999;
    ul{
        width: 100%;
        list-style: none;
        li{
            height: 45px;
            width: 20%;
            float: left;
            font-size: 18px;
            text-align: center;
            line-height: 45px;
            overflow: hidden;
            .trg{
                margin-left: 5px;
                font-size: 14px;
            }
            a{
                width: 100%;
                float: left;
                color: #fff;
            }
            .on{
                color: #c10746;
            }
        }
    }
    .def-type{
        width: 100%;
        height: 45px;
    }
    .other-type{
        width: 100%;
        display: none;
    }
}

/* S Slide */
.m-slider{
    position: relative;
    margin-top: 18px;
}
.m-slider-trigger{
    z-index: 15;
    bottom: 15px;
    >li{
        border-radius: 4px;
        &.current{
            background-color: #e4004f;
        }
    }
}
.m-slider-con{
    z-index: 14;
    p{
        text-align: left;
        position: absolute;
        width: 75%;
        height: 20px;
        overflow: hidden;
        z-index: 16;
        bottom: 10px;
        left: 1.5%;
        color: #fff;
        font-size: 18px;
    }
}
.m-slider__bg{
    z-index: 14;
    width: 100%;
    bottom: -1px;
    left: 0;
    height: 40px;
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    transform: translate3d(0, 0, 0);
    // background-image:-webkit-linear-gradient(to top,
    //     rgba(50,50,50,0.4),
    //     transparent);
    // background-image:linear-gradient(to top,
    //     rgba(50,50,50,0.4),
    //     transparent);
    // background: url(../img/m-slider-bg.png) top no-repeat;
}
/* E Slide */