/* 全局背景设置：请替换下方图片URL为你自己的背景图 */
body {
    background: url("https://img2024.cnblogs.com/blog/3776205/202603/3776205-20260315205226473-416247856.png") no-repeat fixed center center / cover;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

#home {
    max-width: 1600px;    /* 从1200px调大 */
    margin: 20px auto;
    padding: 0 15px;
}

/* ----- 头部样式 ----- */
#header {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px); /* 轻微毛玻璃效果，可选 */
}

#blogTitle h1 a {
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
    text-decoration: none;
}

#blogTitle h2 {
    color: #555;
    font-weight: 400;
    margin-top: 8px;
    font-size: 1.2em;
}

/* 导航栏 */
#navList {
    background: transparent;
    margin-top: 15px;
}

#navList a {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 30px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#navList a:hover {
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border-color: transparent;
}

/* ----- 主区域：不设置整体背景，由内部卡片呈现半透明 ----- */
#main {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    background: transparent;
}
#mainContent {
    flex: 4;              /* 从3调为4，文章区更宽 */
    min-width: 300px;
}
#sideBar {
    flex: 1;
    min-width: 250px;
}

/* 强化文章底部透明：确保评论区等区域半透明 */
#blog-comments-placeholder,
#blog-comments-placeholder .feedbackItem,
#blog-comments-placeholder .comment_item,
#blog-comments-placeholder .comment_body,   /* 新增，使评论内容也半透明 */
#comment_form .commentform,
#comment_form .commentbox,
#comment_nav,
#under_post_news,
#under_post_kb,
#google_ad {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 通用卡片样式：所有主要内容块都变成半透明圆角卡片 */
#mainContent .day,
#mainContent .post,
#mainContent .entrylistItem,
#mainContent .postCon,
#mainContent .forFlow .day,
#mainContent .forFlow .post,
.entrylistItem,
#blog-comments-placeholder .feedbackItem,
#comment_form .commentform,
#comment_form .commentbox,
#topics,
.postBody,
#sideBar .newsItem,
#sideBar .blogStats,
#sideBar #blog-calendar,
#sideBar #sidebar_news,
#sideBar #sidebar_search,
#sideBar #sidebar_ad,
#sideBar #sidebar_links,
#sideBar #sidebar_recentposts,
#sideBar #sidebar_toptags,
#sideBar .catListView,
#sideBar .mySearch,
#sideBar #sidebar_recentcomments,
#sideBar #sidebar_articlearchive,
#sideBar #sidebar_imagecategory,
#blog-comments-placeholder .comment_item,
#comment_nav,
#under_post_news,
#google_ad,
#under_post_kb {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#mainContent .day:hover,
#mainContent .post:hover,
#sideBar > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 文章标题 */
#mainContent .day .postTitle a,
#mainContent .postTitle a,
.entrylistItemTitle a,
#topics .postTitle a {
    color: #1e4660;
    font-size: 1.8em;
    font-weight: 600;
    text-decoration: none;
}

#mainContent .day .postTitle a:hover,
#mainContent .postTitle a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 文章元信息（日期、分类等） */
.postDesc, .entrylistItemPostDesc {
    color: #6c7a8a;
    font-size: 0.9em;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 阅读更多链接 */
.postDesc a, .entrylistItemPostDesc a {
    color: #2980b9;
}

/* 侧边栏标题 */
#sideBar h3 {
    font-size: 1.3em;
    color: #2c3e50;
    border-left: 5px solid #3498db;
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 侧边栏链接 */
#sideBar a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

#sideBar a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* 代码块美化 */
.cnblogs_code, pre {
    background: rgba(245, 245, 245, 0.9) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cnblogs_code_toolbar {
    background: transparent !important;
}

/* 引用块 */
blockquote {
    background: rgba(236, 240, 241, 0.7);
    border-left: 5px solid #3498db;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
}

/* 分页样式 */
#pager, .topicListFooter {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 40px;
    padding: 12px 25px;
    text-align: center;
    margin: 30px 0;
}

#pager a, .topicListFooter a {
    color: #2c3e50;
    margin: 0 8px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

#pager a:hover, .topicListFooter a:hover {
    background: #3498db;
    color: white;
}

/* 底部样式 */
#footer {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    color: #4a5a6a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
}

/* 输入框、按钮 */
input[type="text"], input[type="password"], textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
}

input[type="submit"], button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover, button:hover {
    background: #2980b9;
}

/* 自适应：小屏幕时调整间距 */
@media screen and (max-width: 768px) {
    #main {
        flex-direction: column;
    }
    #header {
        padding: 15px;
    }
    #mainContent .day, #mainContent .post {
        padding: 15px;
    }
}

/* ----- 返回顶部按钮样式（配合页脚HTML使用）----- */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background 0.3s;
    z-index: 999;
}

#back-to-top:hover {
    background: #3498db;
    color: white;
}