/**
    1. 全局
    2. 搜索
    3. 章节标题
    4. header
    5. grid
    6. footer
    7. post
 */
/** 1. 全局 **/
html{
    overflow-x:hidden
}
body {
    overflow-x: hidden;
    background: #f5f5f5;
    font-weight: 350;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, opensans, Optima,
    "Microsoft Yahei", sans-serif;
    line-height: 1.8;
}

ol, p, ul {
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
}

ul, ol {
    margin: 0 0 16px;
    padding-left: 16px;
}

ol > li {
    margin-bottom: 6px;
    padding-left: 2px;
    line-height: 22px;
}

ul > li {
    margin-bottom: 6px;
    padding-left: 2px;
    line-height: 22px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 14px 0;
    color: #111;
    font-weight: 400;
}


/* 2. 搜索 */
.ws-search{
    display: block;
    width: 100%;
    z-index: 2;
    position: relative;
    box-shadow: 0 34px 20px -24px rgba(0,36,100,0.06);
    background: linear-gradient(to right, #34495e, #4e6b88, #34495e);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.ws-search-title {
    margin-top: 28px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 400;
    font-size: 28px;
    text-align: center;
    padding-top: 30px;
    letter-spacing: 5px;
}
.ws-search-description {
    padding-top: 2px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
}
.ws-search-box {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    margin: 20px 20% 60px;
    z-index: 999;
}
.ws-search-box button{
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Lato,sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    outline: none;
    padding: 12px 20px;
    text-align: center;
    background-color: #34495e;
    width: 100% !important;
}

.ws-search-container{
    padding:60px 16px;
}

.ws-container{
    min-height:calc(100vh - 210px);
    padding:30px 0;
}

/* 章节标题 */
.section-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .2px;
    margin-bottom: 20px;
    position: relative;
    text-align: left;
    padding: 0 6px;
}

.section-title:before {
    background-color: #e6e6e6;
    content: "";
    height: 1px;
    left: 0;
    margin-top: -1px;
    position: absolute;
    top: 50%;
    width: 100%;
}

.section-title span {
    padding: 4px 15px;
    position: relative;
    letter-spacing: 2px;
    font-weight: 600;
    background: #fff;
    border-radius: 4px;
}
/* header  */
.ws-header{
    position:fixed;
    left:0;
    right:0;
    width:100%;
    background-color:#2f363c;
    box-shadow:0 1px 3px rgb(0 0 0 / 5%)
}
.ws-header .nav-bar{
    align-items: center;
    display: flex;
    padding: 0 6px;
}
.ws-header .nav-bar .logo{
    height: 100%;
    display: flex;
    text-align: center;
    max-width: 200px;
    overflow: hidden;
}
.ws-header .nav-bar .sep{
    height: 36px;
    margin: 0 10px;
    width: 1px;
    background-color: #e6e6e6;
    display: flex;
}

.ws-header .nav-bar .logo img{
    height: 56px;
    line-height: 56px;
}

.ws-header .nav-bar .menu{
    display: flex;
}
.ws-header .nav-bar .menu .layui-nav{
    margin: 0;
}
.ws-header .nav-bar .menu .layui-nav .layui-nav-item{
    margin: 0;
}
.ws-header .nav-bar .ws-mobile-title{
    display: none;
}
.ws-header .nav-bar .ws-actions{
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
}
.ws-header .nav-bar .ws-actions button{
    display: flex;
}

.mobile-icon{
    display: none;
}

/* grid */
.post-grid {
    margin: 4px;
    padding: 8px;
    background-color: #FFF;
    border-radius: 4px;
    border: 1px solid #eee;
}
.post-media{
    margin-bottom: 0;
    position: relative;
}
.post-media img{
    object-fit: cover;
    margin: 0 auto;
    width: 100%;
    border-radius: 4px 4px 0 0;
    height: 160px;
}
.post-media .place-holder{
    padding-bottom: 66.7%;
    background-color: #ffffff;
    height: 0;
    overflow: hidden;
}
.post-wrapper {
    padding: 10px 0 20px 0;
    width: 100%;
}

.post-header .post-meta {
    height: 15px;
    align-items: center;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: 0.2px;
    margin-bottom: 5px;
    text-align: center;
}

.post-header .post-meta  .meta-category {
    display: flex;
    flex-wrap: wrap;
}
.post-header .post-meta  .meta-category a {
    align-items: center;
    display: flex;
}
.post-header .post-meta  .meta-category a+a {
    margin-left: 8px;
}

.post-header .post-meta  a {
    color: #aaa;
}
.post-header .post-meta  .meta-category .dot {
    background-color: var(--accent-color);
    border-radius: 50%;
    height: 6px;
    margin-right: 5px;
    width: 6px;
    background-color: #fd721f;
}
.post-header .post-meta  .meta-category  a:nth-child(2) .dot {
    background-color: #4CAF50;
}

