/* 文章详情页附加样式 - 覆盖和补充 */
/* ===== 基础标签样式 ===== */
.article-content b,
.article-content strong {
    font-weight: bold;
}

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

.article-content u,
.article-content ins {
    text-decoration: underline;
}

.article-content s,
.article-content strike,
.article-content del {
    text-decoration: line-through;
}

/* ===== 代码块样式 - 纯黑背景，行高1.2 ===== */
.article-content pre {
    margin: 20px 0;
    padding: 20px;
    background: #000000;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content pre code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #f8f8f2;
    line-height: 1.2;
}

.article-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 5px;
    color: #e83e8c;
    background: #fff0f5;
}

/* ===== 列表样式 ===== */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content ul li {
    list-style-type: disc;
    margin: 8px 0;
    line-height: 1.8;
}

.article-content ol li {
    list-style-type: decimal;
    margin: 8px 0;
    line-height: 1.8;
}

/* ===== 引用样式 ===== */
.article-content blockquote {
    margin: 15px 0;
    padding: 15px 20px;
    border-left: 4px solid #ff85a2;
    background: #fff8fa;
    color: #666;
    border-radius: 0 10px 10px 0;
}

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

/* ===== 图片样式 ===== */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* ===== 段落样式 ===== */
.article-content p {
    line-height: 1.8;
    margin: 15px 0;
}

/* ===== 标题样式 ===== */
.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
    border-bottom: 2px solid #ffe0e9;
    padding-bottom: 10px;
}

.article-content h2:hover {
    color: #ff85a2;
}

.article-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #444;
}

.article-content h4 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: #555;
}

/* ===== 链接样式 ===== */
.article-content a {
    color: #ff85a2;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* ===== 标签悬停效果 ===== */
.article-tags-list li:hover {
    background: #ff85a2;
    color: #fff;
}

/* ===== 目录激活状态 ===== */
.article-toc .toc-content a.active {
    background: #fff0f5;
    color: #ff85a2;
    font-weight: 500;
}

/* ===== 上下篇悬停效果 ===== */
.article-nav a:hover:not(.disabled) {
    background: #fff0f5;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .article-container {
        padding: 20px 15px;
    }
    .article-header-info h1 {
        font-size: 24px;
    }
    .article-content pre {
        padding: 15px;
    }
    .article-content pre code {
        font-size: 13px;
    }
}