dsh-macro-memory 0.0.0-stage → 0.4.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/LICENSE +21 -0
- package/README.md +506 -2
- package/cordis.patch.yml +6 -0
- package/lib/client.js +3623 -0
- package/lib/index.js +502 -0
- package/lib/macro/brand.js +82 -0
- package/lib/macro/bridge.js +158 -0
- package/lib/macro/chain.js +206 -0
- package/lib/macro/contract.js +471 -0
- package/lib/macro/cost.js +164 -0
- package/lib/macro/defs/admin.js +442 -0
- package/lib/macro/defs/dream.js +24 -0
- package/lib/macro/defs/link.js +257 -0
- package/lib/macro/defs/project.js +25 -0
- package/lib/macro/defs/read.js +160 -0
- package/lib/macro/defs/remember.js +411 -0
- package/lib/macro/defs/search.js +871 -0
- package/lib/macro/defs/update.js +161 -0
- package/lib/macro/dreamledger.js +1398 -0
- package/lib/macro/facade.js +135 -0
- package/lib/macro/fusion.js +182 -0
- package/lib/macro/linkflow.js +391 -0
- package/lib/macro/links.js +448 -0
- package/lib/macro/neighbor.js +209 -0
- package/lib/macro/panel.js +96 -0
- package/lib/macro/prompt.js +139 -0
- package/lib/macro/provenance.js +148 -0
- package/lib/macro/render.js +35 -0
- package/lib/macro/revisions.js +253 -0
- package/lib/macro/shared.js +113 -0
- package/lib/macro/store.js +103 -0
- package/lib/macro/supersede.js +197 -0
- package/lib/macro/tokencost.js +90 -0
- package/lib/macro/tools.js +67 -0
- package/package.json +54 -4
- package/vendor/VENDOR.json +23 -0
- package/vendor/dsh-memory-nebula/CONTRIBUTING.md +48 -0
- package/vendor/dsh-memory-nebula/LICENSE +21 -0
- package/vendor/dsh-memory-nebula/README.en.md +203 -0
- package/vendor/dsh-memory-nebula/README.md +253 -0
- package/vendor/dsh-memory-nebula/SECURITY.md +43 -0
- package/vendor/dsh-memory-nebula/SUPPORT.md +33 -0
- package/vendor/dsh-memory-nebula/cordis.patch.yml +4 -0
- package/vendor/dsh-memory-nebula/lib/client.js +105 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/index.js +279 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/ingest.js +230 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/meow.js +320 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/notes.js +305 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/sqlite.js +287 -0
- package/vendor/dsh-memory-nebula/lib/host/adapters/util.js +231 -0
- package/vendor/dsh-memory-nebula/lib/host/bridge.js +351 -0
- package/vendor/dsh-memory-nebula/lib/host/compress.js +97 -0
- package/vendor/dsh-memory-nebula/lib/host/demo.js +357 -0
- package/vendor/dsh-memory-nebula/lib/host/diagnostics.js +125 -0
- package/vendor/dsh-memory-nebula/lib/host/doctor.js +270 -0
- package/vendor/dsh-memory-nebula/lib/host/entities.js +230 -0
- package/vendor/dsh-memory-nebula/lib/host/graph.js +1762 -0
- package/vendor/dsh-memory-nebula/lib/host/graphcache.js +290 -0
- package/vendor/dsh-memory-nebula/lib/host/http.js +993 -0
- package/vendor/dsh-memory-nebula/lib/host/injectcfg.js +95 -0
- package/vendor/dsh-memory-nebula/lib/host/ledger.js +175 -0
- package/vendor/dsh-memory-nebula/lib/host/live.js +204 -0
- package/vendor/dsh-memory-nebula/lib/host/nebula.js +2105 -0
- package/vendor/dsh-memory-nebula/lib/host/page.js +75 -0
- package/vendor/dsh-memory-nebula/lib/host/path.js +83 -0
- package/vendor/dsh-memory-nebula/lib/host/recall.js +524 -0
- package/vendor/dsh-memory-nebula/lib/host/share.js +633 -0
- package/vendor/dsh-memory-nebula/lib/host/sources.js +266 -0
- package/vendor/dsh-memory-nebula/lib/host/store.js +333 -0
- package/vendor/dsh-memory-nebula/lib/host/text.js +410 -0
- package/vendor/dsh-memory-nebula/lib/host/transcripts.js +396 -0
- package/vendor/dsh-memory-nebula/lib/index.js +782 -0
- package/vendor/dsh-memory-nebula/lib/standalone.mjs +315 -0
- package/vendor/dsh-memory-nebula/lib/web/api.js +426 -0
- package/vendor/dsh-memory-nebula/lib/web/app.js +4172 -0
- package/vendor/dsh-memory-nebula/lib/web/i18n.js +580 -0
- package/vendor/dsh-memory-nebula/lib/web/index.html +174 -0
- package/vendor/dsh-memory-nebula/lib/web/nav.js +132 -0
- package/vendor/dsh-memory-nebula/lib/web/render.js +1890 -0
- package/vendor/dsh-memory-nebula/lib/web/space3d.js +1883 -0
- package/vendor/dsh-memory-nebula/lib/web/style.css +1402 -0
- package/vendor/dsh-memory-nebula/locale/en.json +7 -0
- package/vendor/dsh-memory-nebula/locale/zh.json +7 -0
- package/vendor/dsh-memory-nebula/market/assets/icon-180.png +0 -0
- package/vendor/dsh-memory-nebula/market/assets/icon.svg +40 -0
- package/vendor/dsh-memory-nebula/market/index.json +101 -0
- package/vendor/dsh-memory-nebula/package.json +87 -0
- package/vendor/dsh-memory-nebula/sidecar.ps1 +119 -0
- package/vendor/meow-memory/LICENSE +21 -0
- package/vendor/meow-memory/README.en.md +192 -0
- package/vendor/meow-memory/README.md +174 -0
- package/vendor/meow-memory/README.pt-br.md +180 -0
- package/vendor/meow-memory/cordis.patch.yml +7 -0
- package/vendor/meow-memory/lib/client.js +3344 -0
- package/vendor/meow-memory/lib/client.js.map +7 -0
- package/vendor/meow-memory/lib/index.js +9802 -0
- package/vendor/meow-memory/lib/index.js.map +7 -0
- package/vendor/meow-memory/lib/prompts/README.md +65 -0
- package/vendor/meow-memory/lib/prompts/en/dream-atomic.md +36 -0
- package/vendor/meow-memory/lib/prompts/en/dream-header.md +9 -0
- package/vendor/meow-memory/lib/prompts/en/dream-project-summary.md +12 -0
- package/vendor/meow-memory/lib/prompts/en/dream-topic.md +27 -0
- package/vendor/meow-memory/lib/prompts/en/external-memory-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/en/first-create-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/en/labels.md +98 -0
- package/vendor/meow-memory/lib/prompts/en/reflect.md +31 -0
- package/vendor/meow-memory/lib/prompts/en/system-guide.md +121 -0
- package/vendor/meow-memory/lib/prompts/en/tools.md +83 -0
- package/vendor/meow-memory/lib/prompts/en/welcome-guide.md +12 -0
- package/vendor/meow-memory/lib/prompts/pt-br/dream-atomic.md +36 -0
- package/vendor/meow-memory/lib/prompts/pt-br/dream-header.md +9 -0
- package/vendor/meow-memory/lib/prompts/pt-br/dream-project-summary.md +12 -0
- package/vendor/meow-memory/lib/prompts/pt-br/dream-topic.md +27 -0
- package/vendor/meow-memory/lib/prompts/pt-br/external-memory-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/pt-br/first-create-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/pt-br/labels.md +98 -0
- package/vendor/meow-memory/lib/prompts/pt-br/reflect.md +31 -0
- package/vendor/meow-memory/lib/prompts/pt-br/system-guide.md +121 -0
- package/vendor/meow-memory/lib/prompts/pt-br/tools.md +83 -0
- package/vendor/meow-memory/lib/prompts/pt-br/welcome-guide.md +12 -0
- package/vendor/meow-memory/lib/prompts/zh/dream-atomic.md +36 -0
- package/vendor/meow-memory/lib/prompts/zh/dream-header.md +9 -0
- package/vendor/meow-memory/lib/prompts/zh/dream-project-summary.md +19 -0
- package/vendor/meow-memory/lib/prompts/zh/dream-topic.md +27 -0
- package/vendor/meow-memory/lib/prompts/zh/external-memory-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/zh/first-create-notice.md +8 -0
- package/vendor/meow-memory/lib/prompts/zh/labels.md +98 -0
- package/vendor/meow-memory/lib/prompts/zh/reflect.md +30 -0
- package/vendor/meow-memory/lib/prompts/zh/system-guide.md +119 -0
- package/vendor/meow-memory/lib/prompts/zh/tools.md +83 -0
- package/vendor/meow-memory/lib/prompts/zh/welcome-guide.md +12 -0
- package/vendor/meow-memory/package.json +64 -0
|
@@ -0,0 +1,1402 @@
|
|
|
1
|
+
/* 宏记忆 · 星图 —— 星云界面样式
|
|
2
|
+
设计:深空背景 + 玻璃面板 + 少量高饱和强调色,其余全部压低,
|
|
3
|
+
让「光点」和「连线」成为画面里唯一亮的东西。 */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--bg: #04060c;
|
|
7
|
+
--bg-2: #070b14;
|
|
8
|
+
--panel: rgba(12, 17, 28, 0.78);
|
|
9
|
+
--panel-solid: #0b1019;
|
|
10
|
+
--line: rgba(140, 170, 210, 0.14);
|
|
11
|
+
--line-strong: rgba(150, 190, 235, 0.28);
|
|
12
|
+
--text: #dbe6f5;
|
|
13
|
+
--text-dim: #8194ad;
|
|
14
|
+
--text-faint: #6b7f96; /* 10px 小字也要过 WCAG AA(对面板底 4.63:1),原来的 #526278 只有 3.06 */
|
|
15
|
+
--accent: #6ce0ff;
|
|
16
|
+
--accent-2: #b48cff;
|
|
17
|
+
--warm: #ffcf7a;
|
|
18
|
+
--danger: #ff7a8a;
|
|
19
|
+
--ok: #78e6b0;
|
|
20
|
+
--radius: 14px;
|
|
21
|
+
--shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
|
|
22
|
+
--mono: 'JetBrains Mono', 'Cascadia Code', ui-monospace, 'SF Mono', Consolas, monospace;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
* { box-sizing: border-box; }
|
|
26
|
+
|
|
27
|
+
html, body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
height: 100%;
|
|
30
|
+
background: var(--bg);
|
|
31
|
+
color: var(--text);
|
|
32
|
+
font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
-webkit-font-smoothing: antialiased;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#stage { position: fixed; inset: 0; }
|
|
39
|
+
|
|
40
|
+
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
|
|
41
|
+
#sky.dragging { cursor: grabbing; }
|
|
42
|
+
#sky.pointing { cursor: pointer; }
|
|
43
|
+
#sky3d, #sky3dlbl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
|
|
44
|
+
#sky3d { cursor: grab; }
|
|
45
|
+
#sky3dlbl { pointer-events: none; }
|
|
46
|
+
#sky3d[hidden], #sky3dlbl[hidden] { display: none; }
|
|
47
|
+
|
|
48
|
+
/* 只给读屏的文本:视觉上消失,但仍然留在可访问性树里。
|
|
49
|
+
不用 display:none / visibility:hidden —— 那会把内容一起从读屏里摘掉。 */
|
|
50
|
+
.sr-only {
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 1px;
|
|
53
|
+
height: 1px;
|
|
54
|
+
padding: 0;
|
|
55
|
+
margin: -1px;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
clip: rect(0 0 0 0);
|
|
58
|
+
clip-path: inset(50%);
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
border: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* 跳过链接:键盘用户第一个 Tab 就能越过一串工具栏,直接进星图。
|
|
64
|
+
平时收在屏幕外,聚焦时滑回顶部;鼠标用户不会看到它。 */
|
|
65
|
+
.skip-link {
|
|
66
|
+
position: fixed;
|
|
67
|
+
top: 10px;
|
|
68
|
+
left: 50%;
|
|
69
|
+
z-index: 90;
|
|
70
|
+
padding: 8px 16px;
|
|
71
|
+
border-radius: 999px;
|
|
72
|
+
background: var(--accent);
|
|
73
|
+
color: #04202a;
|
|
74
|
+
font: 600 13px/1.2 var(--mono);
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
transform: translate(-50%, -180%);
|
|
77
|
+
transition: transform 0.16s ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.skip-link:focus,
|
|
81
|
+
.skip-link:focus-visible {
|
|
82
|
+
transform: translate(-50%, 0);
|
|
83
|
+
outline: 2px solid #04202a;
|
|
84
|
+
outline-offset: 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* 键盘层:铺满舞台,只接键盘焦点、不吃鼠标(pointer-events:none),
|
|
88
|
+
所以点画布照旧能拖动;点下去时 app.js 把焦点递进来,接着就能用方向键走。 */
|
|
89
|
+
#skykeys { position: absolute; inset: 0; pointer-events: none; outline: none; }
|
|
90
|
+
|
|
91
|
+
#skykeys:focus-visible {
|
|
92
|
+
outline: 2px solid var(--accent);
|
|
93
|
+
outline-offset: -3px;
|
|
94
|
+
border-radius: 10px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* 背景:径向柔光 + 极淡噪点,避免大片死黑 */
|
|
98
|
+
#vignette {
|
|
99
|
+
position: absolute; inset: 0; pointer-events: none;
|
|
100
|
+
background:
|
|
101
|
+
radial-gradient(1200px 700px at 28% 18%, rgba(72, 120, 190, 0.12), transparent 65%),
|
|
102
|
+
radial-gradient(900px 620px at 78% 76%, rgba(150, 100, 220, 0.10), transparent 68%),
|
|
103
|
+
radial-gradient(700px 500px at 60% 40%, rgba(40, 90, 130, 0.07), transparent 70%);
|
|
104
|
+
mix-blend-mode: screen;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.hud { position: absolute; pointer-events: none; }
|
|
108
|
+
.hud > * { pointer-events: auto; }
|
|
109
|
+
|
|
110
|
+
/* ============ 顶栏 ============ */
|
|
111
|
+
#topbar {
|
|
112
|
+
top: 0; left: 0; right: 0;
|
|
113
|
+
display: flex; align-items: center; gap: 14px;
|
|
114
|
+
padding: 14px 18px;
|
|
115
|
+
background: linear-gradient(180deg, rgba(4, 6, 12, 0.92), rgba(4, 6, 12, 0));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.brand { display: flex; align-items: baseline; gap: 10px; user-select: none; white-space: nowrap; }
|
|
119
|
+
.brand b {
|
|
120
|
+
font-size: 15px; letter-spacing: 0.16em; font-weight: 600;
|
|
121
|
+
background: linear-gradient(92deg, #eaf6ff, #9fd4ff 45%, #b48cff);
|
|
122
|
+
-webkit-background-clip: text; background-clip: text; color: transparent;
|
|
123
|
+
}
|
|
124
|
+
.brand small {
|
|
125
|
+
font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
|
|
126
|
+
color: var(--text-faint); text-transform: uppercase;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.stat-row { display: flex; gap: 16px; margin-left: 6px; }
|
|
130
|
+
.stat { display: flex; flex-direction: column; line-height: 1.15; }
|
|
131
|
+
.stat b { font-family: var(--mono); font-size: 14px; font-weight: 600; color: #eaf3ff; }
|
|
132
|
+
.stat span { font-size: 10px; color: var(--text-faint); letter-spacing: 0.08em; white-space: nowrap; }
|
|
133
|
+
|
|
134
|
+
.spacer { flex: 1; }
|
|
135
|
+
|
|
136
|
+
.btn {
|
|
137
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
138
|
+
height: 30px; padding: 0 12px;
|
|
139
|
+
border-radius: 9px;
|
|
140
|
+
border: 1px solid var(--line);
|
|
141
|
+
/* 稍微压实一点:底下的节点标签不许透过按钮显形(否则顶栏读起来很脏) */
|
|
142
|
+
background: rgba(16, 22, 34, 0.88);
|
|
143
|
+
backdrop-filter: blur(8px);
|
|
144
|
+
color: var(--text-dim);
|
|
145
|
+
font-size: 12px; cursor: pointer;
|
|
146
|
+
transition: 0.16s ease;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
}
|
|
149
|
+
.btn:hover { color: #eaf6ff; border-color: var(--line-strong); background: rgba(30, 42, 62, 0.85); }
|
|
150
|
+
.btn.on { color: #041018; background: linear-gradient(180deg, #9fe9ff, #62cdf0); border-color: transparent; font-weight: 600; }
|
|
151
|
+
.btn.ghost { background: rgba(16, 22, 34, 0.55); backdrop-filter: blur(8px); }
|
|
152
|
+
/* ghost 按钮被点亮时不能套用 .btn.on 的深色字(它的底色是玻璃,不是亮青) */
|
|
153
|
+
.btn.ghost.on { color: #9fe9ff; background: rgba(108, 200, 255, 0.16); border-color: rgba(108, 200, 255, 0.38); }
|
|
154
|
+
|
|
155
|
+
/* ============ 搜索 ============ */
|
|
156
|
+
#searchwrap {
|
|
157
|
+
position: absolute; top: 58px; left: 18px;
|
|
158
|
+
width: 320px;
|
|
159
|
+
display: flex; flex-direction: column; gap: 8px;
|
|
160
|
+
z-index: 30;
|
|
161
|
+
}
|
|
162
|
+
.searchbox {
|
|
163
|
+
display: flex; align-items: center; gap: 8px;
|
|
164
|
+
height: 38px; padding: 0 12px;
|
|
165
|
+
border-radius: 11px;
|
|
166
|
+
background: rgba(8, 12, 20, 0.86);
|
|
167
|
+
border: 1px solid var(--line);
|
|
168
|
+
box-shadow: var(--shadow);
|
|
169
|
+
backdrop-filter: blur(14px);
|
|
170
|
+
}
|
|
171
|
+
.searchbox:focus-within { border-color: rgba(108, 224, 255, 0.45); box-shadow: 0 0 0 3px rgba(108, 224, 255, 0.08), var(--shadow); }
|
|
172
|
+
.searchbox svg { flex: none; opacity: 0.55; }
|
|
173
|
+
#q {
|
|
174
|
+
flex: 1; min-width: 0; height: 100%;
|
|
175
|
+
background: none; border: none; outline: none;
|
|
176
|
+
color: var(--text); font-size: 13px; font-family: inherit;
|
|
177
|
+
}
|
|
178
|
+
#q::placeholder { color: var(--text-faint); }
|
|
179
|
+
.kbd {
|
|
180
|
+
font-family: var(--mono); font-size: 10px; color: var(--text-faint);
|
|
181
|
+
border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
#hits {
|
|
185
|
+
max-height: min(46vh, 420px); overflow: auto;
|
|
186
|
+
border-radius: 11px;
|
|
187
|
+
background: rgba(8, 12, 20, 0.94);
|
|
188
|
+
border: 1px solid var(--line);
|
|
189
|
+
box-shadow: var(--shadow);
|
|
190
|
+
backdrop-filter: blur(14px);
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
#hits.show { display: block; }
|
|
194
|
+
|
|
195
|
+
/* 有来源读不动:常驻一条细带,不挡图,但不会自己消失 */
|
|
196
|
+
#readerr {
|
|
197
|
+
position: fixed; left: 50%; top: 74px; transform: translateX(-50%);
|
|
198
|
+
z-index: 45; max-width: min(92vw, 760px);
|
|
199
|
+
display: flex; align-items: center; gap: 9px;
|
|
200
|
+
padding: 7px 12px 7px 10px; border-radius: 10px;
|
|
201
|
+
background: rgba(46, 18, 22, 0.94);
|
|
202
|
+
border: 1px solid rgba(255, 150, 150, 0.38);
|
|
203
|
+
box-shadow: var(--shadow);
|
|
204
|
+
color: #ffd9d9; font-size: 12px; line-height: 1.45;
|
|
205
|
+
backdrop-filter: blur(12px);
|
|
206
|
+
}
|
|
207
|
+
#readerr[hidden] { display: none; }
|
|
208
|
+
#readerr .re-icon {
|
|
209
|
+
flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
|
|
210
|
+
display: grid; place-items: center;
|
|
211
|
+
background: rgba(255, 140, 140, 0.22); border: 1px solid rgba(255, 160, 160, 0.55);
|
|
212
|
+
font-size: 11px; font-weight: 700; color: #ffc7c7;
|
|
213
|
+
}
|
|
214
|
+
#readerr .re-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
215
|
+
#readerr .re-go { flex: 0 0 auto; }
|
|
216
|
+
|
|
217
|
+
/* 命中列表的抬头:搜了什么、扫了多少、给了几条 */
|
|
218
|
+
.hit-head {
|
|
219
|
+
display: flex; align-items: baseline; gap: 10px;
|
|
220
|
+
padding: 8px 12px 7px; border-bottom: 1px solid rgba(120, 150, 190, 0.1);
|
|
221
|
+
position: sticky; top: 0; z-index: 1;
|
|
222
|
+
background: rgba(8, 12, 20, 0.97);
|
|
223
|
+
backdrop-filter: blur(8px);
|
|
224
|
+
}
|
|
225
|
+
.hit-head .hh-q { font-size: 11.5px; color: #cfe4f5; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
226
|
+
.hit-head .hh-m { margin-left: auto; flex: none; font-size: 10px; color: var(--text-faint); font-family: var(--mono); }
|
|
227
|
+
.hit-unknown { padding: 0 12px 7px; font-size: 10.5px; color: #c9a978; }
|
|
228
|
+
.hit-empty { padding: 12px 12px 14px; }
|
|
229
|
+
.hit-empty .t { font-size: 12.5px; color: #dceaf8; }
|
|
230
|
+
.hit-empty .m { font-size: 10.5px; color: var(--text-faint); margin-top: 4px; line-height: 1.5; }
|
|
231
|
+
.hit .hm { color: #9fe9ff; background: rgba(108, 200, 255, 0.12); border-radius: 3px; padding: 0 1px; font-weight: 600; }
|
|
232
|
+
|
|
233
|
+
.hit {
|
|
234
|
+
padding: 9px 12px; cursor: pointer; border-bottom: 1px solid rgba(120, 150, 190, 0.07);
|
|
235
|
+
display: flex; gap: 9px; align-items: flex-start;
|
|
236
|
+
}
|
|
237
|
+
.hit:last-child { border-bottom: none; }
|
|
238
|
+
.hit:hover, .hit.active { background: rgba(70, 130, 190, 0.14); }
|
|
239
|
+
.hit .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: none; }
|
|
240
|
+
.hit .body { min-width: 0; }
|
|
241
|
+
.hit .t { font-size: 12.5px; color: #dceaf8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
242
|
+
.hit .m { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; font-family: var(--mono); }
|
|
243
|
+
.hit .why { font-size: 10.5px; color: #7fb9d8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
244
|
+
|
|
245
|
+
/* ============ 左列(来源 + 筛选) ============ */
|
|
246
|
+
#leftcol {
|
|
247
|
+
position: absolute; left: 18px; top: 108px; bottom: 18px;
|
|
248
|
+
width: 266px; display: flex; flex-direction: column; gap: 10px;
|
|
249
|
+
overflow: hidden; pointer-events: none;
|
|
250
|
+
}
|
|
251
|
+
#leftcol > * { pointer-events: auto; }
|
|
252
|
+
#leftcol > .hud { position: static; }
|
|
253
|
+
#filters {
|
|
254
|
+
position: static;
|
|
255
|
+
width: 100%; flex: 1 1 auto; min-height: 0;
|
|
256
|
+
overflow: auto; padding: 14px;
|
|
257
|
+
border-radius: var(--radius);
|
|
258
|
+
background: var(--panel);
|
|
259
|
+
border: 1px solid var(--line);
|
|
260
|
+
box-shadow: var(--shadow);
|
|
261
|
+
backdrop-filter: blur(16px);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* 记忆来源(谁在写记忆) */
|
|
265
|
+
#sources {
|
|
266
|
+
flex: none; padding: 11px 13px;
|
|
267
|
+
border-radius: var(--radius);
|
|
268
|
+
background: var(--panel);
|
|
269
|
+
border: 1px solid var(--line);
|
|
270
|
+
box-shadow: var(--shadow);
|
|
271
|
+
backdrop-filter: blur(16px);
|
|
272
|
+
max-height: 34%;
|
|
273
|
+
overflow: auto;
|
|
274
|
+
}
|
|
275
|
+
#sources .f-title {
|
|
276
|
+
font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
|
|
277
|
+
color: var(--text-faint); margin-bottom: 8px;
|
|
278
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
279
|
+
}
|
|
280
|
+
#sources .src {
|
|
281
|
+
display: flex; align-items: baseline; gap: 6px;
|
|
282
|
+
font-size: 11px; color: var(--text-dim); padding: 2px 0;
|
|
283
|
+
}
|
|
284
|
+
#sources .src b { color: var(--text); font-weight: 500; }
|
|
285
|
+
#sources .src .n { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); }
|
|
286
|
+
#sources .src.on { color: #d6f6ff; }
|
|
287
|
+
/* 读不动的来源:红字标出来,悬停看原文错误。安静地显示 0 条最容易被误会成「记忆没了」。 */
|
|
288
|
+
#sources .src-bad { color: #ff9f9f; }
|
|
289
|
+
#sources .src-bad .n { color: #ffb4b4; }
|
|
290
|
+
#sources .dim { font-size: 10.5px; color: var(--text-faint); line-height: 1.5; margin-top: 6px; }
|
|
291
|
+
/* 屏蔽表:点一行展开,逐条「恢复」 */
|
|
292
|
+
#sources .src-click { cursor: pointer; }
|
|
293
|
+
#sources .src-click:hover { color: var(--accent); }
|
|
294
|
+
#sources .mutes { margin: 4px 0 6px; display: flex; flex-direction: column; gap: 3px; }
|
|
295
|
+
#sources .mute {
|
|
296
|
+
display: flex; align-items: center; gap: 6px;
|
|
297
|
+
font-size: 10px; color: var(--text-faint); line-height: 1.35;
|
|
298
|
+
padding: 3px 5px; border-radius: 6px; background: rgba(255,255,255,0.03);
|
|
299
|
+
}
|
|
300
|
+
#sources .mute .mt { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
301
|
+
button.mini {
|
|
302
|
+
border: none; background: rgba(255,255,255,0.06); color: var(--text-dim);
|
|
303
|
+
border-radius: 5px; font-size: 10px; padding: 1px 6px; cursor: pointer; flex: none;
|
|
304
|
+
}
|
|
305
|
+
button.mini:hover { background: rgba(255,255,255,0.14); color: var(--text); }
|
|
306
|
+
button.kill { font-size: 12px; line-height: 1; padding: 0 5px; opacity: 0; transition: opacity .12s; }
|
|
307
|
+
.nbr:hover button.kill { opacity: 1; }
|
|
308
|
+
button.kill:hover { background: rgba(255,120,120,0.22); color: #ffb3b3; }
|
|
309
|
+
@media (max-width: 900px) { #sources { display: none; } }
|
|
310
|
+
/* 记忆体检:每组一行小标题 + 可点的条目 */
|
|
311
|
+
#sources .hy { margin: 2px 0 6px; }
|
|
312
|
+
#sources .hy-t {
|
|
313
|
+
font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em;
|
|
314
|
+
padding: 2px 5px; border-left: 2px solid rgba(140, 224, 255, 0.35);
|
|
315
|
+
}
|
|
316
|
+
#sources .hy-i {
|
|
317
|
+
font-size: 10px; color: var(--text-faint); line-height: 1.4;
|
|
318
|
+
padding: 2px 5px 2px 10px; border-radius: 5px; cursor: pointer;
|
|
319
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
320
|
+
}
|
|
321
|
+
#sources .hy-i:hover { background: rgba(140, 224, 255, 0.09); color: var(--text); }
|
|
322
|
+
#sources .hy-more { font-size: 9.5px; color: rgba(140, 160, 180, 0.55); padding: 1px 5px 3px 10px; }
|
|
323
|
+
.sect { margin-bottom: 12px; }
|
|
324
|
+
.sect:last-child { margin-bottom: 0; }
|
|
325
|
+
.sect h4 {
|
|
326
|
+
margin: 0 0 6px; font-size: 10px; font-weight: 600;
|
|
327
|
+
letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
|
|
328
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
329
|
+
}
|
|
330
|
+
.sect h4 button {
|
|
331
|
+
border: none; background: none; color: var(--text-faint); cursor: pointer;
|
|
332
|
+
font-size: 10px; padding: 0; letter-spacing: 0.06em;
|
|
333
|
+
}
|
|
334
|
+
.sect h4 button:hover { color: var(--accent); }
|
|
335
|
+
|
|
336
|
+
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
337
|
+
.chip {
|
|
338
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
339
|
+
height: 22px; padding: 0 8px;
|
|
340
|
+
border-radius: 7px; font-size: 11px;
|
|
341
|
+
background: rgba(255, 255, 255, 0.03);
|
|
342
|
+
border: 1px solid rgba(150, 180, 220, 0.12);
|
|
343
|
+
color: var(--text-dim); cursor: pointer; user-select: none;
|
|
344
|
+
transition: 0.14s ease;
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
}
|
|
347
|
+
.chip:hover { border-color: var(--line-strong); color: var(--text); }
|
|
348
|
+
.chip.on { background: rgba(108, 224, 255, 0.13); border-color: rgba(108, 224, 255, 0.4); color: #d6f6ff; }
|
|
349
|
+
.chip .n { font-family: var(--mono); font-size: 9.5px; opacity: 0.6; }
|
|
350
|
+
.chip .sw { width: 7px; height: 7px; border-radius: 50%; }
|
|
351
|
+
|
|
352
|
+
.slider { display: flex; align-items: center; gap: 8px; }
|
|
353
|
+
input[type='range'] {
|
|
354
|
+
-webkit-appearance: none; appearance: none;
|
|
355
|
+
flex: 1; height: 3px; border-radius: 2px; outline: none;
|
|
356
|
+
background: rgba(140, 170, 210, 0.22);
|
|
357
|
+
}
|
|
358
|
+
input[type='range']::-webkit-slider-thumb {
|
|
359
|
+
-webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
|
|
360
|
+
background: #9fe6ff; cursor: pointer; box-shadow: 0 0 8px rgba(108, 224, 255, 0.8);
|
|
361
|
+
}
|
|
362
|
+
.slider .k { font-size: 10px; color: var(--text-dim); min-width: 52px; flex: 0 0 auto; }
|
|
363
|
+
.slider .val { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); min-width: 30px; text-align: right; }
|
|
364
|
+
|
|
365
|
+
/* ============ 右侧详情 ============ */
|
|
366
|
+
#detail {
|
|
367
|
+
position: absolute; top: 58px; right: 18px; bottom: 18px;
|
|
368
|
+
width: 372px;
|
|
369
|
+
display: flex; flex-direction: column;
|
|
370
|
+
border-radius: var(--radius);
|
|
371
|
+
background: var(--panel);
|
|
372
|
+
border: 1px solid var(--line);
|
|
373
|
+
box-shadow: var(--shadow);
|
|
374
|
+
backdrop-filter: blur(18px);
|
|
375
|
+
transform: translateX(calc(100% + 24px));
|
|
376
|
+
transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
|
|
377
|
+
overflow: hidden;
|
|
378
|
+
}
|
|
379
|
+
#detail.show { transform: none; }
|
|
380
|
+
|
|
381
|
+
.d-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
|
|
382
|
+
.d-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
|
|
383
|
+
.tag {
|
|
384
|
+
font-size: 10px; padding: 2px 7px; border-radius: 5px;
|
|
385
|
+
font-family: var(--mono); letter-spacing: 0.04em;
|
|
386
|
+
background: rgba(255, 255, 255, 0.05); color: var(--text-dim);
|
|
387
|
+
border: 1px solid rgba(160, 190, 230, 0.12);
|
|
388
|
+
}
|
|
389
|
+
.d-title { font-size: 15px; line-height: 1.45; font-weight: 600; color: #eef7ff; word-break: break-word; }
|
|
390
|
+
.d-imps { display: flex; gap: 3px; margin-top: 8px; }
|
|
391
|
+
.d-imps i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
|
|
392
|
+
.d-imps i.on { background: linear-gradient(90deg, #ffcf7a, #ff9e6b); box-shadow: 0 0 6px rgba(255, 180, 110, 0.5); }
|
|
393
|
+
|
|
394
|
+
.d-body { flex: 1; overflow: auto; padding: 14px 16px 20px; }
|
|
395
|
+
.d-content {
|
|
396
|
+
font-size: 12.5px; line-height: 1.72; color: #c3d3e6; white-space: pre-wrap; word-break: break-word;
|
|
397
|
+
}
|
|
398
|
+
.d-content mark { background: rgba(108, 224, 255, 0.18); color: #d6f6ff; border-radius: 3px; padding: 0 2px; }
|
|
399
|
+
.d-kw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
|
|
400
|
+
.d-kw span {
|
|
401
|
+
font-size: 10.5px; padding: 2px 7px; border-radius: 5px; font-family: var(--mono);
|
|
402
|
+
background: rgba(108, 224, 255, 0.07); color: #8fd3ea; border: 1px solid rgba(108, 224, 255, 0.14);
|
|
403
|
+
}
|
|
404
|
+
.d-sect-title {
|
|
405
|
+
margin: 20px 0 9px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
|
|
406
|
+
color: var(--text-faint); display: flex; justify-content: space-between;
|
|
407
|
+
}
|
|
408
|
+
/* 出处:写下这条记忆时主人说的那句话 */
|
|
409
|
+
.d-origin {
|
|
410
|
+
position: relative; margin: 0 0 4px; padding: 10px 12px 10px 14px;
|
|
411
|
+
font-size: 12px; line-height: 1.7; color: #cfe0f2; white-space: pre-wrap; word-break: break-word;
|
|
412
|
+
background: linear-gradient(180deg, rgba(255, 216, 138, 0.07), rgba(255, 216, 138, 0.03));
|
|
413
|
+
border-left: 2px solid rgba(255, 216, 138, 0.55); border-radius: 0 8px 8px 0;
|
|
414
|
+
}
|
|
415
|
+
.d-origin-meta {
|
|
416
|
+
margin-top: 8px; font-size: 10px; font-family: var(--mono);
|
|
417
|
+
color: rgba(255, 216, 138, 0.62); letter-spacing: 0.04em;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* 体检结论:贴在正文上方的一条窄条,避免和出处那块抢注意力 */
|
|
421
|
+
.d-hygiene {
|
|
422
|
+
margin: 2px 0 10px; padding: 7px 10px;
|
|
423
|
+
border-radius: 8px; background: rgba(140, 224, 255, 0.06);
|
|
424
|
+
border: 1px solid rgba(140, 224, 255, 0.14);
|
|
425
|
+
}
|
|
426
|
+
.d-hy-line {
|
|
427
|
+
font-size: 11px; line-height: 1.6; color: rgba(180, 214, 240, 0.86);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.nbr {
|
|
431
|
+
display: flex; gap: 9px; padding: 8px; border-radius: 9px; cursor: pointer;
|
|
432
|
+
border: 1px solid transparent; transition: 0.14s ease;
|
|
433
|
+
}
|
|
434
|
+
.nbr:hover { background: rgba(70, 130, 190, 0.1); border-color: rgba(120, 160, 210, 0.16); }
|
|
435
|
+
.nbr .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; }
|
|
436
|
+
.nbr .nb { min-width: 0; flex: 1; }
|
|
437
|
+
.nbr .nt { font-size: 12px; color: #d7e6f6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
438
|
+
.nbr .nw { font-size: 10.5px; color: #7fa8c4; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
439
|
+
.nbr .bar { height: 2px; border-radius: 2px; margin-top: 5px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
|
|
440
|
+
.nbr .bar i { display: block; height: 100%; border-radius: 2px; }
|
|
441
|
+
|
|
442
|
+
.acts { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
|
|
443
|
+
|
|
444
|
+
/* ============ 底部图例 ============ */
|
|
445
|
+
#legend {
|
|
446
|
+
position: absolute; right: 18px; bottom: 18px;
|
|
447
|
+
display: flex; gap: 14px; align-items: center;
|
|
448
|
+
padding: 9px 14px; border-radius: 11px;
|
|
449
|
+
background: rgba(8, 12, 20, 0.7);
|
|
450
|
+
border: 1px solid var(--line);
|
|
451
|
+
backdrop-filter: blur(12px);
|
|
452
|
+
font-size: 10.5px; color: var(--text-faint);
|
|
453
|
+
transition: opacity 0.3s;
|
|
454
|
+
}
|
|
455
|
+
#legend .lg { display: flex; align-items: center; gap: 5px; }
|
|
456
|
+
#legend .lg i { width: 14px; height: 2px; border-radius: 2px; }
|
|
457
|
+
/* 详情面板打开时,图例让位 */
|
|
458
|
+
body.has-detail #legend { opacity: 0; pointer-events: none; }
|
|
459
|
+
|
|
460
|
+
/* ============ 证据链面板(Shift + 点两下节点) ============ */
|
|
461
|
+
#pathbar {
|
|
462
|
+
position: absolute; left: 50%; transform: translateX(-50%); bottom: 62px;
|
|
463
|
+
width: min(680px, calc(100vw - 800px)); min-width: 360px;
|
|
464
|
+
padding: 11px 14px 12px; border-radius: 12px; z-index: 41;
|
|
465
|
+
background: rgba(10, 14, 22, 0.94);
|
|
466
|
+
border: 1px solid rgba(255, 216, 138, 0.28);
|
|
467
|
+
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
468
|
+
backdrop-filter: blur(14px);
|
|
469
|
+
}
|
|
470
|
+
#pathbar[hidden] { display: none; }
|
|
471
|
+
#pathbar .pb-head {
|
|
472
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
473
|
+
font-size: 10px; letter-spacing: 0.12em; color: rgba(255, 216, 138, 0.9);
|
|
474
|
+
text-transform: uppercase; margin-bottom: 8px;
|
|
475
|
+
}
|
|
476
|
+
#pb-close {
|
|
477
|
+
background: none; border: 0; color: var(--text-faint); font-size: 16px; cursor: pointer;
|
|
478
|
+
line-height: 1; padding: 0 2px;
|
|
479
|
+
}
|
|
480
|
+
#pb-close:hover { color: #ffd88a; }
|
|
481
|
+
#pb-body { display: flex; flex-direction: column; gap: 6px; max-height: 30vh; overflow: auto; }
|
|
482
|
+
.pb-step {
|
|
483
|
+
display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start;
|
|
484
|
+
font-size: 11.5px; color: #c6d6e6; line-height: 1.45;
|
|
485
|
+
}
|
|
486
|
+
.pb-n {
|
|
487
|
+
font-family: var(--mono); font-size: 10px; color: #1a1206; background: rgba(255, 216, 138, 0.85);
|
|
488
|
+
border-radius: 3px; text-align: center; line-height: 15px; height: 15px; margin-top: 1px;
|
|
489
|
+
}
|
|
490
|
+
.pb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
491
|
+
.pb-edge {
|
|
492
|
+
font-size: 10.5px; color: rgba(255, 216, 138, 0.7); font-family: var(--mono);
|
|
493
|
+
padding-left: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
494
|
+
}
|
|
495
|
+
.pb-empty { font-size: 12px; color: #ffb08a; }
|
|
496
|
+
|
|
497
|
+
/* ============ 状态条 / 提示 ============ */
|
|
498
|
+
#toast {
|
|
499
|
+
position: absolute; left: 50%; bottom: 34px; transform: translate(-50%, 12px); padding: 9px 16px; border-radius: 10px;
|
|
500
|
+
background: rgba(10, 16, 26, 0.94);
|
|
501
|
+
border: 1px solid var(--line-strong);
|
|
502
|
+
box-shadow: var(--shadow);
|
|
503
|
+
font-size: 12px; color: #d8e8f8; opacity: 0;
|
|
504
|
+
pointer-events: none; transition: 0.28s ease; z-index: 40;
|
|
505
|
+
}
|
|
506
|
+
#toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
507
|
+
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 10px; }
|
|
508
|
+
#toast .t-act {
|
|
509
|
+
flex: 0 0 auto; padding: 3px 9px; border-radius: 7px; cursor: pointer;
|
|
510
|
+
background: rgba(108, 200, 255, 0.14); border: 1px solid rgba(108, 200, 255, 0.34);
|
|
511
|
+
color: #bfe6ff; font-size: 11.5px; font-family: inherit; transition: 0.16s ease;
|
|
512
|
+
}
|
|
513
|
+
#toast .t-act:hover { background: rgba(108, 200, 255, 0.24); border-color: rgba(108, 200, 255, 0.6); }
|
|
514
|
+
#toast .t-act:disabled { opacity: 0.5; cursor: default; }
|
|
515
|
+
|
|
516
|
+
#hint {
|
|
517
|
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
|
518
|
+
text-align: center; color: var(--text-faint); font-size: 13px; letter-spacing: 0.05em;
|
|
519
|
+
display: none;
|
|
520
|
+
}
|
|
521
|
+
#hint.show { display: block; }
|
|
522
|
+
#hint b { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 8px; font-weight: 500; }
|
|
523
|
+
|
|
524
|
+
/* 加载骨架 */
|
|
525
|
+
#boot {
|
|
526
|
+
position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
|
|
527
|
+
display: flex; flex-direction: column; align-items: center; gap: 16px;
|
|
528
|
+
color: var(--text-dim); font-size: 12px; letter-spacing: 0.14em;
|
|
529
|
+
z-index: 6; pointer-events: none;
|
|
530
|
+
/* 星云长到一半时中心是亮的,浅灰字会糊掉,所以给一块深色底 */
|
|
531
|
+
padding: 18px 26px; border-radius: 14px;
|
|
532
|
+
background: rgba(4, 7, 13, 0.66);
|
|
533
|
+
border: 1px solid rgba(120, 170, 220, 0.12);
|
|
534
|
+
backdrop-filter: blur(6px);
|
|
535
|
+
}
|
|
536
|
+
/* 失败态要能点:平时 #boot 不吃鼠标(点亮时别挡住画布),出错时再把事件收回来 */
|
|
537
|
+
#boot.err { pointer-events: auto; padding: 22px 28px 18px; max-width: min(560px, 78vw); text-align: center; gap: 12px; }
|
|
538
|
+
#boot.err .bt { font-size: 13px; color: #ffb08a; letter-spacing: 0.06em; }
|
|
539
|
+
#boot.err .bs { font-size: 11.5px; line-height: 1.7; color: var(--text-dim); letter-spacing: 0.02em; }
|
|
540
|
+
#boot.err .bs b { color: #cfe6f5; font-weight: 500; }
|
|
541
|
+
#boot.err .brow { display: flex; gap: 10px; justify-content: center; margin-top: 2px; flex-wrap: wrap; }
|
|
542
|
+
#boot .bretry, #boot .bdiag {
|
|
543
|
+
font: inherit; font-size: 11.5px; letter-spacing: 0.08em; cursor: pointer;
|
|
544
|
+
padding: 7px 16px; border-radius: 9px; color: var(--text);
|
|
545
|
+
background: rgba(24, 40, 60, 0.9); border: 1px solid rgba(120, 200, 230, 0.28);
|
|
546
|
+
transition: background 0.18s ease, border-color 0.18s ease;
|
|
547
|
+
}
|
|
548
|
+
#boot .bretry:hover, #boot .bdiag:hover { background: rgba(38, 64, 92, 0.95); border-color: rgba(140, 220, 250, 0.45); }
|
|
549
|
+
#boot .bretry:disabled { opacity: 0.55; cursor: default; }
|
|
550
|
+
#boot details { margin-top: 2px; font-size: 10.5px; color: var(--text-dim); letter-spacing: 0; text-align: left; max-width: 100%; }
|
|
551
|
+
#boot details summary { cursor: pointer; opacity: 0.65; list-style: none; text-align: center; }
|
|
552
|
+
#boot details summary::-webkit-details-marker { display: none; }
|
|
553
|
+
#boot details pre {
|
|
554
|
+
margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; max-height: 140px; overflow: auto;
|
|
555
|
+
background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(120, 170, 220, 0.12);
|
|
556
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5;
|
|
557
|
+
white-space: pre-wrap; word-break: break-all; color: #9fb4c6;
|
|
558
|
+
}
|
|
559
|
+
.orbs { display: flex; gap: 9px; }
|
|
560
|
+
.orbs i {
|
|
561
|
+
width: 9px; height: 9px; border-radius: 50%; background: #7fd8f5;
|
|
562
|
+
box-shadow: 0 0 12px rgba(108, 224, 255, 0.9);
|
|
563
|
+
animation: pulse 1.25s ease-in-out infinite;
|
|
564
|
+
}
|
|
565
|
+
.orbs i:nth-child(2) { animation-delay: 0.16s; background: #b48cff; box-shadow: 0 0 12px rgba(180, 140, 255, 0.9); }
|
|
566
|
+
.orbs i:nth-child(3) { animation-delay: 0.32s; background: #ffcf7a; box-shadow: 0 0 12px rgba(255, 207, 122, 0.9); }
|
|
567
|
+
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }
|
|
568
|
+
|
|
569
|
+
/* 区块加载进度(星云在「长」的时候显示) */
|
|
570
|
+
.boot-line { letter-spacing: 0.2em; }
|
|
571
|
+
.boot-bar {
|
|
572
|
+
width: 210px; height: 2px; border-radius: 2px; overflow: hidden;
|
|
573
|
+
background: rgba(120, 170, 220, 0.14);
|
|
574
|
+
}
|
|
575
|
+
.boot-bar i {
|
|
576
|
+
display: block; height: 100%; width: 0%;
|
|
577
|
+
background: linear-gradient(90deg, #6cd6ff, #b48cff 60%, #ffcf7a);
|
|
578
|
+
box-shadow: 0 0 10px rgba(120, 200, 255, 0.55);
|
|
579
|
+
transition: width 120ms linear;
|
|
580
|
+
}
|
|
581
|
+
.boot-num { font-size: 11px; color: rgba(150, 180, 210, 0.62); letter-spacing: 0.1em; }
|
|
582
|
+
|
|
583
|
+
/* 滚动条 */
|
|
584
|
+
::-webkit-scrollbar { width: 7px; height: 7px; }
|
|
585
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
586
|
+
::-webkit-scrollbar-thumb { background: rgba(140, 170, 210, 0.26); border-radius: 4px; }
|
|
587
|
+
::-webkit-scrollbar-thumb:hover { background: rgba(140, 170, 210, 0.42); }
|
|
588
|
+
|
|
589
|
+
/* 窄屏收敛 */
|
|
590
|
+
@media (max-width: 1180px) {
|
|
591
|
+
#filters { width: 210px; }
|
|
592
|
+
#detail { width: 330px; }
|
|
593
|
+
#searchwrap { width: 270px; }
|
|
594
|
+
}
|
|
595
|
+
/* 只在窄屏出现的按钮(默认收起)。必须写在下面的 @media 之前,
|
|
596
|
+
否则同优先级的 display:none 会盖掉媒体查询里的值。 */
|
|
597
|
+
.only-narrow { display: none; }
|
|
598
|
+
|
|
599
|
+
@media (max-width: 900px) {
|
|
600
|
+
/* 窄屏默认收起左列,但不能没有入口:顶栏「筛选」把它抽屉式叫回来 */
|
|
601
|
+
#leftcol { display: none; }
|
|
602
|
+
#leftcol.open {
|
|
603
|
+
display: flex; left: 12px; top: 96px; bottom: 12px; width: 246px;
|
|
604
|
+
z-index: 32; padding-right: 2px;
|
|
605
|
+
}
|
|
606
|
+
#leftcol.open > * { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
|
|
607
|
+
#detail { width: 300px; }
|
|
608
|
+
.only-narrow { display: inline-flex; }
|
|
609
|
+
/* 880 这类宽度下顶栏最容易挤坏:品牌只留主名,统计收窄间距,按钮压短 */
|
|
610
|
+
#topbar { gap: 10px; padding: 12px 12px; }
|
|
611
|
+
.brand small { display: none; }
|
|
612
|
+
.stat-row { gap: 10px; margin-left: 0; }
|
|
613
|
+
.stat b { font-size: 12.5px; }
|
|
614
|
+
.stat span { font-size: 9px; letter-spacing: 0.02em; }
|
|
615
|
+
/* 只看前三项(记忆 / 连接 / 工作区);后面两项在窄屏会把标签挤成一团 */
|
|
616
|
+
.stat:nth-child(n+4) { display: none; }
|
|
617
|
+
.btn { padding: 0 10px; }
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/* 悬停提示 */
|
|
621
|
+
#tip {
|
|
622
|
+
position: fixed; z-index: 40; max-width: 300px; pointer-events: none;
|
|
623
|
+
padding: 9px 12px; border-radius: 10px; opacity: 0; transform: translateY(3px);
|
|
624
|
+
transition: opacity 0.12s ease, transform 0.12s ease;
|
|
625
|
+
background: rgba(10, 16, 28, 0.94); border: 1px solid rgba(120, 170, 220, 0.24);
|
|
626
|
+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
|
|
627
|
+
}
|
|
628
|
+
#tip.show { opacity: 1; transform: translateY(0); }
|
|
629
|
+
#tip .tip-title { font-size: 12.5px; color: #eaf4ff; line-height: 1.45; margin-bottom: 3px; }
|
|
630
|
+
#tip .tip-meta { font-size: 10.5px; color: rgba(150, 180, 210, 0.85); letter-spacing: 0.02em; }
|
|
631
|
+
|
|
632
|
+
/* 快捷键说明浮层(按 ? 开合) */
|
|
633
|
+
#keys {
|
|
634
|
+
position: absolute;
|
|
635
|
+
left: 50%;
|
|
636
|
+
top: 50%;
|
|
637
|
+
transform: translate(-50%, -50%);
|
|
638
|
+
z-index: 40;
|
|
639
|
+
min-width: 340px;
|
|
640
|
+
padding: 16px 18px 14px;
|
|
641
|
+
border-radius: 12px;
|
|
642
|
+
background: rgba(8, 12, 20, 0.96);
|
|
643
|
+
border: 1px solid rgba(120, 150, 190, 0.28);
|
|
644
|
+
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62);
|
|
645
|
+
backdrop-filter: blur(6px);
|
|
646
|
+
cursor: pointer;
|
|
647
|
+
}
|
|
648
|
+
#keys .keys-t {
|
|
649
|
+
font-size: 12px;
|
|
650
|
+
letter-spacing: 0.16em;
|
|
651
|
+
text-transform: uppercase;
|
|
652
|
+
color: rgba(150, 180, 215, 0.85);
|
|
653
|
+
margin-bottom: 10px;
|
|
654
|
+
}
|
|
655
|
+
#keys .keys-row {
|
|
656
|
+
display: flex;
|
|
657
|
+
gap: 14px;
|
|
658
|
+
align-items: baseline;
|
|
659
|
+
padding: 4px 0;
|
|
660
|
+
font-size: 12.5px;
|
|
661
|
+
}
|
|
662
|
+
#keys .keys-k {
|
|
663
|
+
flex: none;
|
|
664
|
+
min-width: 118px;
|
|
665
|
+
color: #ffd88a;
|
|
666
|
+
font-family: ui-monospace, Menlo, Consolas, monospace;
|
|
667
|
+
font-size: 11.5px;
|
|
668
|
+
}
|
|
669
|
+
#keys .keys-v {
|
|
670
|
+
color: rgba(210, 224, 240, 0.86);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/* 项目卡片:每个工作区一张「交接卡」 */
|
|
674
|
+
#boards, #cmdk, #linebar {
|
|
675
|
+
position: absolute;
|
|
676
|
+
z-index: 44;
|
|
677
|
+
border-radius: 14px;
|
|
678
|
+
background: rgba(6, 10, 17, 0.97);
|
|
679
|
+
border: 1px solid rgba(120, 150, 190, 0.3);
|
|
680
|
+
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
|
|
681
|
+
backdrop-filter: blur(8px);
|
|
682
|
+
color: rgba(214, 228, 244, 0.94);
|
|
683
|
+
display: flex;
|
|
684
|
+
flex-direction: column;
|
|
685
|
+
}
|
|
686
|
+
#boards[hidden], #cmdk[hidden], #linebar[hidden] { display: none; }
|
|
687
|
+
|
|
688
|
+
#boards {
|
|
689
|
+
left: 50%;
|
|
690
|
+
top: 50%;
|
|
691
|
+
transform: translate(-50%, -50%);
|
|
692
|
+
width: min(860px, calc(100vw - 160px));
|
|
693
|
+
max-height: min(72vh, 700px);
|
|
694
|
+
}
|
|
695
|
+
#boards .cards-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px; border-bottom: 1px solid rgba(120, 150, 190, 0.18); }
|
|
696
|
+
#boards .cards-head > span { font-size: 12px; letter-spacing: 0.14em; color: rgba(180, 205, 232, 0.9); }
|
|
697
|
+
#boards #boards-close { margin-left: auto; background: none; border: 0; color: rgba(150, 180, 210, 0.7); font-size: 18px; cursor: pointer; line-height: 1; }
|
|
698
|
+
#boards #boards-close:hover { color: #ffd88a; }
|
|
699
|
+
.board-tabs { display: flex; gap: 6px; }
|
|
700
|
+
.board-tabs .btab {
|
|
701
|
+
background: rgba(120, 160, 210, 0.09);
|
|
702
|
+
border: 1px solid rgba(120, 160, 210, 0.22);
|
|
703
|
+
color: rgba(178, 202, 228, 0.82);
|
|
704
|
+
font-size: 11px;
|
|
705
|
+
padding: 3px 10px;
|
|
706
|
+
border-radius: 999px;
|
|
707
|
+
cursor: pointer;
|
|
708
|
+
}
|
|
709
|
+
.board-tabs .btab.on { background: rgba(255, 216, 138, 0.16); border-color: rgba(255, 216, 138, 0.5); color: #ffe6b0; }
|
|
710
|
+
#boards-body { overflow: auto; padding: 12px 14px 14px; font-size: 12px; line-height: 1.75; }
|
|
711
|
+
#boards-body .bd-sec { font-size: 10.5px; letter-spacing: 0.1em; color: rgba(140, 172, 205, 0.72); margin: 10px 0 4px; }
|
|
712
|
+
#boards-body .bd-row { display: flex; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; border-left: 2px solid transparent; }
|
|
713
|
+
#boards-body .bd-row:hover { background: rgba(120, 170, 220, 0.09); border-left-color: rgba(255, 216, 138, 0.7); }
|
|
714
|
+
#boards-body .bd-row b { color: rgba(255, 216, 138, 0.88); font-weight: 500; }
|
|
715
|
+
#boards-body .bd-dim { color: rgba(145, 168, 196, 0.7); font-size: 11px; }
|
|
716
|
+
#boards-body .bd-act { margin-left: auto; font-size: 11px; color: rgba(150, 200, 240, 0.85); }
|
|
717
|
+
|
|
718
|
+
#cmdk {
|
|
719
|
+
left: 50%;
|
|
720
|
+
top: 14vh;
|
|
721
|
+
transform: translateX(-50%);
|
|
722
|
+
width: min(660px, calc(100vw - 200px));
|
|
723
|
+
}
|
|
724
|
+
#cmdk-input {
|
|
725
|
+
border: 0;
|
|
726
|
+
border-bottom: 1px solid rgba(120, 150, 190, 0.22);
|
|
727
|
+
background: none;
|
|
728
|
+
color: #e8f1fb;
|
|
729
|
+
font-size: 14px;
|
|
730
|
+
padding: 13px 16px;
|
|
731
|
+
outline: none;
|
|
732
|
+
}
|
|
733
|
+
#cmdk-list { max-height: min(52vh, 460px); overflow: auto; padding: 6px; }
|
|
734
|
+
.cmd {
|
|
735
|
+
display: flex;
|
|
736
|
+
align-items: baseline;
|
|
737
|
+
gap: 8px;
|
|
738
|
+
padding: 7px 10px;
|
|
739
|
+
border-radius: 8px;
|
|
740
|
+
cursor: pointer;
|
|
741
|
+
font-size: 12.5px;
|
|
742
|
+
}
|
|
743
|
+
.cmd.on { background: rgba(255, 216, 138, 0.14); }
|
|
744
|
+
.cmd .cm-k { font-size: 10.5px; letter-spacing: 0.08em; color: rgba(150, 180, 210, 0.75); flex: none; width: 42px; }
|
|
745
|
+
.cmd .cm-t { color: rgba(220, 233, 246, 0.95); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
746
|
+
.cmd .cm-w { margin-left: auto; font-size: 10.5px; color: rgba(140, 168, 198, 0.7); flex: none; }
|
|
747
|
+
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid rgba(120, 150, 190, 0.16); font-size: 10.5px; color: rgba(140, 168, 198, 0.68); }
|
|
748
|
+
|
|
749
|
+
#linebar {
|
|
750
|
+
right: 22px;
|
|
751
|
+
bottom: 22px;
|
|
752
|
+
width: min(560px, calc(100vw - 620px));
|
|
753
|
+
max-height: min(64vh, 620px);
|
|
754
|
+
}
|
|
755
|
+
#linebar .pb-head { margin: 0; padding: 11px 14px; border-bottom: 1px solid rgba(120, 150, 190, 0.18); }
|
|
756
|
+
#lb-body { overflow: auto; padding: 10px 14px 14px; font-size: 12px; }
|
|
757
|
+
#lb-body .tl { display: flex; gap: 10px; padding: 5px 4px; cursor: pointer; border-radius: 6px; }
|
|
758
|
+
#lb-body .tl:hover { background: rgba(120, 170, 220, 0.09); }
|
|
759
|
+
#lb-body .tl .t { flex: none; width: 74px; font-size: 10.5px; color: rgba(150, 176, 206, 0.8); font-family: ui-monospace, Menlo, Consolas, monospace; }
|
|
760
|
+
#lb-body .tl .d { flex: 1; color: rgba(216, 231, 246, 0.92); }
|
|
761
|
+
#lb-body .tl .s { flex: none; font-size: 10.5px; color: rgba(255, 216, 138, 0.8); }
|
|
762
|
+
#lb-body .tl.break { margin-top: 8px; border-top: 1px dashed rgba(120, 150, 190, 0.18); padding-top: 9px; }
|
|
763
|
+
#lb-body .tl-day {
|
|
764
|
+
font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
|
|
765
|
+
color: rgba(140, 168, 198, 0.6); margin: 8px 0 2px; padding: 0 4px;
|
|
766
|
+
}
|
|
767
|
+
#lb-body .tl-day:first-child { margin-top: 0; }
|
|
768
|
+
#lb-body .tl.here { background: rgba(108, 200, 255, 0.1); box-shadow: inset 2px 0 0 rgba(108, 200, 255, 0.55); }
|
|
769
|
+
#lb-body .tl.here .d { color: #dff2ff; }
|
|
770
|
+
#lb-body .tl.here .s { color: #9fe9ff; }
|
|
771
|
+
|
|
772
|
+
#cards {
|
|
773
|
+
position: absolute;
|
|
774
|
+
left: 50%;
|
|
775
|
+
top: 50%;
|
|
776
|
+
transform: translate(-50%, -50%);
|
|
777
|
+
z-index: 42;
|
|
778
|
+
width: min(1120px, calc(100vw - 120px));
|
|
779
|
+
max-height: min(78vh, 820px);
|
|
780
|
+
display: flex;
|
|
781
|
+
flex-direction: column;
|
|
782
|
+
padding: 14px 16px 12px;
|
|
783
|
+
border-radius: 14px;
|
|
784
|
+
background: rgba(6, 10, 17, 0.97);
|
|
785
|
+
border: 1px solid rgba(120, 150, 190, 0.3);
|
|
786
|
+
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
|
|
787
|
+
backdrop-filter: blur(8px);
|
|
788
|
+
}
|
|
789
|
+
#cards[hidden] { display: none; }
|
|
790
|
+
#cards .cards-head {
|
|
791
|
+
display: flex;
|
|
792
|
+
align-items: baseline;
|
|
793
|
+
gap: 10px;
|
|
794
|
+
padding-bottom: 10px;
|
|
795
|
+
border-bottom: 1px solid rgba(120, 150, 190, 0.16);
|
|
796
|
+
}
|
|
797
|
+
#cards .cards-head > span {
|
|
798
|
+
font-size: 13px;
|
|
799
|
+
letter-spacing: 0.14em;
|
|
800
|
+
color: #cfe6ff;
|
|
801
|
+
}
|
|
802
|
+
#cards .cards-head small { color: rgba(150, 180, 210, 0.7); font-size: 11px; }
|
|
803
|
+
#cards #cards-close {
|
|
804
|
+
margin-left: auto;
|
|
805
|
+
background: none;
|
|
806
|
+
border: none;
|
|
807
|
+
color: rgba(160, 190, 220, 0.7);
|
|
808
|
+
font-size: 18px;
|
|
809
|
+
line-height: 1;
|
|
810
|
+
cursor: pointer;
|
|
811
|
+
}
|
|
812
|
+
#cards #cards-close:hover { color: #ffd88a; }
|
|
813
|
+
#cards-grid {
|
|
814
|
+
display: grid;
|
|
815
|
+
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
|
816
|
+
gap: 12px;
|
|
817
|
+
padding: 12px 2px 4px;
|
|
818
|
+
overflow: auto;
|
|
819
|
+
}
|
|
820
|
+
.pcard {
|
|
821
|
+
border: 1px solid rgba(120, 150, 190, 0.2);
|
|
822
|
+
border-radius: 11px;
|
|
823
|
+
background: linear-gradient(180deg, rgba(18, 26, 40, 0.9), rgba(10, 15, 24, 0.9));
|
|
824
|
+
padding: 12px 13px 11px;
|
|
825
|
+
display: flex;
|
|
826
|
+
flex-direction: column;
|
|
827
|
+
gap: 8px;
|
|
828
|
+
}
|
|
829
|
+
.pcard:hover { border-color: rgba(150, 200, 240, 0.42); }
|
|
830
|
+
.pcard .pc-head { display: flex; align-items: baseline; gap: 8px; }
|
|
831
|
+
.pcard .pc-title {
|
|
832
|
+
font-size: 13.5px;
|
|
833
|
+
color: #eaf4ff;
|
|
834
|
+
cursor: pointer;
|
|
835
|
+
border-bottom: 1px dotted transparent;
|
|
836
|
+
}
|
|
837
|
+
.pcard .pc-title:hover { border-bottom-color: rgba(255, 216, 138, 0.7); color: #ffd88a; }
|
|
838
|
+
.pcard .pc-n { margin-left: auto; font-size: 11px; color: rgba(150, 180, 210, 0.8); font-family: ui-monospace, Menlo, Consolas, monospace; }
|
|
839
|
+
.pcard .pc-meta { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
840
|
+
.pcard .pc-tag {
|
|
841
|
+
font-size: 10.5px;
|
|
842
|
+
padding: 1px 6px;
|
|
843
|
+
border-radius: 999px;
|
|
844
|
+
border: 1px solid rgba(120, 150, 190, 0.26);
|
|
845
|
+
color: rgba(190, 212, 238, 0.9);
|
|
846
|
+
}
|
|
847
|
+
.pcard .pc-sec { font-size: 10.5px; letter-spacing: 0.1em; color: rgba(140, 172, 205, 0.72); margin-top: 2px; }
|
|
848
|
+
.pcard .pc-row {
|
|
849
|
+
font-size: 11.5px;
|
|
850
|
+
color: rgba(214, 228, 244, 0.9);
|
|
851
|
+
line-height: 1.5;
|
|
852
|
+
cursor: pointer;
|
|
853
|
+
padding: 2px 0 2px 9px;
|
|
854
|
+
border-left: 2px solid rgba(120, 150, 190, 0.24);
|
|
855
|
+
}
|
|
856
|
+
.pcard .pc-row:hover { color: #ffe6b0; border-left-color: rgba(255, 216, 138, 0.75); }
|
|
857
|
+
.pcard .pc-row b { color: rgba(255, 216, 138, 0.9); font-weight: 500; }
|
|
858
|
+
.pcard .pc-empty { font-size: 11px; color: rgba(140, 165, 195, 0.6); }
|
|
859
|
+
.pcard .pc-health { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10.5px; }
|
|
860
|
+
.pcard .pc-health i {
|
|
861
|
+
font-style: normal;
|
|
862
|
+
padding: 1px 6px;
|
|
863
|
+
border-radius: 999px;
|
|
864
|
+
background: rgba(255, 176, 120, 0.12);
|
|
865
|
+
border: 1px solid rgba(255, 176, 120, 0.3);
|
|
866
|
+
color: #ffc79a;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* 回全视图按钮 + 筛选代价提示 */
|
|
870
|
+
#filters .reset-bar { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 2px; }
|
|
871
|
+
/* 面板内容比屏幕高时(窄屏 / 类型多),「回全视图」要一直够得着:
|
|
872
|
+
滚过工作区后把它吸在顶部,背景压住下面滑过去的 chips。 */
|
|
873
|
+
#filters { scroll-padding-top: 72px; }
|
|
874
|
+
#filters .reset-bar {
|
|
875
|
+
position: sticky; top: -14px; z-index: 3;
|
|
876
|
+
margin: 0 -14px 4px; padding: 10px 14px 8px;
|
|
877
|
+
background: linear-gradient(180deg, rgba(9, 15, 26, 0.97) 70%, rgba(9, 15, 26, 0.82));
|
|
878
|
+
backdrop-filter: blur(6px);
|
|
879
|
+
}
|
|
880
|
+
#filters .chip.reset {
|
|
881
|
+
width: 100%;
|
|
882
|
+
justify-content: center;
|
|
883
|
+
background: rgba(255, 216, 138, 0.12);
|
|
884
|
+
border-color: rgba(255, 216, 138, 0.38);
|
|
885
|
+
color: #ffe6b0;
|
|
886
|
+
font-size: 11.5px;
|
|
887
|
+
padding: 5px 8px;
|
|
888
|
+
}
|
|
889
|
+
#filters .chip.reset:hover { background: rgba(255, 216, 138, 0.2); }
|
|
890
|
+
#filters .filter-hint { font-size: 10.5px; line-height: 1.5; color: rgba(150, 176, 206, 0.75); }
|
|
891
|
+
#filters .filter-hint.warn { color: rgba(255, 196, 120, 0.92); }
|
|
892
|
+
|
|
893
|
+
/* ============ 导出菜单 ============ */
|
|
894
|
+
.menu-wrap { position: relative; }
|
|
895
|
+
.menu {
|
|
896
|
+
position: absolute; top: calc(100% + 6px); right: 0;
|
|
897
|
+
min-width: 178px; padding: 5px;
|
|
898
|
+
display: flex; flex-direction: column; gap: 2px;
|
|
899
|
+
background: var(--panel);
|
|
900
|
+
border: 1px solid var(--line);
|
|
901
|
+
border-radius: 10px;
|
|
902
|
+
box-shadow: var(--shadow);
|
|
903
|
+
backdrop-filter: blur(14px);
|
|
904
|
+
z-index: 60;
|
|
905
|
+
}
|
|
906
|
+
.menu[hidden] { display: none; }
|
|
907
|
+
.menu-item {
|
|
908
|
+
text-align: left;
|
|
909
|
+
padding: 7px 10px;
|
|
910
|
+
border: 0; border-radius: 7px;
|
|
911
|
+
background: transparent;
|
|
912
|
+
color: var(--text-dim);
|
|
913
|
+
font-size: 12px; cursor: pointer;
|
|
914
|
+
transition: 0.14s ease;
|
|
915
|
+
}
|
|
916
|
+
.menu-item:hover { background: rgba(108, 224, 255, 0.1); color: #d6f6ff; }
|
|
917
|
+
.menu-check {
|
|
918
|
+
display: flex; align-items: center; gap: 7px;
|
|
919
|
+
margin-top: 3px; padding: 7px 10px 5px;
|
|
920
|
+
border-top: 1px solid var(--line);
|
|
921
|
+
color: var(--text-dim); font-size: 11.5px; cursor: pointer;
|
|
922
|
+
user-select: none;
|
|
923
|
+
}
|
|
924
|
+
.menu-check input { accent-color: #6ce0ff; margin: 0; }
|
|
925
|
+
.menu-check:hover { color: #d6f6ff; }
|
|
926
|
+
|
|
927
|
+
/* ============ 可折叠分组(左栏) ============ */
|
|
928
|
+
.sect > h4 { position: relative; }
|
|
929
|
+
.fold {
|
|
930
|
+
margin-left: auto;
|
|
931
|
+
width: 18px; height: 18px;
|
|
932
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
933
|
+
border: 0; border-radius: 5px;
|
|
934
|
+
background: transparent;
|
|
935
|
+
color: var(--text-faint);
|
|
936
|
+
cursor: pointer;
|
|
937
|
+
transition: 0.18s ease;
|
|
938
|
+
}
|
|
939
|
+
.fold:hover { color: var(--text); background: rgba(140, 170, 210, 0.1); }
|
|
940
|
+
.fold svg { transition: transform 0.22s ease; }
|
|
941
|
+
.sect.folded .fold svg,
|
|
942
|
+
#sources.folded .fold svg { transform: rotate(-90deg); }
|
|
943
|
+
.sect.folded > .chips,
|
|
944
|
+
.sect.folded > .slider,
|
|
945
|
+
.sect.folded > .filter-hint { display: none; }
|
|
946
|
+
.h4-r { display: flex; align-items: center; gap: 6px; }
|
|
947
|
+
#sources.folded > #src-list { display: none; }
|
|
948
|
+
|
|
949
|
+
/* ============ 时间回放(螺旋视图专用) ============ */
|
|
950
|
+
#timebar {
|
|
951
|
+
position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
|
|
952
|
+
width: min(660px, 56vw);
|
|
953
|
+
display: flex; align-items: center; gap: 12px;
|
|
954
|
+
padding: 9px 16px;
|
|
955
|
+
border-radius: 13px;
|
|
956
|
+
border: 1px solid var(--line);
|
|
957
|
+
background: var(--panel);
|
|
958
|
+
backdrop-filter: blur(14px);
|
|
959
|
+
z-index: 26;
|
|
960
|
+
}
|
|
961
|
+
#timebar[hidden] { display: none; }
|
|
962
|
+
#timebar .tb-label {
|
|
963
|
+
font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
|
|
964
|
+
color: var(--text-faint); white-space: nowrap;
|
|
965
|
+
}
|
|
966
|
+
#timebar .tb-val {
|
|
967
|
+
font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
|
|
968
|
+
min-width: 96px; text-align: right; white-space: nowrap;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/* 详情头部的「复制 id / 会话」:小、可点、不抢标题 */
|
|
972
|
+
.tag-btn {
|
|
973
|
+
cursor: pointer; font: inherit; font-size: 10px;
|
|
974
|
+
color: var(--text-faint); background: rgba(255, 255, 255, 0.03);
|
|
975
|
+
border: 1px solid rgba(160, 190, 230, 0.18);
|
|
976
|
+
transition: 0.15s ease;
|
|
977
|
+
}
|
|
978
|
+
.tag-btn:hover { color: var(--accent); border-color: var(--accent); }
|
|
979
|
+
|
|
980
|
+
/* 窄屏左列已收起,主线不必再为它让出 620px。
|
|
981
|
+
必须写在基础 #linebar 之后:同优先级下后声明的才生效。 */
|
|
982
|
+
@media (max-width: 900px) {
|
|
983
|
+
#linebar { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: 58vh; }
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* 接口断开时的细提示条:不挡画面,恢复后自己消失 */
|
|
987
|
+
#netbar {
|
|
988
|
+
position: absolute; top: 62px; left: 50%; transform: translateX(-50%);
|
|
989
|
+
z-index: 45; pointer-events: none;
|
|
990
|
+
padding: 5px 12px; border-radius: 999px;
|
|
991
|
+
font-size: 10.5px; letter-spacing: 0.06em;
|
|
992
|
+
color: #ffd89a; background: rgba(28, 20, 8, 0.86);
|
|
993
|
+
border: 1px solid rgba(255, 200, 120, 0.34);
|
|
994
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
995
|
+
backdrop-filter: blur(8px);
|
|
996
|
+
}
|
|
997
|
+
#netbar[hidden] { display: none; }
|
|
998
|
+
#netbar::before {
|
|
999
|
+
content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
|
|
1000
|
+
border-radius: 50%; background: #ffbc5c; vertical-align: 1px;
|
|
1001
|
+
animation: netpulse 1.6s ease-in-out infinite;
|
|
1002
|
+
}
|
|
1003
|
+
@keyframes netpulse { 0%, 100% { opacity: 0.35 } 50% { opacity: 1 } }
|
|
1004
|
+
|
|
1005
|
+
/* 版本漂移:宿主里还是旧代码时,把「为什么少了功能」说清楚,并给出两条出路 */
|
|
1006
|
+
#skewbar {
|
|
1007
|
+
position: absolute; top: 62px; left: 50%; transform: translateX(-50%);
|
|
1008
|
+
z-index: 46; display: flex; align-items: flex-start; gap: 10px;
|
|
1009
|
+
max-width: min(780px, calc(100vw - 28px));
|
|
1010
|
+
padding: 10px 12px 10px 14px; border-radius: 12px;
|
|
1011
|
+
font-size: 11.5px; line-height: 1.65; color: #ffd89a;
|
|
1012
|
+
background: rgba(30, 19, 6, 0.94);
|
|
1013
|
+
border: 1px solid rgba(255, 184, 92, 0.38);
|
|
1014
|
+
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
|
|
1015
|
+
backdrop-filter: blur(10px);
|
|
1016
|
+
}
|
|
1017
|
+
#skewbar[hidden] { display: none; }
|
|
1018
|
+
#skewbar b { color: #ffe6bd; font-weight: 600; }
|
|
1019
|
+
#skewbar code {
|
|
1020
|
+
font-family: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
|
|
1021
|
+
font-size: 10.5px; padding: 1px 5px; border-radius: 4px;
|
|
1022
|
+
background: rgba(255, 255, 255, 0.08); color: #ffe0ae;
|
|
1023
|
+
white-space: nowrap;
|
|
1024
|
+
}
|
|
1025
|
+
#skew-text { flex: 1; min-width: 0; }
|
|
1026
|
+
#skew-close {
|
|
1027
|
+
flex: none; width: 22px; height: 22px; margin-top: -1px;
|
|
1028
|
+
border: 0; border-radius: 6px; cursor: pointer;
|
|
1029
|
+
background: transparent; color: #c9a97a; font-size: 16px; line-height: 1;
|
|
1030
|
+
}
|
|
1031
|
+
#skew-close:hover { background: rgba(255, 255, 255, 0.09); color: #ffe6bd; }
|
|
1032
|
+
@media (max-width: 760px) {
|
|
1033
|
+
#skewbar { top: 96px; font-size: 11px; padding: 9px 10px 9px 12px; }
|
|
1034
|
+
#skewbar code { white-space: normal; word-break: break-all; }
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/* 示例 / 快照横幅:安静的青色,不抢画布,但一眼能看出「这不是你自己的库」 */
|
|
1038
|
+
#demobar {
|
|
1039
|
+
position: absolute; top: 62px; left: 50%; transform: translateX(-50%);
|
|
1040
|
+
z-index: 45; display: flex; align-items: center; gap: 12px;
|
|
1041
|
+
max-width: min(720px, calc(100vw - 28px));
|
|
1042
|
+
padding: 7px 10px 7px 14px; border-radius: 999px;
|
|
1043
|
+
font-size: 11.5px; letter-spacing: 0.03em; color: #a9e7ff;
|
|
1044
|
+
background: rgba(6, 22, 32, 0.92);
|
|
1045
|
+
border: 1px solid rgba(108, 224, 255, 0.34);
|
|
1046
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
|
|
1047
|
+
backdrop-filter: blur(10px);
|
|
1048
|
+
}
|
|
1049
|
+
#demobar[hidden] { display: none; }
|
|
1050
|
+
#demo-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1051
|
+
#demo-text b { color: #d9f6ff; font-weight: 600; }
|
|
1052
|
+
#demo-exit {
|
|
1053
|
+
flex: none; border: 1px solid rgba(108, 224, 255, 0.3); border-radius: 999px;
|
|
1054
|
+
padding: 4px 11px; cursor: pointer;
|
|
1055
|
+
background: rgba(108, 224, 255, 0.1); color: #cdefff; font-size: 11px; line-height: 1.3;
|
|
1056
|
+
}
|
|
1057
|
+
#demo-exit:hover { background: rgba(108, 224, 255, 0.2); border-color: rgba(108, 224, 255, 0.55); }
|
|
1058
|
+
#demo-exit[hidden] { display: none; }
|
|
1059
|
+
/* 820–1180 之间顶栏只有一行,但搜索框仍在顶部:模式条必须让到它下面 */
|
|
1060
|
+
@media (max-width: 1180px) {
|
|
1061
|
+
#demobar { top: 100px; }
|
|
1062
|
+
}
|
|
1063
|
+
@media (max-width: 760px) {
|
|
1064
|
+
#demobar { top: 142px; font-size: 11px; }
|
|
1065
|
+
#demo-text { white-space: normal; }
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/* 空库引导:不是一句「这里还没有星星」,而是三条能走的路 */
|
|
1069
|
+
#hint.empty { display: block; width: min(430px, calc(100vw - 44px)); }
|
|
1070
|
+
#hint .hcard {
|
|
1071
|
+
text-align: left; padding: 22px 24px 18px;
|
|
1072
|
+
border-radius: 16px; background: rgba(6, 10, 18, 0.82);
|
|
1073
|
+
border: 1px solid rgba(120, 170, 220, 0.16);
|
|
1074
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
|
|
1075
|
+
backdrop-filter: blur(8px);
|
|
1076
|
+
}
|
|
1077
|
+
#hint .hcard b { margin-bottom: 4px; font-size: 15px; }
|
|
1078
|
+
#hint .hcard .hsub { color: var(--text-faint); font-size: 11.5px; letter-spacing: 0.02em; margin-bottom: 14px; }
|
|
1079
|
+
#hint .hopt { display: flex; gap: 10px; padding: 8px 0; font-size: 12px; line-height: 1.65; color: var(--text-dim); }
|
|
1080
|
+
#hint .hopt .hn { flex: none; width: 18px; color: #6ce0ff; font-variant-numeric: tabular-nums; }
|
|
1081
|
+
#hint .hact, .hit-empty .hact { display: flex; gap: 8px; margin-top: 14px; }
|
|
1082
|
+
.hit-empty .hact { margin-top: 9px; flex-wrap: wrap; }
|
|
1083
|
+
#hint .hbtn, .hit-empty .hbtn {
|
|
1084
|
+
border: 1px solid rgba(108, 224, 255, 0.34); border-radius: 8px;
|
|
1085
|
+
padding: 7px 14px; cursor: pointer; font-size: 12px;
|
|
1086
|
+
background: rgba(108, 224, 255, 0.1); color: #cdefff;
|
|
1087
|
+
}
|
|
1088
|
+
#hint .hbtn:hover, .hit-empty .hbtn:hover { background: rgba(108, 224, 255, 0.2); }
|
|
1089
|
+
#hint .hbtn.ghost, .hit-empty .hbtn.ghost { background: transparent; border-color: rgba(120, 170, 220, 0.22); color: var(--text-dim); }
|
|
1090
|
+
#hint .hbtn.ghost:hover, .hit-empty .hbtn.ghost:hover { border-color: rgba(120, 170, 220, 0.42); color: var(--text); }
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
/* 重建中:图标原地转,按钮同时是 disabled(点不动) */
|
|
1094
|
+
.btn.busy { opacity: .72; }
|
|
1095
|
+
.btn.busy svg { animation: nbspin 1.1s linear infinite; }
|
|
1096
|
+
@keyframes nbspin { to { transform: rotate(360deg); } }
|
|
1097
|
+
@media (prefers-reduced-motion: reduce) { .btn.busy svg { animation: none; } }
|
|
1098
|
+
|
|
1099
|
+
/* 说明面板底部一行:版本与边界 */
|
|
1100
|
+
.keys-f { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(120,160,210,.16);
|
|
1101
|
+
font-size: 10px; letter-spacing: .04em; color: var(--dim, #6b7d93); }
|
|
1102
|
+
.keys-re, .keys-diag {
|
|
1103
|
+
margin-top: 12px; padding: 7px 12px;
|
|
1104
|
+
border: 1px solid rgba(108, 224, 255, 0.26); border-radius: 8px;
|
|
1105
|
+
background: rgba(108, 224, 255, 0.08); color: #bfeaff;
|
|
1106
|
+
font-size: 11.5px; cursor: pointer;
|
|
1107
|
+
}
|
|
1108
|
+
.keys-re:hover, .keys-diag:hover { background: rgba(108, 224, 255, 0.18); }
|
|
1109
|
+
.keys-diag { margin-left: 8px; color: #9fc7dd; }
|
|
1110
|
+
|
|
1111
|
+
/* ============ 新手三步 ============ */
|
|
1112
|
+
#onboard {
|
|
1113
|
+
position: fixed; left: 300px; bottom: 96px; width: 372px;
|
|
1114
|
+
z-index: 48; padding: 14px 16px 12px;
|
|
1115
|
+
background: rgba(6, 10, 18, 0.9);
|
|
1116
|
+
border: 1px solid rgba(108, 224, 255, 0.22);
|
|
1117
|
+
border-radius: 14px;
|
|
1118
|
+
box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
|
|
1119
|
+
backdrop-filter: blur(12px);
|
|
1120
|
+
animation: hud-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
1121
|
+
}
|
|
1122
|
+
.onboard .ob-head {
|
|
1123
|
+
display: flex; align-items: center; gap: 10px;
|
|
1124
|
+
padding-bottom: 8px; border-bottom: 1px solid rgba(120, 170, 220, 0.14);
|
|
1125
|
+
}
|
|
1126
|
+
.onboard .ob-head b { font-size: 13.5px; color: #e6f6ff; font-weight: 600; letter-spacing: .01em; }
|
|
1127
|
+
.onboard .ob-x {
|
|
1128
|
+
margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 6px;
|
|
1129
|
+
background: transparent; color: #7e94aa; font-size: 17px; line-height: 1; cursor: pointer;
|
|
1130
|
+
}
|
|
1131
|
+
.onboard .ob-x:hover { background: rgba(120, 170, 220, 0.12); color: #d9f2ff; }
|
|
1132
|
+
.onboard .ob-step {
|
|
1133
|
+
display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: start;
|
|
1134
|
+
padding: 10px 0; border-bottom: 1px solid rgba(120, 170, 220, 0.08);
|
|
1135
|
+
}
|
|
1136
|
+
.onboard .ob-step:last-of-type { border-bottom: 0; }
|
|
1137
|
+
.onboard .ob-n {
|
|
1138
|
+
width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
|
|
1139
|
+
display: grid; place-items: center;
|
|
1140
|
+
background: rgba(108, 224, 255, 0.14); color: #9fe4ff;
|
|
1141
|
+
font-size: 10.5px; font-variant-numeric: tabular-nums;
|
|
1142
|
+
}
|
|
1143
|
+
.onboard .ob-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
1144
|
+
.onboard .ob-copy b { font-size: 12px; color: #d8eefb; font-weight: 550; }
|
|
1145
|
+
.onboard .ob-copy span { font-size: 10.8px; line-height: 1.55; color: #7f94a9; }
|
|
1146
|
+
.onboard .ob-act {
|
|
1147
|
+
border: 1px solid rgba(108, 224, 255, 0.3); border-radius: 7px;
|
|
1148
|
+
padding: 5px 10px; background: rgba(108, 224, 255, 0.08);
|
|
1149
|
+
color: #bfeaff; font-size: 10.8px; cursor: pointer; white-space: nowrap;
|
|
1150
|
+
}
|
|
1151
|
+
.onboard .ob-act:hover { background: rgba(108, 224, 255, 0.18); }
|
|
1152
|
+
.onboard .ob-step.done .ob-n { background: rgba(120, 220, 170, 0.18); color: #9ff0c4; }
|
|
1153
|
+
.onboard .ob-step.done .ob-act { opacity: .55; }
|
|
1154
|
+
.onboard .ob-foot {
|
|
1155
|
+
display: flex; align-items: center; gap: 10px;
|
|
1156
|
+
margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(120, 170, 220, 0.14);
|
|
1157
|
+
}
|
|
1158
|
+
.onboard .ob-skip {
|
|
1159
|
+
border: 0; background: transparent; color: #8ba3b8; font-size: 11px;
|
|
1160
|
+
padding: 3px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
|
|
1161
|
+
}
|
|
1162
|
+
.onboard .ob-skip:hover { color: #cfe9f8; }
|
|
1163
|
+
.onboard .ob-foot span { margin-left: auto; color: #5f7488; font-size: 10px; }
|
|
1164
|
+
|
|
1165
|
+
@media (max-width: 900px) {
|
|
1166
|
+
#onboard { left: 12px; right: 12px; width: auto; bottom: 84px; }
|
|
1167
|
+
}
|
|
1168
|
+
@media (max-width: 760px) {
|
|
1169
|
+
#onboard { bottom: 76px; padding: 12px 12px 10px; }
|
|
1170
|
+
.onboard .ob-copy span { font-size: 10.4px; }
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/* 键盘可达:只在真的用键盘走位时亮一圈,不打扰鼠标用户 */
|
|
1174
|
+
:where(.btn, .chip, .btab, .menu-item, .tag-btn, .t-act, .bd-act, .fold, .hit, .pcard):focus-visible {
|
|
1175
|
+
outline: 1.5px solid rgba(108, 224, 255, .75);
|
|
1176
|
+
outline-offset: 2px;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/* ==========================================================================
|
|
1181
|
+
精修层 —— 不换风格,只把「贵」的细节补上:
|
|
1182
|
+
① 等宽数字,统计不抖;② 面板内高光与统一缓动;③ chip 选中发光;
|
|
1183
|
+
④ 滚动条收细;⑤ 首屏一次性入场;⑥ 无动效偏好时全部关掉。
|
|
1184
|
+
========================================================================== */
|
|
1185
|
+
|
|
1186
|
+
html, body {
|
|
1187
|
+
font-family: 'Inter', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
|
|
1188
|
+
font-feature-settings: 'ss01' 1, 'cv01' 1;
|
|
1189
|
+
text-rendering: optimizeLegibility;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.stat b, .chip .n, .slider .val, .hit .m, .src .n, .brand small, .kbd {
|
|
1193
|
+
font-variant-numeric: tabular-nums;
|
|
1194
|
+
font-feature-settings: 'tnum' 1;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/* 面板:一条极淡的内高光,让玻璃有厚度;hover 不改尺寸,只亮边 */
|
|
1198
|
+
#filters, #sources, #detail, #legend, #cards, #boards {
|
|
1199
|
+
box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
#filters, #sources {
|
|
1203
|
+
transition: border-color 0.22s ease, box-shadow 0.22s ease;
|
|
1204
|
+
}
|
|
1205
|
+
#filters:hover, #sources:hover {
|
|
1206
|
+
border-color: rgba(150, 190, 235, 0.22);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/* 顶栏统计:hover 时数字提亮,点上去有「这是活的」的感觉 */
|
|
1210
|
+
.stat { transition: transform 0.18s ease; }
|
|
1211
|
+
.stat:hover { transform: translateY(-1px); }
|
|
1212
|
+
.stat b { transition: color 0.18s ease, text-shadow 0.18s ease; }
|
|
1213
|
+
.stat:hover b { color: #fff; text-shadow: 0 0 14px rgba(108, 224, 255, 0.45); }
|
|
1214
|
+
|
|
1215
|
+
/* 按钮:统一缓动 + 按下回弹 + 键盘可达 */
|
|
1216
|
+
.btn {
|
|
1217
|
+
transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease,
|
|
1218
|
+
transform 0.12s ease, box-shadow 0.18s ease;
|
|
1219
|
+
}
|
|
1220
|
+
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32); }
|
|
1221
|
+
.btn:active { transform: translateY(0) scale(0.985); }
|
|
1222
|
+
.btn:focus-visible {
|
|
1223
|
+
outline: none;
|
|
1224
|
+
box-shadow: 0 0 0 2px rgba(108, 224, 255, 0.55), 0 0 18px rgba(108, 224, 255, 0.25);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/* 搜索框:聚焦时像被点亮,而不只是换个边框色 */
|
|
1228
|
+
.searchbox { transition: border-color 0.2s ease, box-shadow 0.24s ease; }
|
|
1229
|
+
.searchbox:focus-within {
|
|
1230
|
+
border-color: rgba(108, 224, 255, 0.55);
|
|
1231
|
+
box-shadow: 0 0 0 3px rgba(108, 224, 255, 0.1), 0 0 26px rgba(108, 224, 255, 0.16), var(--shadow);
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
/* chip:选中时内发光 + 权重变高;数量徽章对齐更稳 */
|
|
1235
|
+
.chip { transition: 0.14s ease, box-shadow 0.2s ease; }
|
|
1236
|
+
.chip:hover { transform: translateY(-1px); }
|
|
1237
|
+
.chip:active { transform: translateY(0) scale(0.98); }
|
|
1238
|
+
.chip.on {
|
|
1239
|
+
box-shadow: inset 0 0 0 1px rgba(108, 224, 255, 0.12), 0 0 14px rgba(108, 224, 255, 0.1);
|
|
1240
|
+
}
|
|
1241
|
+
.chip.on .n { opacity: 0.85; }
|
|
1242
|
+
.chip .sw { box-shadow: 0 0 6px currentColor; }
|
|
1243
|
+
|
|
1244
|
+
/* 滚动条:细到几乎看不见,hover 才显形 */
|
|
1245
|
+
#filters, #sources, #detail .d-body, #boards-body, #cards-grid, #hits, #cmdk-list {
|
|
1246
|
+
scrollbar-width: thin;
|
|
1247
|
+
scrollbar-color: rgba(140, 170, 210, 0.28) transparent;
|
|
1248
|
+
}
|
|
1249
|
+
#filters::-webkit-scrollbar, #sources::-webkit-scrollbar,
|
|
1250
|
+
#detail .d-body::-webkit-scrollbar, #boards-body::-webkit-scrollbar,
|
|
1251
|
+
#cards-grid::-webkit-scrollbar, #hits::-webkit-scrollbar, #cmdk-list::-webkit-scrollbar {
|
|
1252
|
+
width: 6px; height: 6px;
|
|
1253
|
+
}
|
|
1254
|
+
#filters::-webkit-scrollbar-thumb, #sources::-webkit-scrollbar-thumb,
|
|
1255
|
+
#detail .d-body::-webkit-scrollbar-thumb, #boards-body::-webkit-scrollbar-thumb,
|
|
1256
|
+
#cards-grid::-webkit-scrollbar-thumb, #hits::-webkit-scrollbar-thumb, #cmdk-list::-webkit-scrollbar-thumb {
|
|
1257
|
+
background: rgba(140, 170, 210, 0.24);
|
|
1258
|
+
border-radius: 99px;
|
|
1259
|
+
}
|
|
1260
|
+
#filters::-webkit-scrollbar-thumb:hover, #detail .d-body::-webkit-scrollbar-thumb:hover {
|
|
1261
|
+
background: rgba(160, 200, 240, 0.42);
|
|
1262
|
+
}
|
|
1263
|
+
#filters::-webkit-scrollbar-track, #detail .d-body::-webkit-scrollbar-track { background: transparent; }
|
|
1264
|
+
|
|
1265
|
+
/* 详情面板:顶部一条会呼吸的渐变线,把「这是当前焦点」说出来 */
|
|
1266
|
+
#detail::before {
|
|
1267
|
+
content: '';
|
|
1268
|
+
position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
|
|
1269
|
+
background: linear-gradient(90deg, transparent, rgba(108, 224, 255, 0.55), rgba(180, 140, 255, 0.35), transparent);
|
|
1270
|
+
opacity: 0.75;
|
|
1271
|
+
pointer-events: none;
|
|
1272
|
+
}
|
|
1273
|
+
#detail { position: absolute; }
|
|
1274
|
+
|
|
1275
|
+
/* 搜索命中 / 邻居行:hover 时左侧亮一条,扫读时眼睛有落点 */
|
|
1276
|
+
.hit, .nbr { position: relative; }
|
|
1277
|
+
.hit::before, .nbr::before {
|
|
1278
|
+
content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
|
|
1279
|
+
border-radius: 2px; background: linear-gradient(180deg, #6ce0ff, #b48cff);
|
|
1280
|
+
opacity: 0; transition: opacity 0.16s ease;
|
|
1281
|
+
}
|
|
1282
|
+
.hit:hover::before, .hit.active::before, .nbr:hover::before { opacity: 0.9; }
|
|
1283
|
+
|
|
1284
|
+
/* 图例:hover 提亮,帮助「这一色是什么」 */
|
|
1285
|
+
#legend > * { transition: color 0.16s ease, background 0.16s ease; }
|
|
1286
|
+
#legend > *:hover { background: rgba(108, 224, 255, 0.06); }
|
|
1287
|
+
|
|
1288
|
+
/* 首屏入场:只播一次,随后交给交互本身 */
|
|
1289
|
+
#topbar, #searchwrap { animation: hud-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
|
|
1290
|
+
#leftcol { animation: hud-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
|
|
1291
|
+
#legend { animation: hud-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
|
|
1292
|
+
|
|
1293
|
+
@keyframes hud-in {
|
|
1294
|
+
from { opacity: 0; transform: translateY(-6px); }
|
|
1295
|
+
to { opacity: 1; transform: translateY(0); }
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/* 焦点可见性:键盘用户才看得到描边,鼠标用户看不到 */
|
|
1299
|
+
button:focus-visible { outline: 2px solid rgba(108, 224, 255, 0.6); outline-offset: 2px; }
|
|
1300
|
+
|
|
1301
|
+
/* 可滚动的面板自己也能被 Tab 到(axe: scrollable-region-focusable),
|
|
1302
|
+
所以它们也需要一个「我在这」的描边——不然焦点跑进去人就找不到了。 */
|
|
1303
|
+
:where(#hits, #filters, #sources, #detail, #d-body, #pb-body, #boards-body, #cmdk-list, #lb-body, #cards-grid):focus-visible {
|
|
1304
|
+
outline: 2px solid rgba(108, 224, 255, 0.6);
|
|
1305
|
+
outline-offset: -2px;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/* 矮屏(≤820px 高):720p 的笔记本上左栏装不下四组筛选。
|
|
1309
|
+
先把间距和字号收一档、把「只读」那句说明收起来,四组就都看得见;
|
|
1310
|
+
再矮下去 #filters 自身有 overflow:auto,「重建筛选」那条是 sticky 的,滚得回来。 */
|
|
1311
|
+
@media (max-height: 920px) {
|
|
1312
|
+
#leftcol { top: 96px; bottom: 12px; gap: 8px; }
|
|
1313
|
+
#sources { padding: 9px 11px; max-height: none; }
|
|
1314
|
+
#src-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
|
|
1315
|
+
#src-list .dim { display: none; }
|
|
1316
|
+
.sect { margin-bottom: 9px; }
|
|
1317
|
+
.sect h4 { margin: 0 0 5px; font-size: 10px; }
|
|
1318
|
+
.chips { gap: 4px; }
|
|
1319
|
+
.chip { height: 21px; font-size: 11px; }
|
|
1320
|
+
.stat { padding: 0; }
|
|
1321
|
+
.searchbox { height: 34px; }
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1325
|
+
*, *::before, *::after {
|
|
1326
|
+
animation-duration: 0.001ms !important;
|
|
1327
|
+
animation-iteration-count: 1 !important;
|
|
1328
|
+
transition-duration: 0.001ms !important;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.seed-note { margin-top: 7px; font-size: 10.5px; line-height: 1.5; color: var(--text-faint); }
|
|
1333
|
+
|
|
1334
|
+
/* ============ English:更长的标签需要一点呼吸 ============ */
|
|
1335
|
+
html.lang-en #topbar { gap: 10px; padding-left: 12px; padding-right: 12px; }
|
|
1336
|
+
html.lang-en .brand b { font-size: 14px; letter-spacing: 0.1em; }
|
|
1337
|
+
html.lang-en .stat-row { gap: 11px; margin-left: 2px; }
|
|
1338
|
+
html.lang-en .stat span { font-size: 9px; letter-spacing: 0.02em; }
|
|
1339
|
+
html.lang-en #sources .src .n { font-size: 9px; }
|
|
1340
|
+
html.lang-en #keys { min-width: 560px; max-width: min(760px, 92vw); }
|
|
1341
|
+
html.lang-en #keys .keys-k { flex: 0 0 190px; min-width: 190px; }
|
|
1342
|
+
html.lang-en #keys .keys-v { font-size: 12px; }
|
|
1343
|
+
html.lang-en .brand small { display: none; }
|
|
1344
|
+
html.lang-en .stat { min-width: 64px; }
|
|
1345
|
+
html.lang-en .stat-row { gap: 12px; }
|
|
1346
|
+
|
|
1347
|
+
/* 分页条(1.9.0):分页的时候底部会浮出一条提示,说清楚「已经加载了多少、还剩多少」。
|
|
1348
|
+
贴在底部居中、比提示条淡一点,平时不抢注意力,只在还有下一页时出现。 */
|
|
1349
|
+
.pagebar {
|
|
1350
|
+
position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
|
|
1351
|
+
display: flex; align-items: center; gap: 12px;
|
|
1352
|
+
padding: 7px 10px 7px 14px; border-radius: 999px;
|
|
1353
|
+
background: rgba(10, 16, 26, 0.92);
|
|
1354
|
+
border: 1px solid var(--line-strong);
|
|
1355
|
+
box-shadow: var(--shadow);
|
|
1356
|
+
font-size: 12px; color: #cfe2f6; z-index: 39;
|
|
1357
|
+
}
|
|
1358
|
+
.pagebar[hidden] { display: none; }
|
|
1359
|
+
.pagebar .pbtxt { font-variant-numeric: tabular-nums; }
|
|
1360
|
+
.pagebar .pbbtn {
|
|
1361
|
+
padding: 4px 12px; border-radius: 999px; cursor: pointer;
|
|
1362
|
+
background: rgba(108, 200, 255, 0.14); border: 1px solid rgba(108, 200, 255, 0.34);
|
|
1363
|
+
color: #bfe6ff; font-size: 12px; font-family: inherit; transition: 0.16s ease;
|
|
1364
|
+
}
|
|
1365
|
+
.pagebar .pbbtn:hover:not(:disabled) { background: rgba(108, 200, 255, 0.26); border-color: rgba(108, 200, 255, 0.6); }
|
|
1366
|
+
/* 键盘用户 Tab 到这里要看得见:底色本来就是深色,用亮边框 + 偏移,不靠颜色单独传意 */
|
|
1367
|
+
.pagebar .pbbtn:focus-visible { outline: 2px solid #bfe6ff; outline-offset: 2px; }
|
|
1368
|
+
.pagebar .pbbtn:disabled { opacity: 0.55; cursor: default; }
|
|
1369
|
+
@media (max-width: 640px) {
|
|
1370
|
+
.pagebar { bottom: 8px; max-width: calc(100vw - 20px); font-size: 11.5px; }
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/* 快照校验结果:失败时要顶在画面上,不能只闪一条 toast —— 那是一份坏文件,
|
|
1374
|
+
用户很可能正在把它发给别人。 */
|
|
1375
|
+
#snapshot-integrity {
|
|
1376
|
+
position: fixed; left: 50%; top: 14px; transform: translateX(-50%);
|
|
1377
|
+
z-index: 70; max-width: min(92vw, 760px);
|
|
1378
|
+
padding: 9px 16px; border-radius: 10px;
|
|
1379
|
+
font-size: 12.5px; line-height: 1.5; text-align: center;
|
|
1380
|
+
background: rgba(46, 14, 18, 0.96);
|
|
1381
|
+
border: 1px solid rgba(255, 128, 128, 0.55);
|
|
1382
|
+
color: #ffd7d7;
|
|
1383
|
+
box-shadow: var(--shadow);
|
|
1384
|
+
word-break: break-word;
|
|
1385
|
+
}
|
|
1386
|
+
#snapshot-integrity.ok {
|
|
1387
|
+
background: rgba(10, 32, 24, 0.94);
|
|
1388
|
+
border-color: rgba(110, 220, 170, 0.45);
|
|
1389
|
+
color: #c8f2dd;
|
|
1390
|
+
}
|
|
1391
|
+
#snapshot-integrity[hidden] { display: none; }
|
|
1392
|
+
/* 1.11.34:库大到会影响手感时,来源面板上常驻一句实话(不是错误,是尺度的说明) */
|
|
1393
|
+
.src-note {
|
|
1394
|
+
margin-top: 8px;
|
|
1395
|
+
padding: 8px 10px;
|
|
1396
|
+
border-radius: 8px;
|
|
1397
|
+
background: rgba(214, 158, 46, 0.12);
|
|
1398
|
+
border: 1px solid rgba(214, 158, 46, 0.35);
|
|
1399
|
+
color: #f0d8a8;
|
|
1400
|
+
font-size: 12px;
|
|
1401
|
+
line-height: 1.5;
|
|
1402
|
+
}
|