/* log-analyzer 系统日志智能分析 局部样式
   卡片/标签样式复用 sys-diag 的视觉语言（sd-*），保持工具簇一致。 */

.la-tip {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.9;
    color: #7c2d12;
    margin-bottom: 18px;
}
body.style-for-dark .la-tip {
    background: #2a1d12;
    border-color: #5a3a1f;
    color: #fdba74;
}
.la-emoji { font-weight: 700; }

.la-box { margin-bottom: 16px; }
.la-textarea {
    width: 100%;
    min-height: 220px;
    border: 2px solid var(--primary, #ff6b00);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.7;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    outline: none;
    resize: vertical;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}
body.style-for-dark .la-textarea { background: #1c1c1c; color: #eee; border-color: var(--primary, #ff6b00); }
.la-textarea:focus { box-shadow: 0 0 0 3px rgba(255,107,0,.15); }

.la-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.la-btn {
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 10px;
    background: var(--primary, #ff6b00);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.la-btn:hover { filter: brightness(1.05); }
.la-btn-ghost {
    height: 48px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.la-btn-ghost:hover { border-color: var(--primary, #ff6b00); color: var(--primary, #ff6b00); }
body.style-for-dark .la-btn-ghost { background: #222; border-color: #3a3a3a; color: #ccc; }

.la-result { min-height: 60px; }
.la-empty, .la-loading {
    text-align: center;
    color: #999;
    padding: 30px 10px;
    font-size: 14px;
    line-height: 1.8;
}

/* 诊断摘要横幅 */
.la-banner {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 600;
}
.la-banner.hit {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.la-banner.miss {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
body.style-for-dark .la-banner.hit { background: #0f2e22; border-color: #14532d; color: #6ee7b7; }
body.style-for-dark .la-banner.miss { background: #2a2410; border-color: #5a4a16; color: #fcd34d; }

/* 模块提示块 */
.la-modules {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
    background: #f8fafc;
}
body.style-for-dark .la-modules { background: #181818; border-color: #333; color: #aaa; }
.la-modules b { color: #334155; }
body.style-for-dark .la-modules b { color: #cbd5e1; }
.la-mod-chip {
    display: inline-block;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    margin: 4px 4px 0 0;
    font-size: 12px;
    color: #475569;
}
body.style-for-dark .la-mod-chip { background: #222; border-color: #333; color: #cbd5e1; }

/* 复用 sys-diag 卡片样式（保持一致观感） */
.la-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fff;
}
body.style-for-dark .la-card { background: #1c1c1c; border-color: #333; }
.la-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.la-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    color: #fff;
}
.la-tag-bsod { background: #dc2626; }
.la-tag-event { background: #2563eb; }
.la-tag-hresult { background: #7c3aed; }
.la-tag-devcode { background: #0891b2; }
.la-tag-runtime { background: #d97706; }
.la-tag-winupd { background: #059669; }
.la-tag-post { background: #db2777; }
.la-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--primary, #ff6b00); }
.la-name { font-size: 14px; color: #666; }
body.style-for-dark .la-name { color: #aaa; }
.la-summary { font-size: 15px; line-height: 1.8; color: #333; margin: 6px 0 10px; }
body.style-for-dark .la-summary { color: #ddd; }
.la-sol-title { font-size: 13px; font-weight: 700; color: #444; margin-bottom: 6px; }
body.style-for-dark .la-sol-title { color: #bbb; }
.la-steps { margin: 0 0 12px; padding-left: 22px; }
.la-steps li { font-size: 14px; line-height: 1.9; color: #444; }
body.style-for-dark .la-steps li { color: #ccc; }
.la-art {
    display: inline-block;
    margin-top: 4px;
    color: var(--primary, #ff6b00);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.la-art:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .la-textarea { min-height: 180px; font-size: 16px; padding: 16px 18px; }
    .la-btn, .la-btn-ghost { width: 100%; height: 52px; font-size: 16px; }
    .la-actions { gap: 10px; }
    .la-code { font-size: 16px; }
}
