.template_block {
    display: inline-block;
    width: 200px;
    /*height: 260px;*/
    margin: 20px;
    border: 1px solid #393d49;
    border-radius: 9px;
    box-sizing: border-box;
    transition: all 300ms;
    position: relative;
    color: #808080;
}

.template_block:hover {
    box-shadow: 0px 0px 11px #393d49;
    cursor: pointer;
}

.template_block .template_preview {
    width: calc(100% - 10px);
    height: 130px;
    margin: 4px;
    border-radius: 9px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.template_block .template_title {
    bottom: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: #166b60;
    color: white;
}

.template_block .template_preview > img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.template_block .template_opers {
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.template_block .template_opers > span {
    height: 30px;
    line-height: 30px;
    margin: 0 5px;
}

.template_block .template_opers i {
    font-size: 16px;
}

.template_block .template_opers span:hover {
    color: #122c3d;;
}

.oper-btns i.fa {
    margin-right: 3px;
}

.oper-btns {
    margin: 20px 0 0 20px;
}

.template_block .template_official_icon {
    cursor: pointer;
    display: none;
    position: absolute;
    top: -13px;
    left: -15px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
    text-align: center;
}

.template_block .template_official_icon:before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 20px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.template_block .template_official_icon > img {
    width: 35px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.official_template_iframe {
    border: 0;
    width: 100%;
    min-height: calc(100vh - 121px);
}

.template_page .layui-tab {
    background: white;
    margin: 0;
}

.template_page .layui-tab .layui-tab-content {
    padding: 0;
}

.template_page_header {
    background-color: #393D49;
    height: 60px;
    overflow: hidden;
}

.template_page_header_bg {
    height: 60px;
    background-image: url(/assets/portal/img/spring.jpg);
    margin-bottom: 20px;
    filter: blur(22px);
}

.official_tab_content {
    font-size: 0;
}


@media screen and (max-width: 992px) {

}


@media screen and (max-width: 500px) {
    .template_block {
        width: calc(100% - 70px);
    }

    .template_block .template_preview > img {
        max-height: unset;
    }

}


.template_detail_content table {
    margin-top: 8px
}
.template_detail_content table tr td {
    border: 1px solid #ccc;
    padding: 5px;
}