/*------------ album ------------*/

.album-list {
    margin: 0 -7px;
}

.album-list li {
    width: calc((100% / 3) - 0.1px);
    padding: 0 7px 15px;
}

.album-list li:nth-child(3n+1) {
    clear: left;
}

.album-list li .pic {
    overflow: hidden;
    position: relative;
    max-width: 390px;
    margin: 0 auto;
}

.album-list li .pic:before,
.album-list li .pic:after {
    content: "";
    position: absolute;
    transition: all .2s;
    opacity: 0;
}

.album-list li .pic:before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.80);
     background: rgba(137, 195, 183, 0.37);
}

.album-list li .pic:after {
    content: "";
    width: 72px;
    height: 1px;
    background: #fff;
    display: block;
    position: absolute;
    left: 50%;
    margin: 0 0 0 -36px;
    top: 55%;
}

.album-list a:hover .pic:before,
.album-list a:hover .pic:after {
    transition: all .2s;
    opacity: 1;
}

.album-list li .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0;
    left: 0;
    top: 50%;
    margin: -13px 0 0 0;
    width: 100%;
    padding: 0 40px;
    font-size: 17px;
    line-height: 1.2;
    height: 26px;
    color: #fff;
    text-align: center;
    transition: all .2s;
    opacity: 0;
    box-sizing: border-box;
}

.album-list a:hover .name {
    transition: all .2s;
    opacity: 1;
}


/*------------ rwd ------------*/

@media screen and (max-width:1100px) {

    .album-list li .pic:before{
        opacity: 1;
    }

    .album-list li .pic:after {
        display: none;
    }

    .album-list li .name {
        opacity: 1;
        top: auto;
        bottom: 3px;
        padding: 0 10px;
         color: #000;
        
    }
    .album-list li .pic:before {
        left: 0px;
        right: 0px;
        bottom: 0px;
        top: auto;
        height: 40px;
        background: rgba(255, 255, 255, 0.68);
        border:none;
       
    }
     .album-list li:hover .pic:before{
          background: rgba(137, 195, 183, 0.79);
         
     }
     .album-list li:hover .name{
         color:#fff;
     }
}

@media screen and (max-width:600px) {
    .album-list li {
        width: 50%;
    }
    .album-list li:nth-child(3n+1) {
        clear: none;
    }
    .album-list li:nth-child(2n+1) {
        clear: left;
    }
}

@media screen and (max-width:450px) {
    .album-list li {
        width: 100%;
    }
    .album-list li:nth-child(2n+1) {
        clear: none;
    }
    .album-list li:nth-child(n+1) {
        clear: left;
    }
}
