/* =========================================================
   easy42 - Cnblogs OI Style
   SimpleMemory
   蓝紫渐变 + 文章玻璃 + 无卡片侧边栏
   ========================================================= */


/* ==================== 全局 ==================== */

html {
    min-height: 100%;
}

body {
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.20),
            rgba(255, 255, 255, 0.20)
        ),
        url("https://img2024.cnblogs.com/blog/3609802/202608/3609802-20260827164315429-1228473759.png")
        center center / cover no-repeat fixed !important;

    min-height: 100vh;
}

/* ==================== 主体 ==================== */

#home {
    max-width: 1250px;
    background: transparent !important;
}

#main,
#mainContent,
#mainContent .forFlow,
#topics {
    background: transparent !important;
}


/* 首页文章列表也不要白色大底 */

.day,
.entrylistItem {
    background: transparent !important;
}


/* ==================== 阅读文章：玻璃卡片 ==================== */

#topics .post {
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.48) !important;

    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;

    padding: 32px 42px 42px !important;

    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.10),
        0 5px 18px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#cnblogs_post_body,
.postBody,
.postTitle,
.postDesc {
    background: transparent !important;
}


/* ==================== 正文 ==================== */

#cnblogs_post_body,
.cnblogs-markdown {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

#cnblogs_post_body p,
.cnblogs-markdown p {
    margin: 12px 0;
}


/* ==================== 正文标题 ==================== */

#cnblogs_post_body h1,
.cnblogs-markdown h1 {
    margin-top: 32px;
    padding-bottom: 8px;

    font-size: 28px;

    border-bottom: 1px solid rgba(100, 116, 139, 0.28);
}

#cnblogs_post_body h2,
.cnblogs-markdown h2 {
    margin-top: 28px;
    padding-bottom: 6px;

    font-size: 23px;

    border-bottom: 1px solid rgba(100, 116, 139, 0.22);
}

#cnblogs_post_body h3,
.cnblogs-markdown h3 {
    margin-top: 24px;
    font-size: 19px;
}


/* ==================== 链接 ==================== */

#cnblogs_post_body a,
.cnblogs-markdown a {
    color: #2563eb;
    text-decoration: none;
}

#cnblogs_post_body a:hover,
.cnblogs-markdown a:hover {
    color: #4f46e5;
    text-decoration: underline;
}


/* ==================== 行内代码 ==================== */

#cnblogs_post_body :not(pre) > code,
.cnblogs-markdown :not(pre) > code {
    margin: 0 2px;
    padding: 2px 6px;

    font-family: "Cascadia Code",
                 "JetBrains Mono",
                 Consolas,
                 monospace;

    font-size: 0.9em;
    color: #be185d;

    background: rgba(241, 245, 249, 0.78);

    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 5px;
}


/* ==================== 代码块 ==================== */

#cnblogs_post_body pre,
.cnblogs-markdown pre {
    margin: 16px 0;
    padding: 16px 18px;

    overflow-x: auto;

    white-space: pre;
    word-wrap: normal;

    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 10px;
}

#cnblogs_post_body pre code,
.cnblogs-markdown pre code {
    font-family: "Cascadia Code",
                 "JetBrains Mono",
                 Consolas,
                 monospace !important;

    font-size: 14px;
    line-height: 1.55;
}


/* ==================== 引用 ==================== */

#cnblogs_post_body blockquote,
.cnblogs-markdown blockquote {
    margin: 16px 0;
    padding: 10px 16px;

    color: #57606a;

    background: rgba(248, 250, 252, 0.55);

    border-left: 4px solid #6366f1;
    border-radius: 0 7px 7px 0;
}


/* ==================== 表格 ==================== */

#cnblogs_post_body table,
.cnblogs-markdown table {
    max-width: 100%;
    margin: 18px auto;

    border-collapse: collapse;

    background: rgba(255, 255, 255, 0.25);
}

#cnblogs_post_body th,
#cnblogs_post_body td,
.cnblogs-markdown th,
.cnblogs-markdown td {
    padding: 7px 12px;

    border: 1px solid rgba(148, 163, 184, 0.42);
}

#cnblogs_post_body th,
.cnblogs-markdown th {
    font-weight: 600;
    background: rgba(241, 245, 249, 0.65);
}

#cnblogs_post_body tr:nth-child(2n),
.cnblogs-markdown tr:nth-child(2n) {
    background: rgba(248, 250, 252, 0.40);
}


/* ==================== 图片 ==================== */

#cnblogs_post_body img,
.cnblogs-markdown img {
    max-width: 100%;
    height: auto;

    border-radius: 8px;
}


/* ==================== 分割线 ==================== */

#cnblogs_post_body hr,
.cnblogs-markdown hr {
    height: 1px;
    margin: 28px 0;

    border: none;

    background: rgba(100, 116, 139, 0.30);
}


/* ==================== 列表 ==================== */

#cnblogs_post_body ul,
#cnblogs_post_body ol,
.cnblogs-markdown ul,
.cnblogs-markdown ol {
    padding-left: 28px;
}


/* ==================== 数学公式 ==================== */

.MathJax {
    overflow-x: auto;
    overflow-y: hidden;
}


/* =========================================================
   侧边栏
   重点：彻底清除 SimpleMemory 默认白色卡片
   ========================================================= */

#sideBar,
#sideBarMain {
    background: transparent !important;

    border: none !important;
    box-shadow: none !important;
}


