/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 头部样式 */
.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.site-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.site-header h1 a {
    color: #333;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: #666;
    text-decoration: none;
}

.site-header nav a:hover {
    color: #333;
}

/* 主要内容 */
main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
}

/* 文章样式 */
.post {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-meta time {
    margin-right: 1rem;
}

.post-content {
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 1.5rem 0 1rem 0;
    color: #333;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #e9ecef;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

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

.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 文章列表 */
.post-list {
    display: grid;
    gap: 2rem;
}

.post-summary {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

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

.post-summary h3,
.post-summary h4 {
    margin-bottom: 0.5rem;
}

.post-summary h3 a,
.post-summary h4 a {
    color: #333;
    text-decoration: none;
}

.post-summary h3 a:hover,
.post-summary h4 a:hover {
    color: #666;
}

.post-excerpt {
    color: #666;
    margin-top: 0.5rem;
}

.more-link {
    display: inline-block;
    margin-top: 2rem;
    color: #666;
    text-decoration: none;
}

.more-link:hover {
    color: #333;
}

/* 页脚 */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #666;
    text-decoration: none;
}

.site-footer a:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .site-header nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}