/* ==========================================================
   Aurora Glass v2
   Base.css (Part 1/3)
   Author: ChatGPT
   For: cnblogs.com/cwxcplh
========================================================== */

/* ========= 字体 ========= */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap");

:root{

    --primary:#4f8cff;
    --primary-hover:#3b82f6;

    --text:#1f2937;
    --text-light:#6b7280;

    --glass:rgba(255,255,255,.82);
    --glass-strong:rgba(255,255,255,.9);

    --border:rgba(255,255,255,.45);

    --radius:18px;

    --shadow:
        0 8px 28px rgba(0,0,0,.08);

}

/* ========= Reset ========= */

*{
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    color:var(--text);

    font-size:16px;

    font-family:
        "HarmonyOS Sans SC",
        "Microsoft YaHei",
        sans-serif;

    background:
        linear-gradient(
            rgba(248,250,252,.55),
            rgba(248,250,252,.55)
        ),
        url("https://files.cnblogs.com/files/blogs/875189/5%EF%BC%882%EF%BC%89.gif?t=1784990146&download=true");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    background-attachment:fixed;

}

/* ========= 滚动条 ========= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    border-radius:999px;

    background:
        linear-gradient(
            var(--primary),
            #6f7dff
        );

}

::-webkit-scrollbar-track{

    background:rgba(255,255,255,.35);

}

/* ========= 文字选中 ========= */

::selection{

    background:var(--primary);

    color:white;

}

/* ========= 页面 ========= */

#home{

    width:min(1450px,92%);

    margin:40px auto;

}

/* ========= Header ========= */

#header{

    margin-bottom:30px;

}

#blogTitle{

    padding:8px 0 18px;

}

/* 去掉默认 logo */

#lnkBlogLogo{

    display:none;

}

#Header1_HeaderTitle{

    color:#111 !important;

    font-size:42px;

    font-weight:800;

    letter-spacing:2px;

    text-decoration:none;

}

#Header1_HeaderTitle:hover{

    color:var(--primary) !important;

}

#blogTitle h1{

    margin:0;

}

#blogTitle h2{

    margin-top:8px;

    color:#666;

    font-weight:400;

}

/* ========= 导航 ========= */

#navigator{

    background:var(--glass);

    border-radius:var(--radius);

    border:1px solid var(--border);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    box-shadow:var(--shadow);

    padding:8px 20px;

    margin-top:18px;

}

#navigator a{

    color:#333;

    font-weight:600;

    text-decoration:none;

}

#navigator a:hover{

    color:var(--primary);

}

/* ========= 主体布局 ========= */

#main{

    width:72%;

}

#sideBar{

    width:25%;

}

/* ========= 博文卡片 ========= */

.day{

    background:var(--glass);

    border-radius:22px;

    border:1px solid var(--border);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    box-shadow:var(--shadow);

    padding:34px;

    margin-bottom:34px;

    transition:.25s;

}

.day:hover{

    transform:translateY(-3px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);

}

/* ========= Footer ========= */

#footer{

    text-align:center;

    color:#777;

    margin:50px 0;

}
/* =========================
   去掉博客标题外层卡片
   ========================= */

#header,
#blogTitle{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 标题位置 */
#blogTitle{
    padding: 28px 0 16px !important;
}

/* 博客名称 */
#Header1_HeaderTitle{
    font-size: 46px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow:
        0 2px 8px rgba(0,0,0,.25),
        0 0 20px rgba(79,140,255,.35);
}

/* 鼠标悬停 */
#Header1_HeaderTitle:hover{
    color: #dbeafe !important;
}

/* 副标题 */
#blogTitle h2{
    color: rgba(255,255,255,.88) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
/* ==========================================================
   Aurora Glass v2
   Sidebar.css（重写版）
========================================================== */

/* =========================
   侧栏宽度
========================= */

#sideBar{
    width: 26%;
}

/* =========================
   搜索 / 常用链接 / 日历
========================= */

#sidebar_search,
#sidebar_shortcut,
#sidebar_news,
#blog-calendar{

    background: rgba(255,255,255,.82);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,.45);

    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(0,0,0,.08);

    padding: 18px 20px;

    margin-bottom: 36px;

    transition: all .25s ease;

}