/*
   SimpleMemory 默认给下面这些东西 background:#fff
   全部清除
*/

.newsItem,
.catList,
.catListEssay,
.catListLink,
.catListNoteBook,
.catListTag,
.catListPostCategory,
.catListPostArchive,
.catListImageCategory,
.catListArticleArchive,
.catListArticleCategory,
.catListView,
.catListFeedback,
.catListComment,
.catListBlogRank,
.mySearch,

#sidebar_search,
#sidebar_scorerank,
#sidebar_toptags,
#sidebar_recentposts,
#sidebar_postarchive,
#sidebar_articlearchive,
#sidebar_articlecategory,
#sidebar_postcategory,
#sidebar_recentcomments,
#sidebar_topviewedposts,
#sidebar_topcommentedposts,
#sidebar_topdiggedposts,

#blog-news,
#blog-calendar,
#topview_posts_wrap {
    background: transparent !important;

    border: none !important;
    outline: none !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}


/* 再清掉部分模块内部的白色区域 */

#sideBarMain > div,
#sideBarMain > div > div,
#sideBarMain ul,
#sideBarMain ol {
    background-color: transparent !important;

    border-color: transparent !important;

    box-shadow: none !important;
}


/* ==================== 侧边栏模块间距 ==================== */

.newsItem,
.catList,
.catListEssay,
.catListLink,
.catListNoteBook,
.catListTag,
.catListPostCategory,
.catListPostArchive,
.catListImageCategory,
.catListArticleArchive,
.catListArticleCategory,
.catListView,
.catListFeedback,
.catListComment,
.catListBlogRank,
.mySearch {
    margin-bottom: 32px !important;

    padding: 0 !important;
}


/* ==================== 侧边栏标题 ==================== */

#sideBar .catListTitle,
#sideBarMain .catListTitle {
    margin: 0 0 13px 0 !important;
    padding: 2px 0 2px 10px !important;

    width: auto !important;
    height: auto !important;

    text-align: left !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    color: #1f2937 !important;

    background: transparent !important;

    border: none !important;
    border-left: 3px solid rgba(79, 70, 229, 0.72) !important;

    border-radius: 0 !important;

    box-shadow: none !important;
}


/* ==================== 侧边栏文字 ==================== */

#sideBar,
#sideBarMain,
#sideBar p,
#sideBar li {
    color: #64748b;
}

#sideBar ul,
#sideBar ol {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

#sideBar li {
    margin: 7px 0 !important;

    line-height: 1.65;
}


/* ==================== 侧边栏链接 ==================== */

#sideBar a {
    color: #64748b !important;

    text-decoration: none !important;

    transition: color 0.15s ease;
}

