* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #eee;
}

:root {
    --color-primary: #007bff;
    --bg-img: url(https://images.cnblogs.com/cnblogs_com/blogs/831784/galleries/2434226/o_251101090830_%E5%87%89.jpg);
}

@media( max-width: 760px ){
    .blogStats,
    #sideBar {
        display: none;
    }

    #mainContent {
        width: 100% !important;
    }

    #post_next_prev>a{
        margin-left: 3% !important;
    }
    .cardbox {
        width: 100% !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
    }
    .cards{
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .column_middle{
        width: 100% !important;
    }
    .card {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .endfoot{
        flex-direction: column;
    }
    .endfoot div{
        margin-bottom: 20px;
    }
    .forFlow {
        margin-left: 0 !important;
    }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    opacity: 1.0;
    transition: all .5s;
}

a:hover {
    opacity: .6;
}

#cnblogs_post_body a{
    text-decoration: underline;
    padding: 0 3px;
}

code,
img,
.mermaid {
    border-radius: 5px;
}

table thead tr th{
    background: #4c4c4c !important;
}

.mermaid{
    background-color: #4c4c4c;
}

.mermaid p{
    color: #333 !important;
    font-weight: bold;
}

.box {
    height: 35vh;
    overflow: auto;
    transition: height 0.5s;
}

.box::-webkit-scrollbar {
    display: none;
}

.hidden {
    height: 0;
}

body {
    background-color: #111;
    background-image: var(--bg-img);
    background-repeat: no-repeat;
    /* background-position: center; */
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    /* Safari */
    transform-style: preserve-3d;
}

/* code .code-fullscreen-overlay{
    display: fixed;
    top: 0 !important;
    margin: 0 !important;
} */

#top_nav,
#cnblogs_ch,
#opt_under_post,
#under_post_card1,
#under_post_card2,
#HistoryToday,
#vip_tip,
#commentform_title,
#tip_comment,
#tip_comment2,
#tip_comment2+p,
#lnkBlogLogo,
#sidebar_search,
#sidebar_shortcut,
#profile_block,
.clear,
#comment_pager_top+br,
#green_channel,
#footer,
.diggword {
    display: none;
}

#home {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: rgba(17, 17, 17, 0.67);
}

#header {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    user-select: none;
}

#blogTitle {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    background-color: rgba(17, 17, 17, 0.4);
    box-shadow: 0 0 8px rgba(17, 17, 17, 0.67);
}

#blogTitle h1,
#blogTitle h2 {
    margin-left: 30px;
}

#navigator {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: rgba(17, 17, 17, 0.87);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
}

#navList {
    min-width: 300px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#navList li {
    flex-grow: 0;
    padding-left: 20px;
    font-size: 18px;
    font-weight: lighter;
}

.blogStats {
    margin-right: 20px;
    font-weight: lighter;
}

#main {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
}

#mainContent {
    width: 60%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

#sideBar {
    width: 20%;
    /* margin-top: 40px; */
    position: sticky;
    top: 0;
    z-index: 0;
    border-right: 1px solid #eeeeee30;
}

.newsItem,
.sidebar-block {
    margin: 20px;
    padding: 15px;
    color: #333;
    /* 明确色彩，增加可读性 */
    overflow: hidden;
    word-break: break-word;
    background: rgba(238, 238, 238, 0.18);
    border-radius: 15px;
    box-shadow: 2px 2px 8px rgba(17, 17, 17, 0.4);
    transition: all .5s;
}

.newsItem:hover,
.sidebar-block:hover{
    background-color: rgba(238, 238, 238, 0.22);
}

#profile_block,
.newsItem ul,
.sidebar-block ul {
    margin-top: 10px;
    margin-left: 5px;
    line-height: 1.8;
    text-align: left;
}

#leftcontentcontainer {
    max-height: 30vh;
    overflow-y: scroll;

    /* 内阴影效果 - 表示可以滚动 */
        box-shadow: inset 0 -10px 10px -10px rgba(17, 17, 17, 0.4),
                    inset 0 10px 10px -10px rgba(17, 17, 17, 0.4);
}


#leftcontentcontainer::-webkit-scrollbar {
    display: none;
}

.catListTitle {
    user-select: none;
    cursor: pointer;
}

#myposts {
    margin-left: 0;
}

.forFlow {
    width: 100%;
    margin-left: 20px;
}

.day,
#myposts .PostList,
.entrylistItem {
    margin: 20px;
    padding: 15px;
    overflow: hidden;
    word-break: break-word;
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    box-shadow: 2px 2px 8px rgba(17, 17, 17, 0.4);
    transition: all .5s;
}

