feat: add HoloLake folder import and official assistant

This commit is contained in:
冰朔 2026-08-08 11:15:34 +08:00
commit a360982a9b
12 changed files with 507 additions and 76 deletions

View file

@ -4,22 +4,22 @@
*/
:root {
--kb-bg: #0d1117;
--kb-bg-secondary: #161b22;
--kb-bg-tertiary: #21262d;
--kb-border: #30363d;
--kb-text: #e6edf3;
--kb-text-muted: #8b949e;
--kb-accent: #58a6ff;
--kb-accent-hover: #79c0ff;
--kb-bg: #f7f8fb;
--kb-bg-secondary: #101723;
--kb-bg-tertiary: #1a2433;
--kb-border: #dfe3eb;
--kb-text: #202632;
--kb-text-muted: #71798a;
--kb-accent: #277d91;
--kb-accent-hover: #1f6b7d;
--kb-danger: #f85149;
--kb-success: #3fb950;
--kb-warning: #d29922;
--kb-font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
--kb-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
--kb-sidebar-width: 280px;
--kb-header-height: 52px;
--kb-radius: 6px;
--kb-sidebar-width: 286px;
--kb-header-height: 64px;
--kb-radius: 10px;
}
* {
@ -49,8 +49,8 @@ body {
height: var(--kb-header-height);
display: flex;
align-items: center;
padding: 0 16px;
border-bottom: 1px solid var(--kb-border);
padding: 0 18px 0 78px;
border-bottom: 1px solid #263143;
background: var(--kb-bg-secondary);
gap: 12px;
flex-shrink: 0;
@ -83,9 +83,11 @@ body {
}
.kb-title {
font-size: 16px;
font-weight: 600;
color: var(--kb-text);
font-size: 15px;
line-height: 1.1;
font-weight: 650;
letter-spacing: .02em;
color: #f4f7fb;
white-space: nowrap;
}
@ -99,7 +101,7 @@ body {
.kb-sidebar {
width: var(--kb-sidebar-width);
border-right: 1px solid var(--kb-border);
border-right: 1px solid #263143;
background: var(--kb-bg-secondary);
display: flex;
flex-direction: column;
@ -182,14 +184,15 @@ body {
flex: 1;
overflow-y: auto;
padding: 0;
background: radial-gradient(circle at 88% 6%, rgba(78, 178, 190, .08), transparent 28%), var(--kb-bg);
}
/* ─── 编辑器 ─── */
.kb-editor {
max-width: 900px;
max-width: 820px;
margin: 0 auto;
padding: 24px 32px;
padding: 72px 34px 120px;
}
.kb-editor-meta {
@ -197,15 +200,18 @@ body {
gap: 16px;
font-size: 12px;
color: var(--kb-text-muted);
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid var(--kb-border);
margin-bottom: 20px;
padding-bottom: 0;
border-bottom: none;
}
.kb-editor-title {
font-size: 28px;
font-weight: 700;
margin-bottom: 12px;
font-family: ui-serif, 'Songti SC', 'STSong', Georgia, serif;
font-size: clamp(36px, 4vw, 50px);
font-weight: 650;
letter-spacing: -.035em;
color: #18202d;
margin-bottom: 16px;
cursor: pointer;
line-height: 1.3;
}
@ -229,7 +235,7 @@ body {
.kb-editor-toolbar {
display: flex;
gap: 8px;
margin-bottom: 16px;
margin-bottom: 30px;
}
.kb-editor-edit-pane {
@ -270,13 +276,14 @@ body {
/* ─── Markdown 渲染 ─── */
.kb-markdown-render {
font-size: 15px;
line-height: 1.8;
font-family: ui-serif, 'Songti SC', 'STSong', Georgia, serif;
font-size: 17px;
line-height: 1.9;
color: var(--kb-text);
}
.kb-markdown-render h1 { font-size: 2em; margin: 1em 0 0.5em; border-bottom: 1px solid var(--kb-border); padding-bottom: 0.3em; }
.kb-markdown-render h2 { font-size: 1.5em; margin: 1em 0 0.5em; border-bottom: 1px solid var(--kb-border); padding-bottom: 0.3em; }
.kb-markdown-render h1 { font-size: 2em; margin: 1.4em 0 0.5em; border-bottom: none; padding-bottom: 0; color: #18202d; }
.kb-markdown-render h2 { font-size: 1.5em; margin: 1.4em 0 0.5em; border-bottom: none; padding-bottom: 0; color: #18202d; }
.kb-markdown-render h3 { font-size: 1.25em; margin: 1em 0 0.5em; }
.kb-markdown-render p { margin: 0.8em 0; }
.kb-markdown-render ul, .kb-markdown-render ol { margin: 0.8em 0; padding-left: 2em; }
@ -285,18 +292,19 @@ body {
border-left: 3px solid var(--kb-accent);
padding: 0.5em 1em;
margin: 1em 0;
background: var(--kb-bg-tertiary);
background: #eef5f6;
color: var(--kb-text-muted);
}
.kb-markdown-render code {
background: var(--kb-bg-tertiary);
background: #edf0f4;
padding: 2px 6px;
border-radius: 3px;
font-family: var(--kb-font-mono);
font-size: 0.9em;
}
.kb-markdown-render pre {
background: var(--kb-bg-tertiary);
background: #17202c;
color: #eef4f8;
padding: 16px;
border-radius: var(--kb-radius);
overflow-x: auto;
@ -752,6 +760,158 @@ body {
background: var(--kb-text-muted);
}
/* ─── HoloLake 0.5.1 知识空间外观 ─── */
.kb-brand-mark {
width: 27px;
height: 27px;
border: 1px solid rgba(140, 229, 235, .55);
border-radius: 50%;
position: relative;
box-shadow: inset 0 0 14px rgba(74, 192, 202, .15), 0 0 18px rgba(74, 192, 202, .12);
}
.kb-brand-mark::before,
.kb-brand-mark::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
border: 1px solid rgba(140, 229, 235, .42);
border-radius: 50%;
transform: translate(-50%, -50%) rotate(-20deg);
}
.kb-brand-mark::before { width: 34px; height: 11px; }
.kb-brand-mark::after { width: 5px; height: 5px; background: #a6f2ed; border: 0; }
.kb-subtitle {
margin-top: 3px;
color: #77869a;
font-size: 9px;
letter-spacing: .18em;
}
.kb-header .kb-btn-icon,
.kb-header .kb-btn-tab { color: #aab5c3; }
.kb-header .kb-btn-tab:hover { color: #f4f7fb; }
.kb-header .kb-btn-tab.active { color: #9ee5e4; }
.kb-search-input-wrap {
background: rgba(255,255,255,.055);
border-color: #303c4d;
border-radius: 9px;
}
.kb-search-input { color: #edf2f7; }
.kb-workspace-label,
.kb-tree-heading {
color: #647287;
font-size: 10px;
font-weight: 700;
letter-spacing: .14em;
text-transform: uppercase;
}
.kb-workspace-label { padding: 22px 18px 7px; }
.kb-tree-heading { padding: 16px 18px 4px; }
.kb-sidebar-actions { display: grid; gap: 8px; border-bottom: 0; padding: 8px 12px; }
.kb-btn-import,
.kb-btn-new {
width: 100%;
display: flex;
align-items: center;
gap: 9px;
border-radius: 8px;
padding: 9px 11px;
cursor: pointer;
font-size: 12px;
text-align: left;
}
.kb-btn-import {
border: 1px solid rgba(110, 209, 214, .34);
color: #dff7f5;
background: linear-gradient(135deg, rgba(30,127,139,.32), rgba(29,65,89,.28));
}
.kb-btn-import:hover { border-color: rgba(140, 229, 235, .7); background: rgba(34,132,143,.38); }
.kb-btn-new { border: 1px solid #2b3748; color: #aeb9c7; background: rgba(255,255,255,.025); }
.kb-btn-new:hover { color: #f1f5f8; background: rgba(255,255,255,.06); }
.kb-btn-import:disabled,
.kb-btn-new:disabled { opacity: .55; cursor: wait; }
.kb-btn-import-icon { font-size: 17px; line-height: 1; }
.kb-import-message {
margin: 2px 12px 5px;
padding: 8px 10px;
border-radius: 7px;
background: rgba(44, 143, 150, .12);
color: #8cced0;
font-size: 10px;
line-height: 1.5;
}
.kb-tree { color: #aeb8c7; padding: 2px 8px 16px; }
.kb-tree-item { margin: 1px 0; padding: 7px 9px; border-radius: 7px; }
.kb-tree-item:hover { background: rgba(255,255,255,.055); }
.kb-tree-item.active { background: rgba(53, 152, 164, .17); color: #b4eeee; }
.kb-tree-chevron { color: #637186; font-size: 17px; line-height: 12px; transform-origin: center; transition: transform .15s; }
.kb-tree-chevron.expanded { transform: rotate(90deg); }
.kb-tree-folder-icon { width: 13px; height: 9px; border: 1px solid #77869b; border-radius: 2px; position: relative; }
.kb-tree-folder-icon::before { content: ''; position: absolute; width: 6px; height: 3px; left: 0; top: -4px; border: 1px solid #77869b; border-bottom: 0; border-radius: 2px 2px 0 0; }
.kb-tree-doc-icon { width: 11px; height: 14px; border: 1px solid #77869b; border-radius: 2px; position: relative; }
.kb-tree-doc-icon::after { content: ''; position: absolute; width: 5px; height: 1px; left: 2px; top: 5px; background: #77869b; box-shadow: 0 3px 0 #77869b; }
.kb-page-symbol {
width: 45px;
height: 45px;
display: grid;
place-items: center;
margin-bottom: 28px;
border-radius: 12px;
color: #2b8997;
font-size: 23px;
background: linear-gradient(145deg, #e9f6f6, #f4f7fb);
box-shadow: inset 0 0 0 1px rgba(39,125,145,.12);
}
.kb-editor-author { display: none; }
.kb-editor-toolbar { opacity: .65; transition: opacity .15s; }
.kb-editor:hover .kb-editor-toolbar { opacity: 1; }
.kb-empty { padding: 36px; }
.kb-empty-card {
width: min(590px, 100%);
padding: 56px 62px;
border: 1px solid #e0e5ec;
border-radius: 24px;
background: rgba(255,255,255,.82);
box-shadow: 0 24px 60px rgba(26, 38, 55, .08);
text-align: center;
}
.kb-empty-orbit { width: 72px; height: 72px; margin: 0 auto 28px; border: 1px solid rgba(39,125,145,.32); border-radius: 50%; position: relative; }
.kb-empty-orbit::before { content: ''; position: absolute; width: 92px; height: 28px; border: 1px solid rgba(39,125,145,.28); border-radius: 50%; left: -11px; top: 21px; transform: rotate(-22deg); }
.kb-empty-orbit span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #318d9a; left: 31px; top: 31px; box-shadow: 0 0 18px rgba(49,141,154,.55); }
.kb-empty-eyebrow { color: #3b8994; font-size: 10px; font-weight: 750; letter-spacing: .2em; }
.kb-empty-card h2 { margin: 10px 0 14px; color: #17202c; font-family: ui-serif, 'Songti SC', Georgia, serif; font-size: 30px; line-height: 1.25; }
.kb-empty-card > p:not(.kb-empty-eyebrow) { max-width: 440px; margin: 0 auto; color: #697284; font-size: 14px; line-height: 1.8; }
.kb-empty-primary { margin-top: 28px; border: 0; border-radius: 10px; padding: 12px 21px; color: white; background: #237c8b; cursor: pointer; font-weight: 650; box-shadow: 0 9px 22px rgba(35,124,139,.22); }
.kb-empty-primary:hover { background: #1c6a77; }
.kb-empty-support { margin-top: 14px; color: #939aaa; font-size: 11px; }
.kb-agent-panel { border-left-color: #dbe1e8; background: #f4f6f9; }
.agent-header,
.runtime-status { background: #111925; border-color: #293446; color: #e9eef4; }
.agent-meta h3,
.model-config input,
.model-config button,
.forgejo-url,
.forgejo-actions button { color: #e9eef4; }
.agent-role,
.runtime-tools,
.forgejo-title span,
.forgejo-detail { color: #8190a4; }
.model-config,
.forgejo-status { background: #17212f; border-color: #2c394b; }
.model-config input,
.forgejo-url { background: #0e1621; border-color: #2c394b; }
.forgejo-actions button { background: #202c3b; border-color: #344155; }
/*
Agent 面板
*/