/* 全局样式重置与基础设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 主容器 */
#main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* 博客标题（再次调小） */
#blogTitle {
    text-align: center;
    padding: 5px 0; /* 从15px减少到5px，进一步压缩上下内边距 */
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 10px; /* 从20px减少到15px，进一步减少与下方内容的间距 */
}

#blogTitle h1 {
    font-size: 1.8rem; /* 从2rem减少到1.8rem，再次缩小标题字号 */
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

#blogTitle h1 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

#blogTitle h1 a:hover {
    color: #3182ce;
}

#blogTitle .subtitle {
    font-size: 0.85rem; /* 从0.9rem减少到0.85rem，再次缩小副标题字号 */
    color: #718096;
    margin-top: 5px; /* 从8px减少到5px，进一步减少与主标题的间距 */
}

/* 导航栏（修复左侧统计文字颜色） */
#navigator {
    background-color: #2d3748;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* 左侧统计信息样式 */
#navigator .stats {
    color: #e2e8f0; /* 设置为与导航栏其他文字一致的浅色 */
    font-size: 0.9rem;
}

#navigator ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

#navigator ul li {
    margin: 0;
}

#navigator ul li a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    padding: 10px 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#navigator ul li a:hover {
    background-color: #4a5568;
    color: #ffffff;
}

/* 文章列表 */
.day {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.dayTitle {
    display: none;
}

.postTitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.postTitle a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.postTitle a:hover {
    color: #3182ce;
}

.postCon {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
}

.postDesc {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 15px;
}

.postDesc a {
    color: #3182ce;
    text-decoration: none;
}

.postDesc a:hover {
    text-decoration: underline;
}

/* 侧边栏 */
#sideBar {
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

#sideBar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3182ce;
}

#sideBar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sideBar ul li {
    margin-bottom: 10px;
}

#sideBar ul li a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

#sideBar ul li a:hover {
    color: #3182ce;
}

/* 页脚 */
#footer {
    text-align: center;
    padding: 20px 0;
    color: #718096;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

/* 代码块样式 */
.cnblogs_code {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cnblogs_code pre {
    margin: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    #main {
        padding: 15px;
    }

    #blogTitle h1 {
        font-size: 1.6rem;
    }

    #navigator {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    #navigator .stats {
        padding: 10px 15px;
        border-bottom: 1px solid #4a5568;
    }

    #navigator ul {
        flex-direction: column;
    }

    #navigator ul li a {
        text-align: center;
        padding: 10px;
    }
}