body,
h1,
li {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

@media (min-width:768px) {
    .container {
        width: auto;
    }
}

.container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0;
}

@media (max-width:1240px) {
    .container {
        margin: 0 15px;
    }
}


/* 头部开始 */

.navbar>.container .logo {
    line-height: 60px;
}

.navbar>.container .logo a {
    color: #337ab7;
}

.navbar-default {
    background-color: #fff;
}

.navbar-nav>li>a {
    line-height: 60px;
    font-size: 16px;
    padding-top: 0;
    padding-bottom: 0px;
}


/* 内容部分开始 */

.content-wrap {
    width: 100%;
    float: left;
    min-height: auto;
}

.content {
    position: relative;
    min-height: 500px;
    margin-left: 260px;
    margin-bottom: 20px;
    float: left;
}

@media (max-width:1000px) {
    .content {
        margin-right: 0;
    }
    .sidebar {
        display: none;
    }
    .content {
        margin-left: 0!important;
    }
    .banner ul{
        margin-top: 30px!important;
        margin-left: 0!important;
    }
    .banner p{
        margin-top: 0!important;
        margin-left: 0!important;
    }
    .avatar{
        display: none;
    }
    .texts {
        font-size: 12px!important;
        padding: 0!important;
    }
}

.title {
    height: 30px;
    margin-right: 10px;
}

.title h3 {
    font-size: 20px;
    float: left;
    margin: 0;
}

.title h3:hover {
    color: #ff4444;
}

.title .more {
    float: right;
    position: relative;
    margin-top: 5px;
}

.title .more a {
    display: inline-block;
    margin-left: 20px;
    color: #999;
}

.title .more a:hover {
    color: #337ab7;
}

.introBanner {
    padding: 10px;
    margin-bottom: 15px;
}

.excerpt {
    clear: both;
    border: 1px solid #fff;
    padding: 10px;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: -1px;
}

.excerpt:hover {
    background-color: #FBFDFF;
    border-color: #fff;
    position: relative;
}

.excerpt header {
    margin-bottom: 10px;
}

.excerpt .cat {
    color: #FFF;
    background-color: #337ab7;
    padding: 3px 6px;
    font-size: 12px;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-right: 6px;
}

.excerpt .cat:hover {
    opacity: .8;
}

.excerpt .cat i {
    position: absolute;
    top: 50%;
    margin-top: -4px;
    right: -4px;
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-left: 4px solid #337ab7;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.excerpt h2 {
    display: inline;
    font-size: 18px;
    line-height: 24px;
    margin-top: 0;
    font-weight: bold;
}

.excerpt h2 a {
    color: #555;
}

.excerpt h2 a:hover {
    color: #337ab7;
}

