/* 
Theme Name: Azure 蓝色单栏博客 
Theme URI: https://demo.com/azure-blog/  
Author: 原创开发 
Author URI: https://demo.com/  
Description: 蓝色系简约单栏博客模板，SEO友好，自带网站地图、推荐文章、阅读统计等功能 
Version: 1.0 
License: GPL v3 
License URI: https://www.gnu.org/licenses/gpl-3.0.html  
Tags: blog, responsive, blue, single-column, seo 
Text Domain: azure-blog 
*/ 
 
/* 全局重置与变量 */ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 
:root { 
    --primary: #165DFF; 
    --primary-light: #E8F3FF; 
    --primary-hover: #0E42D2; 
    --text-dark: #1D2129; 
    --text-gray: #4E5969; 
    --border: #E5E6EB; 
    --bg: #F2F3F5; 
    --card-bg: #FFFFFF; 
    --shadow: 0 2px 10px rgba(22, 93, 255, 0.08); 
    --radius: 10px; 
} 
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Roboto, sans-serif; 
    line-height: 1.7; 
    color: var(--text-dark); 
    background-color: var(--bg); 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: all 0.3s ease; 
} 
a:hover { 
    color: var(--primary-hover); 
} 
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    border-radius: var(--radius); 
} 
.azb-container { 
    max-width: 1160px; 
    margin: 0 auto; 
    padding: 0 18px; 
} 
 
/* 头部样式 */ 
.azb-header { 
    background: var(--card-bg); 
    box-shadow: var(--shadow); 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    border-bottom: 1px solid var(--border); 
} 
.azb-header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 
.azb-logo h1 { 
    font-size: 1.7rem; 
    color: var(--primary); 
    font-weight: 700; 
} 
.azb-logo p { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
} 
.azb-nav-desktop ul { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
} 
.azb-nav-desktop a { 
    color: var(--text-dark); 
    font-weight: 500; 
    padding: 0.5rem 0; 
    position: relative; 
} 
.azb-nav-desktop a:hover, .azb-nav-desktop .current-menu-item a { 
    color: var(--primary); 
} 
.azb-nav-desktop a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--primary); 
    transition: width 0.3s ease; 
} 
.azb-nav-desktop a:hover::after, .azb-nav-desktop .current-menu-item a::after { 
    width: 100%; 
} 
.azb-mobile-toggle { 
    display: none; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 0.4rem 0.8rem; 
    border-radius: 6px; 
    font-size: 1.2rem; 
    cursor: pointer; 
} 
.azb-mobile-nav { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 280px; 
    height: 100vh; 
    background: var(--card-bg); 
    box-shadow: -2px 0 15px rgba(0,0,0,0.1); 
    padding: 2rem; 
    transition: right 0.3s ease; 
    z-index: 1000; 
} 
.azb-mobile-nav.show { 
    right: 0; 
} 
.azb-mobile-nav ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
} 
.azb-mobile-nav a { 
    color: var(--text-dark); 
    font-weight: 500; 
    padding: 0.5rem 0; 
    display: block; 
} 
.azb-nav-close { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
} 
.azb-mask { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(0,0,0,0.5); 
    z-index: 999; 
    display: none; 
} 
.azb-mask.show { 
    display: block; 
} 
 
/* 面包屑 */ 
.azb-breadcrumb { 
    background: var(--card-bg); 
    padding: 0.7rem 1.2rem; 
    border-radius: var(--radius); 
    margin: 1.5rem 0; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
    border-left: 3px solid var(--primary); 
} 
 
/* 内容布局 */ 
.azb-content-wrap { 
    display: grid; 
    grid-template-columns: 1fr 300px; 
    gap: 2rem; 
    margin-bottom: 3rem; 
} 
.azb-main-content { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
} 
 
