* { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; color: #1e293b; background: #f1f5f9; } .app { display: flex; flex-direction: column; height: 100%; } .app__header { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #0f172a; color: #f8fafc; flex: 0 0 auto; } .app__title { font-size: 15px; font-weight: 600; } .app__report-select { margin-left: 12px; background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 6px; padding: 3px 8px; font-size: 12.5px; cursor: pointer; } .app__stats { font-size: 12px; color: #cbd5e1; flex: 0 0 auto; } /* ---------- 搜索栏 ---------- */ .search { position: relative; flex: 1 1 auto; max-width: 420px; margin: 0 20px; } .search__input { width: 100%; background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 8px; padding: 6px 12px; font-size: 13px; outline: none; } .search__input:focus { border-color: #3b82f6; } .search__input::placeholder { color: #64748b; } .search__dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); max-height: 360px; overflow: auto; z-index: 100; padding: 6px; } .search__empty { padding: 10px 12px; color: #94a3b8; font-size: 12.5px; } .search__item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent; border-radius: 8px; padding: 7px 10px; cursor: pointer; } .search__item:hover { background: #f1f5f9; } .search__kind { flex: 0 0 auto; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; } .search__kind--flow { background: #dbeafe; color: #1d4ed8; } .search__kind--func { background: #e2e8f0; color: #475569; } .search__label { flex: 1 1 auto; font-size: 12.5px; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search__sub { flex: 0 0 auto; font-size: 11px; color: #94a3b8; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .app__body { flex: 1 1 auto; display: flex; min-height: 0; } .app__status { margin: auto; color: #64748b; font-size: 14px; } .app__status--error { color: #dc2626; } .app__canvas { flex: 1 1 auto; min-width: 0; height: 100%; } /* ---------- 侧栏面板 ---------- */ .panel { display: flex; flex-direction: column; background: #fff; flex: 0 0 auto; } .panel--groups { width: 210px; border-right: 1px solid #e2e8f0; } .panel--left { width: 280px; border-right: 1px solid #e2e8f0; } .panel--right { width: 320px; border-left: 1px solid #e2e8f0; } .panel__header { padding: 10px 14px; font-size: 13px; font-weight: 600; color: #334155; border-bottom: 1px solid #eef2f6; } .panel__body { flex: 1 1 auto; overflow: auto; padding: 8px; } /* ---------- 流程列表 ---------- */ .flow-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 12.5px; color: #475569; } .flow-item:hover { background: #f1f5f9; } .flow-item.is-active { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; } .flow-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flow-item__count { flex: 0 0 auto; font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 10px; padding: 1px 8px; } /* ---------- 分组列表 ---------- */ .group-item { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 7px 9px; cursor: pointer; font-size: 12.5px; color: #475569; } .group-item:hover { background: #f1f5f9; } .group-item.is-active { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; } .group-item--all { font-weight: 600; color: #334155; margin-bottom: 4px; } .group-item__tag { flex: 0 0 auto; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 5px; } .group-item__tag--class { background: #ddd6fe; color: #6d28d9; } .group-item__tag--file { background: #e2e8f0; color: #475569; } .group-item__name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .group-item__count { flex: 0 0 auto; font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 10px; padding: 1px 8px; } /* ---------- 图节点 ---------- */ .flow-node { width: 220px; min-height: 68px; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; gap: 4px; justify-content: center; } .flow-node__qualifier { font-size: 10.5px; font-weight: 600; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flow-node.is-entry { border-color: #34d399; background: #ecfdf5; } .flow-node.is-selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); } .flow-node__title { font-size: 12.5px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; } .flow-node__entry-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex: 0 0 auto; } .flow-node__badges { display: flex; gap: 4px; flex-wrap: wrap; } .badge { font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 6px; letter-spacing: 0.3px; } .badge-db { background: #fef3c7; color: #b45309; } .badge-api-in { background: #dbeafe; color: #1d4ed8; } .badge-api-out { background: #ede9fe; color: #6d28d9; } /* ---------- 详情面板 ---------- */ .detail-empty, .detail__muted { color: #94a3b8; font-size: 12.5px; } .detail__name { font-size: 15px; font-weight: 700; color: #0f172a; } .detail__qualified { font-size: 12px; color: #64748b; margin-top: 2px; word-break: break-all; } .detail__section { margin-top: 14px; } .detail__label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; } .detail__mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #334155; word-break: break-all; } .detail__sig { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 6px; padding: 6px 8px; } .detail__ix { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .ix-line { font-size: 12px; border-radius: 6px; padding: 4px 8px; } .ix-db { background: #fffbeb; color: #92400e; } .ix-api { background: #eff6ff; color: #1e40af; } .detail__flows { display: flex; flex-direction: column; gap: 4px; } .detail-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 12px; color: #475569; } .detail-flow:hover { background: #f8fafc; border-color: #cbd5e1; } .detail-flow.is-active { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; } .detail-flow__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .detail-flow__count { flex: 0 0 auto; font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 10px; padding: 1px 8px; } .detail__meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: #94a3b8; } .detail__entry { background: #d1fae5; color: #047857; border-radius: 6px; padding: 1px 8px; font-weight: 700; } .graph-empty { margin: auto; color: #94a3b8; }