/* 
Theme Name: 极简黑白 
Theme URI: 
Author: 自定义 
Description: 极致简洁双栏黑白博客模板 
Version: 1.0 
License: GPLv2 
Tags: 极简, 双栏, 黑白, 自适应, 无外链 
*/ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: system-ui, -apple-system, sans-serif; 
} 
/* 极简黑白配色变量 */ 
:root { 
    --primary: #212121; 
    --bg: #fafafa; 
    --card: #ffffff; 
    --border: #eeeeee; 
    --text1: #212121; 
    --text2: #757575; 
    --radius: 4px; 
} 
body { 
    background: var(--bg); 
    color: var(--text1); 
    line-height: 1.6; 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: .2s; 
} 
a:hover { 
    opacity: .7; 
} 
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
/* 顶部纯黑导航 */ 
.site-header { 
    background: var(--primary); 
    padding: 14px 0; 
    margin-bottom: 30px; 
} 
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.site-logo { 
    color: #fff; 
    font-size: 18px; 
    font-weight: 700; 
} 
.nav-list { 
    display: flex; 
    gap: 25px; 
    list-style: none; 
} 
.nav-list a { 
    color: #fff; 
    font-size: 14px; 
} 
.nav-toggle { 
    display: none; 
    color: #fff; 
    font-size: 18px; 
    cursor: pointer; 
} 
/* 双栏布局 */ 
.grid-layout { 
    display: grid; 
    grid-template-columns: 1fr 280px; 
    gap: 30px; 
} 
/* 主内容列表 极简样式 */ 
.post-item { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 20px; 
    margin-bottom: 15px; 
    transition: .2s; 
} 
.post-item:hover { 
    background: #f9f9f9; 
} 
.post-title { 
    font-size: 18px; 
    margin-bottom: 8px; 
    line-height: 1.4; 
} 
.post-title a { 
    color: var(--text1); 
} 
.post-meta { 
    font-size: 13px; 
    color: var(--text2); 
    margin-bottom: 8px; 
} 
.post-excerpt { 
    font-size: 14px; 
    color: var(--text2); 
} 
/* 分页 */ 
.pagination { 
    display: flex; 
    gap: 6px; 
    margin: 25px 0; 
} 
.page-numbers { 
    padding: 6px 12px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    color: var(--text1); 
    font-size: 14px; 
} 
.page-numbers.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
} 
/* 猜你喜欢 10篇 4列灰色标签块 全新样式 */ 
.guess-wrap { 
    margin: 30px 0; 
} 
.guess-wrap h3 { 
    font-size: 16px; 
    margin-bottom: 15px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--border); 
} 
.guess-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
} 
.guess-item { 
    background: #f0f0f0; 
    border-radius: var(--radius); 
    padding: 10px 12px; 
    font-size: 14px; 
    transition: .2s; 
} 
.guess-item:hover { 
    background: var(--primary); 
    color: #fff; 
} 
.guess-item:hover a { 
    color: #fff; 
} 
/* 右侧悬浮侧边栏 */ 
.sidebar { 
    position: sticky; 
    top: 20px; 
    height: fit-content; 
} 
.widget { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 18px; 
    margin-bottom: 20px; 
} 
.widget-title { 
    font-size: 15px; 
    margin-bottom: 15px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--border); 
} 
.widget-list { 
    list-style: none; 
    font-size: 14px; 
} 
.widget-list li { 
    padding: 6px 0; 
    border-bottom: 1px solid var(--border); 
} 
.widget-list li:last-child { 
    border-bottom: none; 
} 
.search-form input { 
    width: 100%; 
    padding: 7px 10px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    background: var(--bg); 
    font-size: 14px; 
} 
/* 文章页样式 */ 
.post-content { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 30px; 
    margin-bottom: 20px; 
} 
.post-content h1 { 
    font-size: 24px; 
    margin-bottom: 12px; 
    line-height: 1.4; 
} 
.post-meta-single { 
    font-size: 14px; 
    color: var(--text2); 
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 20px; 
} 
.post-body p { 
    margin-bottom: 15px; 
} 
.post-body img { 
    max-width: 100%; 
    border-radius: var(--radius); 
    margin: 15px 0; 
} 
.post-body h2, .post-body h3 { 
    margin: 20px 0 10px; 
    color: var(--primary); 
} 
/* 相关推荐 6篇 1列带小图列表 全新样式 与猜你喜欢完全不同 */ 
.related-wrap { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 20px; 
    margin-bottom: 20px; 
} 
.related-wrap h3 { 
    font-size: 16px; 
    margin-bottom: 15px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--border); 
} 
.related-list { 
    list-style: none; 
} 
.related-item { 
    display: grid; 
    grid-template-columns: 50px 1fr; 
    gap: 10px; 
    padding: 10px 0; 
    border-bottom: 1px solid var(--border); 
} 
.related-item:last-child { 
    border-bottom: none; 
} 
.related-item img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: var(--radius); 
} 
.related-info { 
    font-size: 14px; 
} 
.related-date { 
    font-size: 12px; 
    color: var(--text2); 
    margin-top: 4px; 
} 
/* 面包屑 */ 
.breadcrumb { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 8px 12px; 
    font-size: 13px; 
    color: var(--text2); 
    margin-bottom: 20px; 
} 
/* 底部 */ 
.site-footer { 
    background: var(--card); 
    border-top: 1px solid var(--border); 
    padding: 20px 0; 
    text-align: center; 
    font-size: 14px; 
    color: var(--text2); 
    margin-top: 40px; 
} 
/* 返回顶部 */ 
.back-top { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 36px; 
    height: 36px; 
    background: var(--primary); 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: .2s; 
    font-size: 14px; 
} 
.back-top.show { 
    opacity: 1; 
    visibility: visible; 
} 
/* 移动端自适应 */ 
@media (max-width: 768px) { 
    .nav-list { 
        position: absolute; 
        top: 54px; 
        left: 0; 
        width: 100%; 
        background: var(--primary); 
        flex-direction: column; 
        gap: 0; 
        display: none; 
    } 
    .nav-list.show { 
        display: flex; 
    } 
    .nav-list li { 
        padding: 12px 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
    } 
    .nav-toggle { 
        display: block; 
    } 
    .grid-layout { 
        grid-template-columns: 1fr; 
    } 
    .sidebar { 
        order: -1; 
        position: static; 
    } 
    .guess-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    .post-content { 
        padding: 20px; 
    } 
    .back-top { 
        bottom: 20px; 
        right: 20px; 
    } 
} 