.post-header .post-meta  .meta-category  a:nth-child(3) .dot {
    background-color: #2196F3;
}

.post-header .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    color: rgba(0, 0, 0, .8);
    height: 44px;
    line-height: 22px;
    white-space: unset;
    text-overflow: unset;
}
.post-footer {
    display: block;
}

.post-footer .post-meta-box{
    display: flex;
    padding: 5px 15px;
    font-size: 12px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #ebeef5;
    color: #b4b4b4;
    margin: -15px;
    margin-top: 10px;
    list-style: none;
}

.post-footer .post-meta-box li:nth-child(1) {
    flex: 1;
    padding: 0;
}

.post-footer .post-meta-box.meta-date {
    color: #555;
}

.post-footer .post-meta-box .meta-like {
    padding-left: 8px;
}

.post-footer .post-meta-box .meta-comment {
    padding-left: 8px;
}

.post-footer .post-meta-box .meta-views {
    padding-left: 8px;
}


.post-footer .post-meta-box .meta-price {
    margin-left: 8px;
    position: relative;
    display: inline-block;
    padding: 1px 6px;
    text-align: center;
    background-color: #FFB800;
    color: #fff;
    border-radius: 2px;
    line-height: initial;
}

.post-excerpt {
    color: #888;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 5px 0;
    line-height: 22px;
    font-size: 13px;
    height: 44px;
}

/* footer */
.ws-footer{
    padding:30px 15px;
    line-height:30px;
    text-align:center;
    color:#777
}
.ws-footer a{
    padding:0 5px;
    color:#777
}
.ws-footer p{
    font-size: 12px;
}
.ws-footer a:hover{
    color:#1e9fff;
    text-decoration:underline
}


