
/* 全局基础重置与美化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 头部导航固定 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px 0;
}
#blogTitle h1 a {
    color: #667eea !important;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}
#navigator {
    margin-top: 10px;
}
#navList a {
    color: #555 !important;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}
#navList a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
}

/* 主内容区 */
#main {
    margin-top: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.post {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.post:hover {
    transform: translateY(-5px);
}
.postTitle a {
    color: #333 !important;
    font-size: 22px;
    text-decoration: none;
    font-weight: bold;
}
.postCon {
    margin: 20px 0;
    font-size: 16px;
}

/* 代码块美化 */
.cnblogs_code {
    background: #2b2b2b !important;
    color: #f8f8f2 !important;
    border-radius: 8px;
    padding: 20px !important;
    margin: 20px 0;
    overflow-x: auto;
    font-family: Consolas, monospace;
}

/* 底部样式 */
#footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    margin-top: 50px;
}

/* 暗色模式切换按钮 */
#darkModeBtn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    z-index: 999;
}

/* 回到顶部按钮 */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    z-index: 999;
    display: none;
}

/* 暗色模式样式 */
body.dark {
    background: #1a1a1a;
    color: #eee;
}
body.dark .post, body.dark #header {
    background: #252525;
}
body.dark .postTitle a, body.dark #blogTitle h1 a {
    color: #eee !important;