.excerpt .meta {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.excerpt .time,
.excerpt .category,
.excerpt .comment,
.excerpt .views {
    cursor: pointer;
    margin-right: 20px;
}

.comment input {
    margin-bottom: 5px;
    border: 2px solid #ccd4d9;
}

.excerpt .time:hover,
.excerpt .comment:hover,
.excerpt .category:hover,
.excerpt .views:hover {
    color: #337ab7;
}

@media (max-width:680px) {
    .excerpt .comment {
        display: none;
    }
}

.excerpt .meta a {
    color: #999;
}

.pagination li a {
    color: #337ab7;
}


/* 右侧 */

.sidebar {
    margin-right: -300px;
    width: 260px;
    float: left;
    position: relative;
}

.widget {
    clear: both;
    position: relative;
    /*margin-bottom: 15px;*/
    border-radius: 4px;
    overflow: hidden;
}

.widget ul {
    padding: 0;
    margin-left: 8px;
}

.widget ul li {
    list-style: none;
}

.widget h3 {
    font-size: 16px;
    line-height: 16px;
    color: #666;
    border-bottom: 1px solid #fff;
    border-left: 3px solid #337ab7;
    margin-bottom: 6px;
    padding-left: 5px;
    cursor: default;
}

.widget h3:hover {
    cursor: pointer;
    color: #ff4444;
}

.widget li a {
    padding: 6px 1px;
    color: #888;
    overflow: hidden;
    position: relative;
    display: block;
    font-size: 14px;
}

.widget li a:hover {
    background-color: #FBFDFF;
}

.widget_hot .text {
    display: block;
}

.widget li a:hover .text {
    color: #337ab7;
}

.widget_hot .muted {
    margin-right: 15px;
    font-size: 12px;
    color: #BBB;
}

.widget_category .count {
    float: right;
    margin-right: 20px;
    color: #bbb;
}

.widget_sentence li {
    display: inline-block;
    float: left;
    padding: 0px 0px;
    margin: 5px;
    font-size: 12px;
}

.widget_sentence li a {
    background-color: #ccc;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 0.4em;
    color: #fff;
}

.widget_sentence li a:hover {
    background-color: #fff;
    padding: 2px 5px;
    border: 1px solid #999;
    border-radius: 0.4em;
    color: #666;
}

.widget_sentence .badge {
    padding: 2px 4px;
    margin: 0 2px;
    background-color: #999;
}


/* 底部 */

.footer p {
    text-align: center;
    color: #999;
}


/* 文章详情 */

.article-header {
    padding: 20px 0;
    text-align: left;
}

.article-title {
    margin-top: 0;
    font-size: 28px;
    line-height: 36px;
}

.article-title a,
.article-title a:hover {
    color: #555;
}

.article-meta {
    color: #999;
    margin: 12px 5px;
    font-size: 14px;
}

.article-meta .item {
    margin-right: 30px;
}

.article-meta .item a {
    color: #337ab7;
}

.article-meta .time {
    color: #bbb;
}

.article-meta .tags a {
    margin-right: 6px;
}

@media(max-width:800px) {
    .article-meta .tags {
        display: none;
    }
    .article-title {
        margin-top: 0;
        font-size: 22px;
        line-height: 28px;
    }
}

.article-content {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 40px;
}

.article-comment {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-comment input,
.article-comment textarea {
    margin-bottom: 6px;
    border: 1px solid #eee;
}

.postcomments {
    padding-bottom: 20px;
}

.commentlist {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: 10px;
}

.comment-content {
    border-bottom: #EEE 1px solid;
}

.comment-content:hover {
    background-color: #FBFDFF;
}

.comment-f {
    position: absolute;
    right: 8px;
    font-size: 14px;
    color: #337ab7;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background-color: #FFF;
    float: left;
    display: inline;
    position: relative;
    margin-top: 19px;
}

.comment-avatar .avatar {
    display: block;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.comment-main {
    margin-left: 5px;
    margin-right: 30px;
    color: #888;
    line-height: 22px;
    position: relative;
    font-size: 14px;
    padding: 0 0 15px;
    word-wrap: break-word;
    max-height: 300px;
    overflow: hidden;
}

.comment-main p {
    margin-top: 15px;
    margin-bottom: 0;
}

.comment-main .time {
    margin: 0 8px;
    font-size: 14px;
    color: #BBB;
}

.comment-main .name {
    color: #337ab7;
    margin: 0 5px;
}

.quotes {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #AAA;
}

.quotes span,
.quotes a {
    padding: 5px 10px;
    margin: 0 3px;
    background: #EEE;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
}

.quotes a:hover {
    color: #FFFFFF;
    background: #337ab7;
}

.quotes .disabled {
    cursor: not-allowed;
}

.quotes .current {
    background: #337ab7;
    color: #FFFFCC;
    cursor: default;
}
/*首页banner图部分动画*/
.banner {  overflow: hidden }
.texts { width: 350px; line-height: 26px; margin: 60px 0 0 20px; float: left; font-size: 14px; }
.texts p:nth-child(1) { -webkit-animation: animations 3s ease-out 1s backwards; -moz-animation: animations 3s ease-out 1s backwards; -o-animation: animations 3s ease-out 1s backwards; -ms-animation: animations 3s ease-out 1s backwards; animation: animations 3s ease-out 1s backwards; }
.texts p:nth-child(2) { -webkit-animation: animations 3s ease-out 4s backwards; -moz-animation: animations 3s ease-out 4s backwards; -o-animation: animations 3s ease-out 4s backwards; -ms-animation: animations 3s ease-out 4s backwards; animation: animations 3s ease-out 4s backwards; }
.texts p:nth-child(3) { -webkit-animation: animations2 5s ease-in-out 7s backwards; -moz-animation: animations2 5s ease-in-out 7s backwards; -o-animation: animations2 5s ease-in-out 7s backwards; -ms-animation: animations2 5s ease-in-out 7s backwards; animation: animations2 5s ease-in-out 7s backwards; }
@-webkit-keyframes animations { 0% {
    -webkit-transform:translate(0);
    opacity:0;
}
    50% {
        -webkit-transform:translate(30px);
        opacity:.5;
    }
    100% {
        -webkit-transform:translate(60px);
        opacity:1;
    }
}
@-moz-keyframes animations { 0% {
    -moz-transform:translate(0);
    opacity:0;
}
    50% {
        -moz-transform:translate(30px);
        opacity:.5;
    }
    100% {
        -moz-transform:translate(60px);
        opacity:1;
    }
}
@-o-keyframes animations { 0% {
    -o-transform:translate(0);
    opacity:0;
}
    50% {
        -o-transform:translate(30px);
        opacity:.5;
    }
    100% {
        -o-transform:translate(60px);
        opacity:1;
    }
}
@-ms-keyframes animations { 0% {
    -ms-transform:translate(0);
    opacity:0;
}
    50% {
        -ms-transform:translate(30px);
        opacity:.5;
    }
    100% {
        -ms-transform:translate(60px);
        opacity:1;
    }
}
@keyframes animations { 0% {
    transform:translate(0);
    opacity:0;
}
    50% {
        transform:translate(30px);
        opacity:.5;
    }
    100% {
        transform:translate(60px);
        opacity:1;
    }
}
@-webkit-keyframes animations2 { 0% {
    opacity:0;
}
    40% {
        opacity:.8;
    }
    45% {
        opacity:.3;
    }
    50% {
        opacity:.8;
    }
    55% {
        opacity:.3;
    }
    60% {
        opacity:.8;
    }
    100% {
        opacity:1;
    }
}
@-moz-keyframes animations2 { 0% {
    opacity:0;
}
    40% {
        opacity:.8;
    }
    45% {
        opacity:.3;
    }
    50% {
        opacity:.8;
    }
    55% {
        opacity:.3;
    }
    60% {
        opacity:.8;
    }
    100% {
        opacity:1;
    }
}
@-o-keyframes animations2 { 0% {
    opacity:0;
}
    40% {
        opacity:.8;
    }
    45% {
        opacity:.3;
    }
    50% {
        opacity:.8;
    }
    55% {
        opacity:.3;
    }
    60% {
        opacity:.8;
    }
    100% {
        opacity:1;
    }
}
@-ms-keyframes animations2 { 0% {
    opacity:0;
}
    40% {
        opacity:.8;
    }
    45% {
        opacity:.3;
    }
    50% {
        opacity:.8;
    }
    55% {
        opacity:.3;
    }
    60% {
        opacity:.8;
    }
    100% {
        opacity:1;
    }
}
@keyframes animations2 { 0% {
    opacity:0;
}
    40% {
        opacity:.8;
    }
    45% {
        opacity:.3;
    }
    50% {
        opacity:.8;
    }
    55% {
        opacity:.3;
    }
    60% {
        opacity:.8;
    }
    100% {
        opacity:1;
    }
}

.avatar { float: right; margin: 40px; width: 130px; height: 130px; border-radius: 100%; overflow: hidden; border: #FFF 4px solid }
.avatar a { display: block; padding-top: 97px; width: 160px; background: url(../images/photos.jpg) no-repeat; background-size: 130px 130px }
.avatar a span { display: block; margin-top: 63px; padding-top: 8px; width: 130px; height: 55px; text-align: center; line-height: 20px; color: #fff; background: rgba(0, 0, 0, .5); -webkit-transition: margin-top .2s ease-in-out; -moz-transition: margin-top .2s ease-in-out; -o-transition: margin-top .2s ease-in-out; transition: margin-top .2s ease-in-out; }
.avatar a:hover span { display: block; margin-top: 0; }