@media screen and (min-width:1300px) {
    .layui-col-lg3{
        width: 20% !important;
    }
}
@media screen and (max-width:1024px){
    .ws-header .nav-bar .menu{
        display: none;
        width: 100%;
        position: absolute;
        z-index: 99;
        top: 61px; /* 如果需要缝隙，可将值调至61px */
        margin-left: -15px;
    }
    .ws-header .nav-bar .ws-mobile-title{
        display: flex;
        overflow: hidden;
        height: 60px;
        line-height: 60px;
        font-size: 16px;
        font-weight: 500;
        margin-left: 10px;
        margin-right: 24px;
    }
    .ws-header .nav-bar .menu li{
        width: 100%;
        text-align: center;
    }

    .layui-nav{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .mobile-icon{
        display: flex;
        font-size: 30px;
        margin-left: 24px;
        margin-right: 16px;
    }
    .layui-nav .layui-this:after,
    .layui-nav-bar,
    .layui-nav-tree .layui-nav-itemed:after {
        height: 1px;
        background-color: #5FB878;
    }

}

/** post */
.post-detail{
    padding: 24px;
}
.post-detail .boxer{
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 30px;
}
.post-detail .boxer .post-detail-title{
    font-size: 1.5em;
    font-weight: 500;
    color: #555;
    padding-bottom: 8px;
}
.post-detail .post-detail-content{
    min-height: 600px;
    line-height: 1.8;
    font-size: 16px;
    word-wrap: break-word;
    word-break: break-word;
    padding: 0 8px 16px 8px
}

.post-detail .post-detail-content blockquote {
    margin: 0 0 16px;
    padding: 16px;
    border-left: 6px solid #dce6f0;
    background: #f2f7fb;
    color: #819198;
    font-size: 15px;
}

.post-detail .post-detail-content .alert {
    position:relative;
    padding:.75rem 1.25rem;
    margin-bottom:1rem;
    border:1px solid transparent;
    border-radius:.25rem
}
.post-detail .post-detail-content .alert-heading {
    color:inherit
}
.post-detail .post-detail-content .alert-link {
    font-weight:700
}
.post-detail .post-detail-content .alert-dismissible {
    padding-right:4rem
}
.post-detail .post-detail-content .alert-dismissible .close {
    position:absolute;
    top:0;
    right:0;
    padding:.75rem 1.25rem;
    color:inherit
}
.post-detail .post-detail-content .alert-primary {
    color:#004085;
    background-color:#cce5ff;
    border-color:#b8daff
}
.post-detail .post-detail-content .alert-primary hr {
    border-top-color:#9fcdff
}
.post-detail .post-detail-content .alert-primary .alert-link {
    color:#002752
}
.post-detail .post-detail-content .alert-secondary {
    color:#383d41;
    background-color:#e2e3e5;
    border-color:#d6d8db
}
.post-detail .post-detail-content .alert-secondary hr {
    border-top-color:#c8cbcf
}
.post-detail .post-detail-content .alert-secondary .alert-link {
    color:#202326
}
.post-detail .post-detail-content .alert-success {
    color:#155724;
    background-color:#d4edda;
    border-color:#c3e6cb
}
.post-detail .post-detail-content .alert-success hr {
    border-top-color:#b1dfbb
}
.post-detail .post-detail-content .alert-success .alert-link {
    color:#0b2e13
}
.post-detail .post-detail-content .alert-info {
    color:#0c5460;
    background-color:#d1ecf1;
    border-color:#bee5eb
}
.post-detail .post-detail-content .alert-info hr {
    border-top-color:#abdde5
}
.post-detail .post-detail-content .alert-info .alert-link {
    color:#062c33
}
.post-detail .post-detail-content .alert-warning {
    color:#856404;
    background-color:#fff3cd;
    border-color:#ffeeba
}
.post-detail .post-detail-content .alert-warning hr {
    border-top-color:#ffe8a1
}
.post-detail .post-detail-content .alert-warning .alert-link {
    color:#533f03
}
.post-detail .post-detail-content .alert-danger {
    color:#721c24;
    background-color:#f8d7da;
    border-color:#f5c6cb
}
.post-detail .post-detail-content .alert-danger hr {
    border-top-color:#f1b0b7
}
.post-detail .post-detail-content .alert-danger .alert-link {
    color:#491217
}


.post-detail .post-detail-content p {
    color: #151515;
    line-height: 30px;
    margin-bottom: 16px;
    margin-top: 0;
}
.post-detail .post-detail-content a {
    color: #0097ee;
    text-decoration: none;
}
.post-detail .post-detail-content p::after {
    clear: both;
    display: block;
    content: '';
}
.post-detail .post-detail-content img{
    max-width: 100%;
    display: block;
}
.post-detail-widget, .post-detail-tag, .post-detail-category{
    font-size: 14px;
}
.post-detail-widget a{
    color: #2440b3;
    text-decoration: underline;
}

.post-detail-category a{
    padding-bottom: 4px;
    border-bottom: 1px dashed #eee;
    display: block;
}

.post-detail .post-detail-content > :first-child {
    margin-top: 0;
}

.post-detail .post-detail-content > :last-child {
    margin-bottom: 0;
}



.post-detail .post-detail-content .header {
    padding: 0 20px 16px;
    text-align: center;
}

.post-detail .post-detail-content .header .title {
    padding: 24px 0 0;
    border: none;
    word-break: break-word;
}

.post-detail .post-detail-content .header .meta {
    color: #5a5a5a;
    font-size: 14px;
    cursor: default;
}

.post-detail .post-detail-content .header .meta a {
    color: inherit;
}

.post-detail .post-detail-content .header .meta > span:not(:last-child):after {
    margin-right: 5px;
    margin-left: 5px;
    color: #71777c;
    content: "\B7";
}


.post-detail .post-detail-content video {
    width: 100%;
}

.post-detail .post-detail-content::after,
.post-detail .post-detail-content p::after {
    clear: both;
    display: block;
    content: "";
}

.post-detail .post-detail-content h2,
.post-detail .post-detail-content h3,
.post-detail .post-detail-content h4,
.post-detail .post-detail-content h5,
.post-detail .post-detail-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.post-detail .post-detail-content .header h1 {
    margin-bottom: 16px;
    font-weight: 500;
}

.post-detail .post-detail-content h2:not(:first-child) {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 28px;
}

.post-detail .post-detail-content h2.title {
    margin: 16px -20px;
    padding: 0 10px;
    border-left: 5px solid #00a2ff;
    background-color: rgba(243, 243, 243, 0.7);
    font-size: 20px;
    line-height: 41px;
}

.post-detail .post-detail-content h3:not(:first-child) {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 18px;
}

.post-detail .post-detail-content h4:not(:first-child) {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
}

.post-detail .post-detail-content h5 {
    font-size: 14px;
}

.post-detail .post-detail-content h6 {
    font-size: 12px;
}

.post-detail .post-detail-content p {
    color: #151515;
    line-height: 30px;
}

.post-detail .post-detail-content ul li{
    margin: 0 24px;
    padding: 4px;
    list-style: disc;
}
.post-detail .post-detail-content ol li{
    margin: 0 24px;
    padding: 4px;
    list-style: decimal;
}

.post-detail .post-detail-content pre ol {
    padding: 0;
}

.post-detail .post-detail-content pre li {
    margin: 0;
    list-style: none;
}

.post-detail .post-detail-content blockquote {
    margin-bottom: 16px;
    padding: 16px;
    border-left: 6px solid #dce6f0;
    background: #f2f7fb;
    color: #819198;
    font-size: 15px;
}

.post-detail .post-detail-content blockquote p {
    margin-bottom: 16px;
}

.post-detail .post-detail-content blockquote p:last-child {
    margin-bottom: -3px;
}

.post-detail .post-detail-content hr {
    margin: 24px 0;
    height: 1px;
    border: none;
    border-top: 1px solid #a5a5a5;
}


.post-detail .post-detail-content .wp-caption-text {
    margin-bottom: 0;
    font-size: 14px;
}

.post-detail .post-detail-content .wp-block-image {
    margin-bottom: 0;
}

.post-detail .post-detail-content .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
}

