/* ===== 全局样式 ===== */
body {
    background: #f5f6f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ===== 主体内容卡片 ===== */
#main {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* ===== 标题优化 ===== */
h1, h2, h3 {
    font-weight: 600;
    color: #222;
}

h1 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* ===== 超链接 ===== */
a {
    color: #3a7afe;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== 代码块美化 ===== */
pre {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

/* ===== 按钮/交互 ===== */
button {
    border-radius: 6px;
}

/* ===== 博客标题 ===== */
#blogTitle {
    text-align: center;
    margin-top: 30px;
}

#blogTitle h1 a {
    color: #222;
    font-size: 28px;
}

/* ===== 隐藏一些不必要元素（可选）===== */
#sidebar {
    display: none;
}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github-dark.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>

<script>
window.onscroll = function() {
    let winScroll = document.body.scrollTop || document.documentElement.scrollTop;
    let height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
    let scrolled = (winScroll / height) * 100;
    document.getElementById("progressBar").style.width = scrolled + "%";
};
</script>

<div id="progressBar" style="
position:fixed;
top:0;
left:0;
height:3px;
background:#3a7afe;
width:0;
z-index:9999;"></div>