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

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

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

/* 头部样式 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e1e4e8;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #0366d6;
    text-decoration: none;
    display: inline-block;
}

.site-nav {
    float: right;
    margin-top: 5px;
}

.site-nav a {
    margin-left: 20px;
    color: #586069;
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    color: #0366d6;
}

/* 主要内容区域 */
.page-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* 文章样式 */
.post, .page {
    background: #fff;
    margin-bottom: 40px;
}

.post-header, .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.post-title, .page-title {
    font-size: 32px;
    font-weight: bold;
    color: #24292e;
    margin-bottom: 10px;
}

.post-meta {
    color: #586069;
    font-size: 14px;
}

.post-content, .page-content {
    font-size: 16px;
    line-height: 1.7;
}

.post-content h2, .page-content h2 {
    margin: 30px 0 15px 0;
    font-size: 24px;
    color: #24292e;
}

.post-content h3, .page-content h3 {
    margin: 25px 0 12px 0;
    font-size: 20px;
    color: #24292e;
}

.post-content p, .page-content p {
    margin-bottom: 15px;
}

.post-content code, .page-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
}

.post-content pre, .page-content pre {
    background: #f6f8fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 文章标签 */
.post-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
}

.tag {
    background: #f1f8ff;
    color: #0366d6;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

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

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

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

.post-item-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.post-item-title a {
    color: #0366d6;
    text-decoration: none;
}

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

.post-item-meta {
    color: #586069;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-item-excerpt {
    color: #586069;
    line-height: 1.6;
}

/* 底部样式 */
.site-footer {
    background: #f6f8fa;
    border-top: 1px solid #e1e4e8;
    padding: 30px 0;
    text-align: center;
    color: #586069;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-nav {
        float: none;
        margin-top: 10px;
    }
    
    .site-nav a {
        margin: 0 10px 0 0;
    }
    
    .post-title, .page-title {
        font-size: 28px;
    }
    
    .wrapper {
        padding: 0 15px;
    }
}

/* 清除浮动 */
.wrapper::after {
    content: "";
    display: table;
    clear: both;
}