* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --正文色: oklch(0.3 0 0);
    --正文沉底色: oklch(0.4 0 0);
    --正文弱色: oklch(0.5 0 0);
    --脚标正文色: var(--正文弱色);
    --标题色: oklch(0.3 0 0);
    --框背景色: oklab(0.9 0 0);
    --背景色: oklab(0.98 0 0);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--正文色);
    background-color: var(--背景色);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--标题色);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h1:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e0e0e0;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

time {
    display: block;
    font-size: 0.8rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    hyphens: auto;
}

p:first-of-type:first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    color: var(--正文沉底色);
}

img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: block;
}

.img-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

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

li {
    margin-bottom: 0.5rem;
}

em {
    font-weight: 600;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

a:hover {
    color: #004499;
    border-bottom: 1px solid rgba(0, 68, 153, 0.5);
}

blockquote {
    border-left: 4px solid #ddd;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--正文色);
    background-color: var(--框背景色);
    font-style: italic;
}

pre, code {
    font-family: 'Courier New', monospace;
    background-color: var(--框背景色);
    border-radius: 3px;
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow: auto;
    margin: 1.5rem 0;
    line-height: 1.4;
}

pre code {
    padding: 0;
    background: transparent;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

a.title-block {
    color: var(--正文色);
}

.tags-block a {
    margin-right: 0.5em;
}

header {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    text-align: center;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #222;
    border-bottom: none;
}

.site-title a:hover {
    border-bottom: none;
}

nav {
    margin-top: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-right: 1.5rem;
}

.nav-links a {
    color: #666;
    font-size: 1rem;
}

footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: var(--脚标正文色);
    font-size: 0.9rem;
    text-align: center;
}

.copyright {
    margin-top: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 0 1rem 0.5rem 0;
    }
}

