/*
作者：天兴工作室
网址：https://www.txcstx.com
邮箱：admin@txcstx.cn
*/
@import "css/txui.min.css";

body {
    background-color: #f0f0f0;
    --tx-color: #f9a61a;
    --tx-bg: #f1f1f1
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 120px;
    background-color: #242424;
    z-index: 1;
}

.header>* {
    position: relative;
    z-index: 10;
}

.logo * {
    line-height: 1;
    height: 50px;
    width: auto;
    display: inline-block;
}

.nav-box {
    background-color: var(--tx-color);
    position: relative;
    z-index: 99;
}

.nav-box a:hover {
    color: #fff;
    opacity: 0.9;
}

.nav-box .nav {
    overflow: visible;
}

.nav li {
    position: relative;
}

.nav li a {
    display: inline-flex;
    height: 50px;
    align-items: center;
    padding: 0 1.3em;
    color: #fff;
    white-space: nowrap;
}

.nav li:hover a,
.nav li.on a {
    background-color: #e08c00;
}

.nav li ul {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease 0s;
    background-color: #e08c00;
}

.nav li:hover ul {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.nav li ul a {
    font-size: 0.9em;
    height: 2.4em;
}


.nav-right>* {
    color: #fff;
    margin: 0 10px 0 0;
}

.search-box .tx-input {
    border: 1px solid #4b4b4b;
    background-color: #3a3a3a;
    border-radius: 0;
    width: 320px;
    color: #fff;
}

.search-box .tx-btn {
    border-radius: 0;
}

.mian {
    background-color: #fff;
    box-shadow: 0 2px 5px #d3d3d3;
    position: relative;
    z-index: 10;
}

.home-flash {
    background-color: #f1f1f1;
}

.home-flash .swiper-slide {
    display: flex;
    align-items: stretch;
}

.home-flash .swiper-slide>div {
    flex: none;
}

.home-flash .swiper-slide section {
    padding: 60px 30px;
    flex: auto;
}

.home-flash .swiper-pagination {
    width: 29.1666%;
    left: auto;
    right: 0;
}

.home-flash .swiper-pagination-bullet-active {
    background-color: var(--tx-color);
}

.item-list {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tx-border);
}

.item-list-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-tag {
    display: inline-flex;
    height: 1.6;
    border: 1px solid var(--tx-border);
    padding: 0 0.4em;
    border-radius: 2px;
    color: #666;
}

.item-tag:hover {
    color: var(--tx-color);
    border-color: var(--tx-color);
}

.info-next span {
    border: 1px solid var(--tx-border);
    background-color: var(--tx-bg);
    display: inline-flex;
    align-items: center;
    height: 2.6em;
    padding: 0 1em;
}

.links {
    background-color: #f2f2f2;
    padding: 15px 20px 10px 20px;
}

.links li {
    margin: 0 10px 5px 0;
}

.footer {
    background-color: #242424;
    color: #fff;
    padding: 30px 20px;
}

.footer a,
.footer a:hover {
    color: #f1f1f1;
}

.footer-menu>* {
    margin: 0 10px 5px 0;
}

/* 分页条 */

.pagebar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.pagebar>* {
    display: inline-flex;
    height: 2.4em;
    align-items: center;
    padding: 0 1em;
    background-color: var(--tx-boxbg);
    border: 1px solid var(--tx-border);
    margin: 0.2em;
    border-radius: var(--tx-radius);
    color: var(--tx-light);
}

.pagebar a:hover,
.pagebar .now-page {
    color: #fff;
    background-color: var(--tx-color);
}


/* 评论 */

.msg img.avatar {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    margin-right: 1em;
}

.msgname {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.msgusername {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.msg .msg {
    padding: 1em 1.2em;
    margin: 0.8em 0 0 4em;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.msg .tx-btn-mini {
    font-size: 0.65em;
    font-weight: 400;
    line-height: 1.3;
    padding: 0 5px;
}

.tx-comment-textarea {
    position: relative;
    width: 100%;
}

.tx-comment-textarea .tx-btn {
    position: absolute;
    right: 0;
    bottom: 0;
}

.reply-frm {
    padding: 1em;
    background-color: var(--tx-boxbg);
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tx-border);
    margin: 1em 0 0 0;
    position: relative;
}

.reply-frm #cancel-reply {
    position: absolute;
    right: 0;
    top: -2em;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    opacity: 0.5;
}

.tx-side dl {
    margin-bottom: 15px;
    background-color: var(--tx-boxbg);
}

.tx-side dt {
    border-bottom: 1px solid var(--tx-border);
    font-size: 1.15em;
    font-weight: bold;
    line-height: 2.4;
}

.tx-side dd>ul {
    padding: 0.8em 0;
    overflow: hidden;
}

.tx-side dd>div {
    padding: 0.8em 0;
    overflow: hidden;
}

.tx-side dl dd>*::after {
    display: table;
    content: " ";
    clear: both;
}

.tx-side dl dd ul li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.4em 0;
}

