/* 文章头部 */
.article-header { margin-bottom: 30px; }
.article-header .article-category { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 15px; background: rgba(79,70,229,0.08); color: #4f46e5; margin-bottom: 12px; text-decoration: none; }
.article-header h1 { font-size: 2.2rem; font-weight: 700; color: #111; margin-bottom: 16px; line-height: 1.35; letter-spacing: -0.4px; }
.article-header .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 0.88rem; color: #888; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #333; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#4f46e5,#7c3aed); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; font-weight: 700; }
.sidebar-widget li{ list-style: none; overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; line-height: 36px;}
/* 文章正文 */
.article-body { font-size: 1.05rem; color: #333; line-height: 1.9; }
.article-body h2 { font-size: 1.55rem; font-weight: 700; color: #111; margin: 40px 0 16px; padding-top: 10px; letter-spacing: -0.2px; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; color: #1a1a2e; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body strong { color: #111; font-weight: 600; }
.article-body ul, .article-body ol { margin: 16px 0 20px 20px; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; padding-left: 4px; }
.article-body ul li::marker { color: #4f46e5; }
.article-body blockquote { background: #f8f7ff; border-left: 4px solid #4f46e5; padding: 18px 22px; margin: 24px 0; border-radius: 0 8px 8px 0; color: #444; font-style: italic; }
.article-body blockquote p { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.article-body table th { background: #fafbff; padding: 12px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid #e0e0e0; }
.article-body table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.article-body img{ max-width: 100%;}
.article-body h2, .article-body h3, .article-body h4 {
    position: relative;
    margin: 10px auto;
    padding: 0 15px;
    color: #303133;
    line-height: 54px;
	background: #f1f1f1!important;
}
.article-body h2:before, .article-body h3:before, .article-body h4:before {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: #4f46e5;
    content: "";
}
.highlight-box { background: linear-gradient(135deg,#faf9ff,#f5f3ff); border: 1px solid rgba(79,70,229,0.15); border-radius: 12px; padding: 22px 26px; margin: 24px 0; }
.highlight-box h4 { color: #4f46e5; margin-bottom: 8px; font-size: 1rem; }

/* 文章标签 */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.article-tags span { font-size: 0.85rem; color: #888; margin-right: 4px; line-height: 2; }
.article-tags a { padding: 5px 14px; background: #f5f5f7; border-radius: 20px; font-size: 0.82rem; color: #555; text-decoration: none; transition: all 0.2s; }
.article-tags a:hover { background: #4f46e5; color: #fff; }

/* 相关文章 */
.related-articles { margin-top: 50px; }
.related-articles h3 { font-size: 1.3rem; font-weight: 700; color: #111; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.related-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; text-decoration: none; color: inherit; transition: all 0.3s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.related-thumb { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: linear-gradient(135deg,#f5f5f7,#eef0f5); }
.related-info { padding: 14px; }
.related-info h4 { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 4px; line-height: 1.4; }
.related-meta { font-size: 0.78rem; color: #999; }

@media (max-width: 768px) {
    .article-header h1 { font-size: 1.6rem; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.3rem; }
    .article-body h3 { font-size: 1.1rem; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .article-header h1 { font-size: 1.4rem; }
    .related-grid { grid-template-columns: 1fr; }
}