.day:hover,
#myposts .PostList:hover,
.entrylistItem:hover{
    background-color: rgba(238, 238, 238, 0.22);
}

.dayTitle {
    margin-bottom: 5px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.8;
    text-decoration: underline;
}

.entrylistItemTitle,
.postTitl2,
.postTitle {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
}

.feedback_area_title {
    font-weight: bold;
    font-size: 18px;
}

.post .postTitle {
    display: block;
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.6;
}

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

.c_b_p_desc {
    width: 100%;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
}

.c_b_p_desc img {
    margin-left: 2em;
}

.c_b_p_desc a {
    padding-left: 20px;
}

.entrylistItemPostDesc,
.postDesc,
.postDesc2 {
    font-size: 12px;
    font-weight: lighter;
    margin: 20px 5px 5px;
    text-align: right;
}

.postTitle {
    border-top: 1px dotted #eeeeee30;
}

.postBody {
    margin: 10px;
    padding: 20px;
    overflow: hidden;
    word-break: break-word;
    background: #333;
    border-radius: 15px;
    box-shadow: 2px 2px 8px rgba(17, 17, 17, 0.4);
    opacity: 0.8;
    transition: all .5s;
}

.postBody:hover{
    opacity: 0.9;
}

#blog-comments-placeholder,
.commentform {
    margin: 20px 10px;
    padding: 15px;
    overflow: hidden;
    word-break: break-word;
    background: rgba(238, 238, 238, 0.18);
    border-radius: 15px;
    box-shadow: 1px 1px 5px rgba(17, 17, 17, 0.4);
    transition: all .5s;
}

#blog-comments-placeholder:hover,
.commentform:hover {
    background: rgba(238, 238, 238, 0.22)
}

#comment_sort {
    display: flex;
    align-items: center;
}

blockquote{
    border-left: 2px solid #e5e5e560 !important;
}

blockquote p{
    font-weight: lighter;
    font-size: small;
}

.feedbackItem {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 10px 0 0;
    padding: 15px;
    overflow: hidden;
    word-break: break-word;
    background: rgba(238, 238, 238, 0.18);
    border-radius: 10px;
    border: solid thin rgba(238, 238, 238, 0.22);
    transition: all .5s;
}

.feedbackItem:hover {
    background: rgba(238, 238, 238, 0.22)
}

.feedbackListSubtitle {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    font-weight: lighter;
    margin: 5px 0;
    text-align: left;
}

.layer,
.feedbackManage,
.comment_date,
.feedbackManage span+a {
    margin: 0 5px;
}

.feedbackCon {
    width: 100%;
    padding-left: 15px;
}

.comment_vote {
    text-align: right;
    font-size: 12px;
    font-weight: lighter;
    margin: 5px 0;
}

#comment_nav {
    text-align: right;
    font-size: 12px;
    font-weight: lighter;
    margin: 5px 0 15px;
}

.commentbox_main.comment_textarea {
    width: 100%;
    border-radius: 10px;
    border: solid thin rgba(238, 238, 238, 0.22);
    background-color: rgba(238, 238, 238, 0.18);
    transition: all .5s;
}

.commentbox_main.comment_textarea:hover {
    background-color: rgba(238, 238, 238, 0.22);
}

.commentbox_title {
    transition: all .5s;
}

#tbCommentBody {
    min-height: 50px;
    color: #333;
    font-size: 16px;
    background-color: transparent;
    /* 明确指定透明 */
}

.inline_middle {
    color: #333;
    font-size: 12px;
    font-weight: normal;
}

#commentbox_opt {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

#commentbox_opt input,
#commentbox_opt a {
    margin: 0 10px;
    display: block;
}

.comment_btn {
    background-color: #333333;
    border-radius: 5px;
    border: 0;
    opacity: .8;
    transition: all .5s;
}

.comment_btn:hover {
    opacity: .6;
}

.bq_post_comment {
    border-radius: 10px;
}

#blog_post_info_block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#blog_post_info{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#BlogCollection{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

#author_profile{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

#author_profile_info{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#author_profile_info img{
    margin: 0;
    padding: 0;
    border-radius: 10px;
}

#author_profile_info a{
    margin: 10px;
}

#div_digg{
    min-width: 120px;
    min-height: 40px;
    background-color: rgba(238, 238, 238, 0.18);
    border-radius: 10px;
    display: flex;
    margin: 0 10px;
    justify-content: space-evenly;
    align-items: center;
}

