cortico-world-memory-core 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/webui/next.css CHANGED
@@ -1,69 +1,643 @@
1
- /* 记忆核心新版:保留旧页面功能,换成神经记忆星系的视觉皮肤。 */
2
- :root {
3
- --paper: #070b14; --paper-2: #0b1220; --sheet: #101a2a; --sheet-2: #142238; --sheet-3: #1b2d47;
4
- --ink: #edf4ff; --ink-soft: #aab8ce; --ink-dim: #667791; --line: rgba(143, 182, 224, .16); --line-2: rgba(143, 182, 224, .28); --line-strong: rgba(143, 182, 224, .5);
5
- --accent: #61e3cf; --accent-2: #9ae9de; --on-accent: #071c1b; --ok: #61e3cf; --warn: #f2c978; --danger: #ff9eaa;
6
- --chart-1: #61e3cf; --chart-2: #c9a2ff; --chart-3: #78c8ff; --chart-4: #77d8c3; --chart-5: #f2c978; --chart-6: #e69ac7; --chart-7: #9ab8da; --chart-8: #b6a6ff;
7
- --k-fact: #61e3cf; --k-self: #c9a2ff; --k-episode: #78c8ff; --k-promise: #f2c978; --k-note: #9ab8da;
8
- --radius: 11px; --radius-sm: 7px; --shadow: 0 18px 44px rgba(0,0,0,.35); --mono: ui-monospace, "SF Mono", Consolas, monospace; color-scheme: dark;
9
- }
10
- html[data-mode="light"] {
11
- --paper: #eef3f6; --paper-2: #e5edf2; --sheet: #f8fbfc; --sheet-2: #edf4f7; --sheet-3: #dbe8ee;
12
- --ink: #172532; --ink-soft: #536a79; --ink-dim: #78909f; --line: rgba(56, 98, 119, .2); --line-2: rgba(56, 98, 119, .34); --line-strong: rgba(36, 117, 125, .58);
13
- --accent: #168f83; --accent-2: #237e79; --on-accent: #f3fffd; --ok: #168f83; --warn: #a56f19; --danger: #ba4d59;
14
- --chart-1: #168f83; --chart-2: #8054b5; --chart-3: #287eae; --chart-4: #278d79; --chart-5: #a56f19; --chart-6: #ac4e85; --chart-7: #587d9a; --chart-8: #7159b5;
15
- --k-fact: #168f83; --k-self: #8054b5; --k-episode: #287eae; --k-promise: #a56f19; --k-note: #587d9a;
16
- color-scheme: light;
17
- }
18
- * { box-sizing: border-box; }
19
- html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
20
- body { background-image: linear-gradient(rgba(101, 227, 207, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 227, 207, .018) 1px, transparent 1px), radial-gradient(circle at 52% 43%, rgba(84, 76, 180, .08), transparent 46rem); background-size: 44px 44px, 44px 44px, auto; }
21
- html[data-mode="light"] body { background-image: linear-gradient(rgba(24, 112, 128, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 112, 128, .035) 1px, transparent 1px), radial-gradient(circle at 52% 43%, rgba(125, 93, 184, .08), transparent 46rem); }
22
- button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; } ::selection { background: rgba(201, 162, 255, .28); }
23
- .next-app { height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
24
- .next-topbar { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
25
- .next-brand { display: flex; align-items: center; gap: 10px; min-width: 205px; }
26
- .core-mark { position: relative; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(97, 227, 207, .7); border-radius: 50%; box-shadow: 0 0 0 5px rgba(97, 227, 207, .055), inset 0 0 12px rgba(97, 227, 207, .16); }
27
- .core-mark::before, .core-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border: 1px solid var(--purple, #c9a2ff); border-radius: 50%; }
28
- .core-mark::before { left: -5px; top: 9px; } .core-mark::after { right: -5px; top: 9px; }
29
- .core-mark i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); } .core-mark i:nth-child(1) { left: 5px; top: 4px; } .core-mark i:nth-child(2) { right: 5px; top: 4px; background: #c9a2ff; } .core-mark i:nth-child(3) { bottom: 4px; background: #f2c978; }
30
- .next-brand-copy { display: flex; flex-direction: column; line-height: 1.25; } .next-brand-copy strong { font-size: 14px; letter-spacing: .05em; font-weight: 600; } .next-brand-copy span { margin-top: 3px; color: var(--ink-dim); font: 9px var(--mono); letter-spacing: .06em; }
31
- .next-search { flex: 1 1 310px; max-width: 500px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: rgba(20, 34, 56, .72); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
32
- .next-tabs { display: flex; gap: 2px; padding: 3px; background: rgba(20, 34, 56, .72); border: 1px solid var(--line); border-radius: 8px; }
33
- .next-tabs .next-tab { border: 0; background: transparent; color: var(--ink-soft); padding: 5px 8px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
34
- .next-tabs .next-tab:hover { color: var(--ink); }
35
- .next-tabs .next-tab.active { background: var(--sheet-3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 182, 224, .12); }
36
- .next-search:focus-within { border-color: rgba(97, 227, 207, .65); background: rgba(20, 34, 56, .95); } .search-icon { color: var(--ink-dim); font-size: 20px; line-height: 1; transform: rotate(-20deg); } .next-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--ink); } .next-search input::placeholder { color: var(--ink-dim); } .search-key { color: var(--ink-dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font: 10px var(--mono); }
37
- .next-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; } .node-status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 10px var(--mono); margin-right: 4px; white-space: nowrap; } .node-status i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px rgba(97, 227, 207, .75); }
38
- .next-icon { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 17px; } .next-icon:hover { color: var(--ink); background: var(--sheet-2); border-color: var(--line); }
39
- .next-btn { border: 1px solid var(--line-2); background: var(--sheet-2); color: var(--ink); padding: 7px 12px; border-radius: 7px; white-space: nowrap; } .next-btn:hover { background: var(--sheet-3); } .next-btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
40
- .next-metrics { display: flex; align-items: stretch; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); overflow-x: auto; scrollbar-width: none; } .next-metrics::-webkit-scrollbar { display: none; }
41
- .metric { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 9px 19px 9px 0; margin-right: 19px; border-right: 1px solid var(--line); white-space: nowrap; } .metric:last-child { border-right: 0; } .metric .label { font-size: 10px; color: var(--ink-dim); letter-spacing: .06em; } .metric .value { font: 500 18px var(--mono); color: var(--ink); } .metric .value small { font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink-dim); margin-left: 3px; } .metric.ok .value { color: var(--accent); } .metric.warn .value { color: var(--warn); } .spark { display: flex; align-items: flex-end; gap: 2px; height: 29px; margin-left: auto; padding-left: 18px; } .spark i { display: block; width: 6px; min-height: 2px; border-radius: 2px 2px 0 0; background: rgba(97, 227, 207, .35); } .spark i.today { background: var(--accent); }
42
- .next-workspace { --rail-w: 242px; --insp-w: 330px; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--insp-w); min-height: 0; overflow: hidden; transition: grid-template-columns .18s ease; } body[data-insp="off"] .next-workspace { --insp-w: 46px; }
43
- .next-rail { border-right: 1px solid var(--line); padding: 14px; overflow-y: auto; background: color-mix(in srgb, var(--paper) 82%, transparent); } .next-rail h3, .next-inspector h3 { margin: 0 0 8px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; } .next-rail section + section { margin-top: 18px; } .next-rail .hint { color: var(--ink-dim); font-size: 10.5px; margin-top: 6px; }
44
- .chip-list { display: flex; flex-wrap: wrap; gap: 5px; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(16, 26, 42, .86); color: var(--ink-soft); font-size: 11.5px; transition: .12s; } .chip:hover, .chip.on { border-color: var(--line-strong); color: var(--ink); background: var(--sheet-3); } .chip .dot { width: 7px; height: 7px; border-radius: 50%; } .chip .n { color: var(--ink-dim); font: 10px var(--mono); }
45
- .field { display: flex; flex-direction: column; gap: 6px; } .field input[type="range"] { width: 100%; accent-color: var(--accent); } .field .row { display: flex; gap: 6px; } .seg { display: flex; gap: 2px; padding: 2px; background: var(--sheet-2); border: 1px solid var(--line); border-radius: 7px; } .seg button { flex: 1; border: 0; background: transparent; color: var(--ink-soft); padding: 5px 0; border-radius: 5px; font-size: 11px; } .seg button.on { background: var(--sheet-3); color: var(--ink); }
46
- .status-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(16, 26, 42, .82); padding: 10px; display: grid; gap: 6px; } .status-card .line { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; } .status-card .line b { font-weight: 600; font-family: var(--mono); } .meter { height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--accent); }
47
- .next-stage { position: relative; min-width: 0; min-height: 0; background: color-mix(in srgb, var(--paper-2) 68%, transparent); } .view { position: absolute; inset: 0; } .view[hidden] { display: none; } #view-graph canvas { width: 100%; height: 100%; display: block; cursor: grab; } #view-graph canvas.dragging { cursor: grabbing; }
48
- .graph-hud { position: absolute; inset: auto 14px 14px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; } .graph-hud > * { pointer-events: auto; } .legend, .hud-actions { background: rgba(16, 26, 42, .78); border: 1px solid var(--line); backdrop-filter: blur(7px); } .legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border-radius: 7px; } .legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-soft); } .legend i { width: 7px; height: 7px; border-radius: 50%; } .hud-actions { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 7px; } .chip-btn { border: 0; background: transparent; color: var(--ink-soft); padding: 4px 8px; border-radius: 5px; font-size: 11px; } .chip-btn:hover { background: var(--sheet-3); color: var(--ink); } .switch { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); padding: 0 6px 0 2px; } .switch input { accent-color: var(--accent); }
49
- .empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; color: var(--ink-soft); } .empty[hidden] { display: none; } .empty .dim { color: var(--ink-dim); font-size: 12px; }
50
- #view-timeline { overflow-y: auto; padding: 15px 20px 40px; } .day-group { margin-bottom: 24px; } .day-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; padding: 6px 0 7px; background: linear-gradient(var(--paper-2) 70%, transparent); font-size: 11.5px; color: var(--ink-dim); } .day-head b { font-size: 13px; color: var(--ink); font-weight: 600; }
51
- .tl-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 8px 4px; border-radius: 8px; cursor: default; transition: background .12s; } .tl-item:hover, .tl-item.sel { background: var(--sheet-2); } .tl-item.sel { box-shadow: inset 0 0 0 1px var(--line-strong); } .tl-dot { align-self: start; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); } .tl-body { min-width: 0; } .tl-text { cursor: pointer; } .tl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-dim); } .tl-right { text-align: right; font-size: 11px; color: var(--ink-dim); white-space: nowrap; } .wbar { width: 46px; height: 3px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; margin-top: 4px; margin-left: auto; } .wbar i { display: block; height: 100%; background: var(--accent); }
52
- table.grid { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: 12px; } #view-table { overflow: auto; scrollbar-width: thin; } table.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--paper-2); text-align: left; font-weight: 600; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); } table.grid tbody tr { border-bottom: 1px solid rgba(143, 182, 224, .09); } table.grid tbody tr:hover, table.grid tbody tr.sel { background: var(--sheet-2); } table.grid td { padding: 7px 10px; vertical-align: top; overflow: hidden; } .kind-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; } .kind-pill i { width: 7px; height: 7px; border-radius: 50%; } .tag { font-size: 11px; color: var(--ink-soft); background: var(--sheet-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; } tr.retired td { opacity: .55; }
53
- .turns-wrap, .docs-wrap { height: 100%; overflow-y: auto; padding: 14px 18px 40px; } .turn { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(143,182,224,.12); } .turn time { font-size: 11px; color: var(--ink-dim); font-family: var(--mono); } .turn .who { font-size: 10.5px; color: var(--ink-dim); } .turn .msg { font-size: 12.5px; color: var(--ink-soft); word-break: break-word; } mark { background: rgba(242, 201, 120, .3); color: inherit; border-radius: 2px; padding: 0 1px; } .doc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--sheet); }
54
- .next-inspector { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent); display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .insp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; } .insp-stub { display: none; flex: 1; flex-direction: column; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--ink-dim); padding: 12px 0; } body[data-insp="off"] .insp-stub { display: flex; } body[data-insp="off"] .insp-body { display: none; } .insp-stub:hover { color: var(--ink); background: var(--sheet-2); } .stub-label { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 11px; } .stub-count { font: 10px var(--mono); padding: 0 5px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); } .insp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .card-kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; font-size: 11px; background: var(--sheet-2); color: var(--ink-soft); } .card-kind i { width: 7px; height: 7px; border-radius: 50%; } .card-text { font-size: 13.5px; line-height: 1.75; padding: 11px 12px; background: rgba(16, 26, 42, .88); border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; word-break: break-word; } .card-meta { margin-top: 11px; display: grid; gap: 7px; font-size: 12px; } .card-meta .kv { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-dim); } .card-meta .kv b { color: var(--ink-soft); font-weight: 500; text-align: right; } .card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; } .related { margin-top: 17px; } .related-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; color: var(--ink-soft); font-size: 12px; } .related-item:hover { background: var(--sheet-2); color: var(--ink); }
55
- .maint-tabs { display: flex; gap: 4px; margin-bottom: 10px; } .maint-tabs button { border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; font-size: 12px; } .maint-tabs button.on { background: var(--sheet-3); color: var(--ink); } .maint-note { margin: 0 0 12px; font-size: 11px; color: var(--ink-dim); } .maint-body { display: grid; gap: 8px; } .maint-group { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--paper); } .maint-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px; border-radius: 7px; } .maint-row:hover { background: var(--sheet-2); } .maint-text { font-size: 12.5px; color: var(--ink-soft); }
56
- .editor { display: grid; gap: 10px; margin-top: 8px; } .editor textarea, .editor input[type="text"], .editor input[type="datetime-local"], .editor select { width: 100%; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--sheet); outline: none; } .editor textarea { min-height: 108px; resize: vertical; line-height: 1.65; } .editor textarea:focus, .editor input:focus, .editor select:focus { border-color: var(--accent); } .editor .row { display: flex; gap: 8px; align-items: center; } .editor .row > * { flex: 1; } .editor .label { font-size: 11px; color: var(--ink-dim); }
57
- .dist { display: grid; gap: 6px; } .dist .row { display: grid; grid-template-columns: 62px 1fr 26px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-dim); } .dist .track { height: 5px; border-radius: 3px; background: var(--sheet-3); overflow: hidden; } .dist .track i { display: block; height: 100%; } .recent-list { display: grid; gap: 2px; } .recent-list button { text-align: left; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 8px; border-radius: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .recent-list button:hover { background: var(--sheet-2); color: var(--ink); }
58
- .next-statusbar { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--ink-dim); background: color-mix(in srgb, var(--paper) 90%, transparent); min-height: 29px; } .next-statusbar .sep { width: 1px; height: 11px; background: var(--line-2); } .next-statusbar .grow { flex: 1; } .next-caption { color: var(--ink-dim); font: 9px var(--mono); letter-spacing: .05em; } .kbd-hints { display: flex; align-items: center; gap: 4px; } kbd { font: 9px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--ink-soft); background: var(--sheet); }
59
- .modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 6, 12, .65); backdrop-filter: blur(4px); } .modal[hidden] { display: none; } .modal-panel { width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; } .modal-panel header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); } .modal-panel header h2 { margin: 0; font-size: 14px; font-weight: 600; } .modal-body { padding: 14px 16px; overflow-y: auto; } .modal-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
60
- .toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sheet-3); border: 1px solid var(--line-2); color: var(--ink); font-size: 12px; box-shadow: var(--shadow); } .toast[hidden], .menu[hidden] { display: none; } .toast.err { border-color: var(--danger); color: var(--danger); } .toast-undo { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 6px; font-size: 12px; padding: 2px 8px; }
61
- .menu { position: fixed; z-index: 55; min-width: 190px; padding: 5px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 9px; box-shadow: var(--shadow); } .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 9px; border-radius: 6px; font-size: 12.5px; text-align: left; } .menu button:hover { background: var(--sheet-2); color: var(--ink); }
62
- .galaxy-wrap { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #040713; box-shadow: inset 0 0 0 1px rgba(143,182,224,.22), 0 12px 35px rgba(0,0,0,.28); }
63
- html[data-mode="light"] .galaxy-wrap { background: #07101d; box-shadow: inset 0 0 0 1px rgba(80, 126, 150, .3), 0 12px 28px rgba(64, 92, 110, .16); } #galaxy { display: block; width: 100%; height: 100%; } .galaxy-scan { position: absolute; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(101,227,207,.12) 4px); mix-blend-mode: screen; } .galaxy-hud { position: absolute; left: 21px; top: 17px; display: flex; flex-direction: column; gap: 5px; color: #e6edf7; pointer-events: none; } .galaxy-hud b { font-size: 15px; font-weight: 600; letter-spacing: .08em; } .galaxy-hud span { font-size: 10.5px; color: #8193ae; } .galaxy-legend { position: absolute; left: 20px; bottom: 17px; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 9px; background: rgba(7,11,20,.63); border: 1px solid rgba(143,182,224,.18); border-radius: 7px; backdrop-filter: blur(7px); } .galaxy-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; } .galaxy-legend i { width: 6px; height: 6px; border-radius: 50%; } .galaxy-telemetry { position: absolute; right: 19px; bottom: 18px; color: #71849f; font: 10px var(--mono); letter-spacing: .04em; pointer-events: none; } .galaxy-hint { position: absolute; right: 20px; top: 18px; color: #71849f; font-size: 10px; pointer-events: none; } .galaxy-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #aab8ce; } .galaxy-empty[hidden] { display: none; }
64
- .health-wrap { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; gap: 18px; align-content: start; } .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .h-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 12px 14px; } .h-label { font-size: 11px; color: var(--ink-dim); } .h-value { font: 26px/1.3 var(--mono); color: var(--ink); } .h-hint { font-size: 11px; color: var(--ink-dim); margin-top: 2px; } .h-block h3 { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin: 0 0 8px; }
65
- @media (max-width: 1180px) { .next-workspace { --rail-w: 205px; --insp-w: 300px; } .next-brand { min-width: 0; } .next-brand-copy span { display: none; } .next-caption { display: none; } }
66
- @media (max-width: 980px) { .next-workspace { --rail-w: 0px; --insp-w: 300px; } .next-rail { display: none; } .next-brand { min-width: 130px; } .next-tabs .next-tab { padding-left: 6px; padding-right: 6px; } }
67
- @media (max-width: 820px) { .next-tabs .next-tab span { display: none; } .next-tabs .next-tab::after { content: attr(data-letter); } }
68
- @media (max-width: 760px) { .next-topbar { gap: 8px; padding: 9px 10px; flex-wrap: wrap; } .next-brand { min-width: 38px; } .next-brand-copy { display: none; } .node-status { display: none; } .next-workspace { --insp-w: 0px; grid-template-columns: minmax(0, 1fr); } .next-inspector { display: none; } .kbd-hints { display: none; } .next-search { flex: 1 1 180px; order: 3; max-width: none; } .next-tabs { order: 2; margin-left: auto; } .next-actions { order: 4; } }
69
- @media (max-width: 520px) { .next-btn.primary { padding: 7px 8px; font-size: 12px; } .next-metrics { padding: 0 10px; } .metric { padding-right: 12px; margin-right: 12px; } .metric .value { font-size: 16px; } .graph-hud { inset: auto 8px 8px 8px; } .legend { max-width: 62%; } }
1
+ /* 记忆核心新版:保留旧页面功能,换成神经记忆星系的视觉皮肤。 */
2
+ :root {
3
+ --paper: #070b14; --paper-2: #0b1220; --sheet: #101a2a; --sheet-2: #142238; --sheet-3: #1b2d47;
4
+ --ink: #edf4ff; --ink-soft: #aab8ce; --ink-dim: #667791; --line: rgba(143, 182, 224, .16); --line-2: rgba(143, 182, 224, .28); --line-strong: rgba(143, 182, 224, .5);
5
+ --accent: #61e3cf; --accent-2: #9ae9de; --on-accent: #071c1b; --ok: #61e3cf; --warn: #f2c978; --danger: #ff9eaa;
6
+ --chart-1: #61e3cf; --chart-2: #c9a2ff; --chart-3: #78c8ff; --chart-4: #77d8c3; --chart-5: #f2c978; --chart-6: #e69ac7; --chart-7: #9ab8da; --chart-8: #b6a6ff;
7
+ --k-fact: #61e3cf; --k-self: #c9a2ff; --k-episode: #78c8ff; --k-promise: #f2c978; --k-note: #9ab8da;
8
+ --radius: 11px; --radius-sm: 7px; --shadow: 0 18px 44px rgba(0,0,0,.35); --mono: ui-monospace, "SF Mono", Consolas, monospace; color-scheme: dark;
9
+ }
10
+ html[data-mode="light"] {
11
+ --paper: #eef3f6; --paper-2: #e5edf2; --sheet: #f8fbfc; --sheet-2: #edf4f7; --sheet-3: #dbe8ee;
12
+ --ink: #172532; --ink-soft: #536a79; --ink-dim: #78909f; --line: rgba(56, 98, 119, .2); --line-2: rgba(56, 98, 119, .34); --line-strong: rgba(36, 117, 125, .58);
13
+ --accent: #168f83; --accent-2: #237e79; --on-accent: #f3fffd; --ok: #168f83; --warn: #a56f19; --danger: #ba4d59;
14
+ --chart-1: #168f83; --chart-2: #8054b5; --chart-3: #287eae; --chart-4: #278d79; --chart-5: #a56f19; --chart-6: #ac4e85; --chart-7: #587d9a; --chart-8: #7159b5;
15
+ --k-fact: #168f83; --k-self: #8054b5; --k-episode: #287eae; --k-promise: #a56f19; --k-note: #587d9a;
16
+ color-scheme: light;
17
+ }
18
+ * { box-sizing: border-box; }
19
+ html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
20
+ body { background-image: linear-gradient(rgba(101, 227, 207, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 227, 207, .018) 1px, transparent 1px), radial-gradient(circle at 52% 43%, rgba(84, 76, 180, .08), transparent 46rem); background-size: 44px 44px, 44px 44px, auto; }
21
+ html[data-mode="light"] body { background-image: linear-gradient(rgba(24, 112, 128, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 112, 128, .035) 1px, transparent 1px), radial-gradient(circle at 52% 43%, rgba(125, 93, 184, .08), transparent 46rem); }
22
+ button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; } ::selection { background: rgba(201, 162, 255, .28); }
23
+ .next-app { height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
24
+ .next-topbar { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
25
+ .next-brand { display: flex; align-items: center; gap: 10px; min-width: 205px; }
26
+ .core-mark { position: relative; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(97, 227, 207, .7); border-radius: 50%; box-shadow: 0 0 0 5px rgba(97, 227, 207, .055), inset 0 0 12px rgba(97, 227, 207, .16); }
27
+ .core-mark::before, .core-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border: 1px solid var(--purple, #c9a2ff); border-radius: 50%; }
28
+ .core-mark::before { left: -5px; top: 9px; } .core-mark::after { right: -5px; top: 9px; }
29
+ .core-mark i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); } .core-mark i:nth-child(1) { left: 5px; top: 4px; } .core-mark i:nth-child(2) { right: 5px; top: 4px; background: #c9a2ff; } .core-mark i:nth-child(3) { bottom: 4px; background: #f2c978; }
30
+ .next-brand-copy { display: flex; flex-direction: column; line-height: 1.25; } .next-brand-copy strong { font-size: 14px; letter-spacing: .05em; font-weight: 600; } .next-brand-copy span { margin-top: 3px; color: var(--ink-dim); font: 9px var(--mono); letter-spacing: .06em; }
31
+ .next-search { flex: 1 1 310px; max-width: 500px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: rgba(20, 34, 56, .72); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
32
+ .next-tabs { display: flex; gap: 2px; padding: 3px; background: rgba(20, 34, 56, .72); border: 1px solid var(--line); border-radius: 8px; }
33
+ .next-tabs .next-tab { border: 0; background: transparent; color: var(--ink-soft); padding: 5px 8px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
34
+ .next-tabs .next-tab:hover { color: var(--ink); }
35
+ .next-tabs .next-tab.active { background: var(--sheet-3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 182, 224, .12); }
36
+ .next-search:focus-within { border-color: rgba(97, 227, 207, .65); background: rgba(20, 34, 56, .95); } .search-icon { color: var(--ink-dim); font-size: 20px; line-height: 1; transform: rotate(-20deg); } .next-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--ink); } .next-search input::placeholder { color: var(--ink-dim); } .search-key { color: var(--ink-dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font: 10px var(--mono); }
37
+ .next-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; } .node-status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 10px var(--mono); margin-right: 4px; white-space: nowrap; } .node-status i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px rgba(97, 227, 207, .75); }
38
+ .next-icon { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 17px; } .next-icon:hover { color: var(--ink); background: var(--sheet-2); border-color: var(--line); }
39
+ .next-btn { border: 1px solid var(--line-2); background: var(--sheet-2); color: var(--ink); padding: 7px 12px; border-radius: 7px; white-space: nowrap; } .next-btn:hover { background: var(--sheet-3); } .next-btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
40
+ .next-metrics { display: flex; align-items: stretch; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); overflow-x: auto; scrollbar-width: none; } .next-metrics::-webkit-scrollbar { display: none; }
41
+ .metric { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 9px 19px 9px 0; margin-right: 19px; border-right: 1px solid var(--line); white-space: nowrap; } .metric:last-child { border-right: 0; } .metric .label { font-size: 10px; color: var(--ink-dim); letter-spacing: .06em; } .metric .value { font: 500 18px var(--mono); color: var(--ink); } .metric .value small { font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink-dim); margin-left: 3px; } .metric.ok .value { color: var(--accent); } .metric.warn .value { color: var(--warn); } .spark { display: flex; align-items: flex-end; gap: 2px; height: 29px; margin-left: auto; padding-left: 18px; } .spark i { display: block; width: 6px; min-height: 2px; border-radius: 2px 2px 0 0; background: rgba(97, 227, 207, .35); } .spark i.today { background: var(--accent); }
42
+ .next-workspace { --rail-w: 242px; --insp-w: 330px; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--insp-w); min-height: 0; overflow: hidden; transition: grid-template-columns .18s ease; } body[data-insp="off"] .next-workspace { --insp-w: 46px; }
43
+ .next-rail { border-right: 1px solid var(--line); padding: 14px; overflow-y: auto; background: color-mix(in srgb, var(--paper) 82%, transparent); } .next-rail h3, .next-inspector h3 { margin: 0 0 8px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; } .next-rail section + section { margin-top: 18px; } .next-rail .hint { color: var(--ink-dim); font-size: 10.5px; margin-top: 6px; }
44
+ .chip-list { display: flex; flex-wrap: wrap; gap: 5px; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(16, 26, 42, .86); color: var(--ink-soft); font-size: 11.5px; transition: .12s; } .chip:hover, .chip.on { border-color: var(--line-strong); color: var(--ink); background: var(--sheet-3); } .chip .dot { width: 7px; height: 7px; border-radius: 50%; } .chip .n { color: var(--ink-dim); font: 10px var(--mono); }
45
+ .field { display: flex; flex-direction: column; gap: 6px; } .field input[type="range"] { width: 100%; accent-color: var(--accent); } .field .row { display: flex; gap: 6px; } .seg { display: flex; gap: 2px; padding: 2px; background: var(--sheet-2); border: 1px solid var(--line); border-radius: 7px; } .seg button { flex: 1; border: 0; background: transparent; color: var(--ink-soft); padding: 5px 0; border-radius: 5px; font-size: 11px; } .seg button.on { background: var(--sheet-3); color: var(--ink); }
46
+ .status-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(16, 26, 42, .82); padding: 10px; display: grid; gap: 6px; } .status-card .line { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; } .status-card .line b { font-weight: 600; font-family: var(--mono); } .meter { height: 4px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--accent); }
47
+ .next-stage { position: relative; min-width: 0; min-height: 0; background: color-mix(in srgb, var(--paper-2) 68%, transparent); } .view { position: absolute; inset: 0; } .view[hidden] { display: none; } #view-graph canvas { width: 100%; height: 100%; display: block; cursor: grab; } #view-graph canvas.dragging { cursor: grabbing; }
48
+ .graph-hud { position: absolute; inset: auto 14px 14px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; } .graph-hud > * { pointer-events: auto; } .legend, .hud-actions { background: rgba(16, 26, 42, .78); border: 1px solid var(--line); backdrop-filter: blur(7px); } .legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px 10px; border-radius: 7px; } .legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-soft); } .legend i { width: 7px; height: 7px; border-radius: 50%; } .hud-actions { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 7px; } .chip-btn { border: 0; background: transparent; color: var(--ink-soft); padding: 4px 8px; border-radius: 5px; font-size: 11px; } .chip-btn:hover { background: var(--sheet-3); color: var(--ink); } .switch { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); padding: 0 6px 0 2px; } .switch input { accent-color: var(--accent); }
49
+ .empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; color: var(--ink-soft); } .empty[hidden] { display: none; } .empty .dim { color: var(--ink-dim); font-size: 12px; }
50
+ #view-timeline { overflow-y: auto; padding: 15px 20px 40px; } .day-group { margin-bottom: 24px; } .day-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; padding: 6px 0 7px; background: linear-gradient(var(--paper-2) 70%, transparent); font-size: 11.5px; color: var(--ink-dim); } .day-head b { font-size: 13px; color: var(--ink); font-weight: 600; }
51
+ .tl-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 8px 4px; border-radius: 8px; cursor: default; transition: background .12s; } .tl-item:hover, .tl-item.sel { background: var(--sheet-2); } .tl-item.sel { box-shadow: inset 0 0 0 1px var(--line-strong); } .tl-dot { align-self: start; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); } .tl-body { min-width: 0; } .tl-text { cursor: pointer; } .tl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-dim); } .tl-right { text-align: right; font-size: 11px; color: var(--ink-dim); white-space: nowrap; } .wbar { width: 46px; height: 3px; border-radius: 2px; background: var(--sheet-3); overflow: hidden; margin-top: 4px; margin-left: auto; } .wbar i { display: block; height: 100%; background: var(--accent); }
52
+ table.grid { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: 12px; } #view-table { overflow: auto; scrollbar-width: thin; } table.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--paper-2); text-align: left; font-weight: 600; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); } table.grid tbody tr { border-bottom: 1px solid rgba(143, 182, 224, .09); } table.grid tbody tr:hover, table.grid tbody tr.sel { background: var(--sheet-2); } table.grid td { padding: 7px 10px; vertical-align: top; overflow: hidden; } .kind-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; } .kind-pill i { width: 7px; height: 7px; border-radius: 50%; } .tag { font-size: 11px; color: var(--ink-soft); background: var(--sheet-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; } tr.retired td { opacity: .55; }
53
+ .turns-wrap, .docs-wrap { height: 100%; overflow-y: auto; padding: 14px 18px 40px; } .turn { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(143,182,224,.12); } .turn time { font-size: 11px; color: var(--ink-dim); font-family: var(--mono); } .turn .who { font-size: 10.5px; color: var(--ink-dim); } .turn .msg { font-size: 12.5px; color: var(--ink-soft); word-break: break-word; } mark { background: rgba(242, 201, 120, .3); color: inherit; border-radius: 2px; padding: 0 1px; } .doc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--sheet); }
54
+ .next-inspector { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent); display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .insp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; } .insp-stub { display: none; flex: 1; flex-direction: column; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--ink-dim); padding: 12px 0; } body[data-insp="off"] .insp-stub { display: flex; } body[data-insp="off"] .insp-body { display: none; } .insp-stub:hover { color: var(--ink); background: var(--sheet-2); } .stub-label { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 11px; } .stub-count { font: 10px var(--mono); padding: 0 5px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); } .insp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .card-kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; font-size: 11px; background: var(--sheet-2); color: var(--ink-soft); } .card-kind i { width: 7px; height: 7px; border-radius: 50%; } .card-text { font-size: 13.5px; line-height: 1.75; padding: 11px 12px; background: rgba(16, 26, 42, .88); border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; word-break: break-word; } .card-meta { margin-top: 11px; display: grid; gap: 7px; font-size: 12px; } .card-meta .kv { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-dim); } .card-meta .kv b { color: var(--ink-soft); font-weight: 500; text-align: right; } .card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; } .related { margin-top: 17px; } .related-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; color: var(--ink-soft); font-size: 12px; } .related-item:hover { background: var(--sheet-2); color: var(--ink); }
55
+ .maint-tabs { display: flex; gap: 4px; margin-bottom: 10px; } .maint-tabs button { border: 1px solid var(--line); background: var(--sheet-2); color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; font-size: 12px; } .maint-tabs button.on { background: var(--sheet-3); color: var(--ink); } .maint-note { margin: 0 0 12px; font-size: 11px; color: var(--ink-dim); } .maint-body { display: grid; gap: 8px; } .maint-group { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--paper); } .maint-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px; border-radius: 7px; } .maint-row:hover { background: var(--sheet-2); } .maint-text { font-size: 12.5px; color: var(--ink-soft); }
56
+ .editor { display: grid; gap: 10px; margin-top: 8px; } .editor textarea, .editor input[type="text"], .editor input[type="datetime-local"], .editor select { width: 100%; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--sheet); outline: none; } .editor textarea { min-height: 108px; resize: vertical; line-height: 1.65; } .editor textarea:focus, .editor input:focus, .editor select:focus { border-color: var(--accent); } .editor .row { display: flex; gap: 8px; align-items: center; } .editor .row > * { flex: 1; } .editor .label { font-size: 11px; color: var(--ink-dim); }
57
+ .dist { display: grid; gap: 6px; } .dist .row { display: grid; grid-template-columns: 62px 1fr 26px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-dim); } .dist .track { height: 5px; border-radius: 3px; background: var(--sheet-3); overflow: hidden; } .dist .track i { display: block; height: 100%; } .recent-list { display: grid; gap: 2px; } .recent-list button { text-align: left; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 8px; border-radius: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .recent-list button:hover { background: var(--sheet-2); color: var(--ink); }
58
+ .next-statusbar { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--ink-dim); background: color-mix(in srgb, var(--paper) 90%, transparent); min-height: 29px; } .next-statusbar .sep { width: 1px; height: 11px; background: var(--line-2); } .next-statusbar .grow { flex: 1; } .next-caption { color: var(--ink-dim); font: 9px var(--mono); letter-spacing: .05em; } .kbd-hints { display: flex; align-items: center; gap: 4px; } kbd { font: 9px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--ink-soft); background: var(--sheet); }
59
+ .modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 6, 12, .65); backdrop-filter: blur(4px); } .modal[hidden] { display: none; } .modal-panel { width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; } .modal-panel header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); } .modal-panel header h2 { margin: 0; font-size: 14px; font-weight: 600; } .modal-body { padding: 14px 16px; overflow-y: auto; } .modal-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
60
+ .toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sheet-3); border: 1px solid var(--line-2); color: var(--ink); font-size: 12px; box-shadow: var(--shadow); } .toast[hidden], .menu[hidden] { display: none; } .toast.err { border-color: var(--danger); color: var(--danger); } .toast-undo { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 6px; font-size: 12px; padding: 2px 8px; }
61
+ .menu { position: fixed; z-index: 55; min-width: 190px; padding: 5px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 9px; box-shadow: var(--shadow); } .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: transparent; color: var(--ink-soft); padding: 7px 9px; border-radius: 6px; font-size: 12.5px; text-align: left; } .menu button:hover { background: var(--sheet-2); color: var(--ink); }
62
+ .galaxy-wrap { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #040713; box-shadow: inset 0 0 0 1px rgba(143,182,224,.22), 0 12px 35px rgba(0,0,0,.28); }
63
+ html[data-mode="light"] .galaxy-wrap { background: #07101d; box-shadow: inset 0 0 0 1px rgba(80, 126, 150, .3), 0 12px 28px rgba(64, 92, 110, .16); } #galaxy { display: block; width: 100%; height: 100%; } .galaxy-scan { position: absolute; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(101,227,207,.12) 4px); mix-blend-mode: screen; } .galaxy-hud { position: absolute; left: 21px; top: 17px; display: flex; flex-direction: column; gap: 5px; color: #e6edf7; pointer-events: none; } .galaxy-hud b { font-size: 15px; font-weight: 600; letter-spacing: .08em; } .galaxy-hud span { font-size: 10.5px; color: #8193ae; } .galaxy-legend { position: absolute; left: 20px; bottom: 17px; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 9px; background: rgba(7,11,20,.63); border: 1px solid rgba(143,182,224,.18); border-radius: 7px; backdrop-filter: blur(7px); } .galaxy-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; } .galaxy-legend i { width: 6px; height: 6px; border-radius: 50%; } .galaxy-telemetry { position: absolute; right: 19px; bottom: 18px; color: #71849f; font: 10px var(--mono); letter-spacing: .04em; pointer-events: none; } .galaxy-hint { position: absolute; right: 20px; top: 18px; color: #71849f; font-size: 10px; pointer-events: none; } .galaxy-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #aab8ce; } .galaxy-empty[hidden] { display: none; }
64
+ .health-wrap { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; gap: 18px; align-content: start; } .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .h-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 12px 14px; } .h-label { font-size: 11px; color: var(--ink-dim); } .h-value { font: 26px/1.3 var(--mono); color: var(--ink); } .h-hint { font-size: 11px; color: var(--ink-dim); margin-top: 2px; } .h-block h3 { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin: 0 0 8px; }
65
+ @media (max-width: 1180px) { .next-workspace { --rail-w: 205px; --insp-w: 300px; } .next-brand { min-width: 0; } .next-brand-copy span { display: none; } .next-caption { display: none; } }
66
+ @media (max-width: 980px) { .next-workspace { --rail-w: 0px; --insp-w: 300px; } .next-rail { display: none; } .next-brand { min-width: 130px; } .next-tabs .next-tab { padding-left: 6px; padding-right: 6px; } }
67
+ @media (max-width: 820px) { .next-tabs .next-tab span { display: none; } .next-tabs .next-tab::after { content: attr(data-letter); } }
68
+ @media (max-width: 760px) { .next-topbar { gap: 8px; padding: 9px 10px; flex-wrap: wrap; } .next-brand { min-width: 38px; } .next-brand-copy { display: none; } .node-status { display: none; } .next-workspace { --insp-w: 0px; grid-template-columns: minmax(0, 1fr); } .next-inspector { display: none; } .kbd-hints { display: none; } .next-search { flex: 1 1 180px; order: 3; max-width: none; } .next-tabs { order: 2; margin-left: auto; } .next-actions { order: 4; } }
69
+ @media (max-width: 520px) { .next-btn.primary { padding: 7px 8px; font-size: 12px; } .next-metrics { padding: 0 10px; } .metric { padding-right: 12px; margin-right: 12px; } .metric .value { font-size: 16px; } .graph-hud { inset: auto 8px 8px 8px; } .legend { max-width: 62%; } }
70
+
71
+ /* ============================================================
72
+ 2077 皮肤:酸黄主色 + 切角面板 + 细扫描线
73
+ ============================================================ */
74
+ :root {
75
+ --acid: #fcee0a;
76
+ --magenta: #ff2e88;
77
+ }
78
+
79
+ /* 顶部一条酸黄信号线,呼应夜之城那种界面边缘 */
80
+ body::before {
81
+ content: '';
82
+ position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 46;
83
+ pointer-events: none;
84
+ background: linear-gradient(90deg, var(--acid) 0%, rgba(252, 238, 10, .5) 26%, rgba(97, 227, 207, .45) 62%, transparent 100%);
85
+ box-shadow: 0 0 18px rgba(252, 238, 10, .22);
86
+ }
87
+
88
+ /* CRT 扫描线:压到几乎看不见,只提供质感,不影响读字 */
89
+ body::after {
90
+ content: '';
91
+ position: fixed; inset: 0; z-index: 45;
92
+ pointer-events: none;
93
+ background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px);
94
+ }
95
+
96
+ /* ── 共享脚本里的通用按钮(新版原来没定义,体检里的按钮全是裸的) ── */
97
+ .btn {
98
+ border: 1px solid var(--line-2);
99
+ background: rgba(20, 34, 56, .9);
100
+ color: var(--ink);
101
+ padding: 6px 12px;
102
+ border-radius: 2px;
103
+ font-size: 12px;
104
+ white-space: nowrap;
105
+ transition: background .15s, border-color .15s, color .15s;
106
+ }
107
+ .btn:hover { background: var(--sheet-3); border-color: var(--line-strong); color: #fff; }
108
+ .btn.primary {
109
+ background: var(--acid);
110
+ border-color: transparent;
111
+ color: #0a0c10;
112
+ font-weight: 600;
113
+ clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
114
+ }
115
+ .btn.primary:hover { filter: brightness(1.07); box-shadow: 0 0 20px rgba(252, 238, 10, .32); }
116
+ .btn.ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
117
+ .btn.ghost:hover { background: var(--sheet-2); color: var(--ink); }
118
+ .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
119
+ .btn.tiny { padding: 3px 9px; font-size: 11px; letter-spacing: 0; text-transform: none; }
120
+ .icon-btn {
121
+ width: 30px; height: 30px;
122
+ display: inline-flex; align-items: center; justify-content: center;
123
+ border: 1px solid transparent; border-radius: 2px;
124
+ background: transparent; color: var(--ink-soft); font-size: 16px;
125
+ }
126
+ .icon-btn:hover { color: var(--ink); background: var(--sheet-2); border-color: var(--line); }
127
+
128
+ /* 主按钮换成酸黄,算是 2077 最醒目的一个记号 */
129
+ .next-btn.primary {
130
+ background: var(--acid);
131
+ border-color: transparent;
132
+ color: #0a0c10;
133
+ font-weight: 600;
134
+ clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
135
+ }
136
+ .next-btn.primary:hover { filter: brightness(1.07); box-shadow: 0 0 22px rgba(252, 238, 10, .3); }
137
+ .next-tabs .next-tab.active {
138
+ background: rgba(252, 238, 10, .1);
139
+ color: var(--acid);
140
+ box-shadow: inset 0 -2px 0 var(--acid);
141
+ }
142
+ .next-search:focus-within {
143
+ border-color: rgba(252, 238, 10, .55);
144
+ box-shadow: 0 0 0 1px rgba(252, 238, 10, .16), 0 0 20px rgba(252, 238, 10, .08);
145
+ }
146
+
147
+ /* ── 体检:原来只定义了四张卡,柱状图/说明行/维护列表全没样式 ── */
148
+ #view-health { overflow: hidden; }
149
+ .health-wrap {
150
+ height: 100%;
151
+ overflow-y: auto;
152
+ padding: 22px 24px 64px;
153
+ display: grid;
154
+ gap: 14px;
155
+ align-content: start;
156
+ }
157
+ .health-wrap::before {
158
+ content: 'SYSTEM DIAGNOSTICS // 体检';
159
+ grid-column: 1 / -1;
160
+ padding-bottom: 12px;
161
+ border-bottom: 1px solid rgba(252, 238, 10, .2);
162
+ font: 500 11px var(--mono);
163
+ letter-spacing: .24em;
164
+ color: var(--acid);
165
+ text-shadow: 0 0 16px rgba(252, 238, 10, .3);
166
+ }
167
+
168
+ .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
169
+
170
+ .h-card {
171
+ position: relative;
172
+ padding: 16px 17px 15px;
173
+ background: linear-gradient(160deg, rgba(23, 36, 57, .95), rgba(8, 13, 22, .98));
174
+ border: 1px solid var(--line);
175
+ clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
176
+ overflow: hidden;
177
+ }
178
+ /* 左侧信号条:一眼看出这是「指标」,不是一块普通面板 */
179
+ .h-card::before {
180
+ content: '';
181
+ position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
182
+ background: var(--accent);
183
+ box-shadow: 0 0 14px var(--accent);
184
+ opacity: .75;
185
+ }
186
+ .h-label {
187
+ font: 500 9.5px var(--mono);
188
+ letter-spacing: .18em;
189
+ color: var(--ink-dim);
190
+ }
191
+ .h-value {
192
+ margin-top: 10px;
193
+ font: 500 34px/1 var(--mono);
194
+ letter-spacing: -.02em;
195
+ color: var(--acid);
196
+ font-variant-numeric: tabular-nums;
197
+ text-shadow: 0 0 22px rgba(252, 238, 10, .2);
198
+ }
199
+ .h-hint { margin-top: 9px; font-size: 11.5px; line-height: 1.55; color: var(--ink-dim); }
200
+ .h-card.warn { border-color: color-mix(in srgb, var(--amber) 42%, var(--line)); }
201
+ .h-card.warn::before { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
202
+ .h-card.warn .h-value { color: var(--amber); text-shadow: 0 0 22px rgba(242, 201, 120, .22); }
203
+
204
+ .h-block {
205
+ position: relative;
206
+ padding: 15px 17px 17px;
207
+ background: rgba(9, 14, 24, .62);
208
+ border: 1px solid var(--line);
209
+ }
210
+ .h-block::before {
211
+ content: '';
212
+ position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px;
213
+ background: rgba(97, 227, 207, .4);
214
+ }
215
+ .h-block h3 {
216
+ display: flex;
217
+ align-items: center;
218
+ gap: 9px;
219
+ margin: 0 0 13px;
220
+ font: 500 11.5px var(--mono);
221
+ letter-spacing: .14em;
222
+ color: var(--ink-soft);
223
+ }
224
+ .h-block h3::before { content: '//'; color: var(--acid); letter-spacing: 0; font-weight: 600; }
225
+ .h-block h3 .btn {
226
+ margin-left: auto;
227
+ font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
228
+ font-size: 11px;
229
+ letter-spacing: 0;
230
+ }
231
+ .h-block .dim { color: var(--ink-dim); font-size: 11.5px; }
232
+
233
+ .h-chart {
234
+ display: flex;
235
+ align-items: stretch;
236
+ gap: 5px;
237
+ height: 168px;
238
+ padding: 10px 2px 0;
239
+ border-bottom: 1px solid var(--line-2);
240
+ background-image: linear-gradient(rgba(143, 182, 224, .07) 1px, transparent 1px);
241
+ background-size: 100% 25%;
242
+ }
243
+ .h-bar {
244
+ flex: 1 1 0;
245
+ min-width: 0;
246
+ display: grid;
247
+ grid-template-rows: 1fr auto auto;
248
+ justify-items: center;
249
+ align-items: end;
250
+ gap: 5px;
251
+ }
252
+ .h-bar i {
253
+ display: block;
254
+ width: 100%;
255
+ max-width: 26px;
256
+ min-height: 2px;
257
+ align-self: end;
258
+ border-radius: 1px 1px 0 0;
259
+ background: linear-gradient(180deg, var(--accent) 0%, rgba(97, 227, 207, .4) 100%);
260
+ box-shadow: 0 0 12px rgba(97, 227, 207, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
261
+ }
262
+ .h-bar b { font: 500 10.5px var(--mono); color: var(--ink-soft); }
263
+ .h-bar span { font: 9px var(--mono); color: var(--faint); white-space: nowrap; }
264
+
265
+ .h-line {
266
+ display: flex;
267
+ flex-wrap: wrap;
268
+ align-items: center;
269
+ gap: 8px 20px;
270
+ font-size: 12.5px;
271
+ line-height: 1.7;
272
+ color: var(--ink-soft);
273
+ }
274
+ .h-line > span { display: inline-flex; align-items: baseline; gap: 5px; }
275
+ .h-line b { font: 500 13px var(--mono); color: var(--accent); }
276
+ .h-line .warn { color: var(--amber); }
277
+ .h-line .warn b { color: var(--amber); }
278
+ .h-line .dim { color: var(--ink-dim); font-size: 11.5px; }
279
+
280
+ .maint-list { display: grid; gap: 2px; }
281
+ .maint-row {
282
+ display: grid;
283
+ grid-template-columns: minmax(0, 1fr) auto;
284
+ gap: 10px;
285
+ padding: 8px;
286
+ border: 1px solid transparent;
287
+ border-radius: 2px;
288
+ }
289
+ .maint-row:hover { background: rgba(97, 227, 207, .05); border-color: rgba(97, 227, 207, .16); }
290
+ .maint-main { display: grid; gap: 3px; min-width: 0; }
291
+ .maint-text { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
292
+ .maint-meta { font: 10px var(--mono); color: var(--faint); }
293
+ .maint-empty { margin: 6px 0; font-size: 12px; color: var(--ink-dim); }
294
+ .due-input {
295
+ width: 186px;
296
+ padding: 3px 7px;
297
+ background: var(--paper);
298
+ border: 1px solid var(--line-2);
299
+ border-radius: 2px;
300
+ color: var(--ink);
301
+ font: 10.5px var(--mono);
302
+ }
303
+
304
+ *::-webkit-scrollbar { width: 9px; height: 9px; }
305
+ *::-webkit-scrollbar-thumb { background: rgba(143, 182, 224, .26); }
306
+ *::-webkit-scrollbar-thumb:hover { background: rgba(143, 182, 224, .42); }
307
+ *::-webkit-scrollbar-track { background: transparent; }
308
+
309
+ @media (max-width: 760px) {
310
+ .health-wrap { padding: 16px 14px 52px; }
311
+ .h-value { font-size: 27px; }
312
+ .h-chart { height: 136px; }
313
+ .h-bar b { font-size: 9.5px; }
314
+ .h-bar span { font-size: 8px; }
315
+ }
316
+
317
+ /* ── 收尾:动作按钮、分区标记、星图四角准星 ── */
318
+ .h-block h3 .btn {
319
+ color: var(--acid);
320
+ border-color: rgba(252, 238, 10, .4);
321
+ background: rgba(252, 238, 10, .07);
322
+ padding: 4px 11px;
323
+ line-height: 1.2;
324
+ }
325
+ .h-block h3 .btn:hover { background: rgba(252, 238, 10, .16); border-color: var(--acid); color: #fff; }
326
+
327
+ .next-rail h3::before,
328
+ #insp-body h3::before {
329
+ content: '//';
330
+ margin-right: 6px;
331
+ color: var(--acid);
332
+ letter-spacing: 0;
333
+ }
334
+
335
+ /* 星图四角准星:一个很轻的 HUD 边框,不挡视线 */
336
+ .galaxy-wrap::before,
337
+ .galaxy-wrap::after {
338
+ content: '';
339
+ position: absolute;
340
+ width: 18px; height: 18px;
341
+ border: 1px solid rgba(252, 238, 10, .45);
342
+ pointer-events: none;
343
+ z-index: 2;
344
+ }
345
+ .galaxy-wrap::before { left: 9px; top: 9px; border-right: 0; border-bottom: 0; }
346
+ .galaxy-wrap::after { right: 9px; bottom: 9px; border-left: 0; border-top: 0; }
347
+
348
+ @media (max-width: 760px) {
349
+ .h-block h3 { flex-wrap: wrap; }
350
+ .h-block h3 .btn { margin-left: 0; }
351
+ }
352
+
353
+ /* 体检页末尾收个口,别让下半屏空着 */
354
+ .health-wrap::after {
355
+ content: 'END OF DIAGNOSTICS · ALL DATA STAYS LOCAL';
356
+ grid-column: 1 / -1;
357
+ margin-top: 6px;
358
+ padding-top: 14px;
359
+ border-top: 1px dashed rgba(143, 182, 224, .18);
360
+ font: 9.5px var(--mono);
361
+ letter-spacing: .22em;
362
+ color: var(--faint);
363
+ }
364
+
365
+ /* 浅色主题:酸黄在白底上读不清,换成深金;面板改成浅玻璃 */
366
+ html[data-mode="light"] .h-card { background: linear-gradient(160deg, #ffffff, #edf4f8); }
367
+ html[data-mode="light"] .h-value { color: #8a6a00; text-shadow: none; }
368
+ html[data-mode="light"] .h-card.warn .h-value { color: #8a5a00; }
369
+ html[data-mode="light"] .h-block { background: rgba(255, 255, 255, .7); }
370
+ html[data-mode="light"] .h-block::before { background: rgba(22, 143, 131, .45); }
371
+ html[data-mode="light"] .h-bar i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
372
+ html[data-mode="light"] .health-wrap::before { color: #7a6a00; text-shadow: none; border-bottom-color: rgba(122, 106, 0, .22); }
373
+ html[data-mode="light"] .h-block h3 .btn { color: #7a6a00; border-color: rgba(122, 106, 0, .35); background: rgba(230, 212, 0, .12); }
374
+ html[data-mode="light"] .next-btn.primary { background: #e6d400; color: #14161a; }
375
+ html[data-mode="light"] .next-tabs .next-tab.active { color: #6f6100; background: rgba(230, 212, 0, .18); box-shadow: inset 0 -2px 0 #b8a800; }
376
+ html[data-mode="light"] body::before { background: linear-gradient(90deg, #c9b800, rgba(201, 184, 0, .35) 30%, transparent 100%); box-shadow: none; }
377
+ html[data-mode="light"] body::after { display: none; }
378
+
379
+ /* 浅色主题的控件底色:原来只换了文字变量,底板还是深色,字就看不见了 */
380
+ html[data-mode="light"] .next-search { background: rgba(255, 255, 255, .88); }
381
+ html[data-mode="light"] .next-search input { color: var(--ink); }
382
+ html[data-mode="light"] .next-search input::placeholder { color: var(--ink-dim); }
383
+ html[data-mode="light"] .next-tabs { background: rgba(255, 255, 255, .82); }
384
+ html[data-mode="light"] .next-tabs .next-tab { color: var(--ink-soft); }
385
+ html[data-mode="light"] .next-tabs .next-tab:hover { color: var(--ink); }
386
+ html[data-mode="light"] .next-tabs .next-tab.active { color: #5c5000; background: rgba(230, 212, 0, .32); box-shadow: inset 0 -2px 0 #b8a800; }
387
+ html[data-mode="light"] .btn { background: #fff; border-color: var(--line-2); color: var(--ink); }
388
+ html[data-mode="light"] .btn:hover { background: var(--sheet-2); }
389
+ html[data-mode="light"] .btn.ghost { background: transparent; }
390
+
391
+ /* 「去补时间」在说明行里,不在标题行——之前漏了它 */
392
+ .h-line .btn {
393
+ color: var(--acid);
394
+ border-color: rgba(252, 238, 10, .4);
395
+ background: rgba(252, 238, 10, .07);
396
+ }
397
+ .h-line .btn:hover { background: rgba(252, 238, 10, .16); border-color: var(--acid); color: #fff; }
398
+ html[data-mode="light"] .h-line .btn {
399
+ color: #7a6a00;
400
+ border-color: rgba(122, 106, 0, .35);
401
+ background: rgba(230, 212, 0, .14);
402
+ }
403
+
404
+ /* ============================================================
405
+ 夜之城皮肤:霓虹品红 + 电子青 + 酸黄标识 + 城市辉光
406
+ ============================================================ */
407
+ :root {
408
+ --neon-pink: #ff2d6f;
409
+ --neon-cyan: #22e6ff;
410
+ }
411
+
412
+ /* 城市夜色:左上青、右上品红、底部紫,像从街面反上来的光 */
413
+ body {
414
+ background-color: #04070e;
415
+ background-image:
416
+ radial-gradient(900px 520px at 10% -10%, rgba(34, 230, 255, .10), transparent 62%),
417
+ radial-gradient(780px 460px at 92% 4%, rgba(255, 45, 111, .11), transparent 64%),
418
+ radial-gradient(900px 680px at 50% 112%, rgba(124, 58, 237, .12), transparent 66%),
419
+ linear-gradient(rgba(34, 230, 255, .02) 1px, transparent 1px),
420
+ linear-gradient(90deg, rgba(34, 230, 255, .02) 1px, transparent 1px);
421
+ background-size: auto, auto, auto, 44px 44px, 44px 44px;
422
+ }
423
+
424
+ /* 顶栏:品红压边 + 一条青到黄的信号线 */
425
+ .next-topbar { border-bottom-color: rgba(255, 45, 111, .22); }
426
+ .next-topbar::after {
427
+ content: '';
428
+ position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
429
+ background: linear-gradient(90deg, transparent, var(--neon-cyan) 14%, var(--neon-pink) 48%, var(--acid) 74%, transparent);
430
+ opacity: .5;
431
+ }
432
+
433
+ /* 品牌字做一点色散,像街边招牌的错位 */
434
+ .next-brand-copy strong {
435
+ color: #fff;
436
+ text-shadow: 1px 0 rgba(255, 45, 111, .55), -1px 0 rgba(34, 230, 255, .45);
437
+ }
438
+ .core-mark { border-color: rgba(255, 45, 111, .75); box-shadow: 0 0 0 5px rgba(255, 45, 111, .06), inset 0 0 12px rgba(34, 230, 255, .2); }
439
+ .core-mark::before, .core-mark::after { border-color: var(--neon-cyan); }
440
+
441
+ /* 指标条:数字用电子青发光,标签压成品红小字 */
442
+ .metric .label { color: rgba(255, 45, 111, .78); }
443
+ .metric .value { color: #eefcff; text-shadow: 0 0 14px rgba(34, 230, 255, .28); }
444
+ .metric.ok .value { color: var(--neon-cyan); }
445
+ .metric.warn .value { color: var(--acid); }
446
+ .spark i { background: linear-gradient(180deg, var(--neon-pink), rgba(255, 45, 111, .2)); }
447
+ .spark i.today { background: var(--acid); }
448
+
449
+ /* 左侧栏:一道冷光边 */
450
+ .next-rail {
451
+ border-right-color: rgba(34, 230, 255, .16);
452
+ box-shadow: inset -18px 0 26px -26px var(--neon-cyan);
453
+ }
454
+
455
+ /* 体检卡:品红标号 → 青白数字 → 左侧霓虹条 */
456
+ .h-label { color: rgba(255, 45, 111, .85); }
457
+ .h-card::before {
458
+ background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
459
+ box-shadow: 0 0 16px rgba(255, 45, 111, .45);
460
+ }
461
+ .h-value { color: #f2feff; text-shadow: 0 0 20px rgba(34, 230, 255, .32); }
462
+ .h-card.warn .h-value { color: var(--acid); text-shadow: 0 0 20px rgba(252, 238, 10, .25); }
463
+ .h-card { transition: border-color .18s, box-shadow .18s; }
464
+ .h-card:hover { border-color: rgba(34, 230, 255, .38); box-shadow: 0 0 24px rgba(255, 45, 111, .1); }
465
+
466
+ /* 柱状图:青色的潮湿反光 */
467
+ .h-bar i {
468
+ background: linear-gradient(180deg, var(--neon-cyan) 0%, rgba(34, 230, 255, .22) 100%);
469
+ box-shadow: 0 0 14px rgba(34, 230, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
470
+ border-top: 1px solid rgba(255, 255, 255, .45);
471
+ }
472
+
473
+ /* 分区:品红竖线 + 青边 */
474
+ .h-block { border-color: rgba(34, 230, 255, .14); }
475
+ .h-block::before { background: linear-gradient(180deg, var(--neon-pink), rgba(255, 45, 111, .15)); }
476
+ .h-block h3::before { color: var(--neon-pink); }
477
+ .h-line b { color: var(--neon-cyan); }
478
+
479
+ /* 悬停时给一点霓虹呼吸 */
480
+ .h-block:hover { border-color: rgba(34, 230, 255, .28); }
481
+
482
+ /* 浅色下不要城市辉光,会脏 */
483
+ html[data-mode="light"] body { background-image:
484
+ linear-gradient(rgba(24, 112, 128, .035) 1px, transparent 1px),
485
+ linear-gradient(90deg, rgba(24, 112, 128, .035) 1px, transparent 1px); }
486
+ html[data-mode="light"] .next-topbar::after { opacity: .8; background: linear-gradient(90deg, transparent, #168f83 14%, #c2185b 48%, #c9b800 74%, transparent); }
487
+ html[data-mode="light"] .h-value { color: #12313d; text-shadow: none; }
488
+ html[data-mode="light"] .h-label { color: #b3245c; }
489
+ html[data-mode="light"] .h-card::before { background: linear-gradient(180deg, #c2185b, #168f83); }
490
+
491
+ /* 舞台两侧的灯管:像街边招牌的边光,不挡内容 */
492
+ .next-stage::before,
493
+ .next-stage::after {
494
+ content: '';
495
+ position: absolute; top: 0; bottom: 0; width: 2px; z-index: 3;
496
+ pointer-events: none;
497
+ opacity: .55;
498
+ }
499
+ .next-stage::before { left: 0; background: linear-gradient(180deg, transparent, var(--neon-pink) 18%, var(--neon-cyan) 62%, transparent); }
500
+ .next-stage::after { right: 0; background: linear-gradient(180deg, transparent, var(--neon-cyan) 22%, var(--neon-pink) 70%, transparent); opacity: .35; }
501
+
502
+ /* 指标条下沿:一条品红到青的分隔光 */
503
+ .next-metrics { border-bottom-color: rgba(255, 45, 111, .2); box-shadow: 0 1px 0 rgba(34, 230, 255, .06); }
504
+
505
+ /* 状态栏:顶部霓虹细线,像湿地面上的倒影 */
506
+ .next-statusbar { border-top-color: rgba(34, 230, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 45, 111, .18); }
507
+
508
+ /* 分区面板切一个角,工业感 */
509
+ .h-block { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
510
+
511
+ /* 选中态更硬:青字 + 品红底线 */
512
+ .next-tabs .next-tab.active {
513
+ color: var(--acid);
514
+ background: rgba(252, 238, 10, .06);
515
+ box-shadow: inset 0 -2px 0 var(--acid), 0 6px 18px -12px var(--acid);
516
+ }
517
+
518
+ /* 主按钮发光更明显一点 */
519
+ .next-btn.primary { box-shadow: 0 0 0 1px rgba(252, 238, 10, .2), 0 0 22px rgba(252, 238, 10, .18); }
520
+
521
+ html[data-mode="light"] .next-stage::before,
522
+ html[data-mode="light"] .next-stage::after { opacity: .18; }
523
+
524
+ /* ============================================================
525
+ 氛围层:自定义背景 / 竖排霓虹招牌 / 新记忆故障闪
526
+ ============================================================ */
527
+ .bg-layer {
528
+ position: fixed; inset: -2%; z-index: 0;
529
+ background-size: cover; background-position: center; background-repeat: no-repeat;
530
+ pointer-events: none;
531
+ }
532
+ .bg-layer.has-image::after {
533
+ content: '';
534
+ position: absolute; inset: 0;
535
+ background: rgba(4, 7, 14, var(--bg-dim, .55));
536
+ }
537
+ .next-app { position: relative; z-index: 1; }
538
+
539
+ /* 左边缘的竖排招牌:只在宽屏出现,窄屏会挤到内容 */
540
+ .rail-sign {
541
+ position: fixed;
542
+ left: 3px;
543
+ top: 50%;
544
+ transform: translateY(-50%) rotate(180deg);
545
+ writing-mode: vertical-rl;
546
+ padding: 14px 1px;
547
+ font: 9.5px var(--mono);
548
+ letter-spacing: .32em;
549
+ color: rgba(255, 90, 140, .55);
550
+ text-shadow: 0 0 10px rgba(255, 45, 111, .7), 0 0 26px rgba(255, 45, 111, .3);
551
+ background: linear-gradient(180deg, transparent, rgba(4, 7, 14, .72) 16%, rgba(4, 7, 14, .72) 84%, transparent);
552
+ pointer-events: none;
553
+ z-index: 6;
554
+ }
555
+ @media (max-width: 1100px) { .rail-sign { display: none; } }
556
+
557
+ /* 新记忆到达:整块舞台短暂过曝 + 偏色,像接触不良 */
558
+ @keyframes cg-flash {
559
+ 0% { filter: none; }
560
+ 10% { filter: brightness(1.35) saturate(1.45) hue-rotate(10deg); }
561
+ 26% { filter: brightness(1); }
562
+ 40% { filter: brightness(1.18) hue-rotate(-8deg); }
563
+ 100% { filter: none; }
564
+ }
565
+ body.cg-glitch .next-stage { animation: cg-flash .7s ease-out 1; }
566
+
567
+ /* ── 背景设置面板 ── */
568
+ .bg-modal {
569
+ position: fixed; inset: 0; z-index: 70;
570
+ display: grid; place-items: center;
571
+ background: rgba(3, 6, 12, .62);
572
+ backdrop-filter: blur(4px);
573
+ }
574
+ .bg-modal[hidden] { display: none; }
575
+ .bg-panel {
576
+ width: min(430px, calc(100vw - 36px));
577
+ background: linear-gradient(160deg, rgba(18, 28, 46, .98), rgba(6, 10, 18, .99));
578
+ border: 1px solid rgba(34, 230, 255, .25);
579
+ clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
580
+ box-shadow: 0 0 46px rgba(255, 45, 111, .14);
581
+ }
582
+ .bg-panel header {
583
+ display: flex; align-items: center; justify-content: space-between;
584
+ padding: 14px 16px;
585
+ border-bottom: 1px solid rgba(255, 45, 111, .18);
586
+ }
587
+ .bg-panel h2 { margin: 0; font: 500 12.5px var(--mono); letter-spacing: .16em; color: #fff; }
588
+ .bg-body { padding: 16px; }
589
+ .bg-label { margin: 0 0 8px; font: 500 9.5px var(--mono); letter-spacing: .2em; color: rgba(255, 45, 111, .8); }
590
+ .bg-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
591
+ .bg-swatch {
592
+ padding: 0; border: 1px solid var(--line); background: transparent;
593
+ color: var(--ink-soft); font-size: 10.5px; cursor: pointer;
594
+ }
595
+ .bg-swatch i { display: block; height: 52px; }
596
+ .bg-swatch span { display: block; padding: 5px 0; }
597
+ .bg-swatch.on { border-color: var(--acid); color: var(--acid); box-shadow: 0 0 16px rgba(252, 238, 10, .18); }
598
+ .bg-row { display: flex; gap: 8px; margin-bottom: 14px; }
599
+ .bg-slider { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11.5px; color: var(--ink-soft); }
600
+ .bg-slider input { flex: 1; accent-color: var(--neon-pink); }
601
+ .bg-slider b { min-width: 34px; text-align: right; font: 11px var(--mono); color: var(--ink); }
602
+ .bg-slider input:disabled { opacity: .35; }
603
+ .bg-slider:has(input:disabled) { opacity: .55; }
604
+ .bg-note { margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--faint); }
605
+ .bg-toast {
606
+ position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%);
607
+ z-index: 80; padding: 8px 14px;
608
+ background: rgba(12, 20, 34, .96);
609
+ border: 1px solid rgba(34, 230, 255, .3);
610
+ color: var(--ink); font-size: 12px;
611
+ clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
612
+ }
613
+ .bg-toast[hidden] { display: none; }
614
+
615
+ html[data-mode="light"] .bg-panel { background: linear-gradient(160deg, #fff, #eef4f8); border-color: rgba(22, 143, 131, .3); box-shadow: 0 20px 46px rgba(40, 70, 90, .18); }
616
+ html[data-mode="light"] .bg-panel h2 { color: #172532; }
617
+ html[data-mode="light"] .bg-label { color: #b3245c; }
618
+ html[data-mode="light"] .bg-layer.has-image::after { background: rgba(238, 243, 246, var(--bg-dim, .55)); }
619
+
620
+ .bg-swatch i { filter: saturate(1.35) brightness(1.5); }
621
+
622
+ /* 浅色:不要深色预设压在底下,指标数字改深色 */
623
+ html[data-mode="light"] .bg-layer:not(.has-image) { background-image: none !important; }
624
+ html[data-mode="light"] .metric .value { color: #12313d; text-shadow: none; }
625
+ html[data-mode="light"] .metric .label { color: #a8336a; }
626
+ html[data-mode="light"] .metric.ok .value { color: #168f83; }
627
+ html[data-mode="light"] .metric.warn .value { color: #8a6a00; }
628
+ html[data-mode="light"] .spark i { background: linear-gradient(180deg, #c2185b, rgba(194, 24, 91, .22)); }
629
+
630
+ /* 浅色:背景层直接不参与渲染,顶部/底部条改不透明,避免透出深色 */
631
+ html[data-mode="light"] .bg-layer:not(.has-image) { display: none; }
632
+ html[data-mode="light"] .next-topbar,
633
+ html[data-mode="light"] .next-metrics,
634
+ html[data-mode="light"] .next-statusbar { background: #eef3f6; }
635
+
636
+ /* 真正的根因:浅色只换了背景图,底色还是 #04070e,半透明面板透出来就是灰的 */
637
+ html[data-mode="light"] body { background-color: #eef3f6; }
638
+
639
+ /* 浅色下这些原来是白字/荧光黄,压在浅底上看不清 */
640
+ html[data-mode="light"] .next-brand-copy strong { color: #172532; text-shadow: 1px 0 rgba(194, 24, 91, .35), -1px 0 rgba(22, 143, 131, .3); }
641
+ html[data-mode="light"] .next-rail h3::before,
642
+ html[data-mode="light"] #insp-body h3::before,
643
+ html[data-mode="light"] .h-block h3::before { color: #8a6a00; }