/* =========================================
   博客详情页样式 (Blog Single Page)
   主色: var(--brand-blue, #2793ff)
   ========================================= */

.blog-single-page {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 80vh;
}

.blog-single-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* =========================================
   左侧边栏
   ========================================= */
.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-blue, #2793ff);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #1a7acc;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(39, 147, 255, 0.3);
}

.back-btn i {
    font-size: 14px;
}

/* 侧边栏小工具 */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 20px;
    color: var(--brand-blue, #2793ff);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
}

/* 最新文章列表 */
.latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-link:hover {
    transform: translateX(5px);
}

.post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 15px;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link:hover .post-title {
    color: var(--brand-blue, #2793ff);
}

.post-date {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    color: var(--brand-blue, #2793ff);
}

/* =========================================
   右侧主内容
   ========================================= */
.blog-single-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 文章标题 */
.single-title {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 800;
}

/* 文章元信息 */
.single-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--brand-blue, #2793ff);
    font-size: 16px;
}

.meta-item a {
    color: var(--brand-blue, #2793ff);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* 特色图片 */
.single-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: #2d3748;
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.single-content h2 { font-size: 28px; }
.single-content h3 { font-size: 24px; }
.single-content h4 { font-size: 20px; }

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.single-content ul,
.single-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-content li {
    margin-bottom: 10px;
}

.single-content blockquote {
    border-left: 4px solid var(--brand-blue, #2793ff);
    padding: 15px 25px;
    margin: 25px 0;
    background: #f7fafc;
    font-style: italic;
    color: #4a5568;
}

.single-content a {
    color: var(--brand-blue, #2793ff);
    text-decoration: underline;
}

/* 标签 */
.single-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.single-tags strong {
    color: #2d3748;
    margin-right: 10px;
}

.single-tags a {
    display: inline-block;
    background: #eff6ff;
    color: var(--brand-blue, #2793ff);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.single-tags a:hover {
    background: var(--brand-blue, #2793ff);
    color: #fff;
}

/* 文章导航（上一篇/下一篇） */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--brand-blue, #2793ff);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 147, 255, 0.2);
}

.nav-previous i,
.nav-next i {
    font-size: 14px;
    flex-shrink: 0;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    justify-content: flex-end;
}

/* =========================================
    移动端适配 (< 992px)
   ========================================= */
@media (max-width: 992px) {
    .blog-single-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        order: 2; /* 侧边栏放下面 */
    }
    
    .blog-single-content {
        width: 100%;
        padding: 30px 20px;
    }
    
    .single-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog-single-page {
        padding: 40px 0;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .single-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next a {
        justify-content: flex-start;
    }
}