/* 知识图谱展示：品牌深蓝科技风 */
.kgv { position: relative; color: #e6eeff; }
.kgv-stage { position: relative; height: 560px; border-radius: 18px; overflow: hidden; background: #0b1d4e; box-shadow: 0 20px 50px -24px rgba(11,29,78,.8), inset 0 0 0 1px rgba(120,160,255,.18); }
/* 平时竖向滑动交给页面滚动（图谱很高，不然手机上会卡在图谱里翻不回去）；全屏时单指任意拖动 */
.kgv-canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: pan-y; }
.kgv.kgv-full .kgv-canvas { touch-action: none; }
.kgv-hint { position: absolute; left: 50%; top: 50%; z-index: 5; width: max-content; max-width: min(380px, calc(100% - 40px)); padding: 12px 18px; border-radius: 14px; transform: translate(-50%, -50%);
  background: rgba(6,15,44,.88); border: 1px solid rgba(140,175,255,.35); box-shadow: 0 16px 36px -14px rgba(0,0,0,.6); color: #e6eeff; font-size: 13.5px; line-height: 1.6; text-align: center;
  pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.kgv-hint.on { opacity: 1; }
.kgv-hint[hidden] { display: none; }
.kgv-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; pointer-events: none; background: linear-gradient(rgba(6,15,44,.7), rgba(6,15,44,0)); }
.kgv-title b { display: block; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.kgv-title small { font-size: 12px; color: #9fb6e8; }
.kgv-tools { display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; }
.kgv-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(140,175,255,.35); background: rgba(16,40,100,.6); color: #e6eeff; font: 600 13px "HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",sans-serif; cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, border-color .15s; }
.kgv-btn:hover { background: rgba(31,99,232,.55); border-color: #6f9dff; }
.kgv-btn.icon { width: 34px; padding: 0; justify-content: center; }
.kgv-btn.primary { background: linear-gradient(110deg, #1f63e8, #6a4fe0); border-color: transparent; box-shadow: 0 6px 18px -8px rgba(106,79,224,.9); }
.kgv-btn svg { width: 16px; height: 16px; }
.kgv-btn:focus-visible, .kgv-lg:focus-visible, .kgv-chips button:focus-visible, .kgv-x:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.kgv-legend { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.kgv-lg { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(140,175,255,.25); background: rgba(6,15,44,.55); color: #cfdcff; font: 500 12px "HarmonyOS Sans SC","PingFang SC",sans-serif; cursor: pointer; }
.kgv-lg.static { cursor: default; }
.kgv-lg.off { opacity: .45; text-decoration: line-through; }
.kgv-lg.on { background: rgba(47,214,181,.2); border-color: #2fd6b5; color: #bff6ea; }
.kgv-lg i { width: 10px; height: 10px; border-radius: 50%; background: #4d8dff; }
.kgv-lg i.s-unit { background: transparent; border: 2px solid #4d8dff; }
.kgv-lg i.s-ability { border-radius: 2px; background: #8b72ff; transform: rotate(30deg); }
.kgv-lg i.s-practice { border-radius: 1px; background: #ffa83d; transform: rotate(45deg) scale(.85); }
.kgv-lg i.s-goal { border-radius: 2px; background: #21c2ad; }
.kgv-lg i.s-line { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(143,180,255,.3), #cfe0ff); }
.kgv-lg-sep { width: 1px; height: 16px; background: rgba(140,175,255,.3); margin: 0 4px; }
.kgv-tip { position: absolute; z-index: 3; max-width: 220px; padding: 8px 11px; border-radius: 10px; background: rgba(6,15,44,.92); border: 1px solid rgba(140,175,255,.35); pointer-events: none; }
.kgv-tip b { display: block; font-size: 13px; color: #fff; } .kgv-tip span { font-size: 12px; color: #9fb6e8; }
.kgv-drawer { position: absolute; z-index: 4; top: 62px; right: 12px; bottom: 50px; width: min(320px, calc(100% - 24px)); overflow: auto; padding: 18px; border-radius: 16px; background: rgba(8,22,62,.92); border: 1px solid rgba(140,175,255,.3); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,.4); animation: kgvIn .25s ease both; }
@keyframes kgvIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.kgv-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #cfdcff; font-size: 18px; cursor: pointer; }
.kgv-kind { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c); padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--c); }
.kgv-drawer h3 { margin: 10px 30px 6px 0; font-size: 18px; font-weight: 800; color: #fff; line-height: 1.4; }
.kgv-lv { display: inline-block; font-size: 12px; font-weight: 700; color: #06132f; background: var(--c); padding: 2px 9px; border-radius: 999px; }
.kgv-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: #c3d2f5; }
.kgv-drawer h4 { margin: 16px 0 8px; font-size: 12.5px; font-weight: 700; color: #8fb4ff; letter-spacing: .04em; }
.kgv-link, .kgv-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(140,175,255,.15); color: #e6eeff; font-size: 13px; text-decoration: none; }
.kgv-link:hover { border-color: #6f9dff; background: rgba(31,99,232,.25); }
.kgv-link em, .kgv-item em { flex: none; font-style: normal; font: 700 11px "DIN Alternate",Inter,sans-serif; color: #8fb4ff; min-width: 28px; }
.kgv-link small { margin-left: auto; color: #8ea3cf; font-family: "DIN Alternate",Inter,sans-serif; }
.kgv-link b { flex: none; color: #8fb4ff; font-size: 12px; }
.kgv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kgv-chips button { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(140,175,255,.35); background: rgba(255,255,255,.05); color: #dbe6ff; font: 500 12.5px "HarmonyOS Sans SC","MiSans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; cursor: pointer; }
.kgv-chips button:hover { background: rgba(31,99,232,.35); }
.kgv-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #c3d2f5; font-size: 14px; text-align: center; padding: 20px; }
.kgv-loading[hidden] { display: none; }
.kgv-loading i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(140,175,255,.25); border-top-color: #8fb4ff; animation: kgvSpin 1s linear infinite; }
@keyframes kgvSpin { to { transform: rotate(360deg); } }
.kgv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kgv.kgv-full { position: fixed; inset: 0; z-index: 2000; padding: 0; background: #060f2c; }
.kgv.kgv-full .kgv-stage { height: 100vh; height: 100dvh; border-radius: 0; }
body.kgv-lock { overflow: hidden; }
@media (max-width: 760px) {
  .kgv-stage { height: 480px; border-radius: 14px; }
  .kgv-top { flex-direction: column; align-items: stretch; }
  .kgv-btn.primary span { display: none; }
  .kgv-btn.primary { width: 34px; padding: 0; justify-content: center; }
  .kgv-drawer { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 60%; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .kgv-drawer, .kgv-loading i { animation: none; } }
