/* 
Theme Name: notebook暖棕手账 
Theme URI: 
Author: 自定义 
Description: 独创复古手账风博客模板 
Version: 1.0 
License: GPLv2 
Tags: 复古, 手账, 瀑布流, 自适应, 无外链 
*/ 
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: system-ui, "PingFang SC", sans-serif; 
} 
/* 暖棕手账配色变量 */ 
:root { 
    --primary: #8B4513; /* 焦糖棕主色 */ 
    --secondary: #D2B48C; /* 奶咖辅助色 */ 
    --bg: #FAF3E0; /* 米黄背景 */ 
    --card: #FFF9EF; /* 信纸卡片色 */ 
    --border: #E6D5B8; /* 浅棕边框 */ 
    --text1: #5C3A21; /* 深棕文本 */ 
    --text2: #8B6F4E; /* 浅棕文本 */ 
    --radius: 8px; 
    --shadow: 0 3px 10px rgba(139, 69, 19, 0.1); 
} 
body { 
    background: var(--bg) url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAKUlEQVQYlWNgYGD4z8DAwMgABXAGNgGwSgwVAFbmAgXQdISfAAAAAElFTkSuQmCC') repeat; 
    color: var(--text1); 
    line-height: 1.7; 
} 
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: .3s; 
} 
a:hover { 
    opacity: .8; 
} 
/* 独创左侧固定毛玻璃作者边栏 历史首次使用 */ 
.author-sidebar { 
    position: fixed; 
    left: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 220px; 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 25px; 
    text-align: center; 
    box-shadow: var(--shadow); 
    z-index: 999; 
} 
.author-avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--secondary); 
    margin-bottom: 12px; 
} 
.author-name { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--primary); 
    margin-bottom: 6px; 
} 
.author-desc { 
    font-size: 12px; 
    color: var(--text2); 
    margin-bottom: 20px; 
} 
.author-nav { 
    list-style: none; 
    font-size: 14px; 
} 
.author-nav li { 
    margin-bottom: 10px; 
    padding: 8px 0; 
    border-bottom: 1px dashed var(--border); 
} 
.author-nav a.current-menu-item { 
    color: var(--primary); 
    font-weight: 600; 
} 
.hamburger { 
    display: none; 
    position: fixed; 
    top: 20px; 
    left: 20px; 
    width: 40px; 
    height: 40px; 
    background: var(--primary); 
    color: #fff; 
    border-radius: 50%; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    cursor: pointer; 
} 
/* 右侧主内容区 */ 
.main-wrap { 
    margin-left: 270px; 
    padding: 40px 40px 40px 20px; 
    max-width: calc(100% - 270px); 
} 
/* 错落瀑布流卡片 历史首次使用 */ 
.note-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    grid-auto-rows: minmax(100px, auto); 
    grid-auto-flow: dense; 
    gap: 20px; 
    margin-bottom: 30px; 
} 
.note-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 20px; 
    box-shadow: var(--shadow); 
    position: relative; 
    transition: .3s; 
} 
/* 复古胶带装饰 纯代码生成无外链 */ 
.note-card::before { 
    content: ''; 
    position: absolute; 
    top: -8px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 16px; 
    background: rgba(210, 180, 140, 0.4); 
    border-radius: 2px; 
} 
.note-card:hover { 
    transform: translateY(-3px) rotate(1deg); 
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15); 
} 
/* 错落高度 随机占2行 */ 
.note-card:nth-child(3n) { 
    grid-row: span 2; 
} 
.note-thumb img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: var(--radius); 
    margin-bottom: 12px; 
} 
.note-tag { 
    display: inline-block; 
    padding: 2px 8px; 
    background: var(--secondary); 
    color: #fff; 
    font-size: 11px; 
    border-radius: 20px; 
    margin-bottom: 8px; 
} 
.note-title { 
    font-size: 17px; 
    margin-bottom: 8px; 
    line-height: 1.5; 
} 
.note-title a { 
    color: var(--text1); 
} 
.note-excerpt { 
    font-size: 13px; 
    color: var(--text2); 
    margin-bottom: 10px; 
} 
.note-meta { 
    font-size: 12px; 
    color: var(--text2); 
    display: flex; 
    justify-content: space-between; 
} 
/* 分页 复古样式 */ 
.pagination { 
    display: flex; 
    gap: 8px; 
    justify-content: flex-end; 
    margin: 30px 0; 
} 
.page-numbers { 
    padding: 6px 12px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    color: var(--text1); 
} 
.page-numbers.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
} 
/* 猜你喜欢 圆形小图横向滚动 全新样式 */ 
.guess-wrap { 
    margin: 40px 0; 
} 
.guess-wrap h3 { 
    font-size: 18px; 
    margin-bottom: 20px; 
    color: var(--primary); 
} 
.guess-scroll { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding-bottom: 10px; 
} 
.guess-item { 
    min-width: 180px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 30px; 
    padding: 8px 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: .3s; 
} 
.guess-item:hover { 
    border-color: var(--primary); 
} 
.guess-item img { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    object-fit: cover; 
} 
.guess-text { 
    font-size: 13px; 
    flex: 1; 
} 
/* 文章页 复古信纸样式 全新布局 */ 
.letter-wrap { 
    max-width: 800px; 
    margin: 0 auto; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 40px; 
    box-shadow: var(--shadow); 
    margin-bottom: 30px; 
} 
.letter-wrap h1 { 
    font-size: 26px; 
    margin-bottom: 15px; 
    line-height: 1.4; 
    color: var(--primary); 
    text-align: center; 
} 
.letter-meta { 
    font-size: 14px; 
    color: var(--text2); 
    text-align: center; 
    padding-bottom: 15px; 
    border-bottom: 1px dashed var(--border); 
    margin-bottom: 25px; 
} 
.letter-body p { 
    margin-bottom: 15px; 
} 
.letter-body img { 
    max-width: 100%; 
    border-radius: var(--radius); 
    margin: 15px 0; 
    border: 1px solid var(--border); 
} 
.letter-body h2, .letter-body h3 { 
    margin: 25px 0 10px; 
    color: var(--primary); 
} 
/* 相关推荐 6篇 复古回形针卡片 全新样式 */ 
.related-wrap { 
    max-width: 800px; 
    margin: 0 auto 30px; 
} 
.related-wrap h3 { 
    font-size: 18px; 
    margin-bottom: 20px; 
    color: var(--primary); 
} 
.related-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
} 
.related-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 15px; 
    position: relative; 
    transition: .3s; 
} 
/* 回形针装饰 纯代码生成 */ 
.related-card::before { 
    content: ''; 
    position: absolute; 
    top: -8px; 
    right: 15px; 
    width: 12px; 
    height: 25px; 
    border: 2px solid var(--secondary); 
    border-radius: 0 0 6px 6px; 
    border-top: none; 
} 
.related-card:hover { 
    border-color: var(--primary); 
} 
.related-date { 
    font-size: 12px; 
    color: var(--text2); 
    margin-top: 8px; 
} 
/* 面包屑 */ 
.breadcrumb { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 10px 15px; 
    font-size: 13px; 
    color: var(--text2); 
    margin-bottom: 20px; 
} 
/* 底部 */ 
.site-footer { 
    background: var(--card); 
    border-top: 1px solid var(--border); 
    padding: 25px 0; 
    text-align: center; 
    font-size: 14px; 
    color: var(--text2); 
    margin-top: 50px; 
    margin-left: 270px; 
} 
/* 返回顶部 */ 
.back-top { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 40px; 
    height: 40px; 
    background: var(--primary); 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: .3s; 
} 
.back-top.show { 
    opacity: 1; 
    visibility: visible; 
} 
/* 移动端适配 */ 
@media (max-width: 768px) { 
    .hamburger { 
        display: flex; 
    } 
    .author-sidebar { 
        left: -250px; 
        transition: .3s; 
    } 
    .author-sidebar.show { 
        left: 20px; 
    } 
    .main-wrap { 
        margin-left: 0; 
        padding: 80px 20px 20px; 
        max-width: 100%; 
    } 
    .note-grid { 
        grid-template-columns: 1fr; 
    } 
    .note-card:nth-child(3n) { 
        grid-row: span 1; 
    } 
    .pagination { 
        justify-content: center; 
    } 
    .letter-wrap { 
        padding: 20px; 
    } 
    .related-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    .site-footer { 
        margin-left: 0; 
    } 
    .back-top { 
        bottom: 20px; 
        right: 20px; 
    } 
} 
/* ========== 首页随机推荐竖排适配 ========== */ 
/* 隐藏原有横向滚动容器 */ 
.guess-scroll { 
    display: none; 
} 
/* 2列竖排网格 手账风格适配 */ 
.guess-grid-vertical { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 这里改成1fr就是单列竖排，改3就是3列 */ 
    gap: 12px; 
} 
.guess-grid-vertical .guess-item { 
    min-width: auto; 
    justify-content: flex-start; 
    padding: 10px 12px; 
    transition: .3s; 
} 
.guess-grid-vertical .guess-item:hover { 
    transform: translateX(3px); 
    border-color: var(--primary); 
} 
/* 移动端自动转为单列 */ 
@media (max-width: 768px) { 
    .guess-grid-vertical { 
        grid-template-columns: 1fr; 
    } 
} 