/* PDF导出专用样式 - 隐藏网页界面元素 */

/* 隐藏Jekyll博客的meta信息 */
.post-meta,
.post-tags,
.post-categories,
.tags,
.categories,
.page-meta,
.entry-meta {
    display: none !important;
}

/* 隐藏导航元素 */
.navigation,
.post-navigation,
.prev-next,
.pagination,
nav,
.nav,
.navbar,
.breadcrumb {
    display: none !important;
}

/* 隐藏页眉页脚 */
header,
footer,
.header,
.footer,
.site-header,
.site-footer,
.page-header,
.page-footer {
    display: none !important;
}

/* 隐藏侧边栏和菜单 */
.sidebar,
.menu,
.side-menu,
.widget,
.social-links,
.author-info {
    display: none !important;
}

/* 隐藏评论区域 */
.comments,
.comment-section,
.disqus,
#disqus_thread {
    display: none !important;
}

/* 隐藏分享按钮 */
.share-buttons,
.social-share,
.share-links {
    display: none !important;
}

/* 隐藏搜索框 */
.search,
.search-box,
.search-form {
    display: none !important;
}

/* 隐藏相关文章推荐 */
.related-posts,
.recommended,
.more-posts {
    display: none !important;
}

/* 确保主要内容占满宽度 */
.post-content,
.entry-content,
.content,
main,
article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
}

/* 优化打印样式 */
@media print {
    /* 隐藏所有不需要的元素 */
    .post-meta,
    .post-tags,
    .post-categories,
    .navigation,
    .post-navigation,
    header,
    footer,
    .sidebar,
    .comments,
    .share-buttons,
    nav,
    .nav,
    .pagination {
        display: none !important;
    }
    
    /* 确保内容适合页面 */
    body {
        margin: 0;
        padding: 0;
        background: white;
        color: black;
    }
    
    /* 优化标题样式 */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* 避免代码块跨页断开 */
    pre, code {
        page-break-inside: avoid;
    }
    
    /* 避免图片跨页断开 */
    img {
        page-break-inside: avoid;
        max-width: 100% !important;
    }
    
    /* 优化表格样式 */
    table {
        page-break-inside: avoid;
        border-collapse: collapse;
    }
    
    /* 确保链接显示为黑色 */
    a {
        color: black !important;
        text-decoration: none !important;
    }
}

/* 特定Jekyll主题元素隐藏 */
.site-title,
.site-description,
.site-nav,
.trigger,
.page-link,
.rss-subscribe,
.footer-col-wrapper {
    display: none !important;
}

/* 隐藏可能的按钮和交互元素 */
button,
.btn,
.button,
input[type="submit"],
input[type="button"] {
    display: none !important;
}

/* 确保Mermaid图表正常显示 */
.mermaid {
    text-align: center;
    margin: 20px 0;
}

/* 确保代码块样式保持 */
pre {
    background: #f4f4f4 !important;
    border: 1px solid #ddd !important;
    padding: 10px !important;
    overflow-x: auto;
}

code {
    background: #f4f4f4 !important;
    padding: 2px 4px !important;
    border-radius: 3px;
} 