节点在线、应用在线、配置在线使用令牌查询
大石头 authored at 2021-12-16 19:49:30
25.73 KiB
Stardust
/* =========================================================================
   星尘 Stardust · 星际指挥台 —— 共享宇宙设计系统
   设计哲学「无界星图」:整屏即活的宇宙,无应用边框、无顶栏、无侧栏。
   本文件为纯原型样式,所有令牌均可独立于任何既有设计体系自由调整。
   核心创新:环境状态主题 —— 色彩即语义(宁静/微澜/危机/超新星/扩容)。
   注:本文件仅作原型演示,不依赖 Ardot 画布,可直接被 HTML 引用。
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 0. 基础重置                                                            */
/* ----------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-abyss);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s ease, color .9s ease;
}
::selection { background: var(--star); color: var(--bg-abyss); }

/* 等宽数据字体 */
.mono { font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------------- */
/* 1. 主题令牌:环境状态即配色语义                                        */
/*    body.theme-* 切换整片宇宙的状态。各元素监听 var() 变化平滑过渡。   */
/* ----------------------------------------------------------------------- */

/* 默认:宁静 Serene(全部健康) —— 蓝紫星海,呼吸般缓慢 */
:root, body.theme-serene {
  --bg-abyss: #04060E;
  --bg-deep:  #080C18;
  --bg-mid:   #0F1626;
  --glass:    rgba(16,22,40,0.55);
  --glass-2:  rgba(22,30,54,0.72);
  --ink:      #E8ECF8;
  --ink-2:    #9AA6C4;
  --ink-3:    #5C6788;
  --star:     #7CA0FF;   /* 恒星光 */
  --star-2:   #9C7CFF;   /* 星云紫 */
  --accent:   #C77CFF;   /* 银河粉 */
  --beam:     #6EA8FF;   /* 引力光束 */
  --nebula-a: rgba(124,160,255,0.16);
  --nebula-b: rgba(156,124,255,0.12);
  --ok:       #45E0A8;
  --warn:     #F5B54A;
  --danger:   #FF5C7A;
  --line:     rgba(124,160,255,0.18);
  --line-2:   rgba(148,163,184,0.10);
  --glow-star: 0 0 24px rgba(124,160,255,.45), 0 0 70px rgba(156,124,255,.18);
  --glow-soft: 0 0 18px rgba(124,160,255,.30);
}

/* 微澜 Attention(存在告警) —— 暮色琥珀,暖光预警 */
body.theme-attention {
  --bg-abyss: #0C0A06;
  --bg-deep:  #15110A;
  --bg-mid:   #1E180E;
  --glass:    rgba(30,24,14,0.55);
  --glass-2:  rgba(40,32,18,0.72);
  --ink:      #FBF1E0;
  --ink-2:    #C9B48C;
  --ink-3:    #7A6A4A;
  --star:     #FFC56A;
  --star-2:   #FF9C5C;
  --accent:   #FF7CA8;
  --beam:     #FFB870;
  --nebula-a: rgba(255,197,106,0.16);
  --nebula-b: rgba(255,124,168,0.10);
  --ok:       #6FE0A0;
  --warn:     #FFC04A;
  --danger:   #FF6A5C;
  --line:     rgba(255,197,106,0.18);
  --line-2:   rgba(201,180,140,0.10);
  --glow-star: 0 0 24px rgba(255,197,106,.45), 0 0 70px rgba(255,124,168,.16);
  --glow-soft: 0 0 18px rgba(255,197,106,.30);
}

/* 危机 Crisis(严重故障) —— 黑洞红吸积盘 */
body.theme-crisis {
  --bg-abyss: #060203;
  --bg-deep:  #0C0406;
  --bg-mid:   #150608;
  --glass:    rgba(24,8,12,0.60);
  --glass-2:  rgba(34,10,16,0.78);
  --ink:      #FBE6EA;
  --ink-2:    #C99AA4;
  --ink-3:    #7A4A52;
  --star:     #FF5C7A;
  --star-2:   #FF3C6E;
  --accent:   #FF7CA8;
  --beam:     #FF6A8A;
  --nebula-a: rgba(255,60,110,0.18);
  --nebula-b: rgba(180,20,40,0.14);
  --ok:       #45E0A8;
  --warn:     #FFB04A;
  --danger:   #FF3C5C;
  --line:     rgba(255,60,110,0.22);
  --line-2:   rgba(201,154,164,0.10);
  --glow-star: 0 0 26px rgba(255,60,110,.50), 0 0 80px rgba(120,0,30,.30);
  --glow-soft: 0 0 18px rgba(255,60,110,.34);
}

/* 超新星 Supernova(远程发布中) —— 炽金爆发 */
body.theme-supernova {
  --bg-abyss: #0A0702;
  --bg-deep:  #140D04;
  --bg-mid:   #1E1408;
  --glass:    rgba(34,22,8,0.55);
  --glass-2:  rgba(46,30,10,0.72);
  --ink:      #FFF3DC;
  --ink-2:    #E0C089;
  --ink-3:    #8A6A3A;
  --star:     #FFD27A;
  --star-2:   #FF9A3C;
  --accent:   #FF7CE0;
  --beam:     #FFC04A;
  --nebula-a: rgba(255,180,74,0.18);
  --nebula-b: rgba(255,124,224,0.12);
  --ok:       #6FE0A0;
  --warn:     #FFC04A;
  --danger:   #FF5C5C;
  --line:     rgba(255,180,74,0.20);
  --line-2:   rgba(224,192,137,0.10);
  --glow-star: 0 0 28px rgba(255,180,74,.50), 0 0 90px rgba(255,124,224,.20);
  --glow-soft: 0 0 20px rgba(255,180,74,.34);
}

/* 扩容 Genesis(弹性扩容中) —— 星海新绿,引力波涟漪 */
body.theme-genesis {
  --bg-abyss: #03090A;
  --bg-deep:  #061316;
  --bg-mid:   #091C20;
  --glass:    rgba(10,30,34,0.55);
  --glass-2:  rgba(14,40,46,0.72);
  --ink:      #E2F8F2;
  --ink-2:    #8CC9BE;
  --ink-3:    #4A7A72;
  --star:     #5CE0C8;
  --star-2:   #5CD0FF;
  --accent:   #7CFFC4;
  --beam:     #5CE0D0;
  --nebula-a: rgba(92,224,200,0.16);
  --nebula-b: rgba(92,208,255,0.12);
  --ok:       #5CE0A8;
  --warn:     #F5C04A;
  --danger:   #FF6A7A;
  --line:     rgba(92,224,200,0.18);
  --line-2:   rgba(140,201,190,0.10);
  --glow-star: 0 0 24px rgba(92,224,200,.45), 0 0 70px rgba(92,208,255,.16);
  --glow-soft: 0 0 18px rgba(92,224,200,.30);
}

/* ----------------------------------------------------------------------- */
/* 2. 星空背景(三层视差 + 星云色雾 + 暗角)                              */
/* ----------------------------------------------------------------------- */
.cosmos {
  position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% -10%, var(--bg-deep) 0%, var(--bg-abyss) 60%);
  transition: background .9s ease;
}
/* 视差层容器 */
.starfield { position: absolute; inset: -10%; pointer-events: none; will-change: transform; }
.starfield .layer { position: absolute; inset: 0; }
.star {
  position: absolute; border-radius: 50%;
  background: var(--ink);
  animation: twinkle var(--tw, 3s) ease-in-out infinite alternate;
  transition: background-color .9s ease;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

/* 星云色雾:两团半透明径向渐变,缓慢漂移 */
.nebula {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; mix-blend-mode: screen;
  transition: background .9s ease;
}
.nebula.a { width: 60vw; height: 60vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle, var(--nebula-a), transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate; }
.nebula.b { width: 52vw; height: 52vw; right: -8vw; bottom: -14vw;
  background: radial-gradient(circle, var(--nebula-b), transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1);} to { transform: translate(6vw,4vw) scale(1.12);} }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05);} to { transform: translate(-5vw,-3vw) scale(1);} }

