/*
Theme Name: CleanBlog
Theme URI: https://yourdomain.com
Description: 自适应双栏SEO博客 | 顶部网站简介 | 相关文章6篇竖排
Version: 4.0
Author: Custom
Text Domain: cleanblog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    line-height: 1.8;
}
a {
    color: #1e293b;
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: #3b82f6;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: #fff;
    padding: 22px 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: #3b82f6;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

/* 网站简介 */
.site-intro {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
}
.site-intro p {
    font-size: 16px;
    line-height: 1.8;
}

/* 主体布局 */
.site-main {
    padding: 20px 0 50px;
}
.main-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.content {
    flex: 1;
}
.sidebar {
    width: 300px;
}

/* 文章卡片 */
.post-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 18px;
}
.post-title {
    font-size: 21px;
    margin-bottom: 10px;
    font-weight: 600;
}
.post-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}
.post-excerpt {
    color: #475569;
    font-size: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pagination .current {
    background: #3b82f6;
    color: #fff;
}

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

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

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

/* 侧边栏 */
.widget {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
}

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

/* 手机自适应 */
@media (max-width: 992px) {
    .main-flex {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .post-nav {
        flex-direction: column;
        gap: 10px;
    }
    .single-title {
        font-size: 24px;
    }
}