/* 页面主体优化 - 增加深度背景 */
#home {
    width: 82% !important;
    margin: 2rem auto !important;
    padding: 1.8rem 2.5rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 250, 0.95)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    z-index: 2; /* 确保内容在背景之上 */
}

/* 全局背景设计 - 增加深度与思考氛围 */
body {
    /* 抽象几何与自然融合的背景图，低饱和度增强思考感 */
    background-image: 
        linear-gradient(rgba(245, 247, 249, 0.85), rgba(245, 247, 249, 0.92)),
        url('https://images.unsplash.com/photo-1553267755-991d724b0336?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed; /* 固定背景增强沉浸感 */
    background-size: cover;
    background-position: center 30%; /* 定位到画面偏上部分，避免主体内容遮挡关键区域 */
    background-repeat: no-repeat;
}

/* 标题样式优化 */
#home h1, #home h2 {
    color: #2d2d2d;
    margin-bottom: 1.2rem !important;
    font-weight: 600;
    line-height: 1.45em;
    border-left: 4px solid #4a90e2;
    padding-left: 1rem;
    position: relative;
}

#home h1::after, #home h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #4a90e2;
    transition: width 0.3s ease;
}

#home h1:hover::after, #home h2:hover::after {
    width: 80px;
}

/* 正文内容优化 */
#cnblogs_post_body {
    margin: 0 auto 2rem !important;
    max-width: 720px;
    color: #3a3a3a;
    line-height: 1.8em;
    letter-spacing: 0.05em;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.6); /* 轻微文字阴影增强可读性 */
}

/* 代码块美化增强 */
#cnblogs_post_body pre {
    background: rgba(40, 44, 52, 0.95); /* 增加透明度与背景融合 */
    color: #abb2bf;
    padding: 1.2rem 1.5rem !important;
    border-radius: 8px;
    font-family: "Fira Code", monospace;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 侧边栏优化 - 增强层次感 */
.newsItem, .catListEssay {
    background: rgba(255, 255, 255, 0.93);
    margin: 1.5rem 0 !important;
    padding: 1.2rem 1.8rem !important;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.newsItem:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* 链接样式增强 */
a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #357abd;
    transition: width 0.3s ease;
}

a:hover {
    color: #357abd;
    text-decoration: none;
}

a:hover::after {
    width: 100%;
}

/* 表格优化 */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    text-align: left;
}

th {
    background-color: rgba(248, 249, 250, 0.9);
    color: #2d2d2d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #home {
        width: 94% !important;
        padding: 1.5rem 1.2rem !important;
    }
    
    .newsItem {
        padding: 1rem 1.2rem !important;
    }
    
    body {
        background-image: 
            linear-gradient(rgba(245, 247, 249, 0.9), rgba(245, 247, 249, 0.95)),
            url('https://images.unsplash.com/photo-1553267755-991d724b0336?ixlib=rb-4.0.3&auto=format&fit=crop&w=1080&q=80');
    }
}