/* 文章详情页样式 */

/* 文章内容区域样式 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 文章标题样式 */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4a5568;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* 文章段落样式 */
.article-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* 文章列表样式 */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

/* 文章图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

/* 文章引用样式 */
.article-content blockquote {
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4a5568;
}

/* 文章代码样式 */
.article-content code {
    background-color: #edf2f7;
    color: #e53e3e;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* 文章表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th,
.article-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background-color: #f7fafc;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background-color: #f7fafc;
}

/* 文章链接样式 */
.article-content a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-content table th,
.article-content table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.article-content table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #1e3a8a;
}

.article-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

.article-content table tr:hover {
    background-color: #f3f4f6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 1.35rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .article-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.15rem;
    }
    
    .article-content h4 {
        font-size: 1.05rem;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 1.25rem;
    }
}
