/* ========== 博客页面专用样式 ========== */

/* 导航栏 */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}
.main-nav {
    display: flex;
    gap: 24px;
}
.main-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #2563eb;
}

/* 博客头部 */
.blog-hero {
    padding: 40px 0 20px;
    text-align: center;
}
.blog-hero h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 8px;
}

/* 博客布局 */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 20px 0 40px;
}

/* 文章卡片 */
.blog-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #94a3b8;
}
.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #2563eb;
}
.blog-card-excerpt {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.read-more:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
}
.page-current,
.page-link,
.page-next {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}
.page-current {
    background: #2563eb;
    color: #fff;
}
.page-link {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.page-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.page-next {
    color: #2563eb;
    font-weight: 500;
}

/* 侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.widget-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}
.widget-list {
    list-style: none;
}
.widget-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.widget-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.widget-list a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}
.widget-list a:hover {
    color: #2563eb;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag:hover {
    background: #2563eb;
    color: #fff;
}

/* 工具推荐 */
.tool-promo-link {
    display: block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}
.tool-promo-link strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.tool-promo-link span {
    font-size: 13px;
    opacity: 0.9;
}

/* 响应式 */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
        order: 2;
    }
    .blog-main {
        order: 1;
    }
    .blog-card {
        padding: 20px;
    }
    .blog-card-title {
        font-size: 18px;
    }
    .nav-wrapper {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== 单篇文章页样式 ========== */

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #94a3b8;
}
.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #2563eb;
}
.breadcrumb span {
    margin: 0 8px;
}

/* 文章页布局 */
.blog-article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #94a3b8;
}
.article-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.article-title {
    font-size: 28px;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-subtitle {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

/* 文章内容 */
.article-content {
    color: #475569;
    line-height: 1.8;
    font-size: 16px;
}
.article-content h2 {
    font-size: 22px;
    color: #1e293b;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}
.article-content h3 {
    font-size: 18px;
    color: #334155;
    margin: 24px 0 12px;
}
.article-content p {
    margin-bottom: 16px;
}
.article-content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content a {
    color: #2563eb;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
.article-content strong {
    color: #1e293b;
}

/* 文章底部CTA */
.article-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}
.article-cta h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 8px;
}
.article-cta p {
    color: #64748b;
    margin-bottom: 20px;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}
.related-articles h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.related-title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 14px;
}
.related-desc {
    display: block;
    color: #64748b;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .blog-article {
        padding: 24px;
    }
    .article-title {
        font-size: 22px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-cta {
        padding: 24px;
    }
}