/* 悬停 */

#sidebar_search:hover,
#sidebar_shortcut:hover,
#blog-calendar:hover{

    transform: translateY(-2px);

    box-shadow: 0 14px 30px rgba(0,0,0,.12);

}

/* =========================
   标题
========================= */

.catListTitle{

    margin:0 0 16px;

    padding-left:10px;

    border-left:4px solid #4f8cff;

    font-size:18px;

    font-weight:700;

    color:#222;

}

/* =========================
   搜索框
========================= */

#sidebar_search_box{

    margin-top:12px;

}

.input_my_zzk{

    width:100%;

    height:42px;

    padding:0 14px;

    border-radius:12px;

    border:1px solid #d8e3ff;

    outline:none;

    transition:.25s;

    background:white;

}

.input_my_zzk:focus{

    border-color:#4f8cff;

    box-shadow:0 0 0 4px rgba(79,140,255,.12);

}

.btn_my_zzk{

    width:100%;

    height:40px;

    margin-top:12px;

    border:none;

    border-radius:12px;

    background:#4f8cff;

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.btn_my_zzk:hover{

    background:#3b82f6;

}

/* =========================
   常用链接
========================= */

.catListLink ul{

    margin:0;

    padding:0;

    list-style:none;

}

.catListLink li{

    margin:6px 0;

}

.catListLink a{

    display:block;

    padding:10px 12px;

    border-radius:10px;

    text-decoration:none;

    color:#374151;

    transition:.2s;

}

.catListLink a:hover{

    background:#edf4ff;

    color:#4f8cff;

    padding-left:18px;

}

/* =========================
   日历
========================= */

/* 外层卡片 */
#blog-calendar{

    overflow:hidden;

}

/* 保持博客园默认布局 */

#blogCalendar{

    margin:auto !important;

    width:auto !important;

}

#blogCalendar table{

    width:auto !important;

}

/* 不修改默认配色 */

#blogCalendar th,
#blogCalendar td{

    border:none !important;

    background:transparent !important;

    padding:4px 6px !important;

}

/* 今天 */

.CalTodayDay{

    background:#4f8cff !important;

    color:#fff !important;

    border-radius:8px;

}

/* =========================
   隐藏空模块
========================= */

#sidebar_categories,
#sidebar_toptags,
#sidebar_topviewedposts,
#sidebar_topcommentedposts,
#sidebar_topdiggedposts,
#sidebar_recentcomments{

    display:none !important;

}

/* =========================
   手机版
========================= */

@media (max-width:900px){

    #sideBar{

        width:100%;

        margin-top:30px;

    }

}
/* =========================
   公告
========================= */

#sidebar_news{

    background: rgba(255,255,255,.82);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border:1px solid rgba(255,255,255,.45);

    border-radius:18px;

    box-shadow:0 8px 24px rgba(0,0,0,.08);

    padding:18px 20px;

    margin-bottom:36px;

}

#sidebar_news a{

    color:#4f8cff;

    text-decoration:none;

    transition:.2s;

}

#sidebar_news a:hover{

    color:#2563eb;

}

#profile_block{

    line-height:2;

    color:#374151;

    font-size:15px;

}
#navigator {
    background: var(--glass);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 8px 20px;
    margin-top: -15px;
}
/* =========================
   日历卡片
========================= */

#blog-calendar{

    background: rgba(255,255,255,.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:1px solid rgba(255,255,255,.45);

    border-radius:18px;

    box-shadow:0 8px 24px rgba(0,0,0,.08);

    padding:18px;

    margin-bottom:36px;

}

/* =======================
      Calendar Card
======================= */

#blog-calendar{

    background: rgba(255,255,255,.84);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,.45);

    border-radius: 22px;

    box-shadow: 0 10px 30px rgba(0,0,0,.10);

    padding: 18px;

    margin-bottom: 36px;

    overflow: hidden;

}
#blog-calendar .CalTitle{
    background: rgba(79,140,255,.08);
    border-radius: 12px;
    margin-bottom: 8px;
    margin-left: 16px;
}

