/* 
Theme Name: 杏仁棕极简博客 
Theme URI: https://demo.com/almond-blog/  
Author: 原创开发 
Description: 极简低饱和杏仁棕博客模板，轻量高速，SEO友好 
Version: 1.0 
License: GPL v3 
Tags: blog, minimalist, responsive, brown, seo 
Text Domain: almond-blog 
*/ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 
:root { 
    --primary: #C19A6B; /* 低饱和杏仁棕，高级护眼 */ 
    --primary-light: #F8F3ED; 
    --primary-hover: #AD8555; 
    --text-dark: #333333; 
    --text-gray: #666666; 
    --border: #EAE0D5; 
    --bg: #FCFAF7; 
    --card: #FFFFFF; 
    --shadow: 0 2px 8px rgba(193, 154, 107, 0.06); 
    --radius: 8px; 
} 
body { 
    font-family: "Inter", "Noto Sans SC", "PingFang SC", sans-serif; 
    line-height: 1.7; 
    color: var(--text-dark); 
    background: var(--bg); 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: 0.3s ease; 
} 
a:hover { 
    color: var(--primary-hover); 
} 
img { 
    max-width: 100%; 
    height: auto; 
    border-radius: var(--radius); 
} 
.almond-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 18px; 
} 
 
/* 头部 */ 
.almond-header { 
    background: var(--card); 
    box-shadow: var(--shadow); 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    border-bottom: 1px solid var(--border); 
} 
.almond-header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.almond-logo h1 { 
    font-size: 1.7rem; 
    color: var(--primary); 
    font-weight: 700; 
} 
.almond-nav ul { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
} 
.almond-nav a { 
    color: var(--text-dark); 
    font-weight: 500; 
    padding: 0.5rem 0; 
    border-bottom: 2px solid transparent; 
} 
.almond-nav a:hover, .almond-nav .current-menu-item a { 
    color: var(--primary); 
    border-color: var(--primary); 
} 
.almond-mobile-btn { 
    display: none; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 0.4rem 0.8rem; 
    border-radius: var(--radius); 
    font-size: 1.2rem; 
    cursor: pointer; 
} 
.almond-mobile-nav { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 260px; 
    height: 100vh; 
    background: var(--card); 
    box-shadow: -2px 0 15px rgba(0,0,0,0.05); 
    padding: 2rem; 
    transition: 0.3s ease; 
    z-index: 1000; 
} 
.almond-mobile-nav.show { 
    right: 0; 
} 
.almond-mobile-nav ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    margin-top: 2rem; 
} 
.almond-nav-close { 
    position: absolute; 
    top: 1rem; 
    left: 1rem; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-gray); 
} 
.almond-mask { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(0,0,0,0.4); 
    z-index: 999; 
    display: none; 
} 
.almond-mask.show { 
    display: block; 
} 
 
/* 面包屑 */ 
.almond-breadcrumb { 
    background: var(--card); 
    padding: 0.7rem 1.2rem; 
    border-radius: var(--radius); 
    margin: 1.5rem 0; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
} 
 
/* 核心布局：主内容左+窄侧边栏右 */ 
.almond-content-wrap { 
    display: grid; 
    grid-template-columns: 1fr 280px; 
    gap: 2rem; 
    margin: 1.5rem 0 3rem; 
} 
 
/* 右侧侧边栏 */ 
.almond-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
} 
.almond-widget { 
    background: var(--card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    padding: 1.2rem; 
} 
.almond-widget-title { 
    font-size: 1.1rem; 
    margin-bottom: 1rem; 
    color: var(--primary); 
    font-weight: 600; 
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid var(--primary-light); 
} 
.almond-widget ul { 
    list-style: none; 
} 
.almond-widget ul li { 
    padding: 0.6rem 0; 
    border-bottom: 1px dashed var(--border); 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.95rem; 
} 
.almond-widget ul li:last-child { 
    border-bottom: none; 
} 
.almond-widget ul li span { 
    background: var(--primary-light); 
    color: var(--primary); 
    font-size: 0.75rem; 
    padding: 0.2rem 0.5rem; 
    border-radius: 12px; 
} 
.almond-search-form { 
    display: flex; 
    gap: 0.5rem; 
} 
.almond-search-input { 
    flex: 1; 
    padding: 0.6rem; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    outline: none; 
} 
.almond-search-submit { 
    padding: 0 1rem; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
} 
 
/* 左侧主内容区：极简列表式文章（小图左+文字右） */ 
.almond-main { 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
} 
.almond-post-item { 
    background: var(--card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    display: flex; 
    gap: 1.2rem; 
    padding: 1.2rem; 
    transition: 0.3s ease; 
    border: 1px solid transparent; 
} 
.almond-post-item:hover { 
    border-color: var(--primary); 
    transform: translateX(4px); 
} 
.almond-post-thumb { 
    width: 120px; 
    height: 120px; 
    flex-shrink: 0; 
    overflow: hidden; 
} 
.almond-post-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.3s ease; 
} 
.almond-post-item:hover .almond-post-thumb img { 
    transform: scale(1.1); 
} 
.almond-post-info { 
    flex: 1; 
} 
.almond-post-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    margin-bottom: 0.6rem; 
    line-height: 1.5; 
} 
.almond-post-meta { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
    margin-bottom: 0.6rem; 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
} 
.almond-post-excerpt { 
    color: var(--text-gray); 
    font-size: 0.95rem; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
} 
 
