/* 基础样式 - 淡雅灰色调 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #666;
    background: #fbfbfb;
    min-height: 100vh;
}



/* 顶部导航栏 - 加深灰色并凸显 */
.navbar {
    border-radius: 8px; /* 圆角 */
    max-width: 1010px;
    margin: 10px auto 15px; /* 上边距20px，左右自动居中，下边距15px */
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}



/* 面包屑导航样式 - 修改部分 */
#mianbaoxie {
    max-width: 1000px;
    font-size: 14px;
    color: #666;
    margin: 12px auto;
    padding: 8px 0px;
    border-bottom: 1px solid #eee;
}


#mianbaoxie a {
    color: #666;
    text-decoration: none;
}

#mianbaoxie a:hover {
    color: #000;
}



.nav-container {
    max-width: 1010px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: #000;
}


.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0; /* 修改：将左右内边距设为0 */
    display: flex;
    gap: 15px;
}

/* 左侧推荐区域 - 变窄 */
.sidebar {
    flex: 0 0 220px;
}

/* 主要内容区域 - 变宽 */
.main-content {
    max-width: 800px;
    flex: 1;
}

/* 文章内容 */
.article-content {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
}

/* 博客头部 - 移到文章内容内部 */
.blog-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.blog-title {
    font-size: 26px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
}

p {
    margin-bottom: 16px;
    font-size: 15px;
    text-align: justify;
    color: #666;

}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

/* 推荐区域样式 - 内边距进一步变小 */
.recommendation-section {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 12px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.recommendation-list {
    list-style: none;
}

.recommendation-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.recommendation-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommendation-link {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1.4;
}

.recommendation-link:hover {
    color: #444;
}

.recommendation-meta {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    display: block;
    line-height: 1.3;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f0f0f0;
    color: #777;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    transition: all 0.2s;
}

.tag:hover {
    background: #e5e5e5;
    color: #666;
}

/* 博客底部 - 靠右侧 */
.blog-footer {
    text-align: right;
    padding: 15px 0;
    color: #888;
    font-size: 13px;
    margin-top: 25px;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0; /* 修改：移动端也设为0 */
    }
    
    .article-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
}
