﻿body {
    color: 777;
}
body,html {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    color: #777;
}

ul {
    list-style: none;
}


#layout {
    padding-left: 150px;
    height: 100%;
}
#main {
    height: 100%;
}
#menu {
    margin-left: 0;
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: #333;
    overflow-y: auto; 
}
    #menu .menu-heading {
        background: #404040;
        color: #fff;
        display: block;
        padding: 0.6rem 0 0.6rem 0.6rem;
    }

/**收缩菜单**/
.menu-link {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    background: #404040;
    width: 1rem;
    height: auto;
    padding: 1.3rem
}
    .menu-link span {
        position: relative;
        display: block;
    }
    .menu-link span,
    .menu-link span:before,
    .menu-link span:after {
        background-color: #fff;
        width: 100%;
        height: 2px;
    }
        .menu-link span:before,
        .menu-link span:after {
            position: absolute;
            margin-top: -0.5rem;
            content: " ";
        }
        .menu-link span:after {
            margin-top: 0.5rem;
        }

/**头部***/
.header {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
    .header h1 {
        margin: 0.2rem 0;
        font-size: 3rem;
        font-weight: 300;
    }
    .header h2,h3 {
        font-weight: 300;
        color: #ccc;
    }
/**内容**/
.content {
    margin: 0 auto;
    padding: 0 2rem;
}

.content>div {
    font-size: 0;
    text-align: center;
}
.content .img-list {
    width: 20%;
    display:inline-block;
    padding: 2%;
}

.img-resposive:hover{
        opacity: 0.6;
}

.content .img-resposive {
    border-radius:6px;
    max-width: 100%;
    height: auto;
}
.foot {
	font-size:12px;
	text-align: center;
}
#layout,#menu,.content .img-list,.menu-link {
    transition: all .4s ease;
}

@media (min-width:768px){

}
@media (max-width:768px){
    .header h1 {
        font-size: 2.5rem;
    }
    .content .img-list {
        width: 45%;
    }
}
@media (max-width:568px){
    #layout {
        padding-left: 0;
    }
    #menu {
        left: -150px;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .content .img-list {
        width: 90%;
    }
}

/*****布局处理****/
#layout.active {
        padding-left: 150px;
    }
    #layout.active #menu {
        left: 0px;
    }
    #layout.active .menu-link {
        left: 150px;
    }

/*****模态框处理****/
#mo{
        display: none;/*隐藏*/
        width: 100%;
        height: 100%;
        position: fixed;
        overflow: auto;
        background-color: rgba(0,0,0,0.7);
        top: 0px;
        left: 0px;
        z-index: 1;
    }
    #moimg{
        display: block;
        margin:25px auto;
        width: 85%;
        max-width: 1250px;
    }
    #caption{
        text-align: center;
        margin: 15px auto;
        width: 85%;
        max-height: 1250px;
        font-size: 20px;
        color:#ccc;
    }
    #moimg,#caption{
        -webkit-animation: first 1s;
        -o-animation: first 1s;
        animation: first 1s;
    }
    @keyframes first{
        from{transform: scale(0.1);}
        to{transform: scale(1);}
    }
    .close{
        font-size: 40px;
        font-weight: bold;
        position: absolute;
        top: 20px;
        right: 14%;
        color:#f1f1f1;
    }
    .close:hover,
    .close:focus{
        color:#bbb;
        cursor:pointer;
    }
    @media only screen and(max-width:750px ) {
        #moimg{
            width: 100%;
        }
    }