/* 全局样式 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
.site-header {
    border-bottom: 1px solid #e8e8e8;
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: #3498db;
}

.site-nav {
    float: right;
}

.site-nav .page-link {
    margin-left: 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.site-nav .page-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.site-nav .page-link:hover {
    color: #3498db;
}

.site-nav .page-link:hover:after {
    width: 100%;
}

/* 主要内容区域 */
.page-content {
    padding: 3rem 0;
}

/* 表格样式 */
table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.75rem;
    border: 1px solid #e1e4e8;
    text-align: left;
}

th {
    background-color: #f6f8fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* 代码块样式 */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

code {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background-color: rgba(27,31,35,0.05);
    border-radius: 3px;
}

pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #24292e;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.post-list li a.post-link {
    position: static;
}

.post-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    cursor: pointer;
}

.post-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.post-link {
    display: block;
    font-size: 1.8rem;
    text-decoration: none;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #3498db;
}

.post-excerpt {
    color: #666;
    margin-top: 1rem;
    line-height: 1.6;
}

/* 文章页面 */
.post {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.post-content {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: #2c3e50;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.post-navigation a {
    text-decoration: none;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

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

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: #fff;
    color: #3498db;
    border: 1px solid #e8e8e8;
}

.pagination a:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination .current-page {
    background-color: #3498db;
    color: #fff;
    border: 1px solid #3498db;
}

/* 响应式设计 */
@media screen and (max-width: 600px) {
    .site-nav {
        float: none;
        margin-top: 1rem;
        text-align: center;
    }

    .site-nav .page-link {
        display: block;
        margin: 1rem 0;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-list li {
        padding: 1.5rem;
    }

    .pagination a, .pagination span {
        padding: 0.4rem 0.8rem;
        margin: 0 0.2rem;
    }
}