/* 单篇文章页面样式 */
.single-post-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 文章头部 */
.single-post-header {
    background: white;
    padding: 2rem 0 3rem 0;
    margin-top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 面包屑导航 */
.single-post-breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 0.75rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.breadcrumb-list a {
    color: #2e4e7e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #1e3c72;
}

.breadcrumb-list .current {
    color: #6c757d;
    font-weight: 500;
    word-break: break-word;
}

/* 文章标题 */
.single-post-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    color: #2e4e7e;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* 文章元信息 */
.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-icon {
    font-size: 1rem;
}

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

.meta-text a:hover {
    color: #2e4e7e;
}

/* 特色图片 */
.single-post-featured-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 内容区域 */
.single-post-content-wrapper {
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem 0;
}

.single-post-nav-top {
    margin-bottom: 2rem;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.back-to-blog-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 文章内容 */
.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    color: #2e4e7e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.single-post-content h2 {
    font-size: 1.8rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content h4 {
    font-size: 1.3rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2e4e7e;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

/* 文章标签 */
.single-post-tags {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-bottom: 3rem;
}

.single-post-tags h4 {
    color: #2e4e7e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag {
    display: inline-block;
    background: linear-gradient(135deg, #2e4e7e 0%, #1e3c72 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 78, 126, 0.2);
}

.post-tag:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2e4e7e 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 78, 126, 0.3);
}

/* 文章导航 */
.single-post-navigation {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-bottom: 3rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: block;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: white;
    border-color: #2e4e7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 78, 126, 0.1);
    text-decoration: none;
}

.nav-direction {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    color: #2e4e7e;
    font-weight: 600;
    line-height: 1.3;
}

.next-link {
    text-align: right;
}

.nav-previous:only-child .nav-link,
.nav-next:only-child .nav-link {
    grid-column: 1 / -1;
}

/* 分页链接 */
.page-links {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.page-links a {
    color: #2e4e7e;
    text-decoration: none;
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.page-links a:hover {
    background: #2e4e7e;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-post-container {
        padding: 0 1rem;
    }
    
    .single-post-header {
        margin-top: 80px;
        padding: 1.5rem 0 2rem 0;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .single-post-meta {
        gap: 1rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .post-meta-item {
        font-size: 0.9rem;
    }
    
    .single-post-content-wrapper {
        padding: 2rem 0;
    }
    
    .single-post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .next-link {
        text-align: left;
    }
    
    .tags-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .back-to-blog-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
