/* =============================================================
   FastAdmin 个人博客系统 - 前台样式
   放在 public/static/blog/css/style.css
   ============================================================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.7;
}

/* 正文排版 */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.9;
    word-wrap: break-word;
}
.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.blog-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}
.blog-content code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}
.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.blog-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1em;
    color: #6c757d;
    margin: 1em 0;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.blog-content th, .blog-content td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}
.blog-content a {
    color: #0d6efd;
}

/* 搜索高亮 */
.search-highlight {
    background: #fff3cd;
    color: #dc3545;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* 卡片微调 */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card-header {
    font-weight: 600;
}

/* 标签云 */
.badge {
    font-weight: 500;
}

/* 响应式侧边栏 */
@media (max-width: 992px) {
    .col-lg-4 {
        margin-top: 1.5rem;
    }
}

/* 页脚 */
footer {
    margin-top: 3rem;
}
