/* 新闻详情页样式 */

/* 新闻详情容器 */
.news-detail {
    background-color: #fff;
}

/* 新闻头部样式 */
.news-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.news-category {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.news-title {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item {
    display: inline-block;
    margin-right: 1.5rem;
}

/* 新闻内容样式 */
.news-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

/* 内容区排版优化 - 适合在线编辑器输出 */
.news-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.news-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

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

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

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.news-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

.news-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.news-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* 新闻标签 */
.news-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.news-tags h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-tags .tag-item {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.news-tags .tag-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.news-tags .tag-link:hover {
    background-color: #0d6efd;
    color: white;
}

/* 返回列表按钮 */
.back-to-list {
    margin: 2rem 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.75rem;
    }
    
    .news-content {
        font-size: 0.95rem;
    }
    
    .news-content h2 {
        font-size: 1.35rem;
    }
    
    .news-content h3 {
        font-size: 1.15rem;
    }
}