#sideBar a:hover {
    color: #4f46e5 !important;

    text-decoration: none !important;
}


/* ==================== 搜索区域 ==================== */

.mySearch,
#sidebar_search,
#sb_widget_my_zzk,
.div_my_zzk {
    background: transparent !important;

    border: none !important;
    box-shadow: none !important;
}


/* 搜索输入框 */

.input_my_zzk {
    box-sizing: border-box;

    height: 38px !important;

    padding: 5px 10px !important;

    color: #374151 !important;

    background: rgba(255, 255, 255, 0.18) !important;

    border: 1px solid rgba(79, 70, 229, 0.26) !important;
    border-radius: 9px !important;

    outline: none !important;

    box-shadow: none !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease;
}

.input_my_zzk:hover,
.input_my_zzk:focus {
    background: rgba(255, 255, 255, 0.28) !important;

    border-color: rgba(79, 70, 229, 0.55) !important;

    box-shadow: none !important;
}


/* 搜索按钮：
   只去白底，不动博客园自己的放大镜图标 */

.btn_my_zzk,
#btnZzk {
    background-color: transparent !important;

    border: none !important;

    box-shadow: none !important;
}


/* ==================== 公告内容 ==================== */

.easy42-sidebar {
    padding: 0 !important;

    color: #57606a;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;
}

.easy42-sidebar h3 {
    margin: 8px 0 10px;

    color: #24292f;

    font-size: 17px;
}

.easy42-sidebar p {
    margin: 7px 0;
}

.easy42-sidebar a {
    color: #2563eb !important;
}

.easy42-sidebar a:hover {
    color: #4f46e5 !important;
}

.easy42-sidebar hr {
    margin: 14px 0;

    border: none;
    border-top: 1px solid rgba(100, 116, 139, 0.25);
}

.easy42-sidebar-text {
    color: #64748b;

    font-style: italic;
}


/* =========================================================
   自定义页首
   ========================================================= */

.easy42-header {
    width: 100%;

    background: rgba(255, 255, 255, 0.52);

    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.62);

    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.05);
}

.easy42-header-inner {
    max-width: 1200px;
    height: 64px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.easy42-logo {
    color: #24292f !important;

    font-size: 21px;
    font-weight: 700;

    text-decoration: none !important;
}

.easy42-nav {
    display: flex;
    align-items: center;

    gap: 24px;
}

.easy42-nav a {
    color: #57606a !important;

    font-size: 15px;

    text-decoration: none !important;

    transition: color 0.15s ease;
}

.easy42-nav a:hover {
    color: #4f46e5 !important;
}


/* =========================================================
   自定义页尾
   ========================================================= */

.easy42-footer {
    margin-top: 50px;
    padding: 28px 20px;

    color: #64748b;

    background: rgba(255, 255, 255, 0.45);

    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);

    border-top: 1px solid rgba(255, 255, 255, 0.60);

    text-align: center;
    font-size: 14px;
}

.easy42-footer-inner {
    max-width: 1200px;

    margin: 0 auto;
}

.easy42-footer-links {
    margin: 8px 0;
}

.easy42-footer-links a {
    margin: 0 6px;

    color: #57606a !important;

    text-decoration: none !important;
}

.easy42-footer-links a:hover {
    color: #4f46e5 !important;
}

.easy42-footer-desc {
    margin-top: 6px;

    color: #94a3b8;

    font-size: 13px;
}


/* ==================== 选择文字 ==================== */

::selection {
    background: rgba(147, 197, 253, 0.70);
}


/* ==================== 滚动条 ==================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.48);

    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.58);
}


/* =========================================================
   手机适配
   ========================================================= */