/* 首页单栏横向文章卡片 */ 
.azb-post-item { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    display: flex; 
    gap: 1.5rem; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    border: 1px solid transparent; 
} 
.azb-post-item:hover { 
    border-color: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.12); 
} 
.azb-post-thumb { 
    width: 300px; 
    flex-shrink: 0; 
    overflow: hidden; 
} 
.azb-post-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
    border-radius: 0; 
} 
.azb-post-item:hover .azb-post-thumb img { 
    transform: scale(1.05); 
} 
.azb-post-info { 
    flex: 1; 
    padding: 1.5rem 1.5rem 1.5rem 0; 
} 
.azb-post-title { 
    font-size: 1.4rem; 
    font-weight: 600; 
    margin-bottom: 0.8rem; 
    line-height: 1.5; 
} 
.azb-post-meta { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
    margin-bottom: 0.8rem; 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
} 
.azb-post-excerpt { 
    color: var(--text-gray); 
    margin-bottom: 1rem; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
} 
.azb-readmore { 
    display: inline-block; 
    padding: 0.4rem 1rem; 
    background: var(--primary-light); 
    color: var(--primary); 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 500; 
} 
.azb-readmore:hover { 
    background: var(--primary); 
    color: #fff; 
} 
 
/* 分页 */ 
.azb-pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.8rem; 
    margin-top: 1rem; 
} 
.azb-pagination a, .azb-pagination span { 
    padding: 0.5rem 1.2rem; 
    background: var(--card-bg); 
    border-radius: 6px; 
    box-shadow: var(--shadow); 
    font-weight: 500; 
} 
.azb-pagination .current { 
    background: var(--primary); 
    color: #fff; 
} 
 
/* 你可能感兴趣推荐 */ 
.azb-maybe-like { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    padding: 1.5rem; 
    box-shadow: var(--shadow); 
} 
.azb-maybe-like h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid var(--primary); 
    display: inline-block; 
} 
.azb-like-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
} 
.azb-like-item { 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
} 
.azb-like-thumb { 
    height: 140px; 
    overflow: hidden; 
} 
.azb-like-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
} 
.azb-like-title { 
    font-size: 0.95rem; 
    font-weight: 500; 
    line-height: 1.5; 
    height: 2.7rem; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
} 
 
/* 单篇文章样式 */ 
.azb-single-wrap { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    padding: 2rem; 
} 
.azb-single-title { 
    font-size: 1.9rem; 
    margin-bottom: 1rem; 
    line-height: 1.4; 
} 
.azb-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; 
} 
.azb-single-content { 
    margin-bottom: 2rem; 
} 
.azb-single-content h2 { 
    font-size: 1.6rem; 
    margin: 2rem 0 1rem; 
    padding-left: 0.8rem; 
    border-left: 4px solid var(--primary); 
} 
.azb-single-content h3 { 
    font-size: 1.3rem; 
    margin: 1.5rem 0 0.8rem; 
} 
.azb-single-content p { 
    margin-bottom: 1rem; 
} 
.azb-single-content ul, .azb-single-content ol { 
    margin: 1rem 0 1rem 2rem; 
} 
.azb-single-tags { 
    padding: 1rem 0; 
    border-top: 1px solid var(--border); 
    margin-bottom: 2rem; 
} 
.azb-single-tags a { 
    display: inline-block; 
    padding: 0.3rem 0.8rem; 
    background: var(--primary-light); 
    border-radius: 20px; 
    margin-right: 0.6rem; 
    font-size: 0.85rem; 
    margin-bottom: 0.5rem; 
} 
.azb-single-tags a:hover { 
    background: var(--primary); 
    color: #fff; 
} 
 
/* 上下篇导航 */ 
.azb-post-nav { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
    margin: 2rem 0; 
} 
.azb-nav-item { 
    padding: 1rem; 
    border-radius: 8px; 
    background: var(--primary-light); 
    transition: all 0.3s ease; 
} 
.azb-nav-item:hover { 
    background: var(--primary); 
    color: #fff; 
} 
.azb-nav-item:hover a { 
    color: #fff; 
} 
.azb-nav-item.prev { 
    text-align: left; 
} 
.azb-nav-item.next { 
    text-align: right; 
} 
 
/* 相关文章 */ 
.azb-related-posts { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    padding: 1.5rem; 
    box-shadow: var(--shadow); 
    margin: 2rem 0; 
} 
.azb-related-posts h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
} 
.azb-related-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
} 
.azb-related-item { 
    padding: 1rem; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    transition: all 0.3s ease; 
} 
.azb-related-item:hover { 
    border-color: var(--primary); 
} 
.azb-related-title { 
    font-size: 1rem; 
    font-weight: 500; 
    margin-bottom: 0.5rem; 
} 
.azb-related-date { 
    font-size: 0.8rem; 
    color: var(--text-gray); 
} 
 
