/* 公共样式 */

body {
  font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif,FontAwesome;
}

.wrapper {
    min-height: auto;
}

#header {
    margin-bottom: 20px;
}

#header .affix {
    position: fixed;
    width: 100%;
}

#header .topnavbar{
    background-color: #4f85bb;
    background-image: -webkit-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
    background-image: -o-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
    background-image: linear-gradient(to right, #fff 0%, #fff 100%);
    background-repeat: repeat-x;
}

@media only screen and (min-width: 768px){
    #header .topnavbar{
        background-color: #4f85bb;
        background-image: -webkit-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
        background-image: -o-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
        background-image: linear-gradient(to right, #2c3e50 0%, #2c3e50 100%);
        background-repeat: repeat-x;
    }
}

#header .navbar-collapse a{
    color: #5d9cec;
}

#header .topnavbar .navbar-header {
    background-image: -webkit-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
    background-image: -o-linear-gradient(left, #2c3e50 0%, #2c3e50 100%);
    background-image: linear-gradient(to right, #2c3e50 0%, #2c3e50 100%);
    background-repeat: repeat-x;
}

#header .topnavbar .navbar-header .navbar-collapsed{
    padding: 4px 10px 0 10px;
    font-size: 16px;
}

#header .navbar-header .navbar-brand .brand-logo {
    padding: 5px;
    float: left;
}

#header .navbar-header .navbar-brand .brand-logo img{
    width: 45px;
    height: 45px;
    margin: 0;
}

#header .navbar-header .navbar-brand .brand-title {
    float: left;
    margin: auto 5px;
    padding: 17px 5px;
}


#header .topnavbar .search-form .btn-primary {
    border-color: #5d9cec;
    background-color: #5d9cec;
}

#header .topnavbar .search-form.open button{
    display: block !important;
    top: 0;
    position: absolute;
    right: 0;
    margin-right: 2px;
    height: 100%;
    border-radius: 0;
}

#header .topnavbar .navbar-form .has-feedback .form-control-feedback {
    margin-right: 60px;
}

/**
 * 站点地图
 */
#sitemap {
    margin-bottom: 10px;
}

#sitemap .container .row a {
    text-decoration:none;
}

/**
 * 广告横幅
 */
#banner{}

@media (min-width: 768px) {
    #banner .row > a > img {
        width: 100%;
        height: 100px;
    }
}

@media (max-width: 768px) {
    #banner .row > a > img {
        width: 100%;
        height: 50px;
    }
}

#banner .banner-left {
    height: 272px;
/*     width: 170px; */
    background: #565;
    position: fixed;
    left: 1px;
    top: 106px;
}

@media (min-width: 768px) {
  #banner .banner-left {
	 width: calc((100% - 750px)/2);
  }
}
@media (min-width: 992px) {
  #banner .banner-left {
	 width: calc((100% - 970px)/2);
  }
}
@media (min-width: 1200px) {
  #banner .banner-left {
	 width: calc((100% - 1170px)/2);
  }
}

#banner .banner-right {
    height: 272px;
/*     width: 170px; */
    background: #565;
    position: fixed;
    right: 1px;
    top: 106px;
}

@media (min-width: 768px) {
  #banner .banner-right {
	 width: calc((100% - 750px)/2);
  }
}
@media (min-width: 992px) {
  #banner .banner-right {
	 width: calc((100% - 970px)/2);
  }
}
@media (min-width: 1200px) {
  #banner .banner-right {
	 width: calc((100% - 1170px)/2);
  }
}

#banner .banner-left img {
    position: absolute;
    width: 100%;
    height: 100%;
}

#banner .banner-right img {
    position: absolute;
    width: 100%;
    height: 100%;
}


#main{}

#main .left-main-list h1, 
#main .left-main-list h2, 
#main .left-main-list h3, 
#main .left-main-list h4, 
#main .left-main-list h5{
    margin: 0px;
    padding: 0;
    outline: 0;
}

/* 
#main .row div {
  background-color: #f40;
  height: 700px;
}

#main .row div:nth-of-type(2n) {
  background-color: #f00;
  height: 700px;
} */

/* #main .row .right div {
  background-color: #f60;
  height: 200px;
}

#main .row .right div:nth-of-type(2n) {
  background-color: #f90;
  height: 200px
} */


#main .left {
    padding-left: 0;
}

@media (max-width: 768px) {
    #main .left {
        padding-right: 0;
    }
}

/*left-main-list: 表示博客文章列表,left-main-article: 表示博客文章*/
#main .left.left-main-list ul,
#main .left.left-main-list li {
    margin: 0px;
    padding: 0;
    outline: 0;
    list-style: none;
}

#main .left.left-main-list li {
    background: #fff;
    padding: 30px 25px;
    overflow: hidden;
    color: #797b7c;
    margin-bottom: 20px;
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-duration: 500ms;
    animation-duration: 500ms;
    -webkit-animation-fill-mode: both;
    /* animation-fill-mode: both; */
}

#main .left.left-main-list h2 {
    margin: 0;
    padding: 0;
    outline: 0;
    font-size: 18px;
    line-height: 25px;
    color: #f1404b;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
}

#main .left.left-main-list li h2 a {
    color: #222;
}

#main .left.left-main-list li h2 a:hover {
    color: #448EF6;
}

#main .left.left-main-list li p {
    margin: 20px 0 0 0;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    color: #555;
}

#main .left.left-main-list a:hover {
    text-decoration: none;
    color: #448EF6;
}

#main .left.left-main-list li:hover img {
    transform: scale(1.05);
}

#main .left.left-main-list li img {
    float: right;
    clear: right;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

#main .left.left-main-list img {
    margin: 0px;
    padding: 0;
    outline: 0;
    border: 0;
    display: block;
}