@media screen and (max-width: 768px) {

    #home {
        width: auto !important;

        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    #topics .post {
        padding: 20px 16px 28px !important;

        border-radius: 15px;
    }

    #cnblogs_post_body,
    .cnblogs-markdown {
        font-size: 15px;
    }

    #cnblogs_post_body h1,
    .cnblogs-markdown h1 {
        font-size: 24px;
    }

    #cnblogs_post_body h2,
    .cnblogs-markdown h2 {
        font-size: 21px;
    }

    #cnblogs_post_body pre,
    .cnblogs-markdown pre {
        padding: 12px;

        border-radius: 7px;
    }

    .easy42-header-inner {
        height: 56px;

        padding: 0 14px;
    }

    .easy42-logo {
        font-size: 18px;
    }

    .easy42-nav {
        gap: 12px;
    }

    .easy42-nav a {
        font-size: 13px;
    }

    .easy42-nav a:nth-child(n+3) {
        display: none;
    }

    .easy42-footer {
        margin-top: 35px;
        padding: 22px 12px;

        font-size: 13px;
    }
}

/* ==================== 日历 ==================== */

#blog-calendar,
#calendar,
.Cal {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 日历整体表格 */
.Cal {
    width: 100% !important;
    color: #64748b !important;
}

/* 年月标题 */
.CalTitle {
    background: transparent !important;
    color: #1f2937 !important;
    font-weight: 700 !important;

    border: none !important;
}

/* 上个月 / 下个月 */
.CalNextPrev {
    background: transparent !important;
}

.CalNextPrev a {
    color: #4f46e5 !important;
    text-decoration: none !important;
}

/* 星期标题 */
.CalDayHeader {
    background: transparent !important;
    color: #475569 !important;

    border: none !important;
    font-weight: 600 !important;
}

/* 普通日期 */
.CalOtherMonthDay,
.CalWeekendDay,
.CalTodayDay,
.CalSelector {
    background: transparent !important;
    border: none !important;
}

/* 其他月份日期 */
.CalOtherMonthDay {
    color: rgba(100, 116, 139, 0.45) !important;
}

/* 普通日期链接 */
.Cal a {
    color: #64748b !important;
    text-decoration: none !important;
}

.Cal a:hover {
    color: #4f46e5 !important;
}

/* 今天 */
.CalTodayDay {
    color: #4338ca !important;
    font-weight: 700 !important;

    background: rgba(255, 255, 255, 0.28) !important;

    border-radius: 6px !important;
}

/* 有文章的日期 */
.CalSelector {
    background: transparent !important;
}

.CalSelector a {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* 日历单元格 */
.Cal td,
.Cal th {
    border: none !important;
    box-shadow: none !important;
}

/* ===== 日历顶部“2026年8月”横条 ===== */

#blog-calendar,
#blog-calendar table,
#blog-calendar tbody,
#blog-calendar tr,
#blog-calendar td,
#blog-calendar th,
.Cal,
.CalTitle,
.CalTitle td,
.CalTitle th {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: none !important;
    box-shadow: none !important;
}

/* 月份标题 */
#blog-calendar .CalTitle,
.CalTitle {
    color: #1f2937 !important;
    font-weight: 700 !important;
    text-align: center !important;

    padding: 6px 0 !important;
}

/* 月份标题里的链接 */
#blog-calendar .CalTitle a,
.CalTitle a {
    color: #374151 !important;
    text-decoration: none !important;
}

/* 上一月、下一月 */
#blog-calendar .CalNextPrev,
.CalNextPrev {
    background: transparent !important;
    background-image: none !important;

    border: none !important;
}

#blog-calendar .CalNextPrev a,
.CalNextPrev a {
    color: #6366f1 !important;
}

/* =========================================================
   灰白主题覆盖
   放在整个 CSS 最末尾
   ========================================================= */

/* ---------- 页面背景 ---------- */
body {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(203, 213, 225, 0.45),
            transparent 38%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(226, 232, 240, 0.55),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #eef1f4 0%,
            #f4f5f7 48%,
            #fafafa 100%
        ) !important;

    background-attachment: fixed !important;
}

/* ---------- 文章玻璃框 ---------- */
#topics .post {
    background: rgba(255, 255, 255, 0.58) !important;

    border: 1px solid rgba(255, 255, 255, 0.78) !important;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.07),
        0 2px 8px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;

    -webkit-backdrop-filter: blur(22px) saturate(120%);
    backdrop-filter: blur(22px) saturate(120%);
}