.tx-side dl#divArchives ul li,
.tx-side dl#divFavorites ul li,
.tx-side dl#divLinkage ul li,
.tx-side dl#divLinkage ul li,
.tx-side dl#divAuthors ul li,
.tx-side dl#divTags li {
    float: left;
    width: 48%;
}

.tx-side dl#divArchives ul li:nth-child(2n),
.tx-side dl#divFavorites ul li:nth-child(2n),
.tx-side dl#divLinkage ul li:nth-child(2n),
.tx-side dl#divLinkage ul li:nth-child(2n),
.tx-side dl#divAuthors ul li:nth-child(2n) {
    float: right;
}

.tx-side dl#divCatalog ul li ul,
.tx-side dl#divNavBar ul li ul {
    padding-left: 1.5em;
}

.tx-side dl#divCatalog ul li ul li,
.tx-side dl#divNavBar ul li ul li {
    padding-bottom: 0;
}

.tx-side dl#divTags li {
    width: auto;
    padding: 0;
}

.tx-side dl#divTags a {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    opacity: 0.7;
    line-height: 2;
    font-size: 0.9em;
    margin: 0.2em 0.8em 0.2em 0;
}

.tx-side dl#divTags a span {
    font-size: 0.8em;
    margin-left: 0.5em;
    opacity: 0.4;
}


.tx-side dl#divCalendar table {
    width: 100%;
    overflow: hidden;
    border-collapse: collapse;
}

.tx-side dl#divCalendar table th,
.tx-side dl#divCalendar table td {
    border: 1px solid var(--tx-border);
    line-height: 2.4;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.tx-side dl#divCalendar table caption {
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.tx-side dl#divCalendar table td a {
    color: var(--tx-color);
    font-weight: bold;
}

.tx-side dl#divSearchPanel dd form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.tx-side dl#divSearchPanel dd>div input[type="text"] {
    width: 100%;
    border: 0;
    padding: 0 1em;
    line-height: 2.4;
    height: 2.4em;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--tx-light);
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.tx-side dl#divSearchPanel dd>div input[type="submit"] {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 2.4em;
    line-height: 2.4;
    padding: 0 1.3em;
    color: #fff;
    border: 0;
    border-radius: 0;
    background-color: var(--tx-color);
}


@media screen and (max-width: 767px) {
    .tx-wide {
        padding-left: 0;
        padding-right: 0;
    }

    .msg img.avatar {
        width: 10vw;
        height: 10vw;
    }

    .msg .msg {
        margin: 1.5vw 0 0 0;
        padding: 2vw;
    }

    .tx-side dl {
        margin-bottom: 2.4vw;
    }

    .header {
        position: relative;
        padding: 2vw;
    }

    .logo * {
        height: 12vw;
    }

    .search-box {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 99;
        background-color: #333;
        padding: 4vw;
        display: none;
    }

    .nav-box {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        display: none;
    }

    .nav {
        flex-direction: column;
    }

    .nav li,
    .nav li a {
        width: 100%;
        height: 2.6em;
    }

    .home-flash .swiper-slide {
        flex-direction: column;
    }

    .home-flash .swiper-slide section {
        width: 100%;
        padding: 5vw 8vw 12vw 5vw;
    }

    .home-flash .swiper-pagination {
        width: 100%;
    }

    .item-list {
        padding-bottom: 3.2vw;
        margin-bottom: 3.2vw;
    }

    .pagebar {
        justify-content: space-between;
    }

    .pagebar>* {
        padding: 0 0.5em;
    }

    .pagebar>span {
        flex: auto;
        justify-content: center;
    }

    .social-share {
        text-align: center;
    }

    .nav {
        overflow-y: auto;
    }

    .nav li {
        position: static;
        height: auto;
    }

    .nav li ul {
        position: static;
        opacity: 1;
        visibility: visible;
    }
}