/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    margin-bottom: 40px;
    text-align: center;
}

nav {
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #666;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 主要内容样式 */
main {
    margin-bottom: 60px;
}

.intro {
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

.latest-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.post-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #666;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
}

/* 文章页面样式 */
.article-content {
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-body {
    line-height: 1.8;
}

.article-body h2 {
    margin: 30px 0 15px;
    font-size: 1.6rem;
}

.article-body h3 {
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.article-body code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.article-body pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-body pre code {
    padding: 0;
    background-color: transparent;
}

/* 关于页面样式 */
.about-content {
    line-height: 1.8;
}

.about-content h2 {
    margin: 30px 0 15px;
    font-size: 1.6rem;
}

.about-content p {
    margin-bottom: 20px;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background-color: #f5f5f5;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #666;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .latest-posts h2 {
        font-size: 1.5rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
}