@import url("https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@v2.1.4/dist/simpleMemory.css");

/* ===== 自定义字体 ===== */
@font-face {
    font-family: "YunFengJingJing";
    src: url("https://github.com/sdchiyan123/ttf-or-ttc/raw/refs/heads/main/%E4%BA%91%E5%B3%B0%E6%99%B6%E6%99%B6%E4%BD%93.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "YunFengJingJing", "Microsoft Yahei", sans-serif;
}
.postTitle a:link {
    font-family: "YunFengJingJing", "Open Sans", sans-serif;
}
#sideBar a {
    font-family: "YunFengJingJing", "Long Cang", sans-serif;
}
.page-title,
#cnblogs_post_body h1 {
    font-family: "YunFengJingJing", "Long Cang", cursive;
}
.entrylistItemPostDesc,
.sb-title {
    font-family: "YunFengJingJing", "Long Cang", sans-serif;
}
.c_b_p_desc {
    font-family: "YunFengJingJing", "Apple Chancery", serif;
}
.page-description {
    font-size: 3rem;
    font-family: "YunFengJingJing", "Long Cang", cursive;
}

/* ===== 横幅背景 ===== */
#main-header {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ===== 正文布局 ===== */
#home {
    box-sizing: border-box !important;
    width: 90% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 32px 30px !important;
}

#main,
#mainContent,
#mainContent .forFlow {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#topics {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#mainContent .forFlow,
#topics,
#cnblogs_post_body {
    text-align: left !important;
}

@media screen and (max-width: 767px) {
    #home {
        width: 100% !important;
        padding: 0 16px 24px !important;
    }
}

/* ===== 黑幕效果 ===== */
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
    background-color: #252525;
    color: #252525;
    text-shadow: none;
}
.heimu:hover,
.heimu:active,
.heimu:hover .heimu,
.heimu:active .heimu {
    color: white !important;
}
.heimu:hover a,
a:hover .heimu,
.heimu:active a,
a:active .heimu {
    color: lightblue !important;
}

/* ===== 推荐按钮 ===== */
#div_digg {
    position: fixed;
    bottom: 10px;
    right: 50px;
    width: 60px;
    padding: 4px;
    background-color: #fff;
    border: 2px solid #800080;
    border-radius: 4px;
    box-shadow: 0 0 6px #0000FF;
}
.buryit {
    opacity: 0;
    display: none;
}
.diggit {
    margin-left: 30%;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
::-webkit-scrollbar-thumb {
    background-color: #999;
    background-clip: padding-box;
    min-height: 100px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* ===== 隐藏多余元素 ===== */
#comment_nav,
#header,
#leftcontentcontainer,
#profile_block,
#top_nav,
.catListTitle {
    display: none !important;
}
#ad_c1,
#ad_c2,
#ad_t1,
#ad_t2,
#cnblogs_c1,
#cnblogs_c2,
#cnblogs_ch,
.ad_text_commentbox,
.c_ad_block,
.under-post-card {
    display: none !important;
}

/* ===== 隐藏鼠标（取消注释即可启用） ===== */
/* html { cursor: none; } */

/* ===== 文章折叠框 ===== */
#cnblogs_post_body details {
    margin: 18px 0;
    padding: 0 18px;
    border: 1px solid rgba(119, 182, 255, .45);
    border-radius: 12px;
    background: rgba(119, 182, 255, .08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

#cnblogs_post_body details > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    color: #5c8ec6;
    font-weight: bold;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}

/* 隐藏默认箭头 */
#cnblogs_post_body details > summary::-webkit-details-marker {
    display: none;
}

#cnblogs_post_body details > summary::marker {
    content: "";
}

/* 自定义箭头 */
#cnblogs_post_body details > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s;
}

#cnblogs_post_body details[open] > summary::before {
    transform: rotate(45deg);
}

#cnblogs_post_body details > summary:hover {
    color: #3485df;
}

/* 展开后的标题分隔线 */
#cnblogs_post_body details[open] {
    padding-bottom: 14px;
}

#cnblogs_post_body details[open] > summary {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(119, 182, 255, .25);
}

/* 键盘操作时的焦点提示 */
#cnblogs_post_body details > summary:focus-visible {
    outline: 2px solid #77b6ff;
    outline-offset: 3px;
    border-radius: 4px;
}