:root{
  --bg:#f3f5f7;--panel:#fbfcfd;--card:#fff;--text:#172438;--muted:#667386;--border:#dfe5eb;
  --navy:#253a55;--blue:#6f8fae;--blue-soft:#e9f0f6;--green:#668e82;--green-soft:#e9f1ee;
  --tan:#a58b68;--tan-soft:#f3eee7;--plum:#887b95;--plum-soft:#efecf2;--rose:#a17f82;--rose-soft:#f3ecec;
  --shadow:0 8px 22px rgba(39,55,72,.06)
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit}
button,input{font:inherit}
.topbar{max-width:1500px;margin:0 auto;padding:34px 28px 20px;display:flex;justify-content:space-between;gap:28px;align-items:flex-end}
.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--blue);font-weight:700}
h1{font-size:40px;line-height:1.06;margin:6px 0 10px;letter-spacing:-.03em}
.topbar p{margin:0;color:var(--muted);max-width:760px;line-height:1.7}
.header-stats{display:flex;border:1px solid var(--border);background:rgba(255,255,255,.68);border-radius:16px;overflow:hidden}
.header-stats div{padding:16px 22px;min-width:105px;text-align:center;border-left:1px solid var(--border)}
.header-stats div:first-child{border-left:0}
.header-stats strong{display:block;font-size:24px;color:var(--navy)}
.header-stats span{font-size:11px;color:var(--muted)}
.layout{max-width:1500px;margin:0 auto;padding:0 28px;display:grid;grid-template-columns:245px minmax(0,1fr) 300px;gap:16px;align-items:stretch}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}
.filters,.detail{padding:18px}
.search span,.filter-block h2,.detail h3{display:block;font-size:12px;color:var(--muted);font-weight:700;margin:0 0 9px;letter-spacing:.02em}
.search input{width:100%;border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:#fff;outline:none}
.search input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(111,143,174,.12)}
.filter-block{margin-top:20px}
.kit-list,.chips{display:flex;flex-wrap:wrap;gap:7px}
.kit-list button,.chips button,.distance-legend button{border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer}
.kit-list button,.chips button{border-radius:999px;padding:7px 10px;font-size:12px}
.kit-list button.active,.chips button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.distance-legend{display:grid;gap:7px}
.distance-legend button{border-radius:11px;padding:9px 10px;text-align:left;display:flex;align-items:center;justify-content:space-between}
.distance-legend button b{font-size:12px}
.distance-legend button span{font-size:10px;color:var(--muted)}
.distance-legend button.active{background:var(--blue-soft);border-color:#b9c9d9}
.secondary-btn{margin-top:18px;width:100%;border:1px solid var(--border);background:transparent;border-radius:11px;padding:10px;cursor:pointer;color:var(--muted)}
.graph-panel{padding:14px;min-width:0}
.graph-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:4px 6px 10px}
.graph-toolbar h2{font-size:16px;margin:0 0 3px}
.graph-toolbar p{font-size:11px;color:var(--muted);margin:0}
.legend{display:flex;flex-wrap:wrap;gap:10px;font-size:10px;color:var(--muted)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px}
.dot.research{background:var(--blue)}.dot.lab{background:var(--plum)}.dot.engineering{background:var(--green)}.dot.product{background:var(--tan)}.dot.china{background:var(--rose)}
.graph-wrap{width:100%;aspect-ratio:1.42/1;min-height:520px;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fafb);border:1px solid #e8edf1;overflow:hidden}
#graph{width:100%;height:100%;display:block}
.edge{stroke:#cfd8e0;stroke-width:1.1;opacity:.52}
.edge.strong{stroke:#9fb0bf;opacity:.8}
.node{cursor:pointer;outline:none}
.node circle{stroke:#fff;stroke-width:2.4;filter:drop-shadow(0 3px 5px rgba(40,55,70,.10))}
.node text{font-size:11px;fill:var(--text);font-weight:650;text-anchor:middle;pointer-events:none}
.node .sub{font-size:8px;fill:#7a8794;font-weight:500}
.node.selected circle{stroke:var(--navy);stroke-width:4}
.node.dim{opacity:.12}
.cluster-label{font-size:12px;font-weight:700;fill:#617184;letter-spacing:.04em}
.central circle{fill:var(--navy);stroke:#fff;stroke-width:4}
.central .main{font-size:32px;fill:#fff;font-weight:800}
.central .sub{font-size:9px;fill:#dce5ee}
.empty-state{height:100%;min-height:560px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--muted)}
.empty-orbit{width:86px;height:86px;border:1px solid #ccd6df;border-radius:50%;display:grid;place-items:center;font-size:28px;font-weight:800;color:var(--navy);margin-bottom:18px;background:#fff}
.empty-state h2{margin:0;color:var(--text);font-size:18px}
.empty-state p{font-size:12px;line-height:1.7}
.profile-head{display:flex;gap:12px;align-items:center}
.avatar{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);font-weight:800;font-size:20px;color:var(--navy);border:1px solid #cfdae4;flex:none}
.profile-head h2{font-size:20px;margin:2px 0}
.profile-head p{font-size:12px;color:var(--muted);margin:0}
.source-badge{font-size:10px;color:var(--muted)}
.why{font-size:13px;line-height:1.75;margin:18px 0}
.person-tags{margin-bottom:18px}
.person-tags span{font-size:10px;background:#eef2f5;border:1px solid var(--border);padding:5px 8px;border-radius:999px}
.links{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:20px}
.links a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;border:1px solid var(--border);border-radius:10px;padding:9px 10px;background:#fff;font-size:11px}
.links a:hover{border-color:#aebfce;background:#f7f9fb}
.relations,.recommendations{display:grid;gap:7px;margin-bottom:18px}
.relation,.rec{border:1px solid var(--border);background:#fff;border-radius:10px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.relation small,.rec small{color:var(--muted);font-size:10px}
.rec button{border:0;background:var(--blue-soft);color:var(--navy);width:28px;height:28px;border-radius:50%;cursor:pointer}
.method{max-width:1444px;margin:16px auto 0;padding:22px 26px;display:grid;grid-template-columns:300px 1fr;gap:40px;align-items:center}
.method h2{margin:4px 0;font-size:20px}
.method p{margin:0;color:var(--muted);line-height:1.8;font-size:13px}
.method b{color:var(--navy)}
footer{max-width:1500px;margin:0 auto;padding:22px 30px 36px;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
footer a{text-underline-offset:3px}
@media(max-width:1120px){.layout{grid-template-columns:220px minmax(0,1fr)}.detail{grid-column:1/-1}.empty-state{min-height:220px}.header-stats{display:none}}
@media(max-width:760px){.topbar{padding:24px 16px 14px}.topbar h1{font-size:30px}.layout{padding:0 12px;grid-template-columns:1fr}.filters{order:1}.graph-panel{order:2;padding:9px}.detail{order:3}.graph-wrap{min-height:480px;overflow:auto}.graph-wrap svg{min-width:760px}.graph-toolbar{display:block}.legend{margin-top:10px}.method{margin:12px;padding:18px;grid-template-columns:1fr}.method p{font-size:12px}footer{padding:18px;display:block;line-height:2}.filter-block{margin-top:14px}}
