/* 文章页面布局 */
.container {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    width: 1200px;
}

.left-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 文章标题 */
.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 文章摘要 */
.article-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #1a73e8;
    margin-bottom: 20px;
}

/* 文章正文 */
.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-text h2 {
    font-size: 20px;        /* 设置字体大小 */
    font-weight: 600;       /* 设置字体粗细 */
    color: #007BFF;            /* 设置字体颜色 */
    line-height: 1.4;       /* 设置行高 */
    margin-top: 20px;       /* 设置顶部边距 */
    margin-bottom: 10px;    /* 设置底部边距 */
    text-transform: capitalize; /* 首字母大写 */
    /*border-bottom: 2px solid #007BFF; */
    padding-bottom: 10px;   /* 添加底部内边距 */
}


.article-text p {
    margin-bottom: 20px;
}

/* 文章图片 */
.article-img {
    margin: 20px 0;
}

.article-img img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.img-caption {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags .tag {
    padding: 6px 12px;
    background: #f0f2f5;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1a73e8;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* 侧边栏宽度固定 */
.sidebar {
    width: 300px;
}

/* 相关推荐 */
.related-news {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
}

.related-img {
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-img:hover img {
    transform: scale(1.05);
}

.related-info {
    flex: 1;
}

.related-item-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.4;
}

.related-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item-title a:hover {
    color: #1a73e8;
}

.related-meta {
    color: #999;
    font-size: 12px;
}

.related-meta span {
    margin-right: 15px;
} 