/* 
Theme Name: gray_blue浅灰蓝调 
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: #334155; 
    --bg: #f8fafc; 
    --card: #ffffff; 
    --border: #e2e8f0; 
    --text1: #1e293b; 
    --text2: #64748b; 
    --radius: 8px; 
} 
body { 
    background: var(--bg); 
    color: var(--text1); 
    line-height: 1.6; 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: .2s; 
} 
a:hover { 
    color: var(--primary); 
    opacity: .8; 
} 
.container { 
    max-width: 1150px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 
/* 顶部导航 全新样式 */ 
.site-header { 
    background: var(--card); 
    border-bottom: 1px solid var(--border); 
    padding: 14px 0; 
    margin-bottom: 25px; 
} 
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.site-logo { 
    font-size: 19px; 
    font-weight: 700; 
    color: var(--primary); 
} 
.nav-list { 
    display: flex; 
    gap: 28px; 
    list-style: none; 
} 
.nav-list a { 
    color: var(--text1); 
    font-size: 14px; 
    font-weight: 500; 
} 
.nav-list a:hover { 
    color: var(--primary); 
} 
.nav-toggle { 
    display: none; 
    color: var(--primary); 
    font-size: 18px; 
    cursor: pointer; 
} 
/* 双栏布局 */ 
.grid-wrap { 
    display: grid; 
    grid-template-columns: 1fr 290px; 
    gap: 25px; 
} 
/* 首页全新左图右文文章结构 历史首次使用 */ 
.article-card { 
    display: grid; 
    grid-template-columns: 200px 1fr; 
    gap: 20px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 15px; 
    margin-bottom: 15px; 
    transition: .2s; 
} 
.article-card:hover { 
    box-shadow: 0 2px 12px rgba(51, 65, 85, 0.05); 
} 
.article-thumb img { 
    width: 100%; 
    height: 130px; 
    object-fit: cover; 
    border-radius: var(--radius); 
} 
.article-info { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
} 
.article-title { 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    line-height: 1.4; 
} 
.article-title a { 
    color: var(--text1); 
} 
.article-title a:hover { 
    color: var(--primary); 
} 
.article-meta { 
    font-size: 13px; 
    color: var(--text2); 
    margin-bottom: 8px; 
} 
.article-excerpt { 
    font-size: 14px; 
    color: var(--text2); 
    line-height: 1.5; 
} 
/* 分页 全新样式 */ 
.pagination { 
    display: flex; 
    gap: 7px; 
    margin: 25px 0; 
} 
.page-item { 
    padding: 7px 14px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    color: var(--text1); 
    font-size: 14px; 
} 
.page-item.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
} 
/* 猜你喜欢 10篇 2列边框卡片 全新样式 */ 
.random-wrap { 
    margin: 30px 0; 
} 
.random-wrap h3 { 
    font-size: 17px; 
    margin-bottom: 15px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid var(--border); 
} 
.random-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
} 
.random-item { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 12px 15px; 
    font-size: 14px; 
    transition: .2s; 
} 
.random-item:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
} 
.random-item a { 
    color: var(--text1); 
} 
.random-item:hover a { 
    color: var(--primary); 
} 
.random-meta { 
    font-size: 12px; 
    color: var(--text2); 
    margin-top: 4px; 
} 
/* 右侧悬浮侧边栏 */ 
.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: 8px 12px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    background: var(--bg); 
    font-size: 14px; 
} 
/* 文章页样式 */ 
.post-wrap { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 30px; 
    margin-bottom: 20px; 
} 
.post-wrap h1 { 
    font-size: 24px; 
    margin-bottom: 12px; 
    line-height: 1.4; 
} 
.post-meta { 
    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 { 
    padding: 10px 0; 
    border-bottom: 1px dashed var(--border); 
    font-size: 14px; 
} 
.related-item:last-child { 
    border-bottom: none; 
} 
.related-item a { 
    color: var(--text1); 
} 
.related-item a:hover { 
    text-decoration: underline; 
    color: var(--primary); 
} 
.related-date { 
    font-size: 12px; 
    color: var(--text2); 
    margin-top: 3px; 
} 
/* 面包屑 */ 
.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: 38px; 
    height: 38px; 
    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(--card); 
        flex-direction: column; 
        gap: 0; 
        display: none; 
        border-bottom: 1px solid var(--border); 
    } 
    .nav-list.show { 
        display: flex; 
    } 
    .nav-list li { 
        padding: 12px 20px; 
        border-bottom: 1px solid var(--border); 
    } 
    .nav-toggle { 
        display: block; 
    } 
    .grid-wrap { 
        grid-template-columns: 1fr; 
    } 
    .sidebar { 
        order: -1; 
        position: static; 
    } 
    .article-card { 
        grid-template-columns: 1fr; 
    } 
    .article-thumb img { 
        height: 160px; 
    } 
    .random-grid { 
        grid-template-columns: 1fr; 
    } 
    .post-wrap { 
        padding: 20px; 
    } 
    .back-top { 
        bottom: 20px; 
        right: 20px; 
    } 
} 