/* 
Theme Name: simple_blog极简博客 
Theme URI: https://example.com  
Author: 自定义 
Description: 自适应SEO友好简洁博客主题 
Version: 1.0 
License: GPLv2 
Tags: 自适应, 简洁, SEO, 博客 
*/ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: system-ui, -apple-system, sans-serif; 
} 
:root { 
    --primary: #2563eb; 
    --gray-1: #f8fafc; 
    --gray-2: #e2e8f0; 
    --gray-3: #64748b; 
    --gray-4: #1e293b; 
    --radius: 8px; 
} 
body { 
    background: var(--gray-1); 
    color: var(--gray-4); 
    line-height: 1.7; 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: .3s; 
} 
a:hover { 
    opacity: .8; 
} 
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
.grid-layout { 
    display: grid; 
    grid-template-columns: 1fr 300px; 
    gap: 30px; 
    margin: 30px 0; 
} 
/* 导航 */ 
.site-header { 
    background: #fff; 
    border-bottom: 1px solid var(--gray-2); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 99; 
} 
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.site-title { 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--gray-4); 
} 
.nav-menu { 
    display: flex; 
    gap: 25px; 
    list-style: none; 
} 
.nav-menu a { 
    color: var(--gray-4); 
    font-weight: 500; 
} 
.nav-menu a:hover { 
    color: var(--primary); 
} 
/* 文章卡片 */ 
.post-card { 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 20px; 
    margin-bottom: 20px; 
} 
.post-thumb img { 
    width: 100%; 
    height: 160px; 
    object-fit: cover; 
    border-radius: var(--radius); 
    margin-bottom: 12px; 
} 
.post-title { 
    font-size: 20px; 
    margin-bottom: 8px; 
    line-height: 1.4; 
} 
.post-title a { 
    color: var(--gray-4); 
} 
.post-title a:hover { 
    color: var(--primary); 
} 
.post-meta { 
    color: var(--gray-3); 
    font-size: 13px; 
    margin-bottom: 10px; 
    display: flex; 
    gap: 15px; 
} 
.post-excerpt { 
    color: var(--gray-3); 
    font-size: 14px; 
    margin-bottom: 12px; 
} 
.read-more { 
    font-size: 14px; 
    font-weight: 500; 
} 
/* 侧边栏 */ 
.sidebar-widget { 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 18px; 
    margin-bottom: 20px; 
} 
.widget-title { 
    font-size: 16px; 
    margin-bottom: 12px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--gray-2); 
} 
.widget-list { 
    list-style: none; 
    font-size: 14px; 
} 
.widget-list li { 
    padding: 6px 0; 
    border-bottom: 1px dashed var(--gray-2); 
} 
.widget-list li:last-child { 
    border: none; 
} 
.search-form input { 
    width: 100%; 
    padding: 8px 12px; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
} 
/* 文章页 */ 
.single-content { 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 30px; 
} 
.single-content h1 { 
    font-size: 26px; 
    margin-bottom: 12px; 
    line-height: 1.4; 
} 
.single-content .post-meta { 
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--gray-2); 
} 
.content-body { 
    color: var(--gray-4); 
} 
.content-body p { 
    margin-bottom: 15px; 
} 
.content-body img { 
    max-width: 100%; 
    border-radius: var(--radius); 
    margin: 15px 0; 
} 
/* 分页 */ 
.pagination { 
    display: flex; 
    gap: 8px; 
    margin: 20px 0; 
} 
.page-numbers { 
    padding: 6px 12px; 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    color: var(--gray-4); 
} 
.page-numbers.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
} 
/* 猜你喜欢（首页随机推荐10篇） */ 
.guess-like { 
    margin: 40px 0; 
} 
.guess-like h3 { 
    font-size: 20px; 
    margin-bottom: 20px; 
} 
.guess-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
} 
.guess-item { 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 12px; 
    font-size: 14px; 
} 
.guess-item img { 
    width: 100%; 
    height: 100px; 
    object-fit: cover; 
    border-radius: var(--radius); 
    margin-bottom: 8px; 
} 
/* 相关文章（文章页4篇，样式和猜你喜欢不同） */ 
.related-posts { 
    margin: 30px 0; 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 20px; 
} 
.related-posts h3 { 
    font-size: 18px; 
    margin-bottom: 15px; 
} 
.related-list { 
    list-style: none; 
} 
.related-list li { 
    padding: 8px 0; 
    border-bottom: 1px dashed var(--gray-2); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.related-list li:last-child { 
    border: none; 
} 
.related-date { 
    font-size: 12px; 
    color: var(--gray-3); 
} 
/* 上下篇导航 */ 
.post-nav { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin: 20px 0; 
} 
.nav-item { 
    background: #fff; 
    border: 1px solid var(--gray-2); 
    border-radius: var(--radius); 
    padding: 15px; 
    font-size: 14px; 
} 
.nav-item:last-child { 
    text-align: right; 
} 
/* 底部 */ 
.site-footer { 
    background: #fff; 
    border-top: 1px solid var(--gray-2); 
    padding: 20px 0; 
    text-align: center; 
    font-size: 14px; 
    color: var(--gray-3); 
    margin-top: 40px; 
} 
/* 移动端适配 */ 
@media (max-width: 768px) { 
    .grid-layout { 
        grid-template-columns: 1fr; 
    } 
    .nav-menu { 
        gap: 15px; 
        font-size: 14px; 
    } 
    .guess-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    .post-nav { 
        grid-template-columns: 1fr; 
    } 
    .single-content { 
        padding: 20px; 
    } 
} 