:root {
    --text: #2c2c2c;
    --text-light: #6c6c6c;
    --link: #3a7ca5;
    --link-hover: #2c5d80;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --max-width: 720px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.site-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.site-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
}

/* Main content */
.page-content {
    padding: 48px 0;
    min-height: calc(100vh - 160px);
}

.site-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 48px;
    font-style: italic;
    letter-spacing: 1px;
}

/* Post list */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--link);
}

.post-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.post-excerpt {
    color: var(--text-light);
    font-size: 15px;
}

/* Single post */
.post {
    margin-bottom: 48px;
}

.post .post-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.post-content {
    margin-top: 24px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content blockquote {
    border-left: 3px solid var(--border);
    padding-left: 16px;
    margin: 24px 0;
    color: var(--text-light);
    font-style: italic;
}

.post-content h2 {
    font-size: 20px;
    margin: 32px 0 16px;
}

.post-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    font-family: "JetBrains Mono", "Consolas", monospace;
}

.post-content pre {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content a {
    color: var(--link);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
    .site-header .wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .site-nav a {
        margin: 0 12px;
    }

    .post .post-title {
        font-size: 22px;
    }
}