/* 暗角,让中心更聚焦 */
.vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* ----------------------------------------------------------------------- */
/* 3. 通用玻璃组件                                                        */
/* ----------------------------------------------------------------------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 0 30px rgba(124,160,255,.03);
  transition: background-color .9s ease, border-color .9s ease, box-shadow .4s ease;
}

/* 状态药丸 */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid currentColor; line-height: 1.4;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok    { color: var(--ok);    background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.warn  { color: var(--warn);  background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pill.danger{ color: var(--danger);background: color-mix(in srgb, var(--danger) 14%, transparent); }
.pill.info  { color: var(--star);  background: color-mix(in srgb, var(--star) 12%, transparent); }

/* 文本层级 */
.t-1 { color: var(--ink); } .t-2 { color: var(--ink-2); } .t-3 { color: var(--ink-3); }

/* 小标签 */
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* ----------------------------------------------------------------------- */
/* 4. 星港坞 Star Dock(底部弧形悬浮导航)                                */
/* ----------------------------------------------------------------------- */
.stardock {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(28px);
  display: flex; align-items: flex-end; gap: 6px;
  padding: 14px 22px; opacity: 0; pointer-events: none;
  border-radius: 999px; z-index: 60;
  background: var(--glass-2);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0,0,0,.4), 0 0 1px var(--accent);
  transition: opacity .25s ease, transform .25s ease;
}
/* 弧形顶缘 */
.stardock::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 18px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--star) 30%, transparent), transparent);
  filter: blur(6px); opacity: .8;
}
.stardock.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dock-pt {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; color: var(--ink-2);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--star) 22%, transparent), transparent 70%);
  border: 1px solid var(--line-2); transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}
