/*
Theme Name: fmj
Theme URI: https://fmj.me
Author: 天兴工作室
Author URI: https://www.txcstx.com
Description：天兴工作室自用博客主题
Requires at least: WordPress 4.9.6
Version: 2022-04-11
*/

body {
    font-weight: 200;
    background-repeat: no-repeat;
    background-position: center 0;
    background-size: cover;
    background-attachment: fixed;
    text-shadow: rgba(0, 0, 0, .1) 1px 0 0;
}

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

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.img-box[data-ratio="30"] {
    padding-top: 30%;
}

.tx-c1 {
    color: var(--tx-color);
}

.tx-bg {
    background-color: var(--tx-color);
}


/* 分页条 */

.pagebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pagebar small {
    font-size: 0.85em;
    border: 0;
    color: rgba(0, 0, 0, 0.3);
}

.pagebar>* {
    display: inline-flex;
    height: 2.4em;
    align-items: center;
    padding: 0 0.8em;
    background-color: var(--tx-color2);
    margin: 5px 5px 0 0;
    border-radius: 2px;
}

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


/* 评论 */

.commentlist>li {
    border: 1px solid var(--tx-border);
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 15px;
}

.commentlist>li ul {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    margin-top: 15px;
    padding: 15px;
}

.comment-body>img {
    margin-right: 1em;
    border-radius: 4px;
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    -webkit-transition: .8s;
    -webkit-transition: -webkit-transform .8s ease-out;
    transition: transform .8s ease-out;
    -moz-transition: -moz-transform .5s ease-out;
}

.comment-body:hover>img {
    transform: rotateZ(60deg);
    -webkit-transform: rotateZ(60deg);
    -moz-transform: rotateZ(60deg)
}

.comment-body:hover .reply {
    display: inline-block;
    opacity: 0.8;
}

.tx-comment-textarea {
    border: 1px solid var(--tx-border);
    border-radius: 2px;
    position: relative;
}

.tx-comment-textarea textarea {
    border: 0;
    height: 120px;
    width: 100%;
    font-size: 14px;
    font-family: "Microsoft YaHei", Verdana, sans-serif;
    display: block;
    padding: 12px;
    background-color: transparent
}

.tx-comment-textarea input.tx-btn {
    border: 0;
    border-radius: 0 0 2px 0;
    line-height: 40px;
    height: 40px;
    width: 100px;
    color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
}

.reply-frm {
    position: relative;
    margin-top: 15px;
}

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


/* 错误404页面css */

.tx-404 {
    background-color: #fff
}

.tx-404-box {
    text-align: center;
    padding: 50px;
}

.tx-404-box h1 {
    font-size: 22px;
    margin: 50px 0;
}

.tx-404 a.return {
    display: inline-block;
    line-height: 50px;
    height: 50px;
    padding: 0 60px;
    background: #FF3A33;
    border-radius: 5px;
    margin-top: 15px;
    color: #fff;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main {
    max-width: 980px;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.main-left {
    position: fixed;
    top: 30px;
    bottom: 30px;
    width: 250px;
    background: url(../image/header-bg.png) no-repeat center center rgba(0, 0, 0, .5);
    background-size: cover;
    border-radius: 5px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-left a {
    color: #fff;
    opacity: 0.95;
}

.logo-rotate,
.logo-rotate img {
    line-height: 1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .4s ease-out;
    display: inline-flex;
}

.logo-rotate:hover img {
    transform: rotateZ(30deg);
    -webkit-transform: rotateZ(30deg);
    -moz-transform: rotateZ(30deg)
}

.copy p {
    margin: 0.5em 0 0 0;
}

.fmj-btn-grop>* {
    display: inline-flex;
    height: 3em;
    align-items: center;
    justify-content: center;
    padding: 0 1em;
    border-radius: 3px;
    margin: 0 0.3em;
    background-color: rgba(255, 255, 255, 0.1);
}

.fmj-btn-grop>*:hover {
    background-color: var(--tx-color);
    color: #fff;
}

.main-centre {
    margin-left: 275px;
}

.nav-box {
    z-index: 99;
}

.nav-box .nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav li {
    position: relative;
}

.nav li>ul {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: var(--tx-color2);
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease 0s;
}

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

.nav li>ul li a {
    white-space: nowrap;
    display: flex;
    height: 2em;
    align-items: center;
    padding: 0 1em;
    font-size: 0.9em;
}

.nav>li>a {
    display: inline-flex;
    height: 3em;
    padding: 0 1em;
    align-items: center;
    position: relative;
    font-weight: bold;
}

.nav>li>a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--tx-color);
    transition: all .4s
}

