/* === 淡雅蓝调博客园美化方案 === */

/* 1. 全局背景与字体 */
body {
    background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%) !important; /* 淡蓝色渐变背景 */
    background-attachment: fixed !important; /* 背景固定，不随滚动条滚动 */
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif !important; /* 使用更优雅的字体 */
    color: #333; /* 主要文字颜色 */
    line-height: 1.6;
}

/* 2. 主内容区美化 */
#main, #sideBar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* 半透明白色背景，让内容清晰 */
    border-radius: 12px !important; /* 大圆角设计 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important; /* 柔和的阴影，增加立体感 */
    padding: 20px !important;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* 淡淡的边框 */
}

/* 3. 博客名称样式 */
#blog_title {
    text-align: center;
    font-size: 2.2em !important;
    color: #1565C0 !important; /* 深蓝色 */
    margin-bottom: 10px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 4. 头像美化 - 圆形设计 */
#blog-news img {
    border-radius: 50% !important; /* 圆形头像 */
    border: 4px solid #fff !important; /* 白色边框 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important; /* 阴影 */
    display: block;
    margin: 0 auto; /* 居中 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}
#blog-news img:hover {
    transform: scale(1.05) rotate(5deg); /* 悬停时轻微放大和旋转 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* 5. 文章标题美化 */
.postTitle {
    border-left: 4px solid #42A5F5 !important; /* 左侧蓝色装饰条 */
    padding-left: 15px !important;
    margin-bottom: 15px !important;
}
.postTitle a {
    font-size: 1.4em !important;
    color: #1976D2 !important; /* 蓝色标题 */
    text-decoration: none !important;
    font-weight: 600;
}
.postTitle a:hover {
    color: #0D47A1 !important; /* 悬停时更深蓝色 */
    text-decoration: underline !important;
}

/* 6. 文章摘要/正文美化 */
.post-body {
    color: #424242 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}
.post-body p {
    margin-bottom: 1em !important;
}

/* 7. 侧边栏标题美化 */
.catListTitle {
    background: linear-gradient(to right, #42A5F5, #2196F3) !important; /* 蓝色渐变背景 */
    color: white !important;
    padding: 10px 15px !important;
    border-radius: 8px 8px 0 0 !important; /* 只有上边有圆角 */
    font-size: 1.1em !important;
    margin-bottom: 0 !important;
    border: none !important;
}

/* 8. 侧边栏列表项美化 */
.catListItem, .RecentComment {
    padding: 8px 15px !important;
    border-bottom: 1px dashed #e0e0e0 !important; /* 虚线分隔 */
}
.catListItem:last-child, .RecentComment:last-child {
    border-bottom: none !important;
}
.catListItem a, .RecentComment a {
    color: #555 !important;
    text-decoration: none !important;
}
.catListItem a:hover, .RecentComment a:hover {
    color: #1976D2 !important;
    text-decoration: underline !important;
}

/* 9. 底部导航美化 */
#nav_next, #nav_prev {
    background-color: rgba(66, 165, 245, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}
#nav_next a, #nav_prev a {
    color: #1976D2 !important;
    font-weight: 500;
}
#nav_next:hover, #nav_prev:hover {
    background-color: rgba(66, 165, 245, 0.2) !important;
}

/* 10. 代码块美化 */
.cnblogs_code {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 12px !important;
}

/* 11. 链接通用美化 */
a {
    color: #1976D2 !important;
    transition: color 0.2s ease;
}
a:hover {
    color: #0D47A1 !important;
}