/* 博客列表样式 */
.blog-header {
    margin-bottom: 30px;
}

.blog-categories {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.blog-categories li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.blog-categories li.active a {
    color: #0066cc;
    font-weight: bold;
}

.blog-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-title {
    margin-top: 0;
    font-size: 24px;
}

.blog-title a {
    color: #333;
    text-decoration: none;
}

.blog-title a:hover {
    color: #0066cc;
}

.blog-meta {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    gap: 0.5rem;
}

.blog-meta div {
    display: inline-flex;
    align-items: center;
}

.blog-summary {
    margin: 15px 0;
    line-height: 1.6;
}

.blog-more a {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
}

.no-posts {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #e5e5e5;
}

.pagination .current {
    margin: 0 10px;
}

/* 博客详情页样式 */
.blog-detail .breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.blog-detail .breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.blog-detail .blog-title {
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.3;
}

.blog-detail .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.blog-detail .author-info {
    display: flex;
    flex-direction: column;
}

.blog-detail .author-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.blog-detail .author-bio {
    color: #666;
    font-size: 14px;
}

.blog-detail .post-date {
    font-size: 14px;
    color: #666;
}

.blog-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 17px;
    color: var(--text-color);
}

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

.blog-content h2, 
.blog-content h3, 
.blog-content h4, 
.blog-content h5, 
.blog-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--header-text);
}

.blog-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 评论区样式 */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.comments {
    margin-bottom: 40px;
}

.comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.comment-body {
    line-height: 1.6;
}

.comment-replies {
    margin-top: 20px;
    margin-left: 30px;
    padding-left: 15px;
    border-left: 3px solid #eee;
}

.comment-reply {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.comment-reply:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.add-comment h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.comment-form textarea {
    height: 120px;
}

.form-actions {
    margin-top: 20px;
}

.submit-btn {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background: #0055aa;
}

.similar-posts {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.similar-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.similar-posts li a {
    color: #333;
    text-decoration: none;
}

.similar-posts li a:hover {
    color: #0066cc;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-detail .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-detail .author-info {
        margin-bottom: 10px;
    }
}

/* Migrated from blog/detail.html */
/* 夜间模式样式 */
.dark-mode .article-nav-widget {
    background-color: #252525;
    border-color: #333;
}

.dark-mode .card-header {
    background-color: #1a1a1a;
    color: #e4e4e4;
    border-color: #333;
}

.dark-mode .article-nav-list,
.dark-mode .list-group-item {
    background-color: #252525;
    color: #e4e4e4;
    border-color: #333;
}

.dark-mode .list-group-item.bg-light {
    background-color: #1a1a1a !important;
}

.dark-mode .article-nav-list a {
    color: #ccc;
}

/* 博客详情页内容区样式 */
.dark-mode .blog-detail {
    color: #e4e4e4;
}

.dark-mode .breadcrumb {
    color: #999;
}

.dark-mode .breadcrumb a {
    color: #e4e4e4;
}

.dark-mode .blog-title {
    color: #e4e4e4;
}

.dark-mode .blog-meta {
    color: #999;
    border-color: #333;
}

.dark-mode .author-name {
    color: #ccc;
}

.dark-mode .post-date {
    color: #e4e4e4;
}

.dark-mode .blog-content {
    color: #ccc;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.dark-mode .blog-content h1,
.dark-mode .blog-content h2,
.dark-mode .blog-content h3,
.dark-mode .blog-content h4,
.dark-mode .blog-content h5,
.dark-mode .blog-content h6 {
    color: var(--text-color);
}

.dark-mode .blog-content p {
    color: #ccc;
}

.dark-mode .blog-content a {
    color: #7a93ff;
}

.dark-mode .blog-content blockquote {
    background-color: rgba(100, 181, 246, 0.1);
    border-color: var(--link-color);
    color: var(--light-muted);
}

.dark-mode .blog-content pre {
    background-color: #252525;
    border-color: #333;
    color: #ccc;
}

.dark-mode .blog-content code {
    background-color: #333;
    color: #ff89a9;
}

.dark-mode .blog-content table {
    border-color: #333;
}

.dark-mode .blog-content th {
    background-color: #252525;
    border-color: #333;
}

.dark-mode .blog-content td {
    border-color: #333;
}

/* 评论区样式 */
.dark-mode .comments-section {
    border-color: #333;
}

.dark-mode .comments-section h3 {
    color: #e4e4e4;
}

.dark-mode .comment,
.dark-mode .comment-reply {
    border-color: #333;
}

.dark-mode .comment-meta {
    color: #999;
}

.dark-mode .comment-body {
    color: #ccc;
}

.dark-mode .no-comments {
    background-color: #252525;
    color: #ccc;
}

.dark-mode .add-comment h4 {
    color: #e4e4e4;
}

.dark-mode .comment-form label {
    color: #ccc;
}

.dark-mode .comment-form input[type="text"],
.dark-mode .comment-form input[type="email"],
.dark-mode .comment-form textarea {
    background-color: #333;
    border-color: #444;
    color: #e4e4e4;
}

.dark-mode .submit-btn {
    background-color: #4a6cf7;
    color: #fff;
    border: none;
}

.dark-mode .submit-btn:hover {
    background-color: #3a5ce7;
}

/* Blog Post Header Enhancements */
.blog-post-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem !important; /* Override default mb-4 if needed */
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: var(--card-bg-light) !important; /* Use a light card bg */
    padding: 0.75rem 1rem !important; /* Adjust padding */
    font-size: 0.9rem;
}

.dark-mode .breadcrumb {
    background-color: var(--card-bg) !important; /* Darker bg in dark mode */
    border: 1px solid var(--border-color);
}

.dark-mode .breadcrumb a {
    color: var(--link-color);
}

.dark-mode .breadcrumb .breadcrumb-item.active {
    color: var(--muted-text);
}

/* Meta information styling */
.blog-meta {
    gap: 0.5rem; /* Add gap between meta items */
}

.blog-meta div {
    display: inline-flex; /* Align icon and text nicely */
    align-items: center;
}

/* Blog Content Typography & Layout */
.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content h2, 
.blog-content h3, 
.blog-content h4, 
.blog-content h5, 
.blog-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--header-text);
}

.blog-content ul, 
.blog-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
}

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

.blog-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: var(--card-bg-light);
    border-left: 5px solid var(--primary-color);
    color: var(--muted-text);
    font-style: italic;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .blog-content img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
} 