.dock-pt svg { width: 22px; height: 22px; }
.dock-pt .lbl { font-size: 10px; opacity: 0; transform: translateY(4px); transition: .2s; white-space: nowrap; }
.dock-pt:hover { transform: translateY(-10px) scale(1.12); color: var(--ink); box-shadow: var(--glow-soft); }
.dock-pt:hover .lbl { opacity: 1; transform: translateY(0); }
.dock-pt.active { color: var(--star); box-shadow: var(--glow-soft); }
.dock-pt.active::after {
  content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--star);
  box-shadow: 0 0 10px var(--star); animation: pulse 2.4s ease-in-out infinite;
}

/* 靠近底部的触发热区提示 */
.dock-hint {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 160px; height: 46px; z-index: 55; cursor: default;
}

/* ----------------------------------------------------------------------- */
/* 5. 曲速命令面板 Warp Command(Ctrl+K)                                 */
/* ----------------------------------------------------------------------- */
.warp-scrim {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: flex-start; justify-content: center; padding-top: 16vh;
  background: rgba(2,4,10,.35); backdrop-filter: blur(2px);
}
.warp-scrim.show { display: flex; animation: scrimIn .2s ease; }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
/* 空间折叠:周围星图向四周拉伸模糊(由 JS 给 .cosmos 加 .warp-fold) */
.cosmos.warp-fold { transform: scale(1.04); filter: blur(6px) brightness(.7); transition: transform .25s ease, filter .25s ease; }
.warp {
  width: 640px; max-width: 92vw; border-radius: 24px; overflow: hidden;
  background: var(--glass-2);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 1px var(--star), inset 0 0 40px rgba(124,160,255,.04);
  animation: warpIn .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes warpIn { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.warp input {
  width: 100%; border: 0; background: transparent; color: var(--ink);
  padding: 20px 24px; font-size: 16px; outline: none; border-bottom: 1px solid var(--line-2);
}
.warp input::placeholder { color: var(--ink-3); }
.warp-list { max-height: 46vh; overflow: auto; padding: 8px; }
.warp-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  cursor: pointer; color: var(--ink-2);
}
.warp-item .k { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2);
  padding: 1px 7px; border-radius: 6px; }
.warp-item.sel, .warp-item:hover { background: color-mix(in srgb, var(--star) 12%, transparent); color: var(--ink); }
.warp-item .ic { width: 26px; height: 26px; display: grid; place-items: center; color: var(--star); }
.warp-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line-2);
  font-size: 11px; color: var(--ink-3); }
