/* 文章头部样式 */
.article-header {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-block;
    margin: 0 10px;
    padding-right: 10px;
    border-right: 1px solid #ddd;
}

.meta-item:last-child {
    border-right: none;
}

.article-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.summary-title {
    font-weight: 600;
    color: #34495e;
}

/* 目录样式 */
.toc-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-link {
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.toc-link:hover {
    color: #3498db;
    padding-left: 8px;
    text-decoration: none;
}

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

.article-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #34495e;
}

.section-text {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.section-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

/* 代码块样式 */
.code-block {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 公式样式 */
.math-equation {
    font-size: 1.1rem;
    text-align: center;
    margin: 1.5rem 0;
    padding: 0.5rem;
}

/* 图片样式 */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.image-caption {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .toc-container {
        position: static;
        margin-bottom: 2rem;
    }
    
    .meta-item {
        display: block;
        border-right: none;
        margin: 0.3rem 0;
        padding-right: 0;
    }
}
