/* 极简风格 - 参考 BearBlog */
:root {
    --text: #333;
    --bg: #fff;
    --link: #0066cc;
    --border: #e0e0e0;
    --meta: #666;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: var(--meta);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95rem;
}

header nav a:hover {
    color: var(--link);
}

/* Posts */
.post-list {
    margin-bottom: 60px;
}

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

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

.post-item h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-item h2 a {
    color: var(--text);
    text-decoration: none;
}

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

.post-meta {
    color: var(--meta);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--meta);
    font-size: 0.95rem;
}

/* Article */
article.full-post {
    margin-bottom: 60px;
}

article.full-post h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

article.full-post .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

article.full-post .content {
    font-size: 1.05rem;
}

article.full-post .content p {
    margin-bottom: 1.2em;
}

article.full-post .content h2 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.8em;
    font-weight: 600;
}

article.full-post .content h3 {
    font-size: 1.1rem;
    margin: 1.2em 0 0.6em;
    font-weight: 600;
}

article.full-post .content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.9em;
}

article.full-post .content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

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

article.full-post .content ul,
article.full-post .content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

article.full-post .content li {
    margin-bottom: 0.3em;
}

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

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

/* Footer */
footer {
    padding: 30px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--meta);
    font-size: 0.85rem;
}

footer a {
    color: var(--meta);
    text-decoration: none;
}

footer a:hover {
    color: var(--link);
}

/* About page */
.about-content {
    margin-bottom: 60px;
}

.about-content h2 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.8em;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 1.2em;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }
    
    article.full-post h1 {
        font-size: 1.5rem;
    }
    
    .post-item h2 {
        font-size: 1.15rem;
    }
}
