/* GitHub 风格 - 简洁主题样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #24292f;
    background-color: #ffffff;
}

.container {
    max-width: 1012px;
    margin: 0 auto;
    padding: 0 16px;
}

/* GitHub 风格头部 */
.header {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d1d9e0;
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 20px;
    font-weight: 600;
    color: #24292f;
    text-decoration: none;
}

.logo a:hover {
    color: #0969da;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #656d76;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #24292f;
}

/* 主内容区域 */
.main {
    min-height: calc(100vh - 160px);
    padding: 32px 0;
}

/* 简洁的首页样式 */
.hero {
    text-align: center;
    padding: 48px 0;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: #656d76;
    margin-bottom: 0;
}

/* 文章网格 */
.recent-posts h2 {
    font-size: 32px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 24px;
    text-align: center;
}

.posts-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.post-card {
    border: 1px solid #d1d9e0;
    border-radius: 12px;
    padding: 24px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    border-color: #fd7e14;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
}

.post-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-card h3 a {
    color: #0969da;
    text-decoration: none;
}

.post-card h3 a:hover {
    text-decoration: underline;
}

.post-card time {
    font-size: 14px;
    color: #656d76;
    display: block;
    margin-bottom: 12px;
}

.post-card p {
    color: #656d76;
    margin: 0;
}


/* 文章列表页 */
.posts-list h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: #24292f;
}

.post-item {
    border-bottom: 1px solid #d1d9e0;
    padding: 24px 0;
}

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

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

.post-item h2 a {
    color: #0969da;
    text-decoration: none;
}

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

.post-item time {
    font-size: 14px;
    color: #656d76;
    display: block;
    margin-bottom: 12px;
}

/* 标签样式 */
.tags {
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    background-color: #f6f8fa;
    color: #24292f;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    text-decoration: none;
    border: 1px solid #d1d9e0;
}

.tag:hover {
    background-color: #0969da;
    color: #ffffff;
    border-color: #0969da;
}


/* 单篇文章页面 */
.post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d1d9e0;
    text-align: center;
}

.post-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 16px;
    line-height: 1.25;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #24292f;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #24292f;
}

.post-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #d1d9e0;
    padding-bottom: 8px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content h4 {
    font-size: 16px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.post-content li {
    margin-bottom: 8px;
}

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

.post-content pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    overflow: auto;
    padding: 16px;
    margin: 16px 0;
}

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

.post-content blockquote {
    border-left: 4px solid #d1d9e0;
    color: #656d76;
    margin: 16px 0;
    padding-left: 16px;
}


/* 页面样式 */
.page {
    max-width: 800px;
    margin: 0 auto;
}

.page h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #24292f;
}

/* 简洁的页脚 */
.footer {
    background-color: #f6f8fa;
    border-top: 1px solid #d1d9e0;
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
}

.footer p {
    color: #656d76;
    font-size: 14px;
    margin: 0;
}

/* 分类和标签页 */
.taxonomy-page {
    text-align: center;
}

.taxonomy-page h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #24292f;
}

.taxonomy-description {
    font-size: 16px;
    color: #656d76;
    margin-bottom: 32px;
}

.taxonomy-list {
    display: grid;
    gap: 16px;
    text-align: left;
}

.taxonomy-item {
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    padding: 16px;
    background-color: #ffffff;
}

.taxonomy-item h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.taxonomy-item h2 a {
    color: #0969da;
    text-decoration: none;
}

.taxonomy-item h2 a:hover {
    text-decoration: underline;
}

.post-count {
    font-size: 14px;
    color: #656d76;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 24px;
    }
}
