   
          /* 代码块样式 */
pre {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
    line-height: 1.5;
}

/* 代码行号 */
.code-line {
    display: block;
    counter-increment: line;
    min-height: 1.5em;
}

.code-line::before {
    content: counter(line);
    display: inline-block;
    width: 2rem;
    color: #94a3b8;
    text-align: right;
    padding-right: 1rem;
    margin-right: 1rem;
    border-right: 1px solid #e2e8f0;
    user-select: none;
}

/* 语法高亮 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #64748b;
}

.token.punctuation {
    color: #64748b;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #dc2626;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #16a34a;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #ea580c;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #2563eb;
}

.token.function,
.token.class-name {
    color: #d946ef;
}

.token.regex,
.token.important,
.token.variable {
    color: #ca8a04;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航链接激活状态 */
.nav-link.active {
    color: #2563eb !important;
    font-weight: 500;
}

/* 文章内容样式 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.5rem 0 1rem 0;
    color: #1f2937;
    font-weight: 600;
}

.article-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content h4 {
    font-size: 1.125rem;
}

.article-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content a {
    color: #2563eb;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1d4ed8;
}

.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #eff6ff;
    border-radius: 0 0.25rem 0.25rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.125rem;
    }
}
        