.warp-foot kbd { font-family: inherit; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--ink-2); }

/* ----------------------------------------------------------------------- */
/* 6. 全息面板 Holographic Panel                                          */
/* ----------------------------------------------------------------------- */
.holo {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 60px rgba(0,0,0,.5), 0 0 1px var(--star), inset 0 0 30px rgba(124,160,255,.04);
  animation: holoIn .4s cubic-bezier(.2,.9,.3,1);
}
@keyframes holoIn { from { transform: scale(.6); opacity: 0; filter: blur(4px); } to { transform: scale(1); opacity: 1; filter: none; } }
.holo.closing { animation: holoOut .3s ease forwards; }
@keyframes holoOut { to { transform: scale(.85); opacity: 0; filter: blur(2px); } }
/* 扫描线纹理 */
.holo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(124,160,255,.04) 3px 4px);
  animation: scan 8s linear infinite;
}
@keyframes scan { from { background-position-y: 0; } to { background-position-y: 200px; } }
/* 全息顶缘光 */
.holo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--star), var(--accent), transparent);
  opacity: .8;
}

/* 全息面板头部操作 */
.holo-bar { display: flex; gap: 8px; }
.holo-btn {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line-2); transition: .18s;
}
.holo-btn:hover { color: var(--ink); box-shadow: var(--glow-soft); }

/* ----------------------------------------------------------------------- */
/* 7. 角落 HUD 元素                                                        */
/* ----------------------------------------------------------------------- */
.coord {
  position: fixed; top: 22px; left: 24px; z-index: 40;
  display: flex; flex-direction: column; gap: 4px;
}
.coord .title { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.coord .sub { font-size: 12px; color: var(--ink-2); }
.coord .sub b { color: var(--star); font-weight: 600; }

/* 健康脉冲灯 */
.health {
  position: fixed; top: 22px; right: 24px; z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.health .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 12px var(--ok); animation: pulse 2.6s ease-in-out infinite; }
.health .txt { font-size: 12px; color: var(--ink-2); }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }

/* 面包屑 */
.crumbs { position: fixed; top: 22px; left: 24px; z-index: 40; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.crumbs a { color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color .15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-3); }
.crumbs .cur { color: var(--star); font-weight: 600; }

