/* === 博客园代码缩进终极覆盖方案 === */
/* 1. 基础覆盖层：针对所有可能的代码块容器 */
.cnblogs-post-body pre,
.cnblogs_code pre,
pre code,
pre {
    tab-size: 2 !important;
    -moz-tab-size: 2 !important;
    -o-tab-size: 2 !important;
}

/* 2. 强制间距层：如果tab-size不灵，用padding直接撑开 */
.cnblogs-post-body pre,
.cnblogs_code pre {
    padding-left: 2em !important; /* 这个效果是直接的，可以先调整这个值看看 */
}

/* 3. 终极重置层：使用all属性尝试重置局部样式（谨慎使用） */
.cnblogs-post-body pre * {
    all: revert !important;
}
/* 3.1 重置后重新应用我们想要的缩进 */
.cnblogs-post-body pre {
    all: initial !important;
    white-space: pre !important;
    font-family: monospace !important;
    tab-size: 2 !important;
    -moz-tab-size: 2 !important;
    padding-left: 2em !important;
    display: block !important;
    overflow-x: auto !important;
}
/* ===== 信息工程师全局风格 ===== */
/* 1. 整体布局与背景 */
body {
    background-color: #f7f9fa;
    background-image: linear-gradient(180deg, #f0f4f8 0%, #e6ecf2 100%);
    color: #333;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
}
#home {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

/* 2. 顶部导航栏 (终端风格) */
#navigator {
    background: #2d3a4b !important;
    border-bottom: none !important;
    padding: 15px 30px;
}
#navList a {
    color: #b0bfd0 !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-family: 'Consolas', 'Monaco', monospace;
}
#navList a:hover {
    color: #fff !important;
    background-color: #007acc !important;
    text-decoration: none !important;
}

/* 3. 文章标题与头部 */
.postTitle {
    border-left: 5px solid #007acc;
    padding-left: 20px;
    margin-bottom: 25px;
}
.postTitle a {
    color: #2d3a4b !important;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
}
.postTitle a:hover {
    color: #007acc !important;
}

/* 4. 代码块核心样式 (工程师之眼) */
.cnblogs-markdown .hljs,
.cnblogs-post-body .hljs {
    background-color: #1e1e1e !important; /* VS Code 深黑 */
    color: #d4d4d4 !important;
    border-radius: 6px !important;
    border: 1px solid #3c3c3c !important;
    border-left: 5px solid #007acc !important; /* 科技蓝高亮边 */
    padding: 1.2em !important;
    font-family: 'Cascadia Code', 'Consolas', 'Monaco', monospace !important;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
}
/* 行内代码 */
.cnblogs-markdown code:not(.hljs),
.cnblogs-post-body code:not(.hljs) {
    color: #d14;
    background-color: #f6f8fa;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    border: 1px solid #e1e4e8;
}

/* 5. 侧边栏面板 (卡片化设计) */
#sidebar {
    padding: 25px;
}
#sidebar .sideBarBlock {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
#sidebar .sideBarBlock h3 {
    color: #2d3a4b;
    font-size: 1.1rem;
    border-bottom: 2px solid #007acc;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 6. 页脚 (终端状态栏风格) */
#footer {
    background: #2d3a4b !important;
    color: #b0bfd0 !important;
    padding: 20px 30px;
    text-align: center;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    border-top: 2px solid #007acc;
}
#footer a {
    color: #66b3ff !important;
}

/* 7. 按钮与交互元素 */
#blog-calendar .CalTodayDay {
    background-color: #007acc !important;
    color: white !important;
    border-radius: 50%;
}
input, textarea, select {
    border: 1px solid #cbd5e0 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}