/* 侧边栏 */ 
.azb-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
} 
.azb-widget { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    padding: 1.5rem; 
} 
.azb-widget-title { 
    font-size: 1.1rem; 
    margin-bottom: 1.2rem; 
    background: var(--primary-light); 
    color: var(--primary); 
    padding: 0.4rem 1rem; 
    border-radius: 6px; 
    font-weight: 600; 
} 
.azb-widget ul { 
    list-style: none; 
} 
.azb-widget ul li { 
    padding: 0.6rem 0; 
    border-bottom: 1px dashed var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.95rem; 
} 
.azb-widget ul li:last-child { 
    border-bottom: none; 
} 
.azb-widget ul li span { 
    background: var(--primary-light); 
    color: var(--primary); 
    font-size: 0.75rem; 
    padding: 0.2rem 0.5rem; 
    border-radius: 12px; 
} 
.azb-search-form { 
    display: flex; 
    gap: 0.5rem; 
} 
.azb-search-input { 
    flex: 1; 
    padding: 0.6rem; 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    outline: none; 
    transition: border-color 0.3s ease; 
} 
.azb-search-input:focus { 
    border-color: var(--primary); 
} 
.azb-search-submit { 
    padding: 0 1rem; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 500; 
} 
.azb-tag-cloud a { 
    display: inline-block; 
    padding: 0.3rem 0.7rem; 
    background: var(--primary-light); 
    border-radius: 20px; 
    margin: 0.3rem 0.2rem; 
    font-size: 0.85rem !important; 
} 
.azb-tag-cloud a:hover { 
    background: var(--primary); 
    color: #fff; 
} 
 
/* 底部+网站地图 */ 
.azb-footer { 
    background: var(--card-bg); 
    box-shadow: 0 -2px 10px rgba(22, 93, 255, 0.05); 
    padding: 3rem 0 1.5rem; 
    border-top: 1px solid var(--border); 
} 
.azb-sitemap { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr 1fr; 
    gap: 2.5rem; 
    margin-bottom: 2rem; 
    padding-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
} 
.azb-sitemap-col h4 { 
    font-size: 1.2rem; 
    color: var(--primary); 
    margin-bottom: 1.2rem; 
    font-weight: 700; 
} 
.azb-sitemap-col p { 
    color: var(--text-gray); 
    line-height: 1.8; 
    margin-bottom: 1rem; 
} 
.azb-sitemap-col ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 0.6rem; 
} 
.azb-copyright { 
    text-align: center; 
    color: var(--text-gray); 
    font-size: 0.9rem; 
} 
.azb-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; 
    font-size: 1.3rem; 
    cursor: pointer; 
    z-index: 99; 
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3); 
} 
 
/* 移动端适配 */ 
@media (max-width: 992px) { 
    .azb-post-item { 
        flex-direction: column; 
    } 
    .azb-post-thumb { 
        width: 100%; 
        height: 200px; 
    } 
    .azb-post-info { 
        padding: 0 1.5rem 1.5rem 1.5rem; 
    } 
    .azb-like-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
} 
@media (max-width: 768px) { 
    .azb-nav-desktop { 
        display: none; 
    } 
    .azb-mobile-toggle { 
        display: block; 
    } 
    .azb-content-wrap { 
        grid-template-columns: 1fr; 
    } 
    .azb-like-grid { 
        grid-template-columns: 1fr; 
    } 
    .azb-related-grid { 
        grid-template-columns: 1fr; 
    } 
    .azb-post-nav { 
        grid-template-columns: 1fr; 
    } 
    .azb-single-wrap { 
        padding: 1.5rem; 
    } 
    .azb-single-title { 
        font-size: 1.5rem; 
    } 
    .azb-sitemap { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    } 
} 
.azb-container, .container { 
    max-width: 1200px !important; /* 可自定义数值，比如改成1100/1300调整宽度 */ 
    width: 100% !important; 
    margin: 0 auto !important; 
    padding: 0 18px !important; 
} 