/* ChainLens 单页样式：承载演示大屏布局与图谱组件；失败策略为响应式单列降级。 */
.app-shell { position: relative; z-index: 3; padding: 18px; display: grid; gap: 14px; min-width: 0; min-height: 100vh; }
.topbar { min-height: 76px; border: 0; border-bottom: 1px solid rgba(216,179,101,.28); border-radius: 0; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: linear-gradient(90deg, rgba(2,7,17,.48), rgba(13,31,70,.18) 48%, rgba(2,7,17,.38)); box-shadow: none; backdrop-filter: none; }
.topbar.danger { border-bottom-color: rgba(212,90,76,.7); box-shadow: inset 0 -1px rgba(212,90,76,.18); }
.brand { color: var(--text); display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 310px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-soft); border: 1px solid rgba(216,179,101,.42); background: rgba(216,179,101,.1); font: 800 24px var(--number-font); }
.brand-title { font-size: 18px; font-weight: 800; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin-top: 4px; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.alert-bar { border: 1px solid rgba(212,90,76,.48); background: rgba(91,18,22,.72); color: #ffd3cd; border-radius: 8px; padding: 12px 16px; box-shadow: 0 0 12px rgba(212,90,76,.12); }
.hidden { display: none !important; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-block: 1px solid rgba(216,179,101,.22); background: linear-gradient(90deg, rgba(2,7,17,.48), rgba(13,31,70,.28), rgba(2,7,17,.48)); }
.metric-card { position: relative; padding: 15px 16px; min-width: 0; min-height: 104px; border: 0; border-right: 1px solid rgba(216,179,101,.18); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; overflow: hidden; }
.metric-card:last-child { border-right: 0; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; font-family: var(--number-font); font-size: 30px; color: #fff7df; margin: 9px 0 4px; }
.metric-card small { color: #a9bbc4; font-size: 11px; }
.mini-spark { position: absolute; right: 14px; bottom: 12px; width: 72px; height: 26px; opacity: .58; background: linear-gradient(135deg, transparent 10%, rgba(127,199,217,.35) 11% 17%, transparent 18% 35%, rgba(216,179,101,.46) 36% 43%, transparent 44% 58%, rgba(212,90,76,.4) 59% 65%, transparent 66%); }
.s2 { transform: scaleY(1.25); } .s3 { transform: scaleX(.9); } .s4 { opacity:.42; } .s5 { width:116px; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr); gap: 14px; }
.left-zone, .right-zone { display: grid; gap: 0; min-width: 0; border-inline: 1px solid rgba(216,179,101,.16); }
.panel { position: relative; min-width: 0; border: 0; border-bottom: 1px solid rgba(216,179,101,.2); border-radius: 0; padding: 15px; background: linear-gradient(90deg, rgba(2,7,17,.26), rgba(6,16,30,.16), rgba(2,7,17,.26)); box-shadow: none; backdrop-filter: blur(3px); overflow: visible; }
.left-zone > .panel:last-child, .right-zone > .panel:last-child { border-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { margin: 3px 0 0; font-size: 20px; color: #fff7df; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.l-normal::before { background:#5B8DEF; } .l-watch::before { background:#F5A524; } .l-susp::before { background:#F03E3E; } .l-block::before { background:#8B1E3F; }
.graph-shell { height: 520px; border: 1px solid rgba(216,179,101,.32); border-radius: 8px; background: radial-gradient(ellipse at 50% 46%, rgba(13,31,55,.48), rgba(2,7,17,.70) 74%); box-shadow: inset 0 0 70px rgba(0,0,0,.28), 0 0 18px rgba(127,199,217,.06); overflow: hidden; }
#chainGraph { width: 100%; height: 100%; display: block; }
.lane line { stroke: rgba(216,179,101,.10); }
.lane text { fill: #b8c9d4; font-size: 11px; paint-order: stroke; stroke: rgba(1,4,10,.72); stroke-width: 3px; }
.tx-edge { fill: none; stroke: rgba(216,179,101,.26); stroke-width: 1.2; }
.tx-edge.danger { stroke: rgba(212,90,76,.82); stroke-width: 2; filter: url(#glow); }
.tx-node circle { stroke: rgba(244,236,216,.58); stroke-width: 1; filter: url(#glow); }
.tx-node.hollow circle { fill-opacity: .18; }
.tx-node.focus circle { stroke: #f1d99b; stroke-width: 3; animation: pulse 1.2s infinite; }
.tx-node text { text-anchor: middle; fill: #fff7df; font-size: 10px; pointer-events: none; font-family: var(--title-font); }
.table-panel { min-height: 260px; }
.table-wrap { max-height: 300px; overflow: auto; border: 1px solid rgba(216,179,101,.12); border-radius: 14px; }
.pre-signal td { background: rgba(216,179,101,.055); }
.result-panel { min-height: 520px; }
.empty { color: #bccdd6; line-height: 1.7; padding: 18px; border: 1px dashed rgba(216,179,101,.2); border-radius: 14px; }
.switch { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; }
.risk-meter { --score: 0; display: grid; place-items: center; text-align: center; width: 170px; height: 170px; border-radius: 50%; margin: 4px auto 16px; background: conic-gradient(var(--critical) calc(var(--score) * 360deg), rgba(216,179,101,.1) 0); position: relative; }
.risk-meter::after { content:""; position:absolute; inset:14px; border-radius:50%; background: rgba(3,9,22,.92); }
.risk-meter b, .risk-meter span { position: relative; z-index: 1; }
.risk-meter b { font-family: var(--number-font); font-size: 38px; color: #fff7df; }
.risk-meter span { width: 125px; color: #c5d4d6; font-size: 12px; line-height: 1.45; }
.finding-card, .knowledge-card { border: 0; border-bottom: 1px solid rgba(216,179,101,.18); border-left: 3px solid var(--finding-risk, rgba(212,90,76,.72)); background: linear-gradient(90deg, rgba(6,14,26,.48), rgba(6,14,26,.12) 72%); border-radius: 0; padding: 12px; margin-top: 10px; }
.finding-top { display: flex; justify-content: space-between; gap: 10px; color: #fff7df; }
.path-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; margin: 10px 0; }
.path-node { border: 1px solid rgba(216,179,101,.2); color: #f1d99b; background: rgba(216,179,101,.08); border-radius: 999px; padding: 5px 8px; }
.path-strip i { color: var(--muted); font-style: normal; }
.path-strip .path-node { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.path-strip .path-node small { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; background: rgba(216,179,101,.14); color: #f1d99b; }
.feature { position: relative; padding: 8px 0 13px; display: flex; justify-content: space-between; gap: 10px; color: #c8d2d1; font-size: 12px; }
.feature i { position:absolute; left:0; bottom:5px; height:4px; border-radius:99px; background: linear-gradient(90deg, var(--gold), var(--critical)); }
.reasoning, .false-positive p, .knowledge-card p { color: #c8d8e0; line-height: 1.65; font-size: 13px; }
.knowledge-hit { color: #f1d99b; font-size: 12px; margin: 9px 0; }
.actions { display:flex; flex-wrap:wrap; gap:8px; }
.false-positive { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(216,179,101,.14); }
.review-panel { min-height: 180px; }
.review-list { display: grid; gap: 10px; max-height: 300px; overflow: auto; padding-right: 6px; scrollbar-color: rgba(216,179,101,.55) rgba(216,179,101,.08); scrollbar-width: thin; }
.review-list::-webkit-scrollbar { width: 8px; }
.review-list::-webkit-scrollbar-track { background: rgba(216,179,101,.08); border-radius: 99px; }
.review-list::-webkit-scrollbar-thumb { background: rgba(216,179,101,.46); border-radius: 99px; }
.review-item { border: 0; border-bottom: 1px solid rgba(127,199,217,.18); border-left: 2px solid rgba(127,199,217,.42); border-radius: 0; padding: 9px 11px; background: linear-gradient(90deg, rgba(6,14,26,.38), transparent); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #cfefff; font-size: 12px; }
.review-head em { font-style: normal; color: #7fc7d9; border: 1px solid rgba(127,199,217,.3); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.review-chain { color: #bcd0dc; font-size: 11px; margin: 6px 0 0; word-break: break-all; line-height: 1.5; }
.review-opinion { color: #c8d8e0; font-size: 12px; line-height: 1.6; margin: 6px 0 0; border-top: 1px solid rgba(216,179,101,.1); padding-top: 6px; }
.knowledge-grid { display:grid; grid-template-columns: minmax(0,1fr) 360px; gap: 14px; }
.knowledge-list { max-height: 230px; overflow:auto; display:grid; gap:10px; }
.knowledge-card { margin:0; }
.knowledge-card.archived { opacity:.52; }
.confidence { height: 5px; background: rgba(216,179,101,.12); border-radius: 99px; margin: 9px 0; overflow:hidden; }
.confidence i { display:block; height:100%; background: linear-gradient(90deg, var(--gold), var(--low)); }
.knowledge-card small { color:#aabcc5; }
.reuse-chart { width:100%; height:230px; border:1px solid rgba(216,179,101,.12); border-radius:14px; background:rgba(2,7,17,.32); }
.reuse-chart text { fill:#f1d99b; font-size:12px; }
.reuse-chart .reuse-line { fill:none; stroke:#d8b365; stroke-width:2.5; filter: drop-shadow(0 0 8px rgba(216,179,101,.32)); }
.reuse-chart circle { fill:#7fc7d9; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(1,8,17,.76); display:grid; place-items:center; padding:20px; }
.dialog { width:min(580px,100%); border-radius:16px; padding:24px; }
.danger-dialog { border-color:rgba(212,90,76,.7); background:linear-gradient(145deg, rgba(91,18,22,.92), rgba(3,9,22,.88)); }
.dialog h2 { color:#ffd3cd; font-size:28px; }
.dialog p { color:#fff0dc; line-height:1.8; }
.close { position:absolute; top:10px; right:10px; border:0; background:transparent; color:var(--text); font-size:24px; cursor:pointer; }
footer { color:#a3b5bf; font-size:12px; letter-spacing:.08em; text-align:center; padding:8px 0 2px; }

/* Operations ledger and strategy history: dense on desktop, readable on narrow screens. */
.ledger-head { align-items: flex-end; }
.operations-ledger { min-width: 980px; table-layout: fixed; }
.operations-ledger th, .operations-ledger td { padding: 11px 10px; }
.operations-ledger th:nth-child(1) { width: 15%; }
.operations-ledger th:nth-child(2) { width: 16%; }
.operations-ledger th:nth-child(3) { width: 11%; }
.operations-ledger th:nth-child(4) { width: 14%; }
.operations-ledger th:nth-child(5) { width: 16%; }
.operations-ledger th:nth-child(6) { width: 13%; }
.operations-ledger th:nth-child(7) { width: 11%; }
.ledger-lifecycle, .ledger-id, .acct-id { display: grid; gap: 4px; }
.ledger-lifecycle > span, .muted-detail { color: #9db0ba; font-size: 11px; }
.ledger-lifecycle i { color: var(--cyan); font-size: 11px; font-style: normal; }
.ledger-status { width: fit-content; border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 600; }
.ledger-status.badge-danger { color: #ffaaa1; background: rgba(212,90,76,.1); }
.ledger-status.badge-normal { color: #f1d99b; background: rgba(216,179,101,.08); }
.ledger-status.badge-ok { color: #a9e8c1; background: rgba(116,198,157,.08); }
.ledger-status.badge-warn { color: #ffe3b0; background: rgba(215,157,69,.08); }
.ledger-id { color: var(--gold-soft); font: 11px var(--number-font); overflow-wrap: anywhere; }
.release-detail { color: #a9e8c1; font-size: 11px; overflow-wrap: anywhere; }
.is-reconnecting { background: var(--medium); box-shadow: 0 0 14px var(--medium); animation: none; }
.strategy-tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(216,179,101,.2); padding: 0 4px; }
.strategy-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #a9bbc4; cursor: pointer; padding: 10px 15px; font: inherit; font-size: 13px; }
.strategy-tab:hover, .strategy-tab.active { color: var(--gold-soft); border-bottom-color: var(--gold); }
.history-panel { min-height: 480px; }
.iteration-timeline { display: grid; gap: 0; position: relative; padding: 8px 0 8px 42px; }
.iteration-timeline::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--gold), rgba(127,199,217,.18)); }
.iteration-entry { position: relative; padding: 0 0 18px; }
.iteration-marker { position: absolute; left: -42px; top: 1px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(216,179,101,.55); border-radius: 50%; background: #071426; color: var(--gold-soft); font: 12px var(--number-font); }
.iteration-content { border: 0; border-bottom: 1px solid rgba(216,179,101,.16); border-radius: 0; padding: 13px 15px; background: linear-gradient(90deg, rgba(6,14,26,.42), transparent); }
.iteration-top, .iteration-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.iteration-top { justify-content: space-between; }
.iteration-top time { color: #c8d8e0; font-size: 12px; }
.iteration-meta { margin-top: 10px; color: var(--cyan); font-size: 12px; }
.iteration-meta span { border-left: 1px solid rgba(127,199,217,.28); padding-left: 8px; }
.iteration-content p { color: #c8d8e0; line-height: 1.65; margin: 10px 0 0; font-size: 13px; }
@media (max-width: 720px) {
  .operations-ledger { min-width: 900px; }
  .panel:has(.operations-ledger) { overflow: hidden; }
  .ledger-head { align-items: flex-start; flex-direction: column; }
  .strategy-tabs { overflow-x: auto; }
  .strategy-tab { white-space: nowrap; }
  .iteration-timeline { padding-left: 34px; }
  .iteration-marker { left: -34px; width: 25px; height: 25px; font-size: 10px; }
  .iteration-timeline::before { left: 12px; }
}

@media (max-width: 1520px) { .workbench { grid-template-columns: 1fr; } .right-zone { grid-template-columns: 1fr 1fr; } .result-panel { grid-row: span 2; } }
@media (max-width: 1280px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .topbar { align-items:flex-start; flex-direction:column; } .brand { min-width:0; } .right-zone, .knowledge-grid { grid-template-columns:1fr; } }
@media (max-width: 720px) { .app-shell { padding:12px; } .topbar, .top-actions { min-width: 0; width: 100%; } .top-actions { justify-content: flex-start; } .metric-grid { grid-template-columns:1fr; } .metric-card { border-right: 0; border-bottom: 1px solid rgba(216,179,101,.18); } .metric-card:last-child { border-bottom: 0; } .graph-shell { height:390px; } .status-pill { white-space:normal; } }

@media (max-width: 720px) {
  .page-chainlens .map-workbench { min-width: 0; }
  .page-chainlens .map-workbench > .map-canvas-shell { min-width: 0; }
  .page-chainlens .map-canvas-shell::after { right: 0; max-width: 100%; }
}

/* 网状资金关系图 */
.graph-shell { position: relative; user-select: none; -webkit-user-select: none; }
#chainGraph { cursor: grab; touch-action: none; }
#chainGraph.panning { cursor: grabbing; }
.graph-zoom-hud { position: absolute; right: 12px; bottom: 10px; z-index: 3; font-size: 11px; color: #bcd0dc; border: 1px solid rgba(216,179,101,.18); border-radius: 999px; padding: 4px 10px; background: rgba(3,9,22,.72); backdrop-filter: blur(10px); pointer-events: none; white-space: nowrap; }
.graph-backdrop circle { fill: none; stroke: rgba(216,179,101,.13); }
.graph-backdrop line { stroke: rgba(127,199,217,.10); }
.relation-edge { cursor: pointer; }
.relation-edge .edge-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; }
.relation-edge .edge-path { fill: none; stroke: rgba(216,179,101,.32); stroke-width: var(--ew, 1.35); opacity: .85; pointer-events: stroke; }
.relation-edge.watch .edge-path { stroke: rgba(216,179,101,.68); filter: drop-shadow(0 0 8px rgba(216,179,101,.20)); }
.relation-edge.danger .edge-path { stroke: rgba(212,90,76,.92); filter: drop-shadow(0 0 10px rgba(212,90,76,.46)); }
.relation-edge.danger .edge-path { stroke-dasharray: 10 7; animation: edgePulse 1.1s linear infinite; }
.relation-edge.selected .edge-path { stroke: #f1d99b; stroke-width: 4.2; filter: drop-shadow(0 0 16px rgba(216,179,101,.7)); }
.relation-edge .edge-label { fill: #bcd0dc; font-size: var(--view-font-11, 11px); paint-order: stroke; stroke: rgba(1,4,10,.86); stroke-width: var(--view-stroke4, 4px); pointer-events: none; }
.relation-edge.danger .edge-label { fill: #ffd3cd; }
.account-node { cursor: pointer; outline: none; }
.account-node .node-body { stroke: rgba(244,236,216,.42); stroke-width: 1.1; fill-opacity: .92; transition: stroke .18s ease, stroke-width .18s ease; }
.account-node .node-diamond { display: none; stroke: rgba(244,236,216,.5); stroke-width: 1.1; transition: stroke .18s ease, stroke-width .18s ease; }
.account-node.distinct .node-body { display: none; }
.account-node.distinct .node-diamond { display: inline; }
.account-node .node-orbit { fill: none; stroke: rgba(216,179,101,.26); stroke-width: 1; transition: stroke .18s ease, stroke-width .18s ease; }
.account-node .node-core { fill: #f1d99b; opacity: .9; }
.account-node.hollow .node-body { fill-opacity: .16; }
.account-node.hollow .node-orbit { opacity: .7; }
.account-node.hollow .node-core { opacity: .5; }
.account-node:hover .node-orbit, .account-node:focus-visible .node-orbit { stroke: rgba(216,179,101,.6); stroke-width: 1.5; }
.account-node.watch .node-orbit, .account-node.watching .node-orbit { stroke: rgba(216,179,101,.6); }
.account-node.suspicious .node-orbit { stroke: rgba(212,90,76,.72); }
.account-node.blocked .node-orbit { stroke: rgba(255,211,205,.8); }
.account-node.atm .node-body, .account-node.atm .node-diamond { stroke: rgba(255,211,205,.75); }
.account-node.merchant .node-body, .account-node.merchant .node-diamond { stroke: rgba(127,199,217,.55); }
.account-node.focus .node-body, .account-node.focus .node-diamond { stroke: #f1d99b; stroke-width: 1.8; }
.account-node.focus .node-orbit { stroke: #f1d99b; stroke-width: 1.6; animation: orbitFocus 1.6s ease-in-out infinite; }
.account-node.selected .node-orbit { stroke: #fff7df; stroke-width: 1.8; }
.account-node.selected .node-body, .account-node.selected .node-diamond { stroke: #fff7df; stroke-width: 2; }
@keyframes orbitFocus { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.node-lock { text-anchor: middle; font-size: var(--view-font-9, 9px); font-weight: 700; fill: #ffd3cd; pointer-events: none; paint-order: stroke; stroke: rgba(1,4,10,.8); stroke-width: 2px; }
.node-label { text-anchor: middle; fill: #d9e5e0; font-size: var(--view-font-11, 11px); pointer-events: none; paint-order: stroke; stroke: rgba(1,4,10,.86); stroke-width: var(--view-stroke4, 4px); }
.graph-detail { position: absolute; right: 14px; top: 14px; width: min(360px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; z-index: 4; border: 1px solid rgba(216,179,101,.32); border-radius: 16px; padding: 14px; background: rgba(3,9,22,.86); backdrop-filter: blur(18px) saturate(135%); box-shadow: 0 18px 58px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05); }
.graph-detail::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(216,179,101,.95), rgba(127,199,217,.30), transparent); }
.graph-detail h3 { margin: 5px 30px 8px 0; color: #fff7df; font-size: 17px; word-break: break-all; }
.detail-close { position: absolute; top: 9px; right: 10px; border: 0; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }
.detail-meta, .detail-tags, .detail-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0; }
.detail-meta span, .detail-tags span { border: 1px solid rgba(216,179,101,.16); border-radius: 999px; padding: 5px 8px; color: #c8d2d1; background: rgba(216,179,101,.06); font-size: 12px; }
.detail-kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.detail-kpis b { border: 1px solid rgba(127,199,217,.18); border-radius: 12px; padding: 8px; color: #f1d99b; background: rgba(127,199,217,.06); font-family: var(--number-font); font-size: 12px; }
.detail-events { display: grid; gap: 6px; margin-top: 10px; }
.detail-events i { color: #bcd0dc; font-style: normal; font-size: 12px; line-height: 1.45; border-top: 1px solid rgba(216,179,101,.10); padding-top: 6px; }
@media (max-width: 720px) { .graph-detail { left: 14px; right: 14px; width: auto; } .detail-kpis { grid-template-columns: 1fr; } }

/* 研判结果折叠卡片 */
.finding-card.compact { padding: 0; overflow: visible; }
.finding-summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 0; color: #fff7df; }
.finding-summary:focus, .finding-summary:focus-visible { outline: 2px solid var(--tx-cyan); outline-offset: 3px; }
.finding-summary::-webkit-details-marker { display: none; }
.finding-summary::before { content: "+"; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(216,179,101,.28); color: var(--gold-soft); background: rgba(216,179,101,.08); }
.finding-card[open] .finding-summary::before { content: "-"; }
.finding-summary span:first-child { display: grid; gap: 4px; min-width: 0; }
.finding-summary b { color: #fff7df; }
.finding-summary small { color: #b8c9d4; font-size: 12px; }
.summary-score { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.summary-score i { color: #bcd0dc; font-style: normal; font-size: 12px; }
.summary-score em { color: #ffd3cd; font-style: normal; font-family: var(--number-font); border: 1px solid rgba(212,90,76,.35); border-radius: 999px; padding: 4px 8px; background: rgba(212,90,76,.10); }
.finding-body { padding: 0 12px 12px; border-top: 1px solid rgba(216,179,101,.18); }
.result-panel { max-height: 720px; overflow: auto; }
/* 异常链路滚动列表 */
.findings-title { margin: 10px 0 8px; color: var(--gold-soft); font-size: 13px; letter-spacing: .08em; }
.findings-scroll { position: relative; display: grid; gap: 10px; max-height: 390px; overflow-y: auto; padding: 2px 6px 12px 0; scrollbar-color: rgba(216,179,101,.55) rgba(216,179,101,.08); scrollbar-width: thin; }
.findings-scroll::after { content: "继续向下滚动查看更多链路"; position: sticky; bottom: 0; display: block; text-align: center; padding: 9px 0 2px; color: #a9bbc4; font-size: 12px; background: linear-gradient(180deg, transparent, rgba(3,9,22,.94) 42%); pointer-events: none; }
.findings-scroll::-webkit-scrollbar { width: 8px; }
.findings-scroll::-webkit-scrollbar-track { background: rgba(216,179,101,.08); border-radius: 99px; }
.findings-scroll::-webkit-scrollbar-thumb { background: rgba(216,179,101,.46); border-radius: 99px; }
.findings-scroll .finding-card { margin-top: 0; }
@media (max-width: 720px) { .findings-scroll { max-height: 330px; } }
/* 智能识别加载态 */
.detect-loading { display: grid; place-items: center; text-align: center; gap: 12px; min-height: 330px; padding: 24px 18px; border: 1px dashed rgba(216,179,101,.22); border-radius: 16px; background: rgba(2,7,17,.28); }
.detect-loading b { color: #fff7df; font-size: 18px; }
.detect-loading p { max-width: 360px; margin: 0; color: #bcd0dc; line-height: 1.7; }
.loading-ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(216,179,101,.16); border-top-color: var(--gold-soft); border-right-color: rgba(127,199,217,.72); box-shadow: 0 0 28px rgba(216,179,101,.16), inset 0 0 18px rgba(127,199,217,.08); animation: spin 1s linear infinite; }
.loading-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(360px, 100%); margin-top: 4px; }
.loading-steps i { font-style: normal; color: #c8d2d1; font-size: 12px; border: 1px solid rgba(216,179,101,.16); border-radius: 999px; padding: 7px 9px; background: rgba(216,179,101,.06); }
@media (max-width: 720px) { .loading-steps { grid-template-columns: 1fr; } }
/* 模型加载环与链路类型颜色 */
.loading-ring { animation: loadingSpin 1s linear infinite, loadingBreath 1.8s ease-in-out infinite; }
@keyframes loadingSpin { to { transform: rotate(360deg); } }
@keyframes loadingBreath { 0%,100% { filter: drop-shadow(0 0 8px rgba(216,179,101,.22)); } 50% { filter: drop-shadow(0 0 24px rgba(127,199,217,.42)); } }
.relation-edge.chain-money_laundering .edge-path { stroke: rgba(212,90,76,.95); stroke-width: 2.8; filter: drop-shadow(0 0 10px rgba(212,90,76,.46)); }
.relation-edge.chain-malicious_transfer .edge-path { stroke: rgba(241,217,155,.98); stroke-width: 2.8; filter: drop-shadow(0 0 10px rgba(241,217,155,.46)); }
.relation-edge.chain-gang_cross_platform .edge-path { stroke: rgba(127,199,217,.96); stroke-width: 2.8; filter: drop-shadow(0 0 12px rgba(127,199,217,.42)); }
.relation-edge.chain-money_laundering .edge-label { fill: #ffd3cd; }
.relation-edge.chain-malicious_transfer .edge-label { fill: #f1d99b; }
.relation-edge.chain-gang_cross_platform .edge-label { fill: #cfefff; }
.relation-edge.chain-card_theft .edge-path { stroke: rgba(255,159,64,.96); stroke-width: 2.8; filter: drop-shadow(0 0 10px rgba(255,159,64,.5)); }
.relation-edge.chain-telecom_fraud .edge-path { stroke: rgba(235,69,95,.96); stroke-width: 2.8; filter: drop-shadow(0 0 10px rgba(235,69,95,.5)); }
.relation-edge.chain-card_theft .edge-label { fill: #ffd0a3; }
.relation-edge.chain-telecom_fraud .edge-label { fill: #ffc9cf; }
.finding-card.compact:nth-of-type(1) { --finding-risk: rgba(212,90,76,.88); }
.finding-card.compact:nth-of-type(2) { --finding-risk: rgba(241,217,155,.76); }
.finding-card.compact:nth-of-type(3) { --finding-risk: rgba(127,199,217,.76); }
/* 图例扩展：异常链路类型 */
.l-money::before { background: #d45a4c; box-shadow: 0 0 10px rgba(212,90,76,.55); }
.l-malicious::before { background: #f1d99b; box-shadow: 0 0 10px rgba(241,217,155,.55); }
.l-gang::before { background: #7fc7d9; box-shadow: 0 0 10px rgba(127,199,217,.55); }
.l-card::before { background: #ff9f40; box-shadow: 0 0 10px rgba(255,159,64,.55); }
.l-scam::before { background: #eb455f; box-shadow: 0 0 10px rgba(235,69,95,.55); }
.legend span { display: inline-flex; align-items: center; }
.legend .ghost { padding: 4px 11px; font-size: 12px; }

/* 链路子图面板 */
.subgraph-panel { min-height: 380px; }
.subgraph-shell { position: relative; height: 390px; border: 1px solid rgba(216,179,101,.14); border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(31,54,68,.32), rgba(2,7,17,.44) 64%); overflow: hidden; }
#chainSubgraph { width: 100%; height: 100%; display: block; }
#chainSubgraph .edge-path { stroke-dasharray: 9 6; animation: edgePulse 1.2s linear infinite; }
#chainSubgraph .edge-hit { fill: none; stroke: transparent; stroke-width: 20; pointer-events: stroke; }
#chainSubgraph .subgraph-note text { fill: #b8c9d1; font-size: 12px; letter-spacing: .025em; paint-order: stroke; stroke: rgba(2,7,17,.9); stroke-width: 3px; }
#chainSubgraph .edge-label { font-size: 12px; }
#chainSubgraph .relation-edge { opacity: .82; }
#chainSubgraph .edge-normal .edge-path { stroke: #63c7a2; stroke-width: 2; }
#chainSubgraph .edge-watching .edge-path { stroke: #d8b365; stroke-width: 2.4; }
#chainSubgraph .edge-suspicious .edge-path { stroke: #e0874d; stroke-width: 3; }
#chainSubgraph .edge-blocked .edge-path { stroke: #d45a4c; stroke-width: 3.5; }
#chainSubgraph .relation-edge:hover { opacity: 1; }
.subgraph-panel.is-expanded { position: fixed !important; inset: 24px; z-index: 1400; margin: 0; padding: 18px; background: rgba(3,9,20,.98) !important; box-shadow: 0 0 0 100vmax rgba(0,0,0,.78), 0 24px 80px rgba(0,0,0,.72); }
.subgraph-panel.is-expanded .subgraph-shell { height: calc(100vh - 110px); }
.subgraph-panel.is-expanded #chainSubgraph .node-label { font-size: 14px; }
.subgraph-panel.is-expanded #chainSubgraph .edge-label { font-size: 13px; }
.subgraph-panel.is-expanded #chainSubgraph .subgraph-note text { font-size: 13px; }
#chainSubgraph .subgraph-loading { fill: #b8c9d1; font-size: 12px; }
.subgraph-shell .subgraph-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #bccdd6; font-size: 12px; line-height: 1.7; padding: 20px; margin: 0; pointer-events: none; }
.subgraph-link { margin: 8px 0 4px; }
.subgraph-link .ghost { padding: 5px 12px; font-size: 12px; }
.collapsed-path { cursor: default; border-style: dashed; color: #9fb2bd; }
.finding-card[open] { background: linear-gradient(90deg, rgba(13,31,50,.62), rgba(6,14,26,.16) 78%); }
.finding-card.active-sub { border-left-color: #f1d99b; box-shadow: inset 5px 0 12px rgba(216,179,101,.08); }

/* 人工研判（Human-in-the-Loop） */
#reviewModal .dialog h2 { color: #fff7df; font-size: 22px; }
.review-chain { color: #f1d99b; font-size: 12px; line-height: 1.6; margin: 10px 0; word-break: break-all; }
.review-label { display: block; color: #c8d8e0; font-size: 12px; margin: 12px 0 6px; }
#reviewOpinion { width: 100%; min-height: 84px; border: 1px solid rgba(216,179,101,.24); border-radius: 12px; padding: 10px; background: rgba(2,7,17,.7); color: #e8efe9; font-family: var(--title-font); font-size: 13px; line-height: 1.6; box-sizing: border-box; resize: vertical; }
#reviewOpinion::placeholder { color: #9db0ba; }

/* 取现阻断待确认（Human-in-the-Loop） */
.intercept-panel { min-height: 120px; }
.intercept-list { display: grid; gap: 10px; max-height: 260px; overflow: auto; padding-right: 6px; scrollbar-color: rgba(216,179,101,.55) rgba(216,179,101,.08); scrollbar-width: thin; }
.intercept-list::-webkit-scrollbar { width: 8px; }
.intercept-list::-webkit-scrollbar-track { background: rgba(216,179,101,.08); border-radius: 99px; }
.intercept-list::-webkit-scrollbar-thumb { background: rgba(216,179,101,.46); border-radius: 99px; }
.intercept-item { border: 0; border-bottom: 1px solid rgba(212,90,76,.32); border-left: 2px solid rgba(212,90,76,.62); border-radius: 0; padding: 9px 11px; background: linear-gradient(90deg, rgba(91,18,22,.24), transparent); }
.intercept-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #ffd3cd; font-size: 12px; }
.intercept-head em { font-style: normal; color: #f5a524; border: 1px solid rgba(245,165,36,.35); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.intercept-meta { color: #e8efe9; font-size: 12px; margin: 6px 0 0; word-break: break-all; }
.intercept-reason { color: #c8d8e0; font-size: 12px; line-height: 1.6; margin: 4px 0 0; }
.intercept-item .actions { margin-top: 8px; }
/* ── 功能面板补充样式（与初始深空金青体系统一衔接） ── */
.fraud-panel, .model-panel {
  border-radius: 0; padding: 15px;
  position: relative; z-index: 100;        /* 展开时置顶（高于普通面板，低于顶栏/弹窗） */
  overflow: visible;                       /* 展开内容不被裁剪 */
}
.fraud-layout, .model-body { position: relative; z-index: 101; }
.fraud-head, .model-head { cursor: pointer; }
.fraud-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fraud-id { color: var(--gold-soft); }
.fraud-layout { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
.fraud-tips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fraud-tip { border: 0; border-bottom: 1px solid rgba(216,179,101,.16); border-left: 2px solid rgba(216,179,101,.34); background: linear-gradient(90deg, rgba(6,14,26,.42), transparent); border-radius: 0; padding: 12px; }
.fraud-tip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fraud-tip-head b { color: #fff7df; }
.fraud-tip-head small { color: #b8c9d4; }
.fraud-level { border: 1px solid rgba(212,90,76,.4); color: #ffd3cd; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.lv-medium .fraud-level { border-color: rgba(216,179,101,.5); color: #f1d99b; }
.lv-low .fraud-level { border-color: rgba(116,198,157,.4); color: #a9e8c1; }
.fraud-tip p { color: #c8d8e0; line-height: 1.6; font-size: 13px; margin: 8px 0 0; }
.chat-box { border: 1px solid rgba(216,179,101,.18); border-radius: 14px; background: rgba(3,9,22,.6); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(216,179,101,.14); }
.chat-head b { color: var(--gold-soft); }
.chat-head small { color: #b8c9d4; font-size: 11px; }
.chat-close { border: 0; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.chat-scroll { max-height: 260px; overflow: auto; padding: 12px 14px; display: grid; gap: 8px; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.chat-msg.user { justify-self: end; background: rgba(216,179,101,.12); color: #f4ecd8; border: 1px solid rgba(216,179,101,.24); }
.chat-msg.ai { justify-self: start; background: rgba(127,199,217,.08); color: #d5ecf5; border: 1px solid rgba(127,199,217,.2); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(216,179,101,.14); }
.chat-input-row input { flex: 1; border: 1px solid rgba(216,179,101,.24); background: rgba(2,7,17,.7); color: #e8efe9; border-radius: 999px; padding: 8px 14px; font-family: var(--title-font); font-size: 13px; outline: none; }
.chat-log { color: #9db0ba; font-size: 11px; padding: 0 14px 10px; margin: 0; }
.light-strip { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(127,199,217,.22); border-radius: 12px; background: rgba(6,14,26,.5); padding: 8px 12px; margin-bottom: 10px; font-size: 12px; color: #c8d8e0; line-height: 1.5; }
.light-strip.hidden { display: none; }
.light-badge { flex-shrink: 0; border: 1px solid rgba(127,199,217,.4); color: #7fe9ff; border-radius: 999px; padding: 2px 10px; font-size: 10.5px; letter-spacing: .05em; }
#lightText { color: #c8d8e0; }
.model-body { margin-top: 4px; }
.model-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.model-kpi { border: 0; border-right: 1px solid rgba(216,179,101,.16); border-radius: 0; padding: 12px; text-align: center; background: rgba(6,14,26,.24); }
.model-kpi:last-child { border-right: 0; }
.model-kpi span { display: block; color: var(--muted); font-size: 12px; }
.model-kpi b { color: #fff7df; font-family: var(--number-font); font-size: 18px; }
.model-desc { color: #c8d8e0; line-height: 1.65; font-size: 13px; margin: 12px 0 0; }
.model-tip { color: #f1d99b; font-size: 12px; margin: 8px 0 0; }
.kill-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kill-name { color: #ffd3cd; letter-spacing: .14em; font-size: 13px; }
.kill-ico { color: #d45a4c; font-size: 22px; text-shadow: 0 0 16px rgba(212,90,76,.6); }
.kill-scene { position: relative; border: 1px solid rgba(212,90,76,.3); border-radius: 12px; background: rgba(2,7,17,.5); overflow: hidden; }
.kill-3d { height: 150px; }
.kill-tracer-wrap { position: absolute; left: 0; right: 0; top: 50%; pointer-events: none; }
.kill-tracer { height: 2px; background: linear-gradient(90deg, transparent, #fff2cc, transparent); animation: killTracer .5s linear infinite; }
.kill-flash { position: absolute; right: 12%; top: 44%; color: #fff2cc; font-size: 20px; text-shadow: 0 0 18px #fff2cc; animation: killFlash .5s ease-out infinite; }
.kill-casing { position: absolute; left: 38%; top: 46%; width: 4px; height: 8px; background: #d8b365; border-radius: 2px; animation: killCasing .5s linear infinite; }
.kill-hit { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); color: #ff8d95; font-size: 34px; text-shadow: 0 0 24px rgba(212,90,76,.8); animation: killHit .6s ease-out infinite; }
.kill-caption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: #ffd3cd; font-size: 12px; letter-spacing: .2em; }
@keyframes killTracer { 0% { opacity: 0; transform: translateX(-30%); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(30%); } }
@keyframes killFlash { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes killCasing { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(18px) rotate(180deg); opacity: 0; } }
@keyframes killHit { 0%,100% { transform: translate(-50%,-50%) scale(.8); opacity: .6; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } }
.intercept-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.corner-alert { position: fixed; right: 18px; bottom: 18px; z-index: 900; max-width: 340px; border: 1px solid rgba(212,90,76,.5); background: rgba(91,18,22,.9); color: #ffd3cd; border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 13px; line-height: 1.6; }
.corner-alert small { display: block; color: #e8d0c8; font-size: 12px; margin-top: 4px; }
.pre-tag { margin-left: 6px; color: #b8c9d4; }

/* ── 防骗测评（AI 画像个性化） ── */
.quiz-box { border: 1px solid rgba(216,179,101,.18); border-radius: 14px; background: rgba(3,9,22,.55); padding: 14px 16px; }
.quiz-head { color: var(--gold-soft); font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.quiz-item { margin-bottom: 12px; }
.quiz-item p { color: #d5ecf5; font-size: 13px; line-height: 1.6; margin: 0 0 6px; }
.quiz-item p b { color: #ffd97a; }
.quiz-opts { display: grid; gap: 6px; }
.quiz-opt { display: flex; align-items: center; gap: 8px; color: #bcd0e8; font-size: 13px; cursor: pointer; padding: 6px 10px; border: 1px solid rgba(148,163,184,.16); border-radius: 10px; background: rgba(6,14,26,.4); }
.quiz-opt:hover { border-color: rgba(216,179,101,.4); }
.quiz-opt input { accent-color: #d8b365; }
#quizResult { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(216,179,101,.2); color: #c8d8e0; font-size: 13px; line-height: 1.7; }
#quizResult ul { margin: 6px 0; padding-left: 18px; }
#quizResult li { color: #ffd97a; }
.quiz-hint { color: #74c69d; font-size: 12px; }

/* 隐私同意 */
.consent-row { display: flex; align-items: center; gap: 8px; color: #bcd0dc; font-size: 12px; margin-bottom: 10px; cursor: pointer; }
.consent-row input { accent-color: #d8b365; }

/* 人工研判升级：AI 交流 + 选择题数据标记 */
.review-dialog { max-height: 80vh; overflow-y: auto; }
.review-ai { border: 1px solid rgba(127,199,217,.25); border-radius: 12px; padding: 10px 12px; background: rgba(127,199,217,.05); margin-bottom: 10px; }
.review-ai b { color: #7fe9ff; font-size: 13px; }
.review-ai p { color: #d5ecf5; font-size: 13px; line-height: 1.6; margin: 6px 0; }
.review-ai-v { font-size: 12px; color: #bcd0dc; }
.review-ai-v em { color: #ffd97a; font-style: normal; }
.review-ai-loading { color: #8fa3b8; font-size: 12px; }
.review-quiz { border: 1px solid rgba(216,179,101,.2); border-radius: 12px; padding: 10px 12px; }
.review-q-title { color: var(--gold-soft); font-size: 13px; margin: 0 0 8px; }
.review-verdicts { display: grid; gap: 6px; }
.rv-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8f0f6; cursor: pointer; padding: 8px 10px; border: 1px solid rgba(148,163,184,.16); border-radius: 10px; background: rgba(6,14,26,.4); }
.rv-opt:hover { border-color: rgba(216,179,101,.4); }
.rv-opt input { accent-color: #d8b365; }
.rv-opt small { color: #bcd0dc; font-size: 11px; margin-left: auto; }
.review-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #d5ecf5; cursor: pointer; padding: 5px 10px; border: 1px solid rgba(148,163,184,.14); border-radius: 999px; background: rgba(6,14,26,.4); }
.rr-opt:hover { border-color: rgba(216,179,101,.4); }
.rr-opt input { accent-color: #d8b365; }