#main .left .postfoot {
    /* margin: 20px 0 0 0; */
    padding-top: 10px;
    overflow: hidden;
    /* display: block; */
    clear: both;
}

#main .left .postfoot div {
    display: block;
}

.f_l {
    float: left;
}

.f_r {
    float: right;
}

#main .left li i{
    /* width: 120px; */
    display: block;
    /* height: 115px; */
    overflow: hidden;
    float: right;
    margin-left: 10px;
}

/**
 * 文章部分
 */
#main .left .infosbox {
    overflow: hidden;
    background: #FFF;
    margin-bottom: 20px;
}

#main .left .newsview {
    padding: 0 25px;
}


#main .left .news_title {
    font-size: 24px;
    font-weight: normal;
    padding: 20px 0;
    color: #333;
}

#main .left .bloginfo {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
/*      margin-bottom: 10px; */
}

#main .left .bloginfo ul, 
#main .left .bloginfo li {
    margin: 0px;
    padding: 0;
    outline: 0;
    list-style: none;
}

#main .left .bloginfo li {
    float: left;
    margin-right: 20px;
}

#main .left .newsview-bottom a,
#main .left .bloginfo a {
    color: #555;
    text-decoration: none;
    -webkit-transition: background-color .15s linear,color .15s linear;
    -moz-transition: background-color .15s linear,color .15s linear;
    -o-transition: background-color .15s linear,color .15s linear;
    -ms-transition: background-color .15s linear,color .15s linear;
    transition: background-color .15s linear,color .15s linear;
}

#main .left .newsview a:hover {
    text-decoration: none;
    color: #448EF6;
}

#main .left .infosbox .resource-code-main .resource-download-code {
    overflow: hidden;
    position: relative;
    width: 178px;
    background-color: #ffeded;
    border: 1px solid #FF0036;
    color: #FF0036;
    font-family: 'Microsoft Yahei';
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    margin: 5px 0px;
}

#main .left .infosbox .resource-code-main .resource-downloader-navigation a{
    color: #5d9cec;
}

#main .left .newsview .infosbox img {
    max-width: 100%;
    height: auto;
}

#main .left .newsview img {
    border: 0;
    display: block;
}

#main .left .newsview .tags {
    margin: 40px 0 10px 0;
}

#main .left .newsview .ad-banner img{
    width: 100%;
}

@media (min-width: 768px) {
    #main .left .newsview .ad-banner img{
        width: calc(100% - 30px);
    }

    #main .left .newsview-bottom {
        bottom: 86px;
        position: absolute;
    }
}

#main .left .newsview-bottom .nextinfo {
    line-height: 24px;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

#main .left .newsview-bottom .nextinfo p {
    margin: 0px;
    padding: 0;
    outline: 0;
    padding: 4px 0;
    border-radius: 5px;
}

#main .left .newsview-bottom .nextinfo p a {
    color: #5d9cec;
}

#main .left .news_content {
    margin-bottom: 20px;
}

#main .left .left-loading {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
}

#main .left .left-loading img{
    margin: 0 auto;
}

#main .left .left-loading .btn-primary {
    border-color: #5d9cec;
    background-color: #5d9cec;
}

/**
 * 右边部分
 */

#main .right .right-sidebar,
#main .right .right-sidetags {
    background: #fff;
    overflow: hidden;
    padding: 16px 20px 20px;
    margin-bottom: 20px;
}

#main .right .right-sidebar .side-title,
#main .right .right-sidetags .side-title {
    height: 32px;
    font-size: 16px;
    color: #222;
    border-bottom: 1px solid #eee;
    text-align: left !important;
    margin-bottom: 15px;
}

#main .right .right-sidebar .side-title h3,
#main .right .right-sidetags .side-title h3 {
   padding: 0;
   margin: 0;
   position: relative;
   display: inline-block;
   font-size: 16px;
   font-weight: bold;
   color: #3a6ea5;
}
    
#main .right .right-sidebar ul,
#main .right .right-sidebar li,
#main .right .right-sidetags ul,
#main .right .right-sidetags li {
    margin: 0;
    padding: 0;
    outline: 0;
    list-style: none;
}

#main .right .right-sidebar ul li {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 5px;
    height: 32px;
    line-height: 32px;
}

#main .right .right-sidebar ul li::before {
  /* content: "\e736"; */
  /* content: "\e258"; */
  /* font-family: personal; */
  /* font-family: 'Glyphicons Halflings'; */
  /* content: "\f054"; */
  content: "\f105";
  margin-right: 4px;
  font-size: 14px;
}

#main .right .right-sidebar ul li a{
    color: #555;
    text-decoration: none;
}

/***标签样式***/
#main .right .right-bottom {
    margin-bottom: 0px;
}

#main .right .right-top {
    margin-top: 5px;
}
#main .right .right-sidetags li a {
  text-decoration: none;
  font-size: 14px;
  display: block;
  background: #999;
  float: left;
  padding: 3px 8px;
  margin: 4px;
  border-radius: 3px;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  color: #FFF
}
#main .right .right-sidetags ul li:nth-child(5n) a {
  background: #28DC64
}
#main .right .right-sidetags ul li:nth-child(5n+1) a {
  background: #A0DC28
}
#main .right .right-sidetags ul li:nth-child(5n+2) a {
  background: #5DB7E5
}
#main .right .right-sidetags ul li:nth-child(5n+3) a {
  background: #EDB091
}
#main .right .right-sidetags ul li:nth-child(5n+4) a {
  background: #28A0DC
}
#main .right .right-sidetags li :hover {
  text-shadow: #000 1px 1px 1px
}


#footer {}

#footer .row {
    height: 60px;
}