/*
Theme Name: simple-blog自适应双栏博客
Theme URI: https://yourdomain.com
Description: 手机自适应、SEO友好、双栏博客主题
Version: 1.0
Author: 定制版
Text Domain: simple-blog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans SC", sans-serif;
    background: #f7f8fa;
    color: #333;
    line-height: 1.8;
}
a {
    color: #2d3748;
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: #4c6fff;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: #fff;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: #4c6fff;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* 主体布局 */
.site-main {
    padding: 50px 0;
}
.main-inner {
    display: flex;
    gap: 35px;
}
.content-area {
    flex: 1;
}
.sidebar {
    width: 320px;
}

/* 文章卡片 */
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.post-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.post-content {
    padding: 25px;
}
.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* 文章详情 */
.single-post {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.single-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.single-content {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.9;
}

/* 上下篇 */
.post-nav {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
}

/* 相关文章（竖排） */
.related-posts {
    margin: 40px 0;
}
.related-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.related-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 侧边栏 */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.search-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    outline: none;
}

/* 底部 */
.site-footer {
    background: #2d3748;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 30px;
}

/* 手机自适应 */
@media (max-width: 992px) {
    .main-inner {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .post-nav {
        flex-direction: column;
        gap: 10px;
    }
    .single-post {
        padding: 25px;
    }
    .logo {
        font-size: 22px;
    }
}
/* 分页翻页样式 */
.pagination{
    margin:40px 0;
    display:flex;
    gap:10px;
    justify-content:center;
}
.pagination a,.pagination span{
    padding:8px 16px;
    background:#fff;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}
.pagination .current{
    background:#4c6fff;
    color:#fff;
}