/* 博客和白皮书专用样式 - blog.css */

/* =================== 文章内容样式 =================== */
.article-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 40px;
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 24px;
}

.article-intro {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
    border-left: 4px solid #2a7de1;
    padding-left: 16px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 24px;
    color: #192638;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 32px 0 20px;
    color: #192638;
}

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

.article-content ul, 
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.article-content blockquote {
    background-color: #f8f9fb;
    border-left: 4px solid #2a7de1;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 4px;
}

.article-content blockquote p {
    margin: 0;
}

/* =================== 文章元数据 =================== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: #777;
}

.post-meta i {
    margin-right: 6px;
    color: #2a7de1;
}

.post-meta a {
    color: #777;
}

.post-meta a:hover {
    color: #2a7de1;
}

/* =================== 文章标签和分享 =================== */
.article-tags {
    margin: 40px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-tags span {
    font-weight: 500;
}

.article-tags a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f5ff;
    color: #2a7de1;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.article-tags a:hover {
    background-color: #2a7de1;
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 16px;
}

.article-share span {
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f5ff;
    color: #2a7de1;
    transition: all 0.3s;
}

.share-button:hover {
    background-color: #2a7de1;
    color: white;
}

/* =================== 作者信息 =================== */
.author-bio {
    display: flex;
    background-color: #f8f9fb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
}

.author-avatar {
    margin-right: 20px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-info p {
    color: #555;
    margin-bottom: 16px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7f4;
    color: #2a7de1;
    border-radius: 50%;
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: #2a7de1;
    color: white;
}

/* =================== 相关文章 =================== */
.related-posts {
    margin-bottom: 60px;
}

.related-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #192638;
}

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

.related-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.related-image {
    position: relative;
}

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

.related-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background-color: #2a7de1;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-content p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

/* =================== 评论部分 =================== */
.article-comments {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #192638;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-form h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.comments-list {
    margin-top: 40px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
}

.comment-avatar {
    margin-right: 20px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 500;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-text {
    margin-bottom: 16px;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.comment-actions a {
    font-size: 0.9rem;
    color: #777;
}

.comment-actions a:hover {
    color: #2a7de1;
}

.comment.reply {
    margin-left: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

/* =================== 侧边栏博客专用部件 =================== */

/* 下载表单小部件 */
.download-content {
    margin-top: 20px;
}

.download-content p {
    margin-bottom: 20px;
    color: #555;
}

/* 推荐白皮书 */
.rec-paper {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rec-paper:last-child {
    border-bottom: none;
}

.rec-paper img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 16px;
}

.rec-paper-info {
    flex: 1;
}

.rec-paper-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.rec-paper-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* 目录导航 */
.toc ul {
    list-style: none;
    padding: 0;
}

.toc ul li {
    margin-bottom: 12px;
}

.toc ul li a {
    color: #555;
    transition: color 0.3s;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

.toc ul li a:hover {
    background-color: #f0f5ff;
    color: #2a7de1;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f5ff;
    color: #2a7de1;
    border-radius: 4px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: #2a7de1;
    color: white;
}

.tag-cloud .tag-xl {
    font-size: 1.2rem;
}

.tag-cloud .tag-l {
    font-size: 1.1rem;
}

.tag-cloud .tag-m {
    font-size: 1rem;
}

.tag-cloud .tag-s {
    font-size: 0.9rem;
}

/* =================== 响应式调整 =================== */
@media (max-width: 768px) {
    .article-content {
        padding: 24px;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .author-bio {
        flex-direction: column;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
}

/* =================== 博客列表页样式 =================== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background-color: #2a7de1;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #192638;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #2a7de1;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0f5ff;
    color: #2a7de1;
}

.pagination span.current {
    background-color: #2a7de1;
    color: white;
}

/* =================== 白皮书列表样式 =================== */
.whitepaper-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.whitepaper-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.whitepaper-cover {
    padding: 30px;
    text-align: center;
    background-color: #f8f9fb;
}

.whitepaper-cover img {
    max-width: 180px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.whitepaper-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whitepaper-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.whitepaper-title a {
    color: #192638;
    transition: color 0.3s;
}

.whitepaper-title a:hover {
    color: #2a7de1;
}

.whitepaper-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.whitepaper-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 16px;
}

.whitepaper-meta span {
    display: inline-block;
    margin-right: 16px;
}

/* =================== 白皮书下载表单 =================== */
.whitepaper-download {
    text-align: center;
    margin-bottom: 24px;
}

.whitepaper-download img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.whitepaper-download h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #192638;
}

.download-form {
    margin-top: 24px;
}

/* 路径导航 */
.breadcrumbs {
    margin-bottom: 30px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #555;
}

.breadcrumbs a:hover {
    color: #2a7de1;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #aaa;
}

.breadcrumbs .current {
    color: #2a7de1;
} 