/* ==================== 通讯录 ==================== */
.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 230px;
    max-width: 320px;
}
.contact-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--primary-light, #e0f2fe);
    color: var(--primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.contact-body { min-width: 0; flex: 1; }
.contact-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.contact-role {
    font-size: 10px;
    font-weight: 500;
    color: var(--primary, #2563eb);
    background: var(--primary-light, #e0f2fe);
    border-radius: 10px;
    padding: 1px 7px;
}
.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
    color: var(--gray-500, #64748b);
    margin-top: 2px;
}
.contact-meta a { color: var(--gray-600, #475569); text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }
.contact-actions { display: flex; align-items: center; gap: 6px; }

/* ==================== 通讯录 · 钉钉/企微式左右分栏 ==================== */
.contacts-layout {
    display: flex;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    min-height: 420px;
}
.contacts-sidebar {
    width: 264px;
    flex: 0 0 264px;
    border-right: 1px solid var(--gray-200, #e2e8f0);
    background: var(--gray-50, #f8fafc);
    padding: 10px 8px;
    overflow-y: auto;
    max-height: calc(100vh - 320px);
    display: flex;
    flex-direction: column;
}
.contacts-sidebar-footer { margin-top: auto; padding: 10px 6px 2px; }
.contacts-main { flex: 1; min-width: 0; padding: 14px 18px 18px; }
.contacts-main-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    margin-bottom: 4px;
}
.contacts-main-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contacts-main-sub { font-size: 12px; color: var(--gray-500, #64748b); margin-top: 3px; }

/* 左侧部门树 */
.org-tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--gray-700, #334155);
}
.org-tree-item:hover { background: var(--gray-100, #f1f5f9); }
.org-tree-item.active { background: var(--primary-light, #e0f2fe); color: var(--primary, #2563eb); font-weight: 600; }
.org-tree-item.active .org-tree-count { background: var(--primary, #2563eb); color: #fff; }
.org-tree-item.active .tree-node-icon { color: var(--primary, #2563eb); }
.org-tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-tree-count {
    flex: 0 0 auto;
    font-size: 11px;
    background: var(--gray-200, #e2e8f0);
    color: var(--gray-600, #475569);
    border-radius: 10px;
    padding: 0 7px;
    line-height: 17px;
    font-weight: 500;
}
.org-tree-more {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--gray-400, #94a3b8);
    padding: 0 2px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .12s;
}
.org-tree-item:hover .org-tree-more { opacity: 1; }
.org-tree-more:hover { color: var(--primary, #2563eb); }
.org-tree-children { margin-left: 15px; }
.tree-node-icon { font-size: 13px; color: var(--gray-400, #94a3b8); flex: 0 0 auto; }
.tree-node-icon.is-root { color: var(--primary, #2563eb); }
.org-toggle { font-size: 11px; color: var(--gray-400, #94a3b8); flex: 0 0 12px; text-align: center; }
.tree-toggle-placeholder { flex: 0 0 12px; text-align: center; color: transparent; font-size: 11px; }

/* 右侧成员行（企微式紧凑单行） */
.member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
.member-row:last-child { border-bottom: none; }
.member-row:hover { background: var(--gray-50, #f8fafc); border-radius: 8px; }
.member-avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
.member-row-body { flex: 1; min-width: 0; }
.member-row-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member-row-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12px; color: var(--gray-500, #64748b); margin-top: 2px; }
.member-row-actions { display: flex; align-items: center; gap: 8px; font-size: 15px; opacity: 0; transition: opacity .12s; flex: 0 0 auto; }
.member-row:hover .member-row-actions { opacity: 1; }
.member-admin-badge {
    font-size: 10px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border-radius: 10px;
    padding: 1px 7px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 部门负责人徽章（企微式：青绿系，与管理员琥珀徽章区分；title 提示负责的部门） */
.member-leader-badge {
    font-size: 10px;
    font-weight: 600;
    color: #0f6e56;
    background: #e1f5ee;
    border-radius: 10px;
    padding: 1px 7px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
}

/* 成员行可点（点人名进详情抽屉）：光标与 hover 反馈与「行内无操作」区分开 */
.member-row--clickable { cursor: pointer; }

/* ============ 成员详情抽屉（钉钉式右侧滑出；窄屏铺满，从右滑入即接近全屏） ============ */
.md-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 1050;
}
.md-mask.is-open { opacity: 1; }

.md-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    background: #fff;
    box-shadow: -8px 0 28px rgba(15, 23, 42, .16);
    transform: translateX(100%);
    transition: transform .18s ease;
    z-index: 1051;
    display: flex;
    flex-direction: column;
}
.md-drawer.is-open { transform: translateX(0); }

.md-drawer__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    flex: 0 0 auto;
}
.md-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}
.md-head__body { flex: 1; min-width: 0; }
.md-head__name {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.md-head__sub { font-size: 13px; color: var(--gray-500, #64748b); margin-top: 3px; }
.md-close {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--gray-400, #94a3b8);
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
}
.md-close:hover { background: var(--gray-100, #f1f5f9); color: var(--gray-700, #334155); }

.md-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 6px 20px 20px; }

.md-section { padding: 14px 0 4px; border-bottom: 1px solid var(--gray-100, #f1f5f9); }
.md-section:last-child { border-bottom: none; }
.md-section__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400, #94a3b8);
    letter-spacing: .04em;
    margin-bottom: 8px;
}

/* 联系方式行：图标 + 主内容（标签/值） + 右侧复制动作 */
.md-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 6px;
    border-radius: 8px;
}
.md-contact:hover { background: var(--gray-50, #f8fafc); }
.md-contact__ico { flex: 0 0 18px; color: var(--gray-400, #94a3b8); font-size: 15px; text-align: center; }
.md-contact__main { flex: 1; min-width: 0; }
.md-contact__label { font-size: 11px; color: var(--gray-400, #94a3b8); }
.md-contact__val {
    font-size: 14px;
    color: var(--gray-800, #1e293b);
    text-decoration: none;
    word-break: break-all;
}
a.md-contact__val:hover { color: var(--primary, #2563eb); }
.md-contact__act {
    flex: 0 0 auto;
    color: var(--gray-400, #94a3b8);
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity .12s;
}
.md-contact:hover .md-contact__act { opacity: 1; }
.md-contact__act:hover { color: var(--primary, #2563eb); }

.md-stats { display: flex; gap: 10px; }
.md-stat {
    flex: 1 1 0;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-100, #f1f5f9);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.md-stat__num { font-size: 20px; font-weight: 700; color: var(--gray-800, #1e293b); }
.md-stat__label { font-size: 12px; color: var(--gray-500, #64748b); margin-top: 2px; }

.md-kv { display: flex; gap: 12px; padding: 7px 6px; font-size: 14px; }
.md-kv__k { flex: 0 0 56px; color: var(--gray-400, #94a3b8); font-size: 13px; }
.md-kv__v { flex: 1; min-width: 0; color: var(--gray-800, #1e293b); word-break: break-word; white-space: pre-wrap; }

.md-badge {
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    padding: 1px 7px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.md-badge--admin { color: #b45309; background: #fef3c7; }
.md-badge--leader { color: #0f6e56; background: #e1f5ee; }
.md-badge--noauth { color: #b45309; background: #fef3c7; border: 1px solid #fde68a; }

.md-muted { color: var(--gray-400, #94a3b8); }
.md-empty { text-align: center; color: var(--gray-400, #94a3b8); font-size: 13px; padding: 14px 0; }

.md-drawer__foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100, #f1f5f9);
    background: #fff;
}

/* 窄屏：铺满宽度，从右滑入即等同全屏（保住「关掉仍回列表原处」的好处） */
@media (max-width: 576px) {
    .md-drawer { width: 100%; }
    .md-contact__act { opacity: 1; }
}

/* 子部门快捷 chips */
.subdept-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 6px; }
.subdept-chips-label { font-size: 12px; color: var(--gray-400, #94a3b8); }
.subdept-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-700, #334155);
    background: var(--gray-100, #f1f5f9);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 14px;
    padding: 3px 10px;
    text-decoration: none;
}
.subdept-chip:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); background: var(--primary-light, #e0f2fe); }
.chip-count { font-size: 10px; background: #fff; border-radius: 8px; padding: 0 5px; color: var(--gray-500, #64748b); }
.empty-hint { text-align: center; color: var(--gray-400, #94a3b8); font-size: 13px; padding: 36px 0; }

/* 响应式：窄屏上下堆叠，操作常显 */
@media (max-width: 768px) {
    .contacts-layout { flex-direction: column; }
    .contacts-sidebar { width: 100%; flex: none; max-height: 240px; border-right: none; border-bottom: 1px solid var(--gray-200, #e2e8f0); }
    .member-row-actions { opacity: 1; }
}

/* 招商看板 Pipeline */
.pipeline-board { overflow-x: auto; padding-bottom: 8px; }
.pipeline-cols { display: flex; gap: 16px; align-items: flex-start; min-width: min-content; }
.pipeline-col { flex: 1 1 0; min-width: 240px; background: #f8fafc; border-radius: 12px; padding: 10px; }
.pipeline-col-header { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-top: 3px solid #999; border-radius: 8px 8px 0 0; font-weight: 700; background: #fff; margin: -10px -10px 10px; }
.pipeline-col-dot { width: 10px; height: 10px; border-radius: 50%; }
.pipeline-col-name { font-size: 14px; }
.pipeline-col-count { margin-left: auto; background: #e5e7eb; color: #374151; border-radius: 20px; padding: 1px 10px; font-size: 12px; }
.pipeline-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 18px 0; }
.pipeline-card { background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: box-shadow .15s; }
.pipeline-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pipeline-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.pipeline-card-owner { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.pipeline-due { font-size: 12px; padding: 3px 8px; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
.pipeline-due.ok { background: #ecfdf5; color: #059669; }
.pipeline-due.soon { background: #fffbeb; color: #d97706; }
.pipeline-due.overdue { background: #fef2f2; color: #dc2626; }
.pipeline-card-actions { text-align: right; }

/* 跟进提醒横幅 */
.followup-card { border-color: #fde68a; background: #fffdf5; }
.followup-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.followup-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #f1f5f9; cursor: pointer; }
.followup-item:hover { border-color: var(--primary, #2563eb); }
.followup-main { display: flex; flex-direction: column; }
.followup-action { font-size: 12px; color: #6b7280; }
.followup-date { font-size: 12px; white-space: nowrap; }
.followup-item.soon .followup-date { color: #d97706; }
.followup-item.overdue .followup-date { color: #dc2626; font-weight: 600; }
.followup-more { margin-top: 8px; padding: 6px 12px; font-size: 13px; color: var(--primary, #2563eb); cursor: pointer; text-align: center; border-radius: 8px; background: #f8fafc; }
.followup-more:hover { background: #eff6ff; }

/* 组件管理：分类分组标题行 */
.widget-cat-header > td {
    background: #f1f5f9;
    border-top: 2px solid #e2e8f0;
    padding: 8px 14px;
    font-weight: 600;
    color: #334155;
}
.widget-cat-title { display: inline-flex; align-items: center; }
.widget-cat-count {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 1px 9px;
}

/* ==================== 政策申报提醒横幅（M3 政策窗口对接） ==================== */
.policy-reminder-card { border-color: #bfdbfe; background: #f8fbff; }
.policy-reminder-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.policy-reminder-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; }
.policy-reminder-item:hover { border-color: var(--primary, #2563eb); }
.pr-badge { flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; color: #fff; }
.pr-main { display: flex; flex-direction: column; min-width: 0; }
.pr-title { font-size: 13px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.policy-reminder-item.pr-overdue .pr-badge { background: #dc2626; }
.policy-reminder-item.pr-overdue { border-color: #fecaca; }
.policy-reminder-item.pr-d1 .pr-badge { background: #ea580c; }
.policy-reminder-item.pr-d1 { border-color: #fed7aa; }
.policy-reminder-item.pr-d3 .pr-badge { background: #d97706; }
.policy-reminder-item.pr-d3 { border-color: #fde68a; }
.policy-reminder-item.pr-d7 .pr-badge { background: #2563eb; }
.policy-reminder-item.pr-d7 { border-color: #bfdbfe; }

/* ==================== 知识库（语雀模式） ==================== */
.kb-layout { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
.kb-tree { width: 280px; flex: 0 0 280px; max-height: calc(100vh - 220px); overflow: auto;
    background: var(--gray-50, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 8px; }
.kb-content { flex: 1 1 auto; min-width: 0; }

/* 历史版本面板（百科化） */
.kb-ver-list { max-height: 50vh; overflow: auto; }
.kb-ver-item { border: 1px solid var(--border, #e2e8f0); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.kb-ver-item.current { border-color: var(--success, #16a34a); background: rgba(22,163,74,.04); }
.kb-ver-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kb-ver-note { font-size: 12px; color: var(--gray-600, #475569); margin: 4px 0; }
.kb-ver-actions { display: flex; gap: 8px; margin-top: 6px; }
.kb-ver-view, .kb-ver-diff { border-top: 1px dashed var(--border, #e2e8f0); padding-top: 10px; }
.kb-ver-diff .col-6 { padding: 0 8px; }
.kb-ver-diff .border-start { border-left: 1px solid var(--border, #e2e8f0); }

/* 视图切换：树形 / 卡片 */
.kb-view-switch { display: inline-flex; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.kb-view-switch button { border: 0; background: #fff; color: var(--gray-600, #475569); font-size: 13px; padding: 5px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.kb-view-switch button + button { border-left: 1px solid var(--border, #e2e8f0); }
.kb-view-switch button:hover { background: var(--gray-50, #f8fafc); }
.kb-view-switch button.active { background: var(--primary, #2563eb); color: #fff; font-weight: 600; }

/* 卡片视图：一个产业链一张卡片 */
.kb-cards { margin-top: 12px; }
.kb-chain-card,
.kb-doc-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    transition: box-shadow .15s, transform .15s;
    overflow: hidden;
}
.kb-chain-card:hover,
.kb-doc-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
/* 卡片标题行：防止 CJK 长标题在 flex 容器内被压成竖排 */
.kb-chain-card .card-body,
.kb-doc-card .card-body { min-width: 0; }
.kb-chain-card .card-body > .d-flex,
.kb-doc-card .card-body > .d-flex { min-width: 0; width: 100%; }
.kb-chain-card .card-body h6,
.kb-doc-card .card-body h6 {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
}
.kb-chain-card .card-body .badge,
.kb-doc-card .card-body .badge { flex: 0 0 auto; }
/* 底部操作按钮：窄卡片时自动换行并保持可读 */
.kb-chain-card .card-body > .d-flex.gap-2.mt-auto,
.kb-doc-card .card-body > .d-flex.gap-2.mt-auto { flex-wrap: wrap; }
.kb-chain-card .card-body > .d-flex.gap-2.mt-auto .btn,
.kb-doc-card .card-body > .d-flex.gap-2.mt-auto .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.kb-card-subs .kb-sub-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; font-size: 12px;
    background: var(--gray-50, #f1f5f9); border: 1px solid var(--border, #e2e8f0); border-radius: 20px; cursor: pointer; color: var(--gray-700, #334155); }
.kb-card-subs .kb-sub-chip:hover { background: rgba(37,99,235,.1); border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.kb-card-projs .kb-card-proj { font-size: 12px; padding: 3px 0; cursor: pointer; color: var(--gray-700, #334155); display: flex; align-items: center; gap: 4px; }
.kb-card-projs .kb-card-proj:hover { color: var(--primary, #2563eb); text-decoration: underline; }
/* 卡片视图内：单个产业链的子项以紧凑树形展示（复用主树形 .kb-tree-*，但更紧凑、隐藏新增按钮） */
.kb-card-tree { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border, #eef2f7); }
/* 〔第十轮 2026-08-30 12:0x〕BOSS 拍板：每行固定 3 张，三等分铺满主内容区。
   第九轮 auto-fit + minmax(280px, 1fr) 是"按宽度自动算列数"——主内容区够宽时
   塞下 4 列（BOSS 实测截图每行 4 张），列数不受控。
   正确解：写死 repeat(3, 1fr)——列数恒为 3，每张卡宽 = (W - 2*gap) / 3，
   三等分铺满（复刻当年 col-lg-4 的语义）；卡高固定 360px 同行同款。
   响应式：窄窗口回落 2 列 / 1 列（992px / 576px 断点，与 Bootstrap lg/sm 对齐）。 */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);             /* 每行固定 3 张，三等分 */
    gap: 16px;
    margin-top: 12px;
    width: 100%;
}
.kb-grid > .card {
    width: auto;                                         /* 不写死，跟 grid 1fr 走 */
    height: 360px;                                       /* 固定高——同行同款，观感齐 */
    min-width: 0;                                        /* 防 CJK 标题撑破 track */
    flex: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;                                    /* 内容一律关在卡内 */
    margin-bottom: 0;
}
.kb-grid > .card > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.kb-tile-title {                                        /* 标题限 2 行截断 */
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;
}
.kb-tile-tags { max-height: 48px; overflow: hidden; }   /* 标签区限高 */
.kb-grid .kb-card-tree { flex: 1 1 auto; min-height: 0; overflow-y: auto; }  /* 子项树内滚 */
.kb-grid .kb-card-projs { max-height: 54px; overflow: hidden; }               /* 项目链接区限高 */
.kb-grid .card-body > .d-flex.mt-auto { margin-top: auto; flex: 0 0 auto; flex-wrap: wrap; }  /* 按钮贴底 */
@media (max-width: 992px) {          /* 平板/窄窗：2 列 */
    .kb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {          /* 手机：单列铺满 */
    .kb-grid { grid-template-columns: 1fr; }
    .kb-grid > .card { width: auto; }
}
/* 〔第八轮〕旧 row/col 修补规则已全部废弃删除——渲染层不再产出 .row / [class*="col-"]。 */
.kb-card-tree .kb-tree-node { line-height: 1.35; }
.kb-card-tree .kb-tree-row { padding: 3px 6px; font-size: 12px; gap: 5px; border-radius: 6px; }
.kb-card-tree .kb-tree-row .kb-tree-title { font-size: 12px; }
.kb-card-tree .kb-card-toggle { font-size: 10px; color: var(--gray-500, #6b7280); cursor: pointer; }
.kb-card-tree .kb-card-dot-space { display: inline-block; width: 12px; flex: 0 0 12px; }
.kb-card-tree .kb-tree-children { margin-left: 2px; }

/* 卡片视图 - 产业链聚焦（树形只显示该产业链，不切回全部产业链） */
.kb-scope-bar { display: flex; align-items: center; margin: 12px 0 4px; padding: 6px 10px; background: var(--gray-50, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 8px; font-size: 13px; }
.kb-tree-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; position: relative; }
.kb-tree-row:hover { background: rgba(37,99,235,.08); }
.kb-tree-row.active { background: rgba(37,99,235,.14); font-weight: 600; }
.kb-tree-row .kb-tree-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 操作按键：平时完全隐藏且脱离文档流（不占 flex 空间，长标题也不会被挤成两行），悬停整行时才淡入浮于右侧 */
.kb-tree-row .kb-tree-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 2;
}
.kb-tree-row:hover .kb-tree-actions { opacity: 1; pointer-events: auto; }
.kb-tree-row:hover .kb-tree-title { padding-right: 66px; }
.kb-toggle { font-size: 11px; color: var(--gray-500, #6b7280); cursor: pointer; }
.kb-doc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.kb-doc-title { font-size: 22px; margin: 4px 0; }
.kb-doc-meta { font-size: 12px; margin-bottom: 12px; }
.kb-doc-body { font-size: 14px; line-height: 1.7; }
.kb-doc-projects { margin-top: 20px; border-top: 1px dashed var(--border, #e2e8f0); padding-top: 12px; }
.kb-project-item { padding: 10px 12px; border-radius: 10px; background: var(--gray-50, #f8fafc);
    border: 1px solid var(--border, #e2e8f0); margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.kb-project-item:hover { border-color: var(--primary, #2563eb); background: #fff; }
.kb-editor { min-height: 320px; resize: vertical; }
.kb-preview { min-height: 320px; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 12px; background: #fff; overflow: auto; font-size: 13px; }
.kb-link-results { max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.kb-link-item { padding: 8px 10px; border-radius: 8px; background: var(--gray-50, #f8fafc); border: 1px solid var(--border, #e2e8f0); }
.kb-link-item:hover { border-color: var(--primary, #2563eb); }

/* 脑图视图 / 编辑器 */
.kb-mindmap { margin-top: 12px; background: var(--gray-50, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 12px; min-height: calc(100vh - 260px); }
.kb-mindmap-canvas { overflow: auto; width: 100%; }
.kb-mindmap-svg { display: block; }
.kb-mindmap-svg .mm-node rect { transition: filter .15s, stroke .15s; }
.kb-mindmap-svg .mm-node:hover rect { filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.kb-mindmap-svg .mm-node.mm-selected rect { stroke: #f59e0b; stroke-width: 2.5px; }
.kb-mindmap-view { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 10px; overflow: auto; }
.kb-mindmap-editor { position: relative; min-height: 380px; background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 10px; overflow: auto; }
.mm-edit-input { border: 2px solid var(--primary, #2563eb); border-radius: 6px; text-align: center; font-size: 13px; padding: 2px 4px; outline: none; box-sizing: border-box; }
.kb-mm-toolbar { margin-top: 6px; }
.text-purple { color: #9333ea !important; }

/* 知识库附件卡片（微信小程序「用科纪通打开」摄取的文件） */
.kb-file-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; margin: 10px 0;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.kb-file-card > .bi-file-earmark-text { font-size: 28px; color: #2563eb; flex: 0 0 auto; }
.kb-file-meta { flex: 1 1 auto; min-width: 0; }
.kb-file-name { font-weight: 600; color: #1e293b; word-break: break-all; }
.kb-file-card .text-muted-2 { font-size: 12px; margin-top: 2px; }
.kb-file-card .btn { flex: 0 0 auto; }

/* ==================== Markdown 渲染 ==================== */
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin: 14px 0 8px; line-height: 1.3; }
.markdown-body h1 { font-size: 22px; } .markdown-body h2 { font-size: 19px; } .markdown-body h3 { font-size: 16px; }
.markdown-body p { margin: 8px 0; }
.markdown-body ul { padding-left: 22px; margin: 8px 0; }
.markdown-body li { margin: 3px 0; }
.markdown-body blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--primary, #2563eb); background: var(--gray-50, #f8fafc); color: var(--gray-600, #475569); border-radius: 0 8px 8px 0; }
.markdown-body hr { border: none; border-top: 1px solid var(--border, #e2e8f0); margin: 14px 0; }
.markdown-body code.md-code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-family: monospace; }
.markdown-body pre.md-pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; overflow: auto; font-size: 12px; }
.markdown-body pre.md-pre code { font-family: monospace; }
.markdown-body a { color: var(--primary, #2563eb); }

/* ==================== 公开项目页 ==================== */
.public-project-page { max-width: 820px; margin: 0 auto; }

/* ==================== M4 待办事项 + 任务派发 ==================== */
.memo-item.todo-task { cursor: default; }
.memo-item.todo-task:hover { background: var(--hover-bg, #f8fafc); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.status-dot.red { background: #dc2626; }
.status-dot.green { background: #16a34a; }
.status-dot.amber { background: #f59e0b; }
.status-dot.gray { background: #9ca3af; }
.dispatch-member { display: block; padding: 3px 6px; font-size: 13px; cursor: pointer; border-radius: 4px; }
.dispatch-member:hover { background: var(--hover-bg, #f1f5f9); }
.dispatch-org-name { font-weight: 600; font-size: 12px; color: var(--text-soft, #6b7280); padding: 5px 6px; }
.dispatch-org-name input.dispatch-org-cb { width: 15px; height: 15px; margin-right: 5px; accent-color: #2563eb; cursor: pointer; vertical-align: -2px; }
.managed-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border-light, #f1f5f9); font-size: 13px; }
.managed-row .mw-name { width: 90px; flex: 0 0 90px; font-weight: 500; }
.managed-row .mw-title { flex: 1; color: var(--text, #111827); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.managed-row .mw-badge { width: 80px; flex: 0 0 80px; text-align: right; }
.managed-row .mw-proj { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--text-soft, #64748b); }
.managed-row .mw-badge .btn { white-space: nowrap; }
.proj-search-wrap { position: relative; }
.proj-search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 1080; max-height: 260px; overflow-y: auto; background: var(--bg, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); margin-top: 2px; }
.proj-search-item { padding: 7px 10px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--border-light, #f1f5f9); }
.proj-search-item:last-child { border-bottom: none; }
.proj-search-item:hover { background: var(--hover-bg, #f1f5f9); }
.proj-search-empty { padding: 8px 10px; font-size: 13px; color: var(--text-soft, #94a3b8); }

/* ============ P0 全局筛选器 + 维度分析（驾驶舱增强） ============ */
.global-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 10px 14px; }
.gf-title { font-weight: 600; color: var(--text, #111827); display: flex; align-items: center; gap: 6px; font-size: 14px; }
.gf-selects { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.gf-select { max-width: 160px; }
.da-crumb { font-size: 13px; color: var(--text-soft, #64748b); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.da-crumb-root, .da-crumb-link { cursor: pointer; color: var(--primary, #3b82f6); }
.da-crumb-cur { font-weight: 600; color: var(--text, #111827); }
.da-tabs { flex-wrap: wrap; }
.da-list { margin-top: 8px; }
.da-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.da-row:hover { background: var(--hover-bg, #f1f5f9); }
.da-label { width: 160px; flex: 0 0 160px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-bar { flex: 1; height: 10px; background: var(--border-light, #f1f5f9); border-radius: 6px; overflow: hidden; }
.da-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #a78bfa); border-radius: 6px; }
.da-count { width: 48px; text-align: right; font-size: 13px; font-weight: 600; color: var(--text, #111827); }

/* ============ F-06 可见性：active filter chips ============ */
.gf-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border, #e5e7eb); }
.gf-chips-empty { border-top: none; padding-top: 0; margin-top: 4px; }
.gf-viewall { font-size: 12px; color: var(--text-soft, #9ca3af); background: var(--bg-soft, #f1f5f9); border-radius: 999px; padding: 3px 10px; }

/* ============ F-11 管理员预设视图横幅 ============ */
.preset-banner { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 3px 10px; margin-top: 8px; }
.gf-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 999px; padding: 3px 6px 3px 10px; }
.gf-chip-x { border: none; background: transparent; color: #1d4ed8; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; border-radius: 50%; }
.gf-chip-x:hover { background: #dbeafe; }

/* ============ F-06 可见性：每卡口径标签 ============ */
.widget-caption { font-size: 12px; color: var(--text-soft, #9ca3af); margin-bottom: 8px; }
.widget-caption-exempt { color: #b45309; }

/* ============ F-08 空态/骤降对比行 ============ */
.da-compare { font-size: 12px; color: var(--text-soft, #64748b); background: var(--bg-soft, #f8fafc); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 5px 10px; margin-bottom: 8px; }

/* ============ F-09 N/A 灰化角标 ============ */
.da-row-na { cursor: default; opacity: .55; }
.da-row-na:hover { background: transparent; }
.da-row-na .da-label, .da-row-na .da-count { color: var(--text-soft, #9ca3af); }
.na-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #9ca3af; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 5px; width: auto; }

/* ============ P0-2 组件切维度面板（驾驶舱增强） ============ */
.widget-dim-switch { position: relative; }
.wds-btn { white-space: nowrap; }
.wds-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  width: 210px; padding: 10px 12px;
  background: var(--bg, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.wds-pop-title { font-size: 12px; font-weight: 600; color: var(--text, #374151); margin-bottom: 6px; }
.wds-pop select { font-size: 13px; }
.wds-pop-hint { font-size: 11px; color: var(--text-soft, #9ca3af); margin-top: 6px; }

/* ============ P0 阶段进度 Stepper（项目详情页顶部） ============ */
.stepper { display: flex; align-items: flex-start; flex-wrap: wrap; }
.stepper-step { display: flex; flex-direction: column; align-items: center; min-width: 76px; flex: 1 1 0; }
.stepper-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; background: #fff;
  border: 2px solid var(--border, #e5e7eb); color: var(--text-soft, #9ca3af);
  z-index: 1; transition: all .2s;
}
.stepper-label { margin-top: 8px; font-size: 12px; color: var(--text-soft, #9ca3af); text-align: center; line-height: 1.3; }
.stepper-line { flex: 1 1 0; height: 2px; background: var(--border, #e5e7eb); margin-top: 14px; min-width: 18px; max-width: 80px; }
.step-done .stepper-dot { background: var(--primary, #2563eb); border-color: var(--primary, #2563eb); color: #fff; }
.step-done .stepper-label { color: var(--text, #374151); }
.step-current .stepper-dot {
  background: var(--primary-light, #eff6ff); border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb); box-shadow: 0 0 0 4px rgba(37,99,235,.15);
  animation: stepPulse 1.8s ease-in-out infinite;
}
.step-current .stepper-label { color: var(--primary, #2563eb); font-weight: 700; }
.step-label-done { color: var(--text, #374151); }
@keyframes stepPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
  50% { box-shadow: 0 0 0 7px rgba(37,99,235,.07); }
}
@media (max-width: 768px) {
  .stepper-step { min-width: 58px; }
  .stepper-label { font-size: 11px; }
}

/* P1 脉络：竖向阶段分区时间轴 */
.stage-timeline-wrap { margin-top: 4px; }
.stage-block { border:1px solid var(--border,#e5e7eb); border-radius:12px; margin-bottom:14px; overflow:hidden; background:#fff; }
.stage-block-current { border-color:var(--primary,#2563eb); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.stage-block-head { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; background:var(--bg-sub,#f8fafc); border-bottom:1px solid var(--border,#e5e7eb); }
.stage-dot { width:10px; height:10px; border-radius:50%; display:inline-block; background:#cbd5e1; flex:0 0 auto; }
.stage-dot.done { background:var(--success,#16a34a); }
.stage-dot.current { background:var(--primary,#2563eb); box-shadow:0 0 0 4px rgba(37,99,235,.18); }
.stage-dot.future { background:#cbd5e1; }
.stage-timeline { padding:12px 14px 4px 14px; }

/* P2 阶段推进引导（还差哪步） */
.stage-hint { margin-top:12px; padding:10px 12px; border-radius:10px; background:var(--bg-sub,#f8fafc); border:1px solid var(--border,#e5e7eb); }
.stage-hint.risk { background:#fef2f2; border-color:#fecaca; }
.stage-hint.warn { background:#fffbeb; border-color:#fde68a; }
.stage-hint.ok { background:#f0fdf4; border-color:#bbf7d0; }
.stage-hint-next { margin-top:6px; font-size:12px; color:var(--text-muted,#64748b); line-height:1.55; }

/* P2 时间轴阶段区块折叠 */
.stage-block-head { cursor:pointer; user-select:none; }
.stage-block.collapsed .stage-timeline { display:none; }
.stage-toggle { color:#94a3b8; transition:transform .15s ease; font-size:14px; flex:0 0 auto; }
.stage-block.collapsed .stage-toggle { transform:rotate(-90deg); }

/* ==================== B-2 时间轴优化（长项目健壮性 + 视觉升级） ==================== */
/* 阶段内「展开全部 N 条」按钮 */
.stage-more-btn { display:block; width:100%; margin:6px 0 2px; padding:6px 0; border:none; background:transparent;
    color:var(--primary,#2563eb); font-size:12px; text-align:left; cursor:pointer; }
.stage-more-btn:hover { text-decoration:underline; }

/* 节点类型色标：左标记点按 kind / action 着色，便于一眼区分节点类型 */
.timeline-item--tracking::before { background:var(--warning,#f59e0b); box-shadow:0 0 0 2px #fde68a; }
.timeline-item--task::before { background:var(--info,#0ea5e9); box-shadow:0 0 0 2px #bae6fd; }
.timeline-item--metric::before { background:#0d9488; box-shadow:0 0 0 2px #99f6e4; }
.timeline-item--create_project::before { background:var(--primary,#2563eb); }
.timeline-item--change_owner::before { background:var(--warning,#f59e0b); box-shadow:0 0 0 2px #fde68a; }
.timeline-item--upload_bp::before { background:var(--info,#0ea5e9); box-shadow:0 0 0 2px #bae6fd; }
.timeline-item--advance_stage::before { background:var(--success,#16a34a); box-shadow:0 0 0 2px #bbf7d0; }

/* 当前阶段：竖向连接线渐变 + 头部强调 + 节点脉冲 */
.stage-block-current .timeline::before { background:linear-gradient(180deg, var(--primary,#2563eb) 0%, var(--gray-200,#e5e7eb) 100%); }
.stage-block-current .stage-block-head { background:linear-gradient(90deg, rgba(37,99,235,.07), var(--bg-sub,#f8fafc)); }
.stage-block-current .stage-dot.current { animation:pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{ box-shadow:0 0 0 4px rgba(37,99,235,.18);} 50%{ box-shadow:0 0 0 7px rgba(37,99,235,.10);} }

/* 周期设置：固定类多选按钮（替代实心蓝块，改为浅底可点胶囊） */
.memo-multi-btn {
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--gray-700);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    transition: all .12s ease;
    user-select: none;
    white-space: nowrap;
}
.memo-multi-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.memo-multi-btn.is-on {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}
/* 周末（周六/周日）淡红标识，未选中时生效；选中仍用浅蓝 */
.memo-multi-btn.we {
    background: #fff1f0;
    border-color: #ffccc7;
    color: #cf1322;
}
.memo-multi-btn.we.is-on {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

/* 月固定：7列日历网格（周一开始，周末淡色标识） */
.memo-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    max-width: 294px;
}
.memo-month-grid .mh {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    padding: 2px 0;
    border-radius: 4px;
}
.memo-month-grid .mh.we {
    background: #fff1f0;
    color: #f56565;
}
.memo-month-grid .memo-multi-btn {
    border-radius: 6px;
    padding: 5px 0;
    text-align: center;
    width: 100%;
}
.memo-month-grid .memo-multi-btn.we {
    background: #fff1f0;
    border-color: #ffccc7;
    color: #cf1322;
}
.memo-month-grid .memo-multi-btn.we.is-on {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ==================== 政策库（policy-library.js）==================== */
.policy-filter-bar { background: #f8fafc; border-color: #eef2f7; }
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.policy-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
    height: 100%;
}
.policy-card:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,.12);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}
.policy-card-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;
}
.policy-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.policy-card-amount { font-size: 14px; color: #374151; }
.policy-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* 机构库文档附件目录树 */
.kb-attachments-box { margin-top: 18px; }
.kb-att-panel { border-top: 1px solid var(--border, #e5e7eb); padding-top: 12px; }
.kb-att-toolbar { display: flex; gap: 8px; margin: 8px 0 10px; }
.kb-att-tree { font-size: 13px; }
.kb-att-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; }
.kb-att-row:hover { background: rgba(0,0,0,0.03); }
.kb-att-name { cursor: pointer; flex: 1 1 auto; }
.kb-att-name:hover { text-decoration: underline; }
.kb-att-meta { color: #9aa0a8; font-size: 11px; margin-right: 6px; }
.kb-att-actions { display: none; gap: 8px; font-size: 12px; }
.kb-att-row:hover .kb-att-actions { display: inline-flex; }
.kb-att-actions a { color: #6b7480; cursor: pointer; }
.kb-att-actions a:hover { color: #2563eb; }
.kb-att-children { margin-left: 4px; }
.kb-att-empty { color: #9aa0a8; font-size: 12px; padding: 2px 0; }

/* ============ 推进线泳道（项目详情页，取代老「综合阶段进度条」） ============ */
.kj-adv-line { border: 1px solid var(--border, #e5e7eb); }
.kj-adv-line--terminated { opacity: 0.62; }
.kj-adv-line-head { cursor: pointer; padding: 10px 12px; }
.kj-adv-line-head:hover { background: rgba(0,0,0,0.02); }
.kj-adv-type { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #fff; }
.kj-adv-type--government { background: #2563eb; }
.kj-adv-type--fund { background: #7c3aed; }
.kj-adv-stage { font-size: 13px; }
.kj-adv-norm { color: #6b7280; font-size: 11px; }
.kj-adv-signal { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; }
.kj-adv-stall { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #fff7ed; color: #c2410c; }
.kj-adv-term { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #fef2f2; color: #b91c1c; }
.kj-adv-count { font-size: 11px; color: #9aa0a8; margin-left: auto; }
.kj-adv-toggle { color: #9aa0a8; transition: transform .15s; }
.kj-adv-open .kj-adv-toggle { transform: rotate(180deg); }
.kj-adv-line-body { padding: 4px 12px 12px; border-top: 1px dashed var(--border, #e5e7eb); }

/* ============ 推进线管理（项目编辑框区块） ============ */
.kj-adv-mgmt-line { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.kj-adv-mgmt-line--terminated { opacity: 0.62; }
.kj-adv-mgmt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kj-adv-mgmt-title { font-weight: 600; font-size: 13px; }
.kj-adv-mgmt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kj-adv-mgmt-add { border: 1px dashed var(--border, #e5e7eb); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fafafa; }
.kj-adv-mgmt-add .form-control, .kj-adv-mgmt-add .form-select { font-size: 13px; }
