/* 文章正文样式 */
.article-content {
    line-height: 1.8;
    color: #374151;
    font-size: 16px;
}

/* 标题样式 */
.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 1.75rem 0 1rem 0;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 1.25rem 0 0.75rem 0;
    line-height: 1.3;
}

.article-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
}

.article-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
}

/* 段落样式 */
.article-content p {
    margin: 1rem 0;
    text-align: justify;
}

/* 列表样式 */
.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: decimal;
}

.article-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.article-content ul ul,
.article-content ol ol {
    margin: 0.5rem 0;
}

/* 链接样式 */
.article-content a {
    color: #16a34a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #15803d;
}

/* 强调样式 */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: #111827;
}

.article-content em,
.article-content i {
    font-style: italic;
}

/* 引用样式 */
.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #16a34a;
    background-color: #f0fdf4;
    font-style: italic;
    color: #374151;
}

.article-content blockquote p {
    margin: 0;
}

/* 代码样式 */
.article-content code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.article-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    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;
    border: 1px solid #d1d5db;
}

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

.article-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.article-content tr:nth-child(even) {
    background-color: #f9fafb;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 分割线样式 */
.article-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* 视频样式 */
.article-content video {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 0.5rem;
}

/* 嵌入内容样式 */
.article-content iframe {
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
    border-radius: 0.5rem;
}

/* 定义列表样式 */
.article-content dl {
    margin: 1rem 0;
}

.article-content dt {
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
}

.article-content dd {
    margin: 0.5rem 0 0 1rem;
    color: #6b7280;
}

/* 标记文本样式 */
.article-content mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* 删除线样式 */
.article-content del {
    text-decoration: line-through;
    color: #6b7280;
}

/* 下划线样式 */
.article-content u {
    text-decoration: underline;
}

/* 小字样式 */
.article-content small {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 上标和下标样式 */
.article-content sup,
.article-content sub {
    font-size: 0.75rem;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-content sup {
    top: -0.5em;
}

.article-content sub {
    bottom: -0.25em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 1.5rem;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.5rem;
    }
}
