/* 星图：深色神经网络 + 右侧整理卡片 */
:root { --ink: #f6efe6; --ink2: rgba(246, 239, 230, .66); --ink3: rgba(246, 239, 230, .42); --glass: rgba(18, 14, 11, .72); --line: rgba(255, 236, 214, .1); --brand: #ffb04a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #030202; color: var(--ink); font: 14px/1.5 "Geist", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

/* 标签 */
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; display: flex; align-items: center; gap: 6px; transition: opacity .25s; will-change: transform; }
.lbl span { color: var(--ink); text-shadow: 0 0 12px #000, 0 0 3px #000; }
.lbl small { color: var(--c); font-size: 11px; font-weight: 600; opacity: .9; }
.lbl.l0 span { font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.lbl.l1 span { font-size: 13.5px; font-weight: 550; }
.lbl.l2 span { font-size: 12px; color: var(--ink2); }
.lbl.hot span { color: #fff; } .lbl.hot { z-index: 2; }
.lbl.on span { color: var(--c); }

/* 顶栏 */
#top { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 18px; z-index: 5;
  background: linear-gradient(#030202ee, #03020200); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.brand i { width: 18px; height: 18px; border-radius: 6px; background: radial-gradient(circle at 35% 35%, #fff3d6, #ffb04a 45%, #c96a1d); box-shadow: 0 0 14px #ffb04a88; }
#crumbs { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
#crumbs button { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; color: var(--ink2); white-space: nowrap; font-size: 13px; }
#crumbs button:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
#crumbs button.on { color: var(--ink); font-weight: 600; }
#crumbs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
#crumbs span { color: var(--ink3); }
.grow { flex: 1; }
.srch { position: relative; display: flex; align-items: center; }
.srch svg { position: absolute; left: 11px; width: 15px; height: 15px; fill: none; stroke: var(--ink3); stroke-width: 1.6; stroke-linecap: round; }
#search { width: 260px; height: 36px; padding: 0 12px 0 33px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); outline: none; }
#search:focus { border-color: rgba(255, 176, 74, .5); background: rgba(255, 255, 255, .1); }
#search::placeholder { color: var(--ink3); }
#results { position: absolute; top: 42px; right: 0; width: 340px; max-height: 60vh; overflow-y: auto; border-radius: 12px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line); }
#results:empty { display: none; }
#results button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#results button:hover { background: rgba(255, 255, 255, .06); }
#results b { display: block; font-weight: 550; } #results span { font-size: 12px; color: var(--ink3); }
#results p { padding: 14px; color: var(--ink3); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lang button { padding: 4px 9px; border-radius: 7px; font-size: 12.5px; color: var(--ink2); }
.lang button.on { background: rgba(255, 255, 255, .14); color: var(--ink); }

/* 左下控制 */
#ctl { position: fixed; left: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 5; }
#ctl button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; }
#ctl button:hover { color: var(--ink); border-color: rgba(255, 255, 255, .2); }
#ctl button.on { color: var(--brand); }
#ctl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 右侧整理卡片 */
#panel { position: fixed; top: 72px; right: 16px; bottom: 16px; width: 360px; z-index: 6; display: flex; flex-direction: column; border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.2); border: 1px solid var(--line);
  transform: translateX(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
#panel.on { transform: none; }
.p-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: relative; }
.p-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; color: var(--ink3); font-size: 18px; }
.p-x:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.p-path { font-size: 12px; color: var(--ink3); padding-right: 30px; }
.p-title { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.p-title i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.p-title h3 { font-size: 21px; font-weight: 650; letter-spacing: -.01em; }
.p-note { color: var(--ink2); margin-top: 4px; font-size: 13.5px; }
.p-kind { display: inline-block; margin-top: 8px; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--ink2); }
.p-body { flex: 1; overflow-y: auto; padding: 6px 0 14px; }
.p-body::-webkit-scrollbar { width: 6px; } .p-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.p-h { font-size: 12px; font-weight: 600; color: var(--ink3); padding: 14px 20px 6px; letter-spacing: .02em; }
.fact { padding: 9px 20px; border-left: 2px solid transparent; }
.fact:hover { background: rgba(255, 255, 255, .04); }
.fact.open { border-left-color: var(--c); background: rgba(255, 255, 255, .05); }
.fact > button { display: block; width: 100%; text-align: left; }
.fact b { font-weight: 500; line-height: 1.55; display: block; }
.fact small { font-size: 12px; color: var(--ink3); }
.fact .inf { color: var(--brand); }
.ev { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ev p { font-size: 13px; color: var(--ink2); line-height: 1.6; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .15); }
.ev p em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.ev a { font-size: 12.5px; color: var(--brand); }
.grp { padding: 0 12px; }
.ent { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px; border-radius: 10px; }
.ent:hover { background: rgba(255, 255, 255, .06); }
.ent i { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-style: normal; font-weight: 650; font-size: 13px; }
.ent b { display: block; font-weight: 550; font-size: 13.5px; }
.ent span { display: block; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent div { min-width: 0; flex: 1; }
.ent em { font-style: normal; font-size: 12px; color: var(--ink3); }
.p-none { padding: 6px 20px; color: var(--ink3); font-size: 13px; }
.p-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.p-foot a, .p-foot button { display: block; text-align: center; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-weight: 550; font-size: 13.5px; width: 100%; }
.p-foot a:hover, .p-foot button:hover { background: rgba(255, 255, 255, .13); }
#panel-tab { position: fixed; right: 16px; top: 72px; z-index: 6; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; }
#panel-tab:hover { color: var(--ink); }

/* 嵌入 */
body.embed-hero #top, body.embed-hero #ctl, body.embed-hero #panel, body.embed-hero #panel-tab { display: none; }
body.embed-app .brand { display: none; }
@media (max-width: 760px) { #search { width: 150px; } #panel { left: 10px; right: 10px; width: auto; top: auto; height: 58vh; } .lang-slot { display: none; } }