#blog-calendar .CalTitle td{
    padding: 8px 10px !important;
    font-weight: 600;
}
/* =========================
   修复博客园主体布局
========================= */

#main{

    display:flex !important;

    flex-direction:row !important;

    align-items:flex-start;

    gap:30px;

}


#mainContent{

    width:76% !important;

    flex:none !important;

}


#mainContent .forFlow{

    width:100% !important;

}


#sideBar{

    width:22% !important;

    flex:none;

}

#main{
    width:100% !important;
}

/* ==========================================================
   Aurora Glass v2
   Post.css
   文章内部排版
========================================================== */


/* =========================
   文章标题
========================= */

.postTitle{

    margin-bottom:20px;

}


.postTitle2{

    color:#111827 !important;

    font-size:28px;

    font-weight:800;

    text-decoration:none;

    letter-spacing:.5px;

    transition:.25s;

}


.postTitle2:hover{

    color:#4f8cff !important;

}


/* =========================
   日期
========================= */

.dayTitle{

    margin-bottom:12px;

}


.dayTitle a{

    color:#6b7280 !important;

    font-size:14px;

    text-decoration:none;

}



/* =========================
   正文区域
========================= */

#cnblogs_post_body{

    font-size:16px;

    line-height:1.85;

    color:#374151;

}



/* 段落 */

#cnblogs_post_body p{

    margin:18px 0;

}



/* =========================
   标题
========================= */


#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4{


    color:#111827;

    font-weight:750;

    margin-top:32px;

    margin-bottom:16px;

}



#cnblogs_post_body h1{

    font-size:30px;

    border-bottom:2px solid rgba(79,140,255,.25);

    padding-bottom:10px;

}


#cnblogs_post_body h2{

    font-size:25px;

    border-left:5px solid #4f8cff;

    padding-left:12px;

}


#cnblogs_post_body h3{

    font-size:21px;

}



/* =========================
   加粗
========================= */

#cnblogs_post_body strong{

    color:#111827;

    font-weight:750;

}



/* =========================
   链接
========================= */

#cnblogs_post_body a{

    color:#4f8cff;

    text-decoration:none;

}


#cnblogs_post_body a:hover{

    text-decoration:underline;

}



/* =========================
   引用
========================= */

#cnblogs_post_body blockquote{

    margin:20px 0;

    padding:12px 20px;

    background:rgba(79,140,255,.08);

    border-left:5px solid #4f8cff;

    border-radius:12px;

    color:#4b5563;

}



/* ==========================================================
   Modern Code Block
========================================================== */


#cnblogs_post_body pre{

    position:relative;

    margin:28px 0;

    padding:22px 24px;


    background:

        linear-gradient(
            135deg,
            rgba(30,41,59,.95),
            rgba(15,23,42,.95)
        );


    border-radius:18px;


    border:

        1px solid rgba(255,255,255,.12);


    box-shadow:

        0 15px 35px rgba(0,0,0,.25);


    overflow-x:auto;

}


/* 滚动条 */

#cnblogs_post_body pre::-webkit-scrollbar{

    height:8px;

}


#cnblogs_post_body pre::-webkit-scrollbar-thumb{

    border-radius:10px;

    background:rgba(255,255,255,.25);

}



/* =========================
   图片
========================= */


#cnblogs_post_body img{

    max-width:100%;

    border-radius:16px;

    box-shadow:

        0 8px 24px rgba(0,0,0,.12);

}



/* =========================
   表格
========================= */


#cnblogs_post_body table{

    width:100%;

    border-collapse:collapse;

    margin:25px 0;

    overflow:hidden;

    border-radius:14px;

}


#cnblogs_post_body th{

    background:rgba(79,140,255,.12);

    font-weight:700;

}


#cnblogs_post_body td,
#cnblogs_post_body th{

    padding:12px 15px;

    border:1px solid rgba(0,0,0,.08);

}



/* =========================
   首页摘要
========================= */


.c_b_p_desc{

    line-height:1.8;

    color:#4b5563;

}


.c_b_p_desc_readmore{

    display:inline-block;

    margin-left:8px;

    padding:5px 12px;

    border-radius:999px;

    background:#4f8cff;

    color:white !important;

    text-decoration:none !important;

    transition:.2s;

}


