/* 博客园现代简约风格CSS */

/* 基础设置 - 移除默认模板样式 */
#blogTitle, #navigator, #mainContent, #sideBar, #footer,
.postTitle, .postContent, .feedbackList, .comment_form,
.c_b_p_desc, .newsItem, .catListTitle, .catListEssay,
#header, #main, .forFlow, .day, .entrylistItem {
    all: unset;
    display: block;
}

/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    /* 背景图片设置 - 替换为您的图片URL */
    background-image: url('https://images.cnblogs.com/cnblogs_com/blogs/838827/galleries/2442912/o_250811105242_dark_mode.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* 容器样式 */
#home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 头部样式 */
#header {
    width: 100%;
    padding: 30px 0;
    text-align: center;
}

#blogTitle {
    margin-bottom: 10px;
}

#blogTitle h1 {
    content: "Zone of Algorithm"; /* 修复了缺少的分号 */
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}

#blogTitle h2 {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
    font-weight: normal;
}

/* 导航栏样式 */
#navigator {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.60);
    border-radius: 12px; /* 增加导航栏圆角 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

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

#navList li {
    margin: 0 15px;
}

#navList a {
    display: block;
    padding: 15px 10px;
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#navList a:hover {
    color: #3498db;
}

/* 主内容区域 */
#main {
    display: flex;
    gap: 30px;
}

/* 文章列表区域 */
#mainContent {
    flex: 3;
    background-color: rgba(255, 255, 255, 0.60);
    border-radius: 12px; /* 主内容区域添加圆角 */
    padding: 60px; /* 修改：内容与边框距离设为60px */
    box-sizing: border-box; /* 确保padding不会增加元素总宽度 */
}

.forFlow {
    width: 100%;
}

/* 文章卡片样式 */
.day {
    background-color: rgba(255, 255, 255, 0.60); /* 文档框透明度 */
    border-radius: 12px; /* 修改：增大文档框圆角 */
    padding: 60px; /* 修改：内容与边框距离设为60px */
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* 确保padding不会增加元素总宽度 */
}

.day:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 文章标题样式调整 - 解决透明度叠加问题 */
.postTitle {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px;
    background-color: transparent;
}

.postTitle a {
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.postTitle a:hover {
    color: #3498db;
}

.postCon {
    margin-bottom: 20px;
}

.postContent {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
}

.postDesc {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: right;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* 侧边栏样式 */
#sideBar {
    flex: 1;
}

.sidebar-block {
    background-color: rgba(255, 255, 255, 0.60);
    border-radius: 12px; /* 修改：侧边栏模块添加圆角 */
    padding: 20px; /* 修改：内容与边框距离设为60px */
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    box-sizing: border-box; /* 确保padding不会增加元素总宽度 */
}

/* 修改：隐藏日历和公告区域 */
#blogCalendar, .catListNotice {
    display: none !important;
}

.catListTitle {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.catListEssay, .catListLink, .catListNoteBook, .catListTag {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catListEssay li, .catListLink li, .catListNoteBook li, .catListTag li {
    margin-bottom: 10px;
}

.catListEssay a, .catListLink a, .catListNoteBook a, .catListTag a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catListEssay a:hover, .catListLink a:hover, .catListNoteBook a:hover, .catListTag a:hover {
    color: #3498db;
    padding-left: 5px;
}

/* 标签样式 */
#sideBarTags a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.60);
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 5px 8px 0;
    font-size: 0.9rem;
}

#sideBarTags a:hover {
    background-color: #3498db;
    color: white;
    padding-left: 10px;
}

/* 评论区样式 */
.feedback_area_title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.feedbackItem {
    background-color: rgba(255, 255, 255, 0.60);
    border-radius: 12px; /* 修改：评论区添加圆角 */
    padding: 60px; /* 修改：内容与边框距离设为60px */
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    box-sizing: border-box; /* 确保padding不会增加元素总宽度 */
}

.feedbackCon {
    margin-top: 10px;
    color: #444;
}

/* 页脚样式 */
#footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #main {
        flex-direction: column;
    }
    
    #blogTitle h1 {
        font-size: 2rem;
    }
    
    .day, #mainContent, .sidebar-block, .feedbackItem {
        padding: 30px; /* 响应式调整：小屏幕下减少内边距 */
    }

    @media (max-width: 768px) {
    #main {
        flex-direction: column;
    }
    #mainContent, #sideBar {
        width: 100%; /* 小屏幕下均占满宽度 */
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

.entrylist, 
.topicListFooter,
*[title*="合集"],
*[href*="entrylist"] {
    display: none !important; 
}