
/* 文章详情页 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.article-header .article-type {
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 2em;
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9em;
}

.article-content {
    font-size: 1.05em;
    line-height: 1.8;
}

.article-content h1, .article-content h2, .article-content h3 {
    margin: 30px 0 15px;
    color: var(--text);
}

.article-content h2 {
    font-size: 1.5em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.article-content h3 {
    font-size: 1.2em;
    color: var(--primary);
}

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

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

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

.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f1f5f9;
    border-left: 4px solid var(--primary);
    font-style: italic;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Monaco", "Consolas", monospace;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

.article-content hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border);
}

.article-content a {
    color: var(--primary);
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.share-section {
    text-align: center;
    margin-bottom: 30px;
}

.share-section p {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.wechat {
    background: #07c160;
    color: white;
}

.share-btn:not(.wechat) {
    background: var(--primary);
    color: white;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e0e7ff;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.article-nav {
    text-align: center;
    margin-top: 30px;
}

.back-home {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .article {
        padding: 25px;
    }
    .article-header h1 {
        font-size: 1.5em;
    }
}