.nav li a:hover:after,
.nav li a.on:after {
    width: 2em;
    margin-left: -1em;
}

.search {
    position: absolute;
    top: 104%;
    right: 0;
    width: 400px;
    display: none;
    z-index: 50;
    background-color: var(--tx-color2);
    padding: 3px;
    border-radius: 3px;
}

.tx-box {
    border-radius: 5px;
    background-color: var(--tx-color2);
}

.item-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-img>* {
    width: 32%;
    border-radius: 5px;
    overflow: hidden;
}

.item-box {
    overflow: hidden;
}

.item-more {
    position: absolute;
    bottom: 0;
    right: -7em;
    display: inline-flex;
    height: 2.4em;
    padding: 0 1.2em;
    border-radius: 5px 0 0 0;
    background-color: var(--tx-color);
    color: #fff;
    align-items: center;
    font-size: 0.85em;
}

.item-more:hover {
    opacity: 0.8;
    color: #fff;
}

.item-box:hover .item-more {
    right: 0;
}

.ajaxon.warning {
    cursor: not-allowed;
    pointer-events: none;
}

.fixed-right {
    position: fixed;
    bottom: 30px;
    left: 50%;
    margin-left: 500px;
    display: flex;
    flex-direction: column;
    z-index: 99;
}

.fixed-right a {
    display: inline-flex;
    width: 3em;
    height: 3em;
    align-items: center;
    justify-content: center;
    background-color: var(--tx-color2);
    border-radius: 3px;
    margin-top: 8px;
}

.fixed-right a span {
    display: none;
}

.set-box {
    position: fixed;
    right: -300px;
    top: 0;
    width: 260px;
    height: 100%;
    background-color: var(--tx-color2);
    z-index: 199;
    padding: 20px 15px;
    transition: all .35s ease 0s;
}

.set-box.on {
    right: 0;
}

.set-box>a {
    position: absolute;
    width: 3em;
    height: 3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: -3em;
    top: 0;
    color: #fff;
}

.set-bg-color a {
    display: flex;
    height: 2.4em;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.set-bg-img img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.tx-night,
.tx-night a {
    color: #fff;
}

.tx-night::after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    background-color: rgba(0, 0, 0, .8);
    filter: blur(0);
    z-index: -1;
}

.tx-night .tx-box,
.tx-night .main-left {
    box-shadow: 0 5px 15px rgba(255, 255, 255, .08);
}

@media screen and (max-width:1000px) {
    .main {
        margin: 0;
        padding: 3vw 3vw 4em 3vw;
        margin-bottom: 3vw;
    }
    .main-left {
        position: static;
        width: 100%;
        margin-bottom: 3.2vw;
    }
    .main-centre {
        margin: 0;
    }
    .nav-box {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 98;
        display: none;
        padding: 3vw;
    }
    .nav-box>ul {
        flex-wrap: wrap;
        margin-bottom: 3vw;
    }
    .nav-box>ul>* {
        width: 33.33%;
        flex: none;
    }
    .nav-box>ul>* a {
        background-color: rgba(0, 0, 0, .2);
        display: flex;
        justify-content: center;
        border: 1px solid rgba(0, 0, 0, .05);
    }
    .search {
        position: static;
        display: block;
        width: 100%;
        background-color: rgba(0, 0, 0, .2);
    }
    .fixed-right {
        bottom: 0;
        left: 0;
        margin: 0;
        flex-direction: row;
        background-color: var(--tx-color);
        justify-content: space-between;
        width: 100%;
    }
    .fixed-right>* {
        flex: auto;
        justify-content: center;
        text-align: center;
        border-right: 1px solid rgba(0, 0, 0, .05);
    }
    .fixed-right a {
        background-color: transparent;
        margin: 0;
        color: #fff;
        flex-direction: column;
        height: auto;
        height: 4em;
    }
    .fixed-right a i.fa {
        font-size: 1.6em;
    }
    .fixed-right a span {
        display: block;
        line-height: 1.2;
    }
    .tx-night .nav-box {
        background-color: rgba(255, 255, 255, 0.8);
    }
}