/* 文章详情页样式 */

/* 文章头部样式 */
.article-detail {
    background-color: #fff;
}

.article-header {
    margin-bottom: 2rem;
}

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

.article-title {
    font-weight: 600;
    line-height: 1.3;
}

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

.meta-item {
    display: inline-block;
}

/* 文章内容样式 */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.article-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.section-title-text {
    position: relative;
}

.article-detail .section-title::after {
    content: none;
}

.section-title-text::after {
    content: none;
}

.section-content {
    margin-top: 1rem;
}

/* 列表样式 */
.section-content ul,
.section-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

/* 引用样式 */
.section-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

/* 代码块样式 */
.section-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.section-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
}

/* 表格样式 */
.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.section-content th,
.section-content td {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    text-align: left;
}

.section-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .article-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}
