/* @font-face
{

font-family: HarmonyOSHans;

src: url('https://yollx.gitee.io/neatsnake/HarmonyOSHans-Regular.6766cbf8d1f8ae0eb073.woff2');
} */

* {
    color:#fff;
    /* font-family: ResourceHanRoundedCN-Medium; */
    line-height: 30px !important;
}


body {
    margin:0;
    padding:0;
    background-color: rgb(40, 44, 52);
}

a {
    text-decoration: none;
    color: #ba7612;
}

li {
    margin: 10px 0;
}

li::marker {
        unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: start !important;
    color: #ba7612;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3f4153;
    border-radius: 4px;
}

#cnblogs_post_body ol {
    padding-left: 28px;
}

#defaultCanvas0 {
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    /* animation:ease-in-out forwards 1s snake */
}

@keyframes hiddenloading {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
/* Typora样式 */
.tippy-box {
    background: #262938 !important;
}

.cnblogs-toc-item:hover .cnblogs-toc-content,.cnblogs-toc-publish-date {
    color: #ba7612 !important;
}

/* ::-webkit-scrollbar-track {
    background: #464755;
} */

/* 加载中 */
.light-loading {
    background-color: rgb(40, 44, 52);;
}

.dark-loading, .light-loading {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.dark-loading .box h2, .light-loading .box h2 {
    color: #777;
    margin: 0;
    font: 0.8em verdana;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-align: center;
}

.dark-loading .box span, .light-loading .box span {
    display: inline-block;
    vertical-align: middle;
    width: 0.6em;
    height: 0.6em;
    margin: 0.19em;
    background: #007db6;
    border-radius: 0.6em;
    -webkit-animation: loading 1s infinite alternate;
    animation: loading 1s infinite alternate;
}


.dark-loading .box span:nth-of-type(2), .light-loading .box span:nth-of-type(2) {
    background: #008fb2;
    -webkit-animation-delay: .2s;
    animation-delay: .2s;
}

.dark-loading .box span:nth-of-type(3), .light-loading .box span:nth-of-type(3) {
    background: #009b9e;
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
}

.dark-loading .box span:nth-of-type(4), .light-loading .box span:nth-of-type(4) {
    background: #00a77d;
    -webkit-animation-delay: .6s;
    animation-delay: .6s;
}

.dark-loading .box span:nth-of-type(5), .light-loading .box span:nth-of-type(5) {
    background: #00b247;
    -webkit-animation-delay: .8s;
    animation-delay: .8s;
}

.dark-loading .box span:nth-of-type(6), .light-loading .box span:nth-of-type(6) {
    background: #5ab027;
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}

.dark-loading .box span:nth-of-type(7), .light-loading .box span:nth-of-type(7) {
    background: #a0b61e;
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
}


@keyframes loading {
    0% {
    opacity: 0;
    }
    100% {
    opacity: 1;
    }
}

#home {
    height: 100vh;
    display:flex;
    flex-direction:column;
    position: relative;
    overflow: hidden;
}

@keyframes welcome {
    from {
        transform: rotateY(90deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

#main {
    padding:0 !important;
    position:relative;
    overflow: auto;
    background-color:rgba(36, 39, 59,0.6);
    /* backdrop-filter:blur(2px); */
    flex: 1;
}

#mainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 115px 5% 30px;
}

.forFlow {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;

    /* width: 100%;
    display: flex;
    flex-direction: column;
    grid-gap: 20px; */

}

.day {
    background-color: rgba(21, 23, 40,0.6);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding:20px;
    height: 320px;
    animation:ease-in-out forwards 0.5s welcome
}

.postCon {
    flex:1;
}

.postTitle {
    margin-bottom: 10px;
}

.postTitle a {
    font-size: 18px;
}

.c_b_p_desc {
    color:#5c5e6e;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.postDesc {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.postDesc a {
    color: #fff;
    background-color: #ba7612;
    padding: 4px 0px;
    border-radius: 4px;
    margin: 0 4px;
    flex: 1;
    text-align: center;
}

.postDesc,.postTitle a {
    color: #fff;
}

.topicListFooter {
    width: 100%;
    display: flex;
    justify-content: center;
    margin:20px 0 10px;
    background-color: rgba(21, 23, 40,0.6);
    border-radius: 4px;
    padding: 10px 0;
}

#homepage_top_pager a {
    color: #fff;
    padding: 8px 12px;
    background-color: rgba(55,58,84,0.6);
    border-radius: 4px;
    border: 0;
}

#nav_next_page {
    display: flex;
    flex:1;
    justify-content: center;
}

#nav_next_page a {
    flex: 1;
    color: #fff;
    text-align: center;
}

#top_nav {
    display: none;
}

#header {
user-select: none;
background-color: rgba(21, 23, 40,0.6);
backdrop-filter: blur(2px);
position: fixed;
top: 0;
left: 0;
z-index: 99;
/* padding: 0 30px 0 30px; */
/* width: 140px; */
width: 100%;
overflow: auto;
display: flex;
align-items: center;
border-bottom: 3px rgb(186, 118, 18) inset;
}

