﻿body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 确保没有任何样式干扰footer */
* {
    box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #0d6efd;
    }

/* 页头样式 */
.article-header {
    background-color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    padding-left: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* 文章内容区域 */
.article-content {
    background-color: white;
    padding: 0.8rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .article-content h2 {
        color: #0d6efd;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e9ecef;
    }

    .article-content h3 {
        color: #333;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-content p {
        line-height: 1.8;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .article-content ul,
    .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
        line-height: 1.8;
    }

    .article-content .highlight-box {
        background-color: #f8f9fa;
        border-left: 4px solid #0d6efd;
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 0 8px 8px 0;
    }

/* 文章特色图片 */
.article-feature-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 侧边栏样式 */
.sidebar {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
}




/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
}

    .breadcrumb-item a:hover {
        text-decoration: underline;
    }



/* 上一篇/下一篇导航 */
.article-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prev-article, .next-article {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

    .prev-article:hover, .next-article:hover {
        background-color: #f8f9fa;
    }

.nav-cover {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

    .nav-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.prev-article:hover .nav-title, .next-article:hover .nav-title {
    color: #0d6efd;
}

.prev-article a, .next-article a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.next-article {
    justify-content: flex-end;
}

    .next-article .nav-content {
        text-align: right;
    }

/* 上一篇/下一篇导航样式 */
.article-navigation {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}

    .article-navigation a {
        text-decoration: none;
        color: #333;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
        border-radius: 8px;
        transition: all 0.3s;
    }

        .article-navigation a:hover {
            background-color: #f8f9fa;
        }

.nav-cover {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

    .nav-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.nav-content {
    flex: 1;
}

.nav-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.article-navigation a:hover .nav-title {
    color: #0d6efd;
}

.prev-article,
.next-article {
    margin-bottom: 1rem;
}

    .next-article a {
        flex-direction: row-reverse;
        text-align: right;
    }


/* 确保文章内容中的图片不会超出容器 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.1rem auto;
}