:root {
    --tb--main: #007bff;
    --tb--base: #333;
    --tb--dark: #202935;
    --tb--white: #fff;
    --tb--bdbg: #f4f8fe;
    --tb--tint: #fbfbfb;
    --tb--line: #f3f3f3;
    --tb--gray: #999;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--tb--bdbg);
}

body.xinnews-template {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--tb--bdbg);
    color: var(--tb--base);
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.42857;
    letter-spacing: 0;
}

.xinnews-template a {
    color: #252525;
    text-decoration: none;
}

.xinnews-template a:hover {
    color: #c50205;
    text-decoration: none;
}

.xinnews-template img {
    max-width: 100%;
    border: 0;
    vertical-align: middle;
}

.clearfix::after,
.container::after,
.containers::after {
    display: table;
    clear: both;
    content: "";
}

.container {
    width: min(100%, 1200px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 62px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.header .container {
    display: flex;
    align-items: center;
    min-height: 62px;
}

.navbar-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header .logo {
    display: flex;
    align-items: center;
    height: 62px;
    margin: 0;
    padding: 0;
}

.header .logo a {
    display: flex;
    align-items: center;
    height: 62px;
}

.header .logo img {
    width: auto;
    max-width: 180px;
    max-height: 42px;
    transition: all .3s ease-out 0s;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    min-height: 62px;
}

.header .primary-menu {
    margin-left: 40px;
}

.nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.header .nav > li > a {
    display: block;
    padding: 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 62px;
    background: none;
}

.header .nav > li.active > a,
.header .nav > li > a:hover {
    color: #015ce5;
}

.navbar-toggle {
    display: none;
    width: 42px;
    height: 38px;
    margin: 0 12px 0 0;
    padding: 9px 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #333;
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

.page-banner {
    position: relative;
    display: none !important;
}

.page-banner img {
    width: 100%;
}

.page-banner .nybt {
    position: absolute;
    top: 45%;
    z-index: 99;
    width: 100%;
    color: #fff;
    text-align: center;
}

.page-banner .nybt h3 {
    margin: 0;
    font-size: 2rem;
    text-align: center;
}

.containers {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    max-width: 1240px;
    margin: 78px auto 0;
    padding: 0 20px;
}

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

.contents {
    position: relative;
    min-height: 600px;
    margin-right: 380px;
    margin-bottom: 20px;
}

.xinnews-detail-page .contents {
    padding: 30px;
    border-radius: 6px;
    background-color: var(--tb--white);
}

.excerpts-title {
    margin-bottom: 0;
    padding: 17px 20px 0;
    border-radius: 6px 6px 0 0;
    background-color: var(--tb--white);
}

.title h1,
.title h3 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-left: 17px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.title h1::before,
.title h3::before,
.widget h3::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    border-radius: 10px;
    background-color: var(--tb--main);
    content: "";
}

.title h1::before,
.title h3::before {
    height: 16px;
    margin-top: -8px;
}

.excerpt {
    position: relative;
    min-height: 164px;
    padding: 20px 20px 20px 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--tb--line);
    background-color: var(--tb--white);
}

.excerpt:nth-last-of-type(1) {
    border-radius: 0 0 6px 6px;
}

.excerpt .focus {
    display: flex;
    float: left;
    width: 180px;
    height: 123px;
    margin-left: -200px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

.excerpt .thumb {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.excerpt h2 a:hover {
    color: var(--tb--main);
}

.excerpt .note {
    display: -webkit-box;
    max-height: 46px;
    margin: 0;
    overflow: hidden;
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    word-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.excerpt .meta {
    height: 24px;
    margin-top: 20px;
    overflow: hidden;
    color: var(--tb--gray);
    line-height: 24px;
}

.excerpt .author,
.excerpt time,
.excerpt .-tags {
    display: inline-block;
    margin-right: 15px;
}

.excerpt .author img {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
    background: #fff;
}

.xypg-pagination {
    margin-top: 18px;
    padding: 14px 0 22px;
    color: #777;
    text-align: center;
}

.xypg-pagination a,
.xypg-pagination span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    margin: 0 3px 6px;
    padding: 0 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #555;
    line-height: 32px;
}

.xypg-pagination a:hover,
.xypg-pagination .page-num-current,
.xypg-pagination .current {
    border-color: var(--tb--main);
    background: var(--tb--main);
    color: #fff;
}

.sidebar1 {
    position: relative;
    float: left;
    width: 360px;
    margin-left: -360px;
}

.widget {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--tb--white);
}

.widget h3 {
    position: relative;
    margin: 0;
    padding: 10px 20px 10px 37px;
    border-bottom: 1px solid var(--tb--line);
    background-color: var(--tb--tint);
    font-size: 15px;
}

.widget h3::before {
    left: 20px;
    height: 15px;
    margin-top: -7.5px;
}

.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget_ui_posts li {
    border-bottom: solid 1px var(--tb--line);
}

.widget_ui_posts li:last-child {
    border-bottom: none;
}

.widget_ui_posts li a {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 15px 20px 15px 150px;
}

.widget_ui_posts li a:hover {
    background-color: var(--tb--tint);
}

.widget_ui_posts li.noimg a,
.widget_ui_posts .nopic li a {
    padding: 10px 15px;
}

.widget_ui_posts .text {
    display: -webkit-box;
    overflow: hidden;
    color: #555;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.widget_ui_posts .text:hover,
.widget_ui_posts li a:hover .text {
    color: var(--tb--main);
}

.widget_ui_posts .muted {
    display: inline-block;
    margin-top: 6px;
    margin-right: 15px;
    color: #bbb;
    font-size: 12px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.4;
}

.article-title a {
    color: #252525;
}

.article-meta {
    margin-top: 10px;
    color: #999;
}

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

.article-content {
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
}

.article-content h1 {
    display: none;
    font-size: 24px;
}

.article-content h2 {
    font-size: 22px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 20px 0;
    padding: 0;
    font-weight: bold;
    line-height: 1.4;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px 1.4em;
    padding: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.xypg-detail-pn {
    margin-top: 30px;
}

.xypg-detail-pn div {
    margin-bottom: 10px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

.xypg-detail-pn b {
    float: left;
    width: 80px;
    color: #333;
    font-weight: normal;
}

.xypg-detail-pn a {
    display: block;
    overflow: hidden;
    color: #555;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xypg-detail-pn a:hover {
    color: var(--tb--main);
}

.ttel {
    display: none;
}

.footer {
    flex-shrink: 0;
    margin-top: 30px;
    padding: 24px 0 28px;
    background: #fff;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.footer .con {
    line-height: 1.8;
}

.footer a {
    color: #555;
}

.footer a:hover {
    color: var(--tb--main);
}

.footer .pp {
    margin-top: 5px;
}

@media (max-width: 1024px) {
    .contents {
        margin-right: 0;
    }

    .content-wrap {
        float: none;
    }

    .sidebar1 {
        display: block;
        float: none;
        width: auto;
        margin-left: 0;
        clear: both;
    }
}

@media (max-width: 767px) {
    body.xinnews-template {
        padding-bottom: 0;
    }

    .header .container {
        position: relative;
        display: block;
        padding-right: 12px;
        padding-left: 12px;
    }

    .navbar-header {
        justify-content: space-between;
        min-height: 62px;
        flex-direction: row-reverse;
    }

    .navbar-toggle {
        display: block;
    }

    .header .logo img {
        max-width: 160px;
        max-height: 40px;
    }

    .navbar-collapse {
        position: absolute;
        top: 62px;
        right: 12px;
        left: 12px;
        display: none;
        min-height: auto;
        border: 1px solid #eee;
        border-top: none;
        border-radius: 0 0 6px 6px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    }

    .menu-check:checked ~ .navbar-collapse {
        display: block;
    }

    .header .primary-menu {
        margin-left: 0;
    }

    .navbar-nav {
        display: block;
    }

    .header .nav > li > a {
        padding: 0 16px;
        border-top: 1px solid #f4f4f4;
        line-height: 44px;
    }

    .containers {
        margin-top: 72px;
        padding: 0 12px;
    }

    .xinnews-detail-page .contents {
        padding: 0 15px 18px;
        border-radius: 0;
    }

    .footer {
        padding-bottom: 22px;
    }
}

@media (max-width: 600px) {
    .containers {
        padding: 0;
    }

    .contents {
        min-height: 0;
        margin-bottom: 14px;
    }

    .excerpts-title {
        padding: 14px 15px 0;
        border-radius: 0;
    }

    .excerpt {
        min-height: 111px;
        padding: 14px 150px 15px 15px;
        border-bottom: 0;
    }

    .excerpt::before {
        position: absolute;
        top: 0;
        right: 15px;
        left: 15px;
        border-top: 1px solid var(--tb--line);
        transform: scaleY(.5);
        transform-origin: 0 0;
        content: "";
    }

    .excerpt:first-of-type::before {
        display: none;
    }

    .excerpt .focus {
        float: right;
        width: 120px;
        height: 82px;
        margin-right: -135px;
        margin-left: 0;
    }

    .excerpt header {
        display: -webkit-box;
        margin-bottom: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .excerpt h2 {
        position: relative;
        top: -2px;
        font-size: 15px;
        font-weight: normal;
        line-height: 1.4;
    }

    .excerpt .note,
    .excerpt .author {
        display: none;
    }

    .excerpt .meta {
        position: absolute;
        right: 150px;
        bottom: 11px;
        left: 15px;
        height: 19px;
        margin-top: 0;
        font-size: 12px;
    }

    .excerpt .meta time,
    .excerpt .meta .-tags {
        display: none;
    }

    .article-header {
        margin-bottom: 0;
        padding: 12px 0 15px;
        text-align: left;
    }

    .article-title {
        font-size: 20px !important;
    }

    .article-meta {
        margin-top: 5px;
        font-size: 12px;
    }

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

    .article-meta .item:nth-child(2) {
        display: none;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .sidebar1 {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .xinnews-detail-page {
        padding-bottom: 74px;
    }

    .ttel {
        position: fixed;
        bottom: 10px;
        left: 4px;
        z-index: 1000;
        display: block;
        width: calc(100% - 8px);
    }

    .ttel a {
        display: block;
        border-radius: 20px;
        background: #015ce5;
        color: #fff;
        font-size: 18px;
        line-height: 48px;
        text-align: center;
    }
}
