/* 文章页面 */
.article-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* 文章头部 */
.article-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.article-meta {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章正文 */
.article-content {
    line-height: 1.9;
    color: var(--text-primary);
    font-size: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 18px;
    font-weight: 600;
}

.article-content h1 { font-size: 1.6rem; }
.article-content h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.article-content h3 { font-size: 1.15rem; }

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 行内代码 */
.article-content code {
    background: var(--bg-input);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
}

/* 代码块 */
.article-content pre {
    background: var(--bg-input);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-light);
}

.article-content pre code {
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
    border: none;
    font-size: 0.88em;
    line-height: 1.65;
}

/* 引用 */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--bg-input);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
}

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

/* 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.article-content th,
.article-content td {
    border: 1px solid var(--border-light);
    padding: 12px 18px;
    text-align: left;
}

.article-content th {
    background: var(--bg-input);
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-primary);
}

.article-content tr:nth-child(even) {
    background: var(--bg-input);
}

/* 图片 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

/* 分割线 */
.article-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 36px 0;
}

/* 链接 */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content del {
    color: var(--text-tertiary);
}

/* 任务列表 */
.article-content input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .article-container {
        margin: 20px auto;
        padding: 0 12px;
    }
    .article-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }
    .article-title {
        font-size: 1.5rem;
    }
}