/* ---------- 页首 ---------- */
.easy42-header {
    background: rgba(255, 255, 255, 0.58) !important;

    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

/* ---------- 页尾 ---------- */
.easy42-footer {
    background: rgba(255, 255, 255, 0.50) !important;

    border-top: 1px solid rgba(148, 163, 184, 0.20) !important;
}

/* ---------- 正文颜色 ---------- */
body,
#cnblogs_post_body,
.cnblogs-markdown {
    color: #30343b !important;
}

/* ---------- 普通链接 ---------- */
#cnblogs_post_body a,
.cnblogs-markdown a,
.easy42-sidebar a {
    color: #52606d !important;
}

#cnblogs_post_body a:hover,
.cnblogs-markdown a:hover,
.easy42-sidebar a:hover {
    color: #1f2937 !important;
}

/* ---------- 页首导航 ---------- */
.easy42-logo {
    color: #252a31 !important;
}

.easy42-nav a {
    color: #606873 !important;
}

.easy42-nav a:hover {
    color: #252a31 !important;
}

/* ---------- 侧边栏 ---------- */
#sideBar,
#sideBarMain,
#sideBar p,
#sideBar li,
#sideBar a {
    color: #68717d !important;
}

#sideBar a:hover {
    color: #252a31 !important;
}

/* 侧边栏标题 */
#sideBar .catListTitle,
#sideBarMain .catListTitle {
    color: #30343b !important;

    border-left:
        3px solid rgba(100, 116, 139, 0.58) !important;
}

/* ---------- 搜索框 ---------- */
.input_my_zzk {
    background: rgba(255, 255, 255, 0.25) !important;

    border:
        1px solid rgba(100, 116, 139, 0.22) !important;

    color: #374151 !important;
}

.input_my_zzk:hover,
.input_my_zzk:focus {
    background: rgba(255, 255, 255, 0.48) !important;

    border-color:
        rgba(71, 85, 105, 0.40) !important;
}

/* ---------- 引用 ---------- */
#cnblogs_post_body blockquote,
.cnblogs-markdown blockquote {
    background: rgba(248, 250, 252, 0.60) !important;

    border-left-color: #94a3b8 !important;
}

/* ---------- 行内代码 ---------- */
#cnblogs_post_body :not(pre) > code,
.cnblogs-markdown :not(pre) > code {
    color: #475569 !important;

    background: rgba(241, 245, 249, 0.82) !important;
}

/* ---------- 表格 ---------- */
#cnblogs_post_body th,
.cnblogs-markdown th {
    background: rgba(241, 245, 249, 0.72) !important;
}

#cnblogs_post_body tr:nth-child(2n),
.cnblogs-markdown tr:nth-child(2n) {
    background: rgba(248, 250, 252, 0.45) !important;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.42) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.60) !important;
}

/* ---------- 选中文字 ---------- */
::selection {
    background: rgba(203, 213, 225, 0.85) !important;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.72),
            rgba(255, 255, 255, 0.72)
        ),
        url("https://img2024.cnblogs.com/blog/3609802/202608/3609802-20260827164315429-1228473759.png")
        center center / cover no-repeat fixed !important;
}
#home,
#main,
#mainContent,
#mainContent .forFlow,
#topics,
#sideBar,
#sideBarMain {
    background-color: transparent !important;
}

body {
    background:
        linear-gradient(
            rgba(255,255,255,0.72),
            rgba(255,255,255,0.72)
        ),
        url("https://img2024.cnblogs.com/blog/3609802/202608/3609802-20260827164315429-1228473759.png")
        center center / cover no-repeat fixed !important;
}

/* 主体保持透明，让背景能透出来 */
#home,
#main,
#mainContent,
#mainContent .forFlow,
#sideBar,
#sideBarMain {
    background: transparent !important;
}

/* 首页每篇文章稍微加一层浅白 */
.day {
    background: rgba(255,255,255,0.36) !important;
    border-radius: 14px;
    padding: 15px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}