/** XIDICMS官网: cms.xidicom.cn
 自适应高端建站
**/
/*全局样式*/
body {
    background: #eee;
}

img {
    max-width: 100%;
}
.align-center{
    text-align: center;
    background: #fff;
}
.line_one {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.line_two {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.line_three {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.instead-top{
   height: 70px
}

/**导航栏样式*/
.navbar {
    min-height: 70px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.navbar-btn {
    margin: 18px auto;
    border-radius: 20px;
}

.navbar-brand {
    margin: 0;
    padding: 10px;
}

.navbar-brand img {
    height: 50px;
}

.navbar-default .navbar-nav>li>a {
    padding: 25px 15px;
    /*color: #fff;*/
    font-size: 16px;
}
.navbar-default{
    /*background: #0ab0cc;*/
    border-color: transparent;
}
.navbar-form{
    margin: 18px auto;
}
.navbar-form input,.navbar-form button{
    border-radius: 50px;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #4bb1cf;
    background: rgba(0, 0, 0, 0.2);
}
.login-tips{
    text-align: center;
    position: relative;
}
.login-tips:before,.login-tips:after{
    content: '';
    width: calc(50% - 70px);
    height: 1px;
    background: #eee;
    position: absolute;
    left: 10px;
    top: 50%;
}
.login-tips:after{
    left: unset;
    right: 10px;
}
.modal-header{
    border-bottom: none;
}
.breadcrumb {
    background: #fff;
    border-radius: 0;
    margin-top: 10px;
}

.fenye {
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    background: #fff;
}

/*首页样式*/
.template-detail{
   background: #fff;
   padding: 10px;
   overflow: hidden;
}
.template-detail-title {
    font-size: 20px;
    font-weight: bold;
    margin: auto;
    color: #666;
}
.template-item {
    background: #fff;
    margin: 10px auto;
    padding: 4px;
}

.template-cover {
    display: block;
    position: relative;
}

.template-cover img {
    width: 100%;
}

.theme-label {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
    background: url("/template/home/default/img/label.png") center no-repeat;
    background-size: contain;
}

.template-title {
    background: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-title > a:first-child {
    color: #333;
}

.template-title h2 {
    /*display: inline-block;*/
    font-size: 16px;
    margin: 0;

}

.template-labels {
    background: #fff;
    padding: 20px;
}

.template-labels h1 {
    font-size: 20px;
    margin: auto;
}

.labels {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    list-style: none;
    padding: 0;
}

.labels > li {
    padding: 5px;
    border: solid #eee 1px;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.labels > li:hover {
    background: #4bb1cf;
    color: #fff;
}

.list-group-item {
    border: none;
}
.tags-lg>*:first-child{
    display: none;
}
.tags-lg>*{
    display: inline-block;
    background: #eee;
    padding: 10px;
    overflow: hidden;
    text-decoration: none;
    margin:5px 10px ;
}
.tags-sm a{

}
.tags-sm a:last-child{
    display: none;
}

.tags-lg a:hover {
    background: #4bb1cf;
    color: #fff;
}

.tag-list {
    padding-bottom: 20px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    text-align: center;
    white-space: nowrap;
}

.tags a:nth-child(n+31){
display: none;
}
/*搜索框样式*/
.search {
    display: none;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 0;
    right: 0;
    top: 80px;
    z-index: 999;
    padding: 30px 0;
    background: #fff;
}

#search-form {
    padding: 20px;
}

.search.open {
    display: block;
}

/*分页按钮样式*/
.pagination-content {
    text-align: center;
}

/*返回顶部按钮样式*/
#scrollUp {
    background: #428bca;
    bottom: 45px;
    color: #ffffff;
    cursor: pointer;
    display: none;
    font-size: 28px;
    height: 40px;
    line-height: 37px;
    position: fixed;
    right: 12px;
    text-align: center;
    width: 40px;
    z-index: 99;
}

#scrollUp:hover {
    background-color: #2D3E50;
}
/*文章样式*/
.article-item{
    background: #fff;
    margin: 10px auto;
    padding: 10px;
}
.article-item h1{
    font-size: 22px;
}
.article-detail{
    background: #fff;
    padding: 20px;
}
.article-info{
    color: #999;
}
.article-content{
    font-size: 16px;
}
.article-copyright{
    background: #eee;
    color: #1b6d85;
    padding: 20px;
}
/*页脚样式*/
footer {
    background: #001738;
    padding-top: 50px;
    margin-top: 50px;
}
footer img{
    max-width: 80%;
    opacity: 0.9;
}

footer h4 {
    color: #eee;
    margin: 20px auto;
}
footer *{
    color: #999;
}
.footer-about {
    padding: 10px;
}

.footer-link a {
    display: block;
    padding-bottom: 5px;
}

.copyright {
    border-top: solid 1px rgba(255,255,255,0.2);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    margin-top: 50px;
    color: #ccc;
    font-size: 12px;
}

.powered a:hover {
    color: #0ab0cc;
    text-decoration: none;
}

.powered a {
    float: right;
    color: #0b6773;
}

/*移动端样式*/
@media (max-width: 768px) {
    .instead-top{
        height: 50px
    }

    /*导航栏样式*/
    .navbar-fixed-top .navbar-collapse {
        max-height: unset;
    }

    .navbar {
        min-height: 50px;
    }

    .navbar-brand {
        padding: 10px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-default .navbar-nav > li > a {
        padding: 15px 20px;
        color: #777 !important
    }

    .navbar-collapse {
        max-height: unset;
        z-index: 1000;
    }

    .search {
        top: 60px;
    }
    .template-title h2{
        font-size: 14px;
    }
    .template-detail{
      padding: 10px 0;
    }
 .template-detail-title {
        margin: 10px auto;
    }

    /*页脚样式
    */
    .footer-about {
        margin: auto;
        padding: 0;
    }

    .copyright {
        text-align: center;
    }

    .powered a {
        float: none;
    }
}

