@charset "UTF-8";
/* ==============================================================
   专栏文章系统 独立排版样式表 (article.css)
============================================================== */

/* 🚀 核心修复：强制覆写 Typography 插件在夜间模式下的文字颜色 */
.dark .prose {
    --tw-prose-body: #f1f5f9 !important; /* 让正文变成极亮的灰白色 */
    --tw-prose-headings: #ffffff !important; /* 让所有标题变成纯白色 */
    --tw-prose-lead: #cbd5e1 !important;
    --tw-prose-links: #60a5fa !important; /* 链接变成明亮的浅蓝色 */
    --tw-prose-bold: #ffffff !important;
    --tw-prose-counters: #94a3b8 !important;
    --tw-prose-bullets: #64748b !important;
    --tw-prose-quotes: #f1f5f9 !important;
    --tw-prose-code: #ffffff !important;
}

/* 短代码资源卡片 - 精巧横向布局 */
.shortcode-resource-card {
    display: inline-flex !important; 
    flex-direction: row !important;
    align-items: center !important; 
    gap: 12px !important;
    width: 220px !important;
    margin: 6px 12px 12px 0 !important; 
    padding: 10px 14px !important; 
    background: #f8fafc !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 12px !important; 
    text-decoration: none !important; 
    transition: all 0.2s !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important; 
    vertical-align: top !important; 
    text-align: left !important;
    box-sizing: border-box !important;
}

.dark .shortcode-resource-card { 
    background: #1e293b !important; 
    border-color: #334155 !important; 
}

.shortcode-resource-card:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.1) !important; 
    border-color: #3b82f6 !important; 
}

/* 卡片图标 */
.shortcode-icon {
    width: 38px !important; height: 38px !important; 
    border-radius: 8px !important; flex-shrink: 0 !important;
    background: #e0e7ff !important; color: #4f46e5 !important; 
    display: flex !important; align-items: center !important; 
    justify-content: center !important; overflow: hidden !important; 
    margin: 0 !important; padding: 0 !important;
}

.shortcode-icon img { 
    width: 100% !important; height: 100% !important; 
    object-fit: cover !important; border-radius: 8px !important; 
    margin: 0 !important; padding: 0 !important; 
    box-shadow: none !important; display: block !important; 
}

/* 卡片内容 */
.shortcode-content { 
    flex: 1 !important; min-width: 0 !important; 
    display: flex !important; flex-direction: column !important; 
    justify-content: center !important; 
}

.shortcode-title { 
    margin: 0 !important; font-size: 14px !important; 
    color: #1e293b !important; font-weight: bold !important; 
    line-height: 1.2 !important; white-space: nowrap !important; 
    overflow: hidden !important; text-overflow: ellipsis !important; 
}

.dark .shortcode-title { color: #f1f5f9 !important; }
.shortcode-resource-card:hover .shortcode-title { color: #3b82f6 !important; }

.shortcode-desc { 
    font-size: 11px !important; color: #64748b !important; 
    margin-top: 4px !important; line-height: 1 !important; 
    display: flex !important; align-items: center !important; gap: 4px !important; 
}

.dark .shortcode-desc { color: #94a3b8 !important; }

/* 正文图片与段落排版保护 */
.prose img:not(.shortcode-icon img) { 
    margin-left: auto; margin-right: auto; 
    border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
    display: block; 
}

.article-body p { 
    margin-bottom: 1.5em; text-align: justify; line-height: 1.8; 
}