#blogTitle {
    display: flex;
    align-items: center;
    flex: 1;
}

#blogTitle h1 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 30px 5%;
}

#blogTitle h2 {
    display: none;
}

#lnkBlogLogo {
    display: none;
}

#Header1_HeaderTitle {
     color:#fff;
     font-size: 18px;
}

#navigator {
    display: none;
}

#navList {
    padding: 0;
}

#navList li {
    margin-bottom: 20px;
    display: flex;
}

#navList li a {
    color:#666;
    flex:1;
}

.blogStats,.dayTitle {
    display: none;
}

#footer{
    user-select: none;
    position: sticky;
    bottom: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(36, 39, 59,0.6);
    backdrop-filter:blur(2px);
    color: #5c5e6e;
    font-size: 14px;
    padding: 10px 0;
}

#footer span {
    color: #5c5e6e;
}

#sideBar {
    user-select: none;
    /* width: 180px; */
    padding: 30px;
    overflow: auto;
    background-color: rgba(21, 23, 40,0.6);
    backdrop-filter:blur(2px);
    color: #fff;
    display: none;
}

.catListTitle {
    margin-top: 0;
}

#sideBar a {
    color: #fff;
    font-size: 12px;
}

.catListTag ul,#TopViewPostsBlock ul {
    padding: 0;
}

.catListTag ul li,#TopViewPostsBlock ul li {
    margin-bottom: 10px;
}

#sidebar_news,#blog-calendar,#sidebar_search,#sidebar_shortcut,#sidebar_postarchive {
    display: none !important;
}

#btn_comment_submit {
    color:#ba7612
}

/* 代码块 */
.cnblogs-markdown :not(pre,div,td)>code, .blogpost-body :not(pre,div,td)>code {
    line-height: 16px !important;
    font-size: 14px;
}


.hljs {
    background-color: rgba(21, 23, 40,0.6);
    border-radius: 4px;
}

.hljs-ln tbody {
    font-size: 16px;
}

.hljs-name {
    color:rgb(249, 38, 114) !important;
}

.hljs-attr {
    color:rgb(198, 149, 165) !important;
}

.hljs-string {
    color:rgb(153, 199, 148) !important;
}

#cnblogs_post_body>pre, #cnblogs_post_body p {
    margin-left: 0;
    margin-right: 0;
}

/* #cnblogs_post_body>pre {
    max-width: 60vw;
} */

.cnb-code-toolbar * {
    color:#ba7612
}

#comment_form {
    margin: 0;
    padding: 0;
}

#comment_form_container {
display: flex;
flex-direction: column;
}

/* 预览图片 */
.medium-zoom-overlay {
backdrop-filter: blur(2px);
}

/* 文章 */
#post_detail {
    /* width: calc(100vw - 600px); */
    width: auto;
}

/* 评论 */
#commentform_title {
    padding: 0;
    background: none;
}

.commentbox_main,#tbCommentBody {
    border:0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: rgba(21, 23, 40,0.6);
}

#tbCommentBody {
    background-color:transparent;
}

.commentbox_main {
    width: 100%;
    margin-bottom: 0;
}

#blog-comments-placeholder {
    background-color: #151728;
    border-radius: 4px;
    padding:20px
}

#commentbox_opt {
    background-color: rgba(21, 23, 40,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 14px 8px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#commentbox_opt p {
    margin: 0;
    font-size: 14px;
    color:#5c5e6e
}

.active {
    color:#fff !important;
}

#commentbox_opt > a {
    display: none;
}

/* 右侧标签 */
.catListTag ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.catListTag ul li {
    display: flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 10px;
    height: 50px;
    text-shadow: 0px 0px 4px black;
    font-weight: bold;
}

.catListTag ul li:nth-child(4n+1) {
    background-color: rgb(75, 139, 244);
}

.catListTag ul li:nth-child(4n+2) {
    background-color: rgb(171,75,244);
    
}

.catListTag ul li:nth-child(4n+3) {
    background-color: rgb(25, 161, 95);
}

.catListTag ul li:nth-child(4n+4) {
    background-color: rgb(255, 205, 67);
}

.catListTag ul li:nth-last-child(1)
{
     background-color: rgb(221, 79, 67);
}

/* 去广告 */
#cnblogs_ch,#cnblogs_c1,#cnblogs_c2,#under_post_card1,#under_post_card2 {
    display: none;
}



/*中屏幕*/
@media screen and (max-width: 1024px) {
    #home {
        flex-direction: column;
    }

#main {
    padding:0 !important
}

    #header {
    /* padding: 30px;
    width: calc(100% - 60px);
    overflow: auto;
    display: none; */
    }

    #blogTitle h1 {
    margin:0;
    }

    #navigator {
        display: none;
    }

    #cnblogs_post_body table {
        overflow-x: auto !important;
        max-height: none !important;
    }

    .forFlow {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* display: grid;
    grid-template-columns: repeat(1, 1fr); */
    grid-gap: 20px;
    }

    #sideBar {
        display: none;
    }

    

    .postDesc a:nth-last-child(2),.postDesc span {
        display: none;
    }



    /* 文章 */
#post_detail {
    width: auto;
}
}

