/* -----------------------------------------------------------
   Theme: Minimalist White (精简白) + Colorful Cursor Trail
   Base Skin: SimpleMemory
----------------------------------------------------------- */

/* ================= 全局基础设置 ================= */
* {
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: #f4f5f7; /* 浅灰背景，护眼 */
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    /* 确保光标特效不会撑开页面滚动条 */
    overflow-x: hidden;
    position: relative;
}

/* ================= 布局容器 ================= */
#home {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative; /* 确保z-index层级正确 */
    z-index: 1;
}

/* ================= 头部 (Header) 精简 ================= */
#header {
    background: transparent;
    margin-bottom: 30px;
    text-align: center;
}

#blogTitle h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

#blogTitle h1 a {
    color: #222;
    text-decoration: none;
}

#blogTitle h2 {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    margin-top: 10px;
}

/* 导航栏 */
#navigator {
    margin-top: 20px;
}

#navList {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#navList li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

#navList li a:hover {
    color: #007bff; /* 鼠标悬停色 */
    border-bottom: 2px solid #007bff;
}

/* ================= 主内容区 (文章列表) ================= */
#mainContent {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px;
    width: 100%;
    margin-top: 0;
}
#footer {
    display: none;
}
/* 单篇文章样式 */
.day {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.postTitle {
    font-size: 22px;
    border-left: 4px solid #007bff; /* 左侧蓝条装饰 */
    padding-left: 12px;
    margin-bottom: 15px;
}

.postTitle a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.postTitle a:hover {
    color: #007bff;
}

.postCon {
    color: #555;
    margin-bottom: 15px;
}

.c_b_p_desc {
    color: #777;
    font-size: 14px;
}

.postDesc {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: right;
}

.postDesc a {
    color: #999;
}

/* ================= 侧边栏 (Sidebar) 移到底部 ================= */
#sideBar {
    margin-top: 30px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#sideBarMain {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.newsItem, .catListTitle, .catListTag {
    margin-bottom: 20px;
}

/* ================= 隐藏元素 (核心精简) ================= */
#ad_t2, #cnblogs_c1, #cnblogs_c2, #under_post_news, #under_post_kb, .blogStats, #blog-calendar {
    display: none !important;
}

/* ================= 代码块样式美化 ================= */
.cnblogs-markdown pre {
    background-color: #f8f8f8 !important;
    border: none !important;
    border-radius: 6px;
    padding: 15px !important;
    font-family: Consolas, Monaco, "Andale Mono", monospace;
}

/* ================= 移动端适配 ================= */
@media (max-width: 768px) {
    #home { padding: 10px; }
    #mainContent { padding: 15px; }
    #navList { flex-wrap: wrap; }
    .postTitle { font-size: 18px; }
}

/* =================【新增】光标特效 CSS ================= */
/* 光点的基本样式 */
.cursor-trail {
    position: absolute;
    width: 10px;  /* 光点初始大小 */
    height: 10px;
    border-radius: 50%;
    /* 关键：禁止鼠标事件，否则光点会挡住点击操作 */
    pointer-events: none; 
    /* 确保在最顶层 */
    z-index: 9999;
    /* 让光点中心对准鼠标尖端 */
    transform: translate(-50%, -50%);
    /* 发光效果，使用当前背景色 */
    box-shadow: 0 0 8px currentColor;
    /* 执行渐隐动画 */
    animation: trailFade 0.8s linear forwards;
}

/* 光点消失动画 */
@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        /* 稍微缩小并向上飘一点 */
        transform: translate(-50%, -150%) scale(0.2);
    }
}