/* CSS变量定义 */
:root {
    /* 主要颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #f0f0f0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --accent-color: #007acc;
    --shadow-color: rgba(0, 0, 0, 0.1);
}



/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "LXGW WenKai", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-primary);
    box-shadow: 0 1px 3px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}



.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 25px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--text-secondary);
}

.nav-menu ul li a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* 主内容区样式 */
.main-content {
    padding: 20px 0;
}

/* 内容包装器 - 左右两栏布局 */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* 移除欢迎横幅样式 */
.welcome-banner {
    display: none;
}

/* 文章卡片 */
.post-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.post-card .post-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-card .post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: var(--text-secondary);
}

/* 文章元信息 */
.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-card .post-date {
    color: var(--text-tertiary);
}

.post-card .post-tags {
    display: flex;
    gap: 8px;
}

.post-card .post-tags a {
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: var(--bg-tertiary);
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.post-card .post-tags a:hover {
    background-color: var(--border-color);
}

/* 文章摘要 */
.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 搜索框 */
.search-box {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px var(--shadow-color);
    margin-bottom: 25px;
}

.search-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.search-form {
    display: flex;
    gap: 5px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--border-color);
}

.search-button {
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--border-color);
}

/* 搜索结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
    margin-bottom: 20px;
}

/* 搜索高亮（可选，可根据需要启用） */
.search-highlight {
    background-color: #ffff00;
    color: #333;
    padding: 0 2px;
    border-radius: 2px;
}

/* 标签筛选 */
.tag-filter {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.tag-filter h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.tag-item.active {
    background-color: var(--accent-color);
    color: white;
}

/* 播客网格和卡片 */
.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.podcast-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.podcast-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.podcast-content {
    padding: 20px;
}

.podcast-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.podcast-meta i {
    margin-right: 5px;
}

.podcast-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.podcast-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.podcast-title a:hover {
    color: #87CEEB;
}

.podcast-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.podcast-player {
    margin-top: 20px;
}

.podcast-player audio {
    width: 100%;
}

/* 专栏网格和卡片 */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.column-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.column-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.column-content {
    padding: 20px;
}

.column-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.column-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.column-title a:hover {
    color: #87CEEB;
}

.column-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.column-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.column-stats i {
    margin-right: 5px;
}

/* 移除查看全部链接样式 */
.view-all {
    display: none;
}

/* 文章详情页样式 */
.post-content {
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 20px;
    margin-bottom: 20px;
}

/* 控制Markdown内容中的图片尺寸 */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 确保动态加载的内容也应用图片样式 */
.post-content #post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 尊重图片的内联样式 */
.post-content img[style*="width"],
.post-content #post-body img[style*="width"] {
    max-width: none;
}

/* 处理zoom属性的兼容性 */
.post-content img[style*="zoom"],
.post-content #post-body img[style*="zoom"] {
    max-width: none;
    width: auto;
}

.post-content .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-content .post-tags {
    display: flex;
    gap: 8px;
}

.post-content .post-tags a {
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: var(--bg-tertiary);
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.post-content .post-tags a:hover {
    background-color: var(--border-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-tertiary);
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    margin-right: 10px;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #87CEEB;
}

/* 微信二维码样式 */
.wechat-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* 确保容器能够接收悬停事件 */
.wechat-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: 1000;
}

.wechat-qr {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.wechat-qr img {
    display: block;
    width: 120px;
    height: auto;
}

.wechat-container:hover .wechat-qr {
    opacity: 1;
    visibility: visible;
}

/* 确保微信图标链接不会阻止悬停事件 */
.wechat-container a {
    z-index: 1001;
}

/* 确保二维码始终在最上层显示 */
.wechat-qr {
    z-index: 1002 !important;
}

.footer-bottom {
    text-align: center;
    padding: 20px 10px 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-bottom a {
    text-decoration: none !important;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-bottom a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.back-to-top {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu ul li {
        margin-left: 20px;
    }
    
    .nav-menu ul li a {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .post-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .welcome-banner {
        padding: 30px 15px;
    }
    
    .welcome-banner h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .post-meta,
    .podcast-meta,
    .column-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding: 15px 5px 10px;
    }
}

/* 320px以下屏幕适配 */
@media (max-width: 320px) {
    .footer-bottom {
        font-size: 11px;
        padding: 12px 3px 8px;
    }
}

/* 文章详情页样式 */
.article-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-meta i {
    margin-right: 5px;
}

.article-content {
    line-height: 2;
    color: #333;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid #87CEEB;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    padding: 0;
    background-color: transparent;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags h4 {
    margin-bottom: 15px;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: #f5f5f5;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag-item:hover {
    background-color: #87CEEB;
    color: #fff;
}

/* 分享按钮 */
.share-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-icons {
    display: flex;
    gap: 15px;
}

.share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.share-icons a:hover {
    background-color: #87CEEB;
    color: #fff;
}

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-nav-link:hover {
    color: #87CEEB;
}

.article-nav-link i {
    font-size: 1.2rem;
}

.article-nav-prev {
    align-items: flex-start;
}

.article-nav-next {
    align-items: flex-end;
}

/* 评论区 */
.comments-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.comments-section h3 {
    margin-bottom: 30px;
    color: #333;
}

.comment-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #87CEEB;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4682B4;
}

/* 分类筛选 */
.category-filter {
    margin-bottom: 30px;
}

.category-filter h4 {
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.category-item.active,
.category-item:hover {
    background-color: #87CEEB;
    color: #fff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #87CEEB;
    color: #fff;
}

/* 关于页面样式 */
.about-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.about-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.about-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.about-info p {
    font-size: 1.2rem;
    color: #666;
}

.about-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 2;
    color: #333;
}

.about-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #333;
}

/* 联系方式 */
.contact-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #333;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    color: #666;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
    background-color: #87CEEB;
    color: #fff;
}

.contact-link i {
    font-size: 1.2rem;
}

/* 订阅区域 */
.subscribe-section {
    background-color: #87CEEB;
    color: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.subscribe-section h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.subscribe-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.subscribe-form button {
    background-color: #fff;
    color: #87CEEB;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #f8f9fa;
}

/* 友情链接页面样式 */
.links-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.links-section h3 {
    margin-bottom: 30px;
    color: #333;
}

.link-category {
    margin-bottom: 40px;
}

.link-category h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #87CEEB;
}

.link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.link-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.link-info h5 {
    margin-bottom: 5px;
    color: #333;
}

.link-info p {
    font-size: 0.9rem;
    color: #666;
}

/* 响应式订阅表单 */
@media (max-width: 768px) {
    .subscribe-form {
        flex-direction: column;
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
    }
    
    .article-detail,
    .comments-section,
    .about-section,
    .links-section {
        padding: 20px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .about-info h2 {
        font-size: 2rem;
    }
}

/* 代码高亮样式 */
.hljs {
    background: #f5f5f5 !important;
    border-radius: 8px;
    padding: 20px !important;
}

/* 图片懒加载 */
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazyloaded {
    opacity: 1;
}

/* 滚动效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}