/* ----------------------------------------------------------------------- */
/* 8. 主题切换器(色彩搭配切换寓意)                                      */
/* ----------------------------------------------------------------------- */
.theme-switch {
  position: fixed; top: 64px; right: 24px; z-index: 40;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.theme-switch .ttl { font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }
.theme-row { display: flex; gap: 7px; }
.theme-btn {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; position: relative;
  border: 1px solid var(--line-2); transition: transform .18s, box-shadow .18s;
}
.theme-btn:hover { transform: scale(1.12); }
.theme-btn.active { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px currentColor; }
.theme-btn[data-t="serene"]    { background: linear-gradient(135deg,#7CA0FF,#9C7CFF); color:#7CA0FF; }
.theme-btn[data-t="attention"] { background: linear-gradient(135deg,#FFC56A,#FF9C5C); color:#FFC56A; }
.theme-btn[data-t="crisis"]    { background: linear-gradient(135deg,#FF5C7A,#FF3C6E); color:#FF5C7A; }
.theme-btn[data-t="supernova"] { background: linear-gradient(135deg,#FFD27A,#FF9A3C); color:#FFD27A; }
.theme-btn[data-t="genesis"]   { background: linear-gradient(135deg,#5CE0C8,#5CD0FF); color:#5CE0C8; }

/* 寓意图例(随主题变化) */
.legend {
  position: fixed; left: 24px; bottom: 88px; z-index: 40; max-width: 260px;
  padding: 12px 14px; border-radius: 14px; animation: holoIn .5s ease;
}
.legend .lh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.legend .lh .sw { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.legend .row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); padding: 3px 0; }
.legend .row .c { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend .desc { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ----------------------------------------------------------------------- */
/* 9. SVG 星图通用                                                        */
/* ----------------------------------------------------------------------- */
.starmap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.starmap .star-node { cursor: pointer; }
.starmap .star-core { filter: drop-shadow(0 0 8px var(--star)); transition: transform .3s ease; transform-box: fill-box; transform-origin: center; }
.starmap .star-node:hover .star-core { transform: scale(1.18); }
.beam { stroke: var(--beam); stroke-width: 1; fill: none; opacity: .35; transition: stroke .9s ease; }
.beam-flow { fill: var(--star-2); }
.halo-ring { fill: none; stroke: var(--star); stroke-width: 1.2; opacity: .6; }

/* 引力线粒子流动(SVG animateMotion 驱动) */
.flow-dot { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

/* ----------------------------------------------------------------------- */
/* 10. 环形仪表(资源使用率)                                            */
/* ----------------------------------------------------------------------- */
.gauge-ring { transform: rotate(-90deg); transform-origin: center; transform-box: fill-box; }
.gauge-track { fill: none; stroke: var(--line-2); }
.gauge-val { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s ease, stroke .9s ease; }

/* ----------------------------------------------------------------------- */
/* 11. 标签页(星轨式)                                                  */
/* ----------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); }
.tab { position: relative; padding: 10px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--star); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--star), var(--accent)); border-radius: 2px; box-shadow: 0 0 8px var(--star); }
.tab-pane { display: none; padding: 16px; }
.tab-pane.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------------- */
/* 12. 表格 / KV / 进度                                                  */
/* ----------------------------------------------------------------------- */
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv tr { border-bottom: 1px solid var(--line-2); }
.kv td { padding: 9px 8px; }
.kv .k { color: var(--ink-2); }
.kv .v { color: var(--ink); text-align: right; }
.kv tr.changed { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.kv tr.changed .v { color: var(--warn); }
.diff { font-size: 10px; color: var(--warn); margin-left: 6px; }
.kv input { width: 100%; background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink); padding: 6px 8px; font-size: 13px; outline: none; }
.kv input:focus { border-color: var(--star); box-shadow: var(--glow-soft); }

.bar { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--star), var(--accent)); box-shadow: 0 0 10px var(--star); }

/* 主操作按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .18s;
}
.btn.primary { color: var(--bg-abyss); background: linear-gradient(135deg, var(--star), var(--accent));
  box-shadow: var(--glow-soft); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--line-2); }
.btn.ghost:hover { box-shadow: var(--glow-soft); }

/* ----------------------------------------------------------------------- */
/* 13. 超新星 / 引力波 特效层                                            */
/* ----------------------------------------------------------------------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.shock {
  position: absolute; border-radius: 50%; border: 2px solid var(--star);
  transform: translate(-50%,-50%) scale(0); opacity: .8;
  animation: shock 1.1s ease-out forwards;
}
@keyframes shock { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

/* 日志流 */
.logline { font-size: 12px; line-height: 1.7; color: var(--ink-2); font-family: "JetBrains Mono", monospace; }
.logline .lv { color: var(--ok); } .logline .lv-w { color: var(--warn); } .logline .lv-e { color: var(--danger); }
.logline .ts { color: var(--ink-3); }

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 8px 0; }
.tl-item::before { content: ""; position: absolute; left: -16px; top: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--star); box-shadow: 0 0 8px var(--star); }
.tl-item .when { font-size: 11px; color: var(--ink-3); }
.tl-item .what { font-size: 13px; color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 工具提示 */
.tip { position: fixed; z-index: 95; pointer-events: none; padding: 8px 12px; border-radius: 10px;
  font-size: 12px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(12px); opacity: 0; transition: opacity .15s; transform: translate(-50%,-130%); white-space: nowrap; }
.tip.show { opacity: 1; }

/* 跃迁闪屏 */
.warp-flash { position: fixed; inset: 0; z-index: 120; background: var(--star); opacity: 0; pointer-events: none; }
.warp-flash.go { animation: flash .5s ease forwards; }
@keyframes flash { 0% { opacity: 0; } 35% { opacity: .55; } 100% { opacity: 0; } }