/* 分页导航 */ 
.almond-pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.6rem; 
    margin-top: 1rem; 
} 
.almond-pagination a, .almond-pagination span { 
    padding: 0.5rem 1.1rem; 
    background: var(--card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    font-weight: 500; 
} 
.almond-pagination .current { 
    background: var(--primary); 
    color: #fff; 
} 
/* 文章内分页 */ 
.almond-page-links { 
    padding: 1rem; 
    background: var(--primary-light); 
    border-radius: var(--radius); 
    margin: 1rem 0; 
} 
.almond-page-links a { 
    padding: 0.2rem 0.6rem; 
    background: var(--card); 
    border-radius: 4px; 
    margin: 0 0.2rem; 
} 
 
/* 猜你喜欢随机10篇（5列布局，两排共10个） */ 
.almond-guess-like { 
    background: var(--card); 
    border-radius: var(--radius); 
    padding: 1.5rem; 
    box-shadow: var(--shadow); 
    margin-top: 1rem; 
} 
.almond-guess-like h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
    font-weight: 600; 
} 
.almond-like-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.2rem; 
} 
.almond-like-item { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
} 
.almond-like-thumb { 
    height: 100px; 
    overflow: hidden; 
} 
.almond-like-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
} 
.almond-like-title { 
    font-size: 0.88rem; 
    font-weight: 500; 
    line-height: 1.5; 
    height: 2.6rem; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
} 
 
/* 单篇文章 */ 
.almond-single-wrap { 
    background: var(--card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    padding: 2rem; 
} 
.almond-single-title { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    line-height: 1.4; 
} 
.almond-single-meta { 
    font-size: 0.9rem; 
    color: var(--text-gray); 
    padding-bottom: 1rem; 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 2rem; 
    display: flex; 
    gap: 2rem; 
    flex-wrap: wrap; 
} 
.almond-single-content { 
    margin-bottom: 2rem; 
    font-size: 1.05rem; 
} 
.almond-single-content h2 { 
    font-size: 1.6rem; 
    margin: 2rem 0 1rem; 
    padding-left: 0.8rem; 
    border-left: 3px solid var(--primary); 
} 
.almond-single-content h3 { 
    font-size: 1.3rem; 
    margin: 1.5rem 0 0.8rem; 
} 
.almond-single-content p { 
    margin-bottom: 1rem; 
} 
 
/* 相关文章4篇（2列2行） */ 
.almond-related-wrap { 
    background: var(--card); 
    border-radius: var(--radius); 
    padding: 1.5rem; 
    box-shadow: var(--shadow); 
    margin: 2rem 0; 
} 
.almond-related-wrap h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
    font-weight: 600; 
} 
.almond-related-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.2rem; 
} 
.almond-related-item { 
    padding: 1rem; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    transition: 0.3s ease; 
} 
.almond-related-item:hover { 
    border-color: var(--primary); 
} 
.almond-related-title { 
    font-size: 1rem; 
    font-weight: 500; 
    margin-bottom: 0.5rem; 
} 
.almond-related-date { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
} 
 
/* 底部 */ 
.almond-footer { 
    background: var(--card); 
    border-top: 1px solid var(--border); 
    padding: 2rem 0; 
    text-align: center; 
    color: var(--text-gray); 
    font-size: 0.9rem; 
} 
.almond-backtop { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    width: 48px; 
    height: 48px; 
    background: var(--primary); 
    color: #fff; 
    border-radius: 50%; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 99; 
} 
 
/* 移动端适配 */ 
@media (max-width: 992px) { 
    .almond-content-wrap { 
        grid-template-columns: 1fr; 
    } 
    .almond-sidebar { 
        order: 2; 
    } 
    .almond-main { 
        order: 1; 
    } 
    .almond-like-grid { 
        grid-template-columns: repeat(3, 1fr); 
    } 
} 
@media (max-width: 768px) { 
    .almond-nav { 
        display: none; 
    } 
    .almond-mobile-btn { 
        display: block; 
    } 
    .almond-post-item { 
        flex-direction: column; 
    } 
    .almond-post-thumb { 
        width: 100%; 
        height: 180px; 
    } 
    .almond-like-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    .almond-related-grid { 
        grid-template-columns: 1fr; 
    } 
    .almond-single-wrap { 
        padding: 1.5rem; 
    } 
    .almond-single-title { 
        font-size: 1.5rem; 
    } 
} 