/* 博客文章容器 */
.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 文章主体 */
.blog-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* 文章头部 */
.blog-post-header {
    padding: 2rem 2rem 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.blog-post-date {
    color: #1B3C59;
    font-weight: 500;
}

.blog-post-author {
    color: #1B3C59;
    font-weight: 500;
}

.blog-post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: #f0f4f8;
    color: #1B3C59;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.blog-tag:hover {
    background: #e0e7ef;
}

.blog-post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1B3C59;
    margin: 0 0 1rem;
}

.blog-post-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* 文章主图 */
.blog-post-hero {
    margin: 0 0 2rem;
    position: relative;
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-post-image-caption {
    padding: 0.75rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    background: #f8f9fa;
}

/* 文章内容 */
.blog-post-content {
    padding: 0 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

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

.blog-post-content h2 {
    font-size: 1.8rem;
    color: #1B3C59;
    margin: 2rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    color: #1B3C59;
    margin: 1.5rem 0 1rem;
}

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

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

.blog-post-content blockquote {
    border-left: 4px solid #1B3C59;
    margin: 1.5rem 0;
    padding: 1rem 0 1rem 1.5rem;
    font-style: italic;
    color: #4a5568;
    background: #f8f9fa;
}

/* 文章页脚 */
.blog-post-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
}

/* 分享按钮 */
.blog-post-share {
    margin-bottom: 2rem;
}

.blog-post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1B3C59;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.linkedin {
    background: #0077b5;
}

/* 作者信息 */
.blog-author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.author-avatar svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.author-avatar svg:hover {
    transform: scale(1.05);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0 0 0.5rem;
    color: #1B3C59;
}

.author-info p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* 相关文章 */
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-size: 1.8rem;
    color: #1B3C59;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: #1B3C59;
}

.related-post-card p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 1rem;
    }

    .blog-post-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-content {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }

    .blog-post-footer {
        padding: 1.5rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .blog-author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .blog-author-bio img {
        margin: 0 auto;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .blog-post {
        background: #1a202c;
    }

    .blog-post-title {
        color: #e2e8f0;
    }

    .blog-post-description {
        color: #a0aec0;
    }

    .blog-post-content {
        color: #e2e8f0;
    }

    .blog-post-content h2,
    .blog-post-content h3 {
        color: #e2e8f0;
    }

    .blog-post-content blockquote {
        background: #2d3748;
        color: #a0aec0;
    }

    .blog-post-footer {
        background: #2d3748;
        border-top-color: #4a5568;
    }

    .blog-author-bio {
        background: #2d3748;
    }

    .author-info h3 {
        color: #e2e8f0;
    }

    .author-info p {
        color: #a0aec0;
    }

    .related-post-card {
        background: #2d3748;
    }

    .related-post-card h3 {
        color: #e2e8f0;
    }

    .related-post-card p {
        color: #a0aec0;
    }

    .author-avatar svg circle:first-child {
        fill: url(#bg-gradient);
    }
    
    .author-avatar svg ellipse:first-of-type {
        fill: #e2e2d0;
    }
    
    .author-avatar svg path:nth-of-type(1),
    .author-avatar svg path:nth-of-type(2),
    .author-avatar svg path:nth-of-type(3) {
        fill: #3d2b24;
        stroke: #3d2b24;
    }
    
    .author-avatar svg ellipse:nth-of-type(4),
    .author-avatar svg ellipse:nth-of-type(5) {
        fill: #ffb6c1;
        opacity: 0.5;
    }
}

/* 添加返回博客列表链接的样式 */
.blog-navigation {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1B3C59;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: rgba(230, 236, 241, 0.6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.back-to-blog svg {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-to-blog:hover {
    color: #39A0ED;
    background-color: rgba(230, 236, 241, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-to-blog:hover svg {
    transform: translateX(-3px);
}

/* 深色模式下的返回链接样式 */
@media (prefers-color-scheme: dark) {
    .back-to-blog {
        color: #E2E8F0;
        background-color: rgba(45, 55, 72, 0.6);
    }
    
    .back-to-blog:hover {
        color: #39A0ED;
        background-color: rgba(45, 55, 72, 0.9);
    }
} 