.c_b_p_desc_readmore:hover{

    background:#2563eb;

}



/* =========================
   发布时间信息
========================= */


.postDesc{

    margin-top:25px;

    padding-top:15px;

    border-top:

        1px solid rgba(0,0,0,.08);

    color:#9ca3af;

    font-size:14px;

}

/* 只影响文章详情页 */

#post_detail{

    background:rgba(255,255,255,.45);

    backdrop-filter:blur(30px);

    -webkit-backdrop-filter:blur(30px);

    border-radius:22px;

    border:1px solid rgba(255,255,255,.35);

    padding:35px;

}

/* ==========================================================
   文章详情页优化
========================================================== */


/* 文章标题区域 */

#post_detail .postTitle{

    text-align:center;

    margin-bottom:35px;

}



/* 标题字体 */

#post_detail .postTitle2{

    font-size:42px !important;

    font-weight:800;

    color:#111827 !important;

    line-height:1.3;

    letter-spacing:1px;

}



/* 标题悬停 */

#post_detail .postTitle2:hover{

    color:#4f8cff !important;

}



/* 正文间距 */

#post_detail #cnblogs_post_body{

    margin-top:20px;

}

body:has(#post_detail) #navigator{

    display:none !important;

}

/* ==========================================================
   Aurora Glass - Code Block
   保留 highlight.js 多色高亮
========================================================== */


/* 代码框主体 */

#cnblogs_post_body pre{

    background:
        linear-gradient(
            135deg,
            rgba(30,41,59,.96),
            rgba(15,23,42,.96)
        ) !important;

    border-radius:18px !important;

    border:1px solid rgba(255,255,255,.35) !important;

    padding:22px 24px !important;

    margin:28px 0 !important;

    box-shadow:
        0 12px 30px rgba(0,0,0,.25);

    overflow-x:auto;

}


/* 代码内部 */

#cnblogs_post_body pre code{

    background:transparent !important;

    font-family:
        "JetBrains Mono",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size:14px;

    line-height:1.8;

}


/* 防止博客园默认白底 */

#cnblogs_post_body pre table,
#cnblogs_post_body pre td{

    background:transparent !important;

    border:none !important;

}

/* 代码滚动条 */

#cnblogs_post_body pre::-webkit-scrollbar{

    height:8px;

}


#cnblogs_post_body pre::-webkit-scrollbar-thumb{

    border-radius:999px;

    background:rgba(255,255,255,.25);

}

/* highlight.js Aurora 配色 */

.hljs-keyword{
    color:#7dd3fc !important;
}

.hljs-built_in{
    color:#c4b5fd !important;
}

.hljs-type{
    color:#93c5fd !important;
}

.hljs-string{
    color:#86efac !important;
}

.hljs-number{
    color:#fde68a !important;
}

.hljs-comment{
    color:#94a3b8 !important;
}

.hljs-meta{
    color:#f9a8d4 !important;
}

.hljs-title{
    color:#67e8f9 !important;
}
/* 普通代码文字 */
#cnblogs_post_body pre code{

    color:#e2e8f0;

}

/* =========================
   日历今天
========================= */

#blogCalendar td.CalTodayDay,
#blog-calendar td.CalTodayDay,
.CalTodayDay{

    background:rgba(79,140,255,.85) !important;

    color:white !important;

    border-radius:10px !important;

}

/* 导航右侧链接 */

.navTopLinks{

    position:absolute;

    right:250px;

    top:160px;

    display:flex;

    flex-direction:row;   /* 关键：纵向 */

    gap:12px;

    z-index:999;

}


.navTopLinks a{

    color:#333 !important;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    padding:8px 14px;

    border-radius:12px;

    background:rgba(255,255,255,.7);

    border:1px solid rgba(0,0,0,.12);

    box-shadow:0 4px 12px rgba(0,0,0,.08);

    transition:.25s;

}


.navTopLinks a:hover{

    color:white;

    background:rgba(79,140,255,.3);

}

#navigator{
    position:relative;
}

.navTopLinks{
    position:absolute;
    z-index:999999;
}

body.hljs-engine .navTopLinks{
    display:none !important;
}