/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #fafaf9;
    color: #1c1c1e;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 2rem;
}

/* 头部 */
header {
    border-bottom: 1px solid #e9e9ef;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2b7a4b, #1e5d3e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #2c3e2f;
    font-weight: 500;
    transition: 0.2s;
}

nav a:hover {
    color: #2b7a4b;
}

/* 文章列表 */
.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #edebe9;
    padding-bottom: 1.5rem;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.post-title a {
    text-decoration: none;
    color: #1e3a2f;
    transition: 0.2s;
}

.post-title a:hover {
    color: #2b7a4b;
    text-decoration: underline;
}

.post-meta {
    font-size: 0.85rem;
    color: #6b6b70;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.post-excerpt {
    color: #3a3a3e;
}

/* 文章页样式 */
.article-content {
    font-size: 1.05rem;
}

.article-content h2 {
    margin: 1.5rem 0 0.75rem;
    color: #1e3a2f;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.2rem 0;
}

/* 关于页 */
.about-text {
    margin-top: 1rem;
}

/* 页脚 */
footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b6b70;
    border-top: 1px solid #e9e9ef;
    padding-top: 1.5rem;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    nav a {
        margin-left: 1rem;
    }
}