.diggit,
.buryit{
    margin: 0;
    padding: 0;
    height: 30px;
    border-radius: 6px;
    background-image: url(#);
    background-color: rgba(238, 238, 238, 0.1);
    border: solid thin rgba(238, 238, 238, 0.22);

    display: flex;
    justify-content: center;
    align-items: center;

    transition: all .5s;
}

.diggit:hover,
.buryit:hover{
    background-color: rgba(238, 238, 238, 0.22);
}

.buryit{
    width: 50px;
}

.buryit:hover span::after{
    content: " Dns";
}

.diggit{
    width: 50px;
}

.diggit:hover span::after{
    content: " Ups";
}

.diggnum,
.burynum{
    color: #eee;
    font-size: 14px;
    font-weight: normal;
}

#post_next_prev{
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    border: solid thin rgba(238, 238, 238, 0.22);
    background-color: rgba(238, 238, 238, 0.22);
    border-radius: 10px;
}

#post_next_prev>a{
    margin-left: 8%;
}

.cnblogs-toc-content,
.cnblogs-toc-item,
.cnblogs-toc-title>div{
    color: #333;
}

#GalleryThumbNailViewer1_ThumbNails {
    width: 100%;
}

#GalleryThumbNailViewer1_ThumbNails tbody tr td {
    display: block;
    margin: 20px;
    width: 100%;
}

#GalleryThumbNailViewer1_ThumbNails tbody tr td .divPhoto a img {
    width: 100%;
    object-fit: cover;
}

/*此后为页尾css*/

.testplace {
    /* padding: 20px; */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.back-to-top {
    height: 40px;
    width: auto;
    margin: 20px;
    padding: 0 15px;
    justify-self: center;
    background-color: var(--color-primary);
    border: none;
    border-radius: 15px;
    box-shadow: 2px 2px 8px rgba(17, 17, 17, 0.4);
    font-size: 14px;
    cursor: pointer;
    display: block;
}

#body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    background-color: rgba(17, 17, 17, 0.67);
}

.row {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

.column_middle {
    width: 90%;
    height: auto;
    padding: 30px 4%;
}

.maintext {
    margin-bottom: 80px;
}

.cardbox {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 60px;
}

.cards {
    width: 25%;
    height: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.card {
    width: 90%;
    border-radius: 15px;
    border: none;
    background-color: rgba(17, 17, 17, 0.4);
    box-shadow: 2px 2px 8px rgba(17, 17, 17, 0.4);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all .5s;
}

.card:hover {
    background-color: rgba(17, 17, 17, 0.67);
    box-shadow: 4px 4px 10px rgba(17, 17, 17, 0.67);
}

.cardimg {
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: center;
}

.cardimg img {
    object-fit: cover;
    max-height: 100%;
    min-width: 100%;
}

.card h4 {
    text-align: center;
    margin: 4% 0;
    color: rgba(238, 238, 238, 0.67);
}

.card p {
    margin: 0;
    padding: 0 15%;
    color: rgba(238, 238, 238, 0.22);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 22px;
    text-indent: 0;
}

.endfoot{
    width: 100%;
    height: 350px;
    padding: 40px 10%;
    margin-top: 50px;
    display: flex;
    align-items: start;
    justify-content: space-evenly;
}

.frilinks {
    padding-left: 15px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 200px;
    height: auto;
}

.contactus {
    padding-left: 15px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 200px;
    height: auto;
}


.footertext {
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: auto;
    height: auto;
}

.endfoot h4 {
    color: #e5e5e560;
    font-weight: 500;
}

.endfoot p,
.endfoot a {
    display: flex;
    flex-direction: row;
    justify-content: start;
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-indent: 0px;
    color: #ffffff1f;
    font-weight: 300;
    margin: 10px 0 0 5px;
    text-decoration: none;
    transition: all .5s;
}

.endfoot a:hover {
    color: #FFFFFF6F;
}

.pager {
    box-sizing: border-box;
    display: flex;
    justify-content: end;
    align-items: center;
    text-decoration: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    font-weight: lighter;
    letter-spacing: 0.8em;
}

.pager a {
    text-decoration: none;
    border: none;
    color: #eee;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

#MySignature #post-signature {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 25px 0;
    padding: 10px 24px 10px 15px;
    background: #1E1E1E;
    border-left: 5px solid var(--color-primary);
    border-radius: 5px;

    font-weight: lighter;
    font-size: small;
    line-height: 2.5em;
}

#MySignature #post-signature::before {
    content: "!";
    background: var(--color-primary);
    position: absolute;
    top: 16px;
    left: -12px;
    color: #eee;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-weight: 800;
    font-size: 12px;
}