.post-detail .post-detail-content figure {
    margin: 0;
}

.post-detail .post-detail-content .alignleft::after,
.post-detail .post-detail-content .aligncenter::after,
.post-detail .post-detail-content .alignright::after {
    clear: both;
    display: block;
    content: "";
}

.post-detail .post-detail-content .alignleft {
    float: left;
    margin-right: 16px;
}

.post-detail .post-detail-content p > img,
.post-detail .post-detail-content p a > img {
    display: block;
}

.post-detail .post-detail-content .wp-smiley {
    display: inline;
}

.post-detail .post-detail-content .aligncenter {
    margin-right: auto;
    margin-left: auto;
}

.post-detail .post-detail-content .aligncenter figcaption {
    text-align: center;
}

.post-detail .post-detail-content .alignright {
    float: right;
    margin-left: 16px;
}

.post-detail .post-detail-content img {
    height: auto;
    max-width: 100%;
}

.post-detail .post-detail-content table {
    display: table;
    overflow: auto;
    width: 100%;
    table-layout: fixed;
    word-break: break-word;
}

.post-detail .post-detail-content table th,
.post-detail .post-detail-content table td {
    padding: 8px 16px;
    border: 1px solid #e9ebec;
}

.post-detail .post-detail-content table th {
    font-weight: bold;
}

.post-detail .post-detail-content table tr:nth-child(2n) {
    background-color: #f8f8f8;
}

/** comment **/
.post-comment{
    padding: 16px;
}
.post-comment .layui-textarea{
    resize: none;
}
.post-comment .layui-row{
    margin: 8px 0;
}
.post-comment .captcha-img{
    height: 36px;
}

.post-comment .layui-input-wrap{
    margin: 2px 6px;
}
.post-comment-template{
    padding: 8px;
}

.post-comment-list{
    color: #151515;
    line-height: 30px;
    padding: 12px 24px;
}
.post-comment-list .hr-dash{
    border: none;
    border-bottom: 1px dashed #eee;
}
.post-comment-list .layui-row{
    margin-top: 12px;
}
.post-comment-list .comment-time{
    text-align: right;
}
.post-comment-list p{
    margin-top: 16px;
}
.post-comment-list .round-img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
.post-comment-list .replay {
    padding-left: 36px;
}
.post-comment-list .uname {
    padding-left: 8px;
}
.post-comment-list .do-replay,
.post-comment-list .replay-txt {
    color:#1e9fff;
    margin: 0 8px;
    text-decoration:none;
}
.post-comment-list .do-replay:hover{
    text-decoration:underline;
    cursor: pointer;
}


@media screen and (max-width: 768px) {
    .post-detail .post-detail-content .header {
        padding: 0 16px 12px;
    }

    .post-detail .post-detail-content .header h1 {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .post-detail .post-detail-content h1 {
        font-weight: 500;
        font-size: 22px;
    }

    .post-detail .post-detail-content h2:not(:first-child) {
        font-size: 20px;
    }

    .post-detail .post-detail-content h3:not(:first-child) {
        font-size: 18px;
    }

    .post-detail .post-detail-content .header .meta {
        font-size: 12px;
    }

    .post-detail .post-detail-content p,
    .post-detail .post-detail-content ul > li {
        font-size: 15px;
    }

    .post-detail .post-detail-content table {
        display: block;
        word-break: keep-all;
    }
}
/** tags */
.tags-container{
    margin: 8px 5px;
}
.tags-container .tags-list{
    padding: 16px;
}
.tags-container .tags-list hr{
   margin: 16px 0 0 0;
}
.tags-container .tags-list .tags{
    padding: 16px 0px;
}
.post-tags, .tags-container .tags-list .tags .tag{
    padding: 2px 8px;
    margin: 4px 4px;
    border: 1px solid #d2d2d2;
    border-radius: 16px;
    display: inline-block;
    font-size: 14px;
}
.tags-container .tags-list .layui-icon-note{
     font-size: 12px;
}


