Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
refactor(frontend): style consistency pass — shared shells, tokens, unified confirmations (#3376)
lyingbugb4aa5bbe8db0
diff --git a/frontend/src/assets/dropdown-menu.less b/frontend/src/assets/dropdown-menu.lessindex 0c371de61..970f65a6a 100644--- a/frontend/src/assets/dropdown-menu.less+++ b/frontend/src/assets/dropdown-menu.less@@ -45,7 +45,7 @@padding: 4px !important;margin-top: 4px !important;min-width: 148px;- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -74,19 +74,19 @@gap: 10px;padding: 8px 12px;cursor: pointer;- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);position: relative;.menu-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;color: var(--td-text-color-secondary);- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);}&:hover {@@ -149,7 +149,7 @@margin-top: 4px !important;min-width: 148px;width: auto;- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -186,9 +186,9 @@padding: 8px 12px;cursor: pointer;color: var(--td-text-color-primary);- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);- border-radius: 6px;- font-size: 14px;+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-base);line-height: 20px;&:hover {@@ -201,9 +201,9 @@}.icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);}&:hover .icon {@@ -249,7 +249,7 @@align-items: center;gap: 6px;padding: 8px 12px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);border-bottom: 1px solid var(--td-component-stroke);@@ -269,7 +269,7 @@.move-menu-empty {padding: 12px 16px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);text-align: center;line-height: 1.5;@@ -283,7 +283,7 @@}.move-target-count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -296,8 +296,8 @@gap: 6px;padding: 6px 8px;background: var(--td-bg-color-container-hover);- border-radius: 6px;- font-size: 13px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin-bottom: 8px;}@@ -307,7 +307,7 @@align-items: flex-start;gap: 6px;padding: 6px 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;margin-bottom: 4px;@@ -325,13 +325,13 @@gap: 2px;.move-mode-label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}.move-mode-desc {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);line-height: 1.4;}@@ -368,7 +368,7 @@overflow-y: auto;scrollbar-width: thin;scrollbar-color: transparent transparent;- transition: scrollbar-color 0.2s ease;+ transition: scrollbar-color var(--app-motion-base) ease;&::-webkit-scrollbar {width: 6px;@@ -381,29 +381,29 @@&::-webkit-scrollbar-thumb {background-color: transparent;border: none;- border-radius: 6px;- transition: background-color 0.2s ease;+ border-radius: var(--app-radius-sm);+ transition: background-color var(--app-motion-base) ease;}&:hover {- scrollbar-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18)) transparent;+ scrollbar-color: var(--td-scrollbar-color) transparent;&::-webkit-scrollbar-thumb {- background-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18));+ background-color: var(--td-scrollbar-color);}}&::-webkit-scrollbar-thumb:hover {- background-color: var(--td-scrollbar-hover-color, rgba(0, 0, 0, 0.32));+ background-color: var(--td-scrollbar-hover-color);}}.t-dropdown__item {padding: 8px 12px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);margin: 1px 0;- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);- font-size: 14px;+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);+ font-size: var(--app-text-base);color: var(--td-text-color-primary);cursor: pointer;min-width: auto !important;@@ -429,10 +429,10 @@color: var(--td-text-color-secondary);display: flex;align-items: center;- transition: all 0.15s cubic-bezier(0.2, 0, 0, 1);+ transition: all var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1);.t-icon {- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -442,7 +442,7 @@.t-dropdown__item-text {color: inherit !important;- font-size: 14px !important;+ font-size: var(--app-text-base) !important;line-height: 20px !important;white-space: nowrap !important;overflow: hidden !important;@@ -496,7 +496,7 @@padding: 4px !important;margin-top: 4px !important;min-width: 120px;- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -517,7 +517,7 @@.t-popup__content {padding: 4px !important;margin-top: 4px !important;- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -545,12 +545,12 @@align-items: center;gap: 6px;padding: 6px 8px;- border-radius: 6px;- font-size: 13px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);color: var(--td-text-color-primary);cursor: pointer;line-height: 1.2;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -563,7 +563,7 @@}.tag-popup-check {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);visibility: hidden;flex-shrink: 0;@@ -619,7 +619,7 @@padding: 14px 16px !important;min-width: 300px;max-width: min(392px, calc(100vw - 24px));- border-radius: 12px !important;+ border-radius: var(--app-radius-xl) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -636,7 +636,7 @@}.anchored-form-popup-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 12px;@@ -646,7 +646,7 @@.anchored-form-popup-body {padding: 0 0 4px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;word-break: break-word;}@@ -663,7 +663,7 @@padding: 14px 16px;min-width: 300px;max-width: min(392px, calc(100vw - 24px));- border-radius: 12px;+ border-radius: var(--app-radius-xl);background: var(--td-bg-color-container);border: 0.5px solid var(--td-component-stroke);box-shadow:diff --git a/frontend/src/assets/fonts.css b/frontend/src/assets/fonts.cssdeleted file mode 100644index 3a524896e..000000000--- a/frontend/src/assets/fonts.css+++ /dev/null@@ -1,6 +0,0 @@-@font-face {- font-family: 'TencentSans';- src: url('fonts/TencentSans.ttf') format('truetype');- font-weight: normal;- font-style: normal;-}\ No newline at end of filediff --git a/frontend/src/assets/fonts/TencentSans.ttf b/frontend/src/assets/fonts/TencentSans.ttfdeleted file mode 100644index 386dd20f5..000000000Binary files a/frontend/src/assets/fonts/TencentSans.ttf and /dev/null differdiff --git a/frontend/src/assets/img/circle.png b/frontend/src/assets/img/circle.pngdeleted file mode 100644index 042603f02..000000000Binary files a/frontend/src/assets/img/circle.png and /dev/null differdiff --git a/frontend/src/assets/theme/styleGuard.test.mjs b/frontend/src/assets/theme/styleGuard.test.mjsnew file mode 100644index 000000000..7814b474e--- /dev/null+++ b/frontend/src/assets/theme/styleGuard.test.mjs@@ -0,0 +1,126 @@+import assert from 'node:assert/strict'+import { test } from 'node:test'+import { readdirSync, readFileSync, statSync } from 'node:fs'+import { dirname, join, relative } from 'node:path'+import { fileURLToPath } from 'node:url'++/**+ * 样式守卫(棘轮):统计 views/ components/ assets/ 里绕过设计令牌或和 TDesign 打架的写法,+ * 只允许计数下降。新增任何一处都会让测试失败;清理后请把 baseline 调低。+ *+ * 令牌定义在 assets/theme/theme.css(--app-radius-* / --app-text-* / --app-space-* /+ * --app-motion-* / --z-*),TDesign 全局覆盖放在 assets/theme/tdesign-overrides.less。+ * 用 .mjs 是因为 `npm test`(tsx --test)在 Node 20 下只自动发现 .mjs 测试文件。+ */+const SRC_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..', '..')+const SCAN_DIRS = ['views', 'components', 'assets']+const EXTS = new Set(['.vue', '.less', '.css'])+const EXEMPT_FILES = new Set(['assets/theme/theme.css'])++const RULES = [+ {+ name: 'brand-rgba',+ why: '品牌色透明叠加请用 color-mix(in srgb, var(--td-brand-color) N%, transparent),否则深色模式不跟随',+ pattern: /rgba\(\s*7\s*,\s*192\s*,\s*95\s*,/g,+ baseline: 0,+ },+ {+ name: 'legacy-blue-rgba',+ why: '旧版 TDesign 蓝 rgba(0,82,217) 已不是品牌色',+ pattern: /rgba\(\s*0\s*,\s*82\s*,\s*217\s*,/g,+ baseline: 18,+ },+ {+ name: 'td-token-fallback',+ why: 'theme.css 保证 --td-* 令牌存在,fallback 永远不会生效且容易写错颜色',+ pattern: /var\(\s*--td-(?!purple-5|cyan-6|font-family-code)[A-Za-z0-9-]+\s*,/g,+ baseline: 0,+ },+ {+ name: 'radius-literal',+ why: '圆角请用 var(--app-radius-xs|sm|md|lg|xl|pill)(4/6/8/10/12/999px)',+ pattern: /border(?:-[a-z]+)*-radius\s*:\s*\d+(?:\.\d+)?px/g,+ baseline: 162,+ },+ {+ name: 'font-size-literal',+ why: '字号请用 var(--app-text-2xs … 4xl)(10~24px)',+ pattern: /font-size\s*:\s*\d+(?:\.\d+)?px/g,+ baseline: 28,+ },+ {+ name: 'motion-literal',+ why: '过渡时长请用 var(--app-motion-instant|fast|base|slow)(120/150/200/300ms)',+ pattern: /transition[^;{]*?(?<![\d.])(?:0?\.\d+s|\d+ms)/g,+ baseline: 65,+ },+ {+ name: 'transition-all',+ why: 'transition: all 会让无关属性也参与动画(含 layout 属性),请列出具体属性',+ pattern: /transition\s*:\s*all\b/g,+ baseline: 78,+ },+ {+ name: 'important',+ why: '!important 通常意味着在和 TDesign 或自己的样式打架;全局意图的覆盖放 tdesign-overrides.less',+ pattern: /!important/g,+ baseline: 510,+ },+ {+ name: 'z-index-important',+ why: 'z-index 不应靠 !important 取胜,改用 t-popup attach="body" 或 --z-* 层级令牌',+ pattern: /z-index\s*:\s*-?\d+\s*!important/g,+ baseline: 26,+ },+ {+ name: 'raster-icon',+ why: 'more.png / circle.png 位图图标请换成 t-icon',+ pattern: /(more|circle)\.png/g,+ baseline: 10,+ },+]++function* walk(dir) {+ for (const name of readdirSync(dir)) {+ const full = join(dir, name)+ if (name === 'node_modules') continue+ if (statSync(full).isDirectory()) {+ yield* walk(full)+ } else if (EXTS.has(full.slice(full.lastIndexOf('.'))) && !/\.test\./.test(name)) {+ yield full+ }+ }+}++function countMatches(rule) {+ const byFile = new Map()+ let total = 0+ for (const dir of SCAN_DIRS) {+ for (const file of walk(join(SRC_ROOT, dir))) {+ const rel = relative(SRC_ROOT, file)+ if (EXEMPT_FILES.has(rel)) continue+ const text = readFileSync(file, 'utf8')+ const n = (text.match(rule.pattern) ?? []).length+ if (n > 0) {+ byFile.set(rel, n)+ total += n+ }+ }+ }+ return { total, byFile }+}++for (const rule of RULES) {+ test(`style guard: ${rule.name} does not exceed baseline (${rule.baseline})`, () => {+ const { total, byFile } = countMatches(rule)+ const top = [...byFile.entries()]+ .sort((a, b) => b[1] - a[1])+ .slice(0, 8)+ .map(([f, n]) => ` ${n}\t${f}`)+ .join('\n')+ assert.ok(+ total <= rule.baseline,+ `${rule.name}: ${total} occurrences > baseline ${rule.baseline}.\n${rule.why}\n${top}`,+ )+ })+}diff --git a/frontend/src/assets/theme/tdesign-overrides.less b/frontend/src/assets/theme/tdesign-overrides.lessnew file mode 100644index 000000000..59367bc35--- /dev/null+++ b/frontend/src/assets/theme/tdesign-overrides.less@@ -0,0 +1,22 @@+// 对 TDesign 组件的全局意图覆盖。组件内只做局部微调,不要在 scoped 样式里用 !important 和 TDesign 打架。++// 悬浮面板皮肤:给 t-popup / t-select 等的 overlayClassName 加上 `wk-popover` 即可。+// 用两级选择器压过 TDesign 默认的 .t-popup__content,不需要 !important。+.wk-popover .t-popup__content {+ padding: 0;+ border-radius: var(--app-radius-xl);+ background: var(--td-bg-color-container);+ border: 0.5px solid var(--td-component-stroke);+ box-shadow:+ 0 0 0 0.5px rgba(0, 0, 0, 0.03),+ 0 2px 4px rgba(0, 0, 0, 0.04),+ 0 8px 24px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(20px) saturate(180%);+ -webkit-backdrop-filter: blur(20px) saturate(180%);+ overflow: hidden;+}++:root[theme-mode="dark"] .wk-popover .t-popup__content {+ background: rgba(36, 36, 36, 0.92);+ border-color: rgba(255, 255, 255, 0.08);+}diff --git a/frontend/src/assets/theme/theme.css b/frontend/src/assets/theme/theme.cssindex e62ec6f17..e61233866 100644--- a/frontend/src/assets/theme/theme.css+++ b/frontend/src/assets/theme/theme.css@@ -1,4 +1,4 @@-:root:root,:root:root[theme-mode="light"]{ --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; --app-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --brand-main: var(--td-brand-color-4); --td-brand-color-light: var(--td-brand-color-1); --td-brand-color-focus: color-mix(in srgb, var(--td-brand-color) 20%, transparent); --td-brand-color-disabled: #8ce0af; --td-brand-color-hover: var(--td-brand-color-3); --td-brand-color: var(--td-brand-color-4); --td-brand-color-active:var(--td-brand-color-5); --td-brand-color-1: #e9f8ec; --td-brand-color-2: #09f479; --td-brand-color-3: #08dd6e; --td-brand-color-4: #07c05f; --td-brand-color-5: #06b04d; --td-brand-color-6: #049b38; --td-brand-color-7: #038626; --td-brand-color-8: #027218; --td-brand-color-9: #015e0d; --td-brand-color-10: #004b05; --td-warning-color-1: #fef3e6;--td-warning-color-2: #f9e0c7;--td-warning-color-3: #f7c797;--td-warning-color-4: #f2995f;--td-warning-color-5: #ed7b2f;--td-warning-color-6: #d35a21;--td-warning-color-7: #ba431b;--td-warning-color-8: #9e3610;--td-warning-color-9: #842b0b;--td-warning-color-10: #5a1907;--td-warning-color: var(--td-warning-color-5);--td-warning-color-hover: var(--td-warning-color-4);--td-warning-color-focus: var(--td-warning-color-2);--td-warning-color-active: var(--td-warning-color-6);--td-warning-color-disabled: var(--td-warning-color-3);--td-warning-color-light: var(--td-warning-color-1); --td-error-color-1: #fdecee;--td-error-color-2: #f9d7d9;--td-error-color-3: #f8b9be;--td-error-color-4: #f78d94;--td-error-color-5: #f36d78;--td-error-color-6: #e34d59;--td-error-color-7: #c9353f;--td-error-color-8: #b11f26;--td-error-color-9: #951114;--td-error-color-10: #680506;--td-error-color: var(--td-error-color-6);--td-error-color-hover: var(--td-error-color-5);--td-error-color-focus: var(--td-error-color-2);--td-error-color-active: var(--td-error-color-7);--td-error-color-disabled: var(--td-error-color-3);--td-error-color-light: var(--td-error-color-1); --td-success-color-1: #e8f8f2;--td-success-color-2: #bcebdc;--td-success-color-3: #85dbbe;--td-success-color-4: #48c79c;--td-success-color-5: #00a870;--td-success-color-6: #078d5c;--td-success-color-7: #067945;--td-success-color-8: #056334;--td-success-color-9: #044f2a;--td-success-color-10: #033017;--td-success-color: var(--td-success-color-5);--td-success-color-hover: var(--td-success-color-4);--td-success-color-focus: var(--td-success-color-2);--td-success-color-active: var(--td-success-color-6);--td-success-color-disabled: var(--td-success-color-3);--td-success-color-light: var(--td-success-color-1); --td-gray-color-1: #f3f3f3;--td-gray-color-2: #eee;--td-gray-color-3: #e7e7e7;--td-gray-color-4: #dcdcdc;--td-gray-color-5: #c5c5c5;--td-gray-color-6: #a6a6a6;--td-gray-color-7: #8b8b8b;--td-gray-color-8: #777;--td-gray-color-9: #5e5e5e;--td-gray-color-10: #4b4b4b;--td-gray-color-11: #383838;--td-gray-color-12: #2c2c2c;--td-gray-color-13: #242424;--td-gray-color-14: #181818;--td-bg-color-container: #fff;--td-bg-color-container-select: #fff;--td-bg-color-page: var(--td-gray-color-2);--td-bg-color-sidebar: #f9f9f9;--td-bg-color-settings-modal: #f9f9f9;--td-bg-color-container-hover: var(--td-gray-color-1);--td-bg-color-container-active: var(--td-gray-color-3);--td-bg-color-secondarycontainer: var(--td-gray-color-1);--td-bg-color-secondarycontainer-hover: var(--td-gray-color-2);--td-bg-color-secondarycontainer-active: var(--td-gray-color-4);--td-bg-color-component: var(--td-gray-color-3);--td-bg-color-component-hover: var(--td-gray-color-4);--td-bg-color-component-active: var(--td-gray-color-6);--td-bg-color-component-disabled: var(--td-gray-color-2);--td-component-stroke: var(--td-gray-color-3);--td-component-border: var(--td-gray-color-4); --td-font-white-1: #ffffff;--td-font-white-2: rgba(255, 255, 255, 0.55);--td-font-white-3: rgba(255, 255, 255, 0.35);--td-font-white-4: rgba(255, 255, 255, 0.22);--td-font-gray-1: rgba(0, 0, 0, 0.9);--td-font-gray-2: rgba(0, 0, 0, 0.6);--td-font-gray-3: rgba(0, 0, 0, 0.4);--td-font-gray-4: rgba(0, 0, 0, 0.26);--td-text-color-primary: var(--td-font-gray-1);--td-text-color-secondary: var(--td-font-gray-2);--td-text-color-placeholder: var(--td-font-gray-3);--td-text-color-disabled: var(--td-font-gray-4);--td-text-color-anti: #fff;--td-text-color-brand: var(--td-brand-color);--td-text-color-link: var(--td-brand-color); /* 字体配置 */ --td-font-family: var(--app-font-family); --td-font-family-medium: var(--app-font-family); --td-font-size-link-small: 12px; --td-font-size-link-medium: 14px; --td-font-size-link-large: 16px; --td-font-size-mark-small: 12px; --td-font-size-mark-medium: 14px; --td-font-size-body-small: 12px; --td-font-size-body-medium: 14px; --td-font-size-body-large: 16px; --td-font-size-title-small: 14px; --td-font-size-title-medium: 16px; --td-font-size-title-large: 20px; --td-font-size-headline-small: 24px; --td-font-size-headline-medium: 28px; --td-font-size-headline-large: 36px; --td-font-size-display-medium: 48px; --td-font-size-display-large: 64px; --td-line-height-common: 8px; --td-line-height-link-small: calc( var(--td-font-size-link-small) + var(--td-line-height-common) ); --td-line-height-link-medium: calc( var(--td-font-size-link-medium) + var(--td-line-height-common) ); --td-line-height-link-large: calc( var(--td-font-size-link-large) + var(--td-line-height-common) ); --td-line-height-mark-small: calc( var(--td-font-size-mark-small) + var(--td-line-height-common) ); --td-line-height-mark-medium: calc( var(--td-font-size-mark-medium) + var(--td-line-height-common) ); --td-line-height-body-small: calc( var(--td-font-size-body-small) + var(--td-line-height-common) ); --td-line-height-body-medium: calc( var(--td-font-size-body-medium) + var(--td-line-height-common) ); --td-line-height-body-large: calc( var(--td-font-size-body-large) + var(--td-line-height-common) ); --td-line-height-title-small: calc( var(--td-font-size-title-small) + var(--td-line-height-common) ); --td-line-height-title-medium: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-title-large: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-headline-small: calc( var(--td-font-size-headline-small) + var(--td-line-height-common) ); --td-line-height-headline-medium: calc( var(--td-font-size-headline-medium) + var(--td-line-height-common) ); --td-line-height-headline-large: calc( var(--td-font-size-headline-large) + var(--td-line-height-common) ); --td-line-height-display-medium: calc( var(--td-font-size-display-medium) + var(--td-line-height-common) ); --td-line-height-display-large: calc( var(--td-font-size-display-large) + var(--td-line-height-common) ); --td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family); --td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family); --td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family); --td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family); --td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family); --td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family); --td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family); --td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family); --td-font-title-small: var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family); --td-font-title-medium: var(--td-font-size-title-medium) / var(--td-line-height-title-medium) var(--td-font-family); --td-font-title-large: var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family); --td-font-headline-small: var(--td-font-size-headline-small) / var(--td-line-height-headline-small) var(--td-font-family); --td-font-headline-medium: var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium) var(--td-font-family); --td-font-headline-large: var(--td-font-size-headline-large) / var(--td-line-height-headline-large) var(--td-font-family); --td-font-display-medium: var(--td-font-size-display-medium) / var(--td-line-height-display-medium) var(--td-font-family); --td-font-display-large: var(--td-font-size-display-large) / var(--td-line-height-display-large) var(--td-font-family); /* 字体颜色 */ --td-text-color-primary: var(--td-font-gray-1); --td-text-color-secondary: var(--td-font-gray-2); --td-text-color-placeholder: var(--td-font-gray-3); --td-text-color-disabled: var(--td-font-gray-4); --td-text-color-anti: #fff; --td-text-color-brand: var(--td-brand-color); --td-text-color-link: var(--td-brand-color); /* end 字体配置 */ /* 圆角配置 */ --td-radius-small: 2px; --td-radius-default: 3px; --td-radius-medium: 6px; --td-radius-large: 9px; --td-radius-extraLarge: 12px; --td-radius-round: 999px; --td-radius-circle: 50%; /* end 圆角配置 */ /* 阴影配置 */ --td-shadow-1: 0px 1px 10px rgba(0, 0, 0, 0.05), 0px 4px 5px rgba(0, 0, 0, 0.08), 0px 2px 4px -1px rgba(0, 0, 0, 0.12); --td-shadow-2: 0px 3px 14px 2px rgba(0, 0, 0, 0.05), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 5px 5px -3px rgba(0, 0, 0, 0.1); --td-shadow-3: 0px 6px 30px 5px rgba(0, 0, 0, 0.05), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08); /* end 阴影配置 */ }+:root:root,:root:root[theme-mode="light"]{ --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; --app-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --brand-main: var(--td-brand-color-4); --td-brand-color-light: var(--td-brand-color-1); --td-brand-color-focus: color-mix(in srgb, var(--td-brand-color) 20%, transparent); --td-brand-color-disabled: #8ce0af; --td-brand-color-hover: var(--td-brand-color-3); --td-brand-color: var(--td-brand-color-4); --td-brand-color-active:var(--td-brand-color-5); --td-brand-color-1: #e9f8ec; --td-brand-color-2: #09f479; --td-brand-color-3: #08dd6e; --td-brand-color-4: #07c05f; --td-brand-color-5: #06b04d; --td-brand-color-6: #049b38; --td-brand-color-7: #038626; --td-brand-color-8: #027218; --td-brand-color-9: #015e0d; --td-brand-color-10: #004b05; --td-warning-color-1: #fef3e6;--td-warning-color-2: #f9e0c7;--td-warning-color-3: #f7c797;--td-warning-color-4: #f2995f;--td-warning-color-5: #ed7b2f;--td-warning-color-6: #d35a21;--td-warning-color-7: #ba431b;--td-warning-color-8: #9e3610;--td-warning-color-9: #842b0b;--td-warning-color-10: #5a1907;--td-warning-color: var(--td-warning-color-5);--td-warning-color-hover: var(--td-warning-color-4);--td-warning-color-focus: var(--td-warning-color-2);--td-warning-color-active: var(--td-warning-color-6);--td-warning-color-disabled: var(--td-warning-color-3);--td-warning-color-light: var(--td-warning-color-1); --td-error-color-1: #fdecee;--td-error-color-2: #f9d7d9;--td-error-color-3: #f8b9be;--td-error-color-4: #f78d94;--td-error-color-5: #f36d78;--td-error-color-6: #e34d59;--td-error-color-7: #c9353f;--td-error-color-8: #b11f26;--td-error-color-9: #951114;--td-error-color-10: #680506;--td-error-color: var(--td-error-color-6);--td-error-color-hover: var(--td-error-color-5);--td-error-color-focus: var(--td-error-color-2);--td-error-color-active: var(--td-error-color-7);--td-error-color-disabled: var(--td-error-color-3);--td-error-color-light: var(--td-error-color-1); --td-success-color-1: #e8f8f2;--td-success-color-2: #bcebdc;--td-success-color-3: #85dbbe;--td-success-color-4: #48c79c;--td-success-color-5: #00a870;--td-success-color-6: #078d5c;--td-success-color-7: #067945;--td-success-color-8: #056334;--td-success-color-9: #044f2a;--td-success-color-10: #033017;--td-success-color: var(--td-success-color-5);--td-success-color-hover: var(--td-success-color-4);--td-success-color-focus: var(--td-success-color-2);--td-success-color-active: var(--td-success-color-6);--td-success-color-disabled: var(--td-success-color-3);--td-success-color-light: var(--td-success-color-1); --td-gray-color-1: #f3f3f3;--td-gray-color-2: #eee;--td-gray-color-3: #e7e7e7;--td-gray-color-4: #dcdcdc;--td-gray-color-5: #c5c5c5;--td-gray-color-6: #a6a6a6;--td-gray-color-7: #8b8b8b;--td-gray-color-8: #777;--td-gray-color-9: #5e5e5e;--td-gray-color-10: #4b4b4b;--td-gray-color-11: #383838;--td-gray-color-12: #2c2c2c;--td-gray-color-13: #242424;--td-gray-color-14: #181818;--td-bg-color-container: #fff;--td-bg-color-container-select: #fff;--td-bg-color-page: var(--td-gray-color-2);--td-bg-color-sidebar: #f9f9f9;--td-bg-color-settings-modal: #f9f9f9;--td-bg-color-container-hover: var(--td-gray-color-1);--td-bg-color-container-active: var(--td-gray-color-3);--td-bg-color-secondarycontainer: var(--td-gray-color-1);--td-bg-color-secondarycontainer-hover: var(--td-gray-color-2);--td-bg-color-secondarycontainer-active: var(--td-gray-color-4);--td-bg-color-component: var(--td-gray-color-3);--td-bg-color-component-hover: var(--td-gray-color-4);--td-bg-color-component-active: var(--td-gray-color-6);--td-bg-color-component-disabled: var(--td-gray-color-2);--td-component-stroke: var(--td-gray-color-3);--td-component-border: var(--td-gray-color-4); --td-font-white-1: #ffffff;--td-font-white-2: rgba(255, 255, 255, 0.55);--td-font-white-3: rgba(255, 255, 255, 0.35);--td-font-white-4: rgba(255, 255, 255, 0.22);--td-font-gray-1: rgba(0, 0, 0, 0.9);--td-font-gray-2: rgba(0, 0, 0, 0.6);--td-font-gray-3: rgba(0, 0, 0, 0.4);--td-font-gray-4: rgba(0, 0, 0, 0.26);--td-text-color-primary: var(--td-font-gray-1);--td-text-color-secondary: var(--td-font-gray-2);--td-text-color-placeholder: var(--td-font-gray-3);--td-text-color-disabled: var(--td-font-gray-4);--td-text-color-anti: #fff;--td-text-color-brand: var(--td-brand-color);--td-text-color-link: var(--td-brand-color); /* 字体配置 */ --td-font-family: var(--app-font-family); --td-font-family-medium: var(--app-font-family); --td-font-family-mono: var(--app-font-family-mono); --td-font-size-link-small: 12px; --td-font-size-link-medium: 14px; --td-font-size-link-large: 16px; --td-font-size-mark-small: 12px; --td-font-size-mark-medium: 14px; --td-font-size-body-small: 12px; --td-font-size-body-medium: 14px; --td-font-size-body-large: 16px; --td-font-size-title-small: 14px; --td-font-size-title-medium: 16px; --td-font-size-title-large: 20px; --td-font-size-headline-small: 24px; --td-font-size-headline-medium: 28px; --td-font-size-headline-large: 36px; --td-font-size-display-medium: 48px; --td-font-size-display-large: 64px; --td-line-height-common: 8px; --td-line-height-link-small: calc( var(--td-font-size-link-small) + var(--td-line-height-common) ); --td-line-height-link-medium: calc( var(--td-font-size-link-medium) + var(--td-line-height-common) ); --td-line-height-link-large: calc( var(--td-font-size-link-large) + var(--td-line-height-common) ); --td-line-height-mark-small: calc( var(--td-font-size-mark-small) + var(--td-line-height-common) ); --td-line-height-mark-medium: calc( var(--td-font-size-mark-medium) + var(--td-line-height-common) ); --td-line-height-body-small: calc( var(--td-font-size-body-small) + var(--td-line-height-common) ); --td-line-height-body-medium: calc( var(--td-font-size-body-medium) + var(--td-line-height-common) ); --td-line-height-body-large: calc( var(--td-font-size-body-large) + var(--td-line-height-common) ); --td-line-height-title-small: calc( var(--td-font-size-title-small) + var(--td-line-height-common) ); --td-line-height-title-medium: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-title-large: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-headline-small: calc( var(--td-font-size-headline-small) + var(--td-line-height-common) ); --td-line-height-headline-medium: calc( var(--td-font-size-headline-medium) + var(--td-line-height-common) ); --td-line-height-headline-large: calc( var(--td-font-size-headline-large) + var(--td-line-height-common) ); --td-line-height-display-medium: calc( var(--td-font-size-display-medium) + var(--td-line-height-common) ); --td-line-height-display-large: calc( var(--td-font-size-display-large) + var(--td-line-height-common) ); --td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family); --td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family); --td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family); --td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family); --td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family); --td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family); --td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family); --td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family); --td-font-title-small: var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family); --td-font-title-medium: var(--td-font-size-title-medium) / var(--td-line-height-title-medium) var(--td-font-family); --td-font-title-large: var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family); --td-font-headline-small: var(--td-font-size-headline-small) / var(--td-line-height-headline-small) var(--td-font-family); --td-font-headline-medium: var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium) var(--td-font-family); --td-font-headline-large: var(--td-font-size-headline-large) / var(--td-line-height-headline-large) var(--td-font-family); --td-font-display-medium: var(--td-font-size-display-medium) / var(--td-line-height-display-medium) var(--td-font-family); --td-font-display-large: var(--td-font-size-display-large) / var(--td-line-height-display-large) var(--td-font-family); /* 字体颜色 */ --td-text-color-primary: var(--td-font-gray-1); --td-text-color-secondary: var(--td-font-gray-2); --td-text-color-placeholder: var(--td-font-gray-3); --td-text-color-disabled: var(--td-font-gray-4); --td-text-color-anti: #fff; --td-text-color-brand: var(--td-brand-color); --td-text-color-link: var(--td-brand-color); /* end 字体配置 */ /* 圆角配置 */ --td-radius-small: 2px; --td-radius-default: 3px; --td-radius-medium: 6px; --td-radius-large: 9px; --td-radius-extraLarge: 12px; --td-radius-round: 999px; --td-radius-circle: 50%; /* end 圆角配置 */ /* 阴影配置 */ --td-shadow-1: 0px 1px 10px rgba(0, 0, 0, 0.05), 0px 4px 5px rgba(0, 0, 0, 0.08), 0px 2px 4px -1px rgba(0, 0, 0, 0.12); --td-shadow-2: 0px 3px 14px 2px rgba(0, 0, 0, 0.05), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 5px 5px -3px rgba(0, 0, 0, 0.1); --td-shadow-3: 0px 6px 30px 5px rgba(0, 0, 0, 0.05), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08); /* end 阴影配置 */ }:root:root[theme-mode="dark"]{--brand-main: var(--td-brand-color-6);--td-brand-color-light: var(--td-brand-color-1);@@ -89,7 +89,7 @@--td-text-color-brand: var(--td-brand-color);--td-text-color-link: var(--td-brand-color);- /* 字体配置 */ --td-font-family: var(--app-font-family); --td-font-family-medium: var(--app-font-family); --td-font-size-link-small: 12px; --td-font-size-link-medium: 14px; --td-font-size-link-large: 16px; --td-font-size-mark-small: 12px; --td-font-size-mark-medium: 14px; --td-font-size-body-small: 12px; --td-font-size-body-medium: 14px; --td-font-size-body-large: 16px; --td-font-size-title-small: 14px; --td-font-size-title-medium: 16px; --td-font-size-title-large: 20px; --td-font-size-headline-small: 24px; --td-font-size-headline-medium: 28px; --td-font-size-headline-large: 36px; --td-font-size-display-medium: 48px; --td-font-size-display-large: 64px; --td-line-height-common: 8px; --td-line-height-link-small: calc( var(--td-font-size-link-small) + var(--td-line-height-common) ); --td-line-height-link-medium: calc( var(--td-font-size-link-medium) + var(--td-line-height-common) ); --td-line-height-link-large: calc( var(--td-font-size-link-large) + var(--td-line-height-common) ); --td-line-height-mark-small: calc( var(--td-font-size-mark-small) + var(--td-line-height-common) ); --td-line-height-mark-medium: calc( var(--td-font-size-mark-medium) + var(--td-line-height-common) ); --td-line-height-body-small: calc( var(--td-font-size-body-small) + var(--td-line-height-common) ); --td-line-height-body-medium: calc( var(--td-font-size-body-medium) + var(--td-line-height-common) ); --td-line-height-body-large: calc( var(--td-font-size-body-large) + var(--td-line-height-common) ); --td-line-height-title-small: calc( var(--td-font-size-title-small) + var(--td-line-height-common) ); --td-line-height-title-medium: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-title-large: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-headline-small: calc( var(--td-font-size-headline-small) + var(--td-line-height-common) ); --td-line-height-headline-medium: calc( var(--td-font-size-headline-medium) + var(--td-line-height-common) ); --td-line-height-headline-large: calc( var(--td-font-size-headline-large) + var(--td-line-height-common) ); --td-line-height-display-medium: calc( var(--td-font-size-display-medium) + var(--td-line-height-common) ); --td-line-height-display-large: calc( var(--td-font-size-display-large) + var(--td-line-height-common) ); --td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family); --td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family); --td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family); --td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family); --td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family); --td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family); --td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family); --td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family); --td-font-title-small: var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family); --td-font-title-medium: var(--td-font-size-title-medium) / var(--td-line-height-title-medium) var(--td-font-family); --td-font-title-large: var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family); --td-font-headline-small: var(--td-font-size-headline-small) / var(--td-line-height-headline-small) var(--td-font-family); --td-font-headline-medium: var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium) var(--td-font-family); --td-font-headline-large: var(--td-font-size-headline-large) / var(--td-line-height-headline-large) var(--td-font-family); --td-font-display-medium: var(--td-font-size-display-medium) / var(--td-line-height-display-medium) var(--td-font-family); --td-font-display-large: var(--td-font-size-display-large) / var(--td-line-height-display-large) var(--td-font-family); /* 字体颜色 */ --td-text-color-primary: var(--td-font-gray-1); --td-text-color-secondary: var(--td-font-gray-2); --td-text-color-placeholder: var(--td-font-gray-3); --td-text-color-disabled: var(--td-font-gray-4); --td-text-color-anti: #fff; --td-text-color-brand: var(--td-brand-color); --td-text-color-link: var(--td-brand-color); /* end 字体配置 */+ /* 字体配置 */ --td-font-family: var(--app-font-family); --td-font-family-medium: var(--app-font-family); --td-font-family-mono: var(--app-font-family-mono); --td-font-size-link-small: 12px; --td-font-size-link-medium: 14px; --td-font-size-link-large: 16px; --td-font-size-mark-small: 12px; --td-font-size-mark-medium: 14px; --td-font-size-body-small: 12px; --td-font-size-body-medium: 14px; --td-font-size-body-large: 16px; --td-font-size-title-small: 14px; --td-font-size-title-medium: 16px; --td-font-size-title-large: 20px; --td-font-size-headline-small: 24px; --td-font-size-headline-medium: 28px; --td-font-size-headline-large: 36px; --td-font-size-display-medium: 48px; --td-font-size-display-large: 64px; --td-line-height-common: 8px; --td-line-height-link-small: calc( var(--td-font-size-link-small) + var(--td-line-height-common) ); --td-line-height-link-medium: calc( var(--td-font-size-link-medium) + var(--td-line-height-common) ); --td-line-height-link-large: calc( var(--td-font-size-link-large) + var(--td-line-height-common) ); --td-line-height-mark-small: calc( var(--td-font-size-mark-small) + var(--td-line-height-common) ); --td-line-height-mark-medium: calc( var(--td-font-size-mark-medium) + var(--td-line-height-common) ); --td-line-height-body-small: calc( var(--td-font-size-body-small) + var(--td-line-height-common) ); --td-line-height-body-medium: calc( var(--td-font-size-body-medium) + var(--td-line-height-common) ); --td-line-height-body-large: calc( var(--td-font-size-body-large) + var(--td-line-height-common) ); --td-line-height-title-small: calc( var(--td-font-size-title-small) + var(--td-line-height-common) ); --td-line-height-title-medium: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-title-large: calc( var(--td-font-size-title-medium) + var(--td-line-height-common) ); --td-line-height-headline-small: calc( var(--td-font-size-headline-small) + var(--td-line-height-common) ); --td-line-height-headline-medium: calc( var(--td-font-size-headline-medium) + var(--td-line-height-common) ); --td-line-height-headline-large: calc( var(--td-font-size-headline-large) + var(--td-line-height-common) ); --td-line-height-display-medium: calc( var(--td-font-size-display-medium) + var(--td-line-height-common) ); --td-line-height-display-large: calc( var(--td-font-size-display-large) + var(--td-line-height-common) ); --td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family); --td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family); --td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family); --td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family); --td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family); --td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family); --td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family); --td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family); --td-font-title-small: var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family); --td-font-title-medium: var(--td-font-size-title-medium) / var(--td-line-height-title-medium) var(--td-font-family); --td-font-title-large: var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family); --td-font-headline-small: var(--td-font-size-headline-small) / var(--td-line-height-headline-small) var(--td-font-family); --td-font-headline-medium: var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium) var(--td-font-family); --td-font-headline-large: var(--td-font-size-headline-large) / var(--td-line-height-headline-large) var(--td-font-family); --td-font-display-medium: var(--td-font-size-display-medium) / var(--td-line-height-display-medium) var(--td-font-family); --td-font-display-large: var(--td-font-size-display-large) / var(--td-line-height-display-large) var(--td-font-family); /* 字体颜色 */ --td-text-color-primary: var(--td-font-gray-1); --td-text-color-secondary: var(--td-font-gray-2); --td-text-color-placeholder: var(--td-font-gray-3); --td-text-color-disabled: var(--td-font-gray-4); --td-text-color-anti: #fff; --td-text-color-brand: var(--td-brand-color); --td-text-color-link: var(--td-brand-color); /* end 字体配置 *//* 圆角配置 */ --td-radius-small: 2px; --td-radius-default: 3px; --td-radius-medium: 6px; --td-radius-large: 9px; --td-radius-extraLarge: 12px; --td-radius-round: 999px; --td-radius-circle: 50%; /* end 圆角配置 */@@ -199,4 +199,71 @@ select:-webkit-autofill {.t-textarea__inner.t-is-focused:not(.t-is-disabled):not(.t-is-error):not(.t-is-warning):not(.t-is-success) {border-color: var(--td-brand-color);box-shadow: none;-}\ No newline at end of file+}++/* 应用级强调色:智能体 / 图谱等「非品牌但反复出现」的语义色,透明叠加请用 color-mix */+:root {+ --app-accent-purple: #7c4dff;+}+:root[theme-mode="dark"] {+ --app-accent-purple: #9d7cff;+}++/* 全局旋转动画:spinner / 刷新图标统一用 `animation: wk-spin 0.8s linear infinite` */+@keyframes wk-spin {+ to {+ transform: rotate(360deg);+ }+}++/* ============================================================+ * 应用级设计令牌+ * 按代码库的事实刻度整理(圆角 4/6/8/10/12、字号 10~24、4px 间距网格、+ * 150/200ms 动效),值与既有写法一致,目的是让后续调整只改这里。+ * 新代码请引用令牌,样式守卫会统计残留字面量。+ * ============================================================ */+:root {+ /* 圆角 */+ --app-radius-xs: 4px;+ --app-radius-sm: 6px;+ --app-radius-md: 8px;+ --app-radius-lg: 10px;+ --app-radius-xl: 12px;+ --app-radius-pill: 999px;++ /* 字号 */+ --app-text-2xs: 10px;+ --app-text-xs: 11px;+ --app-text-sm: 12px;+ --app-text-md: 13px;+ --app-text-base: 14px;+ --app-text-lg: 15px;+ --app-text-xl: 16px;+ --app-text-2xl: 18px;+ --app-text-3xl: 20px;+ --app-text-4xl: 24px;++ /* 间距(4px 网格) */+ --app-space-1: 4px;+ --app-space-2: 8px;+ --app-space-3: 12px;+ --app-space-4: 16px;+ --app-space-5: 20px;+ --app-space-6: 24px;+ --app-space-8: 32px;+ --app-space-10: 40px;++ /* 动效时长 */+ --app-motion-instant: 120ms;+ --app-motion-fast: 150ms;+ --app-motion-base: 200ms;+ --app-motion-slow: 300ms;++ /* 层级:页面内 sticky < 下拉 < 全屏弹窗壳 < TDesign 抽屉/弹窗(2500) < 弹层 < 通知 */+ --z-sticky: 10;+ --z-dropdown: 1000;+ --z-modal: 1100;+ --z-drawer: 2500;+ --z-popover: 3000;+ --z-toast: 5000;+}diff --git a/frontend/src/components/AgentAvatar.vue b/frontend/src/components/AgentAvatar.vueindex 1b2795ca2..62ac3cc86 100644--- a/frontend/src/components/AgentAvatar.vue+++ b/frontend/src/components/AgentAvatar.vue@@ -104,7 +104,7 @@ const letterStyle = computed(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);flex-shrink: 0;box-shadow: var(--td-shadow-2);overflow: hidden;@@ -116,7 +116,7 @@ const letterStyle = computed(() => {box-shadow: none;.agent-avatar-letter {- font-size: 11px;+ font-size: var(--app-text-xs);}.agent-sparkles {@@ -127,10 +127,10 @@ const letterStyle = computed(() => {&.agent-avatar-large {width: 48px;height: 48px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);.agent-avatar-letter {- font-size: 20px;+ font-size: var(--app-text-3xl);}.agent-sparkles {@@ -153,7 +153,7 @@ const letterStyle = computed(() => {position: relative;z-index: 1;color: var(--td-text-color-anti);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;font-family: var(--app-font-family);}diff --git a/frontend/src/components/AgentEmbedChannelPanel.vue b/frontend/src/components/AgentEmbedChannelPanel.vueindex 9c5f8a456..a28337e53 100644--- a/frontend/src/components/AgentEmbedChannelPanel.vue+++ b/frontend/src/components/AgentEmbedChannelPanel.vue@@ -1109,7 +1109,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {gap: 6px;flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);padding: 0;border: none;@@ -1148,7 +1148,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {display: flex;align-items: center;justify-content: center;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);@@ -1168,7 +1168,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {}.im-step-check {- font-size: 12px;+ font-size: var(--app-text-sm);}.im-step-body {@@ -1190,7 +1190,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1202,7 +1202,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);@@ -1267,7 +1267,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {label {display: block;margin: 0 0 4px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1275,7 +1275,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);@@ -1296,7 +1296,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {align-items: flex-start;gap: 10px;padding: 12px 14px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px dashed var(--td-component-stroke);@@ -1304,12 +1304,12 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {flex-shrink: 0;margin-top: 1px;color: var(--td-brand-color);- font-size: 16px;+ font-size: var(--app-text-xl);}p {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1321,20 +1321,20 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {gap: 10px;margin-top: 12px;padding: 12px 14px;- border-radius: 8px;- background: var(--td-warning-color-1, #fff7e6);- border: 1px solid var(--td-warning-color-3, #ffd591);+ border-radius: var(--app-radius-md);+ background: var(--td-warning-color-1);+ border: 1px solid var(--td-warning-color-3);&__icon {flex-shrink: 0;margin-top: 1px;- color: var(--td-warning-color, #e37318);- font-size: 16px;+ color: var(--td-warning-color);+ font-size: var(--app-text-xl);}p {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1374,14 +1374,14 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {&__title {margin: 0 0 4px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}&__desc {margin: 0 0 12px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1400,7 +1400,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.mono-text-input :deep(input) {font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px;+ font-size: var(--app-text-sm);}.snippet-tabs {@@ -1411,7 +1411,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {}:deep(.t-tabs__nav-item) {- font-size: 13px;+ font-size: var(--app-text-md);height: 36px;line-height: 36px;}@@ -1423,7 +1423,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.snippet-scenario {margin: 0 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);}@@ -1431,22 +1431,22 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.snippet-note {margin: 0 0 10px;padding: 8px 10px;- border-radius: 6px;- font-size: 12px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);- background: color-mix(in srgb, var(--td-warning-color, #ed7b2f) 8%, var(--td-bg-color-container));- border: 1px solid color-mix(in srgb, var(--td-warning-color, #ed7b2f) 20%, transparent);+ background: color-mix(in srgb, var(--td-warning-color) 8%, var(--td-bg-color-container));+ border: 1px solid color-mix(in srgb, var(--td-warning-color) 20%, transparent);}.snippet-note--ok {- background: color-mix(in srgb, var(--td-success-color, #2ba471) 8%, var(--td-bg-color-container));- border-color: color-mix(in srgb, var(--td-success-color, #2ba471) 20%, transparent);+ background: color-mix(in srgb, var(--td-success-color) 8%, var(--td-bg-color-container));+ border-color: color-mix(in srgb, var(--td-success-color) 20%, transparent);}.code-panel {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);overflow: hidden;@@ -1461,7 +1461,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {}&__label {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-secondary);}@@ -1477,7 +1477,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {margin: 0;padding: 10px 12px;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;white-space: pre-wrap;word-break: break-all;@@ -1489,7 +1489,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.widget-preview {border: 1px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 6px;background: var(--td-bg-color-secondarycontainer);width: 100%;@@ -1498,7 +1498,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {.preview-surface {position: relative;height: 88px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);overflow: hidden;@@ -1514,7 +1514,7 @@ const toggleEnabled = async (ch: EmbedChannel, enabled: boolean) => {border: none;border-radius: 50%;color: #fff;- font-size: 16px;+ font-size: var(--app-text-xl);line-height: 1;box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);cursor: default;diff --git a/frontend/src/components/AgentSelector.vue b/frontend/src/components/AgentSelector.vueindex 899426081..2a3ef4904 100644--- a/frontend/src/components/AgentSelector.vue+++ b/frontend/src/components/AgentSelector.vue@@ -627,7 +627,7 @@ watch(activeDetail, (detail) => {position: fixed !important;background: var(--td-bg-color-container);border: .5px solid var(--td-component-border);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: var(--td-shadow-2);display: flex;flex-direction: column;@@ -657,7 +657,7 @@ watch(activeDetail, (detail) => {min-height: 36px;padding: 8px 12px;border-bottom: .5px solid var(--td-component-stroke);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1;color: var(--td-text-color-secondary);@@ -671,7 +671,7 @@ watch(activeDetail, (detail) => {padding: 0 6px;border-radius: 5px;color: var(--td-brand-color);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1;cursor: pointer;@@ -701,7 +701,7 @@ watch(activeDetail, (detail) => {}.agent-group-title {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);padding: 8px 12px 4px;font-weight: 600;@@ -716,7 +716,7 @@ watch(activeDetail, (detail) => {margin: 0 4px;padding: 6px 8px;cursor: pointer;- transition: background 0.12s;+ transition: background var(--app-motion-instant);border-radius: 5px;&:hover,@@ -744,7 +744,7 @@ watch(activeDetail, (detail) => {}.agent-option-name {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);flex: 1;min-width: 0;@@ -755,7 +755,7 @@ watch(activeDetail, (detail) => {}.shared-tag {- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);flex-shrink: 0;line-height: 22px;@@ -772,7 +772,7 @@ watch(activeDetail, (detail) => {.not-ready-icon {flex-shrink: 0;- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);cursor: default;display: block;line-height: 1;@@ -817,15 +817,15 @@ watch(activeDetail, (detail) => {height: 22px;border-radius: 5px;flex-shrink: 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1;- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);overflow: hidden;&.detail-icon {width: 28px;height: 28px;- font-size: 18px;+ font-size: var(--app-text-2xl);}}@@ -850,13 +850,13 @@ watch(activeDetail, (detail) => {.agent-detail-panel-inner {padding: 12px;border: 1px solid var(--td-component-stroke);- border-radius: var(--td-radius-large, 9px);+ border-radius: var(--td-radius-large);background: var(--td-bg-color-container);box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);}.agent-detail-content {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);line-height: 1.5;}@@ -885,7 +885,7 @@ watch(activeDetail, (detail) => {.detail-name {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 18px;word-break: break-word;min-width: 0;@@ -902,28 +902,28 @@ watch(activeDetail, (detail) => {height: 22px;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;&:hover {- background: var(--td-bg-color-component-hover, #e8e8e8);+ background: var(--td-bg-color-component-hover);color: var(--td-text-color-secondary);}&--warn {- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);&:hover {background: rgba(237, 123, 47, 0.1);- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);}}}.detail-current {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}@@ -937,12 +937,12 @@ watch(activeDetail, (detail) => {.detail-not-ready-icon {flex-shrink: 0;- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);opacity: 0.85;}.detail-not-ready-label {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;color: var(--td-text-color-secondary);}@@ -952,8 +952,8 @@ watch(activeDetail, (detail) => {align-items: center;padding: 0 5px;border: 1px solid rgba(237, 123, 47, 0.28);- border-radius: 4px;- font-size: 10px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-2xs);line-height: 16px;color: var(--td-text-color-secondary);background: var(--td-bg-color-container);@@ -963,14 +963,14 @@ watch(activeDetail, (detail) => {display: block;width: 100%;margin-top: 2px;- font-size: 10px;+ font-size: var(--app-text-2xs);line-height: 1.4;color: var(--td-text-color-placeholder);}.detail-desc {margin: 0 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;display: -webkit-box;@@ -1001,7 +1001,7 @@ watch(activeDetail, (detail) => {}.detail-tag-group-title {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;line-height: 16px;color: var(--td-text-color-placeholder);@@ -1013,8 +1013,8 @@ watch(activeDetail, (detail) => {align-items: center;padding: 2px 8px;border: 1px solid var(--td-component-stroke);- border-radius: var(--td-radius-medium, 6px);- font-size: 11px;+ border-radius: var(--td-radius-medium);+ font-size: var(--app-text-xs);line-height: 18px;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);@@ -1036,7 +1036,7 @@ watch(activeDetail, (detail) => {.detail-capability-state {flex-shrink: 0;- font-size: 10px;+ font-size: var(--app-text-2xs);line-height: 14px;color: var(--td-text-color-placeholder);}@@ -1047,16 +1047,16 @@ watch(activeDetail, (detail) => {background: rgba(0, 168, 112, 0.06);.detail-capability-icon-wrap {- color: var(--td-success-color, #00a870);+ color: var(--td-success-color);background: rgba(0, 168, 112, 0.12);}.detail-capability-icon {- color: var(--td-success-color, #00a870);+ color: var(--td-success-color);}.detail-capability-state {- color: var(--td-success-color, #00a870);+ color: var(--td-success-color);}}@@ -1065,13 +1065,13 @@ watch(activeDetail, (detail) => {background: rgba(237, 123, 47, 0.06);.detail-capability-icon-wrap {- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);background: rgba(237, 123, 47, 0.12);}.detail-capability-icon,.detail-capability-state {- color: var(--td-warning-color, #ed7b2f);+ color: var(--td-warning-color);}}@@ -1081,7 +1081,7 @@ watch(activeDetail, (detail) => {.detail-capability-icon-wrap {color: var(--td-text-color-placeholder);- background: var(--td-bg-color-component, rgba(0, 0, 0, 0.04));+ background: var(--td-bg-color-component);}.detail-capability-icon {@@ -1112,7 +1112,7 @@ watch(activeDetail, (detail) => {display: flex;flex-direction: column;gap: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}diff --git a/frontend/src/components/AgentShareSettings.vue b/frontend/src/components/AgentShareSettings.vueindex e4999ac9c..90ad5344f 100644--- a/frontend/src/components/AgentShareSettings.vue+++ b/frontend/src/components/AgentShareSettings.vue@@ -4,7 +4,7 @@<div class="share-panel-header-row"><div class="share-panel-titlewrap"><h2 class="share-panel-title">{{ $t('organization.share.title') }}</h2>- <t-popup placement="bottom-start" trigger="hover" overlay-class-name="share-hint-popup-overlay"+ <t-popup placement="bottom-start" trigger="hover" overlay-class-name="wk-popover share-hint-popup-overlay":overlay-inner-style="shareHintPopupInnerStyle"><button type="button" class="share-hint-trigger-btn" :aria-label="$t('agent.shareScope.title')":title="$t('agent.shareScope.title')">diff --git a/frontend/src/components/AttachmentUpload.vue b/frontend/src/components/AttachmentUpload.vueindex 088d5164a..ce3cc0ea7 100644--- a/frontend/src/components/AttachmentUpload.vue+++ b/frontend/src/components/AttachmentUpload.vue@@ -323,9 +323,9 @@ defineExpose({align-items: center;gap: 10px;padding: 8px 32px 8px 10px;- border-radius: 8px;- border: 1px solid var(--td-border-level-1-color, #e7e7e7);- background: var(--td-bg-color-container, #fff);+ border-radius: var(--app-radius-md);+ border: 1px solid var(--td-border-level-1-color);+ background: var(--td-bg-color-container);max-width: 240px;min-width: 140px;cursor: default;@@ -346,17 +346,17 @@ defineExpose({}.attachment-preview-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.attachment-preview-meta {- font-size: 11px;- color: var(--td-text-color-secondary, #999);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);white-space: nowrap;}@@ -365,11 +365,11 @@ defineExpose({overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 11px;- color: var(--td-text-color-secondary, #999);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);- &.is-ready { color: var(--td-success-color, #2ba471); }- &.is-failed { color: var(--td-error-color, #d54941); }+ &.is-ready { color: var(--td-success-color); }+ &.is-failed { color: var(--td-error-color); }}.attachment-status-spinner {@@ -380,7 +380,7 @@ defineExpose({border: 1px solid currentColor;border-right-color: transparent;border-radius: 50%;- animation: attachment-spin .8s linear infinite;+ animation: wk-spin .8s linear infinite;}.attachment-preview-remove {@@ -395,7 +395,7 @@ defineExpose({display: flex;align-items: center;justify-content: center;- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;line-height: 1;@@ -405,7 +405,4 @@ defineExpose({}}-@keyframes attachment-spin {- to { transform: rotate(360deg); }-}</style>diff --git a/frontend/src/components/ChatAttachmentPreviewDrawer.vue b/frontend/src/components/ChatAttachmentPreviewDrawer.vueindex edcd08c1a..dec2b0f87 100644--- a/frontend/src/components/ChatAttachmentPreviewDrawer.vue+++ b/frontend/src/components/ChatAttachmentPreviewDrawer.vue@@ -169,9 +169,9 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 16px;+ font-size: var(--app-text-xl);}.chat-attachment-drawer-header-text {@@ -180,7 +180,7 @@ onUnmounted(() => {}.chat-attachment-drawer-header-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -222,7 +222,7 @@ onUnmounted(() => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.chat-attachment-drawer-resize-handle:hover .chat-attachment-drawer-resize-line,diff --git a/frontend/src/components/ChatHeader.vue b/frontend/src/components/ChatHeader.vueindex 044251479..9b574f179 100644--- a/frontend/src/components/ChatHeader.vue+++ b/frontend/src/components/ChatHeader.vue@@ -360,7 +360,7 @@ function handleMenuClick(data: { value: string }): void {max-width: min(280px, calc(100% - 24px));min-width: 0;padding: 2px 2px 2px 8px;- border-radius: 8px;+ border-radius: var(--app-radius-md);box-sizing: border-box;background: color-mix(in srgb, var(--td-bg-color-container) 88%, transparent);backdrop-filter: blur(8px);@@ -390,7 +390,7 @@ function handleMenuClick(data: { value: string }): void {backdrop-filter: none;-webkit-backdrop-filter: none;box-sizing: border-box;- transition: border-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);+ transition: border-color var(--app-motion-slow) cubic-bezier(0.22, 0.61, 0.36, 1);&.is-editing {max-width: none;@@ -415,7 +415,7 @@ function handleMenuClick(data: { value: string }): void {border-radius: 5px;color: var(--td-text-color-primary);background: var(--td-bg-color-container);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 26px;outline: none;box-sizing: border-box;@@ -434,7 +434,7 @@ function handleMenuClick(data: { value: string }): void {margin: 0;padding: 0;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 20px;cursor: default;@@ -465,7 +465,7 @@ function handleMenuClick(data: { value: string }): void {color: var(--td-text-color-placeholder);background: transparent;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover:not(:disabled) {color: var(--td-text-color-primary);@@ -487,18 +487,9 @@ function handleMenuClick(data: { value: string }): void {}.chat-header__menu-loading {- animation: chat-header-spin 0.8s linear infinite;+ animation: wk-spin 0.8s linear infinite;}-@keyframes chat-header-spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}</style><style lang="less">@@ -510,7 +501,7 @@ function handleMenuClick(data: { value: string }): void {margin-top: 2px !important;min-width: 168px !important;width: max-content !important;- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -543,14 +534,14 @@ function handleMenuClick(data: { value: string }): void {.chat-header-confirm__title {margin: 0;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 20px;}.chat-header-confirm__body {color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.5;word-break: break-word;}@@ -567,13 +558,13 @@ function handleMenuClick(data: { value: string }): void {height: 30px;padding: 0 12px;border: 0.5px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-primary);background: var(--td-bg-color-container);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 28px;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;&:hover:not(:disabled) {background: var(--td-bg-color-container-hover);@@ -606,7 +597,7 @@ function handleMenuClick(data: { value: string }): void {border-radius: 5px;color: var(--td-text-color-primary);background: transparent;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;text-align: left;white-space: nowrap;@@ -632,7 +623,7 @@ function handleMenuClick(data: { value: string }): void {.chat-header-menu__icon {flex: 0 0 auto;- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);}diff --git a/frontend/src/components/ChatReferencesDrawer.vue b/frontend/src/components/ChatReferencesDrawer.vueindex 9001acea7..11720df8c 100644--- a/frontend/src/components/ChatReferencesDrawer.vue+++ b/frontend/src/components/ChatReferencesDrawer.vue@@ -370,7 +370,7 @@ watch(visible, (open) => {.chat-references-panel__title {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);line-height: 1.4;@@ -387,16 +387,16 @@ watch(visible, (open) => {color: var(--td-text-color-secondary);width: 36px;height: 36px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);cursor: pointer;display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;:deep(.t-icon) {- font-size: 20px;+ font-size: var(--app-text-3xl);}&:hover {@@ -415,7 +415,7 @@ watch(visible, (open) => {padding: 24px 8px;text-align: center;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.chat-references-panel__section {@@ -431,7 +431,7 @@ watch(visible, (open) => {.chat-references-panel__section-title {margin: 0 0 8px;padding: 0 4px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-placeholder);text-transform: uppercase;@@ -439,8 +439,8 @@ watch(visible, (open) => {}.reference-item {- border-radius: 12px;- transition: background-color 0.15s ease;+ border-radius: var(--app-radius-xl);+ transition: background-color var(--app-motion-fast) ease;&:hover:not(.is-highlighted) {background: color-mix(in srgb, var(--td-text-color-primary) 4%, transparent);@@ -473,7 +473,7 @@ watch(visible, (open) => {flex-shrink: 0;width: 18px;margin-top: 3px;- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-primary);}@@ -494,14 +494,14 @@ watch(visible, (open) => {flex-shrink: 0;width: 16px;height: 16px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);object-fit: cover;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);}.reference-item__domain {- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.35;color: var(--td-text-color-placeholder);overflow: hidden;@@ -520,7 +520,7 @@ watch(visible, (open) => {flex: 1;min-width: 0;margin: 0;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -537,7 +537,7 @@ watch(visible, (open) => {color: var(--td-text-color-placeholder);line-height: 1;opacity: 0;- transition: opacity 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}.reference-item:hover .reference-item__open,@@ -551,7 +551,7 @@ watch(visible, (open) => {.reference-item__snippet {margin: 4px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);display: -webkit-box;@@ -562,7 +562,7 @@ watch(visible, (open) => {.reference-item__content {margin: 4px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);white-space: pre-wrap;@@ -594,7 +594,7 @@ watch(visible, (open) => {}.references-backdrop-leave-active {- transition: opacity 0.3s ease;+ transition: opacity var(--app-motion-slow) ease;}.references-backdrop-enter-from,diff --git a/frontend/src/components/ChatRequestInfoButton.vue b/frontend/src/components/ChatRequestInfoButton.vueindex ea9e5e433..5be2fc62b 100644--- a/frontend/src/components/ChatRequestInfoButton.vue+++ b/frontend/src/components/ChatRequestInfoButton.vue@@ -105,7 +105,7 @@ const copyAll = async () => {.chat-request-info-popup {.t-popup__content {padding: 0;- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: var(--td-shadow-2);}}@@ -116,7 +116,7 @@ const copyAll = async () => {min-width: 260px;max-width: 360px;padding: 10px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);}@@ -131,7 +131,7 @@ const copyAll = async () => {}.chat-request-card-title {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;}@@ -156,8 +156,8 @@ const copyAll = async () => {.chat-request-value {flex: 1;- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 11px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-xs);color: var(--td-text-color-primary);word-break: break-all;}diff --git a/frontend/src/components/CreateTenantDialog.vue b/frontend/src/components/CreateTenantDialog.vueindex 37829b556..57ee19033 100644--- a/frontend/src/components/CreateTenantDialog.vue+++ b/frontend/src/components/CreateTenantDialog.vue@@ -133,7 +133,7 @@ const handleSubmit = async () => {.create-tenant-tip {margin: 0 0 16px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}diff --git a/frontend/src/components/EmbedChannelPreview.vue b/frontend/src/components/EmbedChannelPreview.vueindex defdec120..156df4ce4 100644--- a/frontend/src/components/EmbedChannelPreview.vue+++ b/frontend/src/components/EmbedChannelPreview.vue@@ -116,8 +116,8 @@ watch(() => props.visible, async (open) => {flex-shrink: 0;margin: 0;padding: 10px 12px;- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);@@ -130,7 +130,7 @@ watch(() => props.visible, async (open) => {display: flex;flex-direction: column;border: 1px solid var(--td-component-stroke);- border-radius: 12px;+ border-radius: var(--app-radius-xl);overflow: hidden;background: var(--td-bg-color-container);box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);@@ -167,8 +167,8 @@ watch(() => props.visible, async (open) => {flex: 1;margin-left: 8px;padding: 4px 10px;- border-radius: 6px;- font-size: 12px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);background: var(--td-bg-color-container);overflow: hidden;@@ -199,7 +199,7 @@ watch(() => props.visible, async (open) => {flex: 1;min-height: 480px;border: 1px solid var(--td-component-stroke);- border-radius: 12px;+ border-radius: var(--app-radius-xl);overflow: hidden;background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);@@ -209,7 +209,7 @@ watch(() => props.visible, async (open) => {padding: 28px 32px;&__title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-placeholder);margin-bottom: 16px;@@ -238,11 +238,11 @@ watch(() => props.visible, async (open) => {border: none;border-radius: 50%;color: #fff;- font-size: 20px;+ font-size: var(--app-text-3xl);cursor: pointer;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);z-index: 3;- transition: transform 0.15s ease;+ transition: transform var(--app-motion-fast) ease;&:hover {transform: scale(1.04);@@ -255,7 +255,7 @@ watch(() => props.visible, async (open) => {max-width: calc(100% - 32px);height: 500px;max-height: calc(100% - 88px);- border-radius: 12px;+ border-radius: var(--app-radius-xl);overflow: hidden;background: #fff;box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);diff --git a/frontend/src/components/EmbedInputField.vue b/frontend/src/components/EmbedInputField.vueindex 65f74a2dc..cd7bde751 100644--- a/frontend/src/components/EmbedInputField.vue+++ b/frontend/src/components/EmbedInputField.vue@@ -267,14 +267,14 @@ onUnmounted(() => {width: 100%;max-width: 800px;margin: 0 auto;- background: var(--td-bg-color-container, #fff);- border-radius: 12px;- border: 0.5px solid var(--td-component-border, #e7e7e7);+ background: var(--td-bg-color-container);+ border-radius: var(--app-radius-xl);+ border: 0.5px solid var(--td-component-border);box-shadow: 0 6px 6px rgba(0, 0, 0, 0.04), 0 12px 12px -1px rgba(0, 0, 0, 0.08);- transition: border-color 0.15s ease;+ transition: border-color var(--app-motion-fast) ease;&:focus-within {- border-color: var(--embed-primary, var(--td-brand-color, #07c05f));+ border-color: var(--embed-primary, var(--td-brand-color));}&__files {@@ -299,7 +299,7 @@ onUnmounted(() => {box-shadow: none;background: transparent;padding: 14px 16px 52px;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.5;resize: none;}@@ -348,9 +348,9 @@ onUnmounted(() => {gap: 6px;max-width: 220px;padding: 6px 10px;- border-radius: 8px;- background: var(--td-bg-color-secondarycontainer, #f3f3f3);- font-size: 12px;+ border-radius: var(--app-radius-md);+ background: var(--td-bg-color-secondarycontainer);+ font-size: var(--app-text-sm);&__name {overflow: hidden;@@ -371,9 +371,9 @@ onUnmounted(() => {position: relative;width: 56px;height: 56px;- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;- border: 1px solid var(--td-component-border, #e7e7e7);+ border: 1px solid var(--td-component-border);img {width: 100%;@@ -406,11 +406,11 @@ onUnmounted(() => {height: 28px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;color: var(--td-text-color-secondary);background: transparent;- transition: color 0.15s ease, background 0.15s ease;+ transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-secondarycontainer);@@ -418,7 +418,7 @@ onUnmounted(() => {}&.active {- color: var(--embed-primary, var(--td-brand-color, #07c05f));+ color: var(--embed-primary, var(--td-brand-color));background: color-mix(in srgb, var(--embed-primary, #07c05f) 12%, transparent);}}@@ -431,10 +431,10 @@ onUnmounted(() => {height: 28px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- background: var(--embed-primary, var(--td-brand-color, #07c05f));- transition: background 0.15s ease, opacity 0.15s ease;+ background: var(--embed-primary, var(--td-brand-color));+ transition: background var(--app-motion-fast) ease, opacity var(--app-motion-fast) ease;&:hover:not(.disabled) {filter: brightness(0.94);@@ -459,7 +459,7 @@ onUnmounted(() => {height: 28px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);diff --git a/frontend/src/components/EmptyState.vue b/frontend/src/components/EmptyState.vuenew file mode 100644index 000000000..51e109df2--- /dev/null+++ b/frontend/src/components/EmptyState.vue@@ -0,0 +1,97 @@+<template>+ <div class="wk-empty-state" :class="{ 'wk-empty-state--compact': compact }">+ <div v-if="$slots.icon || icon || image" class="wk-empty-state__icon">+ <slot name="icon">+ <img v-if="image" :src="image" alt="" aria-hidden="true" />+ <t-icon v-else :name="icon" />+ </slot>+ </div>+ <div class="wk-empty-state__title">{{ title }}</div>+ <div v-if="description || $slots.description" class="wk-empty-state__desc">+ <slot name="description">{{ description }}</slot>+ </div>+ <div v-if="$slots.default" class="wk-empty-state__actions">+ <slot />+ </div>+ </div>+</template>++<script setup lang="ts">+/**+ * 统一的空状态:图标 / 标题 / 描述 / 操作区。+ * 列表页用 `icon`(TDesign 图标名),需要插图时用 `image`;`compact` 用于抽屉、卡片等小容器。+ */+withDefaults(+ defineProps<{+ title: string+ description?: string+ icon?: string+ image?: string+ compact?: boolean+ }>(),+ { description: '', icon: '', image: '', compact: false },+)+</script>++<style lang="less" scoped>+.wk-empty-state {+ flex: 1;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ text-align: center;+ padding: 56px 20px;++ &--compact {+ padding: 32px 16px;+ }+}++.wk-empty-state__icon {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 64px;+ height: 64px;+ margin-bottom: 16px;+ border-radius: 50%;+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-placeholder);+ font-size: 30px;++ img {+ width: 40px;+ height: 40px;+ }++ .wk-empty-state--compact & {+ width: 48px;+ height: 48px;+ margin-bottom: 12px;+ font-size: 22px;+ }+}++.wk-empty-state__title {+ color: var(--td-text-color-primary);+ font-size: var(--app-text-lg);+ font-weight: 600;+ line-height: 22px;+}++.wk-empty-state__desc {+ margin-top: 6px;+ max-width: 360px;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-md);+ line-height: 20px;+}++.wk-empty-state__actions {+ display: flex;+ align-items: center;+ gap: 12px;+ margin-top: 20px;+}+</style>diff --git a/frontend/src/components/FAQTagTooltip.vue b/frontend/src/components/FAQTagTooltip.vueindex 26f3e86ce..5d2e9d6ef 100644--- a/frontend/src/components/FAQTagTooltip.vue+++ b/frontend/src/components/FAQTagTooltip.vue@@ -174,10 +174,10 @@ watch(showTooltip, (newVal) => {background: var(--td-bg-color-container);color: var(--td-text-color-primary);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;line-height: 1.6;word-break: break-word;@@ -279,7 +279,7 @@ watch(showTooltip, (newVal) => {.tooltip-content {color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;line-height: 1.6;white-space: pre-wrap;@@ -288,7 +288,7 @@ watch(showTooltip, (newVal) => {.fade-enter-active,.fade-leave-active {- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}.fade-enter-from {diff --git a/frontend/src/components/GlobalCommandPalette.vue b/frontend/src/components/GlobalCommandPalette.vueindex e03c781a8..e3b166084 100644--- a/frontend/src/components/GlobalCommandPalette.vue+++ b/frontend/src/components/GlobalCommandPalette.vue@@ -672,7 +672,7 @@ onUnmounted(() => {.cmdk__input-icon {color: var(--td-text-color-placeholder);- font-size: 16px;+ font-size: var(--app-text-xl);}.cmdk__scope-chip {@@ -684,8 +684,8 @@ onUnmounted(() => {padding: 0 2px 0 8px;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);- border-radius: 4px;- font-size: 12px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);font-weight: 500;flex-shrink: 0;@@ -731,7 +731,7 @@ onUnmounted(() => {border: none;outline: none;background: transparent;- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-primary);font-family: inherit;@@ -752,7 +752,7 @@ onUnmounted(() => {width: 28px;height: 28px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;@@ -779,7 +779,7 @@ onUnmounted(() => {gap: 12px;padding: 40px 20px 20px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);p {margin: 0;@@ -796,7 +796,7 @@ onUnmounted(() => {gap: 16px;padding: 8px 14px;border-top: 1px solid var(--td-component-stroke);- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);flex-wrap: wrap;}@@ -810,7 +810,7 @@ onUnmounted(() => {display: inline-block;padding: 1px 5px;min-width: 16px;- font-size: 10px;+ font-size: var(--app-text-2xs);font-family: inherit;line-height: 14px;text-align: center;@@ -822,7 +822,7 @@ onUnmounted(() => {}.cmdk-chunk-kb {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);padding: 1px 6px;background: var(--td-bg-color-secondarycontainer);@@ -839,7 +839,7 @@ onUnmounted(() => {display: inline-block;margin-right: 6px;padding: 0 5px;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);diff --git a/frontend/src/components/GlobalCommandPalette/ResultGroup.vue b/frontend/src/components/GlobalCommandPalette/ResultGroup.vueindex 337458a0c..505907c6b 100644--- a/frontend/src/components/GlobalCommandPalette/ResultGroup.vue+++ b/frontend/src/components/GlobalCommandPalette/ResultGroup.vue@@ -50,7 +50,7 @@ defineEmits<{align-items: center;gap: 6px;padding: 4px 12px 2px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;letter-spacing: 0.3px;color: var(--td-text-color-placeholder);@@ -70,15 +70,15 @@ defineEmits<{border: none;background: transparent;padding: 2px 6px;- border-radius: 4px;- font-size: 11px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-xs);color: var(--td-brand-color);cursor: pointer;text-transform: none;letter-spacing: normal;&:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);}}diff --git a/frontend/src/components/GlobalCommandPalette/ResultItem.vue b/frontend/src/components/GlobalCommandPalette/ResultItem.vueindex e29b6f744..58669ecda 100644--- a/frontend/src/components/GlobalCommandPalette/ResultItem.vue+++ b/frontend/src/components/GlobalCommandPalette/ResultItem.vue@@ -73,7 +73,7 @@ const onHover = (e: MouseEvent) => {gap: 10px;width: 100%;padding: 8px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);border: none;background: transparent;cursor: pointer;@@ -107,7 +107,7 @@ const onHover = (e: MouseEvent) => {display: flex;align-items: center;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 20px;white-space: nowrap;@@ -116,7 +116,7 @@ const onHover = (e: MouseEvent) => {}.cmdk-item__badge {- font-size: 10px;+ font-size: var(--app-text-2xs);padding: 1px 5px;border-radius: 3px;font-weight: 500;@@ -124,7 +124,7 @@ const onHover = (e: MouseEvent) => {line-height: 1.4;&--vector {- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);}@@ -141,14 +141,14 @@ const onHover = (e: MouseEvent) => {.cmdk-item__score {margin-left: auto;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);flex-shrink: 0;}.cmdk-item__subtitle {margin-top: 2px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-secondary);display: -webkit-box;@@ -170,7 +170,7 @@ const onHover = (e: MouseEvent) => {display: inline-flex;align-items: center;gap: 2px;- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);opacity: 0.55;transition: opacity 0.1s;diff --git a/frontend/src/components/GlobalInvitationBell.vue b/frontend/src/components/GlobalInvitationBell.vueindex 0847b644a..17187a71c 100644--- a/frontend/src/components/GlobalInvitationBell.vue+++ b/frontend/src/components/GlobalInvitationBell.vue@@ -50,7 +50,7 @@ const openDialog = () => {height: 32px;padding: 0;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);/* 用 container 背景而非透明,铃铛悬在内容区上方时和不同颜色的页面背景都能看清。 */background: var(--td-bg-color-container);color: var(--td-text-color-secondary);diff --git a/frontend/src/components/IMChannelPanel.vue b/frontend/src/components/IMChannelPanel.vueindex e4e16b230..765448f30 100644--- a/frontend/src/components/IMChannelPanel.vue+++ b/frontend/src/components/IMChannelPanel.vue@@ -1135,7 +1135,7 @@ onUnmounted(() => {gap: 6px;flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -1164,7 +1164,7 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);@@ -1184,7 +1184,7 @@ onUnmounted(() => {}.im-step-check {- font-size: 12px;+ font-size: var(--app-text-sm);}.im-step-body {@@ -1211,7 +1211,7 @@ onUnmounted(() => {.mono-text-input :deep(input) {font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px;+ font-size: var(--app-text-sm);}.drawer-form {@@ -1227,7 +1227,7 @@ onUnmounted(() => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1264,7 +1264,7 @@ onUnmounted(() => {.form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);@@ -1279,7 +1279,7 @@ onUnmounted(() => {flex-wrap: wrap;gap: 4px;padding: 3px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}@@ -1288,12 +1288,12 @@ onUnmounted(() => {background: transparent;color: var(--td-text-color-secondary);font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.3;padding: 5px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;white-space: nowrap;&:hover:not(:disabled) {@@ -1342,7 +1342,7 @@ onUnmounted(() => {label {display: block;margin: 0 0 4px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1350,7 +1350,7 @@ onUnmounted(() => {.desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);}@@ -1366,7 +1366,7 @@ onUnmounted(() => {align-items: center;flex-wrap: wrap;gap: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);@@ -1387,12 +1387,12 @@ onUnmounted(() => {padding: 12px 16px;background: rgba(7, 193, 96, 0.06);border: 1px solid rgba(7, 193, 96, 0.2);- border-radius: 8px;- font-size: 14px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-base);color: var(--td-text-color-primary);.bound-icon {- font-size: 18px;+ font-size: var(--app-text-2xl);color: #07c160;}}@@ -1421,7 +1421,7 @@ onUnmounted(() => {width: 200px;height: 200px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;// QR code images are always black-on-white; force white background// so the code remains scannable in dark mode.@@ -1448,15 +1448,15 @@ onUnmounted(() => {background: rgba(0, 0, 0, 0.6);color: #fff;cursor: pointer;- font-size: 12px;+ font-size: var(--app-text-sm);.refresh-icon {- font-size: 24px;+ font-size: var(--app-text-4xl);}}.qr-hint {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);text-align: center;}@@ -1464,7 +1464,7 @@ onUnmounted(() => {<style lang="less">.im-channel-drawer .setting-drawer__header-icon:has(.drawer-platform-icon) {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}diff --git a/frontend/src/components/Input-field.browser.test.mjs b/frontend/src/components/Input-field.browser.test.mjsindex b16038623..b8b47dd0d 100644--- a/frontend/src/components/Input-field.browser.test.mjs+++ b/frontend/src/components/Input-field.browser.test.mjs@@ -29,7 +29,7 @@ test('mention button matches icon controls and the stream artifact count badge',assert.match(count, /right: -2px/)assert.match(count, /min-width: 14px/)assert.match(count, /height: 14px/)- assert.match(count, /font-size: 10px/)+ assert.match(count, /font-size: (?:10px|var\(--app-text-2xs\))/)assert.match(count, /border-radius: 7px/)assert.match(count, /font-variant-numeric: tabular-nums/)assert.doesNotMatch(count, /border: 2px solid/)diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vueindex 8464b8a26..0ba8265c1 100644--- a/frontend/src/components/Input-field.vue+++ b/frontend/src/components/Input-field.vue@@ -2971,8 +2971,8 @@ const getImgSrc = (url: string) => {box-sizing: border-box;max-height: 140px;overflow-y: auto;- background: var(--td-bg-color-secondarycontainer, #f5f5f5);- border: 1px solid var(--td-component-stroke, #dcdcdc);+ background: var(--td-bg-color-secondarycontainer);+ border: 1px solid var(--td-component-stroke);border-bottom: 0;border-radius: 10px 10px 0 0;}@@ -2985,13 +2985,13 @@ const getImgSrc = (url: string) => {}.steer-queue-item + .steer-queue-item {- border-top: 1px solid var(--td-component-stroke, #dcdcdc);+ border-top: 1px solid var(--td-component-stroke);}.steer-queue-text {flex: 1;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);white-space: nowrap;@@ -3008,7 +3008,7 @@ const getImgSrc = (url: string) => {.steer-queue-icon {flex-shrink: 0;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);}@@ -3020,17 +3020,16 @@ const getImgSrc = (url: string) => {height: 26px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);- font-size: 16px;+ font-size: var(--app-text-xl);cursor: pointer;&:hover:not(:disabled) { background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-primary); }&:disabled { opacity: 0.4; cursor: default; }}-.steer-sending { animation: steer-spin 1s linear infinite; }-@keyframes steer-spin { to { transform: rotate(360deg); } }+.steer-sending { animation: wk-spin 1s linear infinite; }@media (prefers-reduced-motion: reduce) { .steer-sending { animation: none; } }/* 富文本输入框容器 */@@ -3038,13 +3037,13 @@ const getImgSrc = (url: string) => {position: relative;width: 100%;max-width: 960px;- background: var(--td-bg-color-container, #FFF);- border-radius: 12px;- border: 1px solid var(--td-component-stroke, #dcdcdc);+ background: var(--td-bg-color-container);+ border-radius: var(--app-radius-xl);+ border: 1px solid var(--td-component-stroke);box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 16px -4px rgba(0, 0, 0, 0.06);&:focus-within {- border-color: var(--td-brand-color, #07C05F);+ border-color: var(--td-brand-color);}}@@ -3055,8 +3054,8 @@ const getImgSrc = (url: string) => {align-items: center;gap: 5px;padding: 6px 12px 6px;- border-bottom: 1px solid var(--td-component-stroke, #dcdcdc);- background: var(--td-bg-color-container, #fff);+ border-bottom: 1px solid var(--td-component-stroke);+ background: var(--td-bg-color-container);border-radius: 11px 11px 0 0;/* 与 .rich-input-container 内缘上边圆角一致(12px - 1px 边框) */}@@ -3069,12 +3068,12 @@ const getImgSrc = (url: string) => {gap: 5px;min-height: 26px;padding: 3px 7px 3px 6px;- border-radius: var(--td-radius-medium, 6px);+ border-radius: var(--td-radius-medium);box-sizing: border-box;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;cursor: default;- transition: background 0.15s, border-color 0.15s;+ transition: background var(--app-motion-fast), border-color var(--app-motion-fast);line-height: 18px;&:hover {@@ -3094,7 +3093,7 @@ const getImgSrc = (url: string) => {}.mention-chip__icon {- font-size: 12px;+ font-size: var(--app-text-sm);display: flex;align-items: center;justify-content: center;@@ -3108,7 +3107,7 @@ const getImgSrc = (url: string) => {width: 8px;height: 8px;border-radius: 50%;- background: var(--td-bg-color-secondarycontainer, #f0f2f5);+ background: var(--td-bg-color-secondarycontainer);box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);display: flex;align-items: center;@@ -3138,12 +3137,12 @@ const getImgSrc = (url: string) => {height: 14px;margin-left: 1px;border-radius: 50%;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1;font-weight: 400;cursor: pointer;opacity: 0.5;- transition: opacity 0.15s, background 0.15s, color 0.15s;+ transition: opacity var(--app-motion-fast), background var(--app-motion-fast), color var(--app-motion-fast);color: currentColor;flex-shrink: 0;}@@ -3155,7 +3154,7 @@ const getImgSrc = (url: string) => {.mention-chip__remove:hover {opacity: 1;background: var(--td-bg-color-component);- color: var(--td-text-color-primary, #1f2937);+ color: var(--td-text-color-primary);}/* 标签表面保持中性,仅用图标颜色表达资源类型。 */@@ -3164,7 +3163,7 @@ const getImgSrc = (url: string) => {}.mention-chip--kb .mention-chip__icon-wrap {- color: var(--td-brand-color, #07c05f);+ color: var(--td-brand-color);}.mention-chip--faq {@@ -3180,7 +3179,7 @@ const getImgSrc = (url: string) => {}.mention-chip--file .mention-chip__icon-wrap {- color: var(--td-text-color-secondary, #6b7280);+ color: var(--td-text-color-secondary);}.mention-chip--tag,@@ -3212,8 +3211,8 @@ const getImgSrc = (url: string) => {max-height: 152px !important;min-height: 72px !important;resize: none;- color: var(--td-text-color-primary, #000000e6);- font-size: 16px;+ color: var(--td-text-color-primary);+ font-size: var(--app-text-xl);font-weight: 400;line-height: 24px;font-family: var(--app-font-family);@@ -3230,9 +3229,9 @@ const getImgSrc = (url: string) => {}&::placeholder {- color: var(--td-text-color-placeholder, #00000066);+ color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 400;line-height: 24px;}@@ -3240,7 +3239,7 @@ const getImgSrc = (url: string) => {/* 当没有选中标签时,textarea 样式 */.rich-input-container:not(:has(.selected-tags-inline)) :deep(.t-textarea__inner) {- border-radius: 12px;+ border-radius: var(--app-radius-xl);padding-top: 16px;}@@ -3279,15 +3278,15 @@ const getImgSrc = (url: string) => {justify-content: center;gap: 4px;padding: 6px 10px;- border-radius: 6px;- color: var(--td-text-color-secondary, #666);+ border-radius: var(--app-radius-sm);+ color: var(--td-text-color-secondary);cursor: pointer;- transition: background 0.12s, color 0.12s;+ transition: background var(--app-motion-instant), color var(--app-motion-instant);user-select: none;flex-shrink: 0;&:hover {- background: var(--td-bg-color-secondarycontainer-hover, #e6e6e6);+ background: var(--td-bg-color-secondarycontainer-hover);}&.disabled {@@ -3295,7 +3294,7 @@ const getImgSrc = (url: string) => {cursor: not-allowed;&:hover {- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);}}}@@ -3306,7 +3305,7 @@ const getImgSrc = (url: string) => {min-width: auto;font-weight: 500;position: relative;- border: .5px solid var(--td-component-border, #e7e7e7);+ border: .5px solid var(--td-component-border);}.agent-icon {@@ -3323,12 +3322,12 @@ const getImgSrc = (url: string) => {height: 20px;border-radius: 5px;flex-shrink: 0;- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);}.agent-mode-text {- font-size: 13px;- color: var(--td-text-color-secondary, #666);+ font-size: var(--app-text-md);+ color: var(--td-text-color-secondary);font-weight: 500;white-space: nowrap;margin: 0 4px;@@ -3347,7 +3346,7 @@ const getImgSrc = (url: string) => {position: relative;&:hover:not(.disabled):not(.active) {- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);}&.active {@@ -3365,7 +3364,7 @@ const getImgSrc = (url: string) => {opacity: 0.85;&:hover {- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);}&.active:hover {@@ -3389,7 +3388,7 @@ const getImgSrc = (url: string) => {border-radius: 7px;background: var(--td-brand-color);color: var(--td-text-color-anti);- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1;font-variant-numeric: tabular-nums;@@ -3397,8 +3396,8 @@ const getImgSrc = (url: string) => {}.kb-btn-text {- font-size: 13px;- color: var(--td-text-color-secondary, #666);+ font-size: var(--app-text-md);+ color: var(--td-text-color-secondary);font-weight: 500;white-space: nowrap;}@@ -3417,11 +3416,11 @@ const getImgSrc = (url: string) => {align-items: center;justify-content: center;position: relative;- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);&:hover {- background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);- color: var(--td-text-color-primary, #333);+ background: var(--td-bg-color-secondarycontainer-hover);+ color: var(--td-text-color-primary);}&.active {@@ -3435,7 +3434,7 @@ const getImgSrc = (url: string) => {right: -2px;background: #07C05F;color: #fff;- font-size: 10px;+ font-size: var(--app-text-2xs);width: 14px;height: 14px;border-radius: 50%;@@ -3456,11 +3455,11 @@ const getImgSrc = (url: string) => {align-items: center;justify-content: center;position: relative;- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);&:hover {- background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);- color: var(--td-text-color-primary, #333);+ background: var(--td-bg-color-secondarycontainer-hover);+ color: var(--td-text-color-primary);}&.active {@@ -3474,7 +3473,7 @@ const getImgSrc = (url: string) => {right: -2px;background: #07C05F;color: #fff;- font-size: 10px;+ font-size: var(--app-text-2xs);width: 14px;height: 14px;border-radius: 50%;@@ -3496,9 +3495,9 @@ const getImgSrc = (url: string) => {position: relative;width: 60px;height: 60px;- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;- border: 1px solid var(--td-border-level-1-color, #e7e7e7);+ border: 1px solid var(--td-border-level-1-color);.image-preview-thumb {width: 100%;@@ -3518,7 +3517,7 @@ const getImgSrc = (url: string) => {display: flex;align-items: center;justify-content: center;- font-size: 12px;+ font-size: var(--app-text-sm);cursor: pointer;line-height: 1;@@ -3535,7 +3534,7 @@ const getImgSrc = (url: string) => {background: transparent;&:hover:not(.disabled):not(.active) {- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);}&.active {@@ -3590,14 +3589,14 @@ const getImgSrc = (url: string) => {&:not(.active) {.websearch-icon {- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);}&:hover {- background: var(--td-bg-color-secondarycontainer-hover, #f0f0f0);+ background: var(--td-bg-color-secondarycontainer-hover);.websearch-icon {- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);}}}@@ -3607,7 +3606,7 @@ const getImgSrc = (url: string) => {opacity: 0.85;&:hover {- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);}&.active:hover {@@ -3619,7 +3618,7 @@ const getImgSrc = (url: string) => {:global(.input-field-tooltip) {.t-popup__content {box-shadow: var(--td-shadow-2);- border: .5px solid var(--td-component-border, #e7e7e7);+ border: .5px solid var(--td-component-border);}}@@ -3628,8 +3627,8 @@ const getImgSrc = (url: string) => {flex-direction: column;gap: 6px;max-width: 220px;- font-size: 12px;- color: var(--td-text-color-primary, #333);+ font-size: var(--app-text-sm);+ color: var(--td-text-color-primary);}:global(.tooltip-with-link a) {@@ -3651,7 +3650,7 @@ const getImgSrc = (url: string) => {width: 10px;height: 10px;margin-left: 2px;- transition: transform 0.12s;+ transition: transform var(--app-motion-instant);&.rotate {transform: rotate(180deg);@@ -3669,7 +3668,7 @@ const getImgSrc = (url: string) => {height: 28px;padding: 0;box-sizing: border-box;- font-size: 16px;+ font-size: var(--app-text-xl);line-height: 1;&:focus-visible {@@ -3718,13 +3717,13 @@ const getImgSrc = (url: string) => {padding: 2px 8px;min-width: 100px;height: 22px;- border-radius: 6px;- border: .5px solid var(--td-component-border, #e7e7e7);- transition: background 0.12s, border-color 0.12s;+ border-radius: var(--app-radius-sm);+ border: .5px solid var(--td-component-border);+ transition: background var(--app-motion-instant), border-color var(--app-motion-instant);cursor: pointer;&:hover {- background: var(--td-bg-color-secondarycontainer-hover, #e6e6e6);+ background: var(--td-bg-color-secondarycontainer-hover);}&.disabled {@@ -3732,16 +3731,16 @@ const getImgSrc = (url: string) => {cursor: not-allowed;&:hover {- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);}}}.model-selector-name {flex: 1;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;@@ -3749,9 +3748,9 @@ const getImgSrc = (url: string) => {.model-selector-ctx {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);font-weight: 400;&.is-default {@@ -3762,9 +3761,9 @@ const getImgSrc = (url: string) => {.model-dropdown-arrow {width: 10px;height: 10px;- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);flex-shrink: 0;- transition: transform 0.12s;+ transition: transform var(--app-motion-instant);&.rotate {transform: rotate(180deg);@@ -3772,7 +3771,7 @@ const getImgSrc = (url: string) => {}.model-selector-trigger.disabled .model-dropdown-arrow {- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);}.model-selector-overlay {@@ -3788,7 +3787,7 @@ const getImgSrc = (url: string) => {z-index: 10000;background: var(--td-bg-color-container);border: .5px solid var(--td-component-border);- border-radius: 10px;+ border-radius: var(--app-radius-lg);box-shadow: var(--td-shadow-2);overflow: hidden;display: flex;@@ -3819,7 +3818,7 @@ const getImgSrc = (url: string) => {padding: 8px 10px;border-bottom: .5px solid var(--td-component-stroke);background: var(--td-bg-color-container);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-secondary);}@@ -3839,17 +3838,17 @@ const getImgSrc = (url: string) => {align-items: center;gap: 4px;padding: 2px 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: .5px solid transparent;background: transparent;color: var(--td-brand-color);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;cursor: pointer;- transition: all 0.12s;+ transition: all var(--app-motion-instant);.add-icon {- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1;font-weight: 400;}@@ -3867,8 +3866,8 @@ const getImgSrc = (url: string) => {gap: 8px;padding: 6px 8px;cursor: pointer;- transition: background 0.12s;- border-radius: 6px;+ transition: background var(--app-motion-instant);+ border-radius: var(--app-radius-sm);margin-bottom: 4px;&:last-child {@@ -3919,7 +3918,7 @@ const getImgSrc = (url: string) => {}.model-option-name {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);white-space: nowrap;overflow: hidden;@@ -3928,19 +3927,19 @@ const getImgSrc = (url: string) => {}.model-option-raw-name {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);flex-shrink: 0;}.model-option-ctx {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);padding: 0 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);line-height: 18px;&.is-default {@@ -3960,10 +3959,10 @@ const getImgSrc = (url: string) => {.agent-mode-selector-dropdown {position: fixed !important;z-index: 9999;- background: var(--td-bg-color-container, #fff);- border-radius: 10px;- box-shadow: var(--td-shadow-2, 0 6px 28px rgba(15, 23, 42, 0.08));- border: 1px solid var(--td-component-border, #e7e9eb);+ background: var(--td-bg-color-container);+ border-radius: var(--app-radius-lg);+ box-shadow: var(--td-shadow-2);+ border: 1px solid var(--td-component-border);overflow: hidden;padding: 6px 8px;min-width: 200px;@@ -3980,13 +3979,13 @@ const getImgSrc = (url: string) => {justify-content: space-between;padding: 8px 10px;cursor: pointer;- transition: background 0.12s;- border-radius: 6px;+ transition: background var(--app-motion-instant);+ border-radius: var(--app-radius-sm);position: relative;margin: 4px 6px;&:hover:not(.disabled) {- background: var(--td-bg-color-container-hover, #f6f8f7);+ background: var(--td-bg-color-container-hover);}&.disabled {@@ -3999,7 +3998,7 @@ const getImgSrc = (url: string) => {}&.selected {- background: var(--td-brand-color-light, #eefdf5);+ background: var(--td-brand-color-light);.agent-mode-option-name {color: var(--td-success-color);@@ -4017,16 +4016,16 @@ const getImgSrc = (url: string) => {}.agent-mode-option-name {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;- color: var(--td-text-color-primary, #222);+ color: var(--td-text-color-primary);line-height: 1.4;- transition: color 0.12s;+ transition: color var(--app-motion-instant);}.agent-mode-option-desc {- font-size: 11px;- color: var(--td-text-color-secondary, #8b9196);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);line-height: 1.3;}@@ -4045,26 +4044,26 @@ const getImgSrc = (url: string) => {.warning-icon {color: var(--td-warning-color);- font-size: 14px;+ font-size: var(--app-text-base);}}.agent-mode-footer {padding: 6px 10px;- border-top: 1px solid var(--td-component-border, #f2f4f5);+ border-top: 1px solid var(--td-component-border);margin-top: 2px;- background: var(--td-bg-color-secondarycontainer, #fafcfc);+ background: var(--td-bg-color-secondarycontainer);}.agent-mode-link {color: var(--td-success-color);text-decoration: none;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;display: inline-flex;align-items: center;gap: 3px;- transition: all 0.12s;+ transition: all var(--app-motion-instant);&:hover {color: var(--td-brand-color-active);diff --git a/frontend/src/components/IntegrationsAgentFilter.vue b/frontend/src/components/IntegrationsAgentFilter.vueindex b662b2d57..97a31b649 100644--- a/frontend/src/components/IntegrationsAgentFilter.vue+++ b/frontend/src/components/IntegrationsAgentFilter.vue@@ -59,11 +59,11 @@ function onSelect(data: { value?: string }) {max-width: 220px;padding: 2px 6px 2px 4px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -90,7 +90,7 @@ function onSelect(data: { value?: string }) {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: inherit;}diff --git a/frontend/src/components/KBInfoPopover.vue b/frontend/src/components/KBInfoPopover.vueindex 8e98a4ee4..2b811cafa 100644--- a/frontend/src/components/KBInfoPopover.vue+++ b/frontend/src/components/KBInfoPopover.vue@@ -389,7 +389,7 @@ const statRows = computed<Array<{ key: string; label: string; value: number | stjustify-content: center;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;padding: 0;&:hover:not(:disabled) {@@ -415,11 +415,11 @@ const statRows = computed<Array<{ key: string; label: string; value: number | stheight: 7px;background: var(--td-error-color);border-radius: 50%;- border: 1.5px solid var(--td-bg-color-container, #fff);+ border: 1.5px solid var(--td-bg-color-container);}:deep(.t-icon) {- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -433,14 +433,14 @@ const statRows = computed<Array<{ key: string; label: string; value: number | stdisplay: flex;flex-direction: column;padding: 12px 16px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);overflow: hidden;}.kb-info-card-header {flex: 0 0 auto;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;margin-bottom: 8px;padding-bottom: 8px;@@ -477,7 +477,7 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st}.kb-info-card-body .setting-drawer__section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;@@ -531,8 +531,8 @@ const statRows = computed<Array<{ key: string; label: string; value: number | st}.kb-info-card-value-mono {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 11px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}@@ -541,15 +541,15 @@ const statRows = computed<Array<{ key: string; label: string; value: number | stalign-items: center;padding: 1px 6px;border-radius: 3px;- background: var(--td-bg-color-component, #f5f7fa);+ background: var(--td-bg-color-component);color: var(--td-text-color-secondary);- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 11px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-xs);line-height: 1.4;}.kb-info-card-hint {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}</style>diff --git a/frontend/src/components/KBSwitcherDropdown.vue b/frontend/src/components/KBSwitcherDropdown.vueindex f06ecd48d..b98d5a517 100644--- a/frontend/src/components/KBSwitcherDropdown.vue+++ b/frontend/src/components/KBSwitcherDropdown.vue@@ -110,13 +110,13 @@ const handleSelect = (id: string): void => {gap: 8px;padding: 6px 10px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;text-align: left;&:hover {@@ -124,7 +124,7 @@ const handleSelect = (id: string): void => {}&.active {- background: var(--td-brand-color-light, rgba(0, 82, 217, 0.08));+ background: var(--td-brand-color-light);color: var(--td-brand-color);font-weight: 500;}@@ -154,7 +154,7 @@ const handleSelect = (id: string): void => {.kb-switcher-empty {padding: 16px;text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}</style>diff --git a/frontend/src/components/KnowledgeBaseSelector.vue b/frontend/src/components/KnowledgeBaseSelector.vueindex 98fc31d76..ef55f06d5 100644--- a/frontend/src/components/KnowledgeBaseSelector.vue+++ b/frontend/src/components/KnowledgeBaseSelector.vue@@ -369,7 +369,7 @@ watch(() => props.visible, async (v) => {position: fixed !important;background: var(--td-bg-color-container);border: .5px solid var(--td-component-border);- border-radius: 10px;+ border-radius: var(--app-radius-lg);box-shadow: var(--td-shadow-2);overflow: hidden;animation: fadeIn 0.15s ease-out;@@ -389,12 +389,12 @@ watch(() => props.visible, async (v) => {.kb-search-input {width: 100%;padding: 6px 10px;- font-size: 12px;+ font-size: var(--app-text-sm);border: .5px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);outline: none;- transition: border 0.12s;+ transition: border var(--app-motion-instant);}.kb-search-input:focus {border-color: var(--td-success-color);@@ -416,9 +416,9 @@ watch(() => props.visible, async (v) => {display: flex;align-items: center;padding: 6px 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- transition: background 0.12s;+ transition: background var(--app-motion-instant);margin-bottom: 4px;}.kb-item:last-child { margin-bottom: 0; }@@ -466,10 +466,10 @@ watch(() => props.visible, async (v) => {}}.kb-name-wrap { display:flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; }-.kb-name { font-size: 12px; color: var(--td-text-color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }-.kb-docs { font-size: 11px; color: var(--td-text-color-placeholder); flex-shrink: 0; }+.kb-name { font-size: var(--app-text-sm); color: var(--td-text-color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }+.kb-docs { font-size: var(--app-text-xs); color: var(--td-text-color-placeholder); flex-shrink: 0; }-.kb-empty { padding: 20px 8px; text-align: center; color: var(--td-text-color-placeholder); font-size: 12px; }+.kb-empty { padding: 20px 8px; text-align: center; color: var(--td-text-color-placeholder); font-size: var(--app-text-sm); }.kb-actions {display: flex;@@ -481,13 +481,13 @@ watch(() => props.visible, async (v) => {.kb-btn {flex: 1;padding: 6px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-container);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);cursor: pointer;- transition: all 0.12s;+ transition: all var(--app-motion-instant);}.kb-btn:hover {border-color: var(--td-success-color);diff --git a/frontend/src/components/ListSpaceSidebar.vue b/frontend/src/components/ListSpaceSidebar.vueindex a8e4a27d8..71fda20ca 100644--- a/frontend/src/components/ListSpaceSidebar.vue+++ b/frontend/src/components/ListSpaceSidebar.vue@@ -339,7 +339,7 @@ onBeforeUnmount(() => {border-radius: 1px;background: var(--td-bg-color-component-disabled);opacity: 0.45;- transition: opacity 0.2s ease, background 0.2s ease;+ transition: opacity var(--app-motion-base) ease, background var(--app-motion-base) ease;}/* ========== Icon strip (collapsed) ========== */@@ -364,7 +364,7 @@ onBeforeUnmount(() => {.icon-item-labeled {width: 46px;padding: 5px 0 2px;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: flex;flex-direction: column;align-items: center;@@ -372,7 +372,7 @@ onBeforeUnmount(() => {gap: 2px;cursor: pointer;color: var(--td-text-color-secondary);- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;flex-shrink: 0;&:hover {@@ -396,12 +396,12 @@ onBeforeUnmount(() => {:deep(.space-avatar) {width: 20px;height: 20px;- font-size: 10px;+ font-size: var(--app-text-2xs);}}.icon-label {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.25;color: var(--td-text-color-secondary);max-width: 52px;@@ -409,7 +409,7 @@ onBeforeUnmount(() => {text-overflow: ellipsis;white-space: nowrap;text-align: center;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}@@ -448,9 +448,9 @@ onBeforeUnmount(() => {border-radius: 7px;color: var(--td-text-color-primary);cursor: pointer;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);-webkit-font-smoothing: antialiased;.item-left {@@ -464,8 +464,8 @@ onBeforeUnmount(() => {.item-icon {flex-shrink: 0;color: var(--td-text-color-secondary);- font-size: 14px;- transition: color 0.15s ease;+ font-size: var(--app-text-base);+ transition: color var(--app-motion-fast) ease;}.item-avatar {@@ -478,22 +478,22 @@ onBeforeUnmount(() => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 430;line-height: 1.4;letter-spacing: 0.01em;}.item-count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);font-weight: 500;padding: 2px 7px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);margin-left: 6px;flex-shrink: 0;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;}&:hover {@@ -541,7 +541,7 @@ onBeforeUnmount(() => {border-top: 1px solid var(--td-component-stroke);.section-title {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);font-weight: 600;line-height: 1.4;diff --git a/frontend/src/components/MentionSelector.vue b/frontend/src/components/MentionSelector.vueindex 9e2dd1ad5..3ead6a8ba 100644--- a/frontend/src/components/MentionSelector.vue+++ b/frontend/src/components/MentionSelector.vue@@ -585,9 +585,9 @@ const scrollToItem = (index: number) => {.mention-menu {position: fixed;z-index: 10000;- background: var(--td-bg-color-container, #fff);- border: 1px solid var(--td-component-stroke, #e7e9eb);- border-radius: var(--td-radius-extraLarge, 12px);+ background: var(--td-bg-color-container);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--td-radius-extraLarge);box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);width: 220px;max-height: 388px;@@ -610,11 +610,11 @@ const scrollToItem = (index: number) => {margin: 1px 6px;padding: 0 8px;border: 0;- border-radius: var(--td-radius-medium, 6px);+ border-radius: var(--td-radius-medium);background: transparent;- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: var(--td-font-size-body-medium, 14px);+ font-size: var(--td-font-size-body-medium);font-weight: 400;line-height: 20px;cursor: pointer;@@ -622,13 +622,13 @@ const scrollToItem = (index: number) => {display: flex;align-items: center;gap: 8px;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;}.mention-group-entry:hover,.mention-group-entry.active,.mention-back-row:hover {- background: var(--td-bg-color-secondarycontainer, #f3f3f3);+ background: var(--td-bg-color-secondarycontainer);}.mention-group-entry__icon {@@ -638,8 +638,8 @@ const scrollToItem = (index: number) => {display: inline-flex;align-items: center;justify-content: center;- color: var(--td-text-color-secondary, #666);- font-size: 16px;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-xl);}.mention-group-entry__label,@@ -658,10 +658,10 @@ const scrollToItem = (index: number) => {flex-shrink: 0;min-width: 18px;padding: 0 6px;- border-radius: 999px;- background: var(--td-bg-color-secondarycontainer, #f3f3f3);- color: var(--td-text-color-placeholder, #999);- font-size: var(--td-font-size-mark-small, 12px);+ border-radius: var(--app-radius-pill);+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-placeholder);+ font-size: var(--td-font-size-mark-small);line-height: 18px;text-align: center;font-variant-numeric: tabular-nums;@@ -669,20 +669,20 @@ const scrollToItem = (index: number) => {.mention-group-entry__arrow {flex-shrink: 0;- color: var(--td-text-color-placeholder, #999);- font-size: 16px;+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-xl);}.mention-back-row {min-height: 30px;margin-bottom: 4px;- color: var(--td-text-color-secondary, #666);- border-bottom: 1px solid var(--td-component-stroke, #f0f0f0);+ color: var(--td-text-color-secondary);+ border-bottom: 1px solid var(--td-component-stroke);border-radius: 0;}.mention-back-row span {- font-size: var(--td-font-size-body-medium, 14px);+ font-size: var(--td-font-size-body-medium);}.mention-group {@@ -690,15 +690,15 @@ const scrollToItem = (index: number) => {}.mention-group:not(:last-child) {- border-bottom: 1px solid var(--td-component-stroke, #f0f0f0);+ border-bottom: 1px solid var(--td-component-stroke);}.mention-group-header {padding: 7px 14px 5px;- font-size: var(--td-font-size-mark-small, 12px);+ font-size: var(--td-font-size-mark-small);font-weight: 600;line-height: 18px;- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);}.mention-item {@@ -710,20 +710,20 @@ const scrollToItem = (index: number) => {margin: 1px 6px;box-sizing: border-box;cursor: pointer;- border-radius: var(--td-radius-medium, 6px);- color: var(--td-text-color-primary, #333);- font-size: var(--td-font-size-body-medium, 14px);+ border-radius: var(--td-radius-medium);+ color: var(--td-text-color-primary);+ font-size: var(--td-font-size-body-medium);font-family: var(--app-font-family);- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;}.mention-item:hover {- background: var(--td-bg-color-secondarycontainer, #f3f3f3);+ background: var(--td-bg-color-secondarycontainer);}.mention-item.active {- background: var(--td-bg-color-secondarycontainer, #f3f3f3);- color: var(--td-text-color-primary, #333);+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-primary);}.icon-wrap {@@ -740,7 +740,7 @@ const scrollToItem = (index: number) => {width: 18px;height: 18px;flex-shrink: 0;- font-size: 16px;+ font-size: var(--app-text-xl);}/* 右下角组织角标:柔和小圆 + 绿色/灰色 icon,不刺眼 */@@ -751,7 +751,7 @@ const scrollToItem = (index: number) => {width: 10px;height: 10px;border-radius: 50%;- background: var(--td-bg-color-secondarycontainer, #f0f2f5);+ background: var(--td-bg-color-secondarycontainer);box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);display: flex;align-items: center;@@ -773,7 +773,7 @@ const scrollToItem = (index: number) => {.skill-icon,.tag-icon {background: transparent;- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);}.mention-item.active .icon {@@ -808,13 +808,13 @@ const scrollToItem = (index: number) => {.count {margin-left: auto;flex-shrink: 0;- font-size: var(--td-font-size-mark-small, 12px);+ font-size: var(--td-font-size-mark-small);font-variant-numeric: tabular-nums;- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);}.count.is-stale {- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}.org-name {@@ -823,8 +823,8 @@ const scrollToItem = (index: number) => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: var(--td-font-size-mark-small, 12px);- color: var(--td-text-color-placeholder, #999);+ font-size: var(--td-font-size-mark-small);+ color: var(--td-text-color-placeholder);}.kb-name {@@ -833,15 +833,15 @@ const scrollToItem = (index: number) => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: var(--td-font-size-mark-small, 12px);- color: var(--td-text-color-secondary, #999);+ font-size: var(--td-font-size-mark-small);+ color: var(--td-text-color-secondary);}.empty {padding: 28px 16px;text-align: center;- color: var(--td-text-color-placeholder, #999);- font-size: var(--td-font-size-body-medium, 14px);+ color: var(--td-text-color-placeholder);+ font-size: var(--td-font-size-body-medium);}.loading-more {@@ -858,23 +858,23 @@ const scrollToItem = (index: number) => {max-width: 280px;padding: 13px 14px;border: 1px solid var(--td-component-stroke);- border-radius: var(--td-radius-large, 9px);+ border-radius: var(--td-radius-large);background: var(--td-bg-color-container);box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);}.mention-detail-content {- font-size: var(--td-font-size-body-small, 12px);- color: var(--td-text-color-primary, #333);+ font-size: var(--td-font-size-body-small);+ color: var(--td-text-color-primary);line-height: 1.5;}.mention-detail-content .detail-loading,.mention-detail-content .detail-error {padding: 8px 0;- color: var(--td-text-color-secondary, #999);- font-size: var(--td-font-size-body-small, 12px);+ color: var(--td-text-color-secondary);+ font-size: var(--td-font-size-body-small);}.mention-detail-content .detail-error {- color: var(--td-error-color, #e34d59);+ color: var(--td-error-color);}.mention-detail-content .detail-header {display: flex;@@ -885,7 +885,7 @@ const scrollToItem = (index: number) => {}.mention-detail-content .detail-name {font-weight: 600;- font-size: var(--td-font-size-body-medium, 14px);+ font-size: var(--td-font-size-body-medium);line-height: 20px;word-break: break-word;}@@ -893,8 +893,8 @@ const scrollToItem = (index: number) => {flex-shrink: 0;padding: 1px 6px;border: 1px solid var(--td-component-stroke);- border-radius: var(--td-radius-medium, 6px);- font-size: var(--td-font-size-mark-small, 12px);+ border-radius: var(--td-radius-medium);+ font-size: var(--td-font-size-mark-small);line-height: 18px;}.mention-detail-content .detail-type-badge.doc {@@ -908,8 +908,8 @@ const scrollToItem = (index: number) => {}.mention-detail-content .detail-desc {margin: 0 0 8px;- font-size: var(--td-font-size-body-small, 12px);- color: var(--td-text-color-secondary, #666);+ font-size: var(--td-font-size-body-small);+ color: var(--td-text-color-secondary);line-height: 1.5;display: -webkit-box;-webkit-line-clamp: 4;@@ -919,8 +919,8 @@ const scrollToItem = (index: number) => {word-break: break-word;}.mention-detail-content .detail-meta {- font-size: var(--td-font-size-mark-small, 12px);- color: var(--td-text-color-placeholder, #999);+ font-size: var(--td-font-size-mark-small);+ color: var(--td-text-color-placeholder);display: flex;flex-direction: column;gap: 5px;@@ -929,8 +929,8 @@ const scrollToItem = (index: number) => {.mention-detail-content .detail-readonly-hint {display: block;margin-top: 6px;- font-size: var(--td-font-size-mark-small, 12px);- color: var(--td-text-color-placeholder, #999);+ font-size: var(--td-font-size-mark-small);+ color: var(--td-text-color-placeholder);font-style: italic;}@@ -944,8 +944,8 @@ const scrollToItem = (index: number) => {}.mention-detail-content .detail-icon {flex-shrink: 0;- font-size: 14px;- color: var(--td-text-color-placeholder, #999);+ font-size: var(--app-text-base);+ color: var(--td-text-color-placeholder);margin-right: 2px;display: inline-flex;align-items: center;@@ -960,14 +960,14 @@ const scrollToItem = (index: number) => {width: 14px;height: 14px;margin-right: 2px;- color: var(--td-text-color-placeholder, #000000);+ color: var(--td-text-color-placeholder);opacity: 0.7;display: inline-block;vertical-align: middle;object-fit: contain;}.mention-detail-content .detail-label {- color: var(--td-text-color-placeholder, #999);+ color: var(--td-text-color-placeholder);flex-shrink: 0;line-height: 1.5;display: inline-flex;@@ -985,14 +985,14 @@ const scrollToItem = (index: number) => {.mention-detail-content .detail-value.clickable {cursor: pointer;text-decoration: underline;- text-decoration-color: var(--td-text-color-placeholder, #999);- transition: color 0.2s, text-decoration-color 0.2s;+ text-decoration-color: var(--td-text-color-placeholder);+ transition: color var(--app-motion-base), text-decoration-color var(--app-motion-base);}.mention-detail-content .detail-value.clickable:hover {- color: var(--td-brand-color, #07c05f);- text-decoration-color: var(--td-brand-color, #07c05f);+ color: var(--td-brand-color);+ text-decoration-color: var(--td-brand-color);}.mention-detail-content .detail-stale {- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}</style>diff --git a/frontend/src/components/ModelDebugDrawer.vue b/frontend/src/components/ModelDebugDrawer.vueindex 0b562dea1..55cc000f8 100644--- a/frontend/src/components/ModelDebugDrawer.vue+++ b/frontend/src/components/ModelDebugDrawer.vue@@ -476,7 +476,7 @@ onBeforeUnmount(() => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -484,7 +484,7 @@ onBeforeUnmount(() => {.form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -506,16 +506,16 @@ onBeforeUnmount(() => {padding: 6px 12px;min-height: 32px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;cursor: pointer;- transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&__icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;}@@ -524,7 +524,7 @@ onBeforeUnmount(() => {}&:hover:not(.is-active) {- border-color: var(--td-brand-color-3, var(--td-brand-color));+ border-color: var(--td-brand-color-3);color: var(--td-text-color-primary);}@@ -557,7 +557,7 @@ onBeforeUnmount(() => {&__meta {flex-shrink: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -602,12 +602,12 @@ onBeforeUnmount(() => {gap: 8px;padding: 5px 10px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);cursor: pointer;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);&__label {color: var(--td-text-color-primary);@@ -630,8 +630,8 @@ onBeforeUnmount(() => {align-items: center;gap: 10px;padding: 10px 12px;- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);&--ok {background: var(--td-success-color-light);@@ -658,7 +658,7 @@ onBeforeUnmount(() => {span {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}}}@@ -672,16 +672,16 @@ onBeforeUnmount(() => {.metric-chip {padding: 2px 8px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);}.result-error {margin: 10px 0 0;color: var(--td-error-color);- font-size: 13px;+ font-size: var(--app-text-md);white-space: pre-wrap;}@@ -700,7 +700,7 @@ onBeforeUnmount(() => {margin: 8px 0 0;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;diff --git a/frontend/src/components/ModelEditorDialog.vue b/frontend/src/components/ModelEditorDialog.vueindex 30add2685..5b27b0214 100644--- a/frontend/src/components/ModelEditorDialog.vue+++ b/frontend/src/components/ModelEditorDialog.vue@@ -260,23 +260,15 @@above and the 自定义请求头 controls below — no more"card inside a card" feel.Create mode: the resource doesn't exist yet, so we render a- plain password input with a leading lock icon and a trailing- show/hide eye toggle.+ plain password input with a leading lock icon; TDesign's password+ input provides the show/hide toggle.--><CredentialResource v-if="isEdit && props.modelData?.id" :api="credentialApi" :fields="credentialFields":meta="credentialMeta" @changed="invalidateConnectionTest()" />- <t-input v-else v-model="formData.apiKey" :type="showApiKey ? 'text' : 'password'"+ <t-input v-else v-model="formData.apiKey" type="password":placeholder="isSignedRerank ? signedRerankAccessKeyPlaceholder : apiKeyPlaceholder"class="api-key-input" autocomplete="off" spellcheck="false"><template #prefix-icon><t-icon name="lock-on" /></template>- <template #suffix-icon>- <t-icon- :name="showApiKey ? 'browse-off' : 'browse'"- class="api-key-toggle"- :aria-label="showApiKey ? 'Hide' : 'Show'"- @click.stop="showApiKey = !showApiKey"- />- </template></t-input><p v-if="isSignedRerank" class="form-desc">{{ signedRerankCredentialHint }}</p></div>@@ -862,7 +854,6 @@ watch(() => props.visible && saving.value, (locked) => {// affordance for everyday use. Reset every time the drawer closes (see// reset block in the visible watcher) so we never leak the previous value// across editor sessions.-const showApiKey = ref(false)const modelChecked = ref(false)const modelAvailable = ref(false)const checking = ref(false)@@ -1229,7 +1220,6 @@ const resetForm = () => {dimensionChecked.value = falsedimensionSuccess.value = falsedimensionMessage.value = ''- showApiKey.value = false}// 处理厂商选择变化 (自动填充默认 URL)@@ -1813,7 +1803,7 @@ const handleCancel = () => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1842,16 +1832,16 @@ const handleCancel = () => {padding: 6px 12px;min-height: 32px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;cursor: pointer;- transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&__icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;}@@ -1860,7 +1850,7 @@ const handleCancel = () => {}&:hover:not(.is-active) {- border-color: var(--td-brand-color-3, var(--td-brand-color));+ border-color: var(--td-brand-color-3);color: var(--td-text-color-primary);}@@ -1886,7 +1876,7 @@ const handleCancel = () => {padding: 3px;background: var(--td-bg-color-component);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.source-option {@@ -1897,13 +1887,13 @@ const handleCancel = () => {height: 28px;background: transparent;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;font-family: inherit;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;&:hover:not(.is-disabled):not(.is-active) {color: var(--td-text-color-primary);@@ -1925,7 +1915,7 @@ const handleCancel = () => {}.source-option__icon {- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;}@@ -1940,7 +1930,7 @@ const handleCancel = () => {:deep(.t-textarea),:deep(.t-input-number) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}// 厂商选择器样式 — 移至非 scoped 块,因为 t-select popup 渲染到 body 下@@ -1948,10 +1938,10 @@ const handleCancel = () => {// 复选框:deep(.t-checkbox) {- font-size: 13px;+ font-size: var(--app-text-md);.t-checkbox__label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}}@@ -1968,15 +1958,6 @@ const handleCancel = () => {color: var(--td-text-color-placeholder);}- .api-key-toggle {- cursor: pointer;- transition: color 0.15s ease;- font-size: 16px;-- &:hover {- color: var(--td-text-color-primary);- }- }}// API 测试区域 — 弱卡片化:用浅底 + dashed 边把"操作 + 反馈"框成一块,@@ -1990,10 +1971,10 @@ const handleCancel = () => {padding: 10px 12px;background: var(--td-bg-color-container-hover);border: 1px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);.test-message {- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;flex: 1;@@ -2009,13 +1990,13 @@ const handleCancel = () => {:deep(.t-button) {min-width: 88px;height: 32px;- font-size: 13px;- border-radius: 6px;+ font-size: var(--app-text-md);+ border-radius: var(--app-radius-sm);flex-shrink: 0;}.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -2029,7 +2010,7 @@ const handleCancel = () => {}.connection-status {- font-size: 12px;+ font-size: var(--app-text-sm);&.success { color: var(--td-brand-color-active); }&.error { color: var(--td-error-color); }}@@ -2037,7 +2018,7 @@ const handleCancel = () => {.connection-hint {margin: 0 0 8px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}@@ -2048,7 +2029,7 @@ const handleCancel = () => {border-radius: var(--td-radius-default);background: var(--td-error-color-1);color: var(--td-error-color);- font-size: 12px;+ font-size: var(--app-text-sm);text-align: left;&__header {@@ -2070,7 +2051,7 @@ const handleCancel = () => {// Status icon variant used inside the footer button..status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -2088,8 +2069,8 @@ const handleCancel = () => {align-items: flex-start;gap: 10px;padding: 12px 14px;- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;@@ -2101,13 +2082,13 @@ const handleCancel = () => {}&--warn {- background: var(--td-warning-color-light, #fff7ed);- border: 1px solid var(--td-warning-color-focus, #fed7aa);- border-left: 3px solid var(--td-warning-color, #f97316);+ background: var(--td-warning-color-light);+ border: 1px solid var(--td-warning-color-focus);+ border-left: 3px solid var(--td-warning-color);}.hint-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;margin-top: 2px;@@ -2116,7 +2097,7 @@ const handleCancel = () => {}&--warn {- color: var(--td-warning-color, #f97316);+ color: var(--td-warning-color);}&--loading {@@ -2134,25 +2115,25 @@ const handleCancel = () => {padding: 4px 0;.downloaded-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);flex-shrink: 0;}.download-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);flex-shrink: 0;}.model-name {flex: 1;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}.model-size {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);margin-left: auto;}@@ -2173,13 +2154,13 @@ const handleCancel = () => {padding: 0 4px;.spinning {- animation: spin 1s linear infinite;- font-size: 14px;+ animation: wk-spin 1s linear infinite;+ font-size: var(--app-text-base);color: var(--td-brand-color);}.progress-text {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-brand-color);}@@ -2198,8 +2179,8 @@ const handleCancel = () => {top: 0;bottom: 0;width: var(--progress, 0%);- background: linear-gradient(90deg, rgba(7, 192, 95, 0.08), rgba(7, 192, 95, 0.15));- transition: width 0.3s ease;+ background: linear-gradient(90deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent), color-mix(in srgb, var(--td-brand-color) 15%, transparent));+ transition: width var(--app-motion-slow) ease;z-index: 0;border-radius: 5px 0 0 5px;}@@ -2227,16 +2208,6 @@ const handleCancel = () => {flex-shrink: 0;}-@keyframes spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}-// 维度控制样式.dimension-control {display: flex;@@ -2254,7 +2225,7 @@ const handleCancel = () => {.dimension-hint {margin: 8px 0 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-error-color);@@ -2273,7 +2244,7 @@ const handleCancel = () => {.custom-headers-desc {margin: 0 0 10px 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -2306,7 +2277,7 @@ const handleCancel = () => {height: 32px;padding: 0;color: var(--td-text-color-placeholder);- border-radius: 6px;+ border-radius: var(--app-radius-sm);transition: all 0.18s ease;&:hover {@@ -2318,7 +2289,7 @@ const handleCancel = () => {.form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -2352,12 +2323,12 @@ const handleCancel = () => {padding: 10px 12px;background: var(--td-error-color-light);border: 1px solid var(--td-error-color-focus);- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);.tip-icon {color: var(--td-error-color);- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;margin-right: 2px;@@ -2385,7 +2356,7 @@ const handleCancel = () => {:deep(.tip-link) {color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;padding: 4px 6px 4px 10px !important;min-height: auto !important;@@ -2396,20 +2367,20 @@ const handleCancel = () => {display: inline-flex !important;align-items: center !important;gap: 1px;- border-radius: 4px;- transition: all 0.2s ease;+ border-radius: var(--app-radius-xs);+ transition: all var(--app-motion-base) ease;&:hover {- background: rgba(7, 192, 95, 0.08) !important;+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent) !important;color: var(--td-brand-color-active) !important;}&:active {- background: rgba(7, 192, 95, 0.12) !important;+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent) !important;}.t-icon {- font-size: 14px !important;+ font-size: var(--app-text-base) !important;margin: 0 !important;line-height: 1 !important;display: inline-flex !important;@@ -2426,7 +2397,7 @@ const handleCancel = () => {:deep(.t-checkbox__label) {color: var(--td-error-color);- font-size: 13px;+ font-size: var(--app-text-md);}}</style>@@ -2441,7 +2412,7 @@ const handleCancel = () => {.t-select-option {height: auto !important;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);margin: 2px 0;white-space: normal;}@@ -2455,12 +2426,12 @@ const handleCancel = () => {min-width: 0;&__title {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}&__hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);word-break: break-word;}@@ -2481,10 +2452,10 @@ const handleCancel = () => {.t-select-option {height: auto !important;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);margin: 2px 0;outline: none;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:focus,&:focus-visible {@@ -2528,14 +2499,14 @@ const handleCancel = () => {min-width: 0;.provider-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 20px;}.provider-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 18px;white-space: nowrap;diff --git a/frontend/src/components/ModelSelector.vue b/frontend/src/components/ModelSelector.vueindex b855f5195..77525d1b9 100644--- a/frontend/src/components/ModelSelector.vue+++ b/frontend/src/components/ModelSelector.vue@@ -186,19 +186,19 @@ onMounted(() => {gap: 8px;.model-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);}.add-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);}.model-name {flex: 0 1 auto;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;@@ -207,7 +207,7 @@ onMounted(() => {.model-raw-name {flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);overflow: hidden;text-overflow: ellipsis;@@ -228,12 +228,12 @@ onMounted(() => {.model-ctx {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);padding: 0 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);line-height: 18px;&--default {diff --git a/frontend/src/components/MyInvitationsDialog.vue b/frontend/src/components/MyInvitationsDialog.vueindex fe217a7f0..751c0327d 100644--- a/frontend/src/components/MyInvitationsDialog.vue+++ b/frontend/src/components/MyInvitationsDialog.vue@@ -216,7 +216,7 @@ watch(<style lang="less" scoped>.my-invitations-desc {color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;margin: 0 0 16px 0;}@@ -255,7 +255,7 @@ watch(padding: 12px 14px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);.invitation-card-main {flex: 1 1 auto;@@ -272,7 +272,7 @@ watch(flex-wrap: wrap;.tenant-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -283,7 +283,7 @@ watch(flex-direction: column;gap: 3px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);.meta-row {display: inline-flex;diff --git a/frontend/src/components/PromptTemplateSelector.vue b/frontend/src/components/PromptTemplateSelector.vueindex 57b8c0e2b..c1d08d044 100644--- a/frontend/src/components/PromptTemplateSelector.vue+++ b/frontend/src/components/PromptTemplateSelector.vue@@ -231,7 +231,7 @@ onMounted(() => {align-items: center;gap: 3px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);height: 26px;padding: 0 6px;@@ -246,7 +246,7 @@ onMounted(() => {}:deep(.t-icon) {- font-size: 14px;+ font-size: var(--app-text-base);vertical-align: middle;line-height: 1;}@@ -258,7 +258,7 @@ onMounted(() => {gap: 4px;color: var(--td-text-color-secondary);border-color: var(--td-component-stroke);- font-size: 12px;+ font-size: var(--app-text-sm);height: 26px;padding: 0 8px;background: var(--td-bg-color-container);@@ -296,7 +296,7 @@ onMounted(() => {}.template-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}@@ -306,7 +306,7 @@ onMounted(() => {padding: 40px 16px;text-align: center;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.template-list {@@ -317,9 +317,9 @@ onMounted(() => {.template-item {padding: 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;margin-bottom: 4px;&:last-child {@@ -340,7 +340,7 @@ onMounted(() => {}.template-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}@@ -350,8 +350,8 @@ onMounted(() => {align-items: center;gap: 3px;padding: 2px 6px;- border-radius: 4px;- font-size: 11px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-xs);&.kb-tag {background: var(--td-brand-color-light);@@ -371,7 +371,7 @@ onMounted(() => {}.template-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;diff --git a/frontend/src/components/ProtectedResourcePreview.vue b/frontend/src/components/ProtectedResourcePreview.vueindex 621b8a7df..b3db0465a 100644--- a/frontend/src/components/ProtectedResourcePreview.vue+++ b/frontend/src/components/ProtectedResourcePreview.vue@@ -35,13 +35,13 @@ onUnmounted(() => window.removeEventListener(RESOURCE_PREVIEW_EVENT, open))align-items: center;max-width: 100%;padding: 14px 18px;- border: 1px solid var(--td-component-border, #ddd);- border-radius: 10px;- color: var(--td-text-color-primary, #222);- background: var(--td-bg-color-container, #fff);+ border: 1px solid var(--td-component-border);+ border-radius: var(--app-radius-lg);+ color: var(--td-text-color-primary);+ background: var(--td-bg-color-container);overflow-wrap: anywhere;text-decoration: none;}.protected-resource-card::before { content: '↗'; margin-right: 12px; }-.protected-resource-card:hover { border-color: var(--td-brand-color, #07c160); }+.protected-resource-card:hover { border-color: var(--td-brand-color); }</style>diff --git a/frontend/src/components/ResourceOriginBadge.vue b/frontend/src/components/ResourceOriginBadge.vueindex e41e39a31..569768663 100644--- a/frontend/src/components/ResourceOriginBadge.vue+++ b/frontend/src/components/ResourceOriginBadge.vue@@ -130,8 +130,8 @@ const tooltipText = computed(() => {align-items: center;gap: 3px;padding: 1px 6px;- border-radius: 8px;- font-size: 11px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-xs);line-height: 1.4;font-weight: 500;max-width: 140px;@@ -162,8 +162,8 @@ const tooltipText = computed(() => {}&.origin-space {- color: var(--td-warning-color-7, #b86e02);- background: var(--td-warning-color-1, #fff7e6);+ color: var(--td-warning-color-7);+ background: var(--td-warning-color-1);}&.origin-shared {diff --git a/frontend/src/components/SandboxCommandProgress.vue b/frontend/src/components/SandboxCommandProgress.vueindex 3087fdb05..1f0bde5a8 100644--- a/frontend/src/components/SandboxCommandProgress.vue+++ b/frontend/src/components/SandboxCommandProgress.vue@@ -37,15 +37,15 @@ onUnmounted(() => clearInterval(timer))min-width: 0;margin: 8px 0;padding: 8px 10px;- border-radius: 4px;- background: var(--td-bg-color-secondarycontainer, #f7f7f7);- color: var(--td-text-color-secondary, #666);- font-size: 12px;+ border-radius: var(--app-radius-xs);+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-sm);line-height: 1.5;code, pre {font-family: var(--td-font-family-code, monospace);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.6;}@@ -64,7 +64,7 @@ onUnmounted(() => clearInterval(timer))padding-top: 8px;overflow: auto;overscroll-behavior: contain;- border-top: 1px solid var(--td-component-stroke, #e7e7e7);+ border-top: 1px solid var(--td-component-stroke);white-space: pre-wrap;overflow-wrap: anywhere;}@@ -78,8 +78,8 @@ onUnmounted(() => clearInterval(timer))}.sandbox-command-elapsed {flex-shrink: 0;- color: var(--td-text-color-placeholder, #999);- font-size: 11px;+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;}</style>diff --git a/frontend/src/components/SandboxConfigEditorDrawer.vue b/frontend/src/components/SandboxConfigEditorDrawer.vueindex cfa004ddb..755abbc98 100644--- a/frontend/src/components/SandboxConfigEditorDrawer.vue+++ b/frontend/src/components/SandboxConfigEditorDrawer.vue@@ -1797,7 +1797,7 @@ onUnmounted(stopTemplatePolling)gap: 8px;min-width: 0;color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;/* Only the steps that draw a connector need to absorb the leftover width. */&:not(:last-child) {@@ -1832,7 +1832,7 @@ onUnmounted(stopTemplatePolling)&:focus-visible {outline: 2px solid var(--td-brand-color);outline-offset: 2px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}}@@ -1846,7 +1846,7 @@ onUnmounted(stopTemplatePolling)flex-shrink: 0;border: 1px solid currentColor;border-radius: 50%;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;line-height: 1;@@ -1865,7 +1865,7 @@ onUnmounted(stopTemplatePolling).sandbox-step__title {overflow: hidden;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;text-overflow: ellipsis;white-space: nowrap;@@ -1906,7 +1906,7 @@ onUnmounted(stopTemplatePolling):deep(.t-form__label) {padding-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -1915,7 +1915,7 @@ onUnmounted(stopTemplatePolling):deep(.t-input-number),:deep(.t-select) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}}@@ -1930,12 +1930,12 @@ onUnmounted(stopTemplatePolling)background: var(--td-bg-color-secondarycontainer);:deep(.t-alert__icon) {- font-size: 15px;+ font-size: var(--app-text-lg);}:deep(.t-alert__message) {color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}}@@ -1947,14 +1947,14 @@ onUnmounted(stopTemplatePolling)gap: 16px;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);}.private-endpoint-row__title {margin: 0 0 3px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}@@ -1984,14 +1984,14 @@ onUnmounted(stopTemplatePolling).backend-choice__name {color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}.backend-choice__desc {color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;white-space: normal;}@@ -2014,7 +2014,7 @@ onUnmounted(stopTemplatePolling)gap: 12px;padding: 12px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);&.is-active {@@ -2030,7 +2030,7 @@ onUnmounted(stopTemplatePolling)p {margin: 4px 0 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}}@@ -2042,7 +2042,7 @@ onUnmounted(stopTemplatePolling)}.weknora-template-card__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}@@ -2054,9 +2054,9 @@ onUnmounted(stopTemplatePolling)width: 100%;min-height: 88px;border: 1px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);}.template-list {@@ -2080,15 +2080,15 @@ onUnmounted(stopTemplatePolling)padding: 10px 12px;overflow: hidden;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);color: var(--td-text-color-primary);text-align: left;cursor: pointer;- transition: border-color 0.15s ease, box-shadow 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;&:hover:not(.is-disabled):not(.template-row--offer) {- border-color: var(--td-brand-color-3, var(--td-brand-color));+ border-color: var(--td-brand-color-3);}&.is-active {@@ -2116,7 +2116,7 @@ onUnmounted(stopTemplatePolling)height: 14px;margin-top: 3px;box-sizing: border-box;- border: 1.5px solid var(--td-border-level-2-color, var(--td-component-stroke));+ border: 1.5px solid var(--td-border-level-2-color);border-radius: 50%;background: var(--td-bg-color-container);@@ -2155,7 +2155,7 @@ onUnmounted(stopTemplatePolling)flex: 0 1 auto;min-width: 0;overflow: hidden;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 22px;text-overflow: ellipsis;@@ -2198,7 +2198,7 @@ onUnmounted(stopTemplatePolling)dt {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 18px;white-space: nowrap;}@@ -2208,14 +2208,14 @@ onUnmounted(stopTemplatePolling)min-width: 0;overflow: hidden;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;text-overflow: ellipsis;white-space: nowrap;&.is-mono {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 11px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-xs);}}}@@ -2224,7 +2224,7 @@ onUnmounted(stopTemplatePolling)margin: 0;overflow-wrap: anywhere;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;&--error {@@ -2251,7 +2251,7 @@ onUnmounted(stopTemplatePolling)gap: 5px;margin-top: -4px;color: var(--td-brand-color);- font-size: 12px;+ font-size: var(--app-text-sm);text-decoration: none;&:hover {@@ -2272,7 +2272,7 @@ onUnmounted(stopTemplatePolling)}.net-list__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}@@ -2295,7 +2295,7 @@ onUnmounted(stopTemplatePolling).net-rule {border: 1px solid var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 12px;margin-bottom: 12px;}@@ -2304,7 +2304,7 @@ onUnmounted(stopTemplatePolling)padding: 0;margin-bottom: 2px;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.net-rule--collapsible.is-open {@@ -2336,7 +2336,7 @@ onUnmounted(stopTemplatePolling)background: transparent;color: var(--td-text-color-secondary);cursor: pointer;- border-radius: 4px;+ border-radius: var(--app-radius-xs);text-align: left;}@@ -2350,7 +2350,7 @@ onUnmounted(stopTemplatePolling)overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-primary);}@@ -2371,7 +2371,7 @@ onUnmounted(stopTemplatePolling)background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.net-rule__move:hover:not(:disabled) {@@ -2415,9 +2415,9 @@ onUnmounted(stopTemplatePolling).env-empty {padding: 18px;border: 1px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);text-align: center;}@@ -2431,7 +2431,7 @@ onUnmounted(stopTemplatePolling).section-help {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;&--under-title {@@ -2461,7 +2461,7 @@ onUnmounted(stopTemplatePolling)gap: 6px;margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.45;@@ -2478,7 +2478,7 @@ onUnmounted(stopTemplatePolling).check-result__hint {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}@@ -2497,7 +2497,7 @@ onUnmounted(stopTemplatePolling)gap: 8px;flex-wrap: wrap;padding: 2px 0;- font-size: 12px;+ font-size: var(--app-text-sm);}.check-item .ok {@@ -2550,7 +2550,7 @@ onUnmounted(stopTemplatePolling)}.sandbox-step__title {- font-size: 12px;+ font-size: var(--app-text-sm);}.template-row__fields {diff --git a/frontend/src/components/SandboxSkillsPanel.vue b/frontend/src/components/SandboxSkillsPanel.vueindex 91461c0f5..82ab73cf1 100644--- a/frontend/src/components/SandboxSkillsPanel.vue+++ b/frontend/src/components/SandboxSkillsPanel.vue@@ -1419,7 +1419,7 @@ onUnmounted(() => {.installer-model-hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1433,10 +1433,10 @@ onUnmounted(() => {width: 100%;min-height: 44px;border: 1px dashed var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);cursor: pointer;- transition: border-color 0.2s ease, background 0.2s ease;+ transition: border-color var(--app-motion-base) ease, background var(--app-motion-base) ease;display: flex;align-items: center;justify-content: center;@@ -1459,7 +1459,7 @@ onUnmounted(() => {&--large {min-height: 180px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);border-width: 2px;}}@@ -1498,11 +1498,11 @@ onUnmounted(() => {}.file-upload-area--large .upload-primary-text {- font-size: 15px;+ font-size: var(--app-text-lg);}.file-upload-area--large .upload-secondary-text {- font-size: 13px;+ font-size: var(--app-text-md);}.upload-icon {@@ -1520,18 +1520,18 @@ onUnmounted(() => {}.upload-primary-text {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.upload-secondary-text {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.upload-file-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-brand-color);}@@ -1542,7 +1542,7 @@ onUnmounted(() => {.upload-hint {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 1.5;}@@ -1561,7 +1561,7 @@ onUnmounted(() => {align-items: center;gap: 12px;margin: 10px 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);&::before,@@ -1630,14 +1630,14 @@ onUnmounted(() => {label {display: block;margin-bottom: 4px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}p {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1653,7 +1653,7 @@ onUnmounted(() => {h4 {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}@@ -1669,7 +1669,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1;color: var(--td-brand-color);@@ -1687,7 +1687,7 @@ onUnmounted(() => {.skill-manage__remove-stage {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1698,11 +1698,11 @@ onUnmounted(() => {align-items: flex-start;gap: 10px;padding: 8px 0 4px;- color: var(--td-success-color, var(--td-brand-color));+ color: var(--td-success-color);p {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.55;color: var(--td-text-color-primary);}@@ -1710,7 +1710,7 @@ onUnmounted(() => {.skill-envs__hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1735,17 +1735,17 @@ onUnmounted(() => {}.skill-envs__name {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);overflow-wrap: anywhere;}.skill-envs__tag {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;padding: 0 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);}@@ -1761,7 +1761,7 @@ onUnmounted(() => {}.skill-envs__desc {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1793,14 +1793,14 @@ onUnmounted(() => {gap: 12px;padding: 14px 14px 14px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);transition: border-color 0.18s ease, box-shadow 0.18s ease;min-width: 0;&--focused {border-color: var(--td-brand-color);- box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 168, 112, 0.18));+ box-shadow: 0 0 0 2px var(--td-brand-color-focus);}&--bare {@@ -1843,14 +1843,14 @@ onUnmounted(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -1899,7 +1899,7 @@ onUnmounted(() => {flex: 1;min-width: 0;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -1914,17 +1914,17 @@ onUnmounted(() => {align-items: center;gap: 5px;padding: 1px 8px 1px 6px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 16px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);&--on {- color: var(--td-success-color-7, #118053);+ color: var(--td-success-color-7);.skill-card__status-dot {- background: var(--td-success-color, #118053);+ background: var(--td-success-color);}}@@ -1945,10 +1945,10 @@ onUnmounted(() => {}&--failed {- color: var(--td-warning-color-7, #b85c00);+ color: var(--td-warning-color-7);.skill-card__status-dot {- background: var(--td-warning-color, #e37318);+ background: var(--td-warning-color);}}}@@ -2001,7 +2001,7 @@ onUnmounted(() => {color: var(--td-text-color-placeholder);cursor: pointer;line-height: 0;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;:deep(.t-icon) {display: block;@@ -2027,7 +2027,7 @@ onUnmounted(() => {}&--danger:hover:not(:disabled) {- background: var(--td-error-color-1, var(--td-bg-color-secondarycontainer));+ background: var(--td-error-color-1);color: var(--td-error-color);}}@@ -2042,7 +2042,7 @@ onUnmounted(() => {}.skill-card__type {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 1.3;color: var(--td-text-color-placeholder);@@ -2056,14 +2056,14 @@ onUnmounted(() => {overflow: hidden;min-width: 0;margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);}.skill-card__log {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);}@@ -2071,7 +2071,7 @@ onUnmounted(() => {.skill-card__error {margin: 2px 0 0;padding: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;word-break: break-word;list-style: none;@@ -2106,7 +2106,7 @@ onUnmounted(() => {padding: 0 !important;width: 420px;max-width: min(420px, calc(100vw - 32px));- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 1px solid var(--td-component-stroke) !important;box-shadow:@@ -2135,7 +2135,7 @@ onUnmounted(() => {}&__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -2149,7 +2149,7 @@ onUnmounted(() => {align-items: center;gap: 6px;margin-top: 2px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;color: var(--td-text-color-placeholder);}@@ -2217,7 +2217,7 @@ onUnmounted(() => {.skill-envs__hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -2243,17 +2243,17 @@ onUnmounted(() => {}.skill-envs__name {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);overflow-wrap: anywhere;}.skill-envs__tag {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;padding: 0 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);}@@ -2269,7 +2269,7 @@ onUnmounted(() => {}.skill-envs__desc {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}diff --git a/frontend/src/components/SessionSidebarRow.vue b/frontend/src/components/SessionSidebarRow.vueindex dd93b8257..63b7ae648 100644--- a/frontend/src/components/SessionSidebarRow.vue+++ b/frontend/src/components/SessionSidebarRow.vue@@ -227,13 +227,7 @@ const confirmDangerAction = (): void => {border: 1.5px solid var(--td-component-stroke);border-top-color: currentColor;border-radius: 50%;- animation: session-running-spin 0.8s linear infinite;-}--@keyframes session-running-spin {- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}@media (prefers-reduced-motion: reduce) {@@ -260,7 +254,7 @@ const confirmDangerAction = (): void => {border-radius: 5px;color: var(--td-text-color-primary);background: var(--td-bg-color-container);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 24px;outline: none;box-shadow: 0 0 0 2px var(--td-brand-color-light);@@ -278,7 +272,7 @@ const confirmDangerAction = (): void => {color: inherit;background: transparent;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -297,10 +291,10 @@ const confirmDangerAction = (): void => {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 15px;font-weight: 400;- border-radius: 4px;+ border-radius: var(--app-radius-xs);&--user {color: var(--td-brand-color);@@ -325,7 +319,7 @@ const confirmDangerAction = (): void => {margin-top: 2px !important;min-width: 160px !important;width: max-content !important;- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -359,7 +353,7 @@ const confirmDangerAction = (): void => {border-radius: 5px;color: var(--td-text-color-primary);background: transparent;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;text-align: left;white-space: nowrap;@@ -389,7 +383,7 @@ const confirmDangerAction = (): void => {color: var(--td-text-color-secondary);.t-icon {- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -409,14 +403,14 @@ const confirmDangerAction = (): void => {.session-action-confirm__title {margin: 0;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 20px;}.session-action-confirm__body {color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.5;word-break: break-word;}@@ -433,13 +427,13 @@ const confirmDangerAction = (): void => {height: 30px;padding: 0 12px;border: 0.5px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-primary);background: var(--td-bg-color-container);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 28px;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;&:hover:not(:disabled) {background: var(--td-bg-color-container-hover);diff --git a/frontend/src/components/SessionSourceFilter.vue b/frontend/src/components/SessionSourceFilter.vueindex 4f307ffe6..6aeb5df9d 100644--- a/frontend/src/components/SessionSourceFilter.vue+++ b/frontend/src/components/SessionSourceFilter.vue@@ -169,11 +169,11 @@ onBeforeUnmount(() => {min-height: 28px;padding: 4px 10px 4px 14px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;font-family: var(--app-font-family);text-align: left;@@ -215,13 +215,13 @@ onBeforeUnmount(() => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 18px;letter-spacing: 0.01em;.session-source-filter--inline .session-source-filter__trigger & {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;line-height: 16px;color: inherit;@@ -247,7 +247,7 @@ onBeforeUnmount(() => {color: var(--td-text-color-placeholder);.session-source-filter--inline & {- font-size: 12px !important;+ font-size: var(--app-text-sm) !important;color: var(--td-text-color-disabled);}}@@ -255,7 +255,7 @@ onBeforeUnmount(() => {.session-source-filter__chevron {flex: 0 0 auto;color: var(--td-text-color-placeholder);- transition: transform 0.18s ease, color 0.15s ease;+ transition: transform 0.18s ease, color var(--app-motion-fast) ease;&--open {transform: rotate(180deg);@@ -265,7 +265,7 @@ onBeforeUnmount(() => {.session-source-filter--inline & {color: var(--td-text-color-disabled);opacity: 0.85;- font-size: 10px !important;+ font-size: var(--app-text-2xs) !important;}}@@ -278,7 +278,7 @@ onBeforeUnmount(() => {padding: 3px;border: 1px solid var(--td-component-stroke);border-radius: 7px;- background: var(--td-bg-color-sidebar, var(--td-bg-color-container));+ background: var(--td-bg-color-sidebar);box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.04);}@@ -295,7 +295,7 @@ onBeforeUnmount(() => {background: transparent;color: var(--td-text-color-primary);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;font-family: var(--app-font-family);text-align: left;white-space: nowrap;@@ -320,7 +320,7 @@ onBeforeUnmount(() => {}.session-source-filter__option-label {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 16px;}@@ -330,7 +330,7 @@ onBeforeUnmount(() => {width: 13px;margin-left: 2px;color: var(--td-text-color-placeholder);- font-size: 12px !important;+ font-size: var(--app-text-sm) !important;visibility: hidden;&--visible {diff --git a/frontend/src/components/SettingsModalShell.vue b/frontend/src/components/SettingsModalShell.vuenew file mode 100644index 000000000..68183ae4d--- /dev/null+++ b/frontend/src/components/SettingsModalShell.vue@@ -0,0 +1,413 @@+<template>+ <Teleport to="body">+ <Transition name="settings-modal-shell">+ <div v-if="visible" class="settings-modal-shell settings-overlay" :class="overlayClass" :style="{ zIndex }"+ @click.self="emit('close')">+ <div class="settings-modal">+ <div v-if="loading" class="editor-initializing" role="status" :aria-label="$t('common.loading')">+ <t-loading size="medium" :text="$t('common.loading')" />+ </div>++ <button class="close-btn" type="button" @click="emit('close')" :aria-label="$t('common.close')">+ <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">+ <path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" />+ </svg>+ </button>++ <div class="settings-container">+ <aside class="settings-sidebar">+ <div class="sidebar-header">+ <h2 class="sidebar-title">{{ title }}</h2>+ <slot name="sidebar-header-extra" />+ </div>+ <nav class="settings-nav" :data-guide="navGuide || undefined">+ <slot name="nav">+ <template v-for="group in navGroups" :key="group.key">+ <div class="nav-group-title">{{ group.label }}</div>+ <div v-for="item in group.items" :key="item.key" :class="['nav-item', { active: modelValue === item.key }]"+ :data-guide="navItemGuidePrefix ? `${navItemGuidePrefix}-${item.key}` : undefined"+ @click="emit('update:modelValue', item.key)">+ <slot name="nav-icon" :item="item" :active="modelValue === item.key">+ <t-icon :name="item.icon" class="nav-icon" />+ </slot>+ <span class="nav-label">{{ item.label }}</span>+ <span v-if="showBadge(item)" :class="['nav-badge', item.badgeClass]">{{ item.badge }}</span>+ </div>+ </template>+ </slot>+ </nav>+ </aside>++ <div class="settings-content">+ <div class="settings-body">+ <slot />+ </div>+ <div v-if="$slots.footer || $slots['footer-note']" class="settings-footer">+ <slot name="footer-note" />+ <div class="settings-footer-actions">+ <slot name="footer" />+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </Transition>+ </Teleport>+</template>++<script setup lang="ts">+/**+ * 全屏"设置类"弹窗壳:遮罩 + 1080×780 面板 + 左侧分组导航 + 右侧内容 + 可选底栏。+ * 被 Settings / AgentEditorModal / OrganizationSettingsModal / KnowledgeBaseEditorModal 共用,+ * 关闭行为(Esc / 遮罩 / 未保存守卫)由消费方通过 useModalShell 决定,本组件只发出 `close`。+ *+ * 样式为非 scoped、以 `.settings-modal-shell` 为根前缀,这样通过 `nav` 插槽自定义导航的消费方+ * 也能复用 .nav-item / .nav-icon 等基础样式。+ */+export interface SettingsModalNavItem {+ key: string+ label: string+ icon?: string+ badge?: number | string | null+ /** 额外的徽标 class,例如 'nav-badge-count' */+ badgeClass?: string+ /** 徽标为 0 时是否仍显示 */+ showZeroBadge?: boolean+ [extra: string]: unknown+}++export interface SettingsModalNavGroup {+ key: string+ label: string+ items: SettingsModalNavItem[]+}++withDefaults(+ defineProps<{+ visible: boolean+ title: string+ /** 当前分区 key(v-model) */+ modelValue?: string+ navGroups?: SettingsModalNavGroup[]+ loading?: boolean+ zIndex?: number+ overlayClass?: string+ navGuide?: string+ navItemGuidePrefix?: string+ }>(),+ {+ modelValue: '',+ navGroups: () => [],+ loading: false,+ zIndex: 1100,+ overlayClass: '',+ navGuide: '',+ navItemGuidePrefix: '',+ },+)++const emit = defineEmits<{+ (e: 'update:modelValue', key: string): void+ (e: 'close'): void+}>()++function showBadge(item: SettingsModalNavItem): boolean {+ if (item.badge == null || item.badge === '') return false+ if (typeof item.badge === 'number' && item.badge <= 0) return !!item.showZeroBadge+ return true+}+</script>++<style lang="less">+.settings-modal-shell.settings-overlay {+ position: fixed;+ inset: 0;+ background: rgba(0, 0, 0, 0.5);+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 20px;+ backdrop-filter: blur(4px);+ overscroll-behavior: none;+}++.settings-modal-shell {+ .settings-modal {+ position: relative;+ width: 100%;+ // 1080×780:给成员表 / 系统设置这类多列内容留足空间;外层 20px padding 后 1120,+ // 1280+ 的笔记本都放得下;更窄的视口由 width: 100% 收缩。+ max-width: 1080px;+ height: 780px;+ max-height: calc(100vh - 40px);+ background: var(--td-bg-color-container);+ border-radius: var(--app-radius-xl);+ box-shadow: var(--td-shadow-3);+ overflow: hidden;+ display: flex;+ flex-direction: column;+ }++ .editor-initializing {+ position: absolute;+ inset: 0;+ z-index: 20;+ display: flex;+ align-items: center;+ justify-content: center;+ background: var(--td-bg-color-container);+ }++ .close-btn {+ position: absolute;+ top: 16px;+ right: 16px;+ width: 32px;+ height: 32px;+ border: none;+ background: transparent;+ border-radius: var(--app-radius-sm);+ cursor: pointer;+ display: flex;+ align-items: center;+ justify-content: center;+ color: var(--td-text-color-secondary);+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;+ z-index: 10;++ &:hover {+ background: var(--td-bg-color-container-hover);+ color: var(--td-text-color-primary);+ }+ }++ .settings-container {+ display: flex;+ height: 100%;+ width: 100%;+ overflow: hidden;+ }++ .settings-sidebar {+ width: 208px;+ background-color: var(--td-bg-color-settings-modal);+ border-right: 1px solid var(--td-component-stroke);+ flex-shrink: 0;+ display: flex;+ flex-direction: column;+ overflow: hidden;+ }++ .sidebar-header {+ padding: 16px 14px 12px;+ border-bottom: 1px solid var(--td-component-stroke);+ flex-shrink: 0;+ }++ .sidebar-title {+ margin: 0;+ font-size: var(--app-text-xl);+ font-weight: 600;+ color: var(--td-text-color-primary);+ }++ .settings-nav {+ flex: 1;+ padding: 8px 8px 12px;+ overflow-y: auto;+ min-height: 0;++ &::-webkit-scrollbar {+ width: 6px;+ }++ &::-webkit-scrollbar-track {+ background: var(--td-bg-color-secondarycontainer);+ }++ &::-webkit-scrollbar-thumb {+ background: var(--td-gray-color-5);+ border-radius: 3px;+ }++ &::-webkit-scrollbar-thumb:hover {+ background: var(--td-gray-color-6);+ }+ }++ .nav-group-title {+ padding: 8px 14px 2px;+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-sm);+ font-weight: 600;+ letter-spacing: 0.02em;+ }++ .settings-nav > .nav-group-title:first-child {+ padding-top: 2px;+ }++ .nav-item {+ display: flex;+ align-items: center;+ padding: 6px 12px;+ margin-bottom: 2px;+ border-radius: var(--app-radius-sm);+ cursor: pointer;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;+ font-size: var(--app-text-base);+ color: var(--td-text-color-primary);+ user-select: none;++ &:hover {+ background-color: var(--td-bg-color-container-hover);+ color: var(--td-text-color-primary);+ }++ &.active {+ background-color: var(--td-bg-color-secondarycontainer);+ color: var(--td-brand-color);+ font-weight: 500;+ }+ }++ .nav-icon {+ margin-right: 9px;+ font-size: var(--app-text-xl);+ flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ color: inherit;++ &.nav-icon-img {+ width: 16px;+ height: 16px;+ }++ &.nav-icon-emoji {+ font-size: var(--app-text-base);+ line-height: 1;+ }+ }++ .nav-label {+ flex: 1;+ }++ .nav-badge {+ flex-shrink: 0;+ margin-left: 2px;+ padding: 0 6px;+ border-radius: var(--app-radius-md);+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-xs);+ line-height: 16px;+ font-weight: 500;+ text-align: center;++ &.nav-badge-count {+ min-width: 20px;+ }+ }++ .settings-content {+ flex: 1;+ display: flex;+ flex-direction: column;+ min-width: 0;+ min-height: 0;+ overflow: hidden;+ background-color: var(--td-bg-color-container);+ }++ // 既是滚动容器,也是 flex 列:消费方的 .content-wrapper 想自己滚动时设 flex:1 + overflow:auto,+ // 想让整块内容随页面滚动时保持自然高度即可。+ .settings-body {+ flex: 1;+ min-height: 0;+ display: flex;+ flex-direction: column;+ overflow-y: auto;++ &::-webkit-scrollbar {+ width: 6px;+ }++ &::-webkit-scrollbar-track {+ background: var(--td-bg-color-container);+ }++ &::-webkit-scrollbar-thumb {+ background: var(--td-gray-color-5);+ border-radius: 3px;+ }++ &::-webkit-scrollbar-thumb:hover {+ background: var(--td-gray-color-6);+ }+ }++ .settings-footer {+ padding: 12px 40px;+ border-top: 1px solid var(--td-component-stroke);+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: 16px;+ flex-shrink: 0;+ background-color: var(--td-bg-color-container);+ }++ .settings-footer-note {+ margin: 0;+ margin-right: auto;+ flex: 1;+ min-width: 0;+ display: flex;+ align-items: flex-start;+ gap: 6px;+ font-size: var(--app-text-md);+ line-height: 20px;+ color: var(--td-text-color-secondary);++ strong {+ margin-right: 4px;+ color: var(--td-text-color-primary);+ font-weight: 500;+ }++ &__icon {+ flex-shrink: 0;+ margin-top: 2px;+ font-size: var(--app-text-base);+ color: var(--td-success-color);+ }+ }++ .settings-footer-actions {+ display: flex;+ gap: 12px;+ flex-shrink: 0;+ }+}++.settings-modal-shell-leave-active {+ transition: opacity var(--app-motion-base) ease;++ .settings-modal {+ transition: transform var(--app-motion-base) ease, opacity var(--app-motion-base) ease;+ }+}++.settings-modal-shell-leave-to {+ opacity: 0;++ .settings-modal {+ transform: scale(0.95);+ opacity: 0;+ }+}+</style>diff --git a/frontend/src/components/ShareKnowledgeBaseDialog.vue b/frontend/src/components/ShareKnowledgeBaseDialog.vueindex c31eb1340..6f5374051 100644--- a/frontend/src/components/ShareKnowledgeBaseDialog.vue+++ b/frontend/src/components/ShareKnowledgeBaseDialog.vue@@ -289,10 +289,10 @@ function handleGoToOrgSettings(orgId: string) {gap: 8px;padding: 12px;background: var(--td-bg-color-container-hover);- border-radius: 6px;+ border-radius: var(--app-radius-sm);margin-top: 8px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;.t-icon {@@ -341,8 +341,8 @@ function handleGoToOrgSettings(orgId: string) {padding: 14px 16px;background: var(--td-bg-color-container-hover);border: 1px solid var(--td-component-stroke);- border-radius: 8px;- transition: background 0.2s, border-color 0.2s;+ border-radius: var(--app-radius-md);+ transition: background var(--app-motion-base), border-color var(--app-motion-base);}.share-item:hover {@@ -371,9 +371,9 @@ function handleGoToOrgSettings(orgId: string) {height: auto;align-items: center;padding: 6px 12px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);margin: 1px 6px;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;}:deep(.t-select-option:hover),@@ -414,7 +414,7 @@ function handleGoToOrgSettings(orgId: string) {.org-option-name {font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);overflow: hidden;@@ -428,7 +428,7 @@ function handleGoToOrgSettings(orgId: string) {align-items: center;gap: 6px;font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);.org-meta-tag {@@ -437,7 +437,7 @@ function handleGoToOrgSettings(orgId: string) {gap: 3px;padding: 0px 4px;background: var(--td-bg-color-secondarycontainer);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.org-meta-icon {@@ -447,7 +447,7 @@ function handleGoToOrgSettings(orgId: string) {}.org-meta-icon-user {- font-size: 12px;+ font-size: var(--app-text-sm);}.org-meta-icon-kb {@@ -457,7 +457,7 @@ function handleGoToOrgSettings(orgId: string) {}.org-meta-icon-agent {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);opacity: 0.75;}@@ -470,7 +470,7 @@ function handleGoToOrgSettings(orgId: string) {padding: 4px 0;max-height: 320px;overflow-y: auto;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: var(--td-shadow-2);}@@ -478,7 +478,7 @@ function handleGoToOrgSettings(orgId: string) {height: auto;align-items: center;padding: 6px 12px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);margin: 1px 6px;}diff --git a/frontend/src/components/SkillFilesDrawer.vue b/frontend/src/components/SkillFilesDrawer.vueindex 6f41bc48a..19253e53f 100644--- a/frontend/src/components/SkillFilesDrawer.vue+++ b/frontend/src/components/SkillFilesDrawer.vue@@ -195,9 +195,9 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 16px;+ font-size: var(--app-text-xl);}.skill-files-drawer__head-text {@@ -206,7 +206,7 @@ onUnmounted(() => {}.skill-files-drawer__title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -217,7 +217,7 @@ onUnmounted(() => {.skill-files-drawer__subtitle {margin-top: 2px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);}@@ -231,7 +231,7 @@ onUnmounted(() => {justify-content: center;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;@@ -297,7 +297,7 @@ onUnmounted(() => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.skill-files-drawer-resize-handle:hover .skill-files-drawer-resize-line,diff --git a/frontend/src/components/SkillFilesPanel.vue b/frontend/src/components/SkillFilesPanel.vueindex 4434f9a7f..a6b1ef9cc 100644--- a/frontend/src/components/SkillFilesPanel.vue+++ b/frontend/src/components/SkillFilesPanel.vue@@ -615,14 +615,14 @@ watch(margin-bottom: 2px;padding: 6px 12px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);cursor: pointer;text-align: left;user-select: none;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background-color: var(--td-bg-color-container-hover);@@ -691,7 +691,7 @@ watch(overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -700,9 +700,9 @@ watch(height: 24px;padding: 0 8px;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 24px;color: var(--td-text-color-secondary);cursor: pointer;@@ -727,21 +727,21 @@ watch(&::-webkit-scrollbar-thumb {background: var(--td-bg-color-component-disabled);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}.skill-files-panel__hint {margin: 24px 8px;text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}.skill-files-panel__warn {margin: 0 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-warning-color);}@@ -749,7 +749,7 @@ watch(margin: 0 0 20px;padding: 8px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}@@ -765,7 +765,7 @@ watch(dt {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.5;color: var(--td-text-color-secondary);@@ -774,15 +774,15 @@ watch(dd {margin: 0;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-primary);word-break: break-word;white-space: pre-wrap;&.is-code {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 11px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-xs);}}}@@ -797,8 +797,8 @@ watch(padding: 0;background: transparent;overflow: visible;- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);white-space: pre-wrap;@@ -831,7 +831,7 @@ watch(background: var(--td-component-border);opacity: 0.55;pointer-events: none;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.skill-files-split-handle:hover .skill-files-split-handle__line,diff --git a/frontend/src/components/SkillInstallTimeline.vue b/frontend/src/components/SkillInstallTimeline.vueindex 0997aa2cd..9bdb7ff0f 100644--- a/frontend/src/components/SkillInstallTimeline.vue+++ b/frontend/src/components/SkillInstallTimeline.vue@@ -356,8 +356,8 @@ onUnmounted(stop)flex-shrink: 0;margin-top: 12px;padding-top: 12px;- background: var(--td-bg-color-container, #fff);- border-top: 1px solid var(--td-component-stroke, #e7e7e7);+ background: var(--td-bg-color-container);+ border-top: 1px solid var(--td-component-stroke);// Cover the timeline's padding too, so scrolling text cannot peek around// the sticky composer. Its z-index keeps this backdrop above the transcript.@@ -374,8 +374,8 @@ onUnmounted(stop)margin: 8px 0;padding: 8px;background: var(--td-bg-color-container);- border-radius: 6px;- span { font-size: 12px; color: var(--td-text-color-secondary); }+ border-radius: var(--app-radius-sm);+ span { font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }}.skill-timeline__guidance-actions {@@ -384,17 +384,17 @@ onUnmounted(stop)justify-content: flex-end;gap: 12px;margin-top: 8px;- span { flex: 1; font-size: 12px; color: var(--td-text-color-secondary); }+ span { flex: 1; font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }}-.skill-timeline__guidance-error { color: var(--td-error-color); font-size: 12px; }+.skill-timeline__guidance-error { color: var(--td-error-color); font-size: var(--app-text-sm); }.skill-timeline {display: flex;flex-direction: column;padding: 12px;- background: var(--td-bg-color-secondarycontainer, #f7f7f7);- border: 1px solid var(--td-component-stroke, #e7e7e7);- border-radius: 8px;+ background: var(--td-bg-color-secondarycontainer);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-md);}.skill-timeline__turn + .skill-timeline__turn {@@ -406,19 +406,19 @@ onUnmounted(stop)margin: 0;padding: 8px 10px;overflow-y: auto;- color: var(--td-text-color-secondary, #666);- font-size: 12px;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-sm);line-height: 1.6;- background: var(--td-bg-color-container, #fff);- border-radius: 6px;+ background: var(--td-bg-color-container);+ border-radius: var(--app-radius-sm);white-space: pre-wrap;word-break: break-word;}.skill-timeline__empty {margin: 8px 0;- color: var(--td-text-color-placeholder, #999);- font-size: 13px;+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-md);}.skill-timeline--compact {@@ -431,40 +431,40 @@ onUnmounted(stop).skill-timeline--compact .skill-timeline__prompt {max-height: 72px;padding: 6px 8px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.5;}.skill-timeline--compact .skill-timeline__empty {margin: 4px 0;- font-size: 12px;+ font-size: var(--app-text-sm);}.skill-timeline--compact :deep(.agent-stream-display.is-embedded) {- font-size: 12px;+ font-size: var(--app-text-sm);--agent-step-text-size: 12px;--agent-step-summary-size: 12px;}.skill-timeline--compact :deep(.agent-stream-display.is-embedded .tree-root .action-name) {- font-size: 12px;+ font-size: var(--app-text-sm);}// Chat answer Markdown is 16px. That is the right size in a conversation and// too loud in this 420px popup, where the prompt and step summary are 11–13px..skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content) {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h1) {- font-size: 13px;+ font-size: var(--app-text-md);margin-bottom: 0.35em;}.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h2),.skill-timeline--compact :deep(.agent-stream-display .answer-content.markdown-content h3) {- font-size: 12px;+ font-size: var(--app-text-sm);}.skill-timeline__turn--command {// AgentStreamDisplay also renders an empty inline image-viewer trigger.diff --git a/frontend/src/components/SpaceAvatar.vue b/frontend/src/components/SpaceAvatar.vueindex 9b2aaad2b..db0483caa 100644--- a/frontend/src/components/SpaceAvatar.vue+++ b/frontend/src/components/SpaceAvatar.vue@@ -110,7 +110,7 @@ const letterStyle = computed(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);flex-shrink: 0;box-shadow: var(--td-shadow-2);overflow: hidden;@@ -122,7 +122,7 @@ const letterStyle = computed(() => {box-shadow: none;.space-avatar-letter {- font-size: 11px;+ font-size: var(--app-text-xs);}.space-avatar-decoration {@@ -133,10 +133,10 @@ const letterStyle = computed(() => {&.space-avatar-large {width: 48px;height: 48px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);.space-avatar-letter {- font-size: 20px;+ font-size: var(--app-text-3xl);}.space-avatar-emoji-char {@@ -155,11 +155,11 @@ const letterStyle = computed(() => {}.space-avatar-emoji-char {- font-size: 18px;+ font-size: var(--app-text-2xl);line-height: 1;.space-avatar-small & {- font-size: 14px;+ font-size: var(--app-text-base);}}@@ -178,7 +178,7 @@ const letterStyle = computed(() => {position: relative;z-index: 1;color: var(--td-text-color-anti);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;font-family: var(--app-font-family);}diff --git a/frontend/src/components/SpotlightGuide.vue b/frontend/src/components/SpotlightGuide.vueindex 6d5c4118f..55c930161 100644--- a/frontend/src/components/SpotlightGuide.vue+++ b/frontend/src/components/SpotlightGuide.vue@@ -443,7 +443,7 @@ defineExpose({ open, close })box-sizing: border-box;pointer-events: none;border: 2px solid var(--td-brand-color);- box-shadow: 0 0 0 4px rgba(7, 192, 95, 0.18);+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--td-brand-color) 18%, transparent);transition:top 0.28s cubic-bezier(0.4, 0, 0.2, 1),left 0.28s cubic-bezier(0.4, 0, 0.2, 1),@@ -486,7 +486,7 @@ defineExpose({ open, close })height: 28px;padding: 0;border: none;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;@@ -507,43 +507,43 @@ defineExpose({ open, close })height: 6px;border-radius: 50%;background: var(--td-bg-color-component);- transition: width 0.2s ease, background 0.2s ease;+ transition: width var(--app-motion-base) ease, background var(--app-motion-base) ease;&.is-active {width: 16px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-brand-color);}&.is-done {- background: rgba(7, 192, 95, 0.4);+ background: color-mix(in srgb, var(--td-brand-color) 40%, transparent);}}.guide__step-label {margin: 6px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}.guide__title {margin: 0;padding-right: 24px;- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;line-height: 26px;}.guide__desc {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 22px;color: var(--td-text-color-secondary);}.guide__interact-hint {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 20px;color: var(--td-brand-color);font-weight: 500;@@ -563,7 +563,7 @@ defineExpose({ open, close })border: none;background: transparent;padding: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);cursor: pointer;@@ -579,7 +579,7 @@ defineExpose({ open, close }).guide-fade-enter-active,.guide-fade-leave-active {- transition: opacity 0.2s ease;+ transition: opacity var(--app-motion-base) ease;}.guide-fade-enter-from,diff --git a/frontend/src/components/TenantSelector.vue b/frontend/src/components/TenantSelector.vueindex fe795648f..ce8f01fac 100644--- a/frontend/src/components/TenantSelector.vue+++ b/frontend/src/components/TenantSelector.vue@@ -320,9 +320,9 @@ onUnmounted(() => {display: flex;align-items: center;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;- transition: all 0.2s;+ transition: all var(--app-motion-base);background: var(--td-bg-color-secondarycontainer);border: .5px solid var(--td-component-stroke);@@ -338,7 +338,7 @@ onUnmounted(() => {}.tenant-label {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);margin-bottom: 2px;font-weight: 500;@@ -352,7 +352,7 @@ onUnmounted(() => {}.tenant-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);white-space: nowrap;@@ -362,7 +362,7 @@ onUnmounted(() => {}.tenant-switch-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-brand-color);flex-shrink: 0;}@@ -383,7 +383,7 @@ onUnmounted(() => {right: 0;background: var(--td-bg-color-container);border: .5px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);z-index: 1000;overflow: hidden;@@ -396,7 +396,7 @@ onUnmounted(() => {.dropdown-title {display: block;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-secondary);margin-bottom: 8px;@@ -408,19 +408,19 @@ onUnmounted(() => {gap: 6px;padding: 7px 10px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: .5px solid transparent;- transition: all 0.2s;+ transition: all var(--app-motion-base);&:focus-within {background: var(--td-bg-color-container);border-color: var(--td-brand-color);- box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}}.search-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);flex-shrink: 0;}@@ -430,7 +430,7 @@ onUnmounted(() => {border: none;outline: none;background: transparent;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);min-width: 0;@@ -440,11 +440,11 @@ onUnmounted(() => {}.clear-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);cursor: pointer;flex-shrink: 0;- transition: color 0.2s;+ transition: color var(--app-motion-base);&:hover {color: var(--td-text-color-secondary);@@ -479,9 +479,9 @@ onUnmounted(() => {align-items: center;justify-content: space-between;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- transition: all 0.15s;+ transition: all var(--app-motion-fast);margin-bottom: 2px;&:last-child {@@ -493,7 +493,7 @@ onUnmounted(() => {}&.selected {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);.tenant-item-name {color: var(--td-brand-color);@@ -513,16 +513,16 @@ onUnmounted(() => {.tenant-item-avatar {width: 32px;height: 32px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);display: flex;align-items: center;justify-content: center;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-secondary);flex-shrink: 0;- transition: all 0.2s;+ transition: all var(--app-motion-base);&.active {background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);@@ -539,7 +539,7 @@ onUnmounted(() => {}.tenant-item-name {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);white-space: nowrap;overflow: hidden;@@ -547,7 +547,7 @@ onUnmounted(() => {}.tenant-item-id {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}@@ -565,7 +565,7 @@ onUnmounted(() => {padding: 24px 12px;gap: 8px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.tenant-loading-more {@@ -581,20 +581,20 @@ onUnmounted(() => {padding: 10px 12px;margin: 4px 6px 6px;border-top: .5px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;- transition: background 0.15s;+ transition: background var(--app-motion-fast);&:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);}}.tenant-create-icon {- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;}@@ -608,7 +608,7 @@ onUnmounted(() => {// 下拉动画.dropdown-enter-active,.dropdown-leave-active {- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);+ transition: all var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1);}.dropdown-enter-from,diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vueindex 900e34d49..1d45617db 100644--- a/frontend/src/components/UserMenu.vue+++ b/frontend/src/components/UserMenu.vue@@ -629,9 +629,9 @@ onUnmounted(() => {align-items: center;gap: 6px;padding: 8px 6px;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;- transition: all 0.2s;+ transition: all var(--app-motion-base);background: transparent;&:hover {@@ -653,7 +653,7 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- transition: width 0.2s ease, height 0.2s ease;+ transition: width var(--app-motion-base) ease, height var(--app-motion-base) ease;img {width: 100%;@@ -663,7 +663,7 @@ onUnmounted(() => {.avatar-placeholder {color: var(--td-text-color-anti);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1;}@@ -679,7 +679,7 @@ onUnmounted(() => {justify-content: center;.user-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);white-space: nowrap;@@ -688,7 +688,7 @@ onUnmounted(() => {}.user-email {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);white-space: nowrap;overflow: hidden;@@ -696,7 +696,7 @@ onUnmounted(() => {}.user-tenant-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;letter-spacing: -0.01em;color: var(--td-text-color-primary);@@ -712,7 +712,7 @@ onUnmounted(() => {gap: 4px;margin-top: 0;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-secondary);@@ -741,10 +741,10 @@ onUnmounted(() => {}.dropdown-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);flex-shrink: 0;- transition: transform 0.2s;+ transition: transform var(--app-motion-base);}.user-dropdown {@@ -755,7 +755,7 @@ onUnmounted(() => {right: -5px;margin-bottom: 6px;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);border: 1px solid var(--td-component-stroke);overflow: hidden;@@ -773,7 +773,7 @@ onUnmounted(() => {&.is-clickable {cursor: pointer;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:hover,&:focus-visible {@@ -802,7 +802,7 @@ onUnmounted(() => {.dropdown-user-avatar-placeholder {color: var(--td-text-color-anti);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1;}@@ -827,7 +827,7 @@ onUnmounted(() => {.dropdown-user-name {flex: 1;min-width: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.35;@@ -838,7 +838,7 @@ onUnmounted(() => {.dropdown-user-email {min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-secondary);white-space: nowrap;@@ -856,11 +856,11 @@ onUnmounted(() => {margin: 0;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -877,11 +877,11 @@ onUnmounted(() => {padding: 9px 12px;border-top: 1px solid var(--td-component-stroke);background: transparent;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;min-width: 0;>.menu-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);flex-shrink: 0;}@@ -908,7 +908,7 @@ onUnmounted(() => {}.dropdown-tenant-panel-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.35;@@ -919,16 +919,16 @@ onUnmounted(() => {.dropdown-tenant-panel-trail {flex-shrink: 0;- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.dropdown-tenant-panel-role {display: flex;align-items: center;gap: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-secondary);min-width: 0;@@ -949,8 +949,8 @@ onUnmounted(() => {gap: 10px;padding: 9px 12px;cursor: pointer;- transition: all 0.2s;- font-size: 14px;+ transition: all var(--app-motion-base);+ font-size: var(--app-text-base);color: var(--td-text-color-primary);&:hover {@@ -978,10 +978,10 @@ onUnmounted(() => {}.menu-chevron {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-placeholder);flex-shrink: 0;- transition: transform 0.15s;+ transition: transform var(--app-motion-fast);}&.is-open {@@ -994,7 +994,7 @@ onUnmounted(() => {}.menu-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);&.svg-icon {@@ -1009,7 +1009,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;justify-content: center;- font-size: 15px;+ font-size: var(--app-text-lg);line-height: 1;flex-shrink: 0;color: inherit;@@ -1036,11 +1036,11 @@ onUnmounted(() => {.menu-new-badge {flex-shrink: 0;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1.2;padding: 2px 5px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-brand-color-light);color: var(--td-brand-color);letter-spacing: 0.02em;@@ -1056,7 +1056,7 @@ onUnmounted(() => {height: 16px;color: var(--td-text-color-disabled);flex-shrink: 0;- transition: color 0.2s ease;+ transition: color var(--app-motion-base) ease;pointer-events: none;}@@ -1080,7 +1080,7 @@ onUnmounted(() => {// 下拉动画.dropdown-enter-active,.dropdown-leave-active {- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);+ transition: all var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1);}.dropdown-enter-from,@@ -1110,7 +1110,7 @@ onUnmounted(() => {flex-direction: column;background: var(--td-bg-color-container);border: 0.5px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);// Pointer bridge so the user can slide off the menu item onto the panel// without hitting the gap and triggering mouseleave-hide.@@ -1119,7 +1119,7 @@ onUnmounted(() => {.tenant-submenu-header {padding: 8px 12px 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-secondary);border-bottom: 0.5px solid var(--td-component-stroke);@@ -1135,9 +1135,9 @@ onUnmounted(() => {align-items: center;gap: 8px;padding: 7px 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- transition: background 0.15s;+ transition: background var(--app-motion-fast);&:hover {background: var(--td-bg-color-secondarycontainer);@@ -1157,12 +1157,12 @@ onUnmounted(() => {.tenant-submenu-item-avatar {width: 28px;height: 28px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);display: flex;align-items: center;justify-content: center;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-secondary);flex-shrink: 0;@@ -1182,7 +1182,7 @@ onUnmounted(() => {}.tenant-submenu-item-name {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);white-space: nowrap;overflow: hidden;@@ -1203,7 +1203,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);.tenant-submenu-item-role-icon {@@ -1215,11 +1215,11 @@ onUnmounted(() => {.tenant-submenu-item-badge {flex-shrink: 0;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1.2;padding: 2px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-component);color: var(--td-text-color-secondary);}@@ -1251,7 +1251,7 @@ onUnmounted(() => {.tenant-submenu-empty {padding: 12px 10px;text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -1262,19 +1262,19 @@ onUnmounted(() => {padding: 8px 10px;margin: 3px 4px 5px;border-top: .5px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;color: var(--td-brand-color);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;- transition: background 0.15s;+ transition: background var(--app-motion-fast);&:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);}.tenant-submenu-create-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;}@@ -1283,7 +1283,7 @@ onUnmounted(() => {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- font-size: 12px;+ font-size: var(--app-text-sm);}}}diff --git a/frontend/src/components/VectorStoreBadge.vue b/frontend/src/components/VectorStoreBadge.vueindex 94fca0658..be71475ff 100644--- a/frontend/src/components/VectorStoreBadge.vue+++ b/frontend/src/components/VectorStoreBadge.vue@@ -72,40 +72,40 @@ const displayName = computed(() => {align-items: center;gap: 4px;padding: 2px 8px;- border-radius: 4px;- font-size: 12px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);line-height: 1.4;- background: var(--td-bg-color-component, #f5f7fa);- color: var(--td-text-color-primary, #1d2129);+ background: var(--td-bg-color-component);+ color: var(--td-text-color-primary);}.vs-badge-env {- background: var(--td-brand-color-1, #ecf2fe);- color: var(--td-brand-color-7, #0052d9);+ background: var(--td-brand-color-1);+ color: var(--td-brand-color-7);}.vs-badge-user {- background: var(--td-success-color-1, #e8f8f2);- color: var(--td-success-color-7, #00754a);+ background: var(--td-success-color-1);+ color: var(--td-success-color-7);}.vs-badge-shared {- background: var(--td-warning-color-1, #fff1e9);- color: var(--td-warning-color-7, #b85b00);+ background: var(--td-warning-color-1);+ color: var(--td-warning-color-7);}.vs-badge-warn {- background: var(--td-error-color-1, #fde9e6);- color: var(--td-error-color-7, #b32700);+ background: var(--td-error-color-1);+ color: var(--td-error-color-7);}.vs-badge-icon {- font-size: 14px;+ font-size: var(--app-text-base);}.vs-badge-engine {opacity: 0.7;- font-size: 11px;+ font-size: var(--app-text-xs);}.vs-badge-warn-tag {diff --git a/frontend/src/components/chat/ChatQuestionMinimap.test.ts b/frontend/src/components/chat/ChatQuestionMinimap.test.tsindex 0d0aa2b50..adf843e03 100644--- a/frontend/src/components/chat/ChatQuestionMinimap.test.ts+++ b/frontend/src/components/chat/ChatQuestionMinimap.test.ts@@ -84,7 +84,7 @@ test('highlights visible messages without losing them when previewing another ti})test('keeps the preview card at 13px instead of inheriting the chat 20px type', () => {- assert.match(component, /font-size: 13px/)+ assert.match(component, /font-size: (?:13px|var\(--app-text-md\))/)assert.doesNotMatch(component, /font: inherit/)assert.match(component, /--td-text-color-primary/)})diff --git a/frontend/src/components/chat/ChatQuestionMinimap.vue b/frontend/src/components/chat/ChatQuestionMinimap.vueindex e53781e3b..97adbac42 100644--- a/frontend/src/components/chat/ChatQuestionMinimap.vue+++ b/frontend/src/components/chat/ChatQuestionMinimap.vue@@ -304,7 +304,7 @@ onBeforeUnmount(() => {align-items: stretch;transform: translateY(-50%);pointer-events: none;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.45;}@@ -340,7 +340,7 @@ onBeforeUnmount(() => {opacity: 0.4;transform: translateY(-50%);transform-origin: left center;- transition: transform 120ms ease-out, background 120ms ease-out, opacity 120ms ease-out;+ transition: transform var(--app-motion-instant) ease-out, background var(--app-motion-instant) ease-out, opacity var(--app-motion-instant) ease-out;}.question-minimap__tick--active {@@ -361,7 +361,7 @@ onBeforeUnmount(() => {overflow: hidden;scrollbar-width: none;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);transform: translateY(-50%);@@ -375,7 +375,7 @@ onBeforeUnmount(() => {.question-minimap__question,.question-minimap__answer {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 400;line-height: 1.45;}diff --git a/frontend/src/components/chat/FollowUpSuggestions.vue b/frontend/src/components/chat/FollowUpSuggestions.vueindex 54caf02f0..b3ec27aa0 100644--- a/frontend/src/components/chat/FollowUpSuggestions.vue+++ b/frontend/src/components/chat/FollowUpSuggestions.vue@@ -72,7 +72,7 @@ const dismiss = () => {margin-right: auto;padding: 12px;border: 1px solid var(--td-component-stroke);- border-radius: 12px;+ border-radius: var(--app-radius-xl);background: var(--td-bg-color-secondarycontainer);}.follow-ups__header {@@ -81,7 +81,7 @@ const dismiss = () => {justify-content: space-between;margin-bottom: 8px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.follow-ups__title {@@ -93,7 +93,7 @@ const dismiss = () => {width: 14px;height: 14px;color: var(--td-text-color-placeholder);- font-size: 14px;+ font-size: var(--app-text-base);}.follow-ups__actions { display: flex; gap: 4px; }.follow-ups__actions button {@@ -102,14 +102,14 @@ const dismiss = () => {gap: 4px;padding: 4px 8px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;- transition: background-color .2s, color .2s;+ transition: background-color var(--app-motion-base), color var(--app-motion-base);}.follow-ups__actions button:hover:not(:disabled) {- background: var(--td-bg-color-container-hover, rgba(0, 0, 0, .06));+ background: var(--td-bg-color-container-hover);color: var(--td-brand-color);}.follow-ups__actions button:disabled {@@ -125,20 +125,19 @@ const dismiss = () => {width: 100%;padding: 9px 11px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);color: var(--td-text-color-primary);text-align: left;cursor: pointer;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);- transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;}.follow-ups__item:hover {.suggestion-chip-hover();}.follow-ups__item:hover .t-icon { color: var(--td-text-color-secondary); }-.is-spinning { animation: spin 1s linear infinite; }-@keyframes spin { to { transform: rotate(360deg); } }+.is-spinning { animation: wk-spin 1s linear infinite; }.follow-up-card-enter-active {transform-origin: left top;diff --git a/frontend/src/components/chat/MessageTimestamp.vue b/frontend/src/components/chat/MessageTimestamp.vueindex 3972f188d..0443a2475 100644--- a/frontend/src/components/chat/MessageTimestamp.vue+++ b/frontend/src/components/chat/MessageTimestamp.vue@@ -38,7 +38,7 @@ const label = computed(() => {width: 100%;padding: 4px 0 8px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-variant-numeric: tabular-nums;line-height: 20px;text-align: center;diff --git a/frontend/src/components/chat/SandboxSidePanel.vue b/frontend/src/components/chat/SandboxSidePanel.vueindex b62c4598b..a214870e5 100644--- a/frontend/src/components/chat/SandboxSidePanel.vue+++ b/frontend/src/components/chat/SandboxSidePanel.vue@@ -299,7 +299,7 @@ function startResize(event: MouseEvent) {bottom: 0;width: 1px;background: transparent;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;}&:hover::after,@@ -314,13 +314,13 @@ function startResize(event: MouseEvent) {color: var(--td-text-color-secondary);width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: color-mix(in srgb, var(--td-text-color-primary) 8%, var(--td-bg-color-secondarycontainer));@@ -351,13 +351,13 @@ function startResize(event: MouseEvent) {gap: 6px;padding: 6px 10px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;white-space: nowrap;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {color: var(--td-text-color-primary);@@ -380,10 +380,10 @@ function startResize(event: MouseEvent) {min-width: 16px;height: 16px;padding: 0 5px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-text-color-primary) 8%, transparent);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;text-align: center;font-variant-numeric: tabular-nums;@@ -417,7 +417,7 @@ function startResize(event: MouseEvent) {justify-content: center;gap: 10px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);p {margin: 0;diff --git a/frontend/src/components/credentials/CredentialResource.vue b/frontend/src/components/credentials/CredentialResource.vueindex aaf082f74..84aa8ead9 100644--- a/frontend/src/components/credentials/CredentialResource.vue+++ b/frontend/src/components/credentials/CredentialResource.vue@@ -340,7 +340,7 @@ onBeforeUnmount(() => {}.credential-row-label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -364,9 +364,9 @@ onBeforeUnmount(() => {padding: 0 4px 0 12px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-border);- border-radius: 6px;- font-size: 13px;- transition: border-color 0.15s ease, background-color 0.15s ease;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);+ transition: border-color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;&:hover {border-color: var(--td-brand-color-hover);@@ -458,7 +458,7 @@ onBeforeUnmount(() => {.status-icon {flex-shrink: 0;- font-size: 16px;+ font-size: var(--app-text-xl);&.success {color: var(--td-success-color);@@ -488,8 +488,8 @@ onBeforeUnmount(() => {:deep(.t-button--variant-text) {height: 24px;padding: 0 8px;- font-size: 12px;- border-radius: 4px;+ font-size: var(--app-text-sm);+ border-radius: var(--app-radius-xs);}}@@ -519,7 +519,7 @@ onBeforeUnmount(() => {:deep(.t-button) {height: 28px;padding: 0 12px;- font-size: 12px;+ font-size: var(--app-text-sm);}}</style>diff --git a/frontend/src/components/css/channel-panel-list.less b/frontend/src/components/css/channel-panel-list.lessindex 4d84bc124..31db81303 100644--- a/frontend/src/components/css/channel-panel-list.less+++ b/frontend/src/components/css/channel-panel-list.less@@ -5,7 +5,7 @@margin-bottom: 12px;.channels-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}@@ -13,8 +13,8 @@.channels-count {padding: 2px 8px;background: var(--td-bg-color-secondarycontainer);- border-radius: 10px;- font-size: 12px;+ border-radius: var(--app-radius-lg);+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);}}@@ -45,7 +45,7 @@min-height: calc(20px + 14px * 1.4 + 4px + 12px * 1.4);padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);text-align: left;font: inherit;@@ -59,12 +59,12 @@.channel-card__actions:not(.channel-card__actions--spacer) {opacity: 0;pointer-events: none;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}&:hover,&:focus-visible {- border-color: var(--td-brand-color-3, var(--td-brand-color));+ border-color: var(--td-brand-color-3);box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);outline: none;}@@ -108,11 +108,11 @@.channel-card__badge {background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 20px;+ font-size: var(--app-text-3xl);}.channel-card__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: inherit;}@@ -122,7 +122,7 @@flex-shrink: 0;width: 36px;height: 36px;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: flex;align-items: center;justify-content: center;@@ -153,7 +153,7 @@flex: 1;min-width: 0;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -165,7 +165,7 @@&__agent-name {display: block;margin-top: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);overflow: hidden;diff --git a/frontend/src/components/css/chat-citations.less b/frontend/src/components/css/chat-citations.lessindex a6c0ec981..e1bc2f341 100644--- a/frontend/src/components/css/chat-citations.less+++ b/frontend/src/components/css/chat-citations.less@@ -5,7 +5,7 @@gap: 2px;vertical-align: baseline;box-sizing: border-box;- border-radius: 999px;+ border-radius: var(--app-radius-pill);padding: 0 5px;font-size: 0.72em;line-height: 1.45;@@ -55,7 +55,7 @@cursor: pointer;white-space: nowrap;position: relative;- transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}:deep(.citation-kb:hover) {@@ -73,7 +73,7 @@white-space: nowrap;position: relative;text-decoration: none;- transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}:deep(.citation-web:hover) {@@ -97,7 +97,7 @@border-bottom: 1px dashed var(--td-brand-color);text-decoration: none;font-weight: 500;- transition: border-bottom-style 0.15s ease;+ transition: border-bottom-style var(--app-motion-fast) ease;&:hover {border-bottom-style: solid;@@ -117,10 +117,10 @@z-index: 10000;max-width: 320px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-primary);diff --git a/frontend/src/components/css/chat-citations.test.mjs b/frontend/src/components/css/chat-citations.test.mjsindex 0da9af39e..e51a0371b 100644--- a/frontend/src/components/css/chat-citations.test.mjs+++ b/frontend/src/components/css/chat-citations.test.mjs@@ -8,7 +8,7 @@ const here = dirname(fileURLToPath(import.meta.url))const css = readFileSync(join(here, 'chat-citations.less'), 'utf8')test('citation pills use compact baseline-aligned source styling', () => {- assert.match(css, /border-radius:\s*999px/)+ assert.match(css, /border-radius:\s*(?:999px|var\(--app-radius-pill\))/)assert.match(css, /font-size:\s*0\.72em/)assert.match(css, /box-shadow:\s*inset 0 0 0 1px/)})diff --git a/frontend/src/components/css/chat-markdown.less b/frontend/src/components/css/chat-markdown.lessindex c6165a450..2a26df943 100644--- a/frontend/src/components/css/chat-markdown.less+++ b/frontend/src/components/css/chat-markdown.less@@ -11,7 +11,7 @@// Tuned against ChatGPT markdown test doc: 16px body, 24px line-height on paragraphs,// stepped headings, dotted links, light tables, pill inline code, kbd chips..chat-markdown-typography() {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-primary);line-height: 1.625;letter-spacing: normal;@@ -116,7 +116,7 @@:deep(code):not(pre code) {background: color-mix(in srgb, var(--td-text-color-primary) 8%, transparent);padding: 0.15em 0.3em;- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-family: var(--app-font-family-mono);font-size: 0.875em;font-weight: 500;@@ -126,11 +126,11 @@background: var(--td-bg-color-secondarycontainer);padding: 14px 16px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow-x: auto;margin: 0.75em 0;line-height: 1.55;- font-size: 13px;+ font-size: var(--app-text-md);code {background: none;@@ -143,7 +143,7 @@:deep(.chat-code-block) {margin: 0.75em 0;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;background: var(--td-bg-color-container);box-shadow: 0 1px 2px color-mix(in srgb, var(--td-text-color-primary) 6%, transparent);@@ -161,7 +161,7 @@}:deep(.chat-code-block__lang) {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1.2;color: var(--td-text-color-secondary);@@ -176,14 +176,14 @@margin: 0;padding: 4px 8px;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1;cursor: pointer;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;&:hover {background: color-mix(in srgb, var(--td-text-color-primary) 6%, var(--td-bg-color-secondarycontainer));@@ -210,7 +210,7 @@border-radius: 0;background: color-mix(in srgb, var(--td-bg-color-secondarycontainer) 88%, var(--td-bg-color-container));overflow-x: auto;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;code {@@ -227,7 +227,7 @@:deep(.chat-mermaid-block) {margin: 0.75em 0;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);overflow: hidden;background: var(--td-bg-color-container);box-shadow: 0 1px 3px color-mix(in srgb, var(--td-text-color-primary) 5%, transparent);@@ -248,7 +248,7 @@display: inline-flex;align-items: center;gap: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;letter-spacing: 0.04em;text-transform: uppercase;@@ -264,11 +264,11 @@margin: 0;padding: 0;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;&:hover:not(:disabled) {background: color-mix(in srgb, var(--td-text-color-primary) 6%, var(--td-bg-color-secondarycontainer));@@ -330,7 +330,7 @@margin: 0.75em 0;padding: 20px 16px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);overflow-x: auto;text-align: center;@@ -516,7 +516,7 @@margin: 0.875em 0 1em;overflow-x: auto;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);-webkit-overflow-scrolling: touch;}@@ -526,7 +526,7 @@border-collapse: separate;border-spacing: 0;display: table;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.55;width: max-content;min-width: 0;@@ -586,13 +586,13 @@max-height: 300px;width: auto;height: auto;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: block;margin: 1.25em 0;border: 0.5px solid var(--td-component-stroke);object-fit: contain;cursor: pointer;- transition: transform 0.2s ease;+ transition: transform var(--app-motion-base) ease;}// Protected images not yet hydrated still carry the 1x1 placeholder gif.@@ -614,9 +614,9 @@cursor: default;background: linear-gradient(100deg,- var(--td-bg-color-secondarycontainer, #f3f3f3) 30%,- var(--td-bg-color-container-hover, #eaeaea) 50%,- var(--td-bg-color-secondarycontainer, #f3f3f3) 70%+ var(--td-bg-color-secondarycontainer) 30%,+ var(--td-bg-color-container-hover) 50%,+ var(--td-bg-color-secondarycontainer) 70%);background-size: 200% 100%;animation: chat-img-skeleton 1.2s ease-in-out infinite;@@ -651,12 +651,12 @@margin: 0.75em 0;box-sizing: border-box;padding: 12px 8px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: transparent;cursor: pointer;vertical-align: middle;text-align: left;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -698,7 +698,7 @@}:deep(.artifact-ref-card__name) {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;letter-spacing: 0.01em;line-height: 1.35;@@ -710,7 +710,7 @@:deep(.artifact-ref-card__hint) {margin-top: 2px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.3;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/components/css/chat-message-shared.less b/frontend/src/components/css/chat-message-shared.lessindex f6efcd8ca..2d83f18e5 100644--- a/frontend/src/components/css/chat-message-shared.less+++ b/frontend/src/components/css/chat-message-shared.less@@ -6,23 +6,24 @@justify-content: flex-start;gap: 4px;margin-top: 6px;- margin-left: -7px;- min-height: 30px;+ margin-left: -6px;+ min-height: 28px;color: var(--td-text-color-primary);+ // 与用户消息的操作键、输入框控制键同规格:28px、6px 圆角:deep(.t-button) {display: inline-flex;align-items: center;justify-content: center;min-width: auto;- width: 30px;- height: 30px;+ width: 28px;+ height: 28px;padding: 0;border: none;- border-radius: 8px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;.t-button__content {display: inline-flex !important;@@ -44,7 +45,7 @@opacity: 1;align-items: center;justify-content: center;- font-size: 16px;+ font-size: var(--app-text-xl);width: 16px;height: 16px;flex-shrink: 0;@@ -105,17 +106,7 @@}.answer-toolbar__artifact-spinner {- animation: answer-toolbar-artifact-spin 0.8s linear infinite;-}--@keyframes answer-toolbar-artifact-spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}@keyframes artifact-toolbar-arrive {@@ -147,7 +138,7 @@border-radius: 7px;background: var(--td-brand-color);color: var(--td-text-color-anti);- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1;font-variant-numeric: tabular-nums;@@ -190,7 +181,7 @@padding-left: 9px;border-left: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;white-space: nowrap;@@ -198,7 +189,7 @@flex: none;width: 14px;height: 14px;- font-size: 14px;+ font-size: var(--app-text-base);}.answer-toolbar__follow-up-label {@@ -256,7 +247,7 @@width: clamp(150px, 30vw, 260px);max-width: 100%;aspect-ratio: 4 / 3;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid rgba(175, 190, 210, 0.55);background: linear-gradient(145deg,diff --git a/frontend/src/components/css/chat-resource-chips.less b/frontend/src/components/css/chat-resource-chips.lessindex 950c66acb..54ab4235b 100644--- a/frontend/src/components/css/chat-resource-chips.less+++ b/frontend/src/components/css/chat-resource-chips.less@@ -28,9 +28,9 @@min-height: 26px;max-width: 200px;padding: 3px 8px;- border-radius: var(--td-radius-medium, 6px);+ border-radius: var(--td-radius-medium);box-sizing: border-box;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 18px;cursor: default;@@ -68,7 +68,7 @@align-items: center;justify-content: center;flex-shrink: 0;- font-size: 14px;+ font-size: var(--app-text-base);}.tag_name {diff --git a/frontend/src/components/css/markdown.less b/frontend/src/components/css/markdown.lessindex 4bebe936f..195886acc 100644--- a/frontend/src/components/css/markdown.less+++ b/frontend/src/components/css/markdown.less@@ -13,7 +13,7 @@margin: 16px 0;padding: 16px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow-x: auto;text-align: center;@@ -33,8 +33,8 @@font-weight: bold;color: var(--td-text-color-primary);font-family: var(--app-font-family);- transition: all 0.2s ease-out;- font-size: 20px;+ transition: all var(--app-motion-base) ease-out;+ font-size: var(--app-text-3xl);}.hljs-title,@@ -91,22 +91,22 @@ol,dl,table {- font-size: 14px;+ font-size: var(--app-text-base);margin: 10px 0;font-family: var(--app-font-family);}h2 {- font-size: 18px;+ font-size: var(--app-text-2xl);}h3 {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 500;}summary {- font-size: 14px;+ font-size: var(--app-text-base);cursor: pointer;}@@ -208,7 +208,7 @@table {padding: 0;word-break: initial;- /* border-radius: 4px; */+ /* border-radius: var(--app-radius-xs); */border-collapse: collapse;border-spacing: 0;width: 100%;@@ -257,7 +257,7 @@}figure {- border-radius: 8px;+ border-radius: var(--app-radius-md);margin-left: 0;margin-right: 0;background: var(--td-bg-color-container);@@ -271,7 +271,7 @@@media print {html {- font-size: 13px;+ font-size: var(--app-text-md);}table,@@ -367,7 +367,7 @@}.code-tooltip {- border-radius: 4px;+ border-radius: var(--app-radius-xs);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-secondarycontainer);}@@ -387,11 +387,11 @@h6.md-end-block.md-heading:after {color: var(--td-text-color-disabled) !important;border: 1px solid;- border-radius: 4px;+ border-radius: var(--app-radius-xs);position: absolute;left: -2.5rem;float: left;- font-size: 14px;+ font-size: var(--app-text-base);padding-left: 4px;padding-right: 5px;vertical-align: bottom;diff --git a/frontend/src/components/css/provider-card.less b/frontend/src/components/css/provider-card.lessnew file mode 100644index 000000000..070679177--- /dev/null+++ b/frontend/src/components/css/provider-card.less@@ -0,0 +1,161 @@+// 设置区「提供方卡片」(模型 / 向量库 / 网络搜索 / 存储后端 / 解析引擎 / 沙箱 / MCP / 技能)共用的视觉规范。+// 页面保留自己的 BEM 前缀(.model-card__badge 等),把重复声明换成这里的 mixin。+//+// @import (reference) '@/components/css/provider-card.less';+// .model-card { .provider-card(); &--add { .provider-card-add(); } }+// .model-card__badge { .provider-card-badge(); }+// .model-card--chat .model-card__badge { .provider-card-badge-color(#0052d9); }++.provider-card() {+ position: relative;+ display: flex;+ align-items: flex-start;+ gap: 12px;+ min-width: 0;+ padding: 14px 16px;+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-lg);+ background: var(--td-bg-color-container);+ transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;+}++// 可点击(进入编辑)的卡片 hover / focus 反馈+.provider-card-interactive() {+ cursor: pointer;++ &:hover {+ border-color: var(--td-brand-color-3);+ box-shadow: 0 4px 14px color-mix(in srgb, var(--td-text-color-primary) 6%, transparent);+ }++ &:focus-visible {+ outline: 2px solid var(--td-brand-color);+ outline-offset: 2px;+ }+}++// 虚线「新增」卡片+.provider-card-add() {+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 8px;+ min-height: 68px;+ border-style: dashed;+ background: transparent;+ color: var(--td-text-color-placeholder);+ cursor: pointer;+ font: inherit;+ text-align: center;++ &:hover,+ &:focus-visible {+ color: var(--td-brand-color);+ border-color: var(--td-brand-color);+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);+ }+}++// 左侧徽标:默认 36px;MCP / 技能等紧凑卡片传 26px+.provider-card-badge(@size: 36px, @radius: 9px) {+ flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ width: @size;+ height: @size;+ border-radius: @radius;+ margin-top: 1px;+ font-size: var(--app-text-lg);+ font-weight: 600;+ letter-spacing: 0.02em;+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-secondary);++ &--logo {+ background: var(--td-bg-color-container);+ box-shadow: inset 0 0 0 1px var(--td-component-stroke);+ }++ &--mono::before {+ content: '';+ width: 22px;+ height: 22px;+ background-color: currentColor;+ -webkit-mask-image: var(--logo-url);+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-image: var(--logo-url);+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+}++// 厂商品牌色:前景向文字主色靠拢(深色模式下自动变亮),底色为同色 12% 透明叠加+.provider-card-badge-color(@c) {+ color: color-mix(in srgb, @c 75%, var(--td-text-color-primary));+ background: color-mix(in srgb, @c 12%, transparent);+}++.provider-card-badge-img() {+ width: 24px;+ height: 24px;+ object-fit: contain;+ display: block;+}++.provider-card-body() {+ flex: 1;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 4px;+}++.provider-card-header() {+ display: flex;+ align-items: center;+ gap: 6px;+ min-width: 0;+}++.provider-card-title() {+ flex: 1;+ min-width: 0;+ margin: 0;+ font-size: var(--app-text-base);+ font-weight: 600;+ line-height: 1.4;+ color: var(--td-text-color-primary);+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.provider-card-subtitle() {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 4px;+ min-width: 0;+ font-size: var(--app-text-sm);+ line-height: 1.4;+ color: var(--td-text-color-secondary);+}++// 右上角「更多」:hover / 聚焦时显现+.provider-card-more() {+ flex-shrink: 0;+ padding: 2px;+ color: var(--td-text-color-placeholder);+ opacity: 0;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;++ &:hover,+ &:focus-visible {+ background: var(--td-bg-color-secondarycontainer);+ color: var(--td-text-color-primary);+ }+}diff --git a/frontend/src/components/css/resource-card.less b/frontend/src/components/css/resource-card.lessnew file mode 100644index 000000000..ca6733b09--- /dev/null+++ b/frontend/src/components/css/resource-card.less@@ -0,0 +1,231 @@+// 列表页资源卡片(知识库 / 智能体 / 共享空间)共用的视觉规范。+// 以 mixin 形式提供,消费方保留自己的根 class(.kb-card / .agent-card / .org-card)+// 与特有变体(类型渐变、收藏星标、装饰图案),基础尺寸、hover、更多按钮、徽标由这里统一。+//+// 用法(在消费方 <style lang="less" scoped> 内):+// @import (reference) '@/components/css/resource-card.less';+// .kb-card-wrap { .resource-card-grid(); }+// .kb-card { .resource-card(); /* 变体… */ }+// .feature-badge { .resource-feature-badge(); /* 语义色变体… */ }++.resource-card-grid() {+ display: grid;+ gap: 12px;+ grid-template-columns: 1fr;+ animation: contentFadeIn 0.32s ease-out;+}++.resource-card() {+ position: relative;+ display: flex;+ flex-direction: column;+ box-sizing: border-box;+ height: 136px;+ min-height: 136px;+ padding: 12px 14px;+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-md);+ background: var(--td-bg-color-container);+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);+ overflow: hidden;+ cursor: pointer;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;++ &:hover {+ border-color: var(--td-brand-color);+ box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 12%, transparent);+ }++ &.is-skeleton {+ cursor: default;++ .card-header {+ margin-bottom: 12px;+ }++ .card-content {+ flex: 1;+ }++ .card-bottom {+ margin-top: auto;+ }+ }++ // 内容永远压在装饰图案之上+ .card-header,+ .card-content,+ .card-bottom {+ position: relative;+ z-index: 1;+ }++ .card-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ gap: 4px;+ margin-bottom: 6px;+ }++ .card-header-left {+ display: flex;+ align-items: center;+ gap: 8px;+ flex: 1;+ min-width: 0;+ }++ .card-title-block {+ display: flex;+ flex-direction: column;+ gap: 2px;+ flex: 1;+ min-width: 0;+ }++ .card-title {+ display: flex;+ align-items: center;+ gap: 6px;+ flex: 1;+ min-width: 0;+ color: var(--td-text-color-primary);+ font-size: var(--app-text-lg);+ font-weight: 600;+ line-height: 22px;+ letter-spacing: 0.01em;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ .card-title-text {+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ .permission-tag {+ flex-shrink: 0;+ }++ // 「更多」按钮:hover 卡片时半透明出现,hover 自身时完全不透明+ .more-wrap,+ .card-more-btn {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 28px;+ height: 28px;+ flex-shrink: 0;+ border-radius: var(--app-radius-sm);+ color: var(--td-text-color-placeholder);+ cursor: pointer;+ opacity: 0;+ transition: background var(--app-motion-base) ease, opacity var(--app-motion-base) ease, color var(--app-motion-base) ease;++ &:hover,+ &.active-more {+ background: var(--td-bg-color-container-hover);+ color: var(--td-text-color-secondary);+ opacity: 1;+ }++ .more-icon {+ width: 16px;+ height: 16px;+ }+ }++ &:hover .more-wrap,+ &:hover .card-more-btn {+ opacity: 0.6;+ }++ &:hover .more-wrap:hover,+ &:hover .more-wrap.active-more,+ &:hover .card-more-btn:hover,+ &:hover .card-more-btn.active-more {+ opacity: 1;+ }++ // 触屏没有 hover,保持可见+ @media (hover: none) {+ .more-wrap,+ .card-more-btn {+ opacity: 0.6;+ }+ }++ .card-content {+ flex: 1;+ min-height: 0;+ margin-bottom: 6px;+ overflow: hidden;+ display: flex;+ flex-direction: column;+ gap: 6px;+ }++ .card-description {+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ line-clamp: 2;+ overflow: hidden;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-sm);+ font-weight: 400;+ line-height: 17px;+ }++ .card-bottom {+ display: flex;+ align-items: center;+ justify-content: space-between;+ margin-top: auto;+ padding-top: 6px;+ border-top: 0.5px solid var(--td-component-stroke);+ }++ .card-time {+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-sm);+ font-weight: 400;+ }++ .feature-badges {+ display: flex;+ align-items: center;+ gap: 4px;+ }+}++// 卡片底部的小徽标:图标独占时 22×22,带计数时自适应宽度+.resource-feature-badge() {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 3px;+ height: 22px;+ min-width: 22px;+ padding: 0 5px;+ box-sizing: border-box;+ border-radius: 5px;+ font-size: var(--app-text-xs);+ font-weight: 500;+ cursor: default;+ transition: background var(--app-motion-base) ease;++ .t-icon {+ flex-shrink: 0;+ }++ .badge-count {+ font-size: var(--app-text-xs);+ font-weight: 500;+ line-height: 1;+ }+}diff --git a/frontend/src/components/css/settings-section.less b/frontend/src/components/css/settings-section.lessnew file mode 100644index 000000000..bcec2d0a9--- /dev/null+++ b/frontend/src/components/css/settings-section.less@@ -0,0 +1,97 @@+// 设置区(views/settings、views/system、views/integrations)各页面共用的版式 mixin:+// 页面标题块、设置行、行内说明 / 控件列、行内保存状态。+// 页面保留自己的 class 名,只把重复声明换成 mixin 调用,需要偏离时在调用后覆盖。+//+// @import (reference) '@/components/css/settings-section.less';+// .section-header { .settings-section-header(); }+// .setting-row { .setting-row(); }+// .setting-info { .setting-info(); }+// .setting-control { .setting-control(); }++.settings-section-header() {+ margin-bottom: 28px;++ h2 {+ margin: 0 0 8px;+ color: var(--td-text-color-primary);+ font-size: var(--app-text-3xl);+ font-weight: 600;+ line-height: 28px;+ }++ .section-description {+ margin: 0;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-base);+ line-height: 1.5;+ }++ // 标题左、操作按钮右+ &__top {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 20px;+ }+}++.setting-row() {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 24px;+ padding: 20px 0;+ border-bottom: 1px solid var(--td-component-stroke);++ &:last-child {+ border-bottom: none;+ }+}++.setting-info() {+ flex: 1;+ min-width: 0;+ max-width: 65%;++ label,+ .setting-label {+ display: block;+ margin-bottom: 4px;+ color: var(--td-text-color-primary);+ font-size: var(--app-text-lg);+ font-weight: 500;+ line-height: 1.4;+ }++ .desc,+ .setting-desc {+ margin: 0;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-md);+ line-height: 1.5;+ }+}++.setting-control() {+ flex-shrink: 0;+ min-width: 280px;+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: 8px;+}++// 改即存设置项的行内反馈(替代 toast)+.setting-save-state() {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ flex-shrink: 0;+ min-width: 52px;+ font-size: var(--app-text-sm);+ color: var(--td-text-color-secondary);++ &--success {+ color: var(--td-success-color);+ }+}diff --git a/frontend/src/components/css/suggested-questions.less b/frontend/src/components/css/suggested-questions.lessindex e768d9c4f..1095378cb 100644--- a/frontend/src/components/css/suggested-questions.less+++ b/frontend/src/components/css/suggested-questions.less@@ -49,7 +49,7 @@}.suggested-questions-title {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);font-weight: 400;letter-spacing: 0.01em;@@ -64,14 +64,14 @@height: 20px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.2s @suggested-ease, background 0.2s @suggested-ease;+ transition: color var(--app-motion-base) @suggested-ease, background var(--app-motion-base) @suggested-ease;:deep(.t-icon) {- font-size: 12px;+ font-size: var(--app-text-sm);}&:hover:not(:disabled) {@@ -90,17 +90,7 @@}.sq-refresh-spin {- animation: sq-refresh-rotate 0.8s linear infinite;-}--@keyframes sq-refresh-rotate {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}.suggested-questions-grid {@@ -121,13 +111,13 @@width: auto;box-sizing: border-box;padding: 8px 14px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-container);cursor: pointer;overflow: hidden;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);- transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background var(--app-motion-base) ease;&:not(.sq-card-skeleton):hover {.suggestion-chip-hover();@@ -179,7 +169,7 @@position: relative;flex: 0 1 auto;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);overflow: hidden;@@ -191,10 +181,10 @@position: relative;flex-shrink: 0;padding: 1px 6px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: none;background: var(--td-brand-color-light);- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1.6;letter-spacing: 0.04em;diff --git a/frontend/src/components/css/wiki-graph-drawer.less b/frontend/src/components/css/wiki-graph-drawer.lessnew file mode 100644index 000000000..3b68ba3ab--- /dev/null+++ b/frontend/src/components/css/wiki-graph-drawer.less@@ -0,0 +1,200 @@+// Wiki 图谱/阅读抽屉的全局样式。抽屉通过 attach="body" 传送,无法用 scoped 覆盖。+// 同时被 views/chat/components/AgentStreamDisplay.vue 与 views/knowledge/wiki/WikiBrowser.vue 引入,+// 保证任一页面先加载时样式都存在。+.wiki-graph-drawer {+ box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);++ .wiki-reader-meta {+ display: flex;+ align-items: center;+ gap: 12px;+ }++ .wiki-reader-meta-text {+ font-size: var(--app-text-md);+ color: var(--td-text-color-placeholder);+ }++ // Wiki drawer is a non-chat reader surface. Chat answer Markdown styles are+ // centralized in chat-markdown.less; do not copy these rules into chat message components.+ .wiki-reader-body {+ line-height: 1.6;+ font-size: var(--app-text-base);+ color: var(--td-text-color-primary);++ h1 {+ font-size: var(--app-text-4xl);+ margin: 28px 0 16px;+ font-weight: 600;+ line-height: 1.4;+ }++ h2 {+ font-size: var(--app-text-2xl);+ margin: 24px 0 12px;+ font-weight: 600;+ line-height: 1.4;+ }++ h3 {+ font-size: var(--app-text-xl);+ margin: 20px 0 10px;+ font-weight: 600;+ line-height: 1.5;+ }++ h4,+ h5,+ h6 {+ font-size: var(--app-text-base);+ margin: 16px 0 8px;+ font-weight: 600;+ line-height: 1.5;+ }++ p {+ margin: 0 0 14px;+ }++ ul,+ ol {+ margin: 0 0 14px;+ padding-left: 24px;+ }++ li {+ margin-bottom: 6px;+ line-height: 1.6;+ }++ li>p {+ margin-bottom: 6px;+ }++ blockquote {+ margin: 0 0 14px;+ padding: 10px 16px;+ background: var(--td-bg-color-secondarycontainer);+ border-left: 4px solid var(--td-component-border);+ border-radius: 0 4px 4px 0;+ color: var(--td-text-color-secondary);+ }++ code {+ font-family: var(--app-font-family-mono);+ font-size: var(--app-text-md);+ padding: 2px 4px;+ background: var(--td-bg-color-secondarycontainer);+ border-radius: var(--app-radius-xs);+ color: var(--td-brand-color);+ }++ pre {+ margin: 0 0 14px;+ padding: 12px 16px;+ background: var(--td-bg-color-secondarycontainer);+ border-radius: var(--app-radius-sm);+ overflow-x: auto;++ code {+ padding: 0;+ background: transparent;+ color: inherit;+ }+ }++ p:has(img) {+ text-align: center;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-md);+ margin-top: 16px;+ margin-bottom: 24px;++ img {+ max-width: 100%;+ max-height: 400px;+ object-fit: contain;+ border-radius: var(--app-radius-sm);+ display: block;+ margin: 0 auto 8px;+ cursor: zoom-in;+ transition: opacity var(--app-motion-base);++ &:hover {+ opacity: 0.9;+ }+ }+ }++ a.wiki-content-link {+ color: var(--td-brand-color);+ text-decoration: none;+ border-bottom: 1px dashed var(--td-brand-color);+ cursor: pointer;+ font-weight: 500;++ &:hover {+ border-bottom-style: solid;+ text-decoration: none !important;+ }+ }++ .chat-markdown-table {+ width: fit-content;+ max-width: 100%;+ overflow-x: auto;+ margin: 0 0 16px;+ background: var(--td-bg-color-container);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);+ -webkit-overflow-scrolling: touch;+ }++ table {+ display: table;+ width: max-content;+ min-width: 0;+ border-collapse: separate;+ border-spacing: 0;+ font-size: var(--app-text-md);+ line-height: 1.55;+ }++ table thead {+ background: var(--td-bg-color-secondarycontainer);+ }++ table th,+ table td {+ padding: 8px 12px;+ border-bottom: 1px solid var(--td-component-stroke);+ border-right: 1px solid var(--td-component-stroke);+ text-align: left;+ vertical-align: top;+ word-break: break-word;+ }++ table th {+ font-weight: 600;+ color: var(--td-text-color-primary);+ white-space: nowrap;+ }++ table th:last-child,+ table td:last-child {+ border-right: none;+ }++ table tbody tr:last-child td {+ border-bottom: none;+ }++ table tbody tr:hover {+ background: var(--td-bg-color-secondarycontainer);+ }++ table code {+ font-size: var(--app-text-sm);+ }+ }+}diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vueindex aced4cca2..fffe978c6 100644--- a/frontend/src/components/doc-content.vue+++ b/frontend/src/components/doc-content.vue@@ -1985,6 +1985,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {</t-tooltip><t-popconfirm v-if="canDeleteGeneratedQuestion && !question.id.startsWith('legacy-')"theme="warning" :content="$t('knowledgeBase.confirmDeleteQuestion')"+ :confirm-btn="{ content: $t('common.delete'), theme: 'danger' }"@confirm="handleDeleteQuestion(chunk.original, index, question)"><t-button class="icon-action-btn delete-question-btn" theme="default" variant="text"shape="square" size="small" :loading="isDeleting(index, question.id)">@@ -2180,7 +2181,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {height: 28px;padding: 0;color: var(--td-text-color-secondary);- border-radius: 4px;+ border-radius: var(--app-radius-xs);&:hover,&.is-active {@@ -2200,7 +2201,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {:deep(.code-block-wrapper) {margin: 12px 0;border: 1px solid var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);overflow: hidden;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);@@ -2211,7 +2212,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {padding: 8px 12px;background: var(--td-bg-color-secondarycontainer);border-bottom: 1px solid var(--td-component-stroke);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-primary);}@@ -2221,7 +2222,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {padding: 12px;background: var(--td-bg-color-secondarycontainer);overflow: auto;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;code {@@ -2256,9 +2257,9 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {display: flex;align-items: center;justify-content: center;- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 16px;+ font-size: var(--app-text-xl);}.doc-drawer-header-text {@@ -2267,7 +2268,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {}.doc-drawer-header-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -2300,7 +2301,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {}.doc-drawer-body .setting-drawer__section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;@@ -2334,7 +2335,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.doc-detail-label {flex: 0 0 72px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -2345,7 +2346,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {flex-wrap: wrap;align-items: center;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);word-break: break-word;}@@ -2363,7 +2364,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.metadata-count {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;}@@ -2385,7 +2386,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.summary-refreshing-indicator {gap: 5px;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);white-space: nowrap;}@@ -2413,7 +2414,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.metadata-item-key {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);&::after {content: ':';@@ -2422,7 +2423,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.metadata-item-value {color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);}.metadata-empty-action,@@ -2435,12 +2436,12 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {min-height: 28px;padding: 0 4px;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-secondary);background: transparent;cursor: pointer;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);&:hover {color: var(--td-brand-color);@@ -2480,7 +2481,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {border-radius: 3px;color: var(--td-text-color-placeholder);background: var(--td-bg-color-component-disabled);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 30px;}@@ -2540,8 +2541,8 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {padding: 0;flex-shrink: 0;color: var(--td-text-color-secondary);- border-radius: 4px;- transition: background-color 0.15s ease, color 0.15s ease;+ border-radius: var(--app-radius-xs);+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -2590,7 +2591,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {position: relative;background: var(--td-bg-color-container);border: 1px solid var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);&.summary_clickable {cursor: pointer;@@ -2617,7 +2618,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.summary_content {padding: 12px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;word-break: break-word;white-space: pre-wrap;@@ -2658,14 +2659,14 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {min-height: 42px;background: var(--td-bg-color-container);border: 1px dashed var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}// URL链接区域.url_link_box {- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-container-hover);padding: 8px 12px;@@ -2678,7 +2679,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.url_text {flex: 1;- font-size: 13px;+ font-size: var(--app-text-md);word-break: break-all;}@@ -2700,7 +2701,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {max-width: 140px;height: 20px;line-height: 20px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border-color: var(--td-component-stroke);color: var(--td-text-color-secondary);padding: 0 8px;@@ -2713,16 +2714,16 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {text-overflow: ellipsis;white-space: nowrap;vertical-align: middle;- font-size: 11px;+ font-size: var(--app-text-xs);}}.chunk-count {color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);background: var(--td-bg-color-container-hover);padding: 2px 8px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);flex-shrink: 0;}@@ -2740,7 +2741,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.no_content {margin-top: 12px;color: var(--td-text-color-disabled);- font-size: 13px;+ font-size: var(--app-text-md);padding: 16px;text-align: center;}@@ -2753,7 +2754,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {}.chunk-item {- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 12px 14px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-border);@@ -2784,7 +2785,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.chunk-index {color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;}@@ -2797,7 +2798,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.chunk-meta {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}}@@ -2821,7 +2822,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 6px;margin-bottom: 8px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;}@@ -2829,7 +2830,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {width: min(560px, calc(100vw - 32px));max-height: min(620px, calc(100vh - 96px));overflow: hidden;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}@@ -2847,14 +2848,14 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {align-items: center;gap: 6px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.chunk-history-current {margin-top: 2px;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.chunk-history-popup-state {@@ -2864,7 +2865,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 8px;min-height: 100px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}.chunk-history-popup-list {@@ -2906,13 +2907,13 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.chunk-history-version {min-width: 32px;color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;}.chunk-history-time {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.chunk-history-status-change {@@ -2921,7 +2922,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 4px;margin-left: auto;color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);}.chunk-history-row-chevron {@@ -2944,7 +2945,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 10px;min-height: 30px;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.chunk-history-diff-legend {@@ -2954,7 +2955,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {margin: 0;flex-shrink: 0;color: var(--td-text-color-placeholder);- font-size: 10px;+ font-size: var(--app-text-2xs);}.chunk-history-diff-legend-item {@@ -2979,11 +2980,11 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.chunk-history-no-diff {padding: 12px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-placeholder);background: var(--td-bg-color-container);text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);}.chunk-history-diff-body {@@ -2992,10 +2993,10 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {padding: 8px 0;overflow: auto;border: 1px solid var(--td-component-border);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-container);font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.55;white-space: pre-wrap;word-break: break-word;@@ -3030,7 +3031,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {width: min(520px, calc(100vw - 32px));max-height: min(560px, calc(100vh - 96px));overflow: hidden;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}@@ -3052,19 +3053,19 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {.chunk-popup-title {gap: 7px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.chunk-popup-count {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;}.chunk-question-stale-hint {color: var(--td-warning-color);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;}@@ -3077,7 +3078,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 8px;min-height: 120px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}.chunk-context-popup-body {@@ -3085,7 +3086,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {padding: 14px 16px;overflow: auto;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);}.chunk-questions-popup-body {@@ -3112,9 +3113,9 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {min-height: 34px;padding: 5px 6px;border-bottom: 1px solid var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);line-height: 20px;@@ -3157,7 +3158,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {align-items: center;gap: 2px;opacity: 0;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;&:focus-within {opacity: 1;@@ -3179,7 +3180,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {gap: 8px;padding: 20px 8px 12px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}.question-composer {@@ -3197,7 +3198,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {margin-bottom: 16px;padding: 12px 16px;background: var(--td-bg-color-container-hover);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px solid var(--td-component-border);.audio-player {@@ -3210,7 +3211,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {align-items: center;gap: 8px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);padding: 4px 0;}}@@ -3270,7 +3271,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.doc-drawer-resize-handle:hover .doc-drawer-resize-line {@@ -3304,7 +3305,7 @@ const handleChunkPageChange = (pageInfo: { current: number }) => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.trace-drawer-resize-handle:hover .trace-drawer-resize-line {diff --git a/frontend/src/components/document-preview.vue b/frontend/src/components/document-preview.vueindex a3c19e771..baf906c5d 100644--- a/frontend/src/components/document-preview.vue+++ b/frontend/src/components/document-preview.vue@@ -621,7 +621,7 @@ onUnmounted(() => {<style scoped lang="less">// ── Design tokens ──@border-color: var(--td-component-stroke);-@border-radius: 6px;+@border-radius: var(--app-radius-sm);@bg-white: var(--td-bg-color-container);@bg-subtle: var(--td-bg-color-container);@bg-muted: var(--td-bg-color-secondarycontainer);@@ -642,7 +642,7 @@ onUnmounted(() => {// That produces an extra bit of scroll inside the non-fullscreen preview,// which is acceptable for document reading. Not worth the complexity of// inverse-scaling here.-@transition: all 0.2s ease;+@transition: all var(--app-motion-base) ease;// ── Shared container mixin ──.preview-container() {@@ -784,7 +784,7 @@ onUnmounted(() => {text-overflow: ellipsis;white-space: nowrap;color: @text-primary;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;}@@ -813,7 +813,7 @@ onUnmounted(() => {:deep(.t-button__icon) {margin: 0;- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -825,7 +825,7 @@ onUnmounted(() => {justify-content: center;padding: 60px 20px;gap: 16px;- .loading-text { color: @text-tertiary; font-size: 14px; }+ .loading-text { color: @text-tertiary; font-size: var(--app-text-base); }}.preview-error {@@ -836,7 +836,7 @@ onUnmounted(() => {padding: 60px 20px;gap: 12px;color: @error-color;- p { margin: 0; font-size: 14px; color: @text-secondary; }+ p { margin: 0; font-size: var(--app-text-base); color: @text-secondary; }}.preview-unsupported {@@ -847,8 +847,8 @@ onUnmounted(() => {padding: 60px 20px;gap: 12px;color: @text-disabled;- p { margin: 0; font-size: 14px; color: @text-secondary; }- .unsupported-hint { font-size: 12px; color: @text-tertiary; }+ p { margin: 0; font-size: var(--app-text-base); color: @text-secondary; }+ .unsupported-hint { font-size: var(--app-text-sm); color: @text-tertiary; }}// ── PDF ──@@ -886,7 +886,7 @@ onUnmounted(() => {margin: 0;padding: 16px;background: @bg-subtle;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;code {white-space: pre;@@ -928,10 +928,10 @@ onUnmounted(() => {max-width: 100%;max-height: calc(100vh - 280px);border-radius: @border-radius;- box-shadow: 0 2px 12px rgba(7, 192, 95, 0.08);+ box-shadow: 0 2px 12px color-mix(in srgb, var(--td-brand-color) 8%, transparent);object-fit: contain;}- .image-info { font-size: 12px; color: @text-tertiary; }+ .image-info { font-size: var(--app-text-sm); color: @text-tertiary; }}}@@ -973,7 +973,7 @@ onUnmounted(() => {margin: 0;padding: 16px;background: @bg-subtle;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;code {white-space: pre;@@ -995,7 +995,7 @@ onUnmounted(() => {align-items: center;gap: 16px;color: @text-secondary;- .audio-filename { font-size: 14px; color: @text-primary; margin: 0; }+ .audio-filename { font-size: var(--app-text-base); color: @text-primary; margin: 0; }.audio-element { width: 100%; max-width: 480px; }}}@@ -1021,7 +1021,7 @@ onUnmounted(() => {.preview-table() {width: 100%;border-collapse: collapse;- font-size: 13px;+ font-size: var(--app-text-md);th, td {border: 1px solid @table-border;padding: 6px 12px;@@ -1039,7 +1039,7 @@ onUnmounted(() => {}:deep(.markdown-body) {- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.7;color: @text-primary;word-break: break-word;@@ -1050,8 +1050,8 @@ onUnmounted(() => {font-weight: 600;line-height: 1.4;}- h1 { font-size: 24px; border-bottom: 1px solid @border-color; padding-bottom: 8px; }- h2 { font-size: 20px; border-bottom: 1px solid @border-color; padding-bottom: 6px; }+ h1 { font-size: var(--app-text-4xl); border-bottom: 1px solid @border-color; padding-bottom: 8px; }+ h2 { font-size: var(--app-text-3xl); border-bottom: 1px solid @border-color; padding-bottom: 6px; }h3 { font-size: 17px; }p { margin: 8px 0; }@@ -1073,7 +1073,7 @@ onUnmounted(() => {background: @bg-subtle;border-radius: @border-radius;overflow: auto;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;code { background: transparent; padding: 0; }}@@ -1083,7 +1083,7 @@ onUnmounted(() => {border-radius: 3px;font-size: 0.9em;}- img { max-width: 100%; border-radius: 4px; }+ img { max-width: 100%; border-radius: var(--app-radius-xs); }hr { border: none; border-top: 1px solid @border-color; margin: 20px 0; }a { color: @accent; text-decoration: none; &:hover { color: @accent-hover; text-decoration: underline; } }strong { font-weight: 600; }@@ -1139,7 +1139,7 @@ onUnmounted(() => {background: @accent-bg;padding: 8px 16px;font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);color: @text-primary;border-bottom: 1px solid @border-color;z-index: 1;diff --git a/frontend/src/components/empty-knowledge.vue b/frontend/src/components/empty-knowledge.vueindex 87defe3e5..1b8ad3464 100644--- a/frontend/src/components/empty-knowledge.vue+++ b/frontend/src/components/empty-knowledge.vue@@ -22,7 +22,7 @@ const { t } = useI18n().empty-txt {color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;line-height: 26px;margin: 12px 0 16px 0;@@ -32,7 +32,7 @@ const { t } = useI18n()color: var(--td-text-color-disabled);text-align: center;font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;width: 217px;}diff --git a/frontend/src/components/knowledge-processing-timeline.vue b/frontend/src/components/knowledge-processing-timeline.vueindex 30e6f4d36..e7551a5e2 100644--- a/frontend/src/components/knowledge-processing-timeline.vue+++ b/frontend/src/components/knowledge-processing-timeline.vue@@ -1855,7 +1855,7 @@ const processConfigLines = computed<string[]>(() => {<style scoped lang="less">.kp-timeline {font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);width: 100%;height: 100%;@@ -1897,7 +1897,7 @@ const processConfigLines = computed<string[]>(() => {flex: 1;min-width: 0;margin: 0;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -1920,7 +1920,7 @@ const processConfigLines = computed<string[]>(() => {border-radius: var(--td-radius-medium);background: var(--td-warning-color-light);color: var(--td-warning-color);- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;text-transform: uppercase;letter-spacing: 0.06em;@@ -1963,7 +1963,7 @@ const processConfigLines = computed<string[]>(() => {.kp-head-meta {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);word-break: break-word;@@ -1989,7 +1989,7 @@ const processConfigLines = computed<string[]>(() => {color: var(--td-text-color-placeholder);cursor: pointer;border-radius: var(--td-radius-default);- transition: background 150ms ease, color 150ms ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}.kp-icon-btn:hover:not(:disabled) {@@ -2011,30 +2011,24 @@ const processConfigLines = computed<string[]>(() => {}.kp-icon-btn-spin :deep(.t-icon) {- animation: kpSpin 0.9s linear infinite;+ animation: wk-spin 0.9s linear infinite;}/* Slow rotation while auto-polling — visually distinct from themanual-refresh fast spin. Tells the user "refresh is happening onits own" without an extra label or badge. */.kp-icon-btn-autoflow :deep(.t-icon) {- animation: kpSpin 4s linear infinite;+ animation: wk-spin 4s linear infinite;color: var(--td-warning-color);}-@keyframes kpSpin {- to {- transform: rotate(360deg);- }-}-.kp-meta-glyph {display: inline-flex;align-items: center;justify-content: center;width: 12px;height: 12px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1;}@@ -2073,11 +2067,11 @@ const processConfigLines = computed<string[]>(() => {border-radius: var(--td-radius-default);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;cursor: pointer;white-space: nowrap;- transition: background 150ms ease, border-color 150ms ease, color 150ms ease;+ transition: background var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}.kp-attempt:not(.kp-attempt-active):hover {@@ -2105,7 +2099,7 @@ const processConfigLines = computed<string[]>(() => {.kp-attempt-num {font-weight: 600;- font-size: 11px;+ font-size: var(--app-text-xs);}.kp-attempt-glyph {@@ -2138,7 +2132,7 @@ const processConfigLines = computed<string[]>(() => {gap: 8px;flex: 1 1 auto;padding: 56px 20px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -2173,7 +2167,7 @@ const processConfigLines = computed<string[]>(() => {flex-direction: column;align-items: center;transform: translateX(-50%);- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);}@@ -2195,7 +2189,7 @@ const processConfigLines = computed<string[]>(() => {.kp-tick-label {margin-top: 2px;- font-size: 10px;+ font-size: var(--app-text-2xs);letter-spacing: 0.02em;}@@ -2213,7 +2207,7 @@ const processConfigLines = computed<string[]>(() => {cursor: pointer;position: relative;padding: 0 20px;- transition: background 150ms ease;+ transition: background var(--app-motion-fast) ease;}.kp-row::before {@@ -2225,7 +2219,7 @@ const processConfigLines = computed<string[]>(() => {width: 2px;background: transparent;border-radius: 0 2px 2px 0;- transition: background 150ms ease;+ transition: background var(--app-motion-fast) ease;}.kp-row:hover {@@ -2281,7 +2275,7 @@ const processConfigLines = computed<string[]>(() => {width: 22px;height: 22px;margin: -3px 0;- transition: color 120ms ease, background 150ms ease;+ transition: color var(--app-motion-instant) ease, background var(--app-motion-fast) ease;flex-shrink: 0;border-radius: var(--td-radius-default);}@@ -2308,7 +2302,7 @@ const processConfigLines = computed<string[]>(() => {}.kp-name-text {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -2317,17 +2311,17 @@ const processConfigLines = computed<string[]>(() => {.kp-name-mono {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);}.kp-name-root {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);}.kp-name-kind {font-family: var(--app-font-family-mono);- font-size: 10px;+ font-size: var(--app-text-2xs);text-transform: uppercase;letter-spacing: 0.5px;color: var(--td-text-color-placeholder);@@ -2338,7 +2332,7 @@ const processConfigLines = computed<string[]>(() => {/* Duration cell */.kp-cell-dur {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);text-align: right;padding-right: 12px;@@ -2411,13 +2405,13 @@ const processConfigLines = computed<string[]>(() => {transform: translateX(-50%);background: var(--td-text-color-primary);color: var(--td-text-color-anti);- font-size: 11px;+ font-size: var(--app-text-xs);padding: 4px 8px;border-radius: var(--td-radius-default);white-space: nowrap;opacity: 0;pointer-events: none;- transition: opacity 150ms ease;+ transition: opacity var(--app-motion-fast) ease;z-index: 10;display: flex;align-items: center;@@ -2525,7 +2519,7 @@ const processConfigLines = computed<string[]>(() => {}.kp-bar-wrap-done {- border-color: rgba(7, 192, 95, 0.35);+ border-color: color-mix(in srgb, var(--td-brand-color) 35%, transparent);}.kp-bar-wrap-failed {@@ -2578,7 +2572,7 @@ const processConfigLines = computed<string[]>(() => {white-space: nowrap;transform: translateX(-50%);opacity: 0;- transition: opacity 150ms ease;+ transition: opacity var(--app-motion-fast) ease;}.kp-row:hover .kp-bar-offset,@@ -2681,19 +2675,19 @@ const processConfigLines = computed<string[]>(() => {background: var(--td-error-color);color: var(--td-text-color-anti);border-radius: 50%;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 700;flex-shrink: 0;}.kp-last-error-title {font-weight: 600;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-error-color);}.kp-last-error-code {- font-size: 10px;+ font-size: var(--app-text-2xs);background: var(--td-error-color);color: var(--td-text-color-anti);padding: 1px 6px;@@ -2702,13 +2696,13 @@ const processConfigLines = computed<string[]>(() => {}.kp-last-error-suggestion {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin-bottom: 4px;}.kp-last-error-raw {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);white-space: pre-wrap;word-break: break-word;@@ -2756,7 +2750,7 @@ const processConfigLines = computed<string[]>(() => {.kp-detail-name {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -2766,7 +2760,7 @@ const processConfigLines = computed<string[]>(() => {.kp-detail-kind {font-family: var(--app-font-family-mono);- font-size: 10px;+ font-size: var(--app-text-2xs);text-transform: uppercase;letter-spacing: 0.5px;color: var(--td-text-color-placeholder);@@ -2780,7 +2774,7 @@ const processConfigLines = computed<string[]>(() => {align-items: center;padding: 1px 8px;border-radius: var(--td-radius-default);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;background: var(--td-bg-color-component);color: var(--td-text-color-primary);@@ -2841,10 +2835,10 @@ const processConfigLines = computed<string[]>(() => {border: none;background: transparent;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;position: relative;- transition: color 150ms ease;+ transition: color var(--app-motion-fast) ease;}.kp-tab:hover {@@ -2885,12 +2879,12 @@ const processConfigLines = computed<string[]>(() => {align-items: center;justify-content: center;padding: 48px 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}.kp-detail-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);padding: 10px 12px;background: var(--td-bg-color-secondarycontainer);@@ -2906,7 +2900,7 @@ const processConfigLines = computed<string[]>(() => {}.kp-section-title {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;text-transform: uppercase;letter-spacing: 0.5px;@@ -2915,7 +2909,7 @@ const processConfigLines = computed<string[]>(() => {.kp-section-desc {margin: 4px 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -2934,11 +2928,11 @@ const processConfigLines = computed<string[]>(() => {border: 1px solid var(--td-component-border);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);padding: 3px 8px;border-radius: var(--td-radius-default);cursor: pointer;- transition: background 150ms ease, color 150ms ease, border-color 150ms ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;}.kp-section-action:hover {@@ -2967,7 +2961,7 @@ const processConfigLines = computed<string[]>(() => {grid-template-columns: 130px 1fr;gap: 12px;align-items: center;- font-size: 12px;+ font-size: var(--app-text-sm);min-width: 0;padding: 8px 12px;background: var(--td-bg-color-container);@@ -2983,7 +2977,7 @@ const processConfigLines = computed<string[]>(() => {.kp-kv-key {color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;white-space: nowrap;overflow: hidden;@@ -3020,14 +3014,14 @@ const processConfigLines = computed<string[]>(() => {}.kp-kv-scalar {- font-size: 12px;+ font-size: var(--app-text-sm);}.kp-kv-running {color: var(--td-warning-color);font-style: italic;font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);}.kp-kv-tag-live {@@ -3065,7 +3059,7 @@ const processConfigLines = computed<string[]>(() => {.kp-mono {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);letter-spacing: 0;}@@ -3097,7 +3091,7 @@ const processConfigLines = computed<string[]>(() => {.kp-kv-summary-static {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.kp-kv-toggle {@@ -3110,7 +3104,7 @@ const processConfigLines = computed<string[]>(() => {align-items: baseline;gap: 8px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);flex-wrap: wrap;}@@ -3119,7 +3113,7 @@ const processConfigLines = computed<string[]>(() => {}.kp-kv-toggle-label {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-brand-color);font-weight: 500;}@@ -3144,7 +3138,7 @@ const processConfigLines = computed<string[]>(() => {grid-template-columns: 110px 1fr 64px;gap: 10px;align-items: center;- font-size: 12px;+ font-size: var(--app-text-sm);}.kp-breakdown-label {@@ -3206,20 +3200,20 @@ const processConfigLines = computed<string[]>(() => {background: var(--td-error-color);color: var(--td-text-color-anti);border-radius: 50%;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 700;flex-shrink: 0;}.kp-error-title {font-weight: 600;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-error-color);}.kp-error-code {margin-left: auto;- font-size: 10px;+ font-size: var(--app-text-2xs);background: var(--td-error-color);color: var(--td-text-color-anti);padding: 1px 6px;@@ -3228,7 +3222,7 @@ const processConfigLines = computed<string[]>(() => {.kp-error-msg {margin: 0;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);white-space: pre-wrap;word-break: break-word;@@ -3251,7 +3245,7 @@ const processConfigLines = computed<string[]>(() => {overflow: auto;white-space: pre-wrap;word-break: break-word;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-primary);line-height: 1.6;}@@ -3282,7 +3276,7 @@ const processConfigLines = computed<string[]>(() => {.kp-compact-caption {margin-top: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);white-space: nowrap;overflow: hidden;@@ -3304,13 +3298,13 @@ const processConfigLines = computed<string[]>(() => {.kp-proccfg-title {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);margin-bottom: 2px;}.kp-proccfg-line {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;color: var(--td-text-color-secondary);word-break: break-word;diff --git a/frontend/src/components/manual-knowledge-editor.vue b/frontend/src/components/manual-knowledge-editor.vueindex d493c5172..455009148 100644--- a/frontend/src/components/manual-knowledge-editor.vue+++ b/frontend/src/components/manual-knowledge-editor.vue@@ -956,7 +956,7 @@ onBeforeUnmount(() => {}.form-label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);@@ -969,7 +969,7 @@ onBeforeUnmount(() => {.form-desc {margin: 2px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -1045,15 +1045,15 @@ onBeforeUnmount(() => {transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;&:hover {- border-color: rgba(7, 192, 95, 0.45);- background: rgba(7, 192, 95, 0.06);+ border-color: color-mix(in srgb, var(--td-brand-color) 45%, transparent);+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);color: var(--td-brand-color);- box-shadow: 0 2px 6px rgba(7, 192, 95, 0.1);+ box-shadow: 0 2px 6px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}&.is-preview {- border-color: rgba(7, 192, 95, 0.5);- background: rgba(7, 192, 95, 0.1);+ border-color: color-mix(in srgb, var(--td-brand-color) 50%, transparent);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);}@@ -1064,7 +1064,7 @@ onBeforeUnmount(() => {:deep(.t-button__icon) {margin-right: 5px;- font-size: 15px;+ font-size: var(--app-text-lg);}}@@ -1085,26 +1085,26 @@ onBeforeUnmount(() => {width: 28px;height: 28px;padding: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);border: none;background: transparent;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;display: flex;align-items: center;justify-content: center;.t-icon {color: var(--td-text-color-secondary);- font-size: 16px;+ font-size: var(--app-text-xl);width: 16px;height: 16px;}}.toolbar-btn:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);.t-icon {@@ -1113,7 +1113,7 @@ onBeforeUnmount(() => {}.toolbar-btn.active {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: var(--td-brand-color);.t-icon {@@ -1123,11 +1123,11 @@ onBeforeUnmount(() => {.toolbar-btn:focus-visible {outline: none;- box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.25);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 25%, transparent);}.toolbar-btn:active {- background: rgba(7, 192, 95, 0.15);+ background: color-mix(in srgb, var(--td-brand-color) 15%, transparent);transform: translateY(0.5px);}@@ -1139,14 +1139,14 @@ onBeforeUnmount(() => {display: flex;flex-direction: column;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;background: var(--td-bg-color-container);- transition: border-color 0.2s ease, box-shadow 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease;&:focus-within {border-color: var(--td-brand-color);- box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}}@@ -1174,7 +1174,7 @@ onBeforeUnmount(() => {border-radius: 0;padding: 14px 16px;font-family: var(--app-font-family-mono);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.7;background: var(--td-bg-color-container);@@ -1194,7 +1194,7 @@ onBeforeUnmount(() => {overflow-y: auto;padding: 16px;background: var(--td-bg-color-container);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.7;color: var(--td-text-color-primary);@@ -1209,14 +1209,14 @@ onBeforeUnmount(() => {:deep(code) {background: var(--td-bg-color-container-hover);padding: 2px 4px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-family: var(--app-font-family-mono);}:deep(pre) {background: var(--td-bg-color-container-hover);padding: 12px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: auto;}@@ -1225,7 +1225,7 @@ onBeforeUnmount(() => {padding-left: 12px;color: var(--td-text-color-secondary);margin: 16px 0;- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);}:deep(a) {diff --git a/frontend/src/components/menu.vue b/frontend/src/components/menu.vueindex bc8cc62a7..666bf24a3 100644--- a/frontend/src/components/menu.vue+++ b/frontend/src/components/menu.vue@@ -1293,8 +1293,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {flex-shrink: 0;cursor: pointer;color: var(--td-text-color-secondary);- border-radius: 4px;- transition: background-color 0.2s ease;+ border-radius: var(--app-radius-xs);+ transition: background-color var(--app-motion-base) ease;box-sizing: border-box;&:hover {@@ -1341,23 +1341,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}}- .logo_img {- margin-left: 24px;- width: 30px;- height: 30px;- margin-right: 7.25px;- }-- .logo_txt {- transform: rotate(0.049deg);- color: var(--td-text-color-primary);- font-family: "TencentSans";- font-size: 24.12px;- font-style: normal;- font-weight: W7;- line-height: 21.7px;- }-.menu_top {flex: 1;display: flex;@@ -1373,7 +1356,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {// Claude 风格细滚动条:默认透明,悬浮时显示一条圆角细灰条scrollbar-width: thin;scrollbar-color: transparent transparent;- transition: scrollbar-color 0.2s ease;+ transition: scrollbar-color var(--app-motion-base) ease;&::-webkit-scrollbar {width: 6px;@@ -1385,20 +1368,20 @@ const onDragHandleMouseDown = (e: MouseEvent) => {&::-webkit-scrollbar-thumb {background-color: transparent;- border-radius: 6px;- transition: background-color 0.2s ease;+ border-radius: var(--app-radius-sm);+ transition: background-color var(--app-motion-base) ease;}&:hover {- scrollbar-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18)) transparent;+ scrollbar-color: var(--td-scrollbar-color) transparent;&::-webkit-scrollbar-thumb {- background-color: var(--td-scrollbar-color, rgba(0, 0, 0, 0.18));+ background-color: var(--td-scrollbar-color);}}&::-webkit-scrollbar-thumb:hover {- background-color: var(--td-scrollbar-hover-color, rgba(0, 0, 0, 0.32));+ background-color: var(--td-scrollbar-hover-color);}}@@ -1423,32 +1406,12 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}- .upload-file-wrap {- padding: 6px;- border-radius: 3px;- height: 32px;- width: 32px;- box-sizing: border-box;- }-- .upload-file-wrap:hover {- background-color: var(--td-brand-color-light);- color: var(--td-brand-color);-- }-- .upload-file-icon {- width: 20px;- height: 20px;- color: var(--td-text-color-secondary);- }-.active-upload {color: var(--td-brand-color);}.menu_item_active {- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-secondarycontainer) !important;.menu_icon,@@ -1465,12 +1428,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}}- .menu_p {- height: 46px;- padding: 3px 0;- box-sizing: border-box;- }-.menu_item {cursor: pointer;display: flex;@@ -1480,8 +1437,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {padding: 8px 10px 8px var(--sidebar-inset-x);box-sizing: border-box;margin-bottom: 2px;- border-radius: 4px;- transition: background-color 0.2s ease;+ border-radius: var(--app-radius-xs);+ transition: background-color var(--app-motion-base) ease;.menu_item-box {display: flex;@@ -1489,7 +1446,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}&:hover {- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-container-hover);.menu_icon,@@ -1517,7 +1474,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {color: var(--td-text-color-primary);text-overflow: ellipsis;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-style: normal;font-weight: 600;line-height: 20px;@@ -1530,7 +1487,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {.submenu {position: relative;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-style: normal;min-width: 0;padding-top: 3px;@@ -1538,7 +1495,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {:deep(.submenu_pin_icon) {color: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);margin-right: 4px;vertical-align: middle;flex-shrink: 0;@@ -1546,7 +1503,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {:deep(.submenu_fork_icon) {color: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);margin-right: 4px;vertical-align: middle;flex-shrink: 0;@@ -1563,7 +1520,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {// 悬浮或选中时恢复彩色,交互时才引人注意。filter: grayscale(1);opacity: 0.55;- transition: filter 0.15s ease, opacity 0.15s ease;+ transition: filter var(--app-motion-fast) ease, opacity var(--app-motion-fast) ease;}:deep(.submenu_item:hover .submenu_source_icon),@@ -1613,7 +1570,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {.timeline_header {font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-disabled);padding-top: 4px;@@ -1645,7 +1602,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {min-width: 0;max-width: 100%;opacity: 0;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}}@@ -1664,8 +1621,8 @@ const onDragHandleMouseDown = (e: MouseEvent) => {&.session-chat-row .session-list-row {min-height: 30px;- border-radius: 6px;- transition: background 0.15s ease, color 0.15s ease;+ border-radius: var(--app-radius-sm);+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}&.session-chat-row--revealed {@@ -1701,7 +1658,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}&.session-chat-row--selected .session-list-row {- background: rgba(7, 192, 95, 0.05);+ background: color-mix(in srgb, var(--td-brand-color) 5%, transparent);}}@@ -1712,7 +1669,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {align-items: center;color: var(--td-text-color-primary);font-weight: 400;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;height: 100%;width: 100%;@@ -1744,7 +1701,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {.menu-more-wrap {opacity: 0;- transition: opacity 0.2s ease;+ transition: opacity var(--app-motion-base) ease;flex-shrink: 0;}@@ -1786,7 +1743,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {.batch-footer-left {display: flex;align-items: center;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -1797,81 +1754,6 @@ const onDragHandleMouseDown = (e: MouseEvent) => {}}-/* 知识库下拉菜单样式 */-.kb-dropdown-icon {- margin-left: auto;- color: var(--td-text-color-secondary);- transition: transform 0.3s ease, color 0.2s ease;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- width: 16px;- height: 16px;-- &.rotate-180 {- transform: rotate(180deg);- }-- &:hover {- color: var(--td-brand-color);- }-- &.active {- color: var(--td-brand-color);- }-- &.active:hover {- color: var(--td-brand-color-active);- }-- svg {- width: 12px;- height: 12px;- transition: inherit;- }-}--.kb-dropdown-menu {- position: absolute;- top: 100%;- left: 0;- right: 0;- background: var(--td-bg-color-container);- border: 1px solid var(--td-component-stroke);- border-radius: 6px;- box-shadow: var(--td-shadow-2);- z-index: 1000;- max-height: 200px;- overflow-y: auto;-}--.kb-dropdown-item {- padding: 8px 16px;- cursor: pointer;- transition: background-color 0.2s ease;- font-size: 14px;- color: var(--td-text-color-primary);-- &:hover {- background-color: var(--td-bg-color-container-hover);- }-- &.active {- background-color: var(--td-brand-color-light);- color: var(--td-brand-color);- font-weight: 500;- }-- &:first-child {- border-radius: 6px 6px 0 0;- }-- &:last-child {- border-radius: 0 0 6px 6px;- }-}-.menu_item-box {display: flex;align-items: center;@@ -1883,7 +1765,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {.submenu_empty {padding: 24px 14px;text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);user-select: none;}@@ -1904,9 +1786,9 @@ const onDragHandleMouseDown = (e: MouseEvent) => {height: 26px;flex-shrink: 0;cursor: pointer;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);- transition: background-color 0.2s ease;+ transition: background-color var(--app-motion-base) ease;box-sizing: border-box;&:hover {@@ -1928,11 +1810,11 @@ const onDragHandleMouseDown = (e: MouseEvent) => {white-space: nowrap;.cmdk-tip-label {- font-size: 13px;+ font-size: var(--app-text-md);}.cmdk-tip-keys {- font-size: 13px;+ font-size: var(--app-text-md);opacity: 0.6;letter-spacing: 0.5px;}@@ -1946,7 +1828,7 @@ const onDragHandleMouseDown = (e: MouseEvent) => {border-radius: 9px;background: rgba(250, 173, 20, 0.2);color: var(--td-warning-color);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 18px;text-align: center;@@ -2026,10 +1908,10 @@ html[theme-mode="dark"] .aside_box .menu_item_active .menu_icon img.icon {.t-popconfirm__content {background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: var(--td-shadow-3);padding: 12px 16px;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);max-width: 200px;}diff --git a/frontend/src/components/settings/SandboxBackendBadge.vue b/frontend/src/components/settings/SandboxBackendBadge.vueindex 5e247ed0f..0cc7ba94b 100644--- a/frontend/src/components/settings/SandboxBackendBadge.vue+++ b/frontend/src/components/settings/SandboxBackendBadge.vue@@ -56,14 +56,14 @@ const badgeStyle = computed((): Record<string, string> => (width: 26px;height: 26px;border-radius: 7px;- font-size: 14px;+ font-size: var(--app-text-base);}.sandbox-badge--xs {width: 16px;height: 16px;- border-radius: 4px;- font-size: 10px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-2xs);}.sandbox-badge--e2b {diff --git a/frontend/src/components/settings/SettingDrawer.vue b/frontend/src/components/settings/SettingDrawer.vueindex 157805c31..a6c02b328 100644--- a/frontend/src/components/settings/SettingDrawer.vue+++ b/frontend/src/components/settings/SettingDrawer.vue@@ -310,10 +310,10 @@ const handleCancel = () => {display: flex;align-items: center;justify-content: center;- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 16px;- transition: background 0.2s ease;+ font-size: var(--app-text-xl);+ transition: background var(--app-motion-base) ease;}.setting-drawer__header-text {@@ -345,7 +345,7 @@ const handleCancel = () => {}.setting-drawer__title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -355,7 +355,7 @@ const handleCancel = () => {}.setting-drawer__subtitle {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);}@@ -423,7 +423,7 @@ const handleCancel = () => {}.setting-drawer__body :deep(.setting-drawer__section-title) {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;@@ -541,7 +541,7 @@ const handleCancel = () => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.setting-drawer-resize-handle:hover .setting-drawer-resize-line,diff --git a/frontend/src/components/settings/useConfirmDelete.ts b/frontend/src/components/settings/useConfirmDelete.tsindex f52463ba0..a16b8fcc7 100644--- a/frontend/src/components/settings/useConfirmDelete.ts+++ b/frontend/src/components/settings/useConfirmDelete.ts@@ -12,6 +12,7 @@ interface ConfirmDeleteOptions {/*** 统一的删除确认交互,基于 TDesign DialogPlugin.confirm。* 取代散落在各处的 window.confirm / t-popconfirm / 自定义 Dialog 写法。+ * 破坏性操作统一 danger 主题、红色确认键;行内轻量操作才用 t-popconfirm。*/export function useConfirmDelete() {const { t } = useI18n()@@ -20,9 +21,9 @@ export function useConfirmDelete() {const dialog = DialogPlugin.confirm({header: opts.title || (t('common.confirmDelete') as string),body: opts.body,- confirmBtn: opts.confirmText || (t('common.delete') as string),+ confirmBtn: { content: opts.confirmText || (t('common.delete') as string), theme: 'danger' },cancelBtn: opts.cancelText || (t('common.cancel') as string),- theme: 'warning',+ theme: 'danger',onConfirm: async () => {try {await opts.onConfirm()diff --git a/frontend/src/components/share-to-space-panel.less b/frontend/src/components/share-to-space-panel.lessindex f12492364..1b8cdf3b0 100644--- a/frontend/src/components/share-to-space-panel.less+++ b/frontend/src/components/share-to-space-panel.less@@ -20,7 +20,7 @@.share-panel-title {margin: 0;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -28,7 +28,7 @@.share-panel-desc {margin: 8px 0 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -44,12 +44,12 @@margin: 0;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;line-height: 0;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;:deep(.t-icon) {display: block;@@ -89,7 +89,7 @@}.share-panel-list-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -101,10 +101,10 @@min-width: 22px;height: 20px;padding: 0 7px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1;}@@ -136,7 +136,7 @@align-items: center;gap: 8px;padding: 20px 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -146,13 +146,13 @@.share-panel-table-shell {overflow-x: auto;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-container);:deep(thead th) {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-table td),@@ -173,7 +173,7 @@display: inline-flex;align-items: center;gap: 8px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);min-width: 0;@@ -186,7 +186,7 @@}.share-space-meta {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}diff --git a/frontend/src/components/share-to-space-panel.overlay.less b/frontend/src/components/share-to-space-panel.overlay.lessindex e88013f34..2a12a583d 100644--- a/frontend/src/components/share-to-space-panel.overlay.less+++ b/frontend/src/components/share-to-space-panel.overlay.less@@ -4,7 +4,7 @@.t-popup__content {padding: 16px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);box-shadow: var(--td-shadow-2), 0 8px 24px rgba(15, 23, 42, 0.08);}@@ -17,7 +17,7 @@.member-invite-popup-title {margin: 0 0 10px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -26,10 +26,10 @@.add-member-tip {margin: 0 0 12px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -55,7 +55,7 @@.org-upgrade-field-label {display: block;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 1.4;color: var(--td-text-color-primary);@@ -69,7 +69,7 @@.member-form-hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 1.45;}@@ -90,7 +90,7 @@.t-popup__content {padding: 4px !important;- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;border: 1px solid var(--td-component-stroke) !important;background: var(--td-bg-color-container) !important;box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;@@ -105,8 +105,8 @@align-items: center;padding: 0 !important;margin: 0 !important;- border-radius: 6px !important;- transition: background-color 0.15s ease;+ border-radius: var(--app-radius-sm) !important;+ transition: background-color var(--app-motion-fast) ease;&:hover,&.t-is-hover {@@ -141,7 +141,7 @@.share-org-option-name {flex: 1;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -150,7 +150,7 @@.share-org-option-role {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}@@ -159,26 +159,12 @@.share-hint-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 0 !important;- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- overflow: hidden;- }-.share-hint-popover {padding: 14px 16px;.share-hint-title {margin: 0 0 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);line-height: 1.35;@@ -186,7 +172,7 @@.share-hint-desc {margin: 0 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);diff --git a/frontend/src/components/upload-mask.vue b/frontend/src/components/upload-mask.vueindex 900dd9dd5..6d1181499 100644--- a/frontend/src/components/upload-mask.vue+++ b/frontend/src/components/upload-mask.vue@@ -20,7 +20,7 @@ const { t } = useI18n().drag-txt {color: var(--td-brand-color);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 26px;display: inline-block;@@ -32,7 +32,7 @@ const { t } = useI18n()color: var(--td-text-color-disabled);text-align: center;font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;}.upload-img{diff --git a/frontend/src/composables/useModalShell.ts b/frontend/src/composables/useModalShell.tsnew file mode 100644index 000000000..fca970764--- /dev/null+++ b/frontend/src/composables/useModalShell.ts@@ -0,0 +1,101 @@+import { onBeforeUnmount, onMounted } from 'vue'+import { DialogPlugin } from 'tdesign-vue-next'+import { useI18n } from 'vue-i18n'++/**+ * 全屏"设置类"弹窗(Settings / AgentEditor / OrganizationSettings / KnowledgeBaseEditor)+ * 共用的壳层交互:+ * - Esc 关闭(当有 TDesign 弹窗 / 抽屉 / 弹层叠在上面时不响应,让它们先关)+ * - 遮罩点击关闭+ * - 有未保存更改时先弹二次确认+ *+ * 用法:+ * const shell = useModalShell({+ * visible: () => props.visible,+ * close: () => emit('update:visible', false),+ * snapshot: () => formData.value, // 可选:参与 dirty 比较的数据+ * })+ * // 数据加载完成 / 保存成功后:shell.markClean()+ * // 模板:@click.self="shell.requestClose",关闭按钮 @click="shell.requestClose"+ */+export interface ModalShellOptions {+ visible: () => boolean+ close: () => void+ /** 参与 dirty 比较的数据;不传则不做未保存提示 */+ snapshot?: () => unknown+ /** 返回 true 时跳过 Esc(例如组件内部自绘的弹层正打开) */+ ignoreEscape?: () => boolean+}++function serialize(value: unknown): string {+ try {+ return JSON.stringify(value ?? null)+ } catch {+ return ''+ }+}++/** 页面上是否有 TDesign 的弹窗 / 抽屉 / 弹层处于打开状态 */+function hasOpenTDesignOverlay(): boolean {+ if (typeof document === 'undefined') return false+ const dialogCtx = document.querySelector<HTMLElement>('.t-dialog__ctx')+ if (dialogCtx && dialogCtx.style.display !== 'none') return true+ if (document.querySelector('.t-drawer--open')) return true+ const popups = document.querySelectorAll<HTMLElement>('.t-popup')+ for (const popup of popups) {+ if (popup.style.display !== 'none') return true+ }+ return false+}++export function useModalShell(options: ModalShellOptions) {+ const { t } = useI18n()+ let cleanSnapshot = serialize(options.snapshot?.())+ let confirming = false++ const markClean = () => {+ cleanSnapshot = serialize(options.snapshot?.())+ }++ const isDirty = () => {+ if (!options.snapshot) return false+ return serialize(options.snapshot()) !== cleanSnapshot+ }++ const requestClose = () => {+ if (!options.visible() || confirming) return+ if (!isDirty()) {+ options.close()+ return+ }+ confirming = true+ const dialog = DialogPlugin.confirm({+ header: t('common.unsavedChanges.title'),+ body: t('common.unsavedChanges.body'),+ theme: 'warning',+ confirmBtn: { content: t('common.unsavedChanges.discard'), theme: 'danger' },+ cancelBtn: t('common.unsavedChanges.keepEditing'),+ onConfirm: () => {+ confirming = false+ dialog.destroy()+ options.close()+ },+ onClose: () => {+ confirming = false+ dialog.destroy()+ },+ })+ }++ const onKeydown = (event: KeyboardEvent) => {+ if (event.key !== 'Escape' || !options.visible()) return+ if (options.ignoreEscape?.()) return+ if (hasOpenTDesignOverlay()) return+ requestClose()+ }++ onMounted(() => window.addEventListener('keydown', onKeydown))+ onBeforeUnmount(() => window.removeEventListener('keydown', onKeydown))++ return { requestClose, markClean, isDirty }+}diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.tsindex 7c9ff3196..61221a9e1 100755--- a/frontend/src/i18n/locales/en-US.ts+++ b/frontend/src/i18n/locales/en-US.ts@@ -2404,6 +2404,12 @@ export default {me: 'Me',confirm: 'Confirm',cancel: 'Cancel',+ unsavedChanges: {+ title: 'Unsaved changes',+ body: 'Your changes will be lost if you close now. Close anyway?',+ discard: 'Discard changes',+ keepEditing: 'Keep editing',+ },save: 'Save',delete: 'Delete',edit: 'Edit',@@ -3243,6 +3249,9 @@ export default {save: 'Save Configuration',saveAndClose: 'Save and Close',},+ footer: {+ instantEffect: 'Changes on this page take effect immediately; no save needed',+ },postCreateHint: {title: 'Created successfully',footer: 'Keep adjusting settings, configure sharing and data sources, then click "Save and Close".',@@ -3341,6 +3350,7 @@ export default {batchDisable: 'Disable selected',batchDelete: 'Delete selected',confirmBatchDelete: 'Delete the selected {count} FAQ entries? This action cannot be undone.',+ confirmDelete: 'Delete this FAQ entry? This cannot be undone.',batchDeleteSuccess: 'Deleted {count} FAQ entries'},faqImport: {diff --git a/frontend/src/i18n/locales/ja-JP.ts b/frontend/src/i18n/locales/ja-JP.tsindex dfb15ad32..6a66044e0 100644--- a/frontend/src/i18n/locales/ja-JP.ts+++ b/frontend/src/i18n/locales/ja-JP.ts@@ -2404,6 +2404,12 @@ export default {me: '自分',confirm: '確認',cancel: 'キャンセル',+ unsavedChanges: {+ title: '未保存の変更があります',+ body: '閉じると現在の変更は失われます。閉じますか?',+ discard: '変更を破棄',+ keepEditing: '編集を続ける',+ },save: '保存',delete: '削除',edit: '編集',@@ -3243,6 +3249,9 @@ export default {save: '設定を保存',saveAndClose: '保存して閉じる',},+ footer: {+ instantEffect: 'このページの変更は即時に反映されます。保存は不要です',+ },postCreateHint: {title: '作成しました',footer: '設定の調整を続け、共有やデータソースを設定してから「保存して閉じる」をクリックしてください。',@@ -3341,6 +3350,7 @@ export default {batchDisable: '選択項目を無効化',batchDelete: '選択項目を削除',confirmBatchDelete: '選択した{count}件のFAQエントリを削除しますか?この操作は取り消せません。',+ confirmDelete: 'この FAQ エントリを削除しますか?この操作は元に戻せません。',batchDeleteSuccess: '{count}件のFAQエントリを削除しました'},faqImport: {diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.tsindex 4658d7527..d873ede23 100755--- a/frontend/src/i18n/locales/ko-KR.ts+++ b/frontend/src/i18n/locales/ko-KR.ts@@ -4142,6 +4142,7 @@ export default {batchDisable: '일괄 비활성화',batchDelete: '일괄 삭제',confirmBatchDelete: '선택한 FAQ 항목 {count}개를 삭제하시겠습니까? 삭제 후에는 복구할 수 없습니다.',+ confirmDelete: '이 FAQ 항목을 삭제하시겠습니까? 삭제 후 복구할 수 없습니다.',batchDeleteSuccess: 'FAQ 항목 {count}개를 삭제했습니다',modes: {questionOnly: '표준 질문/유사 질문만',@@ -4182,6 +4183,9 @@ export default {save: '설정 저장',saveAndClose: '저장 후 닫기',},+ footer: {+ instantEffect: '이 페이지의 변경 사항은 즉시 적용되며 저장할 필요가 없습니다',+ },postCreateHint: {title: '생성 완료',footer: '설정을 계속 조정하고 공유·데이터 소스를 구성한 뒤 "저장 후 닫기"를 클릭하세요.',@@ -4971,6 +4975,12 @@ export default {me: '나',confirm: '확인',cancel: '취소',+ unsavedChanges: {+ title: '저장되지 않은 변경 사항',+ body: '지금 닫으면 변경 사항이 사라집니다. 닫으시겠습니까?',+ discard: '변경 사항 버리기',+ keepEditing: '계속 편집',+ },save: '저장',delete: '삭제',edit: '편집',diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.tsindex 07724a9e2..5e02ff392 100755--- a/frontend/src/i18n/locales/ru-RU.ts+++ b/frontend/src/i18n/locales/ru-RU.ts@@ -4142,6 +4142,7 @@ export default {batchDisable: 'Отключить выбранные',batchDelete: 'Удалить выбранные',confirmBatchDelete: 'Удалить выбранные записи FAQ ({count})? Это действие нельзя отменить.',+ confirmDelete: 'Удалить эту запись FAQ? Это действие нельзя отменить.',batchDeleteSuccess: 'Удалено записей FAQ: {count}',modes: {questionOnly: 'Только вопросы',@@ -4182,6 +4183,9 @@ export default {save: 'Сохранить настройки',saveAndClose: 'Сохранить и закрыть',},+ footer: {+ instantEffect: 'Изменения на этой странице применяются сразу, сохранять не нужно',+ },postCreateHint: {title: 'База знаний создана',footer: 'Продолжите настройку, настройте совместное использование и источники данных, затем нажмите «Сохранить и закрыть».',@@ -4971,6 +4975,12 @@ export default {me: 'Я',confirm: 'Подтвердить',cancel: 'Отмена',+ unsavedChanges: {+ title: 'Несохранённые изменения',+ body: 'Если закрыть сейчас, изменения будут потеряны. Закрыть?',+ discard: 'Отменить изменения',+ keepEditing: 'Продолжить редактирование',+ },save: 'Сохранить',delete: 'Удалить',edit: 'Редактировать',diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.tsindex 72ac4b3fb..27f4a8c3f 100755--- a/frontend/src/i18n/locales/zh-CN.ts+++ b/frontend/src/i18n/locales/zh-CN.ts@@ -1873,7 +1873,7 @@ export default {deleteConfirmMessage: '确定要删除共享空间「{name}」吗?删除后所有成员将被移除,此操作不可撤销。',deleteSuccess: '共享空间已删除',deleteFailed: '删除共享空间失败',- createSuccess: '共享空间创建成功',+ createSuccess: '已创建共享空间',createFailed: '创建共享空间失败',joinSuccess: '成功加入共享空间',joinFailed: '加入共享空间失败',@@ -1929,7 +1929,7 @@ export default {searchTenantHint: '仅按完整空间 ID 查找,也可通过邀请链接加入组织',selectRole: '分配角色',confirmBtn: '添加',- success: '成员添加成功',+ success: '已添加成员',failed: '添加失败'},upgrade: {@@ -3115,7 +3115,7 @@ export default {bulkApply: {label: '应用到所有现有空间',tooltip: '保存的值默认只对之后新建的空间生效;点击此按钮将当前值同步写入所有现有空间。',- confirmBtn: '确认应用',+ confirmBtn: '应用',confirmBody: '将把所有现有空间的存储配额覆盖为 {value} GB。如有空间被运维单独调整过的配额,也会一并被覆盖。是否继续?',success: '已将 {count} 个空间的存储配额更新为 {gb} GB',failed: '应用到所有空间失败'@@ -3132,7 +3132,7 @@ export default {newPasswordPlaceholder: '请输入新密码',confirmPasswordLabel: '确认新密码',confirmPasswordPlaceholder: '再次输入新密码',- confirmBtn: '确认重置',+ confirmBtn: '重置',success: '密码已重置,该用户的现有会话已失效',failed: '重置密码失败',},@@ -3190,19 +3190,19 @@ export default {revoke: {header: '撤销系统管理员',body: '确认撤销 {email} 的系统管理员权限?撤销后该用户将无法再访问任何系统级功能。',- confirmBtn: '确认撤销'+ confirmBtn: '撤销'},promote: {header: '提升为系统管理员',body: '确认将 {email} 提升为系统管理员?该用户将获得平台级权限,可访问所有空间、修改系统设置、管理其他管理员。',- confirmBtn: '确认提升'+ confirmBtn: '提升'}}},reset: {label: '重置',tooltip: '清除当前 UI 覆盖,恢复使用环境变量或内置默认值',- confirmBtn: '确认重置',+ confirmBtn: '重置',confirmBody: '确定要重置「{label}」吗?该操作会删除数据库中的覆盖值,回退到环境变量或内置默认值。',success: '已重置为默认值',failed: '重置失败'@@ -3218,12 +3218,12 @@ export default {remove: {header: '移除 SSRF 白名单条目',body: '确认从 SSRF 白名单中移除 {entry}?移除后该条目将重新受 SSRF 防护拦截。',- confirmBtn: '确认移除'+ confirmBtn: '移除'},add: {header: '添加 SSRF 白名单条目',body: '确认把 {entry} 加入 SSRF 白名单?该条目匹配到的主机 / IP / 网段会绕过 SSRF 防护,可能让 Agent 访问内网服务,请仅在确知用途时添加。',- confirmBtn: '确认添加'+ confirmBtn: '添加'}}}@@ -3619,7 +3619,7 @@ export default {confirmTitle: '删除当前空间?',confirmBody: '此操作将删除空间「{name}」,并使其中的知识库、智能体、成员与 API Key 不再可用。此操作不可撤销。',confirmHint: '请输入空间名称「{name}」以确认删除。',- confirm: '确认删除',+ confirm: '删除',nameMismatch: '空间名称不匹配',success: '空间已删除',failed: '删除空间失败'@@ -3674,7 +3674,7 @@ export default {descriptionPlaceholder: '简单描述一下这个空间的用途',submit: '创建',cancel: '取消',- success: '空间创建成功',+ success: '已创建空间',failed: '空间创建失败',disabled: '当前系统只允许通过邀请加入空间,不能自行创建空间。'},@@ -4074,7 +4074,7 @@ export default {deleteSuccess: '选中条目已删除',previewCount: '共解析 {count} 条记录',previewMore: '还有 {count} 条未展示',- importSuccess: '导入成功',+ importSuccess: '已导入',parseFailed: '解析文件失败',invalidJSON: 'JSON 文件格式不正确',unsupportedFormat: '暂不支持该文件格式',@@ -4144,6 +4144,7 @@ export default {batchDisable: '批量禁用',batchDelete: '批量删除',confirmBatchDelete: '确认删除选中的 {count} 个 FAQ 条目?删除后将无法恢复。',+ confirmDelete: '确认删除该 FAQ 条目?删除后将无法恢复。',batchDeleteSuccess: '已删除 {count} 个 FAQ 条目',modes: {questionOnly: '仅标准问/相似问',@@ -4163,11 +4164,11 @@ export default {nameRequired: '请输入知识库名称',summaryRequired: '请选择 Summary 模型',multimodalInvalid: '多模态配置验证失败',- createSuccess: '知识库创建成功',+ createSuccess: '已创建知识库',createFailed: '创建知识库失败',missingId: '缺少知识库 ID',buildDataFailed: '数据构建失败',- updateSuccess: '配置保存成功',+ updateSuccess: '配置已保存',indexModeRequired: '请选择 FAQ 的索引方式',storageChangeConfirm: '知识库中已有文件,更改存储引擎后旧文件可能无法正常访问。是否确认更改?'},@@ -4184,6 +4185,9 @@ export default {save: '保存配置',saveAndClose: '保存并关闭',},+ footer: {+ instantEffect: '此页的更改即时生效,无需保存',+ },postCreateHint: {title: '创建成功',footer: '可继续调整配置,设置共享与数据源,完成后点击「保存并关闭」。',@@ -4772,7 +4776,7 @@ export default {delete: {confirmTitle: '删除确认',confirmMessage: '确认要删除知识库"{name}"?删除后不可恢复',- confirmButton: '确认删除'+ confirmButton: '删除'},empty: {title: '暂无知识库',@@ -4973,12 +4977,18 @@ export default {me: '我',confirm: '确认',cancel: '取消',+ unsavedChanges: {+ title: '有未保存的更改',+ body: '关闭后当前修改将丢失,确定要关闭吗?',+ discard: '放弃更改',+ keepEditing: '继续编辑',+ },save: '保存',delete: '删除',edit: '编辑',copy: '复制',copied: '已复制',- copySuccess: '复制成功',+ copySuccess: '已复制',default: '默认',create: '创建',download: '下载',@@ -5007,11 +5017,11 @@ export default {on: '开启',off: '关闭',confirmDelete: '确认删除',- createSuccess: '创建成功',- deleteSuccess: '删除成功',+ createSuccess: '已创建',+ deleteSuccess: '已删除',deleteFailed: '删除失败',- updateSuccess: '更新成功',- saveSuccess: '保存成功',+ updateSuccess: '已更新',+ saveSuccess: '已保存',saveFailed: '保存失败',operationFailed: '操作失败',file: '文件',@@ -6053,7 +6063,7 @@ export default {docs: '文档',testConnection: '测试连接',loadFailed: '加载失败',- saveSuccess: '保存成功',+ saveSuccess: '已保存',saveFailed: '保存失败',unknownError: '未知错误',requestFailed: '请求失败'@@ -6093,7 +6103,7 @@ export default {testSuccess: '连接成功',testFailed: '连接失败',nameRequired: '请输入名称',- saveSuccess: '保存成功',+ saveSuccess: '已保存',saveFailed: '保存失败',defaultUpdated: '默认存储已更新',deleteTitle: '删除存储实例',@@ -6136,7 +6146,7 @@ export default {checkDoneStatusUpdated: '已使用当前填写参数检测,上方状态已更新',checkSuccess: '测试连接成功',checkFailed: '检测失败',- saveSuccess: '保存成功',+ saveSuccess: '已保存',saveFailed: '保存失败',mineruEndpointPlaceholder: '如 https://your-mineru.example.com',defaultPipeline: '默认 pipeline',@@ -6171,7 +6181,7 @@ export default {usageTitle: '使用说明',usageSteps: '1. 填写并保存 APPID / APPSECRET\n2. 在下方「云模型接入」中按行添加 chat、embedding、rerank、vlm\n3. 文档解析:知识库设置 → 解析引擎,选择 WeKnora Cloud 引擎',fillRequired: '请填写 APPID 和 APPSECRET',- saveSuccess: '凭证保存成功',+ saveSuccess: '凭证已保存',saveFailed: '凭证保存失败',credentialConfigured: 'WeKnoraCloud 凭证已配置',credentialExpired: '凭证已失效,请重新配置。',@@ -6408,12 +6418,12 @@ export default {skillsInfoContent: '技能是预装的专业知识模块,脚本在所选沙箱中隔离执行。可用列表来自该沙箱已安装的技能;同一会话的沙箱一旦创建,后续附件、产物与销毁都会锁定在创建时那份配置上,改沙箱只影响之后新建的会话。'},messages: {- created: '智能体创建成功',- updated: '智能体更新成功',+ created: '已创建智能体',+ updated: '智能体已更新',deleted: '智能体已删除',deleteFailed: '删除失败',saveFailed: '保存失败',- copied: '智能体复制成功',+ copied: '已复制智能体',copyFailed: '复制失败',disabled: '已停用',enabled: '已启用'@@ -6421,7 +6431,7 @@ export default {delete: {confirmTitle: '删除智能体',confirmMessage: '确定要删除智能体「{name}」吗?此操作不可恢复。',- confirmButton: '确认删除'+ confirmButton: '删除'},shareScope: {title: '共享范围说明',@@ -6645,7 +6655,7 @@ export default {name: '名称',description: '描述',settings: '设置',- tagUpdateSuccess: '标签更新成功',+ tagUpdateSuccess: '标签已更新',tagEditDialogHeading: '编辑标签',tagEditSearch: '搜索标签...',tagEditSelectedSection: '已选标签',@@ -6700,8 +6710,8 @@ export default {tagSearchPlaceholder: '输入标签名称关键字',tagNamePlaceholder: '请输入标签名称',tagNameRequired: '请先输入标签名称',- tagCreateSuccess: '标签创建成功',- tagEditSuccess: '标签更新成功',+ tagCreateSuccess: '已创建标签',+ tagEditSuccess: '标签已更新',tagDeleteDescDoc: '确定删除标签"{name}"?该标签下的所有文档将被一并删除',tagDeleteSuccess: '标签已删除',tagEditAction: '重命名',@@ -6710,7 +6720,7 @@ export default {tagLabel: '标签',tagPlaceholder: '请选择标签',noTags: '暂无标签',- uploadSuccess: '文件上传成功!',+ uploadSuccess: '已上传文件',uploadFailed: '文件上传失败!',fileExists: '文件已存在',uploadAllSuccess: '成功上传 {count} 个文件!',@@ -6725,7 +6735,7 @@ export default {importURLTitle: '导入网页',urlRequired: '请输入URL',invalidURL: '请输入有效的URL',- urlImportSuccess: 'URL导入成功!',+ urlImportSuccess: '已导入 URL',urlImportFailed: 'URL导入失败!',urlExists: '该URL已存在',urlLabel: 'URL地址',@@ -6859,7 +6869,7 @@ export default {documentSummary: '摘要',detailSectionMeta: '基本信息',confirmDeleteDocument: '确认删除文档"{fileName}",删除后将无法恢复',- confirmDelete: '确认删除',+ confirmDelete: '删除',viewModeGrid: '卡片视图',viewModeList: '列表视图',viewModeToggle: '切换视图',@@ -6946,7 +6956,7 @@ export default {allUploadSuccess: '所有文件上传成功({count}个)',partialUploadSuccess: '部分文件上传成功(成功:{success},失败:{fail})',allUploadFailed: '所有文件上传失败({count}个)',- deleteSuccess: '知识删除成功!',+ deleteSuccess: '已删除知识',chunkLoadFailed: '分块加载失败',infoCard: {tooltip: '查看知识库信息',@@ -7008,7 +7018,7 @@ export default {deleteConfirmTitle: '删除对话',deleteConfirmBody: '确定要删除选中的 {count} 条对话吗?删除后无法恢复。',deleteAllConfirmBody: '确定要删除所有对话吗?此操作无法恢复。',- deleteSuccess: '删除成功',+ deleteSuccess: '已删除',deleteFailed: '删除失败,请稍后再试'},contextualGuide: {diff --git a/frontend/src/main.ts b/frontend/src/main.tsindex 10d9ae73a..b39758cee 100644--- a/frontend/src/main.ts+++ b/frontend/src/main.ts@@ -2,11 +2,11 @@ import { createApp } from "vue";import { createPinia } from "pinia";import App from "./App.vue";import router from "./router";-import "./assets/fonts.css";import TDesign from "tdesign-vue-next";// 引入组件库的少量全局样式变量import "tdesign-vue-next/dist/tdesign.css";import "@/assets/theme/theme.css";+import "@/assets/theme/tdesign-overrides.less";import "@/assets/dropdown-menu.less";import "@/components/css/chat-hljs-dark.less";// vue-virtual-scroller ships its own tiny stylesheet — required fordiff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vueindex 7e93b463a..4b8d4daec 100644--- a/frontend/src/views/agent/AgentEditorModal.vue+++ b/frontend/src/views/agent/AgentEditorModal.vue@@ -1,1803 +1,1761 @@<template>- <Teleport to="body">- <Transition name="modal">- <div v-if="visible" class="settings-overlay" @click.self="handleClose">- <div class="settings-modal">- <div v-if="editorInitializing" class="editor-initializing" role="status" :aria-label="$t('common.loading')">- <t-loading size="medium" :text="$t('common.loading')" />+ <SettingsModalShell :visible="visible"+ :title="editorMode === 'create' ? $t('agent.editor.createTitle') : $t('agent.editor.editTitle')"+ v-model="currentSection" :nav-groups="navGroups" :loading="editorInitializing" :z-index="1000"+ nav-guide="agent-editor-sidebar" nav-item-guide-prefix="agent-editor-nav" @close="modalShell.requestClose">+ <div ref="contentWrapperRef" class="content-wrapper" :class="{ 'content-wrapper--prompts': currentSection === 'prompts' }">+ <!-- 基础设置 -->+ <div v-show="currentSection === 'basic'" class="section">+ <div class="section-header">+ <div class="section-header-title">+ <h2>{{ $t('agent.editor.basicInfo') }}</h2>+ <t-tooltip v-if="isBuiltinAgent" :content="$t('agentEditor.builtinHint')" placement="top">+ <span class="builtin-agent-hint" tabindex="0" role="img"+ :aria-label="$t('agentEditor.builtinHint')">+ <t-icon name="info-circle" />+ </span>+ </t-tooltip></div>- <!-- 关闭按钮 -->- <button class="close-btn" @click="handleClose" :aria-label="$t('common.close')">- <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor">- <path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" />- </svg>- </button>-- <div class="settings-container">- <!-- 左侧导航 -->- <div class="settings-sidebar">- <div class="sidebar-header">- <h2 class="sidebar-title">{{ editorMode === 'create' ? $t('agent.editor.createTitle') :- $t('agent.editor.editTitle') }}</h2>+ <p class="section-description">{{ $t('agent.editor.basicInfoDesc') }}</p>+ </div>++ <div class="settings-group">+ <!-- 智能体 ID(用于 API 集成) -->+ <div v-if="editorMode === 'edit' && editorAgent?.id" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.agentId') }}</label>+ <p class="desc">{{ $t('agent.editor.agentIdDesc') }}</p>+ </div>+ <div class="setting-control">+ <div class="agent-id-field">+ <code class="agent-id-value" :title="editorAgent.id">{{ editorAgent.id }}</code>+ <t-tooltip :content="$t('common.copy')" placement="top">+ <t-button theme="default" size="small" variant="text" class="agent-id-copy"+ @click="copyAgentId">+ <t-icon name="file-copy" />+ </t-button>+ </t-tooltip></div>- <div class="settings-nav" data-guide="agent-editor-sidebar">- <template v-for="group in navGroups" :key="group.key">- <div class="nav-group-title">{{ group.label }}</div>- <div v-for="(item, index) in group.items" :key="index"- :class="['nav-item', { 'active': currentSection === item.key }]"- :data-guide="`agent-editor-nav-${item.key}`" @click="currentSection = item.key">- <t-icon :name="item.icon" class="nav-icon" />- <span class="nav-label">{{ item.label }}</span>- <span v-if="item.key === 'prompts' && promptNavItems.length > 1" class="nav-badge">- {{ promptNavItems.length }}- </span>- </div>- </template>+ </div>+ </div>++ <!-- 集成渠道状态(编辑模式,配置在集成中心) -->+ <div v-if="editorMode === 'edit' && editorAgent?.id" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('integrations.agentEditor.label') }}</label>+ <p class="desc">{{ isPostCreateSession ? $t('agent.editor.postCreateHint.integrationDesc') : $t('integrations.agentEditor.desc') }}</p>+ </div>+ <div class="setting-control">+ <div class="integration-inline">+ <button type="button" class="integration-inline__stat integration-inline__link" @click="gotoIntegrations('im')">+ <span>{{ $t('integrations.tabs.im') }} · {{ agentIMChannelCount }}</span>+ <t-icon name="chevron-right" size="14px" />+ </button>+ <span class="integration-inline__sep" aria-hidden="true">|</span>+ <button type="button" class="integration-inline__stat integration-inline__link" @click="gotoIntegrations('embed')">+ <span>{{ $t('integrations.tabs.embed') }} · {{ agentEmbedChannelCount }}</span>+ <t-icon name="chevron-right" size="14px" />+ </button></div></div>+ </div>- <!-- 右侧内容区域 -->- <div class="settings-content">- <div ref="contentWrapperRef" class="content-wrapper" :class="{ 'content-wrapper--prompts': currentSection === 'prompts' }">- <!-- 基础设置 -->- <div v-show="currentSection === 'basic'" class="section">- <div class="section-header">- <div class="section-header-title">- <h2>{{ $t('agent.editor.basicInfo') }}</h2>- <t-tooltip v-if="isBuiltinAgent" :content="$t('agentEditor.builtinHint')" placement="top">- <span class="builtin-agent-hint" tabindex="0" role="img"- :aria-label="$t('agentEditor.builtinHint')">- <t-icon name="info-circle" />- </span>- </t-tooltip>- </div>- <p class="section-description">{{ $t('agent.editor.basicInfoDesc') }}</p>+ <!-- 运行模式(首先选择) -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.mode') }} <span class="required">*</span></label>+ <p class="desc">{{ agentMode === 'smart-reasoning' ? $t('agent.editor.agentDesc') :+ $t('agent.editor.normalDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-radio-group v-model="agentMode" :disabled="isBuiltinAgent" data-guide="agent-create-mode">+ <t-radio-button value="quick-answer">+ {{ $t('agent.type.normal') }}+ </t-radio-button>+ <t-radio-button value="smart-reasoning">+ {{ $t('agent.type.agent') }}+ </t-radio-button>+ </t-radio-group>+ </div>+ </div>++ <!-- 智能体类型(仅智能推理模式下显示) -->+ <div v-if="isAgentMode && agentTypePresets.length > 0" class="setting-row setting-row--emphasize"+ data-guide="agent-create-agent-type">+ <div class="setting-info">+ <label>{{ $t('agentEditor.agentType.label') }}</label>+ <p class="desc">{{ $t('agentEditor.agentType.desc') }}</p>+ <p v-if="activeAgentTypePreset" class="desc agent-type-preset-desc">{{+ agentTypePresetDescription(activeAgentTypePreset) }}</p>+ </div>+ <div class="setting-control">+ <t-select :value="agentType" @change="onAgentTypeChange" :disabled="isBuiltinAgent"+ :placeholder="$t('agentEditor.agentType.label')" :options="agentTypeSelectOptions"+ :popup-props="{ overlayClassName: 'agent-type-popup' }" class="agent-type-select">+ <template #option="{ option }">+ <div class="agent-type-option">+ <span class="agent-type-option-label">{{ option.label }}</span>+ <span v-if="option.desc" class="agent-type-option-desc">{{ option.desc }}</span></div>+ </template>+ </t-select>+ </div>+ </div>- <div class="settings-group">- <!-- 智能体 ID(用于 API 集成) -->- <div v-if="editorMode === 'edit' && editorAgent?.id" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.agentId') }}</label>- <p class="desc">{{ $t('agent.editor.agentIdDesc') }}</p>- </div>- <div class="setting-control">- <div class="agent-id-field">- <code class="agent-id-value" :title="editorAgent.id">{{ editorAgent.id }}</code>- <t-tooltip :content="$t('common.copy')" placement="top">- <t-button theme="default" size="small" variant="text" class="agent-id-copy"- @click="copyAgentId">- <t-icon name="file-copy" />- </t-button>- </t-tooltip>- </div>- </div>- </div>+ <!-- 名称 -->+ <div class="setting-row" data-guide="agent-create-name">+ <div class="setting-info">+ <label>{{ $t('agent.editor.name') }} <span v-if="!isBuiltinAgent"+ class="required">*</span></label>+ <p class="desc">{{ $t('agentEditor.desc.name') }}</p>+ </div>+ <div class="setting-control">+ <div class="name-input-wrapper">+ <!-- 内置智能体使用简洁图标 -->+ <div v-if="isBuiltinAgent" class="builtin-avatar" :class="isAgentMode ? 'agent' : 'normal'">+ <t-icon :name="isAgentMode ? 'control-platform' : 'chat'" size="24px" />+ </div>+ <!-- 自定义智能体使用 AgentAvatar -->+ <AgentAvatar v-else :name="formData.name || '?'" size="medium" />+ <t-input v-model="formData.name" :placeholder="$t('agent.editor.namePlaceholder')"+ class="name-input" :disabled="isBuiltinAgent" />+ </div>+ </div>+ </div>- <!-- 集成渠道状态(编辑模式,配置在集成中心) -->- <div v-if="editorMode === 'edit' && editorAgent?.id" class="setting-row">- <div class="setting-info">- <label>{{ $t('integrations.agentEditor.label') }}</label>- <p class="desc">{{ isPostCreateSession ? $t('agent.editor.postCreateHint.integrationDesc') : $t('integrations.agentEditor.desc') }}</p>- </div>- <div class="setting-control">- <div class="integration-inline">- <button type="button" class="integration-inline__stat integration-inline__link" @click="gotoIntegrations('im')">- <span>{{ $t('integrations.tabs.im') }} · {{ agentIMChannelCount }}</span>- <t-icon name="chevron-right" size="14px" />- </button>- <span class="integration-inline__sep" aria-hidden="true">|</span>- <button type="button" class="integration-inline__stat integration-inline__link" @click="gotoIntegrations('embed')">- <span>{{ $t('integrations.tabs.embed') }} · {{ agentEmbedChannelCount }}</span>- <t-icon name="chevron-right" size="14px" />- </button>- </div>- </div>- </div>+ <!-- 描述 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.description') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.description') }}</p>+ </div>+ <div class="setting-control">+ <t-textarea v-model="formData.description"+ :placeholder="$t('agent.editor.descriptionPlaceholder')"+ :autosize="{ minRows: 2, maxRows: 4 }" :disabled="isBuiltinAgent" />+ </div>+ </div>- <!-- 运行模式(首先选择) -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.mode') }} <span class="required">*</span></label>- <p class="desc">{{ agentMode === 'smart-reasoning' ? $t('agent.editor.agentDesc') :- $t('agent.editor.normalDesc') }}</p>- </div>- <div class="setting-control">- <t-radio-group v-model="agentMode" :disabled="isBuiltinAgent" data-guide="agent-create-mode">- <t-radio-button value="quick-answer">- {{ $t('agent.type.normal') }}- </t-radio-button>- <t-radio-button value="smart-reasoning">- {{ $t('agent.type.agent') }}- </t-radio-button>- </t-radio-group>- </div>- </div>+ <!-- 长期记忆。留在基础信息这一组而不是「多轮对话」,是因为它与+ 多轮历史窗口无关,且智能推理恰恰是最需要这个开关的模式。+ 这个开关只能"关":空间或个人设置关闭时,这里打开也不生效。 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.memoryEnabled') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.memoryEnabled') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.memory_enabled" />+ </div>+ </div>- <!-- 智能体类型(仅智能推理模式下显示) -->- <div v-if="isAgentMode && agentTypePresets.length > 0" class="setting-row setting-row--emphasize"- data-guide="agent-create-agent-type">- <div class="setting-info">- <label>{{ $t('agentEditor.agentType.label') }}</label>- <p class="desc">{{ $t('agentEditor.agentType.desc') }}</p>- <p v-if="activeAgentTypePreset" class="desc agent-type-preset-desc">{{- agentTypePresetDescription(activeAgentTypePreset) }}</p>- </div>- <div class="setting-control">- <t-select :value="agentType" @change="onAgentTypeChange" :disabled="isBuiltinAgent"- :placeholder="$t('agentEditor.agentType.label')" :options="agentTypeSelectOptions"- :popup-props="{ overlayClassName: 'agent-type-popup' }" class="agent-type-select">- <template #option="{ option }">- <div class="agent-type-option">- <span class="agent-type-option-label">{{ option.label }}</span>- <span v-if="option.desc" class="agent-type-option-desc">{{ option.desc }}</span>- </div>- </template>- </t-select>- </div>- </div>+ </div>+ </div>- <!-- 名称 -->- <div class="setting-row" data-guide="agent-create-name">- <div class="setting-info">- <label>{{ $t('agent.editor.name') }} <span v-if="!isBuiltinAgent"- class="required">*</span></label>- <p class="desc">{{ $t('agentEditor.desc.name') }}</p>- </div>- <div class="setting-control">- <div class="name-input-wrapper">- <!-- 内置智能体使用简洁图标 -->- <div v-if="isBuiltinAgent" class="builtin-avatar" :class="isAgentMode ? 'agent' : 'normal'">- <t-icon :name="isAgentMode ? 'control-platform' : 'chat'" size="24px" />- </div>- <!-- 自定义智能体使用 AgentAvatar -->- <AgentAvatar v-else :name="formData.name || '?'" size="medium" />- <t-input v-model="formData.name" :placeholder="$t('agent.editor.namePlaceholder')"- class="name-input" :disabled="isBuiltinAgent" />- </div>- </div>- </div>+ <!-- 提示词 -->+ <div v-show="currentSection === 'prompts'" class="section section--prompts">+ <div class="prompts-panel">+ <div class="prompts-panel__header">+ <div class="section-header section-header--compact">+ <h2>{{ $t('agent.editor.promptsConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.promptsConfigDesc') }}</p>+ </div>- <!-- 描述 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.description') }}</label>- <p class="desc">{{ $t('agentEditor.desc.description') }}</p>- </div>- <div class="setting-control">- <t-textarea v-model="formData.description"- :placeholder="$t('agent.editor.descriptionPlaceholder')"- :autosize="{ minRows: 2, maxRows: 4 }" :disabled="isBuiltinAgent" />- </div>- </div>+ <nav v-if="promptNavItems.length > 1" class="prompts-outline"+ :aria-label="$t('agentEditor.promptNav.ariaLabel')">+ <button v-for="item in promptNavItems" :key="item.key" type="button"+ class="prompts-outline__pill"+ :class="{ 'prompts-outline__pill--active': activePromptAnchor === item.key }"+ @click="activePromptAnchor = item.key">+ <span>{{ item.label }}</span>+ <span v-if="item.customized" class="prompts-outline__dot"+ :title="$t('agentEditor.intentPrompts.customized')" />+ </button>+ </nav>+ </div>- <!-- 长期记忆。留在基础信息这一组而不是「多轮对话」,是因为它与- 多轮历史窗口无关,且智能推理恰恰是最需要这个开关的模式。- 这个开关只能"关":空间或个人设置关闭时,这里打开也不生效。 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.memoryEnabled') }}</label>- <p class="desc">{{ $t('agentEditor.desc.memoryEnabled') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.memory_enabled" />- </div>+ <div class="prompts-panel__body">+ <div class="settings-group">+ <!-- 系统提示词 -->+ <div v-show="activePromptAnchor === 'system'"+ class="setting-row setting-row-vertical prompts-panel__pane">+ <div class="setting-info">+ <label>{{ $t('agent.editor.systemPrompt') }} <span v-if="!isBuiltinAgent"+ class="required">*</span></label>+ <p class="desc">{{ $t('agentEditor.desc.systemPrompt') }}{{ isBuiltinAgent ?+ $t('agentEditor.desc.leaveEmptyDefault') : '' }}</p>+ <p class="desc">{{ $t('agentEditor.desc.promptInheritance') }}</p>+ <div class="placeholder-tags">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in availablePlaceholders" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag" @click="handlePlaceholderClick('system', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'"></span>+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>+ </div>+ <div class="setting-control setting-control-full" style="position: relative;">+ <!-- Agent模式:统一提示词(使用 {{web_search_status}} 占位符动态控制行为) -->+ <div v-if="isAgentMode" class="textarea-with-template">+ <t-textarea ref="promptTextareaRef" v-model="formData.config.system_prompt"+ :placeholder="systemPromptPlaceholder" :autosize="{ minRows: 10, maxRows: 25 }"+ @input="handlePromptInput" class="system-prompt-textarea" />+ <PromptTemplateSelector type="agentSystemPrompt" position="corner"+ :hasKnowledgeBase="hasKnowledgeBase" @select="handleSystemPromptTemplateSelect"+ @reset-default="handleAgentSystemPromptResetDefault" />+ </div>+ <!-- 普通模式:单个提示词 -->+ <div v-else class="textarea-with-template">+ <t-textarea ref="promptTextareaRef" v-model="formData.config.system_prompt"+ :placeholder="systemPromptPlaceholder" :autosize="{ minRows: 10, maxRows: 25 }"+ @input="handlePromptInput" class="system-prompt-textarea" />+ <PromptTemplateSelector type="systemPrompt" position="corner"+ :hasKnowledgeBase="hasKnowledgeBase" @select="handleSystemPromptTemplateSelect"+ @reset-default="handleSystemPromptTemplateSelect" />+ </div>+ <!-- 占位符提示下拉框 -->+ <Teleport to="body">+ <div v-if="showPlaceholderPopup && filteredPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="popupStyle">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredPlaceholders" :key="placeholder.name"+ class="placeholder-item" :class="{ active: selectedPlaceholderIndex === index }"+ @mousedown.prevent="insertPlaceholder(placeholder.name, true)"+ @mouseenter="selectedPlaceholderIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`"></code>+ </div>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div>-</div></div>+ </Teleport>+ </div>+ </div>- <!-- 提示词 -->- <div v-show="currentSection === 'prompts'" class="section section--prompts">- <div class="prompts-panel">- <div class="prompts-panel__header">- <div class="section-header section-header--compact">- <h2>{{ $t('agent.editor.promptsConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.promptsConfigDesc') }}</p>- </div>-- <nav v-if="promptNavItems.length > 1" class="prompts-outline"- :aria-label="$t('agentEditor.promptNav.ariaLabel')">- <button v-for="item in promptNavItems" :key="item.key" type="button"- class="prompts-outline__pill"- :class="{ 'prompts-outline__pill--active': activePromptAnchor === item.key }"- @click="activePromptAnchor = item.key">- <span>{{ item.label }}</span>- <span v-if="item.customized" class="prompts-outline__dot"- :title="$t('agentEditor.intentPrompts.customized')" />- </button>- </nav>+ <!-- 上下文模板(仅普通模式) -->+ <div v-if="!isAgentMode" v-show="activePromptAnchor === 'context'"+ class="setting-row setting-row-vertical prompts-panel__pane">+ <div class="setting-info">+ <label>{{ $t('agent.editor.contextTemplate') }} <span v-if="!isBuiltinAgent"+ class="required">*</span></label>+ <p class="desc">{{ $t('agentEditor.desc.contextTemplate') }}{{ isBuiltinAgent ?+ $t('agentEditor.desc.leaveEmptyDefault') : '' }}</p>+ <div class="placeholder-tags">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in contextTemplatePlaceholders" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag" @click="handlePlaceholderClick('context', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'"></span>+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>+ </div>+ <div class="setting-control setting-control-full" style="position: relative;">+ <div class="textarea-with-template">+ <t-textarea ref="contextTemplateTextareaRef" v-model="formData.config.context_template"+ :placeholder="contextTemplatePlaceholder" :autosize="{ minRows: 8, maxRows: 20 }"+ @input="handleContextTemplateInput" class="system-prompt-textarea" />+ <PromptTemplateSelector type="contextTemplate" position="corner"+ :hasKnowledgeBase="hasKnowledgeBase" @select="handleContextTemplateSelect"+ @reset-default="handleContextTemplateSelect" />+ </div>+ <!-- 上下文模板占位符提示下拉框 -->+ <Teleport to="body">+ <div v-if="showContextPlaceholderPopup && filteredContextPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="contextPopupStyle">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredContextPlaceholders" :key="placeholder.name"+ class="placeholder-item" :class="{ active: selectedContextPlaceholderIndex === index }"+ @mousedown.prevent="insertContextPlaceholder(placeholder.name, true)"+ @mouseenter="selectedContextPlaceholderIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`"></code>+ </div>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div>+ </div>+ </div>+ </Teleport>+ </div>+ </div>- <div class="prompts-panel__body">- <div class="settings-group">- <!-- 系统提示词 -->- <div v-show="activePromptAnchor === 'system'"- class="setting-row setting-row-vertical prompts-panel__pane">- <div class="setting-info">- <label>{{ $t('agent.editor.systemPrompt') }} <span v-if="!isBuiltinAgent"- class="required">*</span></label>- <p class="desc">{{ $t('agentEditor.desc.systemPrompt') }}{{ isBuiltinAgent ?- $t('agentEditor.desc.leaveEmptyDefault') : '' }}</p>- <p class="desc">{{ $t('agentEditor.desc.promptInheritance') }}</p>- <div class="placeholder-tags">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in availablePlaceholders" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag" @click="handlePlaceholderClick('system', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'"></span>- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>- </div>- <div class="setting-control setting-control-full" style="position: relative;">- <!-- Agent模式:统一提示词(使用 {{web_search_status}} 占位符动态控制行为) -->- <div v-if="isAgentMode" class="textarea-with-template">- <t-textarea ref="promptTextareaRef" v-model="formData.config.system_prompt"- :placeholder="systemPromptPlaceholder" :autosize="{ minRows: 10, maxRows: 25 }"- @input="handlePromptInput" class="system-prompt-textarea" />- <PromptTemplateSelector type="agentSystemPrompt" position="corner"- :hasKnowledgeBase="hasKnowledgeBase" @select="handleSystemPromptTemplateSelect"- @reset-default="handleAgentSystemPromptResetDefault" />- </div>- <!-- 普通模式:单个提示词 -->- <div v-else class="textarea-with-template">- <t-textarea ref="promptTextareaRef" v-model="formData.config.system_prompt"- :placeholder="systemPromptPlaceholder" :autosize="{ minRows: 10, maxRows: 25 }"- @input="handlePromptInput" class="system-prompt-textarea" />- <PromptTemplateSelector type="systemPrompt" position="corner"- :hasKnowledgeBase="hasKnowledgeBase" @select="handleSystemPromptTemplateSelect"- @reset-default="handleSystemPromptTemplateSelect" />- </div>- <!-- 占位符提示下拉框 -->- <Teleport to="body">- <div v-if="showPlaceholderPopup && filteredPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="popupStyle">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredPlaceholders" :key="placeholder.name"- class="placeholder-item" :class="{ active: selectedPlaceholderIndex === index }"- @mousedown.prevent="insertPlaceholder(placeholder.name, true)"- @mouseenter="selectedPlaceholderIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`"></code>- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>- </div>- </div>+ <!-- 意图提示词(仅普通模式) -->+ <div v-if="!isAgentMode" v-show="activePromptAnchor === 'intent'"+ class="setting-row setting-row-vertical prompts-panel__pane">+ <div class="setting-info">+ <label>{{ $t('agentEditor.intentPrompts.title') }}</label>+ <p class="desc">{{ $t('agentEditor.intentPrompts.sectionDesc') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <div class="intent-prompts-editor">+ <div v-if="intentPromptTemplates.length === 0" class="prompt-disabled-hint">+ {{ $t('agentEditor.intentPrompts.empty') }}+ </div>+ <template v-else>+ <div class="intent-toggle-group" role="tablist"+ :aria-label="$t('agentEditor.intentPrompts.intentLabel')">+ <t-button v-for="template in intentPromptTemplates" :key="template.id" theme="default"+ variant="outline" size="small" class="intent-toggle-btn"+ :class="{ 'intent-toggle-btn--active': selectedIntent === template.id }"+ :disabled="props.readOnly" @click="selectedIntent = template.id">+ <span class="intent-toggle-label">+ {{ template.name || template.id }}+ <t-tooltip v-if="isIntentCustomized(template.id)"+ :content="$t('agentEditor.intentPrompts.customized')" placement="top">+ <span class="intent-toggle-dot" />+ </t-tooltip>+ </span>+ </t-button>+ </div>+ <p v-if="currentIntentTemplateDesc" class="intent-active-desc">{{ currentIntentTemplateDesc+ }}</p>++ <div v-if="placeholderData.system_prompt.length > 0" class="placeholder-tags">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in placeholderData.system_prompt" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag"+ @click="handlePlaceholderClick('intent', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'" />+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>- <!-- 上下文模板(仅普通模式) -->- <div v-if="!isAgentMode" v-show="activePromptAnchor === 'context'"- class="setting-row setting-row-vertical prompts-panel__pane">- <div class="setting-info">- <label>{{ $t('agent.editor.contextTemplate') }} <span v-if="!isBuiltinAgent"- class="required">*</span></label>- <p class="desc">{{ $t('agentEditor.desc.contextTemplate') }}{{ isBuiltinAgent ?- $t('agentEditor.desc.leaveEmptyDefault') : '' }}</p>- <div class="placeholder-tags">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in contextTemplatePlaceholders" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag" @click="handlePlaceholderClick('context', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'"></span>- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>- </div>- <div class="setting-control setting-control-full" style="position: relative;">- <div class="textarea-with-template">- <t-textarea ref="contextTemplateTextareaRef" v-model="formData.config.context_template"- :placeholder="contextTemplatePlaceholder" :autosize="{ minRows: 8, maxRows: 20 }"- @input="handleContextTemplateInput" class="system-prompt-textarea" />- <PromptTemplateSelector type="contextTemplate" position="corner"- :hasKnowledgeBase="hasKnowledgeBase" @select="handleContextTemplateSelect"- @reset-default="handleContextTemplateSelect" />- </div>- <!-- 上下文模板占位符提示下拉框 -->- <Teleport to="body">- <div v-if="showContextPlaceholderPopup && filteredContextPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="contextPopupStyle">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredContextPlaceholders" :key="placeholder.name"- class="placeholder-item" :class="{ active: selectedContextPlaceholderIndex === index }"- @mousedown.prevent="insertContextPlaceholder(placeholder.name, true)"- @mouseenter="selectedContextPlaceholderIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`"></code>- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>- </div>- </div>+ <div class="textarea-with-template">+ <t-textarea ref="intentPromptTextareaRef" v-model="intentEditorValue"+ class="system-prompt-textarea" :autosize="{ minRows: 10, maxRows: 25 }"+ :disabled="props.readOnly || !selectedIntent"+ :placeholder="currentIntentTemplate?.content || $t('agentEditor.intentPrompts.promptPlaceholder')"+ @input="handleIntentPromptInput" />+ <PromptTemplateSelector type="intentPrompt" position="corner" :intent-id="selectedIntent"+ :show-template-picker="false" @reset-default="resetCurrentIntentPrompt" />+ </div>- <!-- 意图提示词(仅普通模式) -->- <div v-if="!isAgentMode" v-show="activePromptAnchor === 'intent'"- class="setting-row setting-row-vertical prompts-panel__pane">- <div class="setting-info">- <label>{{ $t('agentEditor.intentPrompts.title') }}</label>- <p class="desc">{{ $t('agentEditor.intentPrompts.sectionDesc') }}</p>- </div>- <div class="setting-control setting-control-full">- <div class="intent-prompts-editor">- <div v-if="intentPromptTemplates.length === 0" class="prompt-disabled-hint">- {{ $t('agentEditor.intentPrompts.empty') }}+ <Teleport to="body">+ <div v-if="intentPromptPopup.show && filteredIntentPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="intentPromptPopup.style">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredIntentPlaceholders" :key="placeholder.name"+ class="placeholder-item"+ :class="{ active: intentPromptPopup.selectedIndex === index }"+ @mousedown.prevent="insertGenericPlaceholder('intent', placeholder.name, true)"+ @mouseenter="intentPromptPopup.selectedIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`" /></div>- <template v-else>- <div class="intent-toggle-group" role="tablist"- :aria-label="$t('agentEditor.intentPrompts.intentLabel')">- <t-button v-for="template in intentPromptTemplates" :key="template.id" theme="default"- variant="outline" size="small" class="intent-toggle-btn"- :class="{ 'intent-toggle-btn--active': selectedIntent === template.id }"- :disabled="props.readOnly" @click="selectedIntent = template.id">- <span class="intent-toggle-label">- {{ template.name || template.id }}- <t-tooltip v-if="isIntentCustomized(template.id)"- :content="$t('agentEditor.intentPrompts.customized')" placement="top">- <span class="intent-toggle-dot" />- </t-tooltip>- </span>- </t-button>- </div>- <p v-if="currentIntentTemplateDesc" class="intent-active-desc">{{ currentIntentTemplateDesc- }}</p>-- <div v-if="placeholderData.system_prompt.length > 0" class="placeholder-tags">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in placeholderData.system_prompt" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag"- @click="handlePlaceholderClick('intent', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'" />- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>-- <div class="textarea-with-template">- <t-textarea ref="intentPromptTextareaRef" v-model="intentEditorValue"- class="system-prompt-textarea" :autosize="{ minRows: 10, maxRows: 25 }"- :disabled="props.readOnly || !selectedIntent"- :placeholder="currentIntentTemplate?.content || $t('agentEditor.intentPrompts.promptPlaceholder')"- @input="handleIntentPromptInput" />- <PromptTemplateSelector type="intentPrompt" position="corner" :intent-id="selectedIntent"- :show-template-picker="false" @reset-default="resetCurrentIntentPrompt" />- </div>-- <Teleport to="body">- <div v-if="intentPromptPopup.show && filteredIntentPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="intentPromptPopup.style">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredIntentPlaceholders" :key="placeholder.name"- class="placeholder-item"- :class="{ active: intentPromptPopup.selectedIndex === index }"- @mousedown.prevent="insertGenericPlaceholder('intent', placeholder.name, true)"- @mouseenter="intentPromptPopup.selectedIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`" />- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>- </template>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div></div></div>+ </Teleport>+ </template>+ </div>+ </div>+ </div>- <!-- 改写提示词(多轮对话 + 问题改写开启时) -->- <template- v-if="!isAgentMode && formData.config.multi_turn_enabled && formData.config.enable_rewrite">- <div v-show="activePromptAnchor === 'rewrite-system'"- class="setting-row setting-row-vertical prompts-panel__pane">- <div class="setting-info">- <label>{{ $t('agent.editor.rewritePromptSystem') }}</label>- <p class="desc">{{ $t('agentEditor.desc.rewriteSystemPrompt') }}</p>- <div class="placeholder-tags" v-if="rewriteSystemPlaceholders.length > 0">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in rewriteSystemPlaceholders" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag"- @click="handlePlaceholderClick('rewriteSystem', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'"></span>- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>- </div>- <div class="setting-control setting-control-full" style="position: relative;">- <div class="textarea-with-template">- <t-textarea ref="rewriteSystemTextareaRef" v-model="formData.config.rewrite_prompt_system"- :placeholder="defaultRewritePromptSystem || $t('agent.editor.rewritePromptSystemPlaceholder')"- :autosize="{ minRows: 4, maxRows: 10 }" @input="handleRewriteSystemInput" />- <PromptTemplateSelector type="rewrite" position="corner" @select="handleRewriteTemplateSelect"- @reset-default="handleRewriteTemplateSelect" />- </div>- <Teleport to="body">- <div v-if="rewriteSystemPopup.show && filteredRewriteSystemPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="rewriteSystemPopup.style">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredRewriteSystemPlaceholders"- :key="placeholder.name" class="placeholder-item"- :class="{ active: rewriteSystemPopup.selectedIndex === index }"- @mousedown.prevent="insertGenericPlaceholder('rewriteSystem', placeholder.name, true)"- @mouseenter="rewriteSystemPopup.selectedIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`"></code>- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>- </div>- </div>-- <div v-show="activePromptAnchor === 'rewrite-user'"- class="setting-row setting-row-vertical prompts-panel__pane">- <div class="setting-info">- <label>{{ $t('agent.editor.rewritePromptUser') }}</label>- <p class="desc">{{ $t('agentEditor.desc.rewriteUserPrompt') }}</p>- <div class="placeholder-tags" v-if="rewritePlaceholders.length > 0">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in rewritePlaceholders" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag"- @click="handlePlaceholderClick('rewriteUser', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'"></span>- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>- </div>- <div class="setting-control setting-control-full" style="position: relative;">- <div class="textarea-with-template">- <t-textarea ref="rewriteUserTextareaRef" v-model="formData.config.rewrite_prompt_user"- :placeholder="defaultRewritePromptUser || $t('agent.editor.rewritePromptUserPlaceholder')"- :autosize="{ minRows: 4, maxRows: 10 }" @input="handleRewriteUserInput" />- <PromptTemplateSelector type="rewrite" position="corner" @select="handleRewriteTemplateSelect"- @reset-default="handleRewriteTemplateSelect" />- </div>- <Teleport to="body">- <div v-if="rewriteUserPopup.show && filteredRewriteUserPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="rewriteUserPopup.style">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredRewriteUserPlaceholders"- :key="placeholder.name" class="placeholder-item"- :class="{ active: rewriteUserPopup.selectedIndex === index }"- @mousedown.prevent="insertGenericPlaceholder('rewriteUser', placeholder.name, true)"- @mouseenter="rewriteUserPopup.selectedIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`"></code>- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>- </div>- </div>- </template>-- <!-- 检索兜底(普通模式 + 启用知识库) -->- <div v-if="!isAgentMode && hasKnowledgeBase" v-show="activePromptAnchor === 'fallback'"- class="prompts-panel__pane prompts-panel__pane--stack">- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.fallbackStrategy') }}</label>- <p class="desc">{{ $t('agentEditor.desc.fallbackStrategy') }}</p>- </div>- <div class="setting-control">- <t-radio-group v-model="formData.config.fallback_strategy">- <t-radio-button value="fixed">{{ $t('agentEditor.fallback.fixed') }}</t-radio-button>- <t-radio-button value="model">{{ $t('agentEditor.fallback.model') }}</t-radio-button>- </t-radio-group>- </div>- </div>-- <div v-if="formData.config.fallback_strategy === 'fixed'"- class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agent.editor.fallbackResponse') }}</label>- <p class="desc">{{ $t('agentEditor.desc.fallbackResponse') }}</p>- </div>- <div class="setting-control setting-control-full">- <div class="textarea-with-template">- <t-textarea v-model="formData.config.fallback_response"- :placeholder="defaultFallbackResponse || $t('agent.editor.fallbackResponsePlaceholder')"- :autosize="{ minRows: 2, maxRows: 6 }" />- <PromptTemplateSelector type="fallback" position="corner" fallbackMode="fixed"- @select="handleFallbackResponseTemplateSelect"- @reset-default="handleFallbackResponseTemplateSelect" />- </div>- </div>- </div>-- <div v-if="formData.config.fallback_strategy === 'model'"- class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agent.editor.fallbackPrompt') }}</label>- <p class="desc">{{ $t('agentEditor.desc.fallbackPrompt') }}</p>- <div class="placeholder-tags" v-if="fallbackPlaceholders.length > 0">- <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>- <t-tooltip v-for="placeholder in fallbackPlaceholders" :key="placeholder.name"- :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"- placement="top">- <span class="placeholder-tag"- @click="handlePlaceholderClick('fallback', placeholder.name)"- v-text="'{{' + placeholder.name + '}}'"></span>- </t-tooltip>- <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>- </div>- </div>- <div class="setting-control setting-control-full" style="position: relative;">- <div class="textarea-with-template">- <t-textarea ref="fallbackPromptTextareaRef" v-model="formData.config.fallback_prompt"- :placeholder="defaultFallbackPrompt || $t('agent.editor.fallbackPromptPlaceholder')"- :autosize="{ minRows: 4, maxRows: 10 }" @input="handleFallbackPromptInput" />- <PromptTemplateSelector type="fallback" position="corner" fallbackMode="model"- @select="handleFallbackPromptTemplateSelect"- @reset-default="handleFallbackPromptTemplateSelect" />- </div>- <Teleport to="body">- <div v-if="fallbackPromptPopup.show && filteredFallbackPlaceholders.length > 0"- class="placeholder-popup-wrapper" :style="fallbackPromptPopup.style">- <div class="placeholder-popup">- <div v-for="(placeholder, index) in filteredFallbackPlaceholders"- :key="placeholder.name" class="placeholder-item"- :class="{ active: fallbackPromptPopup.selectedIndex === index }"- @mousedown.prevent="insertGenericPlaceholder('fallback', placeholder.name, true)"- @mouseenter="fallbackPromptPopup.selectedIndex = index">- <div class="placeholder-name">- <code v-html="`{{${placeholder.name}}}`"></code>- </div>- <div class="placeholder-desc">{{ placeholder.description }}</div>- </div>- </div>- </div>- </Teleport>+ <!-- 改写提示词(多轮对话 + 问题改写开启时) -->+ <template+ v-if="!isAgentMode && formData.config.multi_turn_enabled && formData.config.enable_rewrite">+ <div v-show="activePromptAnchor === 'rewrite-system'"+ class="setting-row setting-row-vertical prompts-panel__pane">+ <div class="setting-info">+ <label>{{ $t('agent.editor.rewritePromptSystem') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.rewriteSystemPrompt') }}</p>+ <div class="placeholder-tags" v-if="rewriteSystemPlaceholders.length > 0">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in rewriteSystemPlaceholders" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag"+ @click="handlePlaceholderClick('rewriteSystem', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'"></span>+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>+ </div>+ <div class="setting-control setting-control-full" style="position: relative;">+ <div class="textarea-with-template">+ <t-textarea ref="rewriteSystemTextareaRef" v-model="formData.config.rewrite_prompt_system"+ :placeholder="defaultRewritePromptSystem || $t('agent.editor.rewritePromptSystemPlaceholder')"+ :autosize="{ minRows: 4, maxRows: 10 }" @input="handleRewriteSystemInput" />+ <PromptTemplateSelector type="rewrite" position="corner" @select="handleRewriteTemplateSelect"+ @reset-default="handleRewriteTemplateSelect" />+ </div>+ <Teleport to="body">+ <div v-if="rewriteSystemPopup.show && filteredRewriteSystemPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="rewriteSystemPopup.style">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredRewriteSystemPlaceholders"+ :key="placeholder.name" class="placeholder-item"+ :class="{ active: rewriteSystemPopup.selectedIndex === index }"+ @mousedown.prevent="insertGenericPlaceholder('rewriteSystem', placeholder.name, true)"+ @mouseenter="rewriteSystemPopup.selectedIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`"></code></div>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div></div>+ </div>+ </Teleport>+ </div>+ </div>+ <div v-show="activePromptAnchor === 'rewrite-user'"+ class="setting-row setting-row-vertical prompts-panel__pane">+ <div class="setting-info">+ <label>{{ $t('agent.editor.rewritePromptUser') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.rewriteUserPrompt') }}</p>+ <div class="placeholder-tags" v-if="rewritePlaceholders.length > 0">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in rewritePlaceholders" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag"+ @click="handlePlaceholderClick('rewriteUser', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'"></span>+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>+ </div>+ <div class="setting-control setting-control-full" style="position: relative;">+ <div class="textarea-with-template">+ <t-textarea ref="rewriteUserTextareaRef" v-model="formData.config.rewrite_prompt_user"+ :placeholder="defaultRewritePromptUser || $t('agent.editor.rewritePromptUserPlaceholder')"+ :autosize="{ minRows: 4, maxRows: 10 }" @input="handleRewriteUserInput" />+ <PromptTemplateSelector type="rewrite" position="corner" @select="handleRewriteTemplateSelect"+ @reset-default="handleRewriteTemplateSelect" />+ </div>+ <Teleport to="body">+ <div v-if="rewriteUserPopup.show && filteredRewriteUserPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="rewriteUserPopup.style">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredRewriteUserPlaceholders"+ :key="placeholder.name" class="placeholder-item"+ :class="{ active: rewriteUserPopup.selectedIndex === index }"+ @mousedown.prevent="insertGenericPlaceholder('rewriteUser', placeholder.name, true)"+ @mouseenter="rewriteUserPopup.selectedIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`"></code>+ </div>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div></div></div>- </div>-- <!-- 模型配置 -->- <div v-show="currentSection === 'model'" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.modelConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.modelConfigDesc') }}</p>- </div>+ </Teleport>+ </div>+ </div>+ </template>++ <!-- 检索兜底(普通模式 + 启用知识库) -->+ <div v-if="!isAgentMode && hasKnowledgeBase" v-show="activePromptAnchor === 'fallback'"+ class="prompts-panel__pane prompts-panel__pane--stack">+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.fallbackStrategy') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.fallbackStrategy') }}</p>+ </div>+ <div class="setting-control">+ <t-radio-group v-model="formData.config.fallback_strategy">+ <t-radio-button value="fixed">{{ $t('agentEditor.fallback.fixed') }}</t-radio-button>+ <t-radio-button value="model">{{ $t('agentEditor.fallback.model') }}</t-radio-button>+ </t-radio-group>+ </div>+ </div>- <div class="settings-group">- <!-- 模型选择 -->- <div- class="setting-row"- data-guide="agent-create-model"- data-agent-field="summary_model"- :class="{ 'setting-row--field-highlight': highlightedField === 'summary_model' }"- >- <div class="setting-info">- <label>{{ $t('agent.editor.model') }} <span class="required">*</span></label>- <p class="desc">{{ $t('agentEditor.desc.model') }}</p>- </div>- <div class="setting-control">- <ModelSelector model-type="KnowledgeQA" :selected-model-id="formData.config.model_id"- :all-models="allModels"- @update:selected-model-id="(val: string) => formData.config.model_id = val"- @add-model="handleAddModel('llm')" :placeholder="$t('agent.editor.modelPlaceholder')" />- </div>- </div>+ <div v-if="formData.config.fallback_strategy === 'fixed'"+ class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agent.editor.fallbackResponse') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.fallbackResponse') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <div class="textarea-with-template">+ <t-textarea v-model="formData.config.fallback_response"+ :placeholder="defaultFallbackResponse || $t('agent.editor.fallbackResponsePlaceholder')"+ :autosize="{ minRows: 2, maxRows: 6 }" />+ <PromptTemplateSelector type="fallback" position="corner" fallbackMode="fixed"+ @select="handleFallbackResponseTemplateSelect"+ @reset-default="handleFallbackResponseTemplateSelect" />+ </div>+ </div>+ </div>- <!-- 温度 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.temperature') }}</label>- <p class="desc">{{ $t('agentEditor.desc.temperature') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.temperature" :min="0" :max="1" :step="0.1" />- <span class="slider-value">{{ formData.config.temperature }}</span>+ <div v-if="formData.config.fallback_strategy === 'model'"+ class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agent.editor.fallbackPrompt') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.fallbackPrompt') }}</p>+ <div class="placeholder-tags" v-if="fallbackPlaceholders.length > 0">+ <span class="placeholder-label">{{ $t('agentEditor.placeholders.available') }}</span>+ <t-tooltip v-for="placeholder in fallbackPlaceholders" :key="placeholder.name"+ :content="placeholder.description + $t('agentEditor.placeholders.clickToInsert')"+ placement="top">+ <span class="placeholder-tag"+ @click="handlePlaceholderClick('fallback', placeholder.name)"+ v-text="'{{' + placeholder.name + '}}'"></span>+ </t-tooltip>+ <span class="placeholder-hint">{{ $t('agentEditor.placeholders.hint') }}</span>+ </div>+ </div>+ <div class="setting-control setting-control-full" style="position: relative;">+ <div class="textarea-with-template">+ <t-textarea ref="fallbackPromptTextareaRef" v-model="formData.config.fallback_prompt"+ :placeholder="defaultFallbackPrompt || $t('agent.editor.fallbackPromptPlaceholder')"+ :autosize="{ minRows: 4, maxRows: 10 }" @input="handleFallbackPromptInput" />+ <PromptTemplateSelector type="fallback" position="corner" fallbackMode="model"+ @select="handleFallbackPromptTemplateSelect"+ @reset-default="handleFallbackPromptTemplateSelect" />+ </div>+ <Teleport to="body">+ <div v-if="fallbackPromptPopup.show && filteredFallbackPlaceholders.length > 0"+ class="placeholder-popup-wrapper" :style="fallbackPromptPopup.style">+ <div class="placeholder-popup">+ <div v-for="(placeholder, index) in filteredFallbackPlaceholders"+ :key="placeholder.name" class="placeholder-item"+ :class="{ active: fallbackPromptPopup.selectedIndex === index }"+ @mousedown.prevent="insertGenericPlaceholder('fallback', placeholder.name, true)"+ @mouseenter="fallbackPromptPopup.selectedIndex = index">+ <div class="placeholder-name">+ <code v-html="`{{${placeholder.name}}}`"></code></div>+ <div class="placeholder-desc">{{ placeholder.description }}</div></div></div>+ </div>+ </Teleport>+ </div>+ </div>+ </div>- <!-- 最大生成Token数:0 表示跟随系统默认;自定义后按输入值保存 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.maxCompletionTokens') }}</label>- <p class="desc">{{ isAgentMode ? $t('agentEditor.desc.maxTokensAgent') :- $t('agentEditor.desc.maxTokens') }}- </p>- </div>- <div class="setting-control max-tokens-control">- <t-radio-group v-model="maxCompletionTokensMode">- <t-radio-button value="default">{{ $t('agent.editor.maxCompletionTokensDefault')- }}</t-radio-button>- <t-radio-button value="custom">{{ $t('agent.editor.maxCompletionTokensCustom')- }}</t-radio-button>- </t-radio-group>- <span v-if="maxCompletionTokensMode === 'default'" class="max-tokens-value">- {{ effectiveDefaultMaxCompletionTokens }}- </span>- <t-input-number v-else v-model="formData.config.max_completion_tokens" :min="100" :max="100000"- :step="100" theme="column" />- </div>- </div>+ </div>+ </div>+ </div>+ </div>- <!-- 思考模式 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.thinking') }}</label>- <p class="desc">{{ $t('agentEditor.desc.thinking') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="thinkingEnabled" />- </div>- </div>+ <!-- 模型配置 -->+ <div v-show="currentSection === 'model'" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.modelConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.modelConfigDesc') }}</p>+ </div>- <!-- 来源引用 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.citationEnabled') }}</label>- <p class="desc">{{ $t('agent.editor.citationEnabledDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.citation_enabled" />- </div>- </div>+ <div class="settings-group">+ <!-- 模型选择 -->+ <div+ class="setting-row"+ data-guide="agent-create-model"+ data-agent-field="summary_model"+ :class="{ 'setting-row--field-highlight': highlightedField === 'summary_model' }"+ >+ <div class="setting-info">+ <label>{{ $t('agent.editor.model') }} <span class="required">*</span></label>+ <p class="desc">{{ $t('agentEditor.desc.model') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="KnowledgeQA" :selected-model-id="formData.config.model_id"+ :all-models="allModels"+ @update:selected-model-id="(val: string) => formData.config.model_id = val"+ @add-model="handleAddModel('llm')" :placeholder="$t('agent.editor.modelPlaceholder')" />+ </div>+ </div>- <!-- ReRank 模型(启用知识库或 knowledge_search 工具时显示) -->- <div- v-if="showRerankModelField"- class="setting-row"- data-agent-field="rerank_model"- :class="{ 'setting-row--field-highlight': highlightedField === 'rerank_model' }"- >- <div class="setting-info">- <label>- {{ $t('agent.editor.rerankModel') }}- <span v-if="needsRerankModel" class="required">*</span>- </label>- <p class="desc">- {{ $t('agent.editor.rerankModelDesc') }}- <template v-if="!needsRerankModel">- <br />- <span class="hint">{{ $t('agent.editor.rerankModelOptionalHint') }}</span>- </template>- </p>- </div>- <div class="setting-control">- <ModelSelector model-type="Rerank" :selected-model-id="formData.config.rerank_model_id"- :all-models="allModels"- :clearable="!needsRerankModel"- @update:selected-model-id="(val: string) => formData.config.rerank_model_id = val"- @add-model="handleAddModel('rerank')"- :placeholder="$t('agent.editor.rerankModelPlaceholder')" />- </div>- </div>+ <!-- 温度 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.temperature') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.temperature') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.temperature" :min="0" :max="1" :step="0.1" />+ <span class="slider-value">{{ formData.config.temperature }}</span>+ </div>+ </div>+ </div>- <!-- 问题理解模型(多轮改写时,留空则复用主对话模型) -->- <div- v-if="!isAgentMode && formData.config.multi_turn_enabled && formData.config.enable_rewrite"- class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.queryUnderstandModel') }}</label>- <p class="desc">{{ $t('agentEditor.desc.queryUnderstandModel') }}</p>- </div>- <div class="setting-control">- <ModelSelector model-type="KnowledgeQA"- :selected-model-id="formData.config.query_understand_model_id" :all-models="allModels"- clearable- @update:selected-model-id="(val: string) => formData.config.query_understand_model_id = val"- @add-model="handleAddModel('llm')"- :placeholder="$t('agent.editor.queryUnderstandModelPlaceholder')" />- </div>- </div>+ <!-- 最大生成Token数:0 表示跟随系统默认;自定义后按输入值保存 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.maxCompletionTokens') }}</label>+ <p class="desc">{{ isAgentMode ? $t('agentEditor.desc.maxTokensAgent') :+ $t('agentEditor.desc.maxTokens') }}+ </p>+ </div>+ <div class="setting-control max-tokens-control">+ <t-radio-group v-model="maxCompletionTokensMode">+ <t-radio-button value="default">{{ $t('agent.editor.maxCompletionTokensDefault')+ }}</t-radio-button>+ <t-radio-button value="custom">{{ $t('agent.editor.maxCompletionTokensCustom')+ }}</t-radio-button>+ </t-radio-group>+ <span v-if="maxCompletionTokensMode === 'default'" class="max-tokens-value">+ {{ effectiveDefaultMaxCompletionTokens }}+ </span>+ <t-input-number v-else v-model="formData.config.max_completion_tokens" :min="100" :max="100000"+ :step="100" theme="column" />+ </div>+ </div>- <!-- 最大迭代次数(Agent 模式):正数为上限,-1 为不限制 -->- <div v-if="isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.maxIterations') }}</label>- <p class="desc">{{ $t('agentEditor.desc.maxIterations') }}</p>- </div>- <div class="setting-control max-tokens-control">- <t-radio-group v-model="maxIterationsMode">- <t-radio-button value="limit">{{ $t('agent.editor.maxIterationsLimit') }}</t-radio-button>- <t-radio-button value="unlimited">{{ $t('agent.editor.maxIterationsUnlimited') }}</t-radio-button>- </t-radio-group>- <t-input-number v-if="maxIterationsMode === 'limit'" v-model="formData.config.max_iterations"- :min="2" :max="50" theme="column" />- </div>- </div>+ <!-- 思考模式 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.thinking') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.thinking') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="thinkingEnabled" />+ </div>+ </div>- <!-- LLM 调用超时(Agent 模式) -->- <div v-if="isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.llmCallTimeout.label') }}</label>- <p class="desc">{{ $t('agentEditor.llmCallTimeout.desc') }}</p>- <p class="desc-hint">{{ $t('agentEditor.llmCallTimeout.hint') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.llm_call_timeout" :min="0" :max="3600" theme="column"- :placeholder="$t('agentEditor.llmCallTimeout.placeholder')" clearable />- </div>- </div>+ <!-- 来源引用 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.citationEnabled') }}</label>+ <p class="desc">{{ $t('agent.editor.citationEnabledDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.citation_enabled" />+ </div>+ </div>- </div>- </div>+ <!-- ReRank 模型(启用知识库或 knowledge_search 工具时显示) -->+ <div+ v-if="showRerankModelField"+ class="setting-row"+ data-agent-field="rerank_model"+ :class="{ 'setting-row--field-highlight': highlightedField === 'rerank_model' }"+ >+ <div class="setting-info">+ <label>+ {{ $t('agent.editor.rerankModel') }}+ <span v-if="needsRerankModel" class="required">*</span>+ </label>+ <p class="desc">+ {{ $t('agent.editor.rerankModelDesc') }}+ <template v-if="!needsRerankModel">+ <br />+ <span class="hint">{{ $t('agent.editor.rerankModelOptionalHint') }}</span>+ </template>+ </p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="Rerank" :selected-model-id="formData.config.rerank_model_id"+ :all-models="allModels"+ :clearable="!needsRerankModel"+ @update:selected-model-id="(val: string) => formData.config.rerank_model_id = val"+ @add-model="handleAddModel('rerank')"+ :placeholder="$t('agent.editor.rerankModelPlaceholder')" />+ </div>+ </div>- <!-- 附件上传 -->- <div v-show="currentSection === 'multimodal'" class="section">- <div class="section-header">- <h2>{{ $t('agentEditor.imageUpload.sectionTitle') }}</h2>- <p class="section-description">{{ $t('agentEditor.imageUpload.sectionDesc') }}</p>- </div>+ <!-- 问题理解模型(多轮改写时,留空则复用主对话模型) -->+ <div+ v-if="!isAgentMode && formData.config.multi_turn_enabled && formData.config.enable_rewrite"+ class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.queryUnderstandModel') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.queryUnderstandModel') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="KnowledgeQA"+ :selected-model-id="formData.config.query_understand_model_id" :all-models="allModels"+ clearable+ @update:selected-model-id="(val: string) => formData.config.query_understand_model_id = val"+ @add-model="handleAddModel('llm')"+ :placeholder="$t('agent.editor.queryUnderstandModelPlaceholder')" />+ </div>+ </div>- <div class="settings-group">- <!-- 图片上传 -->- <div class="setting-row" data-guide="agent-create-multimodal">- <div class="setting-info">- <label>{{ $t('agentEditor.imageUpload.label') }}</label>- <p class="desc">{{ $t('agentEditor.imageUpload.desc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.image_upload_enabled" />- </div>- </div>+ <!-- 最大迭代次数(Agent 模式):正数为上限,-1 为不限制 -->+ <div v-if="isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.maxIterations') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.maxIterations') }}</p>+ </div>+ <div class="setting-control max-tokens-control">+ <t-radio-group v-model="maxIterationsMode">+ <t-radio-button value="limit">{{ $t('agent.editor.maxIterationsLimit') }}</t-radio-button>+ <t-radio-button value="unlimited">{{ $t('agent.editor.maxIterationsUnlimited') }}</t-radio-button>+ </t-radio-group>+ <t-input-number v-if="maxIterationsMode === 'limit'" v-model="formData.config.max_iterations"+ :min="2" :max="50" theme="column" />+ </div>+ </div>- <!-- VLM 模型(图片上传启用时) -->- <div v-if="formData.config.image_upload_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.imageUpload.vlmModel') }} <span class="required">*</span></label>- <p class="desc">{{ $t('agentEditor.imageUpload.vlmModelDesc') }}</p>- </div>- <div class="setting-control">- <ModelSelector model-type="VLLM" :selected-model-id="formData.config.vlm_model_id"- :all-models="allModels"- @update:selected-model-id="(val: string) => formData.config.vlm_model_id = val"- @add-model="handleAddModel('vllm')"- :placeholder="$t('agentEditor.imageUpload.vlmModelPlaceholder')" />- </div>- </div>+ <!-- LLM 调用超时(Agent 模式) -->+ <div v-if="isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.llmCallTimeout.label') }}</label>+ <p class="desc">{{ $t('agentEditor.llmCallTimeout.desc') }}</p>+ <p class="desc-hint">{{ $t('agentEditor.llmCallTimeout.hint') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.llm_call_timeout" :min="0" :max="3600" theme="column"+ :placeholder="$t('agentEditor.llmCallTimeout.placeholder')" clearable />+ </div>+ </div>- <!-- 附件图片理解 / 扫描件 OCR(图片上传启用时) -->- <div v-if="formData.config.image_upload_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.imageUpload.imageUnderstandingLabel') }}</label>- <p class="desc">{{ $t('agentEditor.imageUpload.imageUnderstandingDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.attachment_image_understanding" />- </div>- </div>+ </div>+ </div>- <!-- 扫描件 OCR 最大页数(开启附件图片理解时) -->- <div v-if="formData.config.image_upload_enabled && formData.config.attachment_image_understanding"- class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.imageUpload.ocrMaxPagesLabel') }}</label>- <p class="desc">{{ $t('agentEditor.imageUpload.ocrMaxPagesDesc') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.attachment_ocr_max_pages" :min="0" :max="64"- :step="1" theme="normal" style="width: 160px;"- :placeholder="$t('agentEditor.imageUpload.useGlobalDefault')" />- </div>- </div>+ <!-- 附件上传 -->+ <div v-show="currentSection === 'multimodal'" class="section">+ <div class="section-header">+ <h2>{{ $t('agentEditor.imageUpload.sectionTitle') }}</h2>+ <p class="section-description">{{ $t('agentEditor.imageUpload.sectionDesc') }}</p>+ </div>- <!-- 图片存储 Provider(图片上传启用时) -->- <div v-if="formData.config.image_upload_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.imageUpload.storageProvider') }}</label>- <p class="desc">{{ $t('agentEditor.imageUpload.storageProviderDesc') }}</p>- </div>- <div class="setting-control" style="flex-direction: column; align-items: flex-end;">- <t-select v-model="formData.config.image_storage_provider" style="width: 280px;"- :placeholder="$t('agentEditor.imageUpload.storageProviderPlaceholder')" clearable>- <t-option value="" :label="$t('agentEditor.imageUpload.storageDefault')" />- <t-option v-for="opt in imageStorageOptions" :key="opt.value" :value="opt.value"- :label="opt.label" :disabled="opt.disabled">- <span class="select-option-with-tag">- <span>{{ opt.label }}</span>- <t-tag v-if="opt.disabled" theme="warning" variant="light" size="small">{{- $t('agentEditor.imageUpload.notConfigured') }}</t-tag>- </span>- </t-option>- </t-select>- <a href="javascript:void(0)" class="go-settings-link"- @click.prevent="uiStore.openSettings('storage')">- {{ $t('agentEditor.imageUpload.goStorageSettings') }}- </a>- </div>- </div>+ <div class="settings-group">+ <!-- 图片上传 -->+ <div class="setting-row" data-guide="agent-create-multimodal">+ <div class="setting-info">+ <label>{{ $t('agentEditor.imageUpload.label') }}</label>+ <p class="desc">{{ $t('agentEditor.imageUpload.desc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.image_upload_enabled" />+ </div>+ </div>- <!-- 音频上传开关 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.audioUpload.label') }}</label>- <p class="desc">{{ $t('agentEditor.audioUpload.desc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.audio_upload_enabled" />- </div>- </div>+ <!-- VLM 模型(图片上传启用时) -->+ <div v-if="formData.config.image_upload_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.imageUpload.vlmModel') }} <span class="required">*</span></label>+ <p class="desc">{{ $t('agentEditor.imageUpload.vlmModelDesc') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="VLLM" :selected-model-id="formData.config.vlm_model_id"+ :all-models="allModels"+ @update:selected-model-id="(val: string) => formData.config.vlm_model_id = val"+ @add-model="handleAddModel('vllm')"+ :placeholder="$t('agentEditor.imageUpload.vlmModelPlaceholder')" />+ </div>+ </div>- <!-- ASR 模型(音频上传启用时) -->- <div v-if="formData.config.audio_upload_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.audioUpload.asrModel') }}</label>- <p class="desc">{{ $t('agentEditor.audioUpload.asrModelDesc') }}</p>- </div>- <div class="setting-control">- <ModelSelector model-type="ASR" :selected-model-id="formData.config.asr_model_id"- :all-models="allModels"- clearable- @update:selected-model-id="(val: string) => formData.config.asr_model_id = val"- @add-model="handleAddModel('asr')"- :placeholder="$t('agentEditor.audioUpload.asrModelPlaceholder')" />- </div>- </div>+ <!-- 附件图片理解 / 扫描件 OCR(图片上传启用时) -->+ <div v-if="formData.config.image_upload_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.imageUpload.imageUnderstandingLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.imageUpload.imageUnderstandingDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.attachment_image_understanding" />+ </div>+ </div>- <!-- 单轮等待附件解析超时(秒) -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.chatParser.waitTimeoutLabel') }}</label>- <p class="desc">{{ $t('agentEditor.chatParser.waitTimeoutDesc') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.attachment_parse_wait_timeout_sec" :min="0" :max="600"- :step="10" theme="normal" style="width: 160px;"- :placeholder="$t('agentEditor.imageUpload.useGlobalDefault')" />- </div>- </div>+ <!-- 扫描件 OCR 最大页数(开启附件图片理解时) -->+ <div v-if="formData.config.image_upload_enabled && formData.config.attachment_image_understanding"+ class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.imageUpload.ocrMaxPagesLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.imageUpload.ocrMaxPagesDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.attachment_ocr_max_pages" :min="0" :max="64"+ :step="1" theme="normal" style="width: 160px;"+ :placeholder="$t('agentEditor.imageUpload.useGlobalDefault')" />+ </div>+ </div>- <!-- 聊天附件解析策略 -->- <div class="parser-policy-block">- <div class="parser-policy-block__header">- <label>{{ $t('agentEditor.chatParser.label') }}</label>- <p class="desc">{{ $t('agentEditor.chatParser.desc') }}</p>- </div>- <KBParserSettings- embedded- :parser-engine-rules="formData.config.chat_parser_engine_rules"- :relevant-extensions="CHAT_PARSER_EXTENSIONS"- @update:parser-engine-rules="(val: any) => formData.config.chat_parser_engine_rules = val"- />- </div>+ <!-- 图片存储 Provider(图片上传启用时) -->+ <div v-if="formData.config.image_upload_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.imageUpload.storageProvider') }}</label>+ <p class="desc">{{ $t('agentEditor.imageUpload.storageProviderDesc') }}</p>+ </div>+ <div class="setting-control" style="flex-direction: column; align-items: flex-end;">+ <t-select v-model="formData.config.image_storage_provider" style="width: 280px;"+ :placeholder="$t('agentEditor.imageUpload.storageProviderPlaceholder')" clearable>+ <t-option value="" :label="$t('agentEditor.imageUpload.storageDefault')" />+ <t-option v-for="opt in imageStorageOptions" :key="opt.value" :value="opt.value"+ :label="opt.label" :disabled="opt.disabled">+ <span class="select-option-with-tag">+ <span>{{ opt.label }}</span>+ <t-tag v-if="opt.disabled" theme="warning" variant="light" size="small">{{+ $t('agentEditor.imageUpload.notConfigured') }}</t-tag>+ </span>+ </t-option>+ </t-select>+ <a href="javascript:void(0)" class="go-settings-link"+ @click.prevent="uiStore.openSettings('storage')">+ {{ $t('agentEditor.imageUpload.goStorageSettings') }}+ </a>+ </div>+ </div>- </div>- </div>+ <!-- 音频上传开关 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.audioUpload.label') }}</label>+ <p class="desc">{{ $t('agentEditor.audioUpload.desc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.audio_upload_enabled" />+ </div>+ </div>- <!-- 多轮对话。Agent 模式下 history_turns 同样生效(session_agent_qa.go- 经 LoadAgentHistory 读取),所以本组不再整体按模式隐藏;开关本身仍由- EnsureDefaults 强制开启,故只在普通模式展示。 -->- <div v-show="currentSection === 'conversation'" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.conversationSettings') }}</h2>- <p class="section-description">{{ conversationSectionDesc }}</p>- </div>+ <!-- ASR 模型(音频上传启用时) -->+ <div v-if="formData.config.audio_upload_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.audioUpload.asrModel') }}</label>+ <p class="desc">{{ $t('agentEditor.audioUpload.asrModelDesc') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="ASR" :selected-model-id="formData.config.asr_model_id"+ :all-models="allModels"+ clearable+ @update:selected-model-id="(val: string) => formData.config.asr_model_id = val"+ @add-model="handleAddModel('asr')"+ :placeholder="$t('agentEditor.audioUpload.asrModelPlaceholder')" />+ </div>+ </div>- <div class="settings-group">- <!-- 多轮对话开关(仅普通模式:Agent 模式由 EnsureDefaults 强制开启,- 展示可关闭的开关只会被服务端改回去) -->- <div v-if="!isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.multiTurn') }}</label>- <p class="desc">{{ $t('agentEditor.desc.multiTurn') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.multi_turn_enabled" />- </div>- </div>+ <!-- 单轮等待附件解析超时(秒) -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.chatParser.waitTimeoutLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.chatParser.waitTimeoutDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.attachment_parse_wait_timeout_sec" :min="0" :max="600"+ :step="10" theme="normal" style="width: 160px;"+ :placeholder="$t('agentEditor.imageUpload.useGlobalDefault')" />+ </div>+ </div>- <!-- 保留轮数(Agent 模式恒为多轮,故不受开关状态影响) -->- <div v-if="formData.config.multi_turn_enabled || isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.historyTurns') }}</label>- <p class="desc">{{ $t('agentEditor.desc.historyRounds') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.history_turns" :min="1" :max="100" theme="column" />- </div>- </div>+ <!-- 聊天附件解析策略 -->+ <div class="parser-policy-block">+ <div class="parser-policy-block__header">+ <label>{{ $t('agentEditor.chatParser.label') }}</label>+ <p class="desc">{{ $t('agentEditor.chatParser.desc') }}</p>+ </div>+ <KBParserSettings+ embedded+ :parser-engine-rules="formData.config.chat_parser_engine_rules"+ :relevant-extensions="CHAT_PARSER_EXTENSIONS"+ @update:parser-engine-rules="(val: any) => formData.config.chat_parser_engine_rules = val"+ />+ </div>- <!-- 跨轮保留检索结果。只有 agent 链路读取该值(internal/agent/observe.go),- 且改写的只是 KB/Wiki 这八个工具的历史结果,所以没有知识库时不展示。 -->- <div v-if="isAgentMode && hasKnowledgeBase" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.retainRetrievalHistory') }}</label>- <p class="desc">{{ $t('agentEditor.desc.retainRetrievalHistory') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.retain_retrieval_history" />- </div>- </div>+ </div>+ </div>- <!-- 问题改写(仅多轮对话开启且普通模式时显示) -->- <div v-if="formData.config.multi_turn_enabled && !isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.enableRewrite') }}</label>- <p class="desc">{{ $t('agentEditor.desc.rewrite') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.enable_rewrite" />- </div>- </div>- </div>- </div>+ <!-- 多轮对话。Agent 模式下 history_turns 同样生效(session_agent_qa.go+ 经 LoadAgentHistory 读取),所以本组不再整体按模式隐藏;开关本身仍由+ EnsureDefaults 强制开启,故只在普通模式展示。 -->+ <div v-show="currentSection === 'conversation'" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.conversationSettings') }}</h2>+ <p class="section-description">{{ conversationSectionDesc }}</p>+ </div>- <!-- 对话问题推荐 -->- <div v-show="currentSection === 'suggestions'" class="section">- <div class="section-header">- <h2>{{ $t('agentEditor.questionSuggestions.title') }}</h2>- <p class="section-description">{{ $t('agentEditor.questionSuggestions.description') }}</p>- </div>+ <div class="settings-group">+ <!-- 多轮对话开关(仅普通模式:Agent 模式由 EnsureDefaults 强制开启,+ 展示可关闭的开关只会被服务端改回去) -->+ <div v-if="!isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.multiTurn') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.multiTurn') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.multi_turn_enabled" />+ </div>+ </div>- <t-tabs v-model="suggestionTab" class="suggestion-tabs">- <t-tab-panel value="starters"- :label="$t('agentEditor.questionSuggestions.startersTitle')" />- <t-tab-panel value="followUps"- :label="$t('agentEditor.questionSuggestions.followUpsTitle')" />- </t-tabs>-- <div v-show="suggestionTab === 'starters'" class="settings-group">- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.enableStarters') }}</label>- <p class="desc">{{ $t('agentEditor.questionSuggestions.enableStartersDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.question_suggestions.starters.enabled"- :aria-label="$t('agentEditor.questionSuggestions.enableStarters')" />- </div>- </div>+ <!-- 保留轮数(Agent 模式恒为多轮,故不受开关状态影响) -->+ <div v-if="formData.config.multi_turn_enabled || isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.historyTurns') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.historyRounds') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.history_turns" :min="1" :max="100" theme="column" />+ </div>+ </div>- <div v-if="formData.config.question_suggestions.starters.enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.sourceMode') }}</label>- </div>- <div class="setting-control">- <t-select v-model="formData.config.question_suggestions.starters.mode"- :options="starterSuggestionModeOptions" />- </div>- </div>+ <!-- 跨轮保留检索结果。只有 agent 链路读取该值(internal/agent/observe.go),+ 且改写的只是 KB/Wiki 这八个工具的历史结果,所以没有知识库时不展示。 -->+ <div v-if="isAgentMode && hasKnowledgeBase" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.retainRetrievalHistory') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.retainRetrievalHistory') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.retain_retrieval_history" />+ </div>+ </div>- <div v-if="formData.config.question_suggestions.starters.enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.count') }}</label>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.question_suggestions.starters.count"- :min="1" :max="8" theme="column" />- </div>- </div>+ <!-- 问题改写(仅多轮对话开启且普通模式时显示) -->+ <div v-if="formData.config.multi_turn_enabled && !isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.enableRewrite') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.rewrite') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.enable_rewrite" />+ </div>+ </div>+ </div>+ </div>- <div- v-if="formData.config.question_suggestions.starters.enabled && ['curated', 'hybrid'].includes(formData.config.question_suggestions.starters.mode)"- class="setting-row setting-row-vertical">- <div class="setting-info">- <div class="setting-info-header setting-info-header--inline">- <label>{{ $t('agentEditor.questionSuggestions.curatedItems') }}</label>- <span class="curated-items-count">- {{ formData.config.question_suggestions.starters.items.length }}/8- </span>- </div>- <p class="desc">{{ $t('agentEditor.questionSuggestions.curatedItemsDesc') }}</p>- </div>- <div class="setting-control setting-control-full">- <div class="suggested-prompts-list">- <div v-for="(_prompt, index) in formData.config.question_suggestions.starters.items"- :key="index" class="prompt-item">- <t-input v-model="formData.config.question_suggestions.starters.items[index]"- :maxlength="200" />- <t-button variant="text" theme="danger" shape="square"- :aria-label="$t('common.delete')" @click="removeStarterSuggestion(Number(index))">- <t-icon name="delete" />- </t-button>- </div>- <t-button variant="dashed"- :disabled="formData.config.question_suggestions.starters.items.length >= 8"- @click="addStarterSuggestion">- <template #icon><t-icon name="add" /></template>- {{ $t('agentEditor.questionSuggestions.addItem') }}- </t-button>- </div>- </div>- </div>- </div>+ <!-- 对话问题推荐 -->+ <div v-show="currentSection === 'suggestions'" class="section">+ <div class="section-header">+ <h2>{{ $t('agentEditor.questionSuggestions.title') }}</h2>+ <p class="section-description">{{ $t('agentEditor.questionSuggestions.description') }}</p>+ </div>- <div v-show="suggestionTab === 'followUps'" class="settings-group">- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.enableFollowUps') }}</label>- <p class="desc">{{ $t('agentEditor.questionSuggestions.enableFollowUpsDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.question_suggestions.follow_ups.enabled"- :aria-label="$t('agentEditor.questionSuggestions.enableFollowUps')" />- </div>- </div>+ <t-tabs v-model="suggestionTab" class="suggestion-tabs">+ <t-tab-panel value="starters"+ :label="$t('agentEditor.questionSuggestions.startersTitle')" />+ <t-tab-panel value="followUps"+ :label="$t('agentEditor.questionSuggestions.followUpsTitle')" />+ </t-tabs>++ <div v-show="suggestionTab === 'starters'" class="settings-group">+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.enableStarters') }}</label>+ <p class="desc">{{ $t('agentEditor.questionSuggestions.enableStartersDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.question_suggestions.starters.enabled"+ :aria-label="$t('agentEditor.questionSuggestions.enableStarters')" />+ </div>+ </div>- <template v-if="formData.config.question_suggestions.follow_ups.enabled">- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.sourceMode') }}</label>- </div>- <div class="setting-control">- <t-select v-model="formData.config.question_suggestions.follow_ups.mode"- :options="followUpSuggestionModeOptions" />- </div>- </div>+ <div v-if="formData.config.question_suggestions.starters.enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.sourceMode') }}</label>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.question_suggestions.starters.mode"+ :options="starterSuggestionModeOptions" />+ </div>+ </div>- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.count') }}</label>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.question_suggestions.follow_ups.count"- :min="1" :max="5" theme="column" />- </div>- </div>+ <div v-if="formData.config.question_suggestions.starters.enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.count') }}</label>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.question_suggestions.starters.count"+ :min="1" :max="8" theme="column" />+ </div>+ </div>- <div v-if="formData.config.question_suggestions.follow_ups.mode !== 'knowledge'"- class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.model') }}</label>- <p class="desc">{{ $t('agentEditor.questionSuggestions.modelDesc') }}</p>- </div>- <div class="setting-control">- <ModelSelector model-type="KnowledgeQA"- :selected-model-id="formData.config.question_suggestions.follow_ups.model_id"- :all-models="allModels"- clearable- @update:selected-model-id="(val: string) => formData.config.question_suggestions.follow_ups.model_id = val"- @add-model="handleAddModel('summary')" />- </div>- </div>+ <div+ v-if="formData.config.question_suggestions.starters.enabled && ['curated', 'hybrid'].includes(formData.config.question_suggestions.starters.mode)"+ class="setting-row setting-row-vertical">+ <div class="setting-info">+ <div class="setting-info-header setting-info-header--inline">+ <label>{{ $t('agentEditor.questionSuggestions.curatedItems') }}</label>+ <span class="curated-items-count">+ {{ formData.config.question_suggestions.starters.items.length }}/8+ </span>+ </div>+ <p class="desc">{{ $t('agentEditor.questionSuggestions.curatedItemsDesc') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <div class="suggested-prompts-list">+ <div v-for="(_prompt, index) in formData.config.question_suggestions.starters.items"+ :key="index" class="prompt-item">+ <t-input v-model="formData.config.question_suggestions.starters.items[index]"+ :maxlength="200" />+ <t-button variant="text" theme="danger" shape="square"+ :aria-label="$t('common.delete')" @click="removeStarterSuggestion(Number(index))">+ <t-icon name="delete" />+ </t-button>+ </div>+ <t-button variant="dashed"+ :disabled="formData.config.question_suggestions.starters.items.length >= 8"+ @click="addStarterSuggestion">+ <template #icon><t-icon name="add" /></template>+ {{ $t('agentEditor.questionSuggestions.addItem') }}+ </t-button>+ </div>+ </div>+ </div>+ </div>- <div class="suggestion-advanced-divider">- <span>{{ $t('agentEditor.questionSuggestions.advancedSettings') }}</span>- </div>+ <div v-show="suggestionTab === 'followUps'" class="settings-group">+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.enableFollowUps') }}</label>+ <p class="desc">{{ $t('agentEditor.questionSuggestions.enableFollowUpsDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.question_suggestions.follow_ups.enabled"+ :aria-label="$t('agentEditor.questionSuggestions.enableFollowUps')" />+ </div>+ </div>- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.contextTurns') }}</label>- </div>- <div class="setting-control">- <t-input-number- v-model="formData.config.question_suggestions.follow_ups.max_context_turns"- :min="1" :max="5" theme="column" />- </div>- </div>+ <template v-if="formData.config.question_suggestions.follow_ups.enabled">+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.sourceMode') }}</label>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.question_suggestions.follow_ups.mode"+ :options="followUpSuggestionModeOptions" />+ </div>+ </div>- <div class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.categories') }}</label>- </div>- <div class="setting-control setting-control-full">- <t-checkbox-group v-model="formData.config.question_suggestions.follow_ups.categories"- :options="followUpCategoryOptions" />- </div>- </div>+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.count') }}</label>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.question_suggestions.follow_ups.count"+ :min="1" :max="5" theme="column" />+ </div>+ </div>- <div class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.instruction') }}</label>- </div>- <div class="setting-control setting-control-full">- <t-textarea- v-model="formData.config.question_suggestions.follow_ups.additional_instruction"- :placeholder="$t('agentEditor.questionSuggestions.instructionPlaceholder')"- :maxlength="2000" :autosize="{ minRows: 3, maxRows: 8 }" />- </div>- </div>+ <div v-if="formData.config.question_suggestions.follow_ups.mode !== 'knowledge'"+ class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.model') }}</label>+ <p class="desc">{{ $t('agentEditor.questionSuggestions.modelDesc') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector model-type="KnowledgeQA"+ :selected-model-id="formData.config.question_suggestions.follow_ups.model_id"+ :all-models="allModels"+ clearable+ @update:selected-model-id="(val: string) => formData.config.question_suggestions.follow_ups.model_id = val"+ @add-model="handleAddModel('summary')" />+ </div>+ </div>- <div class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agentEditor.questionSuggestions.displayRules') }}</label>- </div>- <div class="setting-control setting-control-full">- <div class="suggestion-checkboxes">- <t-checkbox v-model="formData.config.question_suggestions.follow_ups.suppress_on_fallback">{{ $t('agentEditor.questionSuggestions.suppressFallback') }}</t-checkbox>- <t-checkbox v-model="formData.config.question_suggestions.follow_ups.suppress_when_answer_asks_question">{{ $t('agentEditor.questionSuggestions.suppressQuestion') }}</t-checkbox>- <t-checkbox v-model="formData.config.question_suggestions.follow_ups.knowledge_fallback">{{ $t('agentEditor.questionSuggestions.knowledgeFallback') }}</t-checkbox>- <t-checkbox v-model="formData.config.question_suggestions.follow_ups.allow_regenerate">{{ $t('agentEditor.questionSuggestions.allowRegenerate') }}</t-checkbox>- </div>- </div>- </div>- </template>- </div>- </div>+ <div class="suggestion-advanced-divider">+ <span>{{ $t('agentEditor.questionSuggestions.advancedSettings') }}</span>+ </div>- <!-- 工具配置(仅 Agent 模式) -->- <div v-show="currentSection === 'tools' && isAgentMode" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.toolsConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.toolsConfigDesc') }}</p>- </div>+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.contextTurns') }}</label>+ </div>+ <div class="setting-control">+ <t-input-number+ v-model="formData.config.question_suggestions.follow_ups.max_context_turns"+ :min="1" :max="5" theme="column" />+ </div>+ </div>- <!-- 合并面板:能力状态 + 预设切换 -->- <div class="tools-overview">- <div class="tools-overview-row">- <div class="tools-status-chip">- <t-icon name="folder" />- <template v-if="kbSelectionMode === 'none'">- <span>{{ $t('agentEditor.tools.statusNoKb') }}</span>- </template>- <template v-else>- <span class="tools-status-metric">- <strong>{{ ragKbCount }}</strong> {{ $t('agentEditor.tools.kbMetricRag') }}- </span>- <span class="tools-status-sep">·</span>- <span class="tools-status-metric">- <strong>{{ wikiKbCount }}</strong> {{ $t('agentEditor.tools.kbMetricWiki') }}- </span>- </template>- </div>- <div v-if="inactiveToolCount > 0" class="tools-status-chip tools-status-chip--warn">- <t-icon name="error-circle" />- <span>{{ $t('agentEditor.tools.statusInactive', { count: inactiveToolCount }) }}</span>- </div>- </div>- </div>+ <div class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.categories') }}</label>+ </div>+ <div class="setting-control setting-control-full">+ <t-checkbox-group v-model="formData.config.question_suggestions.follow_ups.categories"+ :options="followUpCategoryOptions" />+ </div>+ </div>- <div class="settings-group">- <!-- 允许的工具(按组渲染,统一网格) -->- <div- class="setting-row setting-row-vertical"- data-agent-field="allowed_tools"- :class="{ 'setting-row--field-highlight': highlightedField === 'allowed_tools' }"- >- <div class="setting-info">- <label>{{ $t('agent.editor.allowedTools') }}</label>- <p class="desc">{{ $t('agentEditor.desc.selectTools') }}</p>- </div>- <div class="setting-control setting-control-full">- <t-checkbox-group v-model="formData.config.allowed_tools" class="tool-groups">- <section v-for="group in groupedAvailableTools" :key="group.key"- :class="['tool-group', `tool-group--${group.key}`]">- <header class="tool-group-header">- <span class="tool-group-bar" />- <span class="tool-group-title">{{ group.label }}</span>- <span class="tool-group-count">{{ group.tools.length }}</span>- <span v-if="group.key === 'wiki_edit'" class="tool-group-warning">- <t-icon name="error-circle" />- {{ $t('agentEditor.tools.writeWarning') }}- </span>- </header>- <div class="tool-grid">- <t-checkbox v-for="tool in group.tools" :key="tool.value" :value="tool.value"- :disabled="tool.disabled"- :class="['tool-card', { 'tool-card--disabled': tool.disabled, 'tool-card--danger': tool.danger }]">- <div class="tool-card-body">- <div class="tool-card-head">- <span class="tool-card-name">{{ tool.label }}</span>- <span v-if="tool.danger" class="tool-card-badge">- {{ $t('agentEditor.tools.dangerTag') }}- </span>- </div>- <span v-if="tool.description" class="tool-card-desc">{{ tool.description }}</span>- <span v-if="tool.disabled && tool.disabledReason" class="tool-card-hint">- {{ tool.disabledReason }}- </span>- </div>- </t-checkbox>- </div>- </section>- </t-checkbox-group>- </div>- </div>+ <div class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.instruction') }}</label>+ </div>+ <div class="setting-control setting-control-full">+ <t-textarea+ v-model="formData.config.question_suggestions.follow_ups.additional_instruction"+ :placeholder="$t('agentEditor.questionSuggestions.instructionPlaceholder')"+ :maxlength="2000" :autosize="{ minRows: 3, maxRows: 8 }" />+ </div>+ </div>- <!-- 有效工具预览:所见即所得 -->- <div class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('agentEditor.tools.effectiveLabel') }}</label>- <p class="desc">{{ $t('agentEditor.tools.effectiveDesc') }}</p>- </div>- <div class="setting-control setting-control-full">- <div class="effective-tools">- <template v-if="effectiveTools.length === 0">- <div class="effective-tools-empty">- {{ $t('agentEditor.tools.effectiveEmpty') }}- </div>- </template>- <template v-else>- <span v-for="item in effectiveTools" :key="item.value"- :class="['effective-chip', { 'effective-chip--inactive': !item.active }]"- :title="item.reason || ''">- <span class="effective-chip-label">{{ item.label }}</span>- <span v-if="!item.active" class="effective-chip-reason">{{ item.reason }}</span>- </span>- </template>- </div>- </div>- </div>- </div>+ <div class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agentEditor.questionSuggestions.displayRules') }}</label>+ </div>+ <div class="setting-control setting-control-full">+ <div class="suggestion-checkboxes">+ <t-checkbox v-model="formData.config.question_suggestions.follow_ups.suppress_on_fallback">{{ $t('agentEditor.questionSuggestions.suppressFallback') }}</t-checkbox>+ <t-checkbox v-model="formData.config.question_suggestions.follow_ups.suppress_when_answer_asks_question">{{ $t('agentEditor.questionSuggestions.suppressQuestion') }}</t-checkbox>+ <t-checkbox v-model="formData.config.question_suggestions.follow_ups.knowledge_fallback">{{ $t('agentEditor.questionSuggestions.knowledgeFallback') }}</t-checkbox>+ <t-checkbox v-model="formData.config.question_suggestions.follow_ups.allow_regenerate">{{ $t('agentEditor.questionSuggestions.allowRegenerate') }}</t-checkbox></div>+ </div>+ </div>+ </template>+ </div>+ </div>- <!-- MCP 服务配置(仅 Agent 模式) -->- <div v-show="currentSection === 'mcp' && isAgentMode" class="section">- <div class="section-header">- <h2>{{ $t('agentEditor.mcp.label') }}</h2>- <p class="section-description">{{ $t('agentEditor.mcp.desc') }}</p>- </div>-- <div class="settings-group">- <!-- MCP 服务选择 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.mcp.label') }}</label>- <p class="desc">{{ $t('agentEditor.mcp.desc') }}</p>- </div>- <div class="setting-control">- <t-radio-group v-model="mcpSelectionMode">- <t-radio-button value="all">{{ $t('agentEditor.selection.all') }}</t-radio-button>- <t-radio-button value="selected">{{ $t('agentEditor.selection.selected') }}</t-radio-button>- <t-radio-button value="none">{{ $t('agentEditor.selection.disabled') }}</t-radio-button>- </t-radio-group>- </div>- </div>+ <!-- 工具配置(仅 Agent 模式) -->+ <div v-show="currentSection === 'tools' && isAgentMode" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.toolsConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.toolsConfigDesc') }}</p>+ </div>- <!-- 选择指定 MCP 服务 -->- <div v-if="mcpSelectionMode === 'selected' && showMcpServiceSelect" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.mcp.selectLabel') }}</label>- <p class="desc">{{ $t('agentEditor.mcp.selectDesc') }}</p>- </div>- <div class="setting-control">- <t-select v-model="formData.config.mcp_services" multiple- :placeholder="$t('agentEditor.mcp.selectPlaceholder')" filterable>- <t-option v-for="mcp in mcpOptions" :key="mcp.value" :value="mcp.value" :label="mcp.label"- :disabled="mcp.disabled" />- </t-select>- </div>- </div>+ <!-- 合并面板:能力状态 + 预设切换 -->+ <div class="tools-overview">+ <div class="tools-overview-row">+ <div class="tools-status-chip">+ <t-icon name="folder" />+ <template v-if="kbSelectionMode === 'none'">+ <span>{{ $t('agentEditor.tools.statusNoKb') }}</span>+ </template>+ <template v-else>+ <span class="tools-status-metric">+ <strong>{{ ragKbCount }}</strong> {{ $t('agentEditor.tools.kbMetricRag') }}+ </span>+ <span class="tools-status-sep">·</span>+ <span class="tools-status-metric">+ <strong>{{ wikiKbCount }}</strong> {{ $t('agentEditor.tools.kbMetricWiki') }}+ </span>+ </template>+ </div>+ <div v-if="inactiveToolCount > 0" class="tools-status-chip tools-status-chip--warn">+ <t-icon name="error-circle" />+ <span>{{ $t('agentEditor.tools.statusInactive', { count: inactiveToolCount }) }}</span>+ </div>+ </div>+ </div>- <!-- 授权等待超时:对话中触发 OAuth 授权时的等待秒数 -->- <div v-if="mcpSelectionMode !== 'none'" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.mcp.authWaitTimeout') }}</label>- <p class="desc">{{ $t('agentEditor.mcp.authWaitTimeoutDesc') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.mcp_auth_wait_timeout" :min="5" :max="3600"- theme="column" :placeholder="$t('agentEditor.mcp.authWaitTimeoutPlaceholder')" />+ <div class="settings-group">+ <!-- 允许的工具(按组渲染,统一网格) -->+ <div+ class="setting-row setting-row-vertical"+ data-agent-field="allowed_tools"+ :class="{ 'setting-row--field-highlight': highlightedField === 'allowed_tools' }"+ >+ <div class="setting-info">+ <label>{{ $t('agent.editor.allowedTools') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.selectTools') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <t-checkbox-group v-model="formData.config.allowed_tools" class="tool-groups">+ <section v-for="group in groupedAvailableTools" :key="group.key"+ :class="['tool-group', `tool-group--${group.key}`]">+ <header class="tool-group-header">+ <span class="tool-group-bar" />+ <span class="tool-group-title">{{ group.label }}</span>+ <span class="tool-group-count">{{ group.tools.length }}</span>+ <span v-if="group.key === 'wiki_edit'" class="tool-group-warning">+ <t-icon name="error-circle" />+ {{ $t('agentEditor.tools.writeWarning') }}+ </span>+ </header>+ <div class="tool-grid">+ <t-checkbox v-for="tool in group.tools" :key="tool.value" :value="tool.value"+ :disabled="tool.disabled"+ :class="['tool-card', { 'tool-card--disabled': tool.disabled, 'tool-card--danger': tool.danger }]">+ <div class="tool-card-body">+ <div class="tool-card-head">+ <span class="tool-card-name">{{ tool.label }}</span>+ <span v-if="tool.danger" class="tool-card-badge">+ {{ $t('agentEditor.tools.dangerTag') }}+ </span>+ </div>+ <span v-if="tool.description" class="tool-card-desc">{{ tool.description }}</span>+ <span v-if="tool.disabled && tool.disabledReason" class="tool-card-hint">+ {{ tool.disabledReason }}+ </span></div>- </div>+ </t-checkbox></div>- </div>+ </section>+ </t-checkbox-group>+ </div>+ </div>- <!-- 技能:脚本跑在所选沙箱里,可用列表也来自这份配置 -->- <div v-show="currentSection === 'skills' && isAgentMode" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.skillsConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.skillsConfigDesc') }}</p>+ <!-- 有效工具预览:所见即所得 -->+ <div class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('agentEditor.tools.effectiveLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.tools.effectiveDesc') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <div class="effective-tools">+ <template v-if="effectiveTools.length === 0">+ <div class="effective-tools-empty">+ {{ $t('agentEditor.tools.effectiveEmpty') }}</div>+ </template>+ <template v-else>+ <span v-for="item in effectiveTools" :key="item.value"+ :class="['effective-chip', { 'effective-chip--inactive': !item.active }]"+ :title="item.reason || ''">+ <span class="effective-chip-label">{{ item.label }}</span>+ <span v-if="!item.active" class="effective-chip-reason">{{ item.reason }}</span>+ </span>+ </template>+ </div>+ </div>+ </div>+ </div>+ </div>- <div class="settings-group">- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.sandboxBackend') }}</label>- <p class="desc">{{ $t('agent.editor.sandboxBackendHint') }}</p>- </div>- <div class="setting-control sandbox-select-control">- <t-select- v-model="formData.config.sandbox_config_id"- :placeholder="$t('agent.editor.sandboxBackendDefault')"- class="sandbox-config-select"- filterable- :popup-props="{ overlayClassName: 'sandbox-config-select-popup' }"- >- <t-option value="" :label="$t('agent.editor.sandboxBackendDefault')" />- <t-option- v-for="cfg in sandboxConfigOptions"- :key="cfg.id"- :value="cfg.id"- :label="cfg.name"- >- <div class="sandbox-option">- <div class="sandbox-option__row">- <span class="sandbox-option__name">{{ cfg.name }}</span>- <span v-if="cfg.sandbox_type" class="sandbox-option__type">{{ backendLabel(cfg.sandbox_type) }}</span>- </div>- <div v-if="sandboxTargetLine(cfg)" class="sandbox-option__target">{{ sandboxTargetLine(cfg) }}</div>- </div>- </t-option>- </t-select>- <p v-if="selectedSandboxSummary" class="sandbox-selected-meta">{{ selectedSandboxSummary }}</p>- <div class="sandbox-select-links">- <a href="javascript:void(0)" class="go-settings-link"- @click.prevent="uiStore.openSettings('sandbox')">- {{ $t('agent.editor.goSandboxSettings') }}- </a>- <template v-if="hasSandboxSelected && canInstallSkills">- <span class="sandbox-select-links__sep" aria-hidden="true">·</span>- <a- href="javascript:void(0)"- class="go-settings-link"- @click.prevent="openSkillSettings"- >- {{ $t('agent.editor.goSkillSettings') }}- </a>- </template>- </div>- <p v-if="sandboxConfigOptions.length === 0" class="desc empty-hint">- {{ $t('agent.editor.sandboxNoConfigs') }}- </p>- </div>- </div>+ <!-- MCP 服务配置(仅 Agent 模式) -->+ <div v-show="currentSection === 'mcp' && isAgentMode" class="section">+ <div class="section-header">+ <h2>{{ $t('agentEditor.mcp.label') }}</h2>+ <p class="section-description">{{ $t('agentEditor.mcp.desc') }}</p>+ </div>- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.skillsSelection') }}</label>- <p class="desc">{{ skillsSelectionHint }}</p>- </div>- <div class="setting-control sandbox-select-control">- <t-radio-group v-model="skillsSelectionMode">- <t-radio-button value="all" :disabled="!canEnableSkills">{{ $t('agent.editor.skillsAll') }}</t-radio-button>- <t-radio-button value="selected" :disabled="!canEnableSkills">{{ $t('agent.editor.skillsSelected') }}</t-radio-button>- <t-radio-button value="none">{{ $t('agent.editor.skillsNone') }}</t-radio-button>- </t-radio-group>- <p v-if="!hasSandboxSelected && sandboxConfigOptions.length > 1" class="desc empty-hint">- {{ $t('agent.editor.skillsNeedSandbox') }}- </p>- <p v-else-if="hasSandboxSelected && skillCatalog.length === 0" class="desc empty-hint">- <span>{{ $t('agent.editor.noSkillsAvailable') }}</span>- <a- v-if="canInstallSkills"- href="javascript:void(0)"- class="go-settings-link"- @click.prevent="openSkillSettings"- >- {{ $t('agent.editor.goSkillSettings') }}- </a>- </p>- </div>- </div>+ <div class="settings-group">+ <!-- MCP 服务选择 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.mcp.label') }}</label>+ <p class="desc">{{ $t('agentEditor.mcp.desc') }}</p>+ </div>+ <div class="setting-control">+ <t-radio-group v-model="mcpSelectionMode">+ <t-radio-button value="all">{{ $t('agentEditor.selection.all') }}</t-radio-button>+ <t-radio-button value="selected">{{ $t('agentEditor.selection.selected') }}</t-radio-button>+ <t-radio-button value="none">{{ $t('agentEditor.selection.disabled') }}</t-radio-button>+ </t-radio-group>+ </div>+ </div>- <div v-if="showCatalogSkillList" class="setting-row setting-row-vertical">- <div class="setting-control setting-control-full">- <t-checkbox-group- v-model="formData.config.selected_skills"- class="skill-pick-list"- >- <section- v-for="group in catalogSkillGroups"- :key="group.key"- class="skill-pick-group"- :class="`skill-pick-group--${group.key}`"- >- <header class="skill-pick-group__header">- <span class="skill-pick-group__bar" />- <span class="skill-pick-group__title">{{ group.label }}</span>- <span class="skill-pick-group__count">{{ group.skills.length }}</span>- </header>- <article- v-for="skill in group.skills"- :key="skill.name"- class="skill-pick"- :class="{- 'skill-pick--ready': skill.selectable,- 'skill-pick--pending': !skill.selectable,- 'skill-pick--busy': isSkillBusy(skill),- }"- >- <t-checkbox- v-if="skillsSelectionMode === 'selected'"- :value="skill.name"- :disabled="!skill.selectable"- class="skill-pick__check"- />- <div class="skill-pick__badge" aria-hidden="true">- <t-icon :name="SKILL_ICON" size="16px" />- </div>- <div class="skill-pick__body">- <div class="skill-pick__title-row">- <span class="skill-name" :title="skill.name">{{ skill.name }}</span>- <span- v-if="!skill.selectable"- class="skill-pick__hint"- :class="{ 'skill-pick__hint--busy': isSkillBusy(skill) }"- >- <t-icon :name="skillStatusIcon(skill)" size="14px" />- {{ skillStatusHint(skill) }}- </span>- </div>- <p- v-if="skill.description"- class="skill-desc"- :title="skill.description"- >{{ skill.description }}</p>- </div>- <t-button- v-if="canInstallSkillRow(skill)"- size="small"- variant="text"- theme="primary"- :loading="installingCatalogId === skill.id"- :title="$t('agent.editor.installToThisSandbox')"- @click.stop="installCatalogToCurrent(skill)"- >- {{ $t('agent.editor.installShort') }}- </t-button>- <t-button- v-else-if="isSkillBusy(skill)"- size="small"- variant="text"- theme="primary"- :title="$t('agent.editor.viewInstallProgress')"- @click.stop="openSkillInstallProgress(skill)"- >- {{ $t('agent.editor.viewInstallProgress') }}- </t-button>- </article>- </section>- </t-checkbox-group>- </div>- </div>- </div>- </div>+ <!-- 选择指定 MCP 服务 -->+ <div v-if="mcpSelectionMode === 'selected' && showMcpServiceSelect" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.mcp.selectLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.mcp.selectDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.mcp_services" multiple+ :placeholder="$t('agentEditor.mcp.selectPlaceholder')" filterable>+ <t-option v-for="mcp in mcpOptions" :key="mcp.value" :value="mcp.value" :label="mcp.label"+ :disabled="mcp.disabled" />+ </t-select>+ </div>+ </div>- <!-- 知识库配置 -->- <div v-show="currentSection === 'knowledge'" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.knowledgeConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.knowledgeConfigDesc') }}</p>- </div>+ <!-- 授权等待超时:对话中触发 OAuth 授权时的等待秒数 -->+ <div v-if="mcpSelectionMode !== 'none'" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.mcp.authWaitTimeout') }}</label>+ <p class="desc">{{ $t('agentEditor.mcp.authWaitTimeoutDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.mcp_auth_wait_timeout" :min="5" :max="3600"+ theme="column" :placeholder="$t('agentEditor.mcp.authWaitTimeoutPlaceholder')" />+ </div>+ </div>+ </div>+ </div>- <div class="settings-group">- <!-- 关联知识库 -->- <div class="setting-row" data-guide="agent-create-knowledge">- <div class="setting-info">- <label>{{ $t('agent.editor.knowledgeBases') }}</label>- <p class="desc">{{ $t('agentEditor.desc.kbScope') }}</p>- </div>- <div class="setting-control">- <t-radio-group v-model="kbSelectionMode">- <t-radio-button value="all">{{ $t('agent.editor.allKnowledgeBases') }}</t-radio-button>- <t-radio-button value="selected">{{ $t('agent.editor.selectedKnowledgeBases')- }}</t-radio-button>- <t-radio-button value="none">{{ $t('agent.editor.noKnowledgeBase') }}</t-radio-button>- </t-radio-group>- </div>- </div>+ <!-- 技能:脚本跑在所选沙箱里,可用列表也来自这份配置 -->+ <div v-show="currentSection === 'skills' && isAgentMode" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.skillsConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.skillsConfigDesc') }}</p>+ </div>- <!-- 选择指定知识库(仅在选择"指定知识库"时显示) -->- <div v-if="kbSelectionMode === 'selected'" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.selectKnowledgeBases') }}</label>- <p class="desc">{{ $t('agent.editor.selectKnowledgeBasesDesc') }}</p>- </div>- <div class="setting-control">- <t-select v-model="formData.config.knowledge_bases" multiple- :placeholder="$t('agent.editor.selectKnowledgeBases')" filterable :min-collapsed-num="3">- <t-option-group v-if="filteredMyKbOptions.length"- :label="$t('agent.editor.myKnowledgeBases')">- <t-option v-for="kb in filteredMyKbOptions" :key="kb.value" :value="kb.value"- :label="kb.label" :disabled="kb.disabled">- <div class="kb-option-item" :title="kb.disabled ? kb.disabledReason : ''">- <span class="kb-option-icon" :class="kb.type === 'faq' ? 'faq-icon' : 'doc-icon'">- <t-icon :name="kb.type === 'faq' ? 'chat-bubble-help' : 'folder'" />- </span>- <span class="kb-option-label">{{ kb.label }}</span>- <span v-if="kb.ragEnabled" class="kb-option-tag tag-rag">RAG</span>- <span v-if="kb.wikiEnabled" class="kb-option-tag tag-wiki">Wiki</span>- <span class="kb-option-count">{{ kb.count || 0 }}</span>- <span v-if="kb.disabled" class="kb-option-disabled-hint">{{ kb.disabledReason }}</span>- </div>- </t-option>- </t-option-group>- <t-option-group v-if="filteredSharedKbOptions.length"- :label="$t('agent.editor.sharedKnowledgeBases')">- <t-option v-for="kb in filteredSharedKbOptions" :key="kb.value" :value="kb.value"- :label="kb.label" :disabled="kb.disabled">- <div class="kb-option-item" :title="kb.disabled ? kb.disabledReason : ''">- <span class="kb-option-icon" :class="kb.type === 'faq' ? 'faq-icon' : 'doc-icon'">- <t-icon :name="kb.type === 'faq' ? 'chat-bubble-help' : 'folder'" />- </span>- <span class="kb-option-label">{{ kb.label }}</span>- <span v-if="kb.ragEnabled" class="kb-option-tag tag-rag">RAG</span>- <span v-if="kb.wikiEnabled" class="kb-option-tag tag-wiki">Wiki</span>- <span v-if="kb.orgName" class="kb-option-org">{{ kb.orgName }}</span>- <span class="kb-option-count">{{ kb.count || 0 }}</span>- <span v-if="kb.disabled" class="kb-option-disabled-hint">{{ kb.disabledReason }}</span>- </div>- </t-option>- </t-option-group>- </t-select>- </div>+ <div class="settings-group">+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.sandboxBackend') }}</label>+ <p class="desc">{{ $t('agent.editor.sandboxBackendHint') }}</p>+ </div>+ <div class="setting-control sandbox-select-control">+ <t-select+ v-model="formData.config.sandbox_config_id"+ :placeholder="$t('agent.editor.sandboxBackendDefault')"+ class="sandbox-config-select"+ filterable+ :popup-props="{ overlayClassName: 'sandbox-config-select-popup' }"+ >+ <t-option value="" :label="$t('agent.editor.sandboxBackendDefault')" />+ <t-option+ v-for="cfg in sandboxConfigOptions"+ :key="cfg.id"+ :value="cfg.id"+ :label="cfg.name"+ >+ <div class="sandbox-option">+ <div class="sandbox-option__row">+ <span class="sandbox-option__name">{{ cfg.name }}</span>+ <span v-if="cfg.sandbox_type" class="sandbox-option__type">{{ backendLabel(cfg.sandbox_type) }}</span></div>+ <div v-if="sandboxTargetLine(cfg)" class="sandbox-option__target">{{ sandboxTargetLine(cfg) }}</div>+ </div>+ </t-option>+ </t-select>+ <p v-if="selectedSandboxSummary" class="sandbox-selected-meta">{{ selectedSandboxSummary }}</p>+ <div class="sandbox-select-links">+ <a href="javascript:void(0)" class="go-settings-link"+ @click.prevent="uiStore.openSettings('sandbox')">+ {{ $t('agent.editor.goSandboxSettings') }}+ </a>+ <template v-if="hasSandboxSelected && canInstallSkills">+ <span class="sandbox-select-links__sep" aria-hidden="true">·</span>+ <a+ href="javascript:void(0)"+ class="go-settings-link"+ @click.prevent="openSkillSettings"+ >+ {{ $t('agent.editor.goSkillSettings') }}+ </a>+ </template>+ </div>+ <p v-if="sandboxConfigOptions.length === 0" class="desc empty-hint">+ {{ $t('agent.editor.sandboxNoConfigs') }}+ </p>+ </div>+ </div>- <!-- 支持的文件类型(限制用户可选择的文件类型) -->- <div v-if="hasKnowledgeBase" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.fileTypes.label') }}</label>- <p class="desc">{{ $t('agentEditor.fileTypes.desc') }}</p>- </div>- <div class="setting-control">- <t-select v-model="formData.config.supported_file_types" multiple- :placeholder="$t('agentEditor.fileTypes.allTypes')" :min-collapsed-num="3" clearable>- <t-option v-for="ft in availableFileTypes" :key="ft.value" :value="ft.value"- :label="ft.label" />- </t-select>- </div>- </div>+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.skillsSelection') }}</label>+ <p class="desc">{{ skillsSelectionHint }}</p>+ </div>+ <div class="setting-control sandbox-select-control">+ <t-radio-group v-model="skillsSelectionMode">+ <t-radio-button value="all" :disabled="!canEnableSkills">{{ $t('agent.editor.skillsAll') }}</t-radio-button>+ <t-radio-button value="selected" :disabled="!canEnableSkills">{{ $t('agent.editor.skillsSelected') }}</t-radio-button>+ <t-radio-button value="none">{{ $t('agent.editor.skillsNone') }}</t-radio-button>+ </t-radio-group>+ <p v-if="!hasSandboxSelected && sandboxConfigOptions.length > 1" class="desc empty-hint">+ {{ $t('agent.editor.skillsNeedSandbox') }}+ </p>+ <p v-else-if="hasSandboxSelected && skillCatalog.length === 0" class="desc empty-hint">+ <span>{{ $t('agent.editor.noSkillsAvailable') }}</span>+ <a+ v-if="canInstallSkills"+ href="javascript:void(0)"+ class="go-settings-link"+ @click.prevent="openSkillSettings"+ >+ {{ $t('agent.editor.goSkillSettings') }}+ </a>+ </p>+ </div>+ </div>- <!-- 仅在提及时检索知识库(当配置了知识库时显示) -->- <div v-if="hasKnowledgeBase" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.retrieveKBOnlyWhenMentioned') }}</label>- <p class="desc">{{ $t('agent.editor.retrieveKBOnlyWhenMentionedDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.retrieve_kb_only_when_mentioned" />+ <div v-if="showCatalogSkillList" class="setting-row setting-row-vertical">+ <div class="setting-control setting-control-full">+ <t-checkbox-group+ v-model="formData.config.selected_skills"+ class="skill-pick-list"+ >+ <section+ v-for="group in catalogSkillGroups"+ :key="group.key"+ class="skill-pick-group"+ :class="`skill-pick-group--${group.key}`"+ >+ <header class="skill-pick-group__header">+ <span class="skill-pick-group__bar" />+ <span class="skill-pick-group__title">{{ group.label }}</span>+ <span class="skill-pick-group__count">{{ group.skills.length }}</span>+ </header>+ <article+ v-for="skill in group.skills"+ :key="skill.name"+ class="skill-pick"+ :class="{+ 'skill-pick--ready': skill.selectable,+ 'skill-pick--pending': !skill.selectable,+ 'skill-pick--busy': isSkillBusy(skill),+ }"+ >+ <t-checkbox+ v-if="skillsSelectionMode === 'selected'"+ :value="skill.name"+ :disabled="!skill.selectable"+ class="skill-pick__check"+ />+ <div class="skill-pick__badge" aria-hidden="true">+ <t-icon :name="SKILL_ICON" size="16px" />+ </div>+ <div class="skill-pick__body">+ <div class="skill-pick__title-row">+ <span class="skill-name" :title="skill.name">{{ skill.name }}</span>+ <span+ v-if="!skill.selectable"+ class="skill-pick__hint"+ :class="{ 'skill-pick__hint--busy': isSkillBusy(skill) }"+ >+ <t-icon :name="skillStatusIcon(skill)" size="14px" />+ {{ skillStatusHint(skill) }}+ </span></div>+ <p+ v-if="skill.description"+ class="skill-desc"+ :title="skill.description"+ >{{ skill.description }}</p></div>+ <t-button+ v-if="canInstallSkillRow(skill)"+ size="small"+ variant="text"+ theme="primary"+ :loading="installingCatalogId === skill.id"+ :title="$t('agent.editor.installToThisSandbox')"+ @click.stop="installCatalogToCurrent(skill)"+ >+ {{ $t('agent.editor.installShort') }}+ </t-button>+ <t-button+ v-else-if="isSkillBusy(skill)"+ size="small"+ variant="text"+ theme="primary"+ :title="$t('agent.editor.viewInstallProgress')"+ @click.stop="openSkillInstallProgress(skill)"+ >+ {{ $t('agent.editor.viewInstallProgress') }}+ </t-button>+ </article>+ </section>+ </t-checkbox-group>+ </div>+ </div>+ </div>+ </div>- </div>- </div>+ <!-- 知识库配置 -->+ <div v-show="currentSection === 'knowledge'" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.knowledgeConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.knowledgeConfigDesc') }}</p>+ </div>- <!-- 网络搜索配置 -->- <div v-show="currentSection === 'websearch'" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.webSearchConfig') }}</h2>- <p class="section-description">{{ $t('agent.editor.webSearchConfigDesc') }}</p>- </div>+ <div class="settings-group">+ <!-- 关联知识库 -->+ <div class="setting-row" data-guide="agent-create-knowledge">+ <div class="setting-info">+ <label>{{ $t('agent.editor.knowledgeBases') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.kbScope') }}</p>+ </div>+ <div class="setting-control">+ <t-radio-group v-model="kbSelectionMode">+ <t-radio-button value="all">{{ $t('agent.editor.allKnowledgeBases') }}</t-radio-button>+ <t-radio-button value="selected">{{ $t('agent.editor.selectedKnowledgeBases')+ }}</t-radio-button>+ <t-radio-button value="none">{{ $t('agent.editor.noKnowledgeBase') }}</t-radio-button>+ </t-radio-group>+ </div>+ </div>- <div class="settings-group">- <!-- 网络搜索 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.webSearch') }}</label>- <p class="desc">{{ $t('agentEditor.desc.webSearch') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.web_search_enabled" />- </div>+ <!-- 选择指定知识库(仅在选择"指定知识库"时显示) -->+ <div v-if="kbSelectionMode === 'selected'" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.selectKnowledgeBases') }}</label>+ <p class="desc">{{ $t('agent.editor.selectKnowledgeBasesDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.knowledge_bases" multiple+ :placeholder="$t('agent.editor.selectKnowledgeBases')" filterable :min-collapsed-num="3">+ <t-option-group v-if="filteredMyKbOptions.length"+ :label="$t('agent.editor.myKnowledgeBases')">+ <t-option v-for="kb in filteredMyKbOptions" :key="kb.value" :value="kb.value"+ :label="kb.label" :disabled="kb.disabled">+ <div class="kb-option-item" :title="kb.disabled ? kb.disabledReason : ''">+ <span class="kb-option-icon" :class="kb.type === 'faq' ? 'faq-icon' : 'doc-icon'">+ <t-icon :name="kb.type === 'faq' ? 'chat-bubble-help' : 'folder'" />+ </span>+ <span class="kb-option-label">{{ kb.label }}</span>+ <span v-if="kb.ragEnabled" class="kb-option-tag tag-rag">RAG</span>+ <span v-if="kb.wikiEnabled" class="kb-option-tag tag-wiki">Wiki</span>+ <span class="kb-option-count">{{ kb.count || 0 }}</span>+ <span v-if="kb.disabled" class="kb-option-disabled-hint">{{ kb.disabledReason }}</span></div>-- <!-- 网络搜索最大结果数 -->- <div v-if="formData.config.web_search_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.webSearchProvider') }}</label>- <p class="desc">{{ $t('agentEditor.desc.webSearchProvider') }}</p>- </div>- <div class="setting-control">- <t-select v-model="formData.config.web_search_provider_id" clearable- :placeholder="$t('agent.editor.webSearchProviderPlaceholder')" style="width: 240px;">- <t-option v-for="p in webSearchProviderList" :key="p.id" :value="p.id" :label="p.name">- <span>{{ p.name }}</span>- <t-tag v-if="p.is_default" theme="primary" size="small" style="margin-left: 6px;">{{- $t('common.default')- }}</t-tag>- </t-option>- </t-select>- </div>+ </t-option>+ </t-option-group>+ <t-option-group v-if="filteredSharedKbOptions.length"+ :label="$t('agent.editor.sharedKnowledgeBases')">+ <t-option v-for="kb in filteredSharedKbOptions" :key="kb.value" :value="kb.value"+ :label="kb.label" :disabled="kb.disabled">+ <div class="kb-option-item" :title="kb.disabled ? kb.disabledReason : ''">+ <span class="kb-option-icon" :class="kb.type === 'faq' ? 'faq-icon' : 'doc-icon'">+ <t-icon :name="kb.type === 'faq' ? 'chat-bubble-help' : 'folder'" />+ </span>+ <span class="kb-option-label">{{ kb.label }}</span>+ <span v-if="kb.ragEnabled" class="kb-option-tag tag-rag">RAG</span>+ <span v-if="kb.wikiEnabled" class="kb-option-tag tag-wiki">Wiki</span>+ <span v-if="kb.orgName" class="kb-option-org">{{ kb.orgName }}</span>+ <span class="kb-option-count">{{ kb.count || 0 }}</span>+ <span v-if="kb.disabled" class="kb-option-disabled-hint">{{ kb.disabledReason }}</span></div>+ </t-option>+ </t-option-group>+ </t-select>+ </div>+ </div>- <!-- 网络搜索最大结果数 -->- <div v-if="formData.config.web_search_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.webSearchMaxResults') }}</label>- <p class="desc">{{ $t('agentEditor.desc.webSearchMaxResults') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.web_search_max_results" :min="1" :max="10" />- <span class="slider-value">{{ formData.config.web_search_max_results }}</span>- </div>- </div>- </div>+ <!-- 支持的文件类型(限制用户可选择的文件类型) -->+ <div v-if="hasKnowledgeBase" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.fileTypes.label') }}</label>+ <p class="desc">{{ $t('agentEditor.fileTypes.desc') }}</p>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.supported_file_types" multiple+ :placeholder="$t('agentEditor.fileTypes.allTypes')" :min-collapsed-num="3" clearable>+ <t-option v-for="ft in availableFileTypes" :key="ft.value" :value="ft.value"+ :label="ft.label" />+ </t-select>+ </div>+ </div>- <!-- 自动抓取页面内容 -->- <div v-if="formData.config.web_search_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.webFetchEnabled') }}</label>- <p class="desc">{{ $t('agentEditor.desc.webFetchEnabled') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.web_fetch_enabled" />- </div>- </div>+ <!-- 仅在提及时检索知识库(当配置了知识库时显示) -->+ <div v-if="hasKnowledgeBase" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.retrieveKBOnlyWhenMentioned') }}</label>+ <p class="desc">{{ $t('agent.editor.retrieveKBOnlyWhenMentionedDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.retrieve_kb_only_when_mentioned" />+ </div>+ </div>- <!-- 抓取页面数 -->- <div v-if="formData.config.web_search_enabled && formData.config.web_fetch_enabled"- class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.webFetchTopN') }}</label>- <p class="desc">{{ $t('agentEditor.desc.webFetchTopN') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.web_fetch_top_n" :min="1" :max="10" />- <span class="slider-value">{{ formData.config.web_fetch_top_n }}</span>- </div>- </div>- </div>- </div>- </div>+ </div>+ </div>- <!-- 检索策略(仅在有知识库能力时显示) -->- <div v-show="currentSection === 'retrieval' && hasKnowledgeBase" class="section">- <div class="section-header">- <h2>{{ $t('agent.editor.retrievalStrategy') }}</h2>- <p class="section-description">{{ $t('agentEditor.desc.retrievalSection') }}</p>- </div>+ <!-- 网络搜索配置 -->+ <div v-show="currentSection === 'websearch'" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.webSearchConfig') }}</h2>+ <p class="section-description">{{ $t('agent.editor.webSearchConfigDesc') }}</p>+ </div>- <div class="settings-group">- <!-- 查询扩展(仅普通模式) -->- <div v-if="!isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.enableQueryExpansion') }}</label>- <p class="desc">{{ $t('agentEditor.desc.queryExpansion') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.enable_query_expansion" />- </div>- </div>+ <div class="settings-group">+ <!-- 网络搜索 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.webSearch') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.webSearch') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.web_search_enabled" />+ </div>+ </div>++ <!-- 网络搜索最大结果数 -->+ <div v-if="formData.config.web_search_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.webSearchProvider') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.webSearchProvider') }}</p>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.config.web_search_provider_id" clearable+ :placeholder="$t('agent.editor.webSearchProviderPlaceholder')" style="width: 240px;">+ <t-option v-for="p in webSearchProviderList" :key="p.id" :value="p.id" :label="p.name">+ <span>{{ p.name }}</span>+ <t-tag v-if="p.is_default" theme="primary" size="small" style="margin-left: 6px;">{{+ $t('common.default')+ }}</t-tag>+ </t-option>+ </t-select>+ </div>+ </div>++ <!-- 网络搜索最大结果数 -->+ <div v-if="formData.config.web_search_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.webSearchMaxResults') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.webSearchMaxResults') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.web_search_max_results" :min="1" :max="10" />+ <span class="slider-value">{{ formData.config.web_search_max_results }}</span>+ </div>+ </div>+ </div>- <!-- 向量召回TopK -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.embeddingTopK') }}</label>- <p class="desc">{{ $t('agentEditor.desc.embeddingTopK') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.embedding_top_k" :min="1" :max="50" theme="column" />- </div>- </div>+ <!-- 自动抓取页面内容 -->+ <div v-if="formData.config.web_search_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.webFetchEnabled') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.webFetchEnabled') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.web_fetch_enabled" />+ </div>+ </div>- <!-- 关键词阈值 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.keywordThreshold') }}</label>- <p class="desc">{{ $t('agentEditor.desc.keywordThreshold') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.keyword_threshold" :min="0" :max="1" :step="0.01" />- <span class="slider-value">{{ formData.config.keyword_threshold?.toFixed(2) }}</span>- </div>- </div>- </div>+ <!-- 抓取页面数 -->+ <div v-if="formData.config.web_search_enabled && formData.config.web_fetch_enabled"+ class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.webFetchTopN') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.webFetchTopN') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.web_fetch_top_n" :min="1" :max="10" />+ <span class="slider-value">{{ formData.config.web_fetch_top_n }}</span>+ </div>+ </div>+ </div>+ </div>+ </div>- <!-- 向量阈值 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.vectorThreshold') }}</label>- <p class="desc">{{ $t('agentEditor.desc.vectorThreshold') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.vector_threshold" :min="0" :max="1" :step="0.01" />- <span class="slider-value">{{ formData.config.vector_threshold?.toFixed(2) }}</span>- </div>- </div>- </div>+ <!-- 检索策略(仅在有知识库能力时显示) -->+ <div v-show="currentSection === 'retrieval' && hasKnowledgeBase" class="section">+ <div class="section-header">+ <h2>{{ $t('agent.editor.retrievalStrategy') }}</h2>+ <p class="section-description">{{ $t('agentEditor.desc.retrievalSection') }}</p>+ </div>- <!-- 重排TopK(仅在配置了 Rerank 模型时展示) -->- <div v-if="formData.config.rerank_model_id" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.rerankTopK') }}</label>- <p class="desc">{{ $t('agentEditor.desc.rerankTopK') }}</p>- </div>- <div class="setting-control">- <t-input-number v-model="formData.config.rerank_top_k" :min="1" :max="20" theme="column" />- </div>- </div>+ <div class="settings-group">+ <!-- 查询扩展(仅普通模式) -->+ <div v-if="!isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.enableQueryExpansion') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.queryExpansion') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.enable_query_expansion" />+ </div>+ </div>- <!-- 重排阈值(仅在配置了 Rerank 模型时展示) -->- <div v-if="formData.config.rerank_model_id" class="setting-row">- <div class="setting-info">- <label>{{ $t('agent.editor.rerankThreshold') }}</label>- <p class="desc">{{ $t('agentEditor.desc.rerankThreshold') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.rerank_threshold" :min="-10" :max="10" :step="0.01" />- <span class="slider-value">{{ formData.config.rerank_threshold?.toFixed(1) }}</span>- </div>- </div>- </div>+ <!-- 向量召回TopK -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.embeddingTopK') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.embeddingTopK') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.embedding_top_k" :min="1" :max="50" theme="column" />+ </div>+ </div>- <!-- FAQ 优先策略(关联 FAQ 类型知识库时显示) -->- <div v-if="hasFaqKnowledgeBase" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.faq.enableLabel') }}</label>- <p class="desc">{{ $t('agentEditor.faq.enableDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.faq_priority_enabled" />- </div>- </div>+ <!-- 关键词阈值 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.keywordThreshold') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.keywordThreshold') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.keyword_threshold" :min="0" :max="1" :step="0.01" />+ <span class="slider-value">{{ formData.config.keyword_threshold?.toFixed(2) }}</span>+ </div>+ </div>+ </div>- <div v-if="hasFaqKnowledgeBase && formData.config.faq_priority_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.faq.thresholdLabel') }}</label>- <p class="desc">{{ $t('agentEditor.faq.thresholdDesc') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.faq_direct_answer_threshold" :min="0.7" :max="1"- :step="0.05" />- <span class="slider-value">{{ formData.config.faq_direct_answer_threshold?.toFixed(2)- }}</span>- </div>- </div>- </div>+ <!-- 向量阈值 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.vectorThreshold') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.vectorThreshold') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.vector_threshold" :min="0" :max="1" :step="0.01" />+ <span class="slider-value">{{ formData.config.vector_threshold?.toFixed(2) }}</span>+ </div>+ </div>+ </div>- <div v-if="hasFaqKnowledgeBase && formData.config.faq_priority_enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.faq.boostLabel') }}</label>- <p class="desc">{{ $t('agentEditor.faq.boostDesc') }}</p>- </div>- <div class="setting-control">- <div class="slider-wrapper">- <t-slider v-model="formData.config.faq_score_boost" :min="1" :max="2" :step="0.1" />- <span class="slider-value">{{ formData.config.faq_score_boost?.toFixed(1) }}x</span>- </div>- </div>- </div>+ <!-- 重排TopK(仅在配置了 Rerank 模型时展示) -->+ <div v-if="formData.config.rerank_model_id" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.rerankTopK') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.rerankTopK') }}</p>+ </div>+ <div class="setting-control">+ <t-input-number v-model="formData.config.rerank_top_k" :min="1" :max="20" theme="column" />+ </div>+ </div>- <!-- 表格数据分析(仅普通模式,命中 CSV/Excel 时会多一次 LLM 调用生成 SQL) -->- <div v-if="!isAgentMode" class="setting-row">- <div class="setting-info">- <label>{{ $t('agentEditor.dataAnalysis.enableLabel') }}</label>- <p class="desc">{{ $t('agentEditor.dataAnalysis.enableDesc') }}</p>- </div>- <div class="setting-control">- <t-switch v-model="formData.config.data_analysis_enabled" />- </div>- </div>- </div>- </div>+ <!-- 重排阈值(仅在配置了 Rerank 模型时展示) -->+ <div v-if="formData.config.rerank_model_id" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agent.editor.rerankThreshold') }}</label>+ <p class="desc">{{ $t('agentEditor.desc.rerankThreshold') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.rerank_threshold" :min="-10" :max="10" :step="0.01" />+ <span class="slider-value">{{ formData.config.rerank_threshold?.toFixed(1) }}</span>+ </div>+ </div>+ </div>- <!-- 共享管理(仅编辑模式且非内置智能体) -->- <div v-if="editorMode === 'edit' && editorAgent?.id && !editorAgent?.is_builtin"- v-show="currentSection === 'share'" class="section">- <AgentShareSettings :agent-id="editorAgent.id" :agent="editorAgent" />- </div>+ <!-- FAQ 优先策略(关联 FAQ 类型知识库时显示) -->+ <div v-if="hasFaqKnowledgeBase" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.faq.enableLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.faq.enableDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.faq_priority_enabled" />+ </div>+ </div>++ <div v-if="hasFaqKnowledgeBase && formData.config.faq_priority_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.faq.thresholdLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.faq.thresholdDesc') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.faq_direct_answer_threshold" :min="0.7" :max="1"+ :step="0.05" />+ <span class="slider-value">{{ formData.config.faq_direct_answer_threshold?.toFixed(2)+ }}</span></div>+ </div>+ </div>- <!-- 底部操作栏 -->- <div class="settings-footer">- <p v-if="isPostCreateSession" class="settings-footer-note">- <t-icon name="check-circle-filled" class="settings-footer-note__icon" />- <span>- <strong>{{ $t('agent.editor.postCreateHint.title') }}</strong>- {{ $t('agent.editor.postCreateHint.footer') }}- </span>- </p>- <div class="settings-footer-actions">- <t-button variant="outline" @click="handleClose">{{ props.readOnly ? $t('common.close') :- $t('common.cancel')- }}</t-button>- <t-button v-if="!props.readOnly" theme="primary" data-guide="agent-create-submit" :loading="saving"- :disabled="editorInitializing"- @click="handleSave">{{- saveButtonLabel- }}</t-button>- </div>+ <div v-if="hasFaqKnowledgeBase && formData.config.faq_priority_enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.faq.boostLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.faq.boostDesc') }}</p>+ </div>+ <div class="setting-control">+ <div class="slider-wrapper">+ <t-slider v-model="formData.config.faq_score_boost" :min="1" :max="2" :step="0.1" />+ <span class="slider-value">{{ formData.config.faq_score_boost?.toFixed(1) }}x</span></div></div></div>++ <!-- 表格数据分析(仅普通模式,命中 CSV/Excel 时会多一次 LLM 调用生成 SQL) -->+ <div v-if="!isAgentMode" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('agentEditor.dataAnalysis.enableLabel') }}</label>+ <p class="desc">{{ $t('agentEditor.dataAnalysis.enableDesc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch v-model="formData.config.data_analysis_enabled" />+ </div>+ </div></div></div>- </Transition>- </Teleport>++ <!-- 共享管理(仅编辑模式且非内置智能体) -->+ <div v-if="editorMode === 'edit' && editorAgent?.id && !editorAgent?.is_builtin"+ v-show="currentSection === 'share'" class="section">+ <AgentShareSettings :agent-id="editorAgent.id" :agent="editorAgent" />+ </div>+ </div>++ <template #footer-note>+ <p v-if="isPostCreateSession" class="settings-footer-note">+ <t-icon name="check-circle-filled" class="settings-footer-note__icon" />+ <span>+ <strong>{{ $t('agent.editor.postCreateHint.title') }}</strong>+ {{ $t('agent.editor.postCreateHint.footer') }}+ </span>+ </p>+ </template>+ <template #footer>+ <t-button variant="outline" @click="modalShell.requestClose">+ {{ props.readOnly ? $t('common.close') : $t('common.cancel') }}+ </t-button>+ <t-button v-if="!props.readOnly" theme="primary" data-guide="agent-create-submit" :loading="saving"+ :disabled="editorInitializing" @click="handleSave">+ {{ saveButtonLabel }}+ </t-button>+ </template>+ </SettingsModalShell><SettingDrawerv-model:visible="showSkillProgress"@@ -1837,6 +1795,8 @@ import { selectInitialModelId } from '@/utils/modelDefaults';import { hydrateAgentPromptRefs, serializeAgentPrompts } from '@/utils/agentPromptTemplates';import { copyWithToast } from '@/utils/clipboard';import { MessagePlugin } from 'tdesign-vue-next';+import { useModalShell } from '@/composables/useModalShell'+import SettingsModalShell from '@/components/SettingsModalShell.vue'import {createAgent,updateAgent,@@ -2658,9 +2618,9 @@ const rewriteUserTextareaRef = ref<any>(null);const fallbackPromptTextareaRef = ref<any>(null);const navItems = computed(() => {- const items: { key: string; icon: string; label: string }[] = [+ const items: { key: string; icon: string; label: string; badge?: number }[] = [{ key: 'basic', icon: 'info-circle', label: t('agent.editor.basicInfo') },- { key: 'prompts', icon: 'file-paste', label: t('agent.editor.promptsConfig') },+ { key: 'prompts', icon: 'file-paste', label: t('agent.editor.promptsConfig'), badge: promptNavItems.value.length > 1 ? promptNavItems.value.length : undefined },{ key: 'model', icon: 'control-platform', label: t('agent.editor.modelConfig') },{ key: 'suggestions', icon: 'help-circle', label: t('agentEditor.questionSuggestions.navLabel') },];@@ -3550,6 +3510,7 @@ watch(() => props.visible, async (val) => {} finally {if (generation === editorInitializationGeneration && props.visible) {editorInitializing.value = false;+ modalShell.markClean();}}} else {@@ -3938,6 +3899,19 @@ const handleClose = () => {emit('update:visible', false);};+const modalShell = useModalShell({+ visible: () => props.visible,+ close: handleClose,+ snapshot: () => formData.value,+ ignoreEscape: () =>+ showPlaceholderPopup.value ||+ showContextPlaceholderPopup.value ||+ intentPromptPopup.value.show ||+ rewriteSystemPopup.value.show ||+ rewriteUserPopup.value.show ||+ fallbackPromptPopup.value.show,+});+// 过滤后的占位符列表const filteredPlaceholders = computed(() => {if (!placeholderPrefix.value) {@@ -4762,10 +4736,6 @@ const handleSave = async () => {}}----// 校验占位符(普通模式 + 开启多轮对话改写)if (!isAgentMode.value && formData.value.config.multi_turn_enabled && formData.value.config.enable_rewrite) {const rewritePrompt = formData.value.config.rewrite_prompt_user || '';@@ -4828,6 +4798,7 @@ const handleSave = async () => {}savedAgent.value = created;formData.value.id = created.id;+ modalShell.markClean();markContextualGuideDone('agentCreate')currentSection.value = 'basic';void loadAgentIntegrationCounts(created.id);@@ -4849,172 +4820,7 @@ const handleSave = async () => {<style scoped lang="less">// 复用创建知识库的样式-.settings-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- z-index: 1000;- backdrop-filter: blur(4px);-}--.settings-modal {- position: relative;- width: 90vw;- max-width: 1100px;- height: 85vh;- max-height: 750px;- background: var(--td-bg-color-container);- border-radius: 12px;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);- display: flex;- flex-direction: column;- overflow: hidden;-}--.editor-initializing {- position: absolute;- inset: 0;- z-index: 20;- display: flex;- align-items: center;- justify-content: center;- background: var(--td-bg-color-container);-}--.close-btn {- position: absolute;- top: 16px;- right: 16px;- width: 32px;- height: 32px;- border: none;- background: transparent;- border-radius: 6px;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- color: var(--td-text-color-secondary);- transition: all 0.2s ease;- z-index: 10;-- &:hover {- background: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-}--.settings-container {- display: flex;- height: 100%;- width: 100%;- overflow: hidden;-}-/* 左侧导航:与「头像-设置」弹窗对齐 */-.settings-sidebar {- width: 208px;- background-color: var(--td-bg-color-settings-modal);- border-right: 1px solid var(--td-component-stroke);- flex-shrink: 0;- display: flex;- flex-direction: column;- overflow: hidden;-}--.sidebar-header {- padding: 16px 14px 12px;- border-bottom: 1px solid var(--td-component-stroke);- flex-shrink: 0;-}--.sidebar-title {- margin: 0;- font-size: 16px;- font-weight: 600;- color: var(--td-text-color-primary);-}--.settings-nav {- flex: 1;- padding: 8px 8px 12px;- overflow-y: auto;- min-height: 0;-}--.nav-group-title {- padding: 6px 14px 2px;- color: var(--td-text-color-placeholder);- font-size: 12px;- font-weight: 600;- letter-spacing: 0.02em;-- .settings-nav > &:first-child {- padding-top: 2px;- }-- .settings-nav > &:not(:first-child) {- padding-top: 8px;- }-}--.nav-item {- display: flex;- align-items: center;- padding: 6px 12px;- margin-bottom: 2px;- border-radius: 6px;- cursor: pointer;- transition: all 0.2s ease;- font-size: 14px;- color: var(--td-text-color-primary);- user-select: none;-- &:hover {- background-color: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-- &.active {- background-color: var(--td-bg-color-secondarycontainer);- color: var(--td-brand-color);- font-weight: 500;- }-}--.nav-icon {- margin-right: 9px;- font-size: 16px;- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- color: inherit;-}--.nav-label {- flex: 1;-}--.nav-badge {- flex-shrink: 0;- margin-left: 2px;- padding: 0 6px;- border-radius: 8px;- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-secondary);- font-size: 11px;- line-height: 16px;- font-weight: 500;- text-align: center;-}-.section--prompts {flex: 1;min-height: 0;@@ -5065,7 +4871,7 @@ const handleSave = async () => {}.section-description {- font-size: 13px;+ font-size: var(--app-text-md);}}@@ -5082,14 +4888,14 @@ const handleSave = async () => {gap: 5px;padding: 5px 12px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;color: var(--td-text-color-secondary);cursor: pointer;- transition: color 0.15s ease, background 0.15s ease;+ transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover,&:focus-visible {@@ -5114,16 +4920,6 @@ const handleSave = async () => {}}-.settings-content {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;- background-color: var(--td-bg-color-container);- min-width: 0;- min-height: 0;-}-.content-wrapper {flex: 1;overflow-y: auto;@@ -5172,14 +4968,14 @@ const handleSave = async () => {}h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -5206,7 +5002,7 @@ const handleSave = async () => {label {display: block;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -5214,7 +5010,7 @@ const handleSave = async () => {.desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -5258,7 +5054,7 @@ const handleSave = async () => {bottom: 18px;width: 3px;border-radius: 2px;- background: var(--td-brand-color, #0052d9);+ background: var(--td-brand-color);}.setting-info label {@@ -5267,7 +5063,7 @@ const handleSave = async () => {}&.setting-row--field-highlight {- border-radius: 6px;+ border-radius: var(--app-radius-sm);animation: agent-field-flash 0.8s ease-in-out 3;}}@@ -5280,7 +5076,7 @@ const handleSave = async () => {}50% {- background-color: var(--td-warning-color-light, #fff7e8);+ background-color: var(--td-warning-color-light);box-shadow: inset 0 0 0 1px rgba(237, 123, 47, 0.35);}}@@ -5308,7 +5104,7 @@ const handleSave = async () => {}label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -5321,13 +5117,13 @@ const handleSave = async () => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;.hint {- color: var(--td-warning-color, var(--td-text-color-placeholder));+ color: var(--td-warning-color);}}}@@ -5394,7 +5190,7 @@ const handleSave = async () => {justify-content: flex-end;&__stat {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);&.integration-inline__link {@@ -5416,7 +5212,7 @@ const handleSave = async () => {&__sep {color: var(--td-component-stroke);- font-size: 12px;+ font-size: var(--app-text-sm);}&__link {@@ -5427,7 +5223,7 @@ const handleSave = async () => {padding: 0;border: none;background: transparent;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1;color: var(--td-brand-color);cursor: pointer;@@ -5451,7 +5247,7 @@ const handleSave = async () => {}.go-settings-link {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-brand-color);margin-top: 0;text-decoration: none;@@ -5472,7 +5268,7 @@ const handleSave = async () => {.sandbox-select-links__sep {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}.sandbox-select-control {@@ -5510,7 +5306,7 @@ const handleSave = async () => {.sandbox-option__type {flex-shrink: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);}.sandbox-option__target {@@ -5518,14 +5314,14 @@ const handleSave = async () => {text-overflow: ellipsis;white-space: nowrap;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;}.sandbox-selected-meta {margin: 6px 0 0;max-width: 280px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);word-break: break-word;@@ -5551,7 +5347,7 @@ const handleSave = async () => {padding: 6px 8px 6px 12px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);.agent-id-value {flex: 1;@@ -5561,7 +5357,7 @@ const handleSave = async () => {background: none;border: none;font-family: var(--app-font-family-mono);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);overflow: hidden;@@ -5579,68 +5375,11 @@ const handleSave = async () => {}}-.settings-footer {- padding: 12px 40px;- border-top: 1px solid var(--td-component-stroke);- display: flex;- align-items: center;- justify-content: flex-end;- gap: 16px;- flex-shrink: 0;- background-color: var(--td-bg-color-container);-}--.settings-footer-note {- margin: 0;- margin-right: auto;- flex: 1;- min-width: 0;- display: flex;- align-items: flex-start;- gap: 6px;- font-size: 13px;- line-height: 20px;- color: var(--td-text-color-secondary);-- strong {- margin-right: 4px;- color: var(--td-text-color-primary);- font-weight: 500;- }-- &__icon {- flex-shrink: 0;- margin-top: 2px;- font-size: 14px;- color: var(--td-success-color);- }-}--.settings-footer-actions {- display: flex;- gap: 12px;- flex-shrink: 0;-}-/* 滚动条:与设置弹窗一致 */-.settings-nav::-webkit-scrollbar,.content-wrapper::-webkit-scrollbar {width: 6px;}-.settings-nav::-webkit-scrollbar-track {- background: var(--td-bg-color-secondarycontainer);-}--.settings-nav::-webkit-scrollbar-thumb {- background: var(--td-gray-color-5);- border-radius: 3px;-}--.settings-nav::-webkit-scrollbar-thumb:hover {- background: var(--td-gray-color-6);-}-.content-wrapper::-webkit-scrollbar-track {background: var(--td-bg-color-container);}@@ -5660,28 +5399,14 @@ const handleSave = async () => {align-items: center;padding: 10px 14px;background: var(--td-success-color-light);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px solid var(--td-success-color-focus);color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;}// 过渡动画-.modal-enter-active,-.modal-leave-active {- transition: all 0.3s ease;-}--.modal-enter-from,-.modal-leave-to {- opacity: 0;-- .settings-modal {- transform: scale(0.95);- }-}-// Slider 样式.slider-wrapper {display: flex;@@ -5698,14 +5423,14 @@ const handleSave = async () => {width: 40px;text-align: right;font-family: var(--app-font-family-mono);- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);}.max-tokens-value {font-family: var(--app-font-family-mono);font-variant-numeric: tabular-nums;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -5732,7 +5457,7 @@ const handleSave = async () => {margin-bottom: 4px;:deep(.t-tabs__nav-item) {- font-size: 14px;+ font-size: var(--app-text-base);}:deep(.t-tabs__operations) {@@ -5751,7 +5476,7 @@ const handleSave = async () => {gap: 12px;padding: 4px 0 2px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;&::before,@@ -5782,9 +5507,9 @@ const handleSave = async () => {height: 20px;display: inline-flex;align-items: center;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);- font-size: 12px;+ font-size: var(--app-text-sm);font-variant-numeric: tabular-nums;color: var(--td-text-color-secondary);}@@ -5804,7 +5529,7 @@ const handleSave = async () => {margin-bottom: 12px;padding: 12px 14px;background: var(--td-bg-color-secondarycontainer);- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);}@@ -5826,15 +5551,15 @@ const handleSave = async () => {align-items: center;gap: 6px;padding: 4px 10px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);background: var(--td-bg-color-container);- border-radius: 999px;+ border-radius: var(--app-radius-pill);border: 1px solid var(--td-component-stroke);.t-icon {color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.tools-status-metric {@@ -5843,7 +5568,7 @@ const handleSave = async () => {gap: 4px;strong {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -5855,8 +5580,8 @@ const handleSave = async () => {&--warn {color: var(--td-warning-color);- background: var(--td-warning-color-1, rgba(237, 118, 20, 0.08));- border-color: var(--td-warning-color-light, #fcd7b6);+ background: var(--td-warning-color-1);+ border-color: var(--td-warning-color-light);.t-icon {color: var(--td-warning-color);@@ -5893,7 +5618,7 @@ const handleSave = async () => {}.tool-group-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);letter-spacing: 0.2px;@@ -5902,10 +5627,10 @@ const handleSave = async () => {.tool-group-count {min-width: 20px;padding: 0 6px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);- border-radius: 999px;+ border-radius: var(--app-radius-pill);text-align: center;line-height: 18px;}@@ -5916,21 +5641,21 @@ const handleSave = async () => {align-items: center;gap: 4px;padding: 2px 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-warning-color);- background: var(--td-warning-color-1, rgba(237, 118, 20, 0.08));- border: 1px solid var(--td-warning-color-light, #fcd7b6);- border-radius: 999px;+ background: var(--td-warning-color-1);+ border: 1px solid var(--td-warning-color-light);+ border-radius: var(--app-radius-pill);.t-icon {- font-size: 13px;+ font-size: var(--app-text-md);}}}// 不同分组的左侧色条.tool-group--base .tool-group-bar {- background: var(--td-gray-color-6, #a0a7ab);+ background: var(--td-gray-color-6);}.tool-group--rag .tool-group-bar {@@ -5938,11 +5663,11 @@ const handleSave = async () => {}.tool-group--wiki_read .tool-group-bar {- background: var(--td-success-color, #2ba471);+ background: var(--td-success-color);}.tool-group--wiki_edit .tool-group-bar {- background: var(--td-warning-color, #ed7b2f);+ background: var(--td-warning-color);}.tool-group--wiki_issue .tool-group-bar {@@ -5970,15 +5695,15 @@ const handleSave = async () => {margin: 0; // 清掉 TDesign checkbox 默认外边距padding: 12px 14px;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px solid var(--td-component-stroke);- transition: border-color .2s, background .2s;+ transition: border-color var(--app-motion-base), background var(--app-motion-base);cursor: pointer;overflow: hidden;&:hover:not(.tool-card--disabled) {border-color: var(--td-brand-color);- background: var(--td-brand-color-1, rgba(7, 192, 95, 0.06));+ background: var(--td-brand-color-1);}// checkbox 的勾选框 + label 改造@@ -5995,7 +5720,7 @@ const handleSave = async () => {&.t-is-checked {border-color: var(--td-brand-color);- background: var(--td-brand-color-1, rgba(7, 192, 95, 0.08));+ background: var(--td-brand-color-1);}&--disabled {@@ -6004,16 +5729,16 @@ const handleSave = async () => {}&--danger {- border-color: var(--td-warning-color-light, #fcd7b6);+ border-color: var(--td-warning-color-light);&:hover:not(.tool-card--disabled) {border-color: var(--td-warning-color);- background: var(--td-warning-color-1, rgba(237, 118, 20, 0.06));+ background: var(--td-warning-color-1);}&.t-is-checked {border-color: var(--td-warning-color);- background: var(--td-warning-color-1, rgba(237, 118, 20, 0.08));+ background: var(--td-warning-color-1);}}}@@ -6051,13 +5776,13 @@ const handleSave = async () => {padding: 3px 6px;color: var(--td-warning-color);background: transparent;- border: 1px solid var(--td-warning-color-light, #fcd7b6);- border-radius: 4px;+ border: 1px solid var(--td-warning-color-light);+ border-radius: var(--app-radius-xs);letter-spacing: 0.3px;}.tool-card-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;display: -webkit-box;@@ -6067,7 +5792,7 @@ const handleSave = async () => {}.tool-card-hint {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-warning-color);font-style: italic;line-height: 1.4;@@ -6088,7 +5813,7 @@ const handleSave = async () => {gap: 6px;padding: 12px;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px dashed var(--td-component-stroke);min-height: 52px;align-items: flex-start;@@ -6099,12 +5824,12 @@ const handleSave = async () => {align-items: center;gap: 4px;padding: 3px 10px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-brand-color);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);border: 1px solid color-mix(in srgb, var(--td-brand-color) 22%, transparent);- border-radius: 999px;+ border-radius: var(--app-radius-pill);max-width: 100%;}@@ -6113,7 +5838,7 @@ const handleSave = async () => {}.effective-chip-reason {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-warning-color);font-style: normal;@@ -6135,7 +5860,7 @@ const handleSave = async () => {}.effective-tools-empty {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-style: italic;}@@ -6173,7 +5898,7 @@ const handleSave = async () => {}.skill-pick-group__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);letter-spacing: 0.2px;@@ -6182,10 +5907,10 @@ const handleSave = async () => {.skill-pick-group__count {min-width: 20px;padding: 0 6px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);- border-radius: 999px;+ border-radius: var(--app-radius-pill);text-align: center;line-height: 18px;}@@ -6198,7 +5923,7 @@ const handleSave = async () => {padding: 8px 10px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.skill-pick--pending {@@ -6248,7 +5973,7 @@ const handleSave = async () => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}@@ -6258,7 +5983,7 @@ const handleSave = async () => {align-items: center;gap: 4px;flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);.t-icon {@@ -6270,15 +5995,10 @@ const handleSave = async () => {color: var(--td-brand-color);.t-icon {- animation: skill-pick-spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}}-@keyframes skill-pick-spin {- from { transform: rotate(0deg); }- to { transform: rotate(360deg); }-}-.skill-desc {display: -webkit-box;-webkit-box-orient: vertical;@@ -6286,7 +6006,7 @@ const handleSave = async () => {line-clamp: 2;margin: 2px 0 0;overflow: hidden;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.45;white-space: pre-line;@@ -6299,7 +6019,7 @@ const handleSave = async () => {justify-content: center;padding: 2px;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: help;@@ -6322,14 +6042,14 @@ const handleSave = async () => {.hint-popover__title {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.hint-popover__text {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}@@ -6343,7 +6063,6 @@ const handleSave = async () => {}}-// textarea 与模板选择器容器.textarea-with-template {position: relative;@@ -6364,14 +6083,14 @@ const handleSave = async () => {}.intent-toggle-group :deep(.intent-toggle-btn--active) {- background-color: rgba(7, 192, 95, 0.1);+ background-color: color-mix(in srgb, var(--td-brand-color) 10%, transparent);border-color: var(--td-brand-color);color: var(--td-brand-color);font-weight: 500;&:hover,&:focus-visible {- background-color: rgba(7, 192, 95, 0.14);+ background-color: color-mix(in srgb, var(--td-brand-color) 14%, transparent);border-color: var(--td-brand-color);color: var(--td-brand-color);}@@ -6398,7 +6117,7 @@ const handleSave = async () => {.intent-active-desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 1.5;}@@ -6407,7 +6126,7 @@ const handleSave = async () => {.system-prompt-textarea {width: 100%;font-family: var(--app-font-family-mono);- font-size: 13px;+ font-size: var(--app-text-md);:deep(textarea) {resize: vertical !important;@@ -6421,7 +6140,7 @@ const handleSave = async () => {display: flex;align-items: center;gap: 5px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;overflow-x: auto;white-space: nowrap;@@ -6440,13 +6159,13 @@ const handleSave = async () => {}.placeholder-label {- color: var(--td-text-color-secondary, #666);+ color: var(--td-text-color-secondary);flex-shrink: 0;}.placeholder-hint {- color: var(--td-text-color-placeholder, #999);- font-size: 11px;+ color: var(--td-text-color-placeholder);+ font-size: var(--app-text-xs);user-select: none;flex-shrink: 0;}@@ -6457,23 +6176,23 @@ const handleSave = async () => {padding: 1px 5px;border-radius: 3px;font-family: var(--app-font-family-mono);- font-size: 11px;- color: var(--td-text-color-primary, #333);- background-color: var(--td-bg-color-secondarycontainer, #f3f3f3);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-primary);+ background-color: var(--td-bg-color-secondarycontainer);cursor: pointer;- transition: all 0.2s;+ transition: all var(--app-motion-base);user-select: none;border: 1px solid transparent;flex-shrink: 0;&:hover {- color: var(--td-brand-color, #0052d9);- background-color: var(--td-brand-color-light, #ecf2fe);- border-color: var(--td-brand-color-focus, #d0e0fd);+ color: var(--td-brand-color);+ background-color: var(--td-brand-color-light);+ border-color: var(--td-brand-color-focus);}&:active {- background-color: var(--td-brand-color-focus, #d0e0fd);+ background-color: var(--td-brand-color-focus);}}}@@ -6485,9 +6204,9 @@ const handleSave = async () => {}.placeholder-popup {- background: var(--td-bg-color-container, #fff);- border: 1px solid var(--td-component-stroke, #e5e7eb);- border-radius: 6px;+ background: var(--td-bg-color-container);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);max-width: 320px;max-height: 240px;@@ -6498,30 +6217,30 @@ const handleSave = async () => {.placeholder-item {padding: 6px 10px;cursor: pointer;- transition: background-color 0.15s;- border-radius: 4px;+ transition: background-color var(--app-motion-fast);+ border-radius: var(--app-radius-xs);&:hover,&.active {- background-color: var(--td-bg-color-container-hover, #f5f7fa);+ background-color: var(--td-bg-color-container-hover);}.placeholder-name {margin-bottom: 2px;code {- background: var(--td-bg-color-container-hover, #f5f7fa);+ background: var(--td-bg-color-container-hover);padding: 2px 5px;border-radius: 3px;font-family: var(--app-font-family-mono);- font-size: 11px;- color: var(--td-brand-color, #0052d9);+ font-size: var(--app-text-xs);+ color: var(--td-brand-color);}}.placeholder-desc {- font-size: 11px;- color: var(--td-text-color-secondary, #666);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);}}@@ -6529,10 +6248,10 @@ const handleSave = async () => {display: inline-flex;align-items: center;color: var(--td-text-color-placeholder);- font-size: 18px;+ font-size: var(--app-text-2xl);line-height: 1;cursor: help;- transition: color 0.2s;+ transition: color var(--app-motion-base);&:hover,&:focus-visible {@@ -6553,11 +6272,11 @@ const handleSave = async () => {justify-content: center;width: 48px;height: 48px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);flex-shrink: 0;&.normal {- background: linear-gradient(135deg, rgba(7, 192, 95, 0.15) 0%, rgba(7, 192, 95, 0.08) 100%);+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 15%, transparent) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);color: var(--td-brand-color-active);}@@ -6575,7 +6294,7 @@ const handleSave = async () => {margin-top: 12px;.prompt-toggle-label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}}@@ -6583,11 +6302,11 @@ const handleSave = async () => {// 提示词禁用提示.prompt-disabled-hint {color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);font-style: italic;padding: 12px 16px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);}// 系统提示词Tabs@@ -6616,8 +6335,8 @@ const handleSave = async () => {flex-shrink: 0;width: 24px;height: 24px;- border-radius: 6px;- font-size: 14px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-base);// Document KB&.doc-icon {@@ -6637,17 +6356,17 @@ const handleSave = async () => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}.kb-option-org {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);background: var(--td-bg-color-secondarycontainer);padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);max-width: 100px;overflow: hidden;text-overflow: ellipsis;@@ -6656,11 +6375,11 @@ const handleSave = async () => {.kb-option-disabled-hint {flex-shrink: 0;- font-size: 11px;- color: var(--td-warning-color-6, #d46b08);- background: var(--td-warning-color-1, #fff7e6);+ font-size: var(--app-text-xs);+ color: var(--td-warning-color-6);+ background: var(--td-warning-color-1);padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);max-width: 240px;overflow: hidden;text-overflow: ellipsis;@@ -6670,7 +6389,7 @@ const handleSave = async () => {.agent-type-preset-desc {margin-top: 4px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}@@ -6682,16 +6401,16 @@ const handleSave = async () => {.kb-option-count {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);background: var(--td-bg-color-secondarycontainer);padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.kb-option-tag {flex-shrink: 0;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 500;padding: 0 5px;border-radius: 3px;@@ -6740,14 +6459,14 @@ const handleSave = async () => {}.agent-type-option-label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;}.agent-type-option-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.4;white-space: normal;diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vueindex 9d5fe3cef..0391d282e 100644--- a/frontend/src/views/agent/AgentList.vue+++ b/frontend/src/views/agent/AgentList.vue@@ -42,7 +42,7 @@<!-- 骨架屏占位 --><div v-if="loading && agents.length === 0" class="agent-card-wrap">- <div v-for="n in 6" :key="'skel-' + n" class="agent-card agent-card-skeleton">+ <div v-for="n in 6" :key="'skel-' + n" class="agent-card agent-card-skeleton is-skeleton"><div class="card-header"><div class="card-header-left"><t-skeleton animation="gradient"@@ -637,11 +637,9 @@</div><!-- 空状态:全部(保留创建 CTA) -->- <div v-if="spaceSelection === 'all' && filteredAgents.length === 0 && !loading" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('agent.empty.title') }}</span>- <span class="empty-desc">{{ $t('agent.empty.description') }}</span>- <t-button v-if="authStore.hasRole('contributor')" class="agent-create-btn empty-state-btn"+ <EmptyState v-if="spaceSelection === 'all' && filteredAgents.length === 0 && !loading" icon="chat-bubble-1" :title="$t('agent.empty.title')"+ :description="$t('agent.empty.description')">+ <t-button v-if="authStore.hasRole('contributor')" theme="primary" class="agent-create-btn"data-guide="agent-list-create" @click="handleCreateAgent"><template #icon><span class="btn-icon-wrapper">@@ -664,25 +662,17 @@</template><span>{{ $t('agent.createAgent') }}</span></t-button>- </div>+ </EmptyState><!-- 空状态:收藏 / 最近 — 不放创建按钮,参见 KnowledgeBaseList 的同处理由 -->- <div v-if="spaceSelection === 'favorites' && filteredAgents.length === 0 && !loading" class="empty-state">- <t-icon name="star" size="48px" class="empty-icon" />- <span class="empty-txt">{{ $t('agent.empty.favoritesTitle') }}</span>- <span class="empty-desc">{{ $t('agent.empty.favoritesDescription') }}</span>- </div>- <div v-if="spaceSelection === 'recents' && filteredAgents.length === 0 && !loading" class="empty-state">- <t-icon name="history" size="48px" class="empty-icon" />- <span class="empty-txt">{{ $t('agent.empty.recentsTitle') }}</span>- <span class="empty-desc">{{ $t('agent.empty.recentsDescription') }}</span>- </div>+ <EmptyState v-if="spaceSelection === 'favorites' && filteredAgents.length === 0 && !loading" icon="star" :title="$t('agent.empty.favoritesTitle')"+ :description="$t('agent.empty.favoritesDescription')" />+ <EmptyState v-if="spaceSelection === 'recents' && filteredAgents.length === 0 && !loading" icon="history" :title="$t('agent.empty.recentsTitle')"+ :description="$t('agent.empty.recentsDescription')" /><!-- 空状态:我的 -->- <div v-if="spaceSelection === 'mine' && agents.length === 0 && !loading" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('agent.empty.title') }}</span>- <span class="empty-desc">{{ $t('agent.empty.description') }}</span>- <t-button v-if="authStore.hasRole('contributor')" class="agent-create-btn empty-state-btn"+ <EmptyState v-if="spaceSelection === 'mine' && agents.length === 0 && !loading" icon="chat-bubble-1" :title="$t('agent.empty.title')"+ :description="$t('agent.empty.description')">+ <t-button v-if="authStore.hasRole('contributor')" theme="primary" class="agent-create-btn"@click="handleCreateAgent"><template #icon><span class="btn-icon-wrapper">@@ -705,34 +695,13 @@</template><span>{{ $t('agent.createAgent') }}</span></t-button>- </div>+ </EmptyState><!-- 空状态:空间下 -->- <div v-if="spaceSelectionOrgId && !spaceAgentsLoading && spaceAgentsList.length === 0" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('agent.empty.sharedTitle') }}</span>- <span class="empty-desc">{{ $t('agent.empty.sharedDescription') }}</span>- </div>+ <EmptyState v-if="spaceSelectionOrgId && !spaceAgentsLoading && spaceAgentsList.length === 0" icon="chat-bubble-1" :title="$t('agent.empty.sharedTitle')"+ :description="$t('agent.empty.sharedDescription')" /></div></div>- <!-- 删除确认对话框 -->- <t-dialog v-model:visible="deleteVisible" dialogClassName="del-agent-dialog" :closeBtn="false" :cancelBtn="null"- :confirmBtn="null">- <div class="circle-wrap">- <div class="dialog-header">- <img class="circle-img" src="@/assets/img/circle.png" alt="">- <span class="circle-title">{{ $t('agent.delete.confirmTitle') }}</span>- </div>- <span class="del-circle-txt">- {{ $t('agent.delete.confirmMessage', { name: deletingAgent?.name ?? '' }) }}- </span>- <div class="circle-btn">- <span class="circle-btn-txt" @click="deleteVisible = false">{{ $t('common.cancel') }}</span>- <span class="circle-btn-txt confirm" @click="confirmDelete">{{ $t('agent.delete.confirmButton') }}</span>- </div>- </div>- </t-dialog>-<!-- 共享智能体详情侧边栏 --><Transition name="shared-detail-drawer"><div v-if="sharedDetailVisible && currentSharedAgent" class="shared-detail-drawer-overlay"@@ -815,6 +784,8 @@import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'import { useRoute, useRouter } from 'vue-router'import { MessagePlugin, Icon as TIcon } from 'tdesign-vue-next'+import EmptyState from '@/components/EmptyState.vue'+import { useConfirmDelete } from '@/components/settings/useConfirmDelete'import { deleteAgent, copyAgent, type CustomAgent } from '@/api/agent'import { useChatResourcesStore } from '@/stores/chatResources'import { formatStringDate } from '@/utils/index'@@ -1054,8 +1025,7 @@ const sortedSpaceAgentsList = computed(() => {})})const loading = ref(false)-const deleteVisible = ref(false)-const deletingAgent = ref<AgentWithUI | null>(null)+const confirmDelete = useConfirmDelete()const sharedDetailVisible = ref(false)const currentSharedAgent = ref<SharedAgentInfo | null>(null)const sharedAgentUsesKb = computed(() => {@@ -1487,8 +1457,23 @@ const spaceAgentSectionCounts = computed<Record<AgentSectionKey, number>>(() =>const handleDelete = (agent: AgentWithUI) => {openMoreAgentId.value = null- deletingAgent.value = agent- deleteVisible.value = true+ confirmDelete({+ title: t('agent.delete.confirmTitle'),+ body: t('agent.delete.confirmMessage', { name: agent.name }),+ onConfirm: async () => {+ try {+ const res: any = await deleteAgent(agent.id)+ if (res.success) {+ MessagePlugin.success(t('agent.messages.deleted'))+ fetchList(true)+ } else {+ MessagePlugin.error(res.message || t('agent.messages.deleteFailed'))+ }+ } catch (e: any) {+ MessagePlugin.error(e?.message || t('agent.messages.deleteFailed'))+ }+ },+ })}const handleCopy = (agent: AgentWithUI) => {@@ -1554,23 +1539,6 @@ const handleToggleSharedDisabledFromShared = (shared: SharedAgentInfo) => {})}-const confirmDelete = () => {- if (!deletingAgent.value) return-- deleteAgent(deletingAgent.value.id).then((res: any) => {- if (res.success) {- MessagePlugin.success(t('agent.messages.deleted'))- deleteVisible.value = false- deletingAgent.value = null- fetchList(true)- } else {- MessagePlugin.error(res.message || t('agent.messages.deleteFailed'))- }- }).catch((e: any) => {- MessagePlugin.error(e?.message || t('agent.messages.deleteFailed'))- })-}-const handleEditorSuccess = (agent?: CustomAgent) => {if (agent) {editingAgent.value = agent@@ -1610,6 +1578,8 @@ defineExpose({</script><style scoped lang="less">+@import (reference) '@/components/css/resource-card.less';+.agent-list-container {margin: 0;height: 100%;@@ -1653,9 +1623,9 @@ defineExpose({display: inline-flex;align-items: center;padding: 2px 6px;- background: rgba(7, 192, 95, 0.1);- border-radius: 4px;- font-size: 12px;+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);color: var(--td-brand-color);margin-left: 6px;}@@ -1683,108 +1653,40 @@ defineExpose({margin: 0;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 32px;}}-:deep(.agent-create-btn) {- --ripple-color: rgba(118, 75, 162, 0.3) !important;- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;- border: none !important;- color: var(--td-text-color-anti) !important;- position: relative;- overflow: hidden;-- &:hover,- &:active,- &:focus,- &.t-is-active,- &[data-state="active"] {- background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;- border: none !important;- color: var(--td-text-color-anti) !important;- }-- --td-button-primary-bg-color: #667eea !important;- --td-button-primary-border-color: #667eea !important;- --td-button-primary-active-bg-color: #5a6fd6 !important;- --td-button-primary-active-border-color: #5a6fd6 !important;-- .btn-icon-wrapper {- display: inline-flex;- align-items: center;- justify-content: center;- }-- .sparkles-icon {- animation: twinkle 2s ease-in-out infinite;- }-- &::before {- content: '';- position: absolute;- top: -50%;- left: -50%;- width: 200%;- height: 200%;- background: linear-gradient(45deg,- transparent 30%,- rgba(255, 255, 255, 0.1) 50%,- transparent 70%);- transform: translateX(-100%);- transition: transform 0.6s ease;- z-index: 0;- }-- &:hover::before {- transform: translateX(100%);- }-}--@keyframes twinkle {-- 0%,- 100% {- opacity: 1;- transform: scale(1);- }-- 50% {- opacity: 0.8;- transform: scale(0.95);- }-}-.header-subtitle {margin: 0;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;}.header-action-btn {- padding: 0 !important;- min-width: 28px !important;- width: 28px !important;- height: 28px !important;- display: inline-flex !important;- align-items: center !important;- justify-content: center !important;- background: var(--td-bg-color-secondarycontainer) !important;- border: 1px solid var(--td-component-stroke) !important;- border-radius: 6px !important;+ padding: 0;+ min-width: 28px;+ width: 28px;+ height: 28px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ background: var(--td-bg-color-secondarycontainer);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);cursor: pointer;box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-bg-color-container) 72%, transparent);- transition: background 0.2s, border-color 0.2s, color 0.2s;+ transition: background var(--app-motion-base), border-color var(--app-motion-base), color var(--app-motion-base);&:hover {- background: var(--td-bg-color-secondarycontainer) !important;- border-color: var(--td-component-stroke) !important;+ background: var(--td-bg-color-secondarycontainer);+ border-color: var(--td-component-stroke);color: var(--td-text-color-primary);}@@ -1817,9 +1719,9 @@ defineExpose({cursor: pointer;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;- transition: color 0.2s;+ transition: color var(--app-motion-base);&:hover {color: var(--td-text-color-primary);@@ -1843,7 +1745,7 @@ defineExpose({align-items: center;gap: 4px;padding: 2px 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container-hover);flex-shrink: 0;}@@ -1857,7 +1759,7 @@ defineExpose({.org-source-text {color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;flex-shrink: 0;}@@ -1867,11 +1769,11 @@ defineExpose({align-items: center;gap: 3px;padding: 2px 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container-hover);color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;flex-shrink: 0;}@@ -1899,7 +1801,7 @@ defineExpose({padding: 6px 4px 6px 0;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 20px;cursor: pointer;@@ -1911,7 +1813,7 @@ defineExpose({}&:focus-visible {- box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 82, 217, 0.2));+ box-shadow: 0 0 0 2px var(--td-brand-color-focus);}.t-icon {@@ -1921,7 +1823,7 @@ defineExpose({.agent-section-toggle {margin-left: 4px;opacity: 0.7;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}// 共享给我的两个子分组:主图标 usergroup-add 表达"共享"语义,@@ -1935,10 +1837,10 @@ defineExpose({.agent-section-count {margin-left: 2px;padding: 0 6px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;font-weight: 500;}@@ -1962,49 +1864,12 @@ defineExpose({}.agent-card-wrap {- display: grid;- gap: 12px;- grid-template-columns: 1fr;- animation: contentFadeIn 0.32s ease-out;-}--.agent-card-skeleton {- cursor: default;-- .card-header {- margin-bottom: 12px;- }-- .card-content {- flex: 1;- }-- .card-bottom {- margin-top: auto;- }+ .resource-card-grid();}/* 与知识库列表卡片统一尺寸:紧凑行高、148px 卡片高 */.agent-card {- border: 1px solid var(--td-component-stroke);- border-radius: 8px;- overflow: hidden;- box-sizing: border-box;- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);- background: var(--td-bg-color-container);- position: relative;- cursor: pointer;- transition: all 0.25s ease;- padding: 12px 14px;- display: flex;- flex-direction: column;- height: 136px;- min-height: 136px;-- &:hover {- border-color: var(--td-brand-color);- box-shadow: 0 4px 12px rgba(7, 192, 95, 0.12);- }+ .resource-card();.agent-favorite-star {// 浮在卡片右上角顶角。卡片自身有 padding,"更多"按钮在 header flex@@ -2020,20 +1885,20 @@ defineExpose({justify-content: center;background: transparent;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);cursor: pointer;opacity: 0;- transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-secondarycontainer);- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}&.is-favorited {opacity: 1;- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}}@@ -2043,91 +1908,51 @@ defineExpose({// 普通模式样式&.agent-mode-normal {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%);&:hover {border-color: var(--td-brand-color);- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.08) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);}.card-decoration {- color: rgba(7, 192, 95, 0.35);+ color: color-mix(in srgb, var(--td-brand-color) 35%, transparent);}&:hover .card-decoration {- color: rgba(7, 192, 95, 0.5);+ color: color-mix(in srgb, var(--td-brand-color) 50%, transparent);}}// Agent 模式样式&.agent-mode-agent {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(124, 77, 255, 0.04) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--app-accent-purple) 4%, transparent) 100%);&:hover {border-color: var(--td-brand-color);- box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(124, 77, 255, 0.08) 100%);+ box-shadow: 0 4px 12px color-mix(in srgb, var(--app-accent-purple) 12%, transparent);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--app-accent-purple) 8%, transparent) 100%);}.card-decoration {- color: rgba(124, 77, 255, 0.35);+ color: color-mix(in srgb, var(--app-accent-purple) 35%, transparent);}&:hover .card-decoration {- color: rgba(124, 77, 255, 0.5);- }- }-- // 确保内容在装饰之上- .card-header,- .card-content,- .card-bottom {- position: relative;- z-index: 1;- }-- .card-header {- margin-bottom: 6px;- }-- .card-title {- font-size: 15px;- line-height: 22px;- }-- .card-content {- margin-bottom: 6px;- }-- .card-description {- font-size: 12px;- line-height: 17px;- }-- .card-bottom {- padding-top: 6px;- }-- .more-wrap {- width: 28px;- height: 28px;-- .more-icon {- width: 16px;- height: 16px;+ color: color-mix(in srgb, var(--app-accent-purple) 50%, transparent);}}.builtin-avatar {width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);}.edit-btn {width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);}}@@ -2152,46 +1977,16 @@ defineExpose({}}-.card-header {- display: flex;- justify-content: space-between;- align-items: center;- gap: 4px;- margin-bottom: 6px;-}--.card-header-left {- display: flex;- align-items: center;- gap: 8px;- flex: 1;- min-width: 0;-}--.card-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 15px;- font-weight: 600;- line-height: 22px;- letter-spacing: 0.01em;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- flex: 1;- min-width: 0;-}-.builtin-badge {display: inline-flex;align-items: center;gap: 3px;padding: 2px 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container-hover);color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;flex-shrink: 0;}@@ -2202,22 +1997,22 @@ defineExpose({justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);flex-shrink: 0;&.agent-emoji {- font-size: 18px;+ font-size: var(--app-text-2xl);line-height: 1;background: var(--td-bg-color-container-hover);}&.normal {- background: linear-gradient(135deg, rgba(7, 192, 95, 0.15) 0%, rgba(7, 192, 95, 0.08) 100%);+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 15%, transparent) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);color: var(--td-brand-color-active);}&.agent {- background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0.08) 100%);+ background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent-purple) 15%, transparent) 0%, color-mix(in srgb, var(--app-accent-purple) 8%, transparent) 100%);color: var(--td-brand-color);}}@@ -2228,10 +2023,10 @@ defineExpose({height: 32px;justify-content: center;align-items: center;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;flex-shrink: 0;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;color: var(--td-text-color-disabled);&:hover {@@ -2240,193 +2035,72 @@ defineExpose({}}-.more-wrap {- display: flex;- width: 28px;- height: 28px;- justify-content: center;- align-items: center;- border-radius: 8px;- cursor: pointer;- flex-shrink: 0;- transition: all 0.2s ease;- opacity: 0;-- .agent-card:hover & {- opacity: 0.6;- }-- &:hover {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- &.active-more {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- .more-icon {- width: 16px;- height: 16px;- }-}-/* 与知识库卡片内容区一致 */-.card-content {- flex: 1;- min-height: 0;- margin-bottom: 8px;- overflow: hidden;- display: flex;- flex-direction: column;- gap: 6px;-}-/* 三个列表卡片统一:描述字体 */-.card-description {- display: -webkit-box;- -webkit-box-orient: vertical;- -webkit-line-clamp: 2;- line-clamp: 2;- overflow: hidden;- color: var(--td-text-color-secondary);- font-family: var(--app-font-family);- font-size: 12px;- font-weight: 400;- line-height: 18px;-}--.card-bottom {- display: flex;- align-items: center;- justify-content: space-between;- margin-top: auto;- padding-top: 8px;- border-top: .5px solid var(--td-component-stroke);-}-.bottom-left {display: flex;align-items: center;gap: 8px;}-.feature-badges {- display: flex;- align-items: center;- gap: 4px;-}-.feature-badge {- display: flex;- align-items: center;- justify-content: center;- width: 22px;- height: 22px;- border-radius: 5px;- cursor: default;- transition: background 0.2s ease;+ .resource-feature-badge();&.mode-normal {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color-active);&:hover {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}&.mode-agent {- background: rgba(124, 77, 255, 0.08);+ background: color-mix(in srgb, var(--app-accent-purple) 8%, transparent);color: var(--td-brand-color);&:hover {- background: rgba(124, 77, 255, 0.12);+ background: color-mix(in srgb, var(--app-accent-purple) 12%, transparent);}}&.web-search {- background: rgba(255, 152, 0, 0.08);+ background: color-mix(in srgb, var(--td-warning-color) 8%, transparent);color: var(--td-warning-color);&:hover {- background: rgba(255, 152, 0, 0.12);+ background: color-mix(in srgb, var(--td-warning-color) 12%, transparent);}}&.knowledge {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color-active);&:hover {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}&.mcp {- background: rgba(236, 72, 153, 0.08);+ background: color-mix(in srgb, var(--td-error-color) 8%, transparent);color: var(--td-error-color);&:hover {- background: rgba(236, 72, 153, 0.12);+ background: color-mix(in srgb, var(--td-error-color) 12%, transparent);}}&.multi-turn {- background: rgba(59, 130, 246, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);&:hover {- background: rgba(59, 130, 246, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}}-.card-time {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 12px;- font-weight: 400;-}--.empty-state {- flex: 1;- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;- padding: 60px 20px;-- .empty-img {- width: 162px;- height: 162px;- margin-bottom: 20px;- }-- .empty-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 26px;- margin-bottom: 8px;- }-- .empty-desc {- color: var(--td-text-color-disabled);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- margin-bottom: 0;- }-- .empty-state-btn {- margin-top: 20px;- }-}-// 响应式布局@media (min-width: 900px) {.agent-card-wrap {@@ -2459,88 +2133,10 @@ defineExpose({}// 删除确认对话框样式-:deep(.del-agent-dialog) {- padding: 0px !important;- border-radius: 6px !important;-- .t-dialog__header {- display: none;- }-- .t-dialog__body {- padding: 16px;- }-- .t-dialog__footer {- padding: 0;- }-}-:deep(.t-dialog__position.t-dialog--top) {padding-top: 40vh !important;}-.circle-wrap {- .dialog-header {- display: flex;- align-items: center;- margin-bottom: 8px;- }-- .circle-img {- width: 20px;- height: 20px;- margin-right: 8px;- }-- .circle-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 24px;- }-- .del-circle-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- display: inline-block;- margin-left: 29px;- margin-bottom: 21px;- }-- .circle-btn {- height: 22px;- width: 100%;- display: flex;- justify-content: flex-end;- }-- .circle-btn-txt {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- cursor: pointer;-- &:hover {- opacity: 0.8;- }- }-- .confirm {- color: var(--td-error-color);- margin-left: 40px;-- &:hover {- opacity: 0.8;- }- }-}</style><style lang="less">@@ -2581,7 +2177,7 @@ defineExpose({.shared-detail-drawer-title {margin: 0;- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -2590,14 +2186,14 @@ defineExpose({width: 32px;height: 32px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);cursor: pointer;display: flex;align-items: center;justify-content: center;- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-secondarycontainer);@@ -2621,7 +2217,7 @@ defineExpose({}.shared-detail-drawer-body .shared-detail-section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 20px 0 12px 0;@@ -2630,13 +2226,13 @@ defineExpose({}.shared-detail-drawer-body .shared-detail-label {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.4;}.shared-detail-drawer-body .shared-detail-value {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);line-height: 1.5;word-break: break-word;diff --git a/frontend/src/views/auth/Login.vue b/frontend/src/views/auth/Login.vueindex bdc64095c..0319f779c 100755--- a/frontend/src/views/auth/Login.vue+++ b/frontend/src/views/auth/Login.vue@@ -1097,7 +1097,7 @@ onMounted(async () => {}.showcase-description {- font-size: 15px;+ font-size: var(--app-text-lg);color: rgba(255, 255, 255, 0.8);margin: 0 0 28px 0;font-family: var(--app-font-family);@@ -1117,7 +1117,7 @@ onMounted(async () => {background: rgba(255, 255, 255, 0.2);border-radius: 20px;color: var(--td-text-color-anti);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;font-family: var(--app-font-family);}@@ -1149,7 +1149,7 @@ onMounted(async () => {height: 10px;background: rgba(255, 255, 255, 0.5);opacity: 1;- transition: all 0.3s ease;+ transition: all var(--app-motion-slow) ease;margin: 0 6px !important;}@@ -1230,7 +1230,7 @@ onMounted(async () => {border: 1px solid rgba(255, 255, 255, 0.25);color: var(--td-text-color-anti);text-decoration: none;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;font-family: var(--app-font-family);letter-spacing: 0.2px;@@ -1261,7 +1261,7 @@ onMounted(async () => {color: var(--td-text-color-anti);.lang-flag-icon {- font-size: 16px;+ font-size: var(--app-text-xl);line-height: 1;flex-shrink: 0;}@@ -1285,7 +1285,7 @@ onMounted(async () => {min-width: 160px;background: rgba(255, 255, 255, 0.97);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);overflow: hidden;z-index: 1000;@@ -1297,12 +1297,12 @@ onMounted(async () => {gap: 10px;padding: 10px 14px;cursor: pointer;- font-size: 13px;+ font-size: var(--app-text-md);font-family: var(--app-font-family);color: var(--td-text-color-primary);.lang-flag {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;}@@ -1313,7 +1313,7 @@ onMounted(async () => {.check-icon {color: var(--td-success-color);font-weight: 700;- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;}@@ -1348,15 +1348,15 @@ onMounted(async () => {gap: 10px;padding: 12px 14px;margin-bottom: 20px;- border-radius: 10px;- background: var(--td-bg-color-container-hover, rgba(0, 0, 0, 0.03));+ border-radius: var(--app-radius-lg);+ background: var(--td-bg-color-container-hover);border: 1px solid var(--td-component-stroke);color: var(--td-text-color-primary);}.invite-banner__icon {margin-top: 2px;- font-size: 18px;+ font-size: var(--app-text-2xl);flex-shrink: 0;color: var(--td-text-color-secondary);}@@ -1369,23 +1369,23 @@ onMounted(async () => {}.invite-banner__title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);}.invite-banner__hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;}.invite-banner--error {- background: var(--td-error-color-1, rgba(220, 38, 38, 0.06));- border-color: var(--td-error-color-3, rgba(220, 38, 38, 0.2));- color: var(--td-error-color, #b91c1c);- font-size: 13px;+ background: var(--td-error-color-1);+ border-color: var(--td-error-color-3);+ color: var(--td-error-color);+ font-size: var(--app-text-md);}.form-header {@@ -1394,7 +1394,7 @@ onMounted(async () => {}.form-title {- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;@@ -1402,7 +1402,7 @@ onMounted(async () => {}.form-welcome {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;font-family: var(--app-font-family);@@ -1411,8 +1411,8 @@ onMounted(async () => {.form-hint {margin: 10px 0 0;padding: 8px 12px;- border-radius: 8px;- background: var(--td-success-color-light, rgba(7, 192, 95, 0.08));+ border-radius: var(--app-radius-md);+ background: var(--td-success-color-light);color: var(--td-brand-color-active);font-size: 12.5px;line-height: 1.5;@@ -1429,7 +1429,7 @@ onMounted(async () => {text-align: center;margin: 4px 0 14px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);font-family: var(--app-font-family);span {@@ -1451,8 +1451,8 @@ onMounted(async () => {&__button {height: 46px;- border-radius: 8px;- font-size: 15px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-lg);font-weight: 500;border-color: var(--td-brand-color);color: var(--td-brand-color);@@ -1460,13 +1460,13 @@ onMounted(async () => {&:hover {border-color: var(--td-brand-color-active);color: var(--td-brand-color-active);- background: var(--td-success-color-light, rgba(7, 192, 95, 0.08));+ background: var(--td-success-color-light);}}}.form-subtitle {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;font-family: var(--app-font-family);@@ -1474,7 +1474,7 @@ onMounted(async () => {.form-content {:deep(.t-form-item__label) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);font-weight: 500;margin-bottom: 8px;@@ -1485,13 +1485,13 @@ onMounted(async () => {:deep(.t-input) {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);- transition: all 0.2s;+ transition: all var(--app-motion-base);&:focus-within {border-color: var(--td-brand-color);- box-shadow: 0 0 0 3px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}&:hover {@@ -1503,7 +1503,7 @@ onMounted(async () => {box-shadow: none !important;outline: none !important;background: transparent;- font-size: 15px;+ font-size: var(--app-text-lg);font-family: var(--app-font-family);&:focus {@@ -1534,8 +1534,8 @@ onMounted(async () => {.submit-button {height: 46px;- border-radius: 8px;- font-size: 16px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-xl);font-weight: 500;font-family: var(--app-font-family);margin: 20px 0 16px 0;@@ -1546,7 +1546,7 @@ onMounted(async () => {margin: 4px 0 6px;text-align: center;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);span {position: relative;@@ -1567,14 +1567,14 @@ onMounted(async () => {.oidc-button {height: 46px;- border-radius: 8px;- font-size: 15px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-lg);font-weight: 500;}.form-footer {text-align: center;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);font-family: var(--app-font-family);margin-top: 16px;@@ -1586,7 +1586,7 @@ onMounted(async () => {text-decoration: none;margin-left: 4px;font-weight: 500;- transition: all 0.2s;+ transition: all var(--app-motion-base);&:hover {color: var(--td-brand-color);@@ -1609,7 +1609,7 @@ onMounted(async () => {display: flex;align-items: center;margin-bottom: 12px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);font-family: var(--app-font-family);@@ -1626,7 +1626,7 @@ onMounted(async () => {display: flex;align-items: center;justify-content: center;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 700;margin-right: 10px;flex-shrink: 0;@@ -1649,7 +1649,7 @@ onMounted(async () => {}.showcase-subtitle {- font-size: 18px;+ font-size: var(--app-text-2xl);}.header-logo {@@ -1710,7 +1710,7 @@ onMounted(async () => {}.showcase-subtitle {- font-size: 16px;+ font-size: var(--app-text-xl);margin-bottom: 24px;}@@ -1738,7 +1738,7 @@ onMounted(async () => {.header-link {padding: 8px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -1770,11 +1770,11 @@ onMounted(async () => {}.showcase-subtitle {- font-size: 14px;+ font-size: var(--app-text-base);}.tag {- font-size: 12px;+ font-size: var(--app-text-sm);padding: 6px 16px;}@@ -1790,7 +1790,7 @@ onMounted(async () => {.header-link {padding: 7px 10px;- font-size: 11px;+ font-size: var(--app-text-xs);}}diff --git a/frontend/src/views/auth/WorkspaceOnboarding.vue b/frontend/src/views/auth/WorkspaceOnboarding.vueindex 6afcf6cff..d866c7bd4 100644--- a/frontend/src/views/auth/WorkspaceOnboarding.vue+++ b/frontend/src/views/auth/WorkspaceOnboarding.vue@@ -191,13 +191,13 @@ h1 {min-height: 52px;margin-bottom: 18px;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.policy-error {flex-wrap: wrap;padding: 12px 16px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);color: var(--td-error-color);background: var(--td-error-color-light);}@@ -205,7 +205,7 @@ h1 {.invite-only-notice {padding: 12px 16px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);color: var(--td-text-color-primary);background: var(--td-bg-color-secondarycontainer);line-height: 1.5;@@ -218,7 +218,7 @@ h1 {.workspace-help {margin: 24px 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);}.logout-link {diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.style.test.mjs b/frontend/src/views/chat/components/AgentStreamDisplay.style.test.mjsindex 0c05e9a4c..70385d909 100644--- a/frontend/src/views/chat/components/AgentStreamDisplay.style.test.mjs+++ b/frontend/src/views/chat/components/AgentStreamDisplay.style.test.mjs@@ -35,7 +35,7 @@ test('agent steps use compact muted timeline styling', () => {assert.match(source, /--agent-step-icon-color:\s*var\(--td-text-color-placeholder\)/)assert.match(source, /max-height:\s*none/)assert.match(source, /overflow-y:\s*visible/)- assert.match(source, /\.tree-root \.action-name\s*\{[\s\S]*font-size:\s*14px/)+ assert.match(source, /\.tree-root \.action-name\s*\{[\s\S]*font-size:\s*(?:14px|var\(--app-text-base\))/)assert.match(source, /\.tree-child \.action-title-icon\s*\{[\s\S]*position:\s*absolute/)assert.match(source, /function maskIconStyle\(src: string, size = 18\)/)assert.match(source, /\.icon-mask\s*\{[\s\S]*background-color:\s*var\(--agent-step-icon-color\)/)diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vueindex 26615746e..57cb6581b 100644--- a/frontend/src/views/chat/components/AgentStreamDisplay.vue+++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue@@ -3373,7 +3373,7 @@ const handleAddToKnowledge = (answerEvent: any) => {border-left: 0;overflow: visible;position: relative;- transition: border-color 0.2s ease;+ transition: border-color var(--app-motion-base) ease;box-shadow: none;>* {@@ -3409,7 +3409,7 @@ const handleAddToKnowledge = (answerEvent: any) => {.tool-summary {padding: 6px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);background: var(--td-bg-color-container);border-top: 1px solid var(--td-component-stroke);@@ -3439,7 +3439,7 @@ const handleAddToKnowledge = (answerEvent: any) => {background: var(--td-bg-color-secondarycontainer);padding: 2px 5px;border-radius: 3px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-brand-color);font-weight: 500;}@@ -3461,7 +3461,7 @@ const handleAddToKnowledge = (answerEvent: any) => {min-height: 24px;cursor: pointer;user-select: none;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:hover {background-color: transparent;@@ -3533,7 +3533,7 @@ const handleAddToKnowledge = (answerEvent: any) => {border-radius: 9px;background: var(--stream-brand-10);color: color-mix(in srgb, var(--td-brand-color) 80%, var(--td-text-color-secondary));- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;white-space: nowrap;flex-shrink: 0;@@ -3562,18 +3562,6 @@ const handleAddToKnowledge = (answerEvent: any) => {}}-@keyframes slideInDown {- from {- opacity: 0;- transform: translateY(-8px);- }-- to {- opacity: 1;- transform: translateY(0);- }-}-@keyframes slideIn {from {opacity: 0;@@ -3586,71 +3574,6 @@ const handleAddToKnowledge = (answerEvent: any) => {}}-@keyframes pulse {-- 0%,- 100% {- transform: scale(1);- opacity: 0.8;- }-- 50% {- transform: scale(1.5);- opacity: 0.3;- }-}--@keyframes pulseBorder {-- 0%,- 100% {- border-left-color: var(--td-brand-color);- box-shadow: 0 1px 3px var(--stream-brand-6);- }-- 50% {- border-left-color: var(--td-brand-color);- box-shadow: 0 1px 4px var(--stream-brand-12);- }-}--@keyframes shakeError {-- 0%,- 100% {- transform: translateX(0);- }-- 10%,- 30%,- 50%,- 70%,- 90% {- transform: translateX(-2px);- }-- 20%,- 40%,- 60%,- 80% {- transform: translateX(2px);- }-}--@keyframes actionPendingShimmer {- 0% {- transform: translateX(-90%);- }-- 50% {- transform: translateX(-5%);- }-- 100% {- transform: translateX(90%);- }-}-.action-name {font-size: var(--agent-step-text-size);font-weight: 400;@@ -3669,7 +3592,7 @@ const handleAddToKnowledge = (answerEvent: any) => {gap: 6px;margin-left: 4px;font-variant-numeric: tabular-nums;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;flex-shrink: 0;letter-spacing: 0.02em;@@ -3687,11 +3610,11 @@ const handleAddToKnowledge = (answerEvent: any) => {margin: 6px 0 0;padding: 8px 10px;font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);pre {margin: 0;@@ -3704,12 +3627,12 @@ const handleAddToKnowledge = (answerEvent: any) => {.sandbox-file-preview-more {margin-top: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}.action-show-icon {- font-size: 12px;+ font-size: var(--app-text-sm);padding: 0 2px;color: var(--td-text-color-placeholder);flex-shrink: 0;@@ -3765,7 +3688,7 @@ const handleAddToKnowledge = (answerEvent: any) => {flex-wrap: wrap;.status-icon {- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;&.in-progress {@@ -3794,16 +3717,6 @@ const handleAddToKnowledge = (answerEvent: any) => {}}-@keyframes rotate {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}-.plan-task-change-event {min-height: 24px;@@ -3837,7 +3750,7 @@ const handleAddToKnowledge = (answerEvent: any) => {padding: 0 4px;.fallback-label {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);font-weight: 500;line-height: 1.5;@@ -3848,14 +3761,14 @@ const handleAddToKnowledge = (answerEvent: any) => {position: relative;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: hidden;margin: 0;padding: 0;.detail-output {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-primary);padding: 12px;margin: 0;@@ -3899,7 +3812,7 @@ const handleAddToKnowledge = (answerEvent: any) => {margin-bottom: 6px;.arguments-label {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-secondary);text-transform: uppercase;@@ -3908,10 +3821,10 @@ const handleAddToKnowledge = (answerEvent: any) => {}.detail-code {- font-size: 12px;+ font-size: var(--app-text-sm);background: var(--td-bg-color-container);padding: 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);font-family: var(--app-font-family-mono);color: var(--td-text-color-primary);margin: 0;@@ -4058,7 +3971,7 @@ const handleAddToKnowledge = (answerEvent: any) => {}.tree-root .action-name {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);}@@ -4078,204 +3991,4 @@ const handleAddToKnowledge = (answerEvent: any) => {}</style>-<style lang="less">-/* Global styles for teleported components */--.wiki-graph-drawer {- box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);-- .wiki-reader-meta {- display: flex;- align-items: center;- gap: 12px;- }-- .wiki-reader-meta-text {- font-size: 13px;- color: var(--td-text-color-placeholder);- }-- // Wiki drawer is a non-chat reader surface. Chat answer Markdown styles are- // centralized in chat-markdown.less; do not copy these rules into chat message components.- .wiki-reader-body {- line-height: 1.6;- font-size: 14px;- color: var(--td-text-color-primary);-- h1 {- font-size: 24px;- margin: 28px 0 16px;- font-weight: 600;- line-height: 1.4;- }-- h2 {- font-size: 18px;- margin: 24px 0 12px;- font-weight: 600;- line-height: 1.4;- }-- h3 {- font-size: 16px;- margin: 20px 0 10px;- font-weight: 600;- line-height: 1.5;- }-- h4,- h5,- h6 {- font-size: 14px;- margin: 16px 0 8px;- font-weight: 600;- line-height: 1.5;- }-- p {- margin: 0 0 14px;- }-- ul,- ol {- margin: 0 0 14px;- padding-left: 24px;- }-- li {- margin-bottom: 6px;- line-height: 1.6;- }-- li>p {- margin-bottom: 6px;- }-- blockquote {- margin: 0 0 14px;- padding: 10px 16px;- background: var(--td-bg-color-secondarycontainer);- border-left: 4px solid var(--td-component-border);- border-radius: 0 4px 4px 0;- color: var(--td-text-color-secondary);- }-- code {- font-family: var(--app-font-family-mono);- font-size: 13px;- padding: 2px 4px;- background: var(--td-bg-color-secondarycontainer);- border-radius: 4px;- color: var(--td-brand-color);- }-- pre {- margin: 0 0 14px;- padding: 12px 16px;- background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;- overflow-x: auto;-- code {- padding: 0;- background: transparent;- color: inherit;- }- }-- p:has(img) {- text-align: center;- color: var(--td-text-color-secondary);- font-size: 13px;- margin-top: 16px;- margin-bottom: 24px;-- img {- max-width: 100%;- max-height: 400px;- object-fit: contain;- border-radius: 6px;- display: block;- margin: 0 auto 8px;- cursor: zoom-in;- transition: opacity 0.2s;-- &:hover {- opacity: 0.9;- }- }- }-- a.wiki-content-link {- color: var(--td-brand-color);- text-decoration: none;- border-bottom: 1px dashed var(--td-brand-color);- cursor: pointer;- font-weight: 500;-- &:hover {- border-bottom-style: solid;- text-decoration: none !important;- }- }-- .chat-markdown-table {- width: fit-content;- max-width: 100%;- overflow-x: auto;- margin: 0 0 16px;- background: var(--td-bg-color-container);- border: 1px solid var(--td-component-stroke);- border-radius: 6px;- -webkit-overflow-scrolling: touch;- }-- table {- display: table;- width: max-content;- min-width: 0;- border-collapse: separate;- border-spacing: 0;- font-size: 13px;- line-height: 1.55;- }-- table thead {- background: var(--td-bg-color-secondarycontainer);- }-- table th,- table td {- padding: 8px 12px;- border-bottom: 1px solid var(--td-component-stroke);- border-right: 1px solid var(--td-component-stroke);- text-align: left;- vertical-align: top;- word-break: break-word;- }-- table th {- font-weight: 600;- color: var(--td-text-color-primary);- white-space: nowrap;- }-- table th:last-child,- table td:last-child {- border-right: none;- }-- table tbody tr:last-child td {- border-bottom: none;- }-- table tbody tr:hover {- background: var(--td-bg-color-secondarycontainer);- }-- table code {- font-size: 12px;- }- }-}-</style>+<style lang="less" src="@/components/css/wiki-graph-drawer.less"></style>diff --git a/frontend/src/views/chat/components/BrowserTaskPreview.vue b/frontend/src/views/chat/components/BrowserTaskPreview.vueindex 0af04d638..516751f94 100644--- a/frontend/src/views/chat/components/BrowserTaskPreview.vue+++ b/frontend/src/views/chat/components/BrowserTaskPreview.vue@@ -106,16 +106,16 @@ onMounted(() => { document.addEventListener('visibilitychange', onVisible); voidonBeforeUnmount(() => { alive = false; document.removeEventListener('visibilitychange', onVisible); revision++; cancelTimer?.(); controller.abort(); preview.value = '' })</script><style scoped>-.browser-task-preview { position: absolute; right: 20px; bottom: 16px; width: 240px; max-width: calc(100% - 40px); max-height: calc(100% - 24px); box-sizing: border-box; z-index: 5; overflow: auto; background: var(--td-bg-color-container); border: 1px solid var(--td-component-border); border-radius: 12px; box-shadow: 0 4px 20px #0000000d; }+.browser-task-preview { position: absolute; right: 20px; bottom: 16px; width: 240px; max-width: calc(100% - 40px); max-height: calc(100% - 24px); box-sizing: border-box; z-index: 5; overflow: auto; background: var(--td-bg-color-container); border: 1px solid var(--td-component-border); border-radius: var(--app-radius-xl); box-shadow: 0 4px 20px #0000000d; }.preview-browser-icon { flex-shrink: 0; color: var(--td-text-color-secondary); }-.preview-heading { display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; position: sticky; top: 0; z-index: 1; background: var(--td-bg-color-container); }.is-dragging .preview-heading { cursor: grabbing; }.preview-heading strong { font-size: 12px; font-weight: 500; flex: 1; }.preview-heading span { color: var(--td-text-color-secondary); font-size: 11px; }-.preview-image { width: 100%; height: 126px; border: 0; border-block: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-secondary); display: grid; place-items: center; position: relative; cursor: pointer; padding: 0; font-size: 12px; }.preview-image:disabled { cursor: default; }.preview-image img { width: 100%; height: 100%; object-fit: contain; object-position: top; }.preview-image:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: -2px; }.locate { position: absolute; display: inline-flex; align-items: center; gap: 5px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: var(--td-bg-color-container); color: var(--td-text-color-primary); box-shadow: 0 1px 5px #00000014; }.preview-image:hover .locate { color: var(--td-brand-color); }-.preview-progress, .preview-address, .preview-sync, .preview-help, .preview-scope { font-size: 11px; line-height: 1.5; margin: 6px 12px; color: var(--td-text-color-secondary); }+.preview-heading { display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; position: sticky; top: 0; z-index: 1; background: var(--td-bg-color-container); }.is-dragging .preview-heading { cursor: grabbing; }.preview-heading strong { font-size: var(--app-text-sm); font-weight: 500; flex: 1; }.preview-heading span { color: var(--td-text-color-secondary); font-size: var(--app-text-xs); }+.preview-image { width: 100%; height: 126px; border: 0; border-block: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); color: var(--td-text-color-secondary); display: grid; place-items: center; position: relative; cursor: pointer; padding: 0; font-size: var(--app-text-sm); }.preview-image:disabled { cursor: default; }.preview-image img { width: 100%; height: 100%; object-fit: contain; object-position: top; }.preview-image:focus-visible { outline: 2px solid var(--td-brand-color); outline-offset: -2px; }.locate { position: absolute; display: inline-flex; align-items: center; gap: 5px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: var(--td-bg-color-container); color: var(--td-text-color-primary); box-shadow: 0 1px 5px #00000014; }.preview-image:hover .locate { color: var(--td-brand-color); }+.preview-progress, .preview-address, .preview-sync, .preview-help, .preview-scope { font-size: var(--app-text-xs); line-height: 1.5; margin: 6px 12px; color: var(--td-text-color-secondary); }.preview-address { overflow-wrap: anywhere; }.preview-help { color: var(--td-brand-color); }-.preview-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; padding: 5px 8px; }.preview-error { margin: 8px 12px; color: var(--td-error-color); font-size: 12px; line-height: 1.5; }+.preview-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; padding: 5px 8px; }.preview-error { margin: 8px 12px; color: var(--td-error-color); font-size: var(--app-text-sm); line-height: 1.5; }@media(max-width:720px){.browser-task-preview { right: 12px; bottom: 12px; width: 200px; }.preview-image { height: 100px; }}-.preview-popout { display: grid; place-items: center; flex-shrink: 0; padding: 3px; border: 0; border-radius: 4px; background: transparent; color: var(--td-text-color-secondary); cursor: pointer; }+.preview-popout { display: grid; place-items: center; flex-shrink: 0; padding: 3px; border: 0; border-radius: var(--app-radius-xs); background: transparent; color: var(--td-text-color-secondary); cursor: pointer; }.preview-popout:hover { background: var(--td-bg-color-secondarycontainer); color: var(--td-brand-color); }.preview-popout:focus-visible { outline: 2px solid var(--td-brand-color); }.preview-popout:disabled { opacity: .5; cursor: wait; }@@ -124,8 +124,8 @@ onBeforeUnmount(() => { alive = false; document.removeEventListener('visibilityc.is-pip .preview-image { height: clamp(126px, 45vh, 480px); }.browser-task-preview.needs-help { width: 420px; }.preview-handoff { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-top: 1px solid var(--td-component-border); background: var(--td-bg-color-secondarycontainer); overflow-wrap: anywhere; }-.preview-handoff strong { font-size: 13px; font-weight: 600; color: var(--td-text-color-primary); }-.preview-handoff p { font-size: 12px; line-height: 1.6; margin: 0; color: var(--td-text-color-secondary); white-space: pre-wrap; }+.preview-handoff strong { font-size: var(--app-text-md); font-weight: 600; color: var(--td-text-color-primary); }+.preview-handoff p { font-size: var(--app-text-sm); line-height: 1.6; margin: 0; color: var(--td-text-color-secondary); white-space: pre-wrap; }.preview-handoff .handoff-prompt { max-height: 22vh; overflow-y: auto; color: var(--td-text-color-primary); }.preview-handoff .handoff-locate { align-self: flex-end; flex-shrink: 0; max-width: 100%; margin-top: 2px; }.needs-help .preview-image { height: clamp(140px, 30vh, 260px); }diff --git a/frontend/src/views/chat/components/BrowserToolDetails.vue b/frontend/src/views/chat/components/BrowserToolDetails.vueindex 275f25b5c..1de7913e2 100644--- a/frontend/src/views/chat/components/BrowserToolDetails.vue+++ b/frontend/src/views/chat/components/BrowserToolDetails.vue@@ -27,16 +27,16 @@ const { t } = useI18n()const content = computed(() => browserToolContent(props.event))</script><style scoped>-.browser-tool-details { min-width: 0; max-width: 100%; box-sizing: border-box; margin: 8px 0; padding: 12px 14px; border: 1px solid var(--td-component-border); border-radius: 8px; background: var(--td-bg-color-container); font-size: 13px; color: var(--td-text-color-secondary); overflow: hidden; }+.browser-tool-details { min-width: 0; max-width: 100%; box-sizing: border-box; margin: 8px 0; padding: 12px 14px; border: 1px solid var(--td-component-border); border-radius: var(--app-radius-md); background: var(--td-bg-color-container); font-size: var(--app-text-md); color: var(--td-text-color-secondary); overflow: hidden; }.browser-tool-details p { margin: 0 0 8px; line-height: 1.6; overflow-wrap: anywhere; }.browser-tool-details p:last-child { margin-bottom: 0; }.browser-result-error, .browser-result-status.failed { color: var(--td-error-color); }.browser-page-title { color: var(--td-text-color-primary); font-weight: 500; }-.browser-page-address, .browser-content-note { font-size: 12px; }-.browser-result-image { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin: 8px 0; border-radius: 6px; }+.browser-page-address, .browser-content-note { font-size: var(--app-text-sm); }+.browser-result-image { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin: 8px 0; border-radius: var(--app-radius-sm); }.browser-result-tabs { margin: 8px 0; padding: 0; list-style: none; max-height: 300px; overflow: auto; }.browser-result-tabs li { display: grid; gap: 4px; padding: 8px 0; overflow-wrap: anywhere; }.browser-result-tabs strong { color: var(--td-text-color-primary); font-weight: 500; }-.browser-result-tabs span { font-size: 12px; }-.browser-page-content { margin: 8px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; padding: 10px; border-radius: 6px; background: var(--td-bg-color-secondarycontainer); }+.browser-result-tabs span { font-size: var(--app-text-sm); }+.browser-page-content { margin: 8px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--app-text-sm); line-height: 1.6; padding: 10px; border-radius: var(--app-radius-sm); background: var(--td-bg-color-secondarycontainer); }</style>diff --git a/frontend/src/views/chat/components/ChatArtifactsDrawer.vue b/frontend/src/views/chat/components/ChatArtifactsDrawer.vueindex 51bee671e..16184bf23 100644--- a/frontend/src/views/chat/components/ChatArtifactsDrawer.vue+++ b/frontend/src/views/chat/components/ChatArtifactsDrawer.vue@@ -468,15 +468,15 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 16px;+ font-size: var(--app-text-xl);}.artifact-drawer-header-title {min-width: 0;flex: 1;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -501,7 +501,7 @@ onUnmounted(() => {gap: 8px;padding: 48px 16px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.artifact-list {@@ -516,7 +516,7 @@ onUnmounted(() => {gap: 10px;padding: 10px 4px;border-bottom: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);&:last-child {border-bottom: none;@@ -539,14 +539,14 @@ onUnmounted(() => {flex-shrink: 0;width: 28px;height: 28px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);display: inline-flex;align-items: center;justify-content: center;- font-size: 16px;+ font-size: var(--app-text-xl);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.artifact-body {@@ -555,7 +555,7 @@ onUnmounted(() => {}.artifact-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;letter-spacing: 0.01em;line-height: 1.35;@@ -567,7 +567,7 @@ onUnmounted(() => {.artifact-meta {margin-top: 2px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.3;color: var(--td-text-color-placeholder);display: flex;@@ -615,7 +615,7 @@ onUnmounted(() => {border-radius: 1px;background: var(--td-component-border);opacity: 0.55;- transition: opacity 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease;}.artifact-preview-resize-handle:hover .artifact-preview-resize-line,diff --git a/frontend/src/views/chat/components/ChatArtifactsPanel.vue b/frontend/src/views/chat/components/ChatArtifactsPanel.vueindex 48d9a4819..370190d4c 100644--- a/frontend/src/views/chat/components/ChatArtifactsPanel.vue+++ b/frontend/src/views/chat/components/ChatArtifactsPanel.vue@@ -342,7 +342,7 @@ async function handleDownload(item: SessionArtifactItem) {.artifact-panel-header-title {min-width: 0;flex: 1;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -368,7 +368,7 @@ async function handleDownload(item: SessionArtifactItem) {gap: 8px;padding: 32px 16px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);text-align: center;}@@ -377,19 +377,13 @@ async function handleDownload(item: SessionArtifactItem) {align-items: center;gap: 8px;padding: 8px 14px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);border-bottom: 1px solid var(--td-component-stroke);}.artifact-panel-banner-spin {- animation: artifact-panel-spin 0.8s linear infinite;-}--@keyframes artifact-panel-spin {- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}.artifact-list {@@ -406,7 +400,7 @@ async function handleDownload(item: SessionArtifactItem) {align-items: center;gap: 12px;padding: 12px 8px;- border-radius: 8px;+ border-radius: var(--app-radius-md);&.is-previewable {cursor: pointer;@@ -431,7 +425,7 @@ async function handleDownload(item: SessionArtifactItem) {align-self: flex-start;gap: 2px;padding: 3px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);button {@@ -444,7 +438,7 @@ async function handleDownload(item: SessionArtifactItem) {background: transparent;color: var(--td-text-color-secondary);font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);cursor: pointer;&[aria-pressed='true'] {@@ -460,7 +454,7 @@ async function handleDownload(item: SessionArtifactItem) {span {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;}}@@ -483,7 +477,7 @@ async function handleDownload(item: SessionArtifactItem) {gap: 12px;padding: 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: inherit;font: inherit;@@ -498,7 +492,7 @@ async function handleDownload(item: SessionArtifactItem) {.artifact-name {display: block;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;letter-spacing: 0.01em;line-height: 1.35;@@ -510,7 +504,7 @@ async function handleDownload(item: SessionArtifactItem) {.artifact-meta {margin-top: 2px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.3;color: var(--td-text-color-placeholder);display: flex;@@ -528,7 +522,7 @@ async function handleDownload(item: SessionArtifactItem) {height: 30px;border-radius: 7px;color: var(--td-text-color-secondary);- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:not(.t-is-disabled):not(.t-is-loading):hover {background: color-mix(in srgb, var(--td-text-color-primary) 10%, var(--td-bg-color-container));diff --git a/frontend/src/views/chat/components/ChatMemoryStep.vue b/frontend/src/views/chat/components/ChatMemoryStep.vueindex 27cc32495..d2da69496 100644--- a/frontend/src/views/chat/components/ChatMemoryStep.vue+++ b/frontend/src/views/chat/components/ChatMemoryStep.vue@@ -116,7 +116,7 @@ const memoryKindLabel = (kind: string) => {.memory-chevron {flex-shrink: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--agent-step-icon-color, var(--td-text-color-placeholder));}@@ -134,7 +134,7 @@ const memoryKindLabel = (kind: string) => {}.memory-chevron {- font-size: 14px;+ font-size: var(--app-text-base);color: currentColor;}}@@ -163,7 +163,7 @@ const memoryKindLabel = (kind: string) => {border-radius: 3px;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;}@@ -181,11 +181,11 @@ const memoryKindLabel = (kind: string) => {outline: none;background: transparent;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1;cursor: pointer;opacity: 0;- transition: opacity 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:focus-visible {opacity: 1;diff --git a/frontend/src/views/chat/components/RagPipelineProgress.vue b/frontend/src/views/chat/components/RagPipelineProgress.vueindex d0d93597f..d703ad6a1 100644--- a/frontend/src/views/chat/components/RagPipelineProgress.vue+++ b/frontend/src/views/chat/components/RagPipelineProgress.vue@@ -627,10 +627,10 @@ onBeforeUnmount(() => {margin: 0;padding: 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 22px;cursor: pointer;flex: 0 1 auto;@@ -668,7 +668,7 @@ onBeforeUnmount(() => {.tree-root-expand__icon {flex-shrink: 0;- font-size: 14px;+ font-size: var(--app-text-base);color: currentColor;}diff --git a/frontend/src/views/chat/components/SandboxDesktop.vue b/frontend/src/views/chat/components/SandboxDesktop.vueindex 1c079abef..c6ccc0450 100644--- a/frontend/src/views/chat/components/SandboxDesktop.vue+++ b/frontend/src/views/chat/components/SandboxDesktop.vue@@ -155,15 +155,12 @@ defineExpose({ start }).sandbox-desktop__overlay-text {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;}.sandbox-desktop__spinner {- animation: sandbox-desktop-spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}-@keyframes sandbox-desktop-spin {- to { transform: rotate(360deg); }-}</style>diff --git a/frontend/src/views/chat/components/SandboxTerminal.vue b/frontend/src/views/chat/components/SandboxTerminal.vueindex 113ec973c..41517f5a2 100644--- a/frontend/src/views/chat/components/SandboxTerminal.vue+++ b/frontend/src/views/chat/components/SandboxTerminal.vue@@ -368,7 +368,7 @@ defineExpose({display: flex;flex-direction: column;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;cursor: text;}@@ -418,22 +418,13 @@ defineExpose({.sandbox-terminal__overlay-text {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;white-space: pre-line;}.sandbox-terminal__spinner {- animation: sandbox-terminal-spin 0.9s linear infinite;+ animation: wk-spin 0.9s linear infinite;}-@keyframes sandbox-terminal-spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}</style>diff --git a/frontend/src/views/chat/components/ToolResultRenderer.vue b/frontend/src/views/chat/components/ToolResultRenderer.vueindex 2c4afc9b3..26efe10f4 100644--- a/frontend/src/views/chat/components/ToolResultRenderer.vue+++ b/frontend/src/views/chat/components/ToolResultRenderer.vue@@ -162,7 +162,7 @@ const toolArguments = computed(() => props.arguments || {});padding: 0 4px;.fallback-label {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);font-weight: 500;line-height: 1.5;@@ -173,14 +173,14 @@ const toolArguments = computed(() => props.arguments || {});position: relative;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: hidden;margin: 0;padding: 0;.detail-output {font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);padding: 16px;margin: 0;@@ -201,12 +201,12 @@ const toolArguments = computed(() => props.arguments || {});&::-webkit-scrollbar-track {background: var(--td-bg-color-secondarycontainer);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}&::-webkit-scrollbar-thumb {background: var(--td-component-border);- border-radius: 4px;+ border-radius: var(--app-radius-xs);&:hover {background: var(--td-text-color-placeholder);diff --git a/frontend/src/views/chat/components/agent-interaction-card.less b/frontend/src/views/chat/components/agent-interaction-card.lessindex 93a74416b..e39cdc5c6 100644--- a/frontend/src/views/chat/components/agent-interaction-card.less+++ b/frontend/src/views/chat/components/agent-interaction-card.less@@ -31,7 +31,7 @@.results-summary-text {color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}&:hover .results-summary-text {@@ -62,7 +62,7 @@}.action-timer {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;font-variant-numeric: tabular-nums;color: var(--td-text-color-placeholder);@@ -81,7 +81,7 @@.inline-dot {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1;user-select: none;}@@ -96,7 +96,7 @@line-height: 1.55;color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover:not(:disabled) {color: var(--td-text-color-secondary);@@ -153,7 +153,7 @@}.action-timer {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;font-variant-numeric: tabular-nums;color: var(--td-text-color-placeholder);@@ -251,6 +251,6 @@.args-toggle-icon {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/chat/components/answerToolbarCompletion.test.mjs b/frontend/src/views/chat/components/answerToolbarCompletion.test.mjsindex fc101ca2e..fd61a65f4 100644--- a/frontend/src/views/chat/components/answerToolbarCompletion.test.mjs+++ b/frontend/src/views/chat/components/answerToolbarCompletion.test.mjs@@ -52,7 +52,8 @@ test('artifact toolbar uses a folder icon and replaces it while collecting', ()assert.match(agentStream, /answer-toolbar__artifact[\s\S]{0,800}name="folder"/)assert.match(botMessage, /class="answer-toolbar__artifact-spinner"/)assert.match(agentStream, /class="answer-toolbar__artifact-spinner"/)- assert.match(sharedStyles, /answer-toolbar-artifact-spin/)+ // 旋转动画统一为 theme.css 里的全局 wk-spin+ assert.match(sharedStyles, /answer-toolbar__artifact-spinner[\s\S]{0,400}animation: wk-spin/)assert.doesNotMatch(botMessage, /answer-toolbar__artifact[\s\S]{0,800}:loading=/)assert.doesNotMatch(agentStream, /answer-toolbar__artifact[\s\S]{0,800}:loading=/)})@@ -65,7 +66,7 @@ test('follow-up loading is shown compactly inside both answer toolbars', () => {assert.match(botMessage, /transition name="follow-up-toolbar-loading"/)assert.match(agentStream, /transition name="follow-up-toolbar-loading"/)assert.match(sharedStyles, /border-left: 1px solid/)- assert.match(sharedStyles, /font-size: 12px/)+ assert.match(sharedStyles, /font-size: (?:12px|var\(--app-text-sm\))/)assert.match(sharedStyles, /followUpToolbarShimmer 1\.5s linear infinite/)assert.match(sharedStyles, /background-clip: text/)assert.match(sharedStyles, /follow-up-toolbar-loading-leave-to/)diff --git a/frontend/src/views/chat/components/botmsg.vue b/frontend/src/views/chat/components/botmsg.vueindex ced655f1c..42ddb0a26 100644--- a/frontend/src/views/chat/components/botmsg.vue+++ b/frontend/src/views/chat/components/botmsg.vue@@ -538,13 +538,13 @@ onBeforeUnmount(() => {max-height: 300px;width: auto;height: auto;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: block;cursor: pointer;object-fit: contain;margin: 8px 0 8px 16px;border: 0.5px solid var(--td-component-stroke);- transition: transform 0.2s ease;+ transition: transform var(--app-motion-base) ease;&:hover {transform: scale(1.02);@@ -553,9 +553,9 @@ onBeforeUnmount(() => {.bot_msg {// background: var(--td-bg-color-container);- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-primary);- font-size: 16px;+ font-size: var(--app-text-xl);// padding: 10px 12px;margin-right: auto;width: 100%;@@ -579,10 +579,10 @@ onBeforeUnmount(() => {align-items: center;justify-content: center;flex-direction: column;- font-size: 12px;+ font-size: var(--app-text-sm);gap: 4px;margin-left: 16px;- border-radius: 8px;+ border-radius: var(--app-radius-md);}:deep(.t-loading__gradient-conic) {diff --git a/frontend/src/views/chat/components/chatLinksNewTab.test.mjs b/frontend/src/views/chat/components/chatLinksNewTab.test.mjsindex 06264f42b..12de7694c 100644--- a/frontend/src/views/chat/components/chatLinksNewTab.test.mjs+++ b/frontend/src/views/chat/components/chatLinksNewTab.test.mjs@@ -84,6 +84,6 @@ test('citation highlighting waits for drawer entry and only scrolls its own bodytest('references drawer smoothly shifts the chat area while opening', () => {assert.match(referenceDrawer, /\.chat-references-panel \{[\s\S]*?position: fixed;/)assert.match(chatView, /'has-references-panel': referencesDrawerVisible/)- assert.match(chatView, /transition: padding-right 0\.3s cubic-bezier\(0\.22, 0\.61, 0\.36, 1\)/)+ assert.match(chatView, /transition: padding-right (?:0\.3s|var\(--app-motion-slow\)) cubic-bezier\(0\.22, 0\.61, 0\.36, 1\)/)assert.match(chatView, /&\.has-references-panel:not\(\.is-embedded\)[\s\S]*?padding-right:\s*420px/)})diff --git a/frontend/src/views/chat/components/deepThink.vue b/frontend/src/views/chat/components/deepThink.vueindex 506f3340d..05291ee2f 100644--- a/frontend/src/views/chat/components/deepThink.vue+++ b/frontend/src/views/chat/components/deepThink.vue@@ -83,9 +83,9 @@ const toggleFold = () => {.deep-think {display: flex;flex-direction: column;- font-size: 12px;+ font-size: var(--app-text-sm);width: 100%;- border-radius: 8px;+ border-radius: var(--app-radius-md);background-color: var(--td-bg-color-container);border: .5px solid var(--td-component-stroke);box-shadow: 0 2px 4px color-mix(in srgb, var(--td-brand-color) 8%, transparent);@@ -145,7 +145,7 @@ const toggleFold = () => {}.thinking-text {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);white-space: nowrap;}@@ -162,19 +162,19 @@ const toggleFold = () => {}.done-text {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);white-space: nowrap;}}.toggle-icon-wrapper {- font-size: 14px;+ font-size: var(--app-text-base);padding: 0 2px 1px 2px;color: var(--td-brand-color);.toggle-icon {- transition: transform 0.2s;+ transition: transform var(--app-motion-base);}}}@@ -184,7 +184,7 @@ const toggleFold = () => {.content-inner {padding: 8px 14px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;color: var(--td-text-color-secondary);max-height: 200px;diff --git a/frontend/src/views/chat/components/docInfo.vue b/frontend/src/views/chat/components/docInfo.vueindex 927afa7a3..d71154b33 100644--- a/frontend/src/views/chat/components/docInfo.vue+++ b/frontend/src/views/chat/components/docInfo.vue@@ -219,9 +219,9 @@ const getWebSearchDisplayText = (item) => {display: flex;flex-direction: column;- font-size: 12px;+ font-size: var(--app-text-sm);width: 100%;- border-radius: 8px;+ border-radius: var(--app-radius-md);background-color: var(--td-bg-color-container);border: .5px solid var(--td-component-stroke);box-shadow: 0 2px 4px var(--refer-brand-8);@@ -244,7 +244,7 @@ const getWebSearchDisplayText = (item) => {border: 0;box-shadow: none;margin-bottom: 0;- font-size: 13px;+ font-size: var(--app-text-md);.refer_header {padding: 0;@@ -252,7 +252,7 @@ const getWebSearchDisplayText = (item) => {color: var(--td-text-color-secondary);.refer_title span {- font-size: 14px;+ font-size: var(--app-text-base);white-space: normal;}}@@ -281,14 +281,14 @@ const getWebSearchDisplayText = (item) => {.doc-group-title {color: var(--td-text-color-secondary);font-weight: 400;- font-size: 13px;+ font-size: var(--app-text-md);max-width: min(520px, 100%);}.doc-group-count,.doc-chunk-text,.doc-chunk-index {- font-size: 12px;+ font-size: var(--app-text-sm);}.doc-group-icon {@@ -325,12 +325,12 @@ const getWebSearchDisplayText = (item) => {span {white-space: nowrap;- font-size: 12px;+ font-size: var(--app-text-sm);}}.refer_show_icon {- font-size: 14px;+ font-size: var(--app-text-base);padding: 0 2px 1px 2px;color: var(--td-brand-color);flex-shrink: 0;@@ -368,7 +368,7 @@ const getWebSearchDisplayText = (item) => {text-overflow: ellipsis;line-height: 20px;padding: 2px 0;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;border-bottom: 1px dashed var(--td-brand-color);&:hover {@@ -391,9 +391,9 @@ const getWebSearchDisplayText = (item) => {align-items: center;justify-content: space-between;padding: 4px 4px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);cursor: pointer;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:hover {background-color: var(--refer-brand-4);@@ -429,7 +429,7 @@ const getWebSearchDisplayText = (item) => {.doc-group-count {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);margin-left: 6px;white-space: nowrap;flex-shrink: 0;@@ -446,11 +446,11 @@ const getWebSearchDisplayText = (item) => {justify-content: center;width: 22px;height: 22px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-brand-color);cursor: pointer;text-decoration: none;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;&:hover {background-color: var(--refer-brand-12);@@ -467,12 +467,12 @@ const getWebSearchDisplayText = (item) => {.doc-chunk-text {display: block;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;padding: 3px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);cursor: pointer;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;@@ -484,7 +484,7 @@ const getWebSearchDisplayText = (item) => {.doc-chunk-index {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);margin-right: 4px;}}diff --git a/frontend/src/views/chat/components/tool-results/ChunkDetail.vue b/frontend/src/views/chat/components/tool-results/ChunkDetail.vueindex f7ea7536b..f2d37944a 100644--- a/frontend/src/views/chat/components/tool-results/ChunkDetail.vue+++ b/frontend/src/views/chat/components/tool-results/ChunkDetail.vue@@ -62,7 +62,7 @@ const copyToClipboard = () => {code {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);padding: 2px 4px;border-radius: 3px;diff --git a/frontend/src/views/chat/components/tool-results/ContentPopup.vue b/frontend/src/views/chat/components/tool-results/ContentPopup.vueindex 61bbfd831..33f8d79f1 100644--- a/frontend/src/views/chat/components/tool-results/ContentPopup.vue+++ b/frontend/src/views/chat/components/tool-results/ContentPopup.vue@@ -85,7 +85,7 @@ const blocks = computed(() => {max-height: 420px;max-width: 500px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);word-wrap: break-word;@@ -101,7 +101,7 @@ const blocks = computed(() => {}.full-content {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);line-height: 1.7;white-space: pre-wrap;@@ -125,7 +125,7 @@ const blocks = computed(() => {}.chunk-block__label {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);margin-bottom: 4px;@@ -151,7 +151,7 @@ const blocks = computed(() => {.popup-footer__item {font-family: var(--app-font-family-mono);- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);overflow: hidden;text-overflow: ellipsis;diff --git a/frontend/src/views/chat/components/tool-results/DatabaseQuery.vue b/frontend/src/views/chat/components/tool-results/DatabaseQuery.vueindex d7f67d86f..dcee857ec 100644--- a/frontend/src/views/chat/components/tool-results/DatabaseQuery.vue+++ b/frontend/src/views/chat/components/tool-results/DatabaseQuery.vue@@ -50,7 +50,7 @@ const formatValue = (value: any): string => {<style lang="less" scoped>.database-query-display {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}@@ -58,9 +58,9 @@ const formatValue = (value: any): string => {padding: 10px 12px;background: var(--td-brand-color-light);border-left: 3px solid var(--td-brand-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);margin-bottom: 16px;- font-size: 13px;+ font-size: var(--app-text-md);strong {color: var(--td-brand-color);@@ -71,14 +71,14 @@ const formatValue = (value: any): string => {.results-table-container {overflow-x: auto;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}.results-table {width: 100%;border-collapse: collapse;- font-size: 12px;+ font-size: var(--app-text-sm);thead {background: var(--td-bg-color-secondarycontainer);@@ -123,7 +123,7 @@ const formatValue = (value: any): string => {color: var(--td-text-color-placeholder);font-style: italic;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px solid var(--td-component-stroke);}</style>diff --git a/frontend/src/views/chat/components/tool-results/DocumentInfo.vue b/frontend/src/views/chat/components/tool-results/DocumentInfo.vueindex e08e941ee..838da19cb 100644--- a/frontend/src/views/chat/components/tool-results/DocumentInfo.vue+++ b/frontend/src/views/chat/components/tool-results/DocumentInfo.vue@@ -168,11 +168,11 @@ const formatMetadataValue = (value: unknown) => {}.meta-chip {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);border: 1px solid @card-border;- border-radius: 10px;+ border-radius: var(--app-radius-lg);padding: 2px 8px;line-height: 1.5;white-space: nowrap;@@ -197,16 +197,16 @@ const formatMetadataValue = (value: unknown) => {}.doc-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}.status-pill {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-brand-color);- border: 1px solid rgba(7, 192, 95, 0.3);- border-radius: 10px;+ border: 1px solid color-mix(in srgb, var(--td-brand-color) 30%, transparent);+ border-radius: var(--app-radius-lg);padding: 2px 8px;line-height: 1.4;}@@ -230,7 +230,7 @@ const formatMetadataValue = (value: unknown) => {gap: 4px;li {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-primary);}@@ -240,7 +240,7 @@ const formatMetadataValue = (value: unknown) => {display: flex;gap: 10px;margin-bottom: 5px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;&--block {@@ -275,7 +275,7 @@ const formatMetadataValue = (value: unknown) => {gap: 3px;li {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-primary);line-height: 1.5;}@@ -293,7 +293,7 @@ const formatMetadataValue = (value: unknown) => {}.empty-state {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);text-align: center;padding: 14px;@@ -304,7 +304,7 @@ const formatMetadataValue = (value: unknown) => {code {font-family: var(--app-font-family-mono);- font-size: 10px;+ font-size: var(--app-text-2xs);background: var(--td-bg-color-secondarycontainer);padding: 2px 4px;border-radius: 2px;diff --git a/frontend/src/views/chat/components/tool-results/GraphQueryResults.vue b/frontend/src/views/chat/components/tool-results/GraphQueryResults.vueindex 3ee85ecaf..0ea9986ad 100644--- a/frontend/src/views/chat/components/tool-results/GraphQueryResults.vue+++ b/frontend/src/views/chat/components/tool-results/GraphQueryResults.vue@@ -111,26 +111,26 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {}.results-header {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);padding: 4px 0;}.result-index {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);font-weight: 600;}.knowledge-title {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);flex: 1;}.score {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-weight: 500;}diff --git a/frontend/src/views/chat/components/tool-results/KnowledgeBaseList.vue b/frontend/src/views/chat/components/tool-results/KnowledgeBaseList.vueindex 7842e219b..424539dae 100644--- a/frontend/src/views/chat/components/tool-results/KnowledgeBaseList.vue+++ b/frontend/src/views/chat/components/tool-results/KnowledgeBaseList.vue@@ -56,7 +56,7 @@ const props = defineProps<{border: .5px solid @card-border;border-radius: @card-radius;padding: 12px;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: @card-hover-border;@@ -72,13 +72,13 @@ const props = defineProps<{}.kb-index {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-weight: 600;}.kb-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -90,7 +90,7 @@ const props = defineProps<{}.kb-description {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;margin-top: 4px;@@ -98,7 +98,7 @@ const props = defineProps<{code {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);padding: 2px 4px;border-radius: 3px;diff --git a/frontend/src/views/chat/components/tool-results/KnowledgeChunksList.vue b/frontend/src/views/chat/components/tool-results/KnowledgeChunksList.vueindex 4cf312e20..a7ecc947b 100644--- a/frontend/src/views/chat/components/tool-results/KnowledgeChunksList.vue+++ b/frontend/src/views/chat/components/tool-results/KnowledgeChunksList.vue@@ -36,7 +36,7 @@ const summaryHtml = computed(() => getKnowledgeChunksSummaryHtml(t, props.data))}.empty-state {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}}diff --git a/frontend/src/views/chat/components/tool-results/McpToolResult.vue b/frontend/src/views/chat/components/tool-results/McpToolResult.vueindex 072d57c09..11189d4d5 100644--- a/frontend/src/views/chat/components/tool-results/McpToolResult.vue+++ b/frontend/src/views/chat/components/tool-results/McpToolResult.vue@@ -134,13 +134,13 @@ const statusLabel = (status: string) => {</script><style lang="less" scoped>-.mcp-result { min-width: 0; font-size: 12px; color: var(--td-text-color-primary); }+.mcp-result { min-width: 0; font-size: var(--app-text-sm); color: var(--td-text-color-primary); }.mcp-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; color: var(--td-text-color-secondary); }.mcp-server { font-weight: 600; color: var(--td-text-color-primary); }.mcp-empty { margin: 0; color: var(--td-text-color-placeholder); }.mcp-list {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;background: var(--td-bg-color-container);}@@ -164,7 +164,7 @@ const statusLabel = (status: string) => {.mcp-item__index {flex-shrink: 0;min-width: 22px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);}@@ -180,7 +180,7 @@ const statusLabel = (status: string) => {}.mcp-item__meta {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}.mcp-item__chevron {@@ -189,7 +189,7 @@ const statusLabel = (status: string) => {}.mcp-item__desc {margin: 4px 10px 10px 40px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-secondary);overflow-wrap: anywhere;@@ -235,14 +235,14 @@ const statusLabel = (status: string) => {border: 0;background: transparent;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-brand-color);cursor: pointer;}-.mcp-parameters { margin-top: 10px; border: 1px solid var(--td-component-stroke); border-radius: 8px; overflow: hidden; }+.mcp-parameters { margin-top: 10px; border: 1px solid var(--td-component-stroke); border-radius: var(--app-radius-md); overflow: hidden; }.mcp-parameters__label {padding: 6px 12px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);background: var(--td-bg-color-secondarycontainer);@@ -256,7 +256,7 @@ const statusLabel = (status: string) => {.mcp-parameter p { margin: 4px 0 0; color: var(--td-text-color-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }.mcp-definition { margin-top: 10px; }.mcp-definition summary { cursor: pointer; color: var(--td-text-color-secondary); }-pre { margin: 8px 0 0; padding: 10px 12px; background: var(--td-bg-color-secondarycontainer); border-radius: 6px; font: 12px/1.6 var(--app-font-family-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }+pre { margin: 8px 0 0; padding: 10px 12px; background: var(--td-bg-color-secondarycontainer); border-radius: var(--app-radius-sm); font: 12px/1.6 var(--app-font-family-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }.mcp-error { display: flex; align-items: flex-start; gap: 8px; color: var(--td-error-color); }.mcp-error pre { margin: 0; flex: 1; min-width: 0; }</style>diff --git a/frontend/src/views/chat/components/tool-results/PlanDisplay.vue b/frontend/src/views/chat/components/tool-results/PlanDisplay.vueindex e342409c0..47d426cf2 100644--- a/frontend/src/views/chat/components/tool-results/PlanDisplay.vue+++ b/frontend/src/views/chat/components/tool-results/PlanDisplay.vue@@ -36,7 +36,7 @@ const props = defineProps<Props>();<style lang="less" scoped>.plan-display {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);background: transparent;padding: 6px 0 6px 12px;@@ -57,7 +57,7 @@ const props = defineProps<Props>();align-items: flex-start;gap: 7px;padding: 1px 0;- transition: all 0.15s;+ transition: all var(--app-motion-fast);&:last-child {margin-bottom: 0;@@ -98,7 +98,7 @@ const props = defineProps<Props>();flex: 1;color: var(--td-text-color-secondary);line-height: 1.5;- font-size: 12px;+ font-size: var(--app-text-sm);&.completed {text-decoration: line-through;@@ -107,7 +107,7 @@ const props = defineProps<Props>();.sparkle {margin-left: 3px;- font-size: 11px;+ font-size: var(--app-text-xs);}}@@ -116,7 +116,7 @@ const props = defineProps<Props>();text-align: center;color: var(--td-text-color-placeholder);font-style: italic;- font-size: 12px;+ font-size: var(--app-text-sm);}</style>diff --git a/frontend/src/views/chat/components/tool-results/ReadSkillResult.vue b/frontend/src/views/chat/components/tool-results/ReadSkillResult.vueindex b5c70b6fe..dd3b6d2b8 100644--- a/frontend/src/views/chat/components/tool-results/ReadSkillResult.vue+++ b/frontend/src/views/chat/components/tool-results/ReadSkillResult.vue@@ -76,14 +76,14 @@ const bodyLabel = computed(() =>.read-skill-desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-secondary);}.read-skill-heading {margin-bottom: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;color: var(--td-text-color-secondary);@@ -92,14 +92,14 @@ const bodyLabel = computed(() =>.read-skill-stream {min-width: 0;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: hidden;background: var(--td-bg-color-container);}.read-skill-stream-label {padding: 6px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;color: var(--td-text-color-secondary);@@ -113,7 +113,7 @@ const bodyLabel = computed(() =>max-height: 280px;overflow: auto;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);white-space: pre-wrap;@@ -126,7 +126,7 @@ const bodyLabel = computed(() =>&::-webkit-scrollbar-thumb {background: var(--td-component-border);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}</style>diff --git a/frontend/src/views/chat/components/tool-results/RelatedChunks.vue b/frontend/src/views/chat/components/tool-results/RelatedChunks.vueindex 7800ab583..f12361f9e 100644--- a/frontend/src/views/chat/components/tool-results/RelatedChunks.vue+++ b/frontend/src/views/chat/components/tool-results/RelatedChunks.vue@@ -61,17 +61,17 @@ const props = defineProps<{padding: 0;.info-field {- font-size: 11px;+ font-size: var(--app-text-xs);margin-bottom: 4px;.field-label {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);min-width: 70px;}.field-value {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}}@@ -112,18 +112,18 @@ const props = defineProps<{gap: 6px;flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);}.chunk-index {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);font-weight: 600;flex-shrink: 0;}.chunk-position {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}@@ -136,7 +136,7 @@ const props = defineProps<{overflow-y: auto;overflow-x: hidden;padding: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: var(--td-shadow-3);word-wrap: break-word;word-break: break-word;@@ -145,7 +145,7 @@ const props = defineProps<{code {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);padding: 2px 4px;border-radius: 3px;diff --git a/frontend/src/views/chat/components/tool-results/ResultRow.vue b/frontend/src/views/chat/components/tool-results/ResultRow.vueindex 834ca6279..42bff8112 100644--- a/frontend/src/views/chat/components/tool-results/ResultRow.vue+++ b/frontend/src/views/chat/components/tool-results/ResultRow.vue@@ -65,8 +65,8 @@ withDefaults(gap: 6px;min-width: 0;padding: 4px 8px;- border-radius: 4px;- font-size: 12px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);line-height: 1.4;user-select: none;@@ -86,12 +86,12 @@ withDefaults(justify-content: center;width: 20px;height: 20px;- border-radius: 4px;- font-size: 14px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);cursor: pointer;opacity: 0.5;- transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {opacity: 1;@@ -103,7 +103,7 @@ withDefaults(.result-row__index {flex-shrink: 0;min-width: 22px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);}@@ -120,7 +120,7 @@ withDefaults(.result-row__meta {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/chat/components/tool-results/SandboxFilesResult.vue b/frontend/src/views/chat/components/tool-results/SandboxFilesResult.vueindex fe9031a5e..0930da790 100644--- a/frontend/src/views/chat/components/tool-results/SandboxFilesResult.vue+++ b/frontend/src/views/chat/components/tool-results/SandboxFilesResult.vue@@ -82,7 +82,7 @@ function metaFor(item: SkillFileListItem): string {}.empty-state {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/chat/components/tool-results/ShellExecResult.vue b/frontend/src/views/chat/components/tool-results/ShellExecResult.vueindex a70afe4df..f5aabccae 100644--- a/frontend/src/views/chat/components/tool-results/ShellExecResult.vue+++ b/frontend/src/views/chat/components/tool-results/ShellExecResult.vue@@ -84,7 +84,7 @@ const durationLabel = computed(() => {gap: 8px;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);}@@ -92,7 +92,7 @@ const durationLabel = computed(() => {flex-shrink: 0;margin-top: 1px;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1.55;color: var(--td-text-color-placeholder);@@ -103,7 +103,7 @@ const durationLabel = computed(() => {min-width: 0;margin: 0;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);white-space: pre-wrap;@@ -114,7 +114,7 @@ const durationLabel = computed(() => {display: flex;flex-wrap: wrap;gap: 4px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);@@ -125,7 +125,7 @@ const durationLabel = computed(() => {.shell-exec-note,.shell-exec-empty {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);}@@ -133,7 +133,7 @@ const durationLabel = computed(() => {.shell-exec-stream {min-width: 0;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: hidden;background: var(--td-bg-color-container);@@ -144,7 +144,7 @@ const durationLabel = computed(() => {.shell-exec-stream-label {padding: 6px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;color: var(--td-text-color-secondary);@@ -158,7 +158,7 @@ const durationLabel = computed(() => {max-height: 280px;overflow: auto;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);white-space: pre-wrap;@@ -171,7 +171,7 @@ const durationLabel = computed(() => {&::-webkit-scrollbar-thumb {background: var(--td-component-border);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}</style>diff --git a/frontend/src/views/chat/components/tool-results/ThinkingDisplay.vue b/frontend/src/views/chat/components/tool-results/ThinkingDisplay.vueindex 5a62d056f..4f8ffcd04 100644--- a/frontend/src/views/chat/components/tool-results/ThinkingDisplay.vue+++ b/frontend/src/views/chat/components/tool-results/ThinkingDisplay.vue@@ -30,18 +30,18 @@ useI18n(); // ensure component reacts to locale changes if neededgap: 10px;padding: 12px 14px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border-left: 3px solid var(--td-text-color-placeholder);}.thinking-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;line-height: 1.5;}.thinking-text {- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-primary);line-height: 1.65;white-space: pre-wrap;diff --git a/frontend/src/views/chat/components/tool-results/WebFetchResults.vue b/frontend/src/views/chat/components/tool-results/WebFetchResults.vueindex 4780ee6aa..b7899811c 100644--- a/frontend/src/views/chat/components/tool-results/WebFetchResults.vue+++ b/frontend/src/views/chat/components/tool-results/WebFetchResults.vue@@ -250,7 +250,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {}.result-index {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);}@@ -260,10 +260,10 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {align-items: center;gap: 4px;color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;text-decoration: none;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -272,7 +272,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {}.result-domain {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-primary);}@@ -281,13 +281,13 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {display: inline-flex;align-items: center;padding: 2px 6px;- border-radius: 999px;- font-size: 10px;+ border-radius: var(--app-radius-pill);+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1.4;&.status-success {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-success-color);}@@ -302,13 +302,13 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {}&.method {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-success-color);}}.meta-text {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}@@ -326,7 +326,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {}.raw-length {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);margin-left: 4px;font-weight: normal;diff --git a/frontend/src/views/chat/components/tool-results/WebSearchResults.vue b/frontend/src/views/chat/components/tool-results/WebSearchResults.vueindex 60feb2279..85c6c05e5 100644--- a/frontend/src/views/chat/components/tool-results/WebSearchResults.vue+++ b/frontend/src/views/chat/components/tool-results/WebSearchResults.vue@@ -170,7 +170,7 @@ const formatDate = (dateStr: string): string => {display: flex;align-items: center;gap: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);/* Align with title start (after index column) */padding-left: 34px;@@ -184,7 +184,7 @@ const formatDate = (dateStr: string): string => {display: inline-flex;align-items: center;padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);color: var(--td-text-color-primary);@@ -192,7 +192,7 @@ const formatDate = (dateStr: string): string => {}.group-count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -222,7 +222,7 @@ const formatDate = (dateStr: string): string => {}.result-index {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);flex-shrink: 0;@@ -237,7 +237,7 @@ const formatDate = (dateStr: string): string => {flex: 1;text-decoration: none;color: var(--td-text-color-primary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -249,7 +249,7 @@ const formatDate = (dateStr: string): string => {}.result-title {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;color: inherit;@@ -272,7 +272,7 @@ const formatDate = (dateStr: string): string => {flex: 1;.result-title {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;color: var(--td-text-color-primary);@@ -286,7 +286,7 @@ const formatDate = (dateStr: string): string => {margin-top: 4px;padding-top: 4px;border-top: 1px solid var(--td-bg-color-secondarycontainer);- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);.meta-item {@@ -296,7 +296,7 @@ const formatDate = (dateStr: string): string => {}.meta-icon {- font-size: 10px;+ font-size: var(--app-text-2xs);}}@@ -304,10 +304,10 @@ const formatDate = (dateStr: string): string => {padding: 16px;text-align: center;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-style: italic;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px dashed var(--td-component-stroke);}</style>diff --git a/frontend/src/views/chat/components/tool-results/WikiEditResult.vue b/frontend/src/views/chat/components/tool-results/WikiEditResult.vueindex f0b691c92..1fe9e078b 100644--- a/frontend/src/views/chat/components/tool-results/WikiEditResult.vue+++ b/frontend/src/views/chat/components/tool-results/WikiEditResult.vue@@ -169,13 +169,13 @@ const headerTitle = computed(() => {.wiki-header {.wiki-icon {- font-size: 14px;+ font-size: var(--app-text-base);width: 20px;height: 20px;display: inline-flex;align-items: center;justify-content: center;- border-radius: 4px;+ border-radius: var(--app-radius-xs);flex-shrink: 0;&.created {@@ -184,7 +184,7 @@ const headerTitle = computed(() => {}&.updated {color: var(--td-brand-color);- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);}&.renamed {color: var(--td-warning-color);@@ -197,17 +197,17 @@ const headerTitle = computed(() => {}.wiki-title-text {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}}.action-badge {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;padding: 2px 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);line-height: 1.5;&.created {@@ -217,8 +217,8 @@ const headerTitle = computed(() => {}&.updated {color: var(--td-brand-color);- background: rgba(7, 192, 95, 0.1);- border: 1px solid rgba(7, 192, 95, 0.2);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);+ border: 1px solid color-mix(in srgb, var(--td-brand-color) 20%, transparent);}&.renamed {color: var(--td-warning-color);@@ -235,10 +235,10 @@ const headerTitle = computed(() => {.diff-block {margin-top: 8px;border: 1px solid @card-border;- border-radius: 4px;+ border-radius: var(--app-radius-xs);overflow: hidden;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);}.diff-line {@@ -286,7 +286,7 @@ const headerTitle = computed(() => {font-weight: 600;}.rename-arrow {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-placeholder);}}@@ -299,7 +299,7 @@ const headerTitle = computed(() => {padding-left: 90px;.affected-slug {- font-size: 11px;+ font-size: var(--app-text-xs);padding: 2px 6px;border-radius: 3px;background: var(--td-bg-color-secondarycontainer);@@ -309,7 +309,7 @@ const headerTitle = computed(() => {code {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);padding: 2px 5px;border-radius: 3px;diff --git a/frontend/src/views/chat/components/tool-results/tool-results.less b/frontend/src/views/chat/components/tool-results/tool-results.lessindex 63d80a823..9756aab7f 100644--- a/frontend/src/views/chat/components/tool-results/tool-results.less+++ b/frontend/src/views/chat/components/tool-results/tool-results.less@@ -15,7 +15,7 @@@card-hover-border: var(--td-brand-color);@card-radius: 6px;@card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);-@card-shadow-hover: 0 2px 6px rgba(7, 192, 95, 0.08);+@card-shadow-hover: 0 2px 6px color-mix(in srgb, var(--td-brand-color) 8%, transparent);// Animation timing@transition-time: 0.2s;@@ -31,7 +31,7 @@align-items: center;padding: 2px 6px;border-radius: 3px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;gap: 3px;line-height: 1.4;@@ -63,7 +63,7 @@align-items: center;padding: 2px 6px;border-radius: 3px;- font-size: 10px;+ font-size: var(--app-text-2xs);background-color: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);gap: 2px;@@ -96,10 +96,10 @@gap: 8px;position: relative;z-index: 1;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;&:hover {- background: rgba(7, 192, 95, 0.04);+ background: color-mix(in srgb, var(--td-brand-color) 4%, transparent);}* {@@ -112,7 +112,7 @@align-items: center;gap: 6px;flex: 1;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -121,7 +121,7 @@display: flex;align-items: center;gap: 6px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);flex-shrink: 0;}@@ -143,9 +143,9 @@}.expand-icon {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);- transition: transform 0.15s ease, color 0.15s ease;+ transition: transform var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&.expanded {transform: rotate(180deg);@@ -162,7 +162,7 @@}.info-section-title {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-secondary);text-transform: uppercase;@@ -174,7 +174,7 @@display: flex;gap: 8px;margin-bottom: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;.field-label {@@ -193,15 +193,15 @@// Statistics card (for KB counts, etc.).stats-card {- background: rgba(7, 192, 95, 0.04);- border: 1px solid rgba(7, 192, 95, 0.15);+ background: color-mix(in srgb, var(--td-brand-color) 4%, transparent);+ border: 1px solid color-mix(in srgb, var(--td-brand-color) 15%, transparent);border-radius: @card-radius;padding: 10px 12px;margin-bottom: 10px;}.stats-title {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 6px;@@ -214,7 +214,7 @@}.stats-item {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);display: flex;justify-content: space-between;@@ -244,7 +244,7 @@// Content preview (truncated).content-preview {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);line-height: 1.6;max-height: 60px;@@ -257,33 +257,33 @@// Full content.full-content {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);line-height: 1.6;white-space: pre-wrap;word-break: break-word;padding: 10px;background: var(--td-bg-color-secondarycontainer);- border-radius: 4px;+ border-radius: var(--app-radius-xs);border: 1px solid @card-border;}// Action buttons.action-button {padding: 4px 10px;- font-size: 11px;- border-radius: 4px;+ font-size: var(--app-text-xs);+ border-radius: var(--app-radius-xs);border: 1px solid @card-border;background: var(--td-bg-color-container);color: var(--td-text-color-secondary);cursor: pointer;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;font-weight: 500;&:hover {border-color: @card-hover-border;color: @card-hover-border;- background: rgba(7, 192, 95, 0.04);+ background: color-mix(in srgb, var(--td-brand-color) 4%, transparent);}}@@ -292,7 +292,7 @@padding: 20px;text-align: center;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-style: italic;background: var(--td-bg-color-secondarycontainer);border-radius: @card-radius;@@ -302,10 +302,10 @@// Code block.code-block {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);padding: 8px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);border: 1px solid @card-border;overflow-x: auto;line-height: 1.5;diff --git a/frontend/src/views/chat/components/usermsg.vue b/frontend/src/views/chat/components/usermsg.vueindex e713283f2..b447e0edf 100644--- a/frontend/src/views/chat/components/usermsg.vue+++ b/frontend/src/views/chat/components/usermsg.vue@@ -266,11 +266,11 @@ const closePreImg = () => {align-items: flex-start;gap: 4px;flex: 1 0 0;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);margin-left: auto;color: var(--td-text-color-primary);- font-size: 16px;+ font-size: var(--app-text-xl);line-height: 1.6;text-align: left;word-break: break-word;@@ -301,19 +301,19 @@ const closePreImg = () => {align-items: center;gap: 10px;padding: 8px 12px;- border-radius: 8px;- border: 1px solid var(--td-border-level-1-color, #e7e7e7);- background: var(--td-bg-color-container, #fff);+ border-radius: var(--app-radius-md);+ border: 1px solid var(--td-border-level-1-color);+ background: var(--td-bg-color-container);max-width: 260px;min-width: 160px;cursor: default;&.is-previewable {cursor: pointer;- transition: border-color 0.2s, box-shadow 0.2s;+ transition: border-color var(--app-motion-base), box-shadow var(--app-motion-base);&:hover {- border-color: var(--td-brand-color-2, rgba(0, 82, 217, 0.25));+ border-color: var(--td-brand-color-2);box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);}}@@ -334,17 +334,17 @@ const closePreImg = () => {}.attachment_card_name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;- color: var(--td-text-color-primary, #333);+ color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.attachment_card_meta {- font-size: 11px;- color: var(--td-text-color-secondary, #999);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);white-space: nowrap;box-sizing: border-box;}@@ -354,10 +354,10 @@ const closePreImg = () => {width: 120px;height: 120px;object-fit: cover;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- border: 1px solid var(--td-border-level-2-color, #e7e7e7);- transition: opacity 0.2s;+ border: 1px solid var(--td-border-level-2-color);+ transition: opacity var(--app-motion-base);&:hover {opacity: 0.85;@@ -369,29 +369,29 @@ const closePreImg = () => {align-items: center;padding: 1px 6px;border-radius: 3px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 18px;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-placeholder);- border: 1px solid var(--td-border-level-2-color, #e7e7e7);+ border: 1px solid var(--td-border-level-2-color);&.channel-web {color: var(--td-brand-color);background: var(--td-brand-color-light);- border-color: var(--td-brand-color-2, rgba(0, 82, 217, 0.1));+ border-color: var(--td-brand-color-2);}&.channel-api {color: var(--td-success-color);- background: var(--td-success-color-1, rgba(0, 168, 112, 0.06));- border-color: var(--td-success-color-2, rgba(0, 168, 112, 0.15));+ background: var(--td-success-color-1);+ border-color: var(--td-success-color-2);}&.channel-im {color: var(--td-warning-color);- background: var(--td-warning-color-1, rgba(237, 123, 0, 0.06));- border-color: var(--td-warning-color-2, rgba(237, 123, 0, 0.15));+ background: var(--td-warning-color-1);+ border-color: var(--td-warning-color-2);}}@@ -404,9 +404,9 @@ html[theme-mode="dark"] {</style><style scoped>-.steer-failure { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--td-text-color-secondary); margin-bottom: 4px; }+.steer-failure { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: var(--app-text-sm); color: var(--td-text-color-secondary); margin-bottom: 4px; }.steer-failure { margin-top: 6px; color: var(--td-error-color); }-.steer-failure button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }+.steer-failure button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: var(--app-radius-sm); background: transparent; color: inherit; cursor: pointer; }.steer-failure button:hover { background: var(--td-bg-color-secondarycontainer); }.user_msg_meta {@@ -423,7 +423,7 @@ html[theme-mode="dark"] {}.user_msg_time {- font-size: 12px;+ font-size: var(--app-text-sm);font-variant-numeric: tabular-nums;line-height: 20px;}@@ -448,10 +448,10 @@ html[theme-mode="dark"] {height: 28px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: inherit;- font-size: 16px;+ font-size: var(--app-text-xl);cursor: pointer;}diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vueindex c257c7781..8e8e28d1f 100644--- a/frontend/src/views/chat/index.vue+++ b/frontend/src/views/chat/index.vue@@ -1596,9 +1596,10 @@ onBeforeRouteUpdate((to, from, next) => {</script><style lang="less" scoped>.chat {- font-size: 20px;- // 右侧不留 padding,滚动条贴到内容区最右缘- padding: 0 0 20px 20px;+ // 水平方向不留 padding,让滚动条贴到内容区最右缘;+ // 消息列与输入列各自用 --chat-content-inset 做左右对称的留白(窄屏时才可见)。+ padding: 0 0 20px 0;+ --chat-content-inset: 20px;// 右侧抽屉让出的宽度。回到底部按钮按「剩余聊天列」居中,而不是整页 50%。--chat-right-inset: 0px;box-sizing: border-box;@@ -1628,7 +1629,7 @@ onBeforeRouteUpdate((to, from, next) => {&:not(.is-embedded) {@media (min-width: 960px) {- transition: padding-right 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);+ transition: padding-right var(--app-motion-slow) cubic-bezier(0.22, 0.61, 0.36, 1);}}@@ -1720,7 +1721,7 @@ onBeforeRouteUpdate((to, from, next) => {display: inline-flex;align-items: center;padding: 2px;- border-radius: 8px;+ border-radius: var(--app-radius-md);box-sizing: border-box;background: color-mix(in srgb, var(--td-bg-color-container) 88%, transparent);backdrop-filter: blur(8px);@@ -1740,7 +1741,7 @@ onBeforeRouteUpdate((to, from, next) => {color: var(--td-text-color-placeholder);background: transparent;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {color: var(--td-text-color-primary);@@ -1796,7 +1797,7 @@ onBeforeRouteUpdate((to, from, next) => {justify-content: center;cursor: pointer;color: var(--td-text-color-secondary);- transition: left 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;+ transition: left var(--app-motion-slow) cubic-bezier(0.22, 0.61, 0.36, 1), background-color var(--app-motion-base) ease, color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -1811,7 +1812,7 @@ onBeforeRouteUpdate((to, from, next) => {.scroll-btn-fade-enter-active,.scroll-btn-fade-leave-active {- transition: opacity 0.2s ease, transform 0.2s ease;+ transition: opacity var(--app-motion-base) ease, transform var(--app-motion-base) ease;}.scroll-btn-fade-enter-from,@@ -1862,6 +1863,11 @@ onBeforeRouteUpdate((to, from, next) => {box-sizing: border-box;position: relative;+ &:not(.is-embedded) {+ padding: 0 var(--chat-content-inset, 20px);+ max-width: calc(960px + 2 * var(--chat-content-inset, 20px));+ }+&.is-embedded {max-width: 100%;width: 100%;@@ -1881,6 +1887,12 @@ onBeforeRouteUpdate((to, from, next) => {flex: 1;margin: 0 auto;width: 100%;+ box-sizing: border-box;++ &:not(.is-embedded) {+ padding: 0 var(--chat-content-inset, 20px);+ max-width: calc(960px + 2 * var(--chat-content-inset, 20px));+ }/*给每条消息加 layout/style containment:@@ -1930,13 +1942,7 @@ onBeforeRouteUpdate((to, from, next) => {border: 1.5px solid var(--td-component-stroke);border-top-color: var(--td-text-color-secondary);border-radius: 50%;- animation: chatGlobalWaitSpin 0.8s linear infinite;- }-}--@keyframes chatGlobalWaitSpin {- to {- transform: rotate(360deg);+ animation: wk-spin 0.8s linear infinite;}}@@ -1959,7 +1965,7 @@ onBeforeRouteUpdate((to, from, next) => {@import '../../components/css/suggested-questions.less';.suggested-questions-container {- transition: min-height 0.3s @suggested-ease;+ transition: min-height var(--app-motion-slow) @suggested-ease;}.suggested-questions-inner {diff --git a/frontend/src/views/creatChat/creatChat.vue b/frontend/src/views/creatChat/creatChat.vueindex 8850ec654..2abbf832a 100644--- a/frontend/src/views/creatChat/creatChat.vue+++ b/frontend/src/views/creatChat/creatChat.vue@@ -280,7 +280,7 @@ const handleKBEditorSuccess = (kbId: string) => {height: 32px;justify-content: center;align-items: center;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);box-shadow: var(--td-shadow-1);margin-right: 12px;@@ -320,7 +320,7 @@ const handleKBEditorSuccess = (kbId: string) => {}.sq-slide-fade-leave-active {- transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1),+ transition: opacity var(--app-motion-fast) cubic-bezier(0.4, 0, 1, 1),transform 0.15s cubic-bezier(0.4, 0, 1, 1);}@@ -362,46 +362,6 @@ const handleKBEditorSuccess = (kbId: string) => {transform: scale(0.98);}}--@media (max-width: 1250px) and (min-width: 1045px) {- .answers-input {- transform: translateX(-329px);- }-- :deep(.t-textarea__inner) {- width: 654px !important;- }-}--@media (max-width: 1045px) {- .answers-input {- transform: translateX(-250px);- }-- :deep(.t-textarea__inner) {- width: 500px !important;- }-}--@media (max-width: 750px) {- .answers-input {- transform: translateX(-250px);- }-- :deep(.t-textarea__inner) {- width: 340px !important;- }-}--@media (max-width: 600px) {- .answers-input {- transform: translateX(-250px);- }-- :deep(.t-textarea__inner) {- width: 300px !important;- }-}</style><style lang="less">.del-menu-popup {diff --git a/frontend/src/views/dev/MarkdownTestPage.vue b/frontend/src/views/dev/MarkdownTestPage.vueindex 66d8b680b..9e0e5c267 100644--- a/frontend/src/views/dev/MarkdownTestPage.vue+++ b/frontend/src/views/dev/MarkdownTestPage.vue@@ -528,32 +528,32 @@ watch(customInput, () => {}.page-title {- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 700;margin-bottom: 4px;}.page-desc {- color: var(--td-text-color-secondary, #666);- font-size: 14px;+ color: var(--td-text-color-secondary);+ font-size: var(--app-text-base);margin-bottom: 32px;}.test-section {margin-bottom: 36px;- border-bottom: 1px solid var(--td-component-stroke, #e5e5e5);+ border-bottom: 1px solid var(--td-component-stroke);padding-bottom: 24px;h2 {- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;margin-bottom: 12px;}}.test-hint {- font-size: 13px;- color: var(--td-text-color-secondary, #999);+ font-size: var(--app-text-md);+ color: var(--td-text-color-secondary);margin-bottom: 8px;}@@ -562,11 +562,11 @@ watch(customInput, () => {}.test-raw {- background: var(--td-bg-color-secondarycontainer, #f5f5f5);+ background: var(--td-bg-color-secondarycontainer);padding: 6px 10px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);overflow-x: auto;code {@@ -577,9 +577,9 @@ watch(customInput, () => {.test-rendered {padding: 8px 12px;- border: 1px solid var(--td-component-stroke, #e5e5e5);- border-radius: 6px;- background: var(--td-bg-color-container, #fff);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);+ background: var(--td-bg-color-container);}.stream-controls {@@ -591,14 +591,14 @@ watch(customInput, () => {.btn {padding: 4px 16px;- border: 1px solid var(--td-component-stroke, #ccc);- border-radius: 4px;- background: var(--td-bg-color-container, #fff);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-xs);+ background: var(--td-bg-color-container);cursor: pointer;- font-size: 13px;+ font-size: var(--app-text-md);&:hover {- background: var(--td-bg-color-container-hover, #f0f0f0);+ background: var(--td-bg-color-container-hover);}&:disabled {@@ -608,7 +608,7 @@ watch(customInput, () => {}.speed-label {- font-size: 13px;+ font-size: var(--app-text-md);display: flex;align-items: center;gap: 6px;@@ -622,9 +622,9 @@ watch(customInput, () => {width: 100%;padding: 10px;font-family: var(--app-font-family-mono);- font-size: 13px;- border: 1px solid var(--td-component-stroke, #ccc);- border-radius: 6px;+ font-size: var(--app-text-md);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);resize: vertical;box-sizing: border-box;margin-bottom: 12px;@@ -640,7 +640,7 @@ watch(customInput, () => {}.action-name {- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.55;color: var(--td-text-color-secondary);}diff --git a/frontend/src/views/embed/EmbedBotMessage.vue b/frontend/src/views/embed/EmbedBotMessage.vueindex c230184a1..379b19ff6 100644--- a/frontend/src/views/embed/EmbedBotMessage.vue+++ b/frontend/src/views/embed/EmbedBotMessage.vue@@ -206,9 +206,9 @@ onMounted(() => {@import '../../components/css/chat-citations.less';.embed-bot-msg {- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-primary);- font-size: 16px;+ font-size: var(--app-text-xl);margin-right: auto;max-width: 100%;box-sizing: border-box;@@ -244,10 +244,10 @@ onMounted(() => {z-index: 10000;max-width: 320px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-primary);diff --git a/frontend/src/views/embed/EmbedChatCore.vue b/frontend/src/views/embed/EmbedChatCore.vueindex 6845877bd..a566a2e36 100644--- a/frontend/src/views/embed/EmbedChatCore.vue+++ b/frontend/src/views/embed/EmbedChatCore.vue@@ -435,7 +435,7 @@ watch(&__title {margin: 0 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-secondary);}@@ -451,12 +451,12 @@ watch(width: 100%;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);text-align: left;cursor: pointer;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);- transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {border-color: color-mix(in srgb, var(--td-text-color-primary) 10%, var(--td-component-stroke));@@ -475,7 +475,7 @@ watch(}&__text {- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.45;color: var(--td-text-color-primary);}@@ -491,7 +491,7 @@ watch(margin: 0;max-width: min(88%, 520px);padding: 10px 14px;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.55;color: var(--td-text-color-primary);white-space: pre-wrap;@@ -499,12 +499,12 @@ watch(background: color-mix(in srgb,var(--embed-primary, var(--td-brand-color)) 7%,- var(--td-bg-color-container, #fff)+ var(--td-bg-color-container));border: 1px solid color-mix(in srgb,var(--embed-primary, var(--td-brand-color)) 14%,- var(--td-component-stroke, #e7e7e7)+ var(--td-component-stroke));border-radius: 4px 14px 14px 14px;box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);@@ -536,13 +536,7 @@ watch(border: 1.5px solid var(--td-component-stroke);border-top-color: var(--td-text-color-secondary);border-radius: 50%;- animation: embedChatTypingSpin 0.8s linear infinite;-}--@keyframes embedChatTypingSpin {- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}@media (prefers-reduced-motion: reduce) {@@ -578,7 +572,7 @@ watch(.sk-line {height: 14px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);background-size: 200% 100%;animation: sk-shimmer 1.2s ease-in-out infinite;@@ -613,7 +607,7 @@ watch(.scroll-btn-fade-enter-active,.scroll-btn-fade-leave-active {- transition: opacity 0.2s ease, transform 0.2s ease;+ transition: opacity var(--app-motion-base) ease, transform var(--app-motion-base) ease;}.scroll-btn-fade-enter-from,diff --git a/frontend/src/views/embed/EmbedPage.vue b/frontend/src/views/embed/EmbedPage.vueindex 627a2913a..fff1bb473 100644--- a/frontend/src/views/embed/EmbedPage.vue+++ b/frontend/src/views/embed/EmbedPage.vue@@ -176,7 +176,7 @@ watch(headerTitle, (title) => {height: 100vh;display: flex;flex-direction: column;- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);overflow: hidden;/* 子组件(含 AgentStreamDisplay)内凡用 --td-brand-color 的 loading / 强调色均跟随渠道主题 */--td-brand-color: var(--embed-primary, var(--td-brand-color));@@ -213,14 +213,14 @@ watch(headerTitle, (title) => {justify-content: center;width: 36px;height: 36px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);flex-shrink: 0;background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);}&__avatar {- font-size: 20px;+ font-size: var(--app-text-3xl);line-height: 1;}@@ -240,7 +240,7 @@ watch(headerTitle, (title) => {&__title {margin: 0;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -251,7 +251,7 @@ watch(headerTitle, (title) => {&__subtitle {margin: 2px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);overflow: hidden;diff --git a/frontend/src/views/embed/EmbedUserMessage.vue b/frontend/src/views/embed/EmbedUserMessage.vueindex e80ea8c5c..a5f390882 100644--- a/frontend/src/views/embed/EmbedUserMessage.vue+++ b/frontend/src/views/embed/EmbedUserMessage.vue@@ -109,11 +109,11 @@ const formatFileSize = (bytes: number): string => {width: max-content;max-width: min(76%, 680px);padding: 8px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);margin-left: auto;color: var(--td-text-color-primary);- font-size: 16px;+ font-size: var(--app-text-xl);line-height: 1.6;text-align: left;word-break: break-word;@@ -134,8 +134,8 @@ const formatFileSize = (bytes: number): string => {width: 120px;height: 120px;object-fit: cover;- border-radius: 6px;- border: 1px solid var(--td-border-level-2-color, #e7e7e7);+ border-radius: var(--app-radius-sm);+ border: 1px solid var(--td-border-level-2-color);cursor: pointer;}@@ -149,15 +149,15 @@ const formatFileSize = (bytes: number): string => {.user_attachment_card {padding: 8px 12px;- border-radius: 8px;- border: 1px solid var(--td-border-level-1-color, #e7e7e7);- background: var(--td-bg-color-container, #fff);+ border-radius: var(--app-radius-md);+ border: 1px solid var(--td-border-level-1-color);+ background: var(--td-bg-color-container);max-width: 260px;min-width: 120px;}.attachment_card_name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;overflow: hidden;text-overflow: ellipsis;@@ -165,8 +165,8 @@ const formatFileSize = (bytes: number): string => {}.attachment_card_meta {- font-size: 11px;- color: var(--td-text-color-secondary, #999);+ font-size: var(--app-text-xs);+ color: var(--td-text-color-secondary);}html[theme-mode='dark'] .user_msg {diff --git a/frontend/src/views/integrations/ApiIntegrationSettings.vue b/frontend/src/views/integrations/ApiIntegrationSettings.vueindex 91fa1c9d5..b80f2aac9 100644--- a/frontend/src/views/integrations/ApiIntegrationSettings.vue+++ b/frontend/src/views/integrations/ApiIntegrationSettings.vue@@ -1796,7 +1796,7 @@ onBeforeUnmount(stopPlayground)}.link-icon {- font-size: 13px;+ font-size: var(--app-text-md);}.desktop-api-control {@@ -1816,7 +1816,7 @@ onBeforeUnmount(stopPlayground):deep(input) {font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -1847,7 +1847,7 @@ onBeforeUnmount(stopPlayground)display: block;margin-bottom: 6px;color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;}@@ -1855,7 +1855,7 @@ onBeforeUnmount(stopPlayground)p {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;}}@@ -1868,7 +1868,7 @@ onBeforeUnmount(stopPlayground)display: flex;flex-direction: column;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);overflow: hidden;}@@ -1880,7 +1880,7 @@ onBeforeUnmount(stopPlayground)gap: 8px;min-height: 88px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);}.api-key-table-wrap {@@ -1905,14 +1905,14 @@ onBeforeUnmount(stopPlayground)th {background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;}td {color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.45;}@@ -1966,7 +1966,7 @@ onBeforeUnmount(stopPlayground)display: block;min-width: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;overflow: hidden;text-overflow: ellipsis;@@ -1978,7 +1978,7 @@ onBeforeUnmount(stopPlayground)max-width: 100%;color: var(--td-text-color-secondary);font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;overflow: hidden;text-overflow: ellipsis;@@ -2001,10 +2001,10 @@ onBeforeUnmount(stopPlayground)height: 24px;padding: 0 9px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 22px;overflow: hidden;@@ -2031,10 +2031,10 @@ onBeforeUnmount(stopPlayground)max-width: 100%;height: 22px;padding: 0 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: color-mix(in srgb, var(--td-success-color) 10%, var(--td-bg-color-container));color: var(--td-success-color);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 20px;overflow: hidden;@@ -2066,7 +2066,7 @@ onBeforeUnmount(stopPlayground)gap: 12px;min-height: 24px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}@@ -2121,7 +2121,7 @@ onBeforeUnmount(stopPlayground)align-items: center;gap: 8px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.45;@@ -2138,14 +2138,14 @@ onBeforeUnmount(stopPlayground)p {margin: 2px 0 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}}:deep(.t-input),:deep(.t-select__wrap) {- border-radius: 4px;+ border-radius: var(--app-radius-xs);}:deep(.t-input) {@@ -2164,7 +2164,7 @@ onBeforeUnmount(stopPlayground).scope-hint {margin: 8px 0 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;}@@ -2180,14 +2180,14 @@ onBeforeUnmount(stopPlayground)display: block;margin-bottom: 6px;color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;}p {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;}}@@ -2195,7 +2195,7 @@ onBeforeUnmount(stopPlayground).principal-section__scope {margin-top: 6px !important;color: var(--td-text-color-placeholder) !important;- font-size: 12px !important;+ font-size: var(--app-text-sm) !important;}.mode-radio {@@ -2214,7 +2214,7 @@ onBeforeUnmount(stopPlayground).mode-callout {position: relative;padding: 12px 14px;- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-secondarycontainer);overflow: hidden;@@ -2231,7 +2231,7 @@ onBeforeUnmount(stopPlayground)display: block;margin-bottom: 5px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.4;}@@ -2240,7 +2240,7 @@ onBeforeUnmount(stopPlayground)p {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;}}@@ -2250,7 +2250,7 @@ onBeforeUnmount(stopPlayground)display: flex;flex-direction: column;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);overflow: hidden;}@@ -2272,7 +2272,7 @@ onBeforeUnmount(stopPlayground)label {display: block;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.4;}@@ -2280,7 +2280,7 @@ onBeforeUnmount(stopPlayground)p {margin: 5px 0 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}}@@ -2333,7 +2333,7 @@ onBeforeUnmount(stopPlayground).secret-saved-hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-warning-color);}@@ -2366,7 +2366,7 @@ onBeforeUnmount(stopPlayground)}:deep(.t-tabs__nav-item) {- font-size: 13px;+ font-size: var(--app-text-md);height: 36px;line-height: 36px;color: var(--td-text-color-secondary);@@ -2384,7 +2384,7 @@ onBeforeUnmount(stopPlayground).code-panel {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);overflow: hidden;@@ -2399,7 +2399,7 @@ onBeforeUnmount(stopPlayground)}&__label {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-secondary);}@@ -2423,7 +2423,7 @@ onBeforeUnmount(stopPlayground)padding: 10px 12px;overflow: auto;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-primary);background: transparent;@@ -2432,7 +2432,7 @@ onBeforeUnmount(stopPlayground).mono-input :deep(input) {font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);}.fixed-header-name {@@ -2440,18 +2440,18 @@ onBeforeUnmount(stopPlayground)max-width: 100%;padding: 7px 10px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;overflow-wrap: anywhere;}.mono-textarea :deep(.t-textarea__inner) {font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);}.playground-entry {@@ -2461,7 +2461,7 @@ onBeforeUnmount(stopPlayground)gap: 16px;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);&__info {@@ -2471,14 +2471,14 @@ onBeforeUnmount(stopPlayground)display: block;margin-bottom: 4px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;}p {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}}@@ -2498,7 +2498,7 @@ onBeforeUnmount(stopPlayground).drawer-form-label {display: block;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -2506,7 +2506,7 @@ onBeforeUnmount(stopPlayground).drawer-form-desc {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;&--error {@@ -2517,14 +2517,14 @@ onBeforeUnmount(stopPlayground).footer-test-message {min-width: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;}.playground-empty {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;}@@ -2536,7 +2536,7 @@ onBeforeUnmount(stopPlayground).playground-step {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);overflow: hidden;@@ -2549,7 +2549,7 @@ onBeforeUnmount(stopPlayground)border-bottom: 1px solid var(--td-component-stroke);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;}@@ -2560,7 +2560,7 @@ onBeforeUnmount(stopPlayground)overflow: auto;color: var(--td-text-color-primary);font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;white-space: pre-wrap;word-break: break-word;@@ -2601,14 +2601,14 @@ onBeforeUnmount(stopPlayground)display: block;margin-bottom: 4px;color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;}p {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;}}diff --git a/frontend/src/views/integrations/IntegrationSettingsSection.vue b/frontend/src/views/integrations/IntegrationSettingsSection.vueindex d7f9e2e2f..d25bb119c 100644--- a/frontend/src/views/integrations/IntegrationSettingsSection.vue+++ b/frontend/src/views/integrations/IntegrationSettingsSection.vue@@ -87,6 +87,8 @@ watch(</script><style scoped lang="less">+@import (reference) '@/components/css/settings-section.less';+.integrations-settings {display: flex;flex-direction: column;@@ -101,22 +103,7 @@ watch(}.section-header {- margin-bottom: 18px;-- h2 {- margin: 0 0 6px;- color: var(--td-text-color-primary);- font-size: 18px;- font-weight: 600;- line-height: 1.35;- }-}--.section-description {- margin: 0;- color: var(--td-text-color-secondary);- font-size: 13px;- line-height: 1.6;+ .settings-section-header();}.doc-link {@@ -133,6 +120,6 @@ watch(}.link-icon {- font-size: 13px;+ font-size: var(--app-text-md);}</style>diff --git a/frontend/src/views/integrations/McpServerIntegrationSettings.vue b/frontend/src/views/integrations/McpServerIntegrationSettings.vueindex 1d5872fc1..0cd607a47 100644--- a/frontend/src/views/integrations/McpServerIntegrationSettings.vue+++ b/frontend/src/views/integrations/McpServerIntegrationSettings.vue@@ -568,7 +568,7 @@ onMounted(() => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -585,7 +585,7 @@ onMounted(() => {.form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);@@ -618,7 +618,7 @@ onMounted(() => {.tool-group {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 10px 12px;}@@ -630,7 +630,7 @@ onMounted(() => {}.tool-group__name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}@@ -655,26 +655,26 @@ onMounted(() => {.tool-item__code {margin-left: 6px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);background: var(--td-bg-color-secondarycontainer);padding: 1px 5px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.code-toolbar {position: relative;margin: 6px 0 10px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}.code-toolbar__code {margin: 0;padding: 10px 40px 10px 12px;- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);line-height: 1.5;white-space: pre-wrap;word-break: break-all;@@ -714,7 +714,7 @@ onMounted(() => {gap: 6px;flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);padding: 0;border: none;@@ -757,7 +757,7 @@ onMounted(() => {display: flex;align-items: center;justify-content: center;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);@@ -777,7 +777,7 @@ onMounted(() => {}.im-step-check {- font-size: 12px;+ font-size: var(--app-text-sm);}.im-step-body {diff --git a/frontend/src/views/integrations/integration-landing.less b/frontend/src/views/integrations/integration-landing.lessindex 80b16362e..4d3c8bb3a 100644--- a/frontend/src/views/integrations/integration-landing.less+++ b/frontend/src/views/integrations/integration-landing.less@@ -28,7 +28,7 @@align-items: flex-start;gap: 16px;padding: 16px 18px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background: linear-gradient(135deg,@@ -55,7 +55,7 @@&__title {margin: 0 0 4px;- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -63,7 +63,7 @@&__subtitle {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -88,7 +88,7 @@width: 100%;min-height: 52px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px dashed color-mix(in srgb, var(--td-brand-color) 28%, var(--td-component-stroke));background: color-mix(in srgb, var(--td-bg-color-container) 55%, transparent);cursor: pointer;@@ -157,7 +157,7 @@flex-shrink: 0;width: 34px;height: 34px;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: inline-flex;align-items: center;justify-content: center;@@ -183,14 +183,14 @@}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);}&__hint {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;color: var(--td-text-color-placeholder);}@@ -209,7 +209,7 @@}&__arrow {- font-size: 15px;+ font-size: var(--app-text-lg);line-height: 0;display: inline-flex;align-items: center;@@ -289,8 +289,8 @@.scenario-tag {padding: 2px 8px;- border-radius: 4px;- font-size: 11px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-xs);line-height: 1.45;color: var(--td-text-color-secondary);background: color-mix(in srgb, var(--td-bg-color-container) 70%, transparent);@@ -324,7 +324,7 @@flex-direction: column;padding: 2px 16px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);box-sizing: border-box;@@ -347,7 +347,7 @@}.setting-drawer__section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0;@@ -370,8 +370,8 @@.section-head-extra {margin-left: auto;padding: 1px 7px;- border-radius: 10px;- font-size: 11px;+ border-radius: var(--app-radius-lg);+ font-size: var(--app-text-xs);font-weight: 500;color: var(--td-text-color-disabled);background: var(--td-bg-color-secondarycontainer);@@ -402,7 +402,7 @@gap: 8px;padding: 12px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);box-sizing: border-box;@@ -428,7 +428,7 @@&__title {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -436,7 +436,7 @@&__desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -447,20 +447,20 @@align-items: flex-start;gap: 8px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);&__icon {flex-shrink: 0;margin-top: 1px;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);}p {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -473,7 +473,7 @@.field-desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-placeholder);}@@ -485,7 +485,7 @@:deep(.mono-text-input input) {font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -512,7 +512,7 @@display: flex;align-items: center;gap: 0;- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px solid var(--td-component-stroke);overflow: hidden;background: var(--td-bg-color-secondarycontainer);@@ -523,7 +523,7 @@margin: 0;padding: 10px 12px;font-family: var(--app-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.55;color: var(--td-text-color-primary);overflow-x: auto;@@ -574,7 +574,7 @@display: flex;align-items: center;justify-content: center;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: var(--td-brand-color);@@ -586,7 +586,7 @@}.landing-step-title {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -595,7 +595,7 @@.landing-step-desc {margin: 0;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -622,20 +622,20 @@gap: 4px;width: 100%;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-secondarycontainer);box-sizing: border-box;&__note {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-secondary);}}.landing-meta {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vueindex 1e9b6df11..c6203e1a6 100644--- a/frontend/src/views/knowledge/KnowledgeBase.vue+++ b/frontend/src/views/knowledge/KnowledgeBase.vue@@ -2692,16 +2692,16 @@ async function createNewSession(value: string): Promise<void> {align-items: center;padding: 8px 16px;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;}.tag-more-popup .tag-menu-item .menu-icon {margin-right: 8px;- font-size: 16px;+ font-size: var(--app-text-xl);}.tag-more-popup .tag-menu-item:hover {@@ -2728,7 +2728,7 @@ async function createNewSession(value: string): Promise<void> {cursor: pointer;color: var(--td-text-color-placeholder);font-weight: 400;- transition: color 0.15s;+ transition: color var(--app-motion-fast);display: inline-flex;align-items: center;gap: 4px;@@ -2751,7 +2751,7 @@ async function createNewSession(value: string): Promise<void> {display: inline-flex;align-items: center;color: var(--td-brand-color);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1;}@@ -2821,11 +2821,11 @@ async function createNewSession(value: string): Promise<void> {margin-right: 4px;padding: 0;border: 1px solid var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);color: var(--td-text-color-secondary);cursor: pointer;- transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {border-color: var(--td-brand-color);@@ -2838,17 +2838,17 @@ async function createNewSession(value: string): Promise<void> {max-width: 220px;padding: 2px 4px;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;cursor: pointer;- transition: color 0.15s ease, background 0.15s ease;+ transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -2869,7 +2869,7 @@ async function createNewSession(value: string): Promise<void> {&__sep {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}@@ -2979,7 +2979,7 @@ async function createNewSession(value: string): Promise<void> {align-items: center;padding: 2px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);gap: 0;.doc-view-toggle-btn {@@ -2990,18 +2990,18 @@ async function createNewSession(value: string): Promise<void> {justify-content: center;border: 0;background: transparent;- border-radius: 4px;- color: var(--td-text-color-secondary, #888);+ border-radius: var(--app-radius-xs);+ color: var(--td-text-color-secondary);cursor: pointer;- transition: background-color 0.12s ease, color 0.12s ease;+ transition: background-color var(--app-motion-instant) ease, color var(--app-motion-instant) ease;&:hover {- color: var(--td-text-color-primary, #232323);+ color: var(--td-text-color-primary);}&.active {- background: var(--td-bg-color-container, #fff);- color: var(--td-brand-color, #0052d9);+ background: var(--td-bg-color-container);+ color: var(--td-brand-color);box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);}}@@ -3023,10 +3023,10 @@ async function createNewSession(value: string): Promise<void> {}:deep(.t-input) {- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: none !important;&:hover,@@ -3040,10 +3040,10 @@ async function createNewSession(value: string): Promise<void> {:deep(.t-select) {.t-input {- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: none !important;&:hover,@@ -3147,7 +3147,7 @@ async function createNewSession(value: string): Promise<void> {align-items: center;gap: 6px;margin: 0;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -3163,8 +3163,8 @@ async function createNewSession(value: string): Promise<void> {display: inline-flex;align-items: center;gap: 4px;- border-radius: 6px;- transition: all 0.12s ease;+ border-radius: var(--app-radius-sm);+ transition: all var(--app-motion-instant) ease;&:hover:not(:disabled) {color: var(--td-success-color);@@ -3180,8 +3180,8 @@ async function createNewSession(value: string): Promise<void> {padding-right: 6px;:deep(.t-icon) {- font-size: 14px;- transition: transform 0.12s ease;+ font-size: var(--app-text-base);+ transition: transform var(--app-motion-instant) ease;}&:hover:not(:disabled) {@@ -3193,7 +3193,7 @@ async function createNewSession(value: string): Promise<void> {}.breadcrumb-separator {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);}@@ -3206,7 +3206,7 @@ async function createNewSession(value: string): Promise<void> {margin: 0;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 32px;}@@ -3215,7 +3215,7 @@ async function createNewSession(value: string): Promise<void> {margin: 0;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;}@@ -3226,10 +3226,10 @@ async function createNewSession(value: string): Promise<void> {gap: 4px;margin: 2px 0 0;color: var(--td-warning-color);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-warning-color-active);@@ -3240,7 +3240,7 @@ async function createNewSession(value: string): Promise<void> {}.parser-hint-icon {- font-size: 12px;+ font-size: var(--app-text-sm);flex-shrink: 0;}@@ -3257,10 +3257,10 @@ async function createNewSession(value: string): Promise<void> {gap: 4px;margin: 2px 0 0;color: var(--td-warning-color);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-warning-color-active);@@ -3271,7 +3271,7 @@ async function createNewSession(value: string): Promise<void> {}.warning-icon {- font-size: 12px;+ font-size: var(--app-text-sm);flex-shrink: 0;}@@ -3299,7 +3299,7 @@ async function createNewSession(value: string): Promise<void> {justify-content: center;color: var(--td-text-color-secondary);cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;padding: 0;&:hover:not(:disabled) {@@ -3314,7 +3314,7 @@ async function createNewSession(value: string): Promise<void> {}:deep(.t-icon) {- font-size: 18px;+ font-size: var(--app-text-2xl);}}@@ -3437,14 +3437,14 @@ async function createNewSession(value: string): Promise<void> {flex-direction: column;border: 1px solid var(--td-component-border);height: 136px;- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);background: var(--td-bg-color-container);position: relative;cursor: pointer;- transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background-color var(--app-motion-base) ease;.card-content {flex: 1;diff --git a/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue b/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vueindex 6012e9323..f12eb8f61 100644--- a/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue+++ b/frontend/src/views/knowledge/KnowledgeBaseEditorModal.vue@@ -1,182 +1,146 @@<template>- <Teleport to="body">- <Transition name="modal">- <div v-if="visible" class="settings-overlay" @click.self="handleClose">- <div class="settings-modal">- <div v-if="loading" class="editor-initializing" role="status" :aria-label="$t('common.loading')">- <t-loading size="medium" :text="$t('common.loading')" />+ <SettingsModalShell :visible="visible"+ :title="editorMode === 'create' ? $t('knowledgeEditor.titleCreate') : $t('knowledgeEditor.titleEdit')"+ v-model="currentSection" :nav-groups="navGroups" :loading="loading" :z-index="1000"+ nav-guide="kb-editor-sidebar" nav-item-guide-prefix="kb-editor-nav" @close="modalShell.requestClose">+ <div class="content-wrapper">+ <!-- 基本信息 -->+ <div v-show="currentSection === 'basic'" class="section">+ <div v-if="formData" class="section-content">+ <div class="section-header">+ <h3 class="section-title">{{ $t('knowledgeEditor.basic.title') }}</h3>+ <p class="section-desc">{{ $t('knowledgeEditor.basic.description') }}</p></div>- <!-- 关闭按钮 -->- <button class="close-btn" @click="handleClose" :aria-label="$t('general.close')">- <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor">- <path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>- </svg>- </button>-- <div class="settings-container">- <!-- 左侧导航 -->- <div class="settings-sidebar">- <div class="sidebar-header">- <h2 class="sidebar-title">{{ editorMode === 'create' ? $t('knowledgeEditor.titleCreate') : $t('knowledgeEditor.titleEdit') }}</h2>- </div>- <div class="settings-nav" data-guide="kb-editor-sidebar">- <template v-for="group in navGroups" :key="group.key">- <div class="nav-group-title">{{ group.label }}</div>- <div- v-for="(item, index) in group.items"- :key="index"- :class="['nav-item', { 'active': currentSection === item.key }]"- :data-guide="`kb-editor-nav-${item.key}`"- @click="currentSection = item.key"- >- <t-icon :name="item.icon" class="nav-icon" />- <span class="nav-label">{{ item.label }}</span>- <span v-if="item.badge" class="nav-badge">{{ item.badge }}</span>- </div>- </template>+ <div class="section-body">+ <div v-if="editorMode === 'edit' && activeKbId" class="form-item">+ <label class="form-label">{{ $t('knowledgeEditor.basic.kbId') }}</label>+ <p class="form-tip">{{ isPostCreateSession ? $t('knowledgeEditor.postCreateHint.followUpDesc') : $t('knowledgeEditor.basic.kbIdDesc') }}</p>+ <div class="kb-id-field">+ <code class="kb-id-value" :title="activeKbId">{{ activeKbId }}</code>+ <t-tooltip :content="$t('common.copy')" placement="top">+ <t-button theme="default" size="small" variant="text" class="kb-id-copy"+ @click="copyKbId">+ <t-icon name="file-copy" />+ </t-button>+ </t-tooltip></div></div>- <!-- 右侧内容区域 -->- <div class="settings-content">- <div class="content-wrapper">- <!-- 基本信息 -->- <div v-show="currentSection === 'basic'" class="section">- <div v-if="formData" class="section-content">- <div class="section-header">- <h3 class="section-title">{{ $t('knowledgeEditor.basic.title') }}</h3>- <p class="section-desc">{{ $t('knowledgeEditor.basic.description') }}</p>- </div>- <div class="section-body">- <div v-if="editorMode === 'edit' && activeKbId" class="form-item">- <label class="form-label">{{ $t('knowledgeEditor.basic.kbId') }}</label>- <p class="form-tip">{{ isPostCreateSession ? $t('knowledgeEditor.postCreateHint.followUpDesc') : $t('knowledgeEditor.basic.kbIdDesc') }}</p>- <div class="kb-id-field">- <code class="kb-id-value" :title="activeKbId">{{ activeKbId }}</code>- <t-tooltip :content="$t('common.copy')" placement="top">- <t-button theme="default" size="small" variant="text" class="kb-id-copy"- @click="copyKbId">- <t-icon name="file-copy" />- </t-button>- </t-tooltip>- </div>- </div>-- <div class="form-item">- <label class="form-label required">{{ $t('knowledgeEditor.basic.typeLabel') }}</label>- <t-radio-group- v-model="formData.type"- :disabled="editorMode === 'edit'"- data-guide="kb-create-type"- >- <t-radio-button value="document">{{ $t('knowledgeEditor.basic.typeDocument') }}</t-radio-button>- <t-radio-button value="faq">{{ $t('knowledgeEditor.basic.typeFAQ') }}</t-radio-button>- </t-radio-group>- <p class="form-tip">{{ $t('knowledgeEditor.basic.typeDescription') }}</p>- </div>+ <div class="form-item">+ <label class="form-label required">{{ $t('knowledgeEditor.basic.typeLabel') }}</label>+ <t-radio-group+ v-model="formData.type"+ :disabled="editorMode === 'edit'"+ data-guide="kb-create-type"+ >+ <t-radio-button value="document">{{ $t('knowledgeEditor.basic.typeDocument') }}</t-radio-button>+ <t-radio-button value="faq">{{ $t('knowledgeEditor.basic.typeFAQ') }}</t-radio-button>+ </t-radio-group>+ <p class="form-tip">{{ $t('knowledgeEditor.basic.typeDescription') }}</p>+ </div>- <!-- 索引策略 (紧跟类型选择) -->- <div v-if="!isFAQ" class="form-item">- <label class="form-label required">{{ $t('knowledgeEditor.indexing.title') }}</label>- <p class="form-tip">{{ $t('knowledgeEditor.indexing.description') }}</p>- <div class="indexing-checks" :class="{ 'is-locked': isIndexingLocked }"- data-guide="kb-create-indexing">- <div- class="indexing-check-item"- :class="{ 'is-checked': formData.indexingStrategy.vectorEnabled, 'is-disabled': isIndexingLocked }"- @click="toggleVectorIndexing"- >- <t-checkbox- :checked="formData.indexingStrategy.vectorEnabled"- :disabled="isIndexingLocked"- class="indexing-check-box"- >{{ $t('knowledgeEditor.indexing.searchTitle') }}</t-checkbox>- <p class="indexing-check-desc">{{ $t('knowledgeEditor.indexing.searchDesc') }}</p>- </div>- <div- class="indexing-check-item"- :class="{ 'is-checked': formData.indexingStrategy.wikiEnabled, 'is-disabled': isIndexingLocked }"- @click="toggleWikiIndexing"- >- <t-checkbox- :checked="formData.indexingStrategy.wikiEnabled"- :disabled="isIndexingLocked"- class="indexing-check-box"- >- <span class="indexing-check-title">- {{ $t('knowledgeEditor.indexing.wikiTitle') }}- <span class="indexing-new-badge">NEW</span>- </span>- </t-checkbox>- <p class="indexing-check-desc">{{ $t('knowledgeEditor.indexing.wikiDesc') }}</p>- </div>- </div>- <p v-if="isIndexingLocked" class="form-tip locked-tip">- {{ $t('knowledgeEditor.indexing.lockedTip') }}- </p>- </div>+ <!-- 索引策略 (紧跟类型选择) -->+ <div v-if="!isFAQ" class="form-item">+ <label class="form-label required">{{ $t('knowledgeEditor.indexing.title') }}</label>+ <p class="form-tip">{{ $t('knowledgeEditor.indexing.description') }}</p>+ <div class="indexing-checks" :class="{ 'is-locked': isIndexingLocked }"+ data-guide="kb-create-indexing">+ <div+ class="indexing-check-item"+ :class="{ 'is-checked': formData.indexingStrategy.vectorEnabled, 'is-disabled': isIndexingLocked }"+ @click="toggleVectorIndexing"+ >+ <t-checkbox+ :checked="formData.indexingStrategy.vectorEnabled"+ :disabled="isIndexingLocked"+ class="indexing-check-box"+ >{{ $t('knowledgeEditor.indexing.searchTitle') }}</t-checkbox>+ <p class="indexing-check-desc">{{ $t('knowledgeEditor.indexing.searchDesc') }}</p>+ </div>+ <div+ class="indexing-check-item"+ :class="{ 'is-checked': formData.indexingStrategy.wikiEnabled, 'is-disabled': isIndexingLocked }"+ @click="toggleWikiIndexing"+ >+ <t-checkbox+ :checked="formData.indexingStrategy.wikiEnabled"+ :disabled="isIndexingLocked"+ class="indexing-check-box"+ >+ <span class="indexing-check-title">+ {{ $t('knowledgeEditor.indexing.wikiTitle') }}+ <span class="indexing-new-badge">NEW</span>+ </span>+ </t-checkbox>+ <p class="indexing-check-desc">{{ $t('knowledgeEditor.indexing.wikiDesc') }}</p>+ </div>+ </div>+ <p v-if="isIndexingLocked" class="form-tip locked-tip">+ {{ $t('knowledgeEditor.indexing.lockedTip') }}+ </p>+ </div>- <!-- Wiki 提取粒度 (仅当 Wiki 启用时显示) -->- <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">- <label class="form-label">{{ $t('knowledgeEditor.wiki.extractionGranularityLabel') }}</label>- <p class="form-tip">{{ $t('knowledgeEditor.wiki.extractionGranularityTip') }}</p>- <t-radio-group- :value="resolvedGranularity"- class="granularity-radio-group"- @change="handleGranularityChange"- >- <t-radio-button value="focused">- {{ $t('knowledgeEditor.wiki.granularityFocused') }}- </t-radio-button>- <t-radio-button value="standard">- {{ $t('knowledgeEditor.wiki.granularityStandard') }}- </t-radio-button>- <t-radio-button value="exhaustive">- {{ $t('knowledgeEditor.wiki.granularityExhaustive') }}- </t-radio-button>- </t-radio-group>- <p class="form-tip granularity-hint">{{ granularityHint }}</p>- </div>+ <!-- Wiki 提取粒度 (仅当 Wiki 启用时显示) -->+ <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">+ <label class="form-label">{{ $t('knowledgeEditor.wiki.extractionGranularityLabel') }}</label>+ <p class="form-tip">{{ $t('knowledgeEditor.wiki.extractionGranularityTip') }}</p>+ <t-radio-group+ :value="resolvedGranularity"+ class="granularity-radio-group"+ @change="handleGranularityChange"+ >+ <t-radio-button value="focused">+ {{ $t('knowledgeEditor.wiki.granularityFocused') }}+ </t-radio-button>+ <t-radio-button value="standard">+ {{ $t('knowledgeEditor.wiki.granularityStandard') }}+ </t-radio-button>+ <t-radio-button value="exhaustive">+ {{ $t('knowledgeEditor.wiki.granularityExhaustive') }}+ </t-radio-button>+ </t-radio-group>+ <p class="form-tip granularity-hint">{{ granularityHint }}</p>+ </div>- <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">- <label class="form-label">{{ $t('knowledgeEditor.wiki.contentInstructionsLabel') }}</label>- <p class="form-tip">{{ $t('knowledgeEditor.wiki.contentInstructionsTip') }}</p>- <t-textarea- v-model="formData.wikiConfig.contentInstructions"- :placeholder="$t('knowledgeEditor.wiki.contentInstructionsPlaceholder')"- :maxlength="4000"- :autosize="{ minRows: 3, maxRows: 8 }"- />- </div>+ <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">+ <label class="form-label">{{ $t('knowledgeEditor.wiki.contentInstructionsLabel') }}</label>+ <p class="form-tip">{{ $t('knowledgeEditor.wiki.contentInstructionsTip') }}</p>+ <t-textarea+ v-model="formData.wikiConfig.contentInstructions"+ :placeholder="$t('knowledgeEditor.wiki.contentInstructionsPlaceholder')"+ :maxlength="4000"+ :autosize="{ minRows: 3, maxRows: 8 }"+ />+ </div>- <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">- <label class="form-label">{{ $t('knowledgeEditor.wiki.extractionInstructionsLabel') }}</label>- <p class="form-tip">{{ $t('knowledgeEditor.wiki.extractionInstructionsTip') }}</p>- <t-textarea- v-model="formData.wikiConfig.extractionInstructions"- :placeholder="$t('knowledgeEditor.wiki.extractionInstructionsPlaceholder')"- :maxlength="4000"- :autosize="{ minRows: 3, maxRows: 8 }"- />- </div>+ <div v-if="!isFAQ && formData.indexingStrategy.wikiEnabled" class="form-item">+ <label class="form-label">{{ $t('knowledgeEditor.wiki.extractionInstructionsLabel') }}</label>+ <p class="form-tip">{{ $t('knowledgeEditor.wiki.extractionInstructionsTip') }}</p>+ <t-textarea+ v-model="formData.wikiConfig.extractionInstructions"+ :placeholder="$t('knowledgeEditor.wiki.extractionInstructionsPlaceholder')"+ :maxlength="4000"+ :autosize="{ minRows: 3, maxRows: 8 }"+ />+ </div>- <div class="form-item" data-guide="kb-create-name">- <label class="form-label required">{{ $t('knowledgeEditor.basic.nameLabel') }}</label>- <t-input- v-model="formData.name"- :placeholder="$t('knowledgeEditor.basic.namePlaceholder')"- :maxlength="50"- />- </div>- <div class="form-item">- <label class="form-label">{{ $t('knowledgeEditor.basic.descriptionLabel') }}</label>- <t-textarea- v-model="formData.description"- :placeholder="$t('knowledgeEditor.basic.descriptionPlaceholder')"- :maxlength="200"- :autosize="{ minRows: 3, maxRows: 6 }"- />- </div>+ <div class="form-item" data-guide="kb-create-name">+ <label class="form-label required">{{ $t('knowledgeEditor.basic.nameLabel') }}</label>+ <t-input+ v-model="formData.name"+ :placeholder="$t('knowledgeEditor.basic.namePlaceholder')"+ :maxlength="50"+ />+ </div>+ <div class="form-item">+ <label class="form-label">{{ $t('knowledgeEditor.basic.descriptionLabel') }}</label>+ <t-textarea+ v-model="formData.description"+ :placeholder="$t('knowledgeEditor.basic.descriptionPlaceholder')"+ :maxlength="200"+ :autosize="{ minRows: 3, maxRows: 6 }"+ />+ </div><!-- AI 生成的知识库描述(仅编辑模式、文档型知识库) --><div v-if="editorMode === 'edit' && !isFAQ" class="form-item">@@ -233,290 +197,293 @@</div></div>- <!-- Wiki 合成模型移至模型配置页 -->- </div>- </div>- </div>-- <!-- 模型配置 -->- <div v-show="currentSection === 'models'" class="section">- <KBModelConfig- ref="modelConfigRef"- v-if="formData"- :config="formData.modelConfig"- :has-files="hasFiles"- :wiki-enabled="formData.indexingStrategy?.wikiEnabled"- :rag-enabled="formData.indexingStrategy?.vectorEnabled || formData.indexingStrategy?.keywordEnabled"- :all-models="allModels"- @update:config="handleModelConfigUpdate"- />- </div>-- <!-- VectorStore 绑定 -->- <div v-show="currentSection === 'vectorStore'" class="section">- <KBVectorStoreSettings- v-if="formData"- :mode="editorMode"- :vector-store-id="formData.vectorStoreId"- :bound-source="formData.vectorStoreInfo?.source"- :bound-name="formData.vectorStoreInfo?.name"- :bound-engine-type="formData.vectorStoreInfo?.engineType"- :bound-status="formData.vectorStoreInfo?.status"- @update:vector-store-id="handleVectorStoreIdUpdate"- />- </div>-- <!-- FAQ 配置 -->- <div v-if="isFAQ && formData" v-show="currentSection === 'faq'" class="section">- <div class="section-content">- <div class="section-header">- <h3 class="section-title">{{ $t('knowledgeEditor.faq.title') }}</h3>- <p class="section-desc">{{ $t('knowledgeEditor.faq.description') }}</p>- </div>- <div class="section-body">- <div class="form-item">- <label class="form-label required">{{ $t('knowledgeEditor.faq.indexModeLabel') }}</label>- <t-radio-group- v-model="formData.faqConfig.indexMode"- >- <t-radio-button value="question_only">{{ $t('knowledgeEditor.faq.modes.questionOnly') }}</t-radio-button>- <t-radio-button value="question_answer">{{ $t('knowledgeEditor.faq.modes.questionAnswer') }}</t-radio-button>- </t-radio-group>- <p class="form-tip">{{ $t('knowledgeEditor.faq.indexModeDescription') }}</p>- </div>- <div class="form-item">- <label class="form-label required">{{ $t('knowledgeEditor.faq.questionIndexModeLabel') }}</label>- <t-radio-group- v-model="formData.faqConfig.questionIndexMode"- >- <t-radio-button value="combined">{{ $t('knowledgeEditor.faq.modes.combined') }}</t-radio-button>- <t-radio-button value="separate">{{ $t('knowledgeEditor.faq.modes.separate') }}</t-radio-button>- </t-radio-group>- <p class="form-tip">{{ $t('knowledgeEditor.faq.questionIndexModeDescription') }}</p>- </div>- <div class="faq-guide">- <p>{{ $t('knowledgeEditor.faq.entryGuide') }}</p>- </div>- </div>- </div>- </div>-- <!-- 解析引擎 -->- <div v-if="!isFAQ && formData && currentSection === 'parser'" class="section">- <KBParserSettings- :parser-engine-rules="formData.chunkingConfig.parserEngineRules"- @update:parser-engine-rules="handleParserEngineRulesUpdate"- />- </div>+ <!-- Wiki 合成模型移至模型配置页 -->+ </div>+ </div>+ </div>- <!-- 存储引擎 -->- <div v-if="!isFAQ && formData && currentSection === 'storage'" class="section">- <KBStorageSettings- :storage-backend-id="formData.storageBackendId"- :storage-provider="formData.storageProvider"- :has-files="editorMode === 'edit' && hasFiles"- @update:storage-backend-id="handleStorageBackendUpdate"- @update:storage-provider="handleStorageProviderUpdate"- />- </div>+ <!-- 模型配置 -->+ <div v-show="currentSection === 'models'" class="section">+ <KBModelConfig+ ref="modelConfigRef"+ v-if="formData"+ :config="formData.modelConfig"+ :has-files="hasFiles"+ :wiki-enabled="formData.indexingStrategy?.wikiEnabled"+ :rag-enabled="formData.indexingStrategy?.vectorEnabled || formData.indexingStrategy?.keywordEnabled"+ :all-models="allModels"+ @update:config="handleModelConfigUpdate"+ />+ </div>- <!-- 分块设置 -->- <div v-if="!isFAQ" v-show="currentSection === 'chunking'" class="section">- <KBChunkingSettings- v-if="formData"- :config="formData.chunkingConfig"- @update:config="handleChunkingConfigUpdate"- />- </div>+ <!-- VectorStore 绑定 -->+ <div v-show="currentSection === 'vectorStore'" class="section">+ <KBVectorStoreSettings+ v-if="formData"+ :mode="editorMode"+ :vector-store-id="formData.vectorStoreId"+ :bound-source="formData.vectorStoreInfo?.source"+ :bound-name="formData.vectorStoreInfo?.name"+ :bound-engine-type="formData.vectorStoreInfo?.engineType"+ :bound-status="formData.vectorStoreInfo?.status"+ @update:vector-store-id="handleVectorStoreIdUpdate"+ />+ </div>- <!-- 多模态配置 -->- <div v-if="!isFAQ" v-show="currentSection === 'multimodal'" class="section">- <div v-if="formData" class="kb-multimodal-settings">- <div class="section-header">- <h2>{{ $t('knowledgeEditor.multimodal.title') }}</h2>- <p class="section-description">{{ $t('knowledgeEditor.multimodal.description') }}</p>- </div>-- <div class="settings-group">- <!-- 多模态开关 -->- <div class="setting-row" data-guide="kb-create-multimodal-toggle">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.advanced.multimodal.label') }}</label>- <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.description') }}</p>- </div>- <div class="setting-control">- <t-switch- v-model="formData.multimodalConfig.enabled"- @change="handleMultimodalToggle"- size="medium"- />- </div>- </div>+ <!-- FAQ 配置 -->+ <div v-if="isFAQ && formData" v-show="currentSection === 'faq'" class="section">+ <div class="section-content">+ <div class="section-header">+ <h3 class="section-title">{{ $t('knowledgeEditor.faq.title') }}</h3>+ <p class="section-desc">{{ $t('knowledgeEditor.faq.description') }}</p>+ </div>+ <div class="section-body">+ <div class="form-item">+ <label class="form-label required">{{ $t('knowledgeEditor.faq.indexModeLabel') }}</label>+ <t-radio-group+ v-model="formData.faqConfig.indexMode"+ >+ <t-radio-button value="question_only">{{ $t('knowledgeEditor.faq.modes.questionOnly') }}</t-radio-button>+ <t-radio-button value="question_answer">{{ $t('knowledgeEditor.faq.modes.questionAnswer') }}</t-radio-button>+ </t-radio-group>+ <p class="form-tip">{{ $t('knowledgeEditor.faq.indexModeDescription') }}</p>+ </div>+ <div class="form-item">+ <label class="form-label required">{{ $t('knowledgeEditor.faq.questionIndexModeLabel') }}</label>+ <t-radio-group+ v-model="formData.faqConfig.questionIndexMode"+ >+ <t-radio-button value="combined">{{ $t('knowledgeEditor.faq.modes.combined') }}</t-radio-button>+ <t-radio-button value="separate">{{ $t('knowledgeEditor.faq.modes.separate') }}</t-radio-button>+ </t-radio-group>+ <p class="form-tip">{{ $t('knowledgeEditor.faq.questionIndexModeDescription') }}</p>+ </div>+ <div class="faq-guide">+ <p>{{ $t('knowledgeEditor.faq.entryGuide') }}</p>+ </div>+ </div>+ </div>+ </div>- <!-- VLLM 模型选择(多模态启用时) -->- <div v-if="formData.multimodalConfig.enabled" class="setting-row"- data-guide="kb-create-multimodal-vllm">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.advanced.multimodal.vllmLabel') }} <span class="required">*</span></label>- <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.vllmDescription') }}</p>- </div>- <div class="setting-control">- <ModelSelector- model-type="VLLM"- :selected-model-id="formData.multimodalConfig.vllmModelId"- :all-models="allModels"- @update:selected-model-id="handleMultimodalVLLMChange"- @add-model="handleAddVLLMModel"- :placeholder="$t('knowledgeEditor.advanced.multimodal.vllmPlaceholder')"- />- </div>- </div>+ <!-- 解析引擎 -->+ <div v-if="!isFAQ && formData && currentSection === 'parser'" class="section">+ <KBParserSettings+ :parser-engine-rules="formData.chunkingConfig.parserEngineRules"+ @update:parser-engine-rules="handleParserEngineRulesUpdate"+ />+ </div>- <div v-if="formData.multimodalConfig.enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.advanced.multimodal.descriptionLanguageLabel') }}</label>- <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.descriptionLanguageDescription') }}</p>- </div>- <div class="setting-control">- <t-select v-model="formData.multimodalConfig.descriptionLanguage" clearable- :placeholder="$t('knowledgeEditor.advanced.multimodal.descriptionLanguageAuto')">- <t-option value="Chinese" :label="$t('language.zhCN')" />- <t-option value="English" :label="$t('language.enUS')" />- <t-option value="Korean" :label="$t('language.koKR')" />- <t-option value="Russian" :label="$t('language.ruRU')" />- </t-select>- </div>- </div>+ <!-- 存储引擎 -->+ <div v-if="!isFAQ && formData && currentSection === 'storage'" class="section">+ <KBStorageSettings+ :storage-backend-id="formData.storageBackendId"+ :storage-provider="formData.storageProvider"+ :has-files="editorMode === 'edit' && hasFiles"+ @update:storage-backend-id="handleStorageBackendUpdate"+ @update:storage-provider="handleStorageProviderUpdate"+ />+ </div>- <div v-if="formData.multimodalConfig.enabled" class="setting-row setting-row-vertical">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.advanced.multimodal.customInstructionsLabel') }}</label>- <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.customInstructionsDescription') }}</p>- </div>- <div class="setting-control setting-control-full">- <t-textarea v-model="formData.multimodalConfig.customInstructions"- :placeholder="$t('knowledgeEditor.advanced.multimodal.customInstructionsPlaceholder')"- :maxlength="4000" :autosize="{ minRows: 3, maxRows: 8 }" />- </div>- </div>- </div>- </div>- </div>+ <!-- 分块设置 -->+ <div v-if="!isFAQ" v-show="currentSection === 'chunking'" class="section">+ <KBChunkingSettings+ v-if="formData"+ :config="formData.chunkingConfig"+ @update:config="handleChunkingConfigUpdate"+ />+ </div>- <!-- 音频处理(ASR)设置 -->- <div v-if="!isFAQ" v-show="currentSection === 'asr'" class="section">- <div v-if="formData" class="kb-multimodal-settings">- <div class="section-header">- <h2>{{ $t('knowledgeEditor.asr.title') }}</h2>- <p class="section-description">{{ $t('knowledgeEditor.asr.description') }}</p>- </div>-- <div class="settings-group">- <!-- ASR 开关 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.asr.label') }}</label>- <p class="desc">{{ $t('knowledgeEditor.asr.desc') }}</p>- </div>- <div class="setting-control">- <t-switch- v-model="formData.asrConfig.enabled"- size="medium"- />- </div>- </div>+ <!-- 多模态配置 -->+ <div v-if="!isFAQ" v-show="currentSection === 'multimodal'" class="section">+ <div v-if="formData" class="kb-multimodal-settings">+ <div class="section-header">+ <h2>{{ $t('knowledgeEditor.multimodal.title') }}</h2>+ <p class="section-description">{{ $t('knowledgeEditor.multimodal.description') }}</p>+ </div>- <!-- ASR 模型选择 -->- <div v-if="formData.asrConfig.enabled" class="setting-row">- <div class="setting-info">- <label>{{ $t('knowledgeEditor.asr.modelLabel') }} <span class="required">*</span></label>- <p class="desc">{{ $t('knowledgeEditor.asr.modelDescription') }}</p>- </div>- <div class="setting-control">- <ModelSelector- model-type="ASR"- :selected-model-id="formData.asrConfig.modelId"- :all-models="allModels"- @update:selected-model-id="(val: string) => { if (formData) formData.asrConfig.modelId = val }"- @add-model="handleAddASRModel"- :placeholder="$t('knowledgeEditor.asr.modelPlaceholder')"- />- </div>- </div>- </div>- </div>- </div>+ <div class="settings-group">+ <!-- 多模态开关 -->+ <div class="setting-row" data-guide="kb-create-multimodal-toggle">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.advanced.multimodal.label') }}</label>+ <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.description') }}</p>+ </div>+ <div class="setting-control">+ <t-switch+ v-model="formData.multimodalConfig.enabled"+ @change="handleMultimodalToggle"+ size="medium"+ />+ </div>+ </div>- <!-- 知识图谱 -->- <div v-if="!isFAQ && currentSection === 'graph'" class="section">- <GraphSettings- v-if="formData"- :graph-extract="formData.nodeExtractConfig"- :model-id="formData.modelConfig.llmModelId"- :all-models="allModels"- @update:graphExtract="handleNodeExtractUpdate"- />- </div>+ <!-- VLLM 模型选择(多模态启用时) -->+ <div v-if="formData.multimodalConfig.enabled" class="setting-row"+ data-guide="kb-create-multimodal-vllm">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.advanced.multimodal.vllmLabel') }} <span class="required">*</span></label>+ <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.vllmDescription') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector+ model-type="VLLM"+ :selected-model-id="formData.multimodalConfig.vllmModelId"+ :all-models="allModels"+ @update:selected-model-id="handleMultimodalVLLMChange"+ @add-model="handleAddVLLMModel"+ :placeholder="$t('knowledgeEditor.advanced.multimodal.vllmPlaceholder')"+ />+ </div>+ </div>- <!-- 高级设置 -->- <div v-if="!isFAQ" v-show="currentSection === 'advanced'" class="section">- <KBAdvancedSettings- ref="advancedSettingsRef"- v-if="formData"- :question-generation="formData.questionGenerationConfig"- :auto-tag="formData.autoTagConfig"- :profile-config="formData.profileConfig"- :rag-enabled="formData.indexingStrategy?.vectorEnabled || formData.indexingStrategy?.keywordEnabled"- :all-models="allModels"- :table-metadata-instructions="formData.chunkingConfig.tableMetadataInstructions"- @update:question-generation="handleQuestionGenerationUpdate"- @update:auto-tag="(value) => { if (formData) formData.autoTagConfig = value }"- @update:profile-config="(value) => { if (formData) formData.profileConfig = value }"- @update:table-metadata-instructions="(value: string) => { if (formData) formData.chunkingConfig.tableMetadataInstructions = value }"- />- </div>+ <div v-if="formData.multimodalConfig.enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.advanced.multimodal.descriptionLanguageLabel') }}</label>+ <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.descriptionLanguageDescription') }}</p>+ </div>+ <div class="setting-control">+ <t-select v-model="formData.multimodalConfig.descriptionLanguage" clearable+ :placeholder="$t('knowledgeEditor.advanced.multimodal.descriptionLanguageAuto')">+ <t-option value="Chinese" :label="$t('language.zhCN')" />+ <t-option value="English" :label="$t('language.enUS')" />+ <t-option value="Korean" :label="$t('language.koKR')" />+ <t-option value="Russian" :label="$t('language.ruRU')" />+ </t-select>+ </div>+ </div>- <!-- 数据源管理(仅编辑模式) -->- <div v-if="editorMode === 'edit' && activeKbId && currentSection === 'datasource'" class="section">- <DataSourceSettings :kb-id="activeKbId" @count="dsCount = $event" />- </div>+ <div v-if="formData.multimodalConfig.enabled" class="setting-row setting-row-vertical">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.advanced.multimodal.customInstructionsLabel') }}</label>+ <p class="desc">{{ $t('knowledgeEditor.advanced.multimodal.customInstructionsDescription') }}</p>+ </div>+ <div class="setting-control setting-control-full">+ <t-textarea v-model="formData.multimodalConfig.customInstructions"+ :placeholder="$t('knowledgeEditor.advanced.multimodal.customInstructionsPlaceholder')"+ :maxlength="4000" :autosize="{ minRows: 3, maxRows: 8 }" />+ </div>+ </div>+ </div>+ </div>+ </div>- <!-- 共享设置(仅编辑模式) -->- <div v-if="editorMode === 'edit' && activeKbId && currentSection === 'share'" class="section">- <KBShareSettings :kb-id="activeKbId" :can-share="canShareKB" />- </div>+ <!-- 音频处理(ASR)设置 -->+ <div v-if="!isFAQ" v-show="currentSection === 'asr'" class="section">+ <div v-if="formData" class="kb-multimodal-settings">+ <div class="section-header">+ <h2>{{ $t('knowledgeEditor.asr.title') }}</h2>+ <p class="section-description">{{ $t('knowledgeEditor.asr.description') }}</p>+ </div>- <!-- 活动记录(仅编辑模式,KB 所属租户内 Owner/Admin) -->- <div v-if="editorMode === 'edit' && activeKbId && canViewActivity && currentSection === 'activity'" class="section">- <KnowledgeBaseActivitySettings :kb-id="activeKbId" :active="currentSection === 'activity'" />- </div>+ <div class="settings-group">+ <!-- ASR 开关 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.asr.label') }}</label>+ <p class="desc">{{ $t('knowledgeEditor.asr.desc') }}</p>+ </div>+ <div class="setting-control">+ <t-switch+ v-model="formData.asrConfig.enabled"+ size="medium"+ /></div>+ </div>- <!-- 保存按钮 -->- <div class="settings-footer">- <p v-if="isPostCreateSession" class="settings-footer-note">- <t-icon name="check-circle-filled" class="settings-footer-note__icon" />- <span>- <strong>{{ $t('knowledgeEditor.postCreateHint.title') }}</strong>- {{ $t('knowledgeEditor.postCreateHint.footer') }}- </span>- </p>- <div class="settings-footer-actions">- <t-button theme="default" variant="outline" @click="handleClose">- {{ $t('common.cancel') }}- </t-button>- <t-button theme="primary" data-guide="kb-create-submit" @click="handleSubmit" :loading="saving"- :disabled="loading">- {{ saveButtonLabel }}- </t-button>- </div>+ <!-- ASR 模型选择 -->+ <div v-if="formData.asrConfig.enabled" class="setting-row">+ <div class="setting-info">+ <label>{{ $t('knowledgeEditor.asr.modelLabel') }} <span class="required">*</span></label>+ <p class="desc">{{ $t('knowledgeEditor.asr.modelDescription') }}</p>+ </div>+ <div class="setting-control">+ <ModelSelector+ model-type="ASR"+ :selected-model-id="formData.asrConfig.modelId"+ :all-models="allModels"+ @update:selected-model-id="(val: string) => { if (formData) formData.asrConfig.modelId = val }"+ @add-model="handleAddASRModel"+ :placeholder="$t('knowledgeEditor.asr.modelPlaceholder')"+ /></div></div></div></div></div>- </Transition>- </Teleport>++ <!-- 知识图谱 -->+ <div v-if="!isFAQ && currentSection === 'graph'" class="section">+ <GraphSettings+ v-if="formData"+ :graph-extract="formData.nodeExtractConfig"+ :model-id="formData.modelConfig.llmModelId"+ :all-models="allModels"+ @update:graphExtract="handleNodeExtractUpdate"+ />+ </div>++ <!-- 高级设置 -->+ <div v-if="!isFAQ" v-show="currentSection === 'advanced'" class="section">+ <KBAdvancedSettings+ ref="advancedSettingsRef"+ v-if="formData"+ :question-generation="formData.questionGenerationConfig"+ :auto-tag="formData.autoTagConfig"+ :profile-config="formData.profileConfig"+ :rag-enabled="formData.indexingStrategy?.vectorEnabled || formData.indexingStrategy?.keywordEnabled"+ :all-models="allModels"+ :table-metadata-instructions="formData.chunkingConfig.tableMetadataInstructions"+ @update:question-generation="handleQuestionGenerationUpdate"+ @update:auto-tag="(value) => { if (formData) formData.autoTagConfig = value }"+ @update:profile-config="(value) => { if (formData) formData.profileConfig = value }"+ @update:table-metadata-instructions="(value: string) => { if (formData) formData.chunkingConfig.tableMetadataInstructions = value }"+ />+ </div>++ <!-- 数据源管理(仅编辑模式) -->+ <div v-if="editorMode === 'edit' && activeKbId && currentSection === 'datasource'" class="section">+ <DataSourceSettings :kb-id="activeKbId" @count="dsCount = $event" />+ </div>++ <!-- 共享设置(仅编辑模式) -->+ <div v-if="editorMode === 'edit' && activeKbId && currentSection === 'share'" class="section">+ <KBShareSettings :kb-id="activeKbId" :can-share="canShareKB" />+ </div>++ <!-- 活动记录(仅编辑模式,KB 所属租户内 Owner/Admin) -->+ <div v-if="editorMode === 'edit' && activeKbId && canViewActivity && currentSection === 'activity'" class="section">+ <KnowledgeBaseActivitySettings :kb-id="activeKbId" :active="currentSection === 'activity'" />+ </div>+ </div>++ <template #footer-note>+ <p v-if="isPostCreateSession" class="settings-footer-note">+ <t-icon name="check-circle-filled" class="settings-footer-note__icon" />+ <span>+ <strong>{{ $t('knowledgeEditor.postCreateHint.title') }}</strong>+ {{ $t('knowledgeEditor.postCreateHint.footer') }}+ </span>+ </p>+ <p v-if="isInstantSection" class="settings-footer-note">+ <t-icon name="info-circle-filled" class="settings-footer-note__icon" />+ <span>{{ $t('knowledgeEditor.footer.instantEffect') }}</span>+ </p>+ </template>+ <template #footer>+ <t-button v-if="isInstantSection" theme="default" variant="outline" @click="modalShell.requestClose">+ {{ $t('common.close') }}+ </t-button>+ <template v-else>+ <t-button theme="default" variant="outline" @click="modalShell.requestClose">+ {{ $t('common.cancel') }}+ </t-button>+ <t-button theme="primary" data-guide="kb-create-submit" @click="handleSubmit" :loading="saving"+ :disabled="loading">+ {{ saveButtonLabel }}+ </t-button>+ </template>+ </template>+ </SettingsModalShell><KbCreateContextualGuide :when="visible && editorMode === 'create'" :is-faq="isFAQ":needs-embedding="kbCreateNeedsEmbedding" />@@ -527,6 +494,8 @@ import { ref, computed, watch, onMounted, onBeforeUnmount } from 'vue'import KbCreateContextualGuide from '@/components/KbCreateContextualGuide.vue'import { KB_EDITOR_FOCUS_SECTION_EVENT, markContextualGuideDone } from '@/config/contextualGuides'import { MessagePlugin, DialogPlugin } from 'tdesign-vue-next'+import { useModalShell } from '@/composables/useModalShell'+import SettingsModalShell from '@/components/SettingsModalShell.vue'import {createKnowledgeBase,getKnowledgeBaseById,@@ -683,6 +652,11 @@ const DEFAULT_CHUNKING_PRESET = {enableParentChild: true,} as const+// 这些分区的操作在点击时即时生效(共享 / 数据源 / 活动记录),不经过底部「保存」,+// 因此底部只显示「关闭」并提示,避免用户以为需要再点保存或以为「取消」能撤销。+const INSTANT_SECTIONS = new Set(['datasource', 'share', 'activity'])+const isInstantSection = computed(() => INSTANT_SECTIONS.has(currentSection.value))+const navItems = computed(() => {const items: { key: string; icon: string; label: string; badge?: number }[] = [{ key: 'basic', icon: 'info-circle', label: t('knowledgeEditor.sidebar.basic') },@@ -1058,6 +1032,7 @@ const loadKBData = async (} finally {if (isCurrentKBLoad(generation, kbId)) {loading.value = false+ modalShell.markClean()}}}@@ -1685,12 +1660,19 @@ const handleClose = () => {}, 300)}+const modalShell = useModalShell({+ visible: () => props.visible,+ close: handleClose,+ snapshot: () => formData.value,+})+// 监听弹窗打开/关闭watch(() => props.visible, async (newVal) => {const generation = ++kbEditorLoadGenerationif (newVal) {// 打开弹窗时,先重置状态resetState()+ modalShell.markClean()loading.value = trueconst targetKbId = props.kbId@@ -1714,6 +1696,7 @@ watch(() => props.visible, async (newVal) => {hasFiles.value = falseapplyDefaultModelsIfEmpty()loading.value = false+ modalShell.markClean()}} else {// 关闭弹窗时,延迟重置状态(等待动画结束)@@ -1744,179 +1727,7 @@ watch(() => chatResources.allModels, (list) => {<style scoped lang="less">// 复用创建知识库的样式-.settings-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- z-index: 1000;- backdrop-filter: blur(4px);-}--.settings-modal {- position: relative;- width: 90vw;- max-width: 1000px;- height: 85vh;- max-height: 750px;- background: var(--td-bg-color-container);- border-radius: 12px;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);- display: flex;- flex-direction: column;- overflow: hidden;-}--.editor-initializing {- position: absolute;- inset: 0;- z-index: 20;- display: flex;- align-items: center;- justify-content: center;- background: var(--td-bg-color-container);-}--.close-btn {- position: absolute;- top: 20px;- right: 20px;- width: 32px;- height: 32px;- border: none;- background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- color: var(--td-text-color-secondary);- transition: all 0.2s ease;- z-index: 10;-- &:hover {- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-primary);- }-}--.settings-container {- display: flex;- height: 100%;- width: 100%;- overflow: hidden;-}-/* 左侧导航:与 AgentEditorModal 对齐 */-.settings-sidebar {- width: 208px;- background-color: var(--td-bg-color-settings-modal);- border-right: 1px solid var(--td-component-stroke);- flex-shrink: 0;- display: flex;- flex-direction: column;- overflow: hidden;-}--.sidebar-header {- padding: 16px 14px 12px;- border-bottom: 1px solid var(--td-component-stroke);- flex-shrink: 0;-}--.sidebar-title {- margin: 0;- font-size: 16px;- font-weight: 600;- color: var(--td-text-color-primary);-}--.settings-nav {- flex: 1;- padding: 8px 8px 12px;- overflow-y: auto;- min-height: 0;-}--.nav-group-title {- padding: 6px 14px 2px;- color: var(--td-text-color-placeholder);- font-size: 12px;- font-weight: 600;- letter-spacing: 0.02em;-- .settings-nav > &:first-child {- padding-top: 2px;- }-- .settings-nav > &:not(:first-child) {- padding-top: 8px;- }-}--.nav-item {- display: flex;- align-items: center;- padding: 6px 12px;- margin-bottom: 2px;- border-radius: 6px;- cursor: pointer;- transition: all 0.2s ease;- font-size: 14px;- color: var(--td-text-color-primary);- user-select: none;-- &:hover {- background-color: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-- &.active {- background-color: var(--td-bg-color-secondarycontainer);- color: var(--td-brand-color);- font-weight: 500;- }-}--.nav-icon {- margin-right: 9px;- font-size: 16px;- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- color: inherit;-}--.nav-label {- flex: 1;-}--.nav-badge {- flex-shrink: 0;- margin-left: 2px;- padding: 0 6px;- border-radius: 8px;- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-secondary);- font-size: 11px;- line-height: 16px;- font-weight: 500;- text-align: center;-}--.settings-content {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;-}-.content-wrapper {flex: 1;overflow-y: auto;@@ -1939,7 +1750,7 @@ watch(() => chatResources.allModels, (list) => {.section-title {margin: 0 0 6px 0;font-family: var(--app-font-family);- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -1947,7 +1758,7 @@ watch(() => chatResources.allModels, (list) => {.section-desc {margin: 0;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);line-height: 22px;}@@ -1969,7 +1780,7 @@ watch(() => chatResources.allModels, (list) => {display: block;margin-bottom: 8px;font-family: var(--app-font-family);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);@@ -1982,7 +1793,7 @@ watch(() => chatResources.allModels, (list) => {.form-tip {margin-top: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -1996,7 +1807,7 @@ watch(() => chatResources.allModels, (list) => {padding: 6px 8px 6px 12px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);.kb-id-value {flex: 1;@@ -2006,7 +1817,7 @@ watch(() => chatResources.allModels, (list) => {background: none;border: none;font-family: var(--app-font-family-mono);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);overflow: hidden;@@ -2049,11 +1860,11 @@ watch(() => chatResources.allModels, (list) => {gap: 6px;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);cursor: pointer;user-select: none;- transition: border-color 0.2s ease, background 0.2s ease;+ transition: border-color var(--app-motion-base) ease, background var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -2105,7 +1916,7 @@ watch(() => chatResources.allModels, (list) => {padding: 0 6px;height: 16px;border-radius: 3px;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 600;line-height: 1;letter-spacing: 0.4px;@@ -2116,7 +1927,7 @@ watch(() => chatResources.allModels, (list) => {.indexing-check-desc {margin: 0;padding-left: 24px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);}@@ -2124,70 +1935,14 @@ watch(() => chatResources.allModels, (list) => {.faq-guide {margin-top: 20px;padding: 12px 16px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 20px;}-.settings-footer {- padding: 12px 40px;- border-top: 1px solid var(--td-component-stroke);- display: flex;- align-items: center;- justify-content: flex-end;- gap: 16px;- flex-shrink: 0;-}--.settings-footer-note {- margin: 0;- margin-right: auto;- flex: 1;- min-width: 0;- display: flex;- align-items: flex-start;- gap: 6px;- font-size: 13px;- line-height: 20px;- color: var(--td-text-color-secondary);-- strong {- margin-right: 4px;- color: var(--td-text-color-primary);- font-weight: 500;- }-- &__icon {- flex-shrink: 0;- margin-top: 2px;- font-size: 14px;- color: var(--td-success-color);- }-}--.settings-footer-actions {- display: flex;- gap: 12px;- flex-shrink: 0;-}-// 过渡动画-.modal-enter-active,-.modal-leave-active {- transition: all 0.3s ease;-}--.modal-enter-from,-.modal-leave-to {- opacity: 0;-- .settings-modal {- transform: scale(0.95);- }-}-// 多模态配置内联样式(与子组件 KBStorageSettings/KBAdvancedSettings 一致).kb-multimodal-settings {width: 100%;@@ -2196,14 +1951,14 @@ watch(() => chatResources.allModels, (list) => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -2233,7 +1988,7 @@ watch(() => chatResources.allModels, (list) => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -2241,7 +1996,7 @@ watch(() => chatResources.allModels, (list) => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -2267,12 +2022,12 @@ watch(() => chatResources.allModels, (list) => {margin-top: 8px;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);.kb-profile-gist {margin: 0 0 8px;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;color: var(--td-text-color-primary);}@@ -2286,33 +2041,33 @@ watch(() => chatResources.allModels, (list) => {.kb-profile-subtitle {margin: 0 0 4px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.kb-profile-questions ul {margin: 0 0 8px;padding-left: 18px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;color: var(--td-text-color-primary);}.kb-profile-empty {margin: 0 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}.kb-profile-error {margin: 0 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-error-color);}.kb-profile-meta {margin: 0 0 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/knowledge/KnowledgeBaseList.vue b/frontend/src/views/knowledge/KnowledgeBaseList.vueindex 0da588be9..2fa64e7c3 100644--- a/frontend/src/views/knowledge/KnowledgeBaseList.vue+++ b/frontend/src/views/knowledge/KnowledgeBaseList.vue@@ -26,7 +26,6 @@field are kept so a future "filter by member" entry point(e.g. clicking an avatar) can deep-link without re-plumbing. -->-<!-- 未初始化知识库提示 --><div v-if="hasUninitializedKbs" class="warning-banner"><t-icon name="info-circle" size="16px" />@@ -73,7 +72,7 @@<!-- 骨架屏占位 --><div v-if="loading && kbs.length === 0" class="kb-card-wrap">- <div v-for="n in 6" :key="'skel-' + n" class="kb-card kb-card-skeleton">+ <div v-for="n in 6" :key="'skel-' + n" class="kb-card kb-card-skeleton is-skeleton"><div class="card-header"><t-skeleton animation="gradient" :row-col="[{ width: '60%', height: '20px' }]" /></div>@@ -631,73 +630,40 @@</div><!-- 全部空状态:保留「新建知识库」CTA,因为是空间没有任何 KB 的真空场景 -->- <div v-if="spaceSelection === 'all' && filteredKnowledgeBases.length === 0 && !loading" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('knowledgeList.empty.title') }}</span>- <span class="empty-desc">{{ $t('knowledgeList.empty.description') }}</span>- <t-button v-if="authStore.hasRole('contributor')" class="kb-create-btn empty-state-btn"+ <EmptyState v-if="spaceSelection === 'all' && filteredKnowledgeBases.length === 0 && !loading" icon="folder-open" :title="$t('knowledgeList.empty.title')"+ :description="$t('knowledgeList.empty.description')">+ <t-button v-if="authStore.hasRole('contributor')" theme="primary" class="kb-create-btn"data-guide="kb-list-create" @click="handleCreateKnowledgeBase"><template #icon><t-icon name="folder-add" /></template>{{ $t('knowledgeList.create') }}</t-button>- </div>+ </EmptyState><!-- 收藏空状态:不放创建按钮——「没有收藏」 ≠ 「没有知识库」,正确引导是「去星标一下」,不是「再建一个」。 -->- <div v-if="spaceSelection === 'favorites' && filteredKnowledgeBases.length === 0 && !loading"- class="empty-state">- <t-icon name="star" size="48px" class="empty-icon" />- <span class="empty-txt">{{ $t('knowledgeList.empty.favoritesTitle') }}</span>- <span class="empty-desc">{{ $t('knowledgeList.empty.favoritesDescription') }}</span>- </div>+ <EmptyState v-if="spaceSelection === 'favorites' && filteredKnowledgeBases.length === 0 && !loading" icon="star" :title="$t('knowledgeList.empty.favoritesTitle')"+ :description="$t('knowledgeList.empty.favoritesDescription')" /><!-- 最近空状态:同理,引导是「去打开一个」。 -->- <div v-if="spaceSelection === 'recents' && filteredKnowledgeBases.length === 0 && !loading" class="empty-state">- <t-icon name="history" size="48px" class="empty-icon" />- <span class="empty-txt">{{ $t('knowledgeList.empty.recentsTitle') }}</span>- <span class="empty-desc">{{ $t('knowledgeList.empty.recentsDescription') }}</span>- </div>+ <EmptyState v-if="spaceSelection === 'recents' && filteredKnowledgeBases.length === 0 && !loading" icon="history" :title="$t('knowledgeList.empty.recentsTitle')"+ :description="$t('knowledgeList.empty.recentsDescription')" /><!-- 我的知识库空状态 -->- <div v-if="spaceSelection === 'mine' && kbs.length === 0 && !loading" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('knowledgeList.empty.title') }}</span>- <span class="empty-desc">{{ $t('knowledgeList.empty.description') }}</span>- <t-button v-if="authStore.hasRole('contributor')" class="kb-create-btn empty-state-btn"+ <EmptyState v-if="spaceSelection === 'mine' && kbs.length === 0 && !loading" icon="folder-open" :title="$t('knowledgeList.empty.title')"+ :description="$t('knowledgeList.empty.description')">+ <t-button v-if="authStore.hasRole('contributor')" theme="primary" class="kb-create-btn"data-guide="kb-list-create" @click="handleCreateKnowledgeBase"><template #icon><t-icon name="folder-add" /></template>{{ $t('knowledgeList.create') }}</t-button>- </div>+ </EmptyState><!-- 空间下知识库空状态 -->- <div v-if="spaceSelectionOrgId && !spaceKbsLoading && spaceKbsList.length === 0" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ $t('knowledgeList.empty.sharedTitle') }}</span>- <span class="empty-desc">{{ $t('knowledgeList.empty.sharedDescription') }}</span>- </div>+ <EmptyState v-if="spaceSelectionOrgId && !spaceKbsLoading && spaceKbsList.length === 0" icon="folder-open" :title="$t('knowledgeList.empty.sharedTitle')"+ :description="$t('knowledgeList.empty.sharedDescription')" /></div></div>- <!-- 删除确认对话框 -->- <t-dialog v-model:visible="deleteVisible" dialogClassName="del-knowledge-dialog" :closeBtn="false" :cancelBtn="null"- :confirmBtn="null">- <div class="circle-wrap">- <div class="dialog-header">- <img class="circle-img" src="@/assets/img/circle.png" alt="">- <span class="circle-title">{{ $t('knowledgeList.delete.confirmTitle') }}</span>- </div>- <span class="del-circle-txt">- {{ $t('knowledgeList.delete.confirmMessage', { name: deletingKb?.name ?? '' }) }}- </span>- <div class="circle-btn">- <span class="circle-btn-txt" @click="deleteVisible = false">{{ $t('common.cancel') }}</span>- <span class="circle-btn-txt confirm" @click="confirmDelete">{{ $t('knowledgeList.delete.confirmButton')- }}</span>- </div>- </div>- </t-dialog>-<!-- 知识库编辑器(创建/编辑统一组件) --><KnowledgeBaseEditorModal :visible="uiStore.showKBEditorModal" :mode="uiStore.kbEditorMode":kb-id="uiStore.currentKBId || undefined" :initial-type="uiStore.kbEditorType"@@ -783,6 +749,8 @@import { onMounted, onUnmounted, ref, computed, watch, nextTick } from 'vue'import { useRouter, useRoute } from 'vue-router'import { MessagePlugin, Icon as TIcon } from 'tdesign-vue-next'+import EmptyState from '@/components/EmptyState.vue'+import { useConfirmDelete } from '@/components/settings/useConfirmDelete'import { deleteKnowledgeBase, duplicateKnowledgeBase, togglePinKnowledgeBase } from '@/api/knowledge-base'import { useChatResourcesStore } from '@/stores/chatResources'import { formatStringDate } from '@/utils/index'@@ -871,8 +839,7 @@ interface KB {const kbs = ref<KB[]>([])const loading = ref(false)-const deleteVisible = ref(false)-const deletingKb = ref<KB | null>(null)+const confirmDelete = useConfirmDelete()const currentMoreIndex = ref<number>(-1)const highlightedKbId = ref<string | null>(null)const highlightedCardRef = ref<HTMLElement | null>(null)@@ -1398,10 +1365,7 @@ const handleSettingsById = (id: string) => {// 通过 ID 处理删除(用于全部 Tab 下的知识库)const handleDeleteById = (id: string) => {const kb = kbs.value.find(k => k.id === id)- if (kb) {- deletingKb.value = kb- deleteVisible.value = true- }+ if (kb) requestDelete(kb)}const handleTogglePin = async (kb: KB) => {@@ -1528,24 +1492,26 @@ const goToSharedKbFromPanel = () => {const handleDelete = (kb: KB) => {// 手动关闭弹窗kb.showMore = false- deletingKb.value = kb- deleteVisible.value = true-}--const confirmDelete = () => {- if (!deletingKb.value) return-- deleteKnowledgeBase(deletingKb.value.id).then((res: any) => {- if (res.success) {- MessagePlugin.success(t('knowledgeList.messages.deleted'))- deleteVisible.value = false- deletingKb.value = null- fetchList(true)- } else {- MessagePlugin.error(res.message || t('knowledgeList.messages.deleteFailed'))- }- }).catch((e: any) => {- MessagePlugin.error(e?.message || t('knowledgeList.messages.deleteFailed'))+ requestDelete(kb)+}++const requestDelete = (kb: KB) => {+ confirmDelete({+ title: t('knowledgeList.delete.confirmTitle'),+ body: t('knowledgeList.delete.confirmMessage', { name: kb.name }),+ onConfirm: async () => {+ try {+ const res: any = await deleteKnowledgeBase(kb.id)+ if (res.success) {+ MessagePlugin.success(t('knowledgeList.messages.deleted'))+ fetchList(true)+ } else {+ MessagePlugin.error(res.message || t('knowledgeList.messages.deleteFailed'))+ }+ } catch (e: any) {+ MessagePlugin.error(e?.message || t('knowledgeList.messages.deleteFailed'))+ }+ },})}@@ -1787,6 +1753,8 @@ const handleUploadFinishedEvent = (event: Event) => {</script><style scoped lang="less">+@import (reference) '@/components/css/resource-card.less';+.kb-list-container {margin: 0;height: 100%;@@ -1828,23 +1796,13 @@ const handleUploadFinishedEvent = (event: Event) => {margin: 0;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 32px;}}-.kb-create-btn {- background: linear-gradient(135deg, var(--td-brand-color) 0%, #00a67e 100%);- border: none;- color: var(--td-text-color-anti);-- &:hover {- background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);- }-}-.kb-list-main {flex: 1;min-width: 0;@@ -1870,9 +1828,9 @@ const handleUploadFinishedEvent = (event: Event) => {display: inline-flex;align-items: center;padding: 2px 6px;- background: rgba(7, 192, 95, 0.1);- border-radius: 4px;- font-size: 12px;+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);color: var(--td-brand-color);margin-left: 6px;}@@ -1881,30 +1839,30 @@ const handleUploadFinishedEvent = (event: Event) => {margin: 0;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;}.header-action-btn {- padding: 0 !important;- min-width: 28px !important;- width: 28px !important;- height: 28px !important;- display: inline-flex !important;- align-items: center !important;- justify-content: center !important;- background: var(--td-bg-color-secondarycontainer) !important;- border: 1px solid var(--td-component-stroke) !important;- border-radius: 6px !important;+ padding: 0;+ min-width: 28px;+ width: 28px;+ height: 28px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ background: var(--td-bg-color-secondarycontainer);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);cursor: pointer;box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-bg-color-container) 72%, transparent);- transition: background 0.2s, border-color 0.2s, color 0.2s;+ transition: background var(--app-motion-base), border-color var(--app-motion-base), color var(--app-motion-base);&:hover {- background: var(--td-bg-color-secondarycontainer) !important;- border-color: var(--td-component-stroke) !important;+ background: var(--td-bg-color-secondarycontainer);+ border-color: var(--td-component-stroke);color: var(--td-text-color-primary);}@@ -1927,11 +1885,11 @@ const handleUploadFinishedEvent = (event: Event) => {cursor: pointer;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;user-select: none;position: relative;- transition: color 0.2s ease;+ transition: color var(--app-motion-base) ease;&:hover {color: var(--td-text-color-primary);@@ -1955,7 +1913,6 @@ const handleUploadFinishedEvent = (event: Event) => {}}-// 共享知识库卡片样式// 共享标识(文档类型默认绿色,位置贴右上角).shared-badge {@@ -1966,9 +1923,9 @@ const handleUploadFinishedEvent = (event: Event) => {align-items: center;gap: 4px;padding: 2px 8px;- background: rgba(7, 192, 95, 0.1);- border-radius: 4px;- font-size: 12px;+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);color: var(--td-brand-color);font-weight: 500;@@ -1983,13 +1940,13 @@ const handleUploadFinishedEvent = (event: Event) => {align-items: center;gap: 5px;padding: 3px 8px;- background: rgba(7, 192, 95, 0.06);- border-radius: 6px;- font-size: 12px;+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);max-width: 140px;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;span {overflow: hidden;@@ -2017,13 +1974,13 @@ const handleUploadFinishedEvent = (event: Event) => {align-items: center;gap: 5px;padding: 3px 8px;- background: rgba(7, 192, 95, 0.06);- border-radius: 6px;- font-size: 11px;+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-xs);line-height: 1.4;color: var(--td-text-color-secondary);font-weight: 500;- transition: background-color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease;span {font-weight: 500;@@ -2040,35 +1997,35 @@ const handleUploadFinishedEvent = (event: Event) => {// 共享知识库根据类型显示不同样式&.kb-type-document {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%) !important;+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%) !important;&:hover {border-color: var(--td-brand-color) !important;- box-shadow: 0 4px 12px rgba(7, 192, 95, 0.12) !important;- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.08) 100%) !important;+ box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 12%, transparent) !important;+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%) !important;}&::after {- background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%) !important;+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 0%, transparent 100%) !important;}}&.kb-type-faq {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.04) 100%) !important;+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%) !important;&:hover {border-color: var(--td-brand-color) !important;- box-shadow: 0 4px 12px rgba(0, 82, 217, 0.12) !important;- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.08) 100%) !important;+ box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 12%, transparent) !important;+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%) !important;}&::after {- background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%) !important;+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 0%, transparent 100%) !important;}// FAQ 类型共享标识使用蓝色.shared-badge {- background: rgba(0, 82, 217, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);.t-icon {@@ -2081,18 +2038,17 @@ const handleUploadFinishedEvent = (event: Event) => {display: inline-flex;align-items: center;gap: 4px;- font-size: 12px;- border-color: rgba(0, 82, 217, 0.15);+ font-size: var(--app-text-sm);+ border-color: color-mix(in srgb, var(--td-brand-color) 15%, transparent);color: var(--td-brand-color);- background: rgba(0, 82, 217, 0.04);+ background: color-mix(in srgb, var(--td-brand-color) 4%, transparent);font-weight: 500;padding: 2px 8px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);max-width: fit-content;}}-.warning-banner {display: flex;align-items: center;@@ -2101,10 +2057,10 @@ const handleUploadFinishedEvent = (event: Event) => {margin-bottom: 20px;background: var(--td-warning-color-light);border: 1px solid var(--td-warning-color-focus);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-warning-color);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);.t-icon {color: var(--td-warning-color);@@ -2125,7 +2081,7 @@ const handleUploadFinishedEvent = (event: Event) => {gap: 12px;padding: 12px 16px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);}@@ -2143,7 +2099,7 @@ const handleUploadFinishedEvent = (event: Event) => {.progress-title {color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 22px;margin-bottom: 2px;@@ -2152,7 +2108,7 @@ const handleUploadFinishedEvent = (event: Event) => {.progress-subtitle {color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;}@@ -2169,7 +2125,7 @@ const handleUploadFinishedEvent = (event: Event) => {.progress-bar {width: 100%;height: 6px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-bg-color-secondarycontainer);margin-top: 10px;overflow: hidden;@@ -2178,7 +2134,7 @@ const handleUploadFinishedEvent = (event: Event) => {.progress-bar-inner {height: 100%;background: linear-gradient(90deg, var(--td-brand-color-active) 0%, var(--td-brand-color) 100%);- transition: width 0.2s ease;+ transition: width var(--app-motion-base) ease;}@keyframes contentFadeIn {@@ -2194,10 +2150,7 @@ const handleUploadFinishedEvent = (event: Event) => {}.kb-card-wrap {- display: grid;- gap: 12px;- grid-template-columns: 1fr;- animation: contentFadeIn 0.32s ease-out;+ .resource-card-grid();}.kb-section-header {@@ -2227,7 +2180,7 @@ const handleUploadFinishedEvent = (event: Event) => {padding: 6px 4px 6px 0;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 20px;cursor: pointer;@@ -2239,7 +2192,7 @@ const handleUploadFinishedEvent = (event: Event) => {}&:focus-visible {- box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 82, 217, 0.2));+ box-shadow: 0 0 0 2px var(--td-brand-color-focus);}// Icons inherit the section header's text color so the whole row@@ -2254,7 +2207,7 @@ const handleUploadFinishedEvent = (event: Event) => {.kb-section-toggle {margin-left: 4px;opacity: 0.7;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}// 共享给我的两个子分组共用一个主图标 usergroup-add,再用子图标@@ -2269,10 +2222,10 @@ const handleUploadFinishedEvent = (event: Event) => {.kb-section-count {margin-left: 2px;padding: 0 6px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;font-weight: 500;}@@ -2283,41 +2236,7 @@ const handleUploadFinishedEvent = (event: Event) => {}.kb-card {- border: 1px solid var(--td-component-stroke);- border-radius: 8px;- overflow: hidden;- box-sizing: border-box;- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);- background: var(--td-bg-color-container);- position: relative;- cursor: pointer;- transition: all 0.25s ease;- padding: 12px 14px;- display: flex;- flex-direction: column;- height: 136px;- min-height: 136px;-- &.kb-card-skeleton {- cursor: default;-- .card-header {- margin-bottom: 12px;- }-- .card-content {- flex: 1;- }-- .card-bottom {- margin-top: auto;- }- }-- &:hover {- border-color: var(--td-brand-color);- box-shadow: 0 4px 12px rgba(7, 192, 95, 0.12);- }+ .resource-card();&.uninitialized {opacity: 0.9;@@ -2325,11 +2244,11 @@ const handleUploadFinishedEvent = (event: Event) => {// 文档类型样式&.kb-type-document {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%);&:hover {border-color: var(--td-brand-color);- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.08) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);}// 右上角装饰@@ -2340,7 +2259,7 @@ const handleUploadFinishedEvent = (event: Event) => {right: 0;width: 60px;height: 60px;- background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%);+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 0%, transparent 100%);border-radius: 0 12px 0 100%;pointer-events: none;z-index: 0;@@ -2349,12 +2268,12 @@ const handleUploadFinishedEvent = (event: Event) => {// 问答类型样式&.kb-type-faq {- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.04) 100%);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 4%, transparent) 100%);&:hover {border-color: var(--td-brand-color);- box-shadow: 0 4px 12px rgba(0, 82, 217, 0.12);- background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.08) 100%);+ box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 12%, transparent);+ background: linear-gradient(135deg, var(--td-bg-color-container) 0%, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 100%);}// 右上角装饰@@ -2365,7 +2284,7 @@ const handleUploadFinishedEvent = (event: Event) => {right: 0;width: 60px;height: 60px;- background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%);+ background: linear-gradient(135deg, color-mix(in srgb, var(--td-brand-color) 8%, transparent) 0%, transparent 100%);border-radius: 0 12px 0 100%;pointer-events: none;z-index: 0;@@ -2386,20 +2305,20 @@ const handleUploadFinishedEvent = (event: Event) => {justify-content: center;background: transparent;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);cursor: pointer;opacity: 0;- transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-secondarycontainer);- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}&.is-favorited {opacity: 1;- color: var(--td-warning-color, #e37318);+ color: var(--td-warning-color);}}@@ -2408,183 +2327,9 @@ const handleUploadFinishedEvent = (event: Event) => {opacity: 1;}- // 确保内容在装饰之上- .card-header,- .card-content,- .card-bottom {- position: relative;- z-index: 1;- }-- .card-header {- margin-bottom: 6px;- }-- .card-title {- font-size: 15px;- line-height: 22px;- }-- .card-content {- margin-bottom: 6px;- }-- .card-description {- font-size: 12px;- line-height: 17px;- }-- .card-bottom {- padding-top: 6px;- }-- .more-wrap {- width: 28px;- height: 28px;-- .more-icon {- width: 16px;- height: 16px;- }- }-- .card-more-btn {- width: 28px;- height: 28px;- }-}--.card-header {- display: flex;- justify-content: space-between;- align-items: center;- gap: 4px;- margin-bottom: 6px;-- .card-title {- flex: 1;- font-size: 15px;- font-weight: 600;- color: var(--td-text-color-primary);- letter-spacing: 0.01em;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- display: flex;- align-items: center;- gap: 6px;- min-width: 0;- }-- .card-title-text {- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }-- .card-more-btn {- flex-shrink: 0;- width: 24px;- height: 24px;- display: flex;- align-items: center;- justify-content: center;- border-radius: 6px;- color: var(--td-text-color-placeholder);- cursor: pointer;- transition: all 0.2s;-- &:hover {- background: var(--td-bg-color-container-hover);- color: var(--td-text-color-secondary);- }- }-- .permission-tag {- flex-shrink: 0;- }-}--.card-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 15px;- font-weight: 600;- line-height: 22px;- letter-spacing: 0.01em;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- flex: 1;- min-width: 0;-}--.more-wrap {- display: flex;- width: 24px;- height: 24px;- justify-content: center;- align-items: center;- border-radius: 6px;- cursor: pointer;- flex-shrink: 0;- transition: all 0.2s ease;- opacity: 0;-- .kb-card:hover & {- opacity: 0.6;- }-- &:hover {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- &.active-more {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- .more-icon {- width: 14px;- height: 14px;- }-}--.card-content {- flex: 1;- min-height: 0;- margin-bottom: 8px;- overflow: hidden;- display: flex;- flex-direction: column;- gap: 6px;}/* 三个列表卡片统一:描述字体 */-.card-description {- display: -webkit-box;- -webkit-box-orient: vertical;- -webkit-line-clamp: 2;- line-clamp: 2;- overflow: hidden;- color: var(--td-text-color-secondary);- font-family: var(--app-font-family);- font-size: 12px;- font-weight: 400;- line-height: 18px;-}--.card-bottom {- display: flex;- align-items: center;- justify-content: space-between;- margin-top: auto;- padding-top: 8px;- border-top: .5px solid var(--td-component-stroke);-}-.bottom-left {display: flex;align-items: center;@@ -2600,120 +2345,107 @@ const handleUploadFinishedEvent = (event: Event) => {flex-shrink: 0;.card-time {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}-.feature-badges {- display: flex;- align-items: center;- gap: 4px;-}-.feature-badge {- display: flex;- align-items: center;- justify-content: center;- width: 22px;- height: 22px;- border-radius: 5px;- cursor: default;- transition: background 0.2s ease;+ .resource-feature-badge();&.type-document {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color-active);width: auto;padding: 0 6px;gap: 3px;&:hover {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}.badge-count {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;}.processing-icon {- animation: spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}}&.type-faq {- background: rgba(0, 82, 217, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);width: auto;padding: 0 6px;gap: 3px;&:hover {- background: rgba(0, 82, 217, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}.badge-count {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;}.processing-icon {- animation: spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}}&.kg {- background: rgba(124, 77, 255, 0.08);+ background: color-mix(in srgb, var(--app-accent-purple) 8%, transparent);color: var(--td-brand-color);&:hover {- background: rgba(124, 77, 255, 0.12);+ background: color-mix(in srgb, var(--app-accent-purple) 12%, transparent);}}&.multimodal {- background: rgba(255, 152, 0, 0.08);+ background: color-mix(in srgb, var(--td-warning-color) 8%, transparent);color: var(--td-warning-color);&:hover {- background: rgba(255, 152, 0, 0.12);+ background: color-mix(in srgb, var(--td-warning-color) 12%, transparent);}}&.question {- background: rgba(0, 150, 136, 0.08);+ background: color-mix(in srgb, var(--td-success-color) 8%, transparent);color: var(--td-success-color);&:hover {- background: rgba(0, 150, 136, 0.12);+ background: color-mix(in srgb, var(--td-success-color) 12%, transparent);}}&.shared {- background: rgba(0, 82, 217, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);&:hover {- background: rgba(0, 82, 217, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}&.role-admin {- background: rgba(7, 192, 95, 0.1);+ background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color-active);&:hover {- background: rgba(7, 192, 95, 0.15);+ background: color-mix(in srgb, var(--td-brand-color) 15%, transparent);}}&.role-editor {- background: rgba(255, 152, 0, 0.1);+ background: color-mix(in srgb, var(--td-warning-color) 10%, transparent);color: var(--td-warning-color);&:hover {- background: rgba(255, 152, 0, 0.15);+ background: color-mix(in srgb, var(--td-warning-color) 15%, transparent);}}@@ -2722,37 +2454,27 @@ const handleUploadFinishedEvent = (event: Event) => {color: var(--td-text-color-secondary);&:hover {- background: rgba(0, 0, 0, 0.08);+ background: var(--td-bg-color-component);}}}-@keyframes spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}-@keyframes highlightFlash {0% {border-color: var(--td-brand-color);- box-shadow: 0 0 0 0 rgba(7, 192, 95, 0.4);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--td-brand-color) 40%, transparent);transform: scale(1);}50% {border-color: var(--td-brand-color);- box-shadow: 0 0 0 8px rgba(7, 192, 95, 0);+ box-shadow: 0 0 0 8px color-mix(in srgb, var(--td-brand-color) 0%, transparent);transform: scale(1.02);}100% {border-color: var(--td-brand-color);- box-shadow: 0 0 0 0 rgba(7, 192, 95, 0);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--td-brand-color) 0%, transparent);transform: scale(1);}}@@ -2760,52 +2482,7 @@ const handleUploadFinishedEvent = (event: Event) => {.kb-card.highlight-flash {animation: highlightFlash 0.6s ease-in-out 3;border-color: var(--td-brand-color) !important;- box-shadow: 0 0 12px rgba(7, 192, 95, 0.3) !important;-}--.card-time {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 12px;- font-weight: 400;-}---.empty-state {- flex: 1;- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;- padding: 60px 20px;-- .empty-img {- width: 162px;- height: 162px;- margin-bottom: 20px;- }-- .empty-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 26px;- margin-bottom: 8px;- }-- .empty-desc {- color: var(--td-text-color-disabled);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- margin-bottom: 0;- }-- .empty-state-btn {- margin-top: 20px;- }+ box-shadow: 0 0 12px color-mix(in srgb, var(--td-brand-color) 30%, transparent) !important;}// 响应式布局@@ -2840,88 +2517,10 @@ const handleUploadFinishedEvent = (event: Event) => {}// 删除确认对话框样式-:deep(.del-knowledge-dialog) {- padding: 0px !important;- border-radius: 6px !important;-- .t-dialog__header {- display: none;- }-- .t-dialog__body {- padding: 16px;- }-- .t-dialog__footer {- padding: 0;- }-}-:deep(.t-dialog__position.t-dialog--top) {padding-top: 40vh !important;}-.circle-wrap {- .dialog-header {- display: flex;- align-items: center;- margin-bottom: 8px;- }-- .circle-img {- width: 20px;- height: 20px;- margin-right: 8px;- }-- .circle-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 24px;- }-- .del-circle-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- display: inline-block;- margin-left: 29px;- margin-bottom: 21px;- }-- .circle-btn {- height: 22px;- width: 100%;- display: flex;- justify-content: flex-end;- }-- .circle-btn-txt {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- cursor: pointer;-- &:hover {- opacity: 0.8;- }- }-- .confirm {- color: var(--td-error-color);- margin-left: 40px;-- &:hover {- opacity: 0.8;- }- }-}</style><style lang="less">@@ -2934,20 +2533,20 @@ const handleUploadFinishedEvent = (event: Event) => {gap: 4px;padding: 4px 8px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);font-family: var(--app-font-family);cursor: pointer;- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;.t-icon {flex-shrink: 0;}&:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);}}@@ -2987,7 +2586,7 @@ const handleUploadFinishedEvent = (event: Event) => {.shared-detail-drawer-title {margin: 0;- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -2996,14 +2595,14 @@ const handleUploadFinishedEvent = (event: Event) => {width: 32px;height: 32px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);cursor: pointer;display: flex;align-items: center;justify-content: center;- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-secondarycontainer);@@ -3027,13 +2626,13 @@ const handleUploadFinishedEvent = (event: Event) => {}.shared-detail-drawer-body .shared-detail-label {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.4;}.shared-detail-drawer-body .shared-detail-value {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);line-height: 1.5;word-break: break-word;@@ -3095,7 +2694,7 @@ const handleUploadFinishedEvent = (event: Event) => {.create-kb-dialog {.t-form-item__label {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}diff --git a/frontend/src/views/knowledge/components/BatchTagDialog.vue b/frontend/src/views/knowledge/components/BatchTagDialog.vueindex ae6e5b083..f267022de 100644--- a/frontend/src/views/knowledge/components/BatchTagDialog.vue+++ b/frontend/src/views/knowledge/components/BatchTagDialog.vue@@ -147,7 +147,7 @@ function handleOpenManage() {.batch-tag-dialog {overflow: hidden;padding: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.batch-tag-dialog .t-dialog__header {@@ -164,7 +164,7 @@ function handleOpenManage() {right: 16px;width: 28px;height: 28px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-secondary);transition: background 0.18s ease;}@@ -204,7 +204,7 @@ function handleOpenManage() {.batch-tag-title {color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 22px;letter-spacing: 0.2px;@@ -215,7 +215,7 @@ function handleOpenManage() {min-width: 0;overflow: hidden;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;line-height: 18px;text-overflow: ellipsis;@@ -246,7 +246,7 @@ function handleOpenManage() {}.batch-tag-body .setting-drawer__section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;@@ -281,13 +281,13 @@ function handleOpenManage() {.batch-tag-section-head :deep(.t-button) {height: auto;padding: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);flex-shrink: 0;border: none !important;background: transparent !important;box-shadow: none !important;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.batch-tag-section-head :deep(.batch-tag-manage-link.t-button:hover),@@ -303,10 +303,10 @@ function handleOpenManage() {}.batch-tag-search-bar :deep(.t-input) {- font-size: 12px;+ font-size: var(--app-text-sm);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 4px;+ border-radius: var(--app-radius-xs);box-shadow: none !important;}@@ -343,11 +343,11 @@ function handleOpenManage() {height: 22px;padding: 0 8px;border: 1px solid var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 22px;text-align: center;cursor: pointer;@@ -355,7 +355,7 @@ function handleOpenManage() {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;-webkit-font-smoothing: antialiased;}@@ -383,7 +383,7 @@ function handleOpenManage() {.batch-tag-section-empty {margin: 0;min-height: 22px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 22px;color: var(--td-text-color-placeholder);}@@ -400,11 +400,11 @@ function handleOpenManage() {}.batch-tag-create-row :deep(.t-input) {- font-size: 12px;+ font-size: var(--app-text-sm);background-color: transparent;border-style: dashed;border-color: var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);box-shadow: none !important;}@@ -427,7 +427,7 @@ function handleOpenManage() {}.batch-tag-selected-count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);white-space: nowrap;}diff --git a/frontend/src/views/knowledge/components/DocumentActionMenu.vue b/frontend/src/views/knowledge/components/DocumentActionMenu.vueindex 2326f4404..1aaffcda8 100644--- a/frontend/src/views/knowledge/components/DocumentActionMenu.vue+++ b/frontend/src/views/knowledge/components/DocumentActionMenu.vue@@ -132,12 +132,12 @@ const fileName = computed(() => props.item.file_name || props.item.title || propalign-items: center;gap: 10px;padding: 8px 12px;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;color: var(--td-text-color-primary);cursor: pointer;- border-radius: 6px;- transition: background-color 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.12s ease;+ border-radius: var(--app-radius-sm);+ transition: background-color var(--app-motion-fast) cubic-bezier(0.2, 0, 0, 1), transform var(--app-motion-instant) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -149,9 +149,9 @@ const fileName = computed(() => props.item.file_name || props.item.title || prop}.icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}&:hover .icon {diff --git a/frontend/src/views/knowledge/components/DocumentBatchBar.vue b/frontend/src/views/knowledge/components/DocumentBatchBar.vueindex 7a03515be..824f82f0f 100644--- a/frontend/src/views/knowledge/components/DocumentBatchBar.vue+++ b/frontend/src/views/knowledge/components/DocumentBatchBar.vue@@ -129,7 +129,7 @@ const folderPickerVisible = ref(false);padding: 8px 12px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);}@@ -143,7 +143,7 @@ const folderPickerVisible = ref(false);}.batch-bar-count {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-secondary);white-space: nowrap;@@ -153,7 +153,7 @@ const folderPickerVisible = ref(false);flex-shrink: 0;padding: 0 6px !important;height: 28px !important;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary) !important;&:hover {@@ -176,7 +176,7 @@ const folderPickerVisible = ref(false);.batch-bar-fade-enter-active,.batch-bar-fade-leave-active {- transition: transform 0.2s ease, opacity 0.2s ease;+ transition: transform var(--app-motion-base) ease, opacity var(--app-motion-base) ease;}.batch-bar-fade-enter-from,diff --git a/frontend/src/views/knowledge/components/DocumentCardView.vue b/frontend/src/views/knowledge/components/DocumentCardView.vueindex 4484a521e..a99f529d6 100644--- a/frontend/src/views/knowledge/components/DocumentCardView.vue+++ b/frontend/src/views/knowledge/components/DocumentCardView.vue@@ -716,12 +716,12 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'display: flex;flex-direction: column;border: 1px solid var(--td-component-border);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;background: var(--td-bg-color-container);box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);cursor: pointer;- transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background-color var(--app-motion-base) ease;&:hover {border-color: color-mix(in srgb, var(--td-component-stroke) 55%, var(--td-brand-color));@@ -756,7 +756,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '.folder-card__title {flex: 1;min-height: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 20px;max-height: 40px;@@ -772,7 +772,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'flex-shrink: 0;padding: 8px 14px;border-top: 1px solid var(--td-component-stroke);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);}@@ -783,14 +783,14 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'flex-direction: column;border: 1px solid var(--td-component-border);height: 136px;- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);background: var(--td-bg-color-container);position: relative;cursor: pointer;- transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background-color var(--app-motion-base) ease;&:hover {border-color: color-mix(in srgb, var(--td-component-stroke) 55%, var(--td-brand-color));@@ -836,14 +836,14 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '.card-analyze-loading {display: block;color: var(--td-brand-color);- font-size: 14px;+ font-size: var(--app-text-base);margin-top: 2px;}.card-analyze-txt {color: var(--td-brand-color);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);margin-left: 8px;}@@ -871,9 +871,9 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'color: var(--td-brand-color);cursor: pointer;line-height: 1;- border-radius: 4px;+ border-radius: var(--app-radius-xs);- :deep(.t-icon) { font-size: 14px; }+ :deep(.t-icon) { font-size: var(--app-text-base); }&:hover { background: var(--td-bg-color-component-hover); }}@@ -900,7 +900,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'white-space: nowrap;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;letter-spacing: 0.01em;margin-right: 8px;@@ -932,7 +932,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'overflow: hidden;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;line-height: 19px;}@@ -955,7 +955,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'flex-shrink: 0;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;white-space: nowrap;}@@ -971,9 +971,9 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'background: transparent;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -988,7 +988,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '.t-icon {flex: 0 0 auto;- font-size: 13px;+ font-size: var(--app-text-md);}}@@ -996,7 +996,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'flex-shrink: 0;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;padding: 0;background: transparent;@@ -1025,7 +1025,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '.card-draft-tip {color: var(--td-warning-color);- font-size: 11px;+ font-size: var(--app-text-xs);}// --- Tag selector ---@@ -1048,13 +1048,13 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'height: 18px;min-width: 18px;padding: 0 5px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);- font-size: 10px;+ font-size: var(--app-text-2xs);line-height: 1;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -1068,12 +1068,12 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'max-width: 120px;height: 18px;line-height: 18px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border-color: var(--td-component-stroke);color: var(--td-text-color-secondary);padding: 0 6px;background: transparent;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -1089,7 +1089,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'text-overflow: ellipsis;white-space: nowrap;vertical-align: middle;- font-size: 11px;+ font-size: var(--app-text-xs);}.card-tag-add {@@ -1098,14 +1098,14 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'gap: 2px;height: 18px;padding: 0 6px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border: 1px dashed var(--td-component-stroke);color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;- .t-icon { font-size: 12px; }+ .t-icon { font-size: var(--app-text-sm); }&:hover {border-color: var(--td-brand-color);@@ -1126,10 +1126,10 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'padding: 12px 14px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);font-family: var(--app-font-family);- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;will-change: transform;backface-visibility: hidden;-webkit-backface-visibility: hidden;@@ -1137,7 +1137,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '-webkit-transform: translateZ(0);.card-popover-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 8px;@@ -1147,7 +1147,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '}.card-popover-status {- font-size: 12px;+ font-size: var(--app-text-sm);margin-bottom: 6px;display: flex;align-items: center;@@ -1159,7 +1159,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '}.card-popover-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;margin-bottom: 8px;@@ -1171,7 +1171,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | '}.card-popover-source {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-brand-color);margin-bottom: 6px;display: flex;@@ -1188,7 +1188,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'align-items: center;flex-wrap: wrap;gap: 10px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);margin-bottom: 6px;}@@ -1201,7 +1201,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'align-items: center;flex-wrap: wrap;gap: 8px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}@@ -1209,7 +1209,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'padding: 1px 6px;background: var(--td-warning-color-light);color: var(--td-warning-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.card-popover-tags {@@ -1224,7 +1224,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'max-width: 120px;height: 18px;line-height: 18px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border-color: var(--td-component-stroke);color: var(--td-text-color-secondary);padding: 0 6px;@@ -1237,7 +1237,7 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'text-overflow: ellipsis;white-space: nowrap;vertical-align: middle;- font-size: 11px;+ font-size: var(--app-text-xs);}}@@ -1245,14 +1245,14 @@ const handleAction = (action: 'download' | 'edit' | 'view-trace' | 'reparse' | 'padding: 1px 6px;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.card-popover-hint {margin-top: 8px;padding-top: 8px;border-top: 1px solid var(--td-component-stroke);- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}}diff --git a/frontend/src/views/knowledge/components/DocumentListView.vue b/frontend/src/views/knowledge/components/DocumentListView.vueindex 355eea48a..fdfdb4be6 100644--- a/frontend/src/views/knowledge/components/DocumentListView.vue+++ b/frontend/src/views/knowledge/components/DocumentListView.vue@@ -325,7 +325,6 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |</div></div>-<div class="cell cell-tag"><template v-if="item.tags && item.tags.length > 0"><t-tooltip v-if="hasTagOverflow(item.id, (item.tags || []).length)"@@ -539,7 +538,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |top: 0;z-index: 3;height: 40px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;font-family: var(--app-font-family);color: var(--td-text-color-secondary);@@ -547,7 +546,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |border-bottom: 1px solid var(--td-component-stroke);border-radius: 8px 8px 0 0;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);- transition: border-radius 0.15s ease, box-shadow 0.2s ease;+ transition: border-radius var(--app-motion-fast) ease, box-shadow var(--app-motion-base) ease;&.is-stuck {border-radius: 0;@@ -565,11 +564,11 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |.doc-list-row {position: relative;min-height: 60px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);border-bottom: 1px solid var(--td-component-stroke);cursor: pointer;- transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, border-color var(--app-motion-base) ease;&:last-child {border-bottom: 0;@@ -650,11 +649,11 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |flex-shrink: 0;width: 28px;height: 28px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);display: inline-flex;align-items: center;justify-content: center;- font-size: 16px;+ font-size: var(--app-text-xl);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);}@@ -672,7 +671,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;letter-spacing: 0.01em;color: var(--td-text-color-primary);@@ -683,7 +682,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -701,9 +700,9 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |.row-folder-meta,.row-folder-chevron {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.row-file-folder {@@ -717,9 +716,9 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |background: transparent;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -734,7 +733,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |.t-icon {flex: 0 0 auto;- font-size: 13px;+ font-size: var(--app-text-md);}}@@ -745,7 +744,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |.row-source-icon {flex-shrink: 0;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);}@@ -754,7 +753,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -787,13 +786,13 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |height: 20px;min-width: 20px;padding: 0 4px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);- font-size: 10px;+ font-size: var(--app-text-2xs);line-height: 1;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -803,10 +802,10 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |}.row-tag-add {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);border: 1px dashed var(--td-component-stroke);- border-radius: 999px;+ border-radius: var(--app-radius-pill);padding: 0 6px;height: 20px;display: inline-flex;@@ -822,12 +821,12 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |}.row-muted {- color: var(--td-text-color-disabled, #bbb);+ color: var(--td-text-color-disabled);}.row-mono {font-variant-numeric: tabular-nums;- font-size: 12px;+ font-size: var(--app-text-sm);font-family: var(--app-font-family);color: var(--td-text-color-secondary);}@@ -837,13 +836,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |}.icon-spin {- animation: doc-list-spin 0.9s linear infinite;-}--@keyframes doc-list-spin {- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.9s linear infinite;}.row-more-btn {@@ -858,7 +851,7 @@ const handleAction = (action: 'download' | 'edit' | 'reparse' | 'cancel-parse' |color: var(--td-text-color-secondary);cursor: pointer;opacity: 0;- transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-component-stroke);diff --git a/frontend/src/views/knowledge/components/FAQBatchBar.vue b/frontend/src/views/knowledge/components/FAQBatchBar.vueindex 496c43a9a..53046f06c 100644--- a/frontend/src/views/knowledge/components/FAQBatchBar.vue+++ b/frontend/src/views/knowledge/components/FAQBatchBar.vue@@ -94,7 +94,7 @@ const actionLoading = computed(() => (padding: 8px 12px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);}@@ -108,7 +108,7 @@ const actionLoading = computed(() => (.faq-batch-bar__count {color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;white-space: nowrap;}@@ -123,7 +123,7 @@ const actionLoading = computed(() => (.faq-batch-bar-fade-enter-active,.faq-batch-bar-fade-leave-active {- transition: transform 0.2s ease, opacity 0.2s ease;+ transition: transform var(--app-motion-base) ease, opacity var(--app-motion-base) ease;}.faq-batch-bar-fade-enter-from,diff --git a/frontend/src/views/knowledge/components/FAQEntryManager.vue b/frontend/src/views/knowledge/components/FAQEntryManager.vueindex fc77ea662..637436bd2 100644--- a/frontend/src/views/knowledge/components/FAQEntryManager.vue+++ b/frontend/src/views/knowledge/components/FAQEntryManager.vue@@ -779,6 +779,7 @@import { ref, reactive, watch, onMounted, computed, nextTick, onUnmounted, h } from 'vue'import KnowledgeTagFilter from './KnowledgeTagFilter.vue'import { MessagePlugin, DialogPlugin, Icon as TIcon } from 'tdesign-vue-next'+import { useConfirmDelete } from '@/components/settings/useConfirmDelete'import type { FormRules, FormInstanceFunctions } from 'tdesign-vue-next'import { useI18n } from 'vue-i18n'import { useRouter } from 'vue-router'@@ -848,6 +849,7 @@ const props = defineProps<{}>()const { t } = useI18n()+const confirmDelete = useConfirmDelete()const router = useRouter()const uiStore = useUIStore()const authStore = useAuthStore()@@ -1192,7 +1194,6 @@ const searchForm = reactive({matchCount: 10,})-const getTagName = (tagId?: number) => {if (!tagId) return t('knowledgeBase.untagged')return tagMapBySeqId.value[tagId]?.name || t('knowledgeBase.untagged')@@ -1707,15 +1708,20 @@ const handleMenuEdit = (entry: FAQEntry) => {openEditor(entry)}-const handleMenuDelete = async (entry: FAQEntry) => {+const handleMenuDelete = (entry: FAQEntry) => {entry.showMore = false- try {- await deleteFAQEntries(props.kbId, [entry.id])- MessagePlugin.success(t('knowledgeEditor.faqImport.deleteSuccess'))- await loadEntries()- } catch (error: any) {- MessagePlugin.error(error?.message || t('common.operationFailed'))- }+ confirmDelete({+ body: t('knowledgeEditor.faq.confirmDelete'),+ onConfirm: async () => {+ try {+ await deleteFAQEntries(props.kbId, [entry.id])+ MessagePlugin.success(t('knowledgeEditor.faqImport.deleteSuccess'))+ await loadEntries()+ } catch (error: any) {+ MessagePlugin.error(error?.message || t('common.operationFailed'))+ }+ },+ })}const openImportDialog = () => {@@ -2713,7 +2719,7 @@ watch(() => entries.value.map(e => ({.fade-enter-active,.fade-leave-active {- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}.fade-enter-from,@@ -2813,10 +2819,10 @@ watch(() => entries.value.map(e => ({}:deep(.t-input) {- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: none !important;&:hover,@@ -2843,15 +2849,15 @@ watch(() => entries.value.map(e => ({align-items: center;padding: 8px 16px;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;.menu-icon {margin-right: 8px;- font-size: 16px;+ font-size: var(--app-text-xl);}&:hover {@@ -2918,7 +2924,7 @@ watch(() => entries.value.map(e => ({align-items: center;gap: 6px;margin: 0;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -2934,8 +2940,8 @@ watch(() => entries.value.map(e => ({display: inline-flex;align-items: center;gap: 4px;- border-radius: 6px;- transition: all 0.12s ease;+ border-radius: var(--app-radius-sm);+ transition: all var(--app-motion-instant) ease;&:hover:not(:disabled) {color: var(--td-success-color);@@ -2951,8 +2957,8 @@ watch(() => entries.value.map(e => ({padding-right: 6px;:deep(.t-icon) {- font-size: 14px;- transition: transform 0.12s ease;+ font-size: var(--app-text-base);+ transition: transform var(--app-motion-instant) ease;}&:hover:not(:disabled) {@@ -2964,7 +2970,7 @@ watch(() => entries.value.map(e => ({}.breadcrumb-separator {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);}@@ -2977,7 +2983,7 @@ watch(() => entries.value.map(e => ({margin: 0;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 32px;}@@ -2986,13 +2992,12 @@ watch(() => entries.value.map(e => ({margin: 0;color: var(--td-text-color-placeholder);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;}}-// 导入结果入口:默认仅图标,hover / 点击展开浮层.faq-import-host {position: relative;@@ -3009,7 +3014,7 @@ watch(() => entries.value.map(e => ({color: var(--td-success-color);cursor: pointer;line-height: 1;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;&:hover {opacity: 0.75;@@ -3025,7 +3030,7 @@ watch(() => entries.value.map(e => ({visibility: hidden;pointer-events: none;transform: translateY(-4px);- transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, transform var(--app-motion-fast) ease, visibility var(--app-motion-fast) ease;}&:hover .faq-import-panel,@@ -3040,7 +3045,7 @@ watch(() => entries.value.map(e => ({.faq-import-strip--panel {margin-bottom: 0;padding: 8px 10px;- font-size: 12px;+ font-size: var(--app-text-sm);white-space: nowrap;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);@@ -3050,7 +3055,6 @@ watch(() => entries.value.map(e => ({}}-// FAQ 导入提示条(紧凑单行).faq-import-strip {display: inline-flex;@@ -3060,8 +3064,8 @@ watch(() => entries.value.map(e => ({max-width: 100%;margin-bottom: 10px;padding: 4px 8px 4px 10px;- border-radius: 6px;- font-size: 12px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);@@ -3072,7 +3076,7 @@ watch(() => entries.value.map(e => ({color: var(--td-text-color-placeholder);&.is-spinning {- animation: faq-import-spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}}@@ -3098,19 +3102,19 @@ watch(() => entries.value.map(e => ({height: 100%;border-radius: 2px;background: var(--td-brand-color);- transition: width 0.3s ease;+ transition: width var(--app-motion-slow) ease;}&__count {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);font-variant-numeric: tabular-nums;color: var(--td-text-color-placeholder);}&__time {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);white-space: nowrap;}@@ -3119,7 +3123,7 @@ watch(() => entries.value.map(e => ({flex-shrink: 0;padding: 0 4px;height: auto;- font-size: 12px;+ font-size: var(--app-text-sm);}&__close {@@ -3132,11 +3136,11 @@ watch(() => entries.value.map(e => ({margin: 0;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: rgba(0, 0, 0, 0.06);@@ -3184,17 +3188,6 @@ watch(() => entries.value.map(e => ({}}-@keyframes faq-import-spin {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }-}--.tag-filter-bar {display: flex;align-items: center;@@ -3203,11 +3196,10 @@ watch(() => entries.value.map(e => ({.tag-filter-label {color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}}-.kb-settings-button {width: 30px;height: 30px;@@ -3219,7 +3211,7 @@ watch(() => entries.value.map(e => ({justify-content: center;color: var(--td-text-color-secondary);cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;padding: 0;&:hover:not(:disabled) {@@ -3233,7 +3225,7 @@ watch(() => entries.value.map(e => ({}:deep(.t-icon) {- font-size: 18px;+ font-size: var(--app-text-2xl);}}@@ -3314,7 +3306,7 @@ watch(() => entries.value.map(e => ({.faq-card {border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);padding: 10px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);@@ -3325,7 +3317,7 @@ watch(() => entries.value.map(e => ({max-width: 100%;overflow: hidden;cursor: default;- transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease, background-color var(--app-motion-base) ease;box-sizing: border-box;height: fit-content;@@ -3334,14 +3326,14 @@ watch(() => entries.value.map(e => ({&:hover {border-color: var(--td-brand-color);- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.1);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}}&.selected {border-color: var(--td-brand-color);background: var(--td-success-color-light);- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.15);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--td-brand-color) 15%, transparent);}}@@ -3382,18 +3374,18 @@ watch(() => entries.value.map(e => ({align-items: baseline;gap: 5px;padding: 3px 8px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);.meta-label {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);font-weight: 500;}.meta-value {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);font-weight: 600;}@@ -3424,15 +3416,15 @@ watch(() => entries.value.map(e => ({align-items: center;gap: 5px;padding: 3px 8px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);font-family: var(--app-font-family);.status-icon {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);&.warning {@@ -3450,18 +3442,18 @@ watch(() => entries.value.map(e => ({align-items: center;gap: 6px;padding: 2px 4px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;border: none;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-container-hover);}.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.warning {@@ -3491,15 +3483,15 @@ watch(() => entries.value.map(e => ({cursor: pointer;max-width: 120px;height: 20px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);border-color: var(--td-component-stroke);color: var(--td-text-color-disabled);padding: 0 6px;background: var(--td-bg-color-container-hover);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;font-family: var(--app-font-family);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -3519,7 +3511,7 @@ watch(() => entries.value.map(e => ({overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 400;color: var(--td-text-color-disabled);}@@ -3531,7 +3523,7 @@ watch(() => entries.value.map(e => ({height: 28px;justify-content: center;align-items: center;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;flex-shrink: 0;opacity: 0.6;@@ -3557,7 +3549,7 @@ watch(() => entries.value.map(e => ({flex: 1;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.5;word-break: break-word;@@ -3589,7 +3581,7 @@ watch(() => entries.value.map(e => ({.faq-section-label {color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;text-transform: uppercase;letter-spacing: 0.5px;@@ -3611,7 +3603,7 @@ watch(() => entries.value.map(e => ({cursor: pointer;user-select: none;padding: 2px 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);&:hover {color: var(--td-text-color-primary);@@ -3624,7 +3616,7 @@ watch(() => entries.value.map(e => ({}.collapse-icon {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);flex-shrink: 0;margin-left: auto; // 让箭头靠右对齐@@ -3674,7 +3666,7 @@ watch(() => entries.value.map(e => ({}.question-tag {- font-size: 11px;+ font-size: var(--app-text-xs);padding: 3px 8px;max-width: 100%;min-width: 0;@@ -3725,13 +3717,12 @@ watch(() => entries.value.map(e => ({.empty-tip {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-style: italic;padding: 8px 0;font-family: var(--app-font-family);}-.faq-load-more,.faq-no-more {display: flex;@@ -3739,7 +3730,7 @@ watch(() => entries.value.map(e => ({align-items: center;padding: 24px 16px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);font-family: var(--app-font-family);}@@ -3773,7 +3764,7 @@ watch(() => entries.value.map(e => ({.empty-text {color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;line-height: 28px;}@@ -3781,7 +3772,7 @@ watch(() => entries.value.map(e => ({.empty-desc {color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 22px;}@@ -3806,7 +3797,7 @@ watch(() => entries.value.map(e => ({max-width: 600px;max-height: 90vh;background: var(--td-bg-color-container);- border-radius: 12px;+ border-radius: var(--app-radius-xl);box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);overflow: hidden;display: flex;@@ -3820,13 +3811,13 @@ watch(() => entries.value.map(e => ({height: 32px;border: none;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;display: flex;align-items: center;justify-content: center;color: var(--td-text-color-secondary);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;z-index: 10;&:hover {@@ -3851,7 +3842,7 @@ watch(() => entries.value.map(e => ({.import-title {margin: 0;font-family: var(--app-font-family);- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -3878,7 +3869,7 @@ watch(() => entries.value.map(e => ({&::-webkit-scrollbar-thumb {background: var(--td-bg-color-component-disabled);border-radius: 3px;- transition: background 0.2s;+ transition: background var(--app-motion-base);&:hover {background: var(--td-brand-color);@@ -3919,14 +3910,14 @@ watch(() => entries.value.map(e => ({align-items: center;gap: 6px;font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;padding: 6px 14px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-container);color: var(--td-text-color-primary);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;cursor: pointer;white-space: nowrap;@@ -3941,7 +3932,7 @@ watch(() => entries.value.map(e => ({}:deep(.t-icon) {- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -3950,7 +3941,7 @@ watch(() => entries.value.map(e => ({display: block;margin-bottom: 0;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);letter-spacing: -0.2px;@@ -3985,10 +3976,10 @@ watch(() => entries.value.map(e => ({width: 100%;min-height: 120px;border: 2px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);cursor: pointer;- transition: all 0.3s ease;+ transition: all var(--app-motion-slow) ease;display: flex;align-items: center;justify-content: center;@@ -4016,7 +4007,7 @@ watch(() => entries.value.map(e => ({.upload-icon {color: var(--td-brand-color);- transition: transform 0.2s ease;+ transition: transform var(--app-motion-base) ease;}.file-upload-area:hover .upload-icon {@@ -4031,20 +4022,20 @@ watch(() => entries.value.map(e => ({.upload-primary-text {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.upload-secondary-text {font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.upload-file-name {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-brand-color);word-break: break-all;@@ -4054,7 +4045,7 @@ watch(() => entries.value.map(e => ({.import-form-tip {margin-top: 8px;font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);line-height: 18px;}@@ -4065,7 +4056,7 @@ watch(() => entries.value.map(e => ({padding: 16px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.preview-header {@@ -4084,7 +4075,7 @@ watch(() => entries.value.map(e => ({.preview-title {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}@@ -4103,12 +4094,12 @@ watch(() => entries.value.map(e => ({padding: 10px 12px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 6px;- transition: all 0.2s ease;+ border-radius: var(--app-radius-sm);+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);- box-shadow: 0 2px 4px rgba(7, 192, 95, 0.08);+ box-shadow: 0 2px 4px color-mix(in srgb, var(--td-brand-color) 8%, transparent);}}@@ -4121,16 +4112,16 @@ watch(() => entries.value.map(e => ({justify-content: center;background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);color: var(--td-text-color-anti);- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;}.preview-question {flex: 1;font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);line-height: 1.5;word-break: break-word;@@ -4141,7 +4132,7 @@ watch(() => entries.value.map(e => ({padding-top: 8px;border-top: 1px solid var(--td-component-stroke);font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);text-align: center;}@@ -4164,7 +4155,7 @@ watch(() => entries.value.map(e => ({padding: 20px 24px;border-bottom: 1px solid var(--td-component-stroke);font-family: var(--app-font-family);- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -4194,7 +4185,7 @@ watch(() => entries.value.map(e => ({&::-webkit-scrollbar-thumb {background: var(--td-bg-color-component-disabled);border-radius: 3px;- transition: background 0.2s;+ transition: background var(--app-motion-base);&:hover {background: var(--td-brand-color);@@ -4245,14 +4236,14 @@ watch(() => entries.value.map(e => ({min-width: 32px;padding: 0;font-family: var(--app-font-family);- transition: all 0.2s ease;- border-radius: 8px;+ transition: all var(--app-motion-base) ease;+ border-radius: var(--app-radius-md);}:deep(.add-item-btn) {background: var(--td-brand-color) !important;border: 1px solid var(--td-brand-color) !important;- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;color: var(--td-text-color-anti) !important;display: flex;align-items: center;@@ -4262,7 +4253,7 @@ watch(() => entries.value.map(e => ({background: var(--td-brand-color) !important;border-color: var(--td-brand-color-active) !important;transform: scale(1.05);- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.3);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--td-brand-color) 30%, transparent);}&:active:not(:disabled) {@@ -4280,7 +4271,7 @@ watch(() => entries.value.map(e => ({}.t-icon {- font-size: 16px;+ font-size: var(--app-text-xl);}}}@@ -4293,7 +4284,7 @@ watch(() => entries.value.map(e => ({}.item-count {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);font-family: var(--app-font-family);font-weight: 500;@@ -4310,7 +4301,6 @@ watch(() => entries.value.map(e => ({margin-top: 8px;}-.item-row {display: flex;align-items: center;@@ -4318,8 +4308,8 @@ watch(() => entries.value.map(e => ({padding: 10px 14px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;- transition: all 0.2s ease;+ border-radius: var(--app-radius-md);+ transition: all var(--app-motion-base) ease;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);position: relative;@@ -4331,7 +4321,7 @@ watch(() => entries.value.map(e => ({&:hover {background: var(--td-bg-color-secondarycontainer);border-color: var(--td-brand-color);- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.12);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--td-brand-color) 12%, transparent);transform: translateY(-1px);}@@ -4348,7 +4338,7 @@ watch(() => entries.value.map(e => ({.item-content {flex: 1;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;color: var(--td-text-color-primary);font-family: var(--app-font-family);@@ -4368,8 +4358,8 @@ watch(() => entries.value.map(e => ({display: flex;align-items: center;justify-content: center;- border-radius: 6px;- transition: all 0.2s ease;+ border-radius: var(--app-radius-sm);+ transition: all var(--app-motion-base) ease;background: transparent;border: none;cursor: pointer;@@ -4384,7 +4374,7 @@ watch(() => entries.value.map(e => ({}:deep(.t-icon) {- font-size: 14px;+ font-size: var(--app-text-base);}}@@ -4395,7 +4385,7 @@ watch(() => entries.value.map(e => ({.form-tip {margin-top: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);font-family: var(--app-font-family);}@@ -4536,7 +4526,7 @@ watch(() => entries.value.map(e => ({padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -4544,7 +4534,7 @@ watch(() => entries.value.map(e => ({}.required-label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);display: inline-flex;@@ -4556,11 +4546,11 @@ watch(() => entries.value.map(e => ({.required-mark {color: var(--td-error-color);font-weight: 600;- font-size: 14px;+ font-size: var(--app-text-base);}.optional-label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);display: block;@@ -4568,14 +4558,14 @@ watch(() => entries.value.map(e => ({}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;}.optional-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}}@@ -4623,11 +4613,11 @@ watch(() => entries.value.map(e => ({// Input 组件样式 - 与登录页面一致:deep(.t-input) {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -4635,7 +4625,7 @@ watch(() => entries.value.map(e => ({&:focus-within {border-color: var(--td-brand-color);- box-shadow: 0 0 0 3px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}.t-input__inner {@@ -4643,7 +4633,7 @@ watch(() => entries.value.map(e => ({box-shadow: none !important;outline: none !important;background: transparent;- font-size: 14px;+ font-size: var(--app-text-base);font-family: var(--app-font-family);padding: 6px 12px;color: var(--td-text-color-primary);@@ -4668,11 +4658,11 @@ watch(() => entries.value.map(e => ({// Textarea 组件样式:deep(.t-textarea) {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover {border-color: var(--td-brand-color);@@ -4680,7 +4670,7 @@ watch(() => entries.value.map(e => ({&:focus-within {border-color: var(--td-brand-color);- box-shadow: 0 0 0 3px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}.t-textarea__inner {@@ -4688,7 +4678,7 @@ watch(() => entries.value.map(e => ({box-shadow: none !important;outline: none !important;background: transparent;- font-size: 14px;+ font-size: var(--app-text-base);font-family: var(--app-font-family);line-height: 1.6;resize: vertical;@@ -4710,14 +4700,14 @@ watch(() => entries.value.map(e => ({// 导入弹窗动画.modal-enter-active,.modal-leave-active {- transition: opacity 0.2s ease;+ transition: opacity var(--app-motion-base) ease;}.modal-enter-active .faq-import-modal,.modal-leave-active .faq-import-modal,.modal-enter-active .batch-tag-modal,.modal-leave-active .batch-tag-modal {- transition: transform 0.2s ease, opacity 0.2s ease;+ transition: transform var(--app-motion-base) ease, opacity var(--app-motion-base) ease;}.modal-enter-from,@@ -4759,7 +4749,7 @@ watch(() => entries.value.map(e => ({padding: 20px 24px;border-bottom: 1px solid var(--td-component-stroke);font-family: var(--app-font-family);- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -4838,7 +4828,7 @@ watch(() => entries.value.map(e => ({margin-bottom: 8px;label {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -4846,7 +4836,7 @@ watch(() => entries.value.map(e => ({}.desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 0;line-height: 1.4;@@ -4873,25 +4863,25 @@ watch(() => entries.value.map(e => ({min-width: 50px;text-align: right;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);padding: 4px 8px;background: var(--td-bg-color-container);- border-radius: 6px;+ border-radius: var(--app-radius-sm);}.search-button {height: 36px;- border-radius: 8px;+ border-radius: var(--app-radius-md);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&:hover:not(:disabled) {transform: translateY(-1px);- box-shadow: 0 4px 12px rgba(7, 192, 95, 0.3);+ box-shadow: 0 4px 12px color-mix(in srgb, var(--td-brand-color) 30%, transparent);}&:active:not(:disabled) {@@ -4917,7 +4907,7 @@ watch(() => entries.value.map(e => ({margin-right: 0;padding-left: 0;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);flex-shrink: 0;@@ -4935,10 +4925,10 @@ watch(() => entries.value.map(e => ({padding: 48px 16px;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);text-align: center;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px dashed var(--td-component-stroke);}@@ -4950,10 +4940,10 @@ watch(() => entries.value.map(e => ({.result-card {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);padding: 14px;- transition: border-color 0.2s ease, box-shadow 0.2s ease;+ transition: border-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);width: 100%;box-sizing: border-box;@@ -4963,7 +4953,7 @@ watch(() => entries.value.map(e => ({&:hover {border-color: var(--td-brand-color);- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.12);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}@@ -4977,7 +4967,7 @@ watch(() => entries.value.map(e => ({user-select: none;padding: 4px;margin: -4px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);position: relative;&:hover {@@ -5012,7 +5002,7 @@ watch(() => entries.value.map(e => ({.result-question {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);line-height: 1.6;@@ -5033,7 +5023,7 @@ watch(() => entries.value.map(e => ({align-items: flex-start;gap: 4px;padding-left: 20px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;.matched-label {@@ -5046,7 +5036,7 @@ watch(() => entries.value.map(e => ({color: var(--td-warning-color-active);background: linear-gradient(90deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);word-break: break-word;}}@@ -5061,9 +5051,9 @@ watch(() => entries.value.map(e => ({.expand-icon {flex-shrink: 0;- font-size: 18px;+ font-size: var(--app-text-2xl);color: var(--td-text-color-secondary);- transition: transform 0.2s ease;+ transition: transform var(--app-motion-base) ease;cursor: pointer;&:hover {@@ -5073,9 +5063,9 @@ watch(() => entries.value.map(e => ({.score-tag,.match-type-tag {- font-size: 12px;+ font-size: var(--app-text-sm);padding: 4px 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);font-family: var(--app-font-family);}@@ -5092,14 +5082,14 @@ watch(() => entries.value.map(e => ({// Slide down animation - 优化性能.slide-down-enter-active {- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),+ transition: opacity var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1),transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);overflow: hidden;will-change: opacity, transform;}.slide-down-leave-active {- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),+ transition: opacity var(--app-motion-base) cubic-bezier(0.4, 0, 0.2, 1),transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);overflow: hidden;will-change: opacity, transform;@@ -5149,7 +5139,7 @@ watch(() => entries.value.map(e => ({width: 100%;max-width: 480px;background: var(--td-bg-color-container);- border-radius: 12px;+ border-radius: var(--app-radius-xl);box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);overflow: hidden;display: flex;@@ -5163,13 +5153,13 @@ watch(() => entries.value.map(e => ({height: 32px;border: none;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;display: flex;align-items: center;justify-content: center;color: var(--td-text-color-secondary);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;z-index: 10;&:hover {@@ -5191,7 +5181,7 @@ watch(() => entries.value.map(e => ({.batch-tag-title {margin: 0;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);line-height: 1.4;@@ -5211,8 +5201,8 @@ watch(() => entries.value.map(e => ({margin-bottom: 20px;background: var(--td-brand-color-light);border: 1px solid var(--td-brand-color-focus);- border-radius: 8px;- font-size: 14px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-base);color: var(--td-brand-color);line-height: 1.5;@@ -5231,7 +5221,7 @@ watch(() => entries.value.map(e => ({}:deep(.t-form-item__label) {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 8px;@@ -5255,12 +5245,12 @@ watch(() => entries.value.map(e => ({padding: 8px 12px;text-align: center;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.section-label {font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-secondary);margin-bottom: 4px;diff --git a/frontend/src/views/knowledge/components/FolderPickerMenu.vue b/frontend/src/views/knowledge/components/FolderPickerMenu.vueindex ecc3a74e8..b592a7c78 100644--- a/frontend/src/views/knowledge/components/FolderPickerMenu.vue+++ b/frontend/src/views/knowledge/components/FolderPickerMenu.vue@@ -250,7 +250,7 @@ const commitNewFolder = async () => {margin-bottom: 2px;border-bottom: 1px solid var(--td-component-stroke);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;&:hover {@@ -280,11 +280,11 @@ const commitNewFolder = async () => {height: 30px;box-sizing: border-box;padding: 0 8px 0 calc(var(--folder-picker-depth, 0) * var(--folder-picker-indent) + 10px);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -320,7 +320,7 @@ const commitNewFolder = async () => {.folder-picker__icon {flex: 0 0 auto;- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-placeholder);}@@ -342,13 +342,13 @@ const commitNewFolder = async () => {margin-right: -2px;padding: 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);opacity: 0;pointer-events: none;cursor: pointer;- transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -358,7 +358,7 @@ const commitNewFolder = async () => {.folder-picker__current {flex: 0 0 auto;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);}@@ -368,11 +368,11 @@ const commitNewFolder = async () => {height: 24px;padding: 0 6px;border: 1px solid var(--td-brand-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-container);color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);outline: none;}</style>diff --git a/frontend/src/views/knowledge/components/KbFolderTree.vue b/frontend/src/views/knowledge/components/KbFolderTree.vueindex 7475054ca..d52f40032 100644--- a/frontend/src/views/knowledge/components/KbFolderTree.vue+++ b/frontend/src/views/knowledge/components/KbFolderTree.vue@@ -267,7 +267,7 @@ watch(}.kb-folder-tree__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);white-space: nowrap;@@ -280,14 +280,14 @@ watch(height: 24px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);display: inline-flex;align-items: center;justify-content: center;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -325,15 +325,15 @@ watch(width: 100%;height: 30px;padding: 0 8px 0 calc(var(--kb-folder-depth, 0) * var(--kb-folder-indent));- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);text-align: left;cursor: pointer;user-select: none;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -367,7 +367,7 @@ watch(align-items: center;justify-content: center;color: var(--td-text-color-placeholder);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.kb-folder-row__toggle {@@ -379,13 +379,13 @@ watch(}.t-icon {- font-size: 14px;+ font-size: var(--app-text-base);}}.kb-folder-row__icon {flex: 0 0 auto;- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-placeholder);}@@ -408,7 +408,7 @@ watch(}.kb-folder-row__count {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);font-variant-numeric: tabular-nums;line-height: 1;@@ -420,13 +420,13 @@ watch(height: 20px;padding: 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);align-items: center;justify-content: center;cursor: pointer;- transition: color 0.15s ease, background-color 0.15s ease;+ transition: color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -434,7 +434,7 @@ watch(}.t-icon {- font-size: 14px;+ font-size: var(--app-text-base);}}@@ -463,11 +463,11 @@ watch(height: 22px;padding: 0 6px;border: 1px solid var(--td-brand-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: var(--td-bg-color-container);color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);outline: none;}</style>diff --git a/frontend/src/views/knowledge/components/KbTagManageDrawer.vue b/frontend/src/views/knowledge/components/KbTagManageDrawer.vueindex cc60b273a..1bc897117 100644--- a/frontend/src/views/knowledge/components/KbTagManageDrawer.vue+++ b/frontend/src/views/knowledge/components/KbTagManageDrawer.vue@@ -474,10 +474,10 @@ watch(searchQuery, (newVal, oldVal) => {width: 100%;:deep(.t-input) {- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: none !important;&:hover,@@ -490,7 +490,7 @@ watch(searchQuery, (newVal, oldVal) => {}:deep(.t-input__inner) {- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-input__prefix-icon) {@@ -503,11 +503,11 @@ watch(searchQuery, (newVal, oldVal) => {width: 32px;height: 32px;padding: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);:deep(.t-icon) {- font-size: 16px;+ font-size: var(--app-text-xl);}&:hover:not(:disabled) {@@ -546,10 +546,10 @@ watch(searchQuery, (newVal, oldVal) => {min-height: 44px;padding: 5px 6px 5px 8px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);box-sizing: border-box;- transition: border-color 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover:not(.tag-tile--editing):not(.tag-tile--skeleton) {border-color: var(--td-component-border);@@ -601,7 +601,7 @@ watch(searchQuery, (newVal, oldVal) => {:deep(.t-input__inner) {padding: 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;}@@ -624,7 +624,7 @@ watch(searchQuery, (newVal, oldVal) => {flex-shrink: 0;width: 24px;height: 24px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);display: inline-flex;align-items: center;justify-content: center;@@ -641,7 +641,7 @@ watch(searchQuery, (newVal, oldVal) => {}.tag-tile__name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.3;color: var(--td-text-color-primary);@@ -651,7 +651,7 @@ watch(searchQuery, (newVal, oldVal) => {}.tag-tile__count {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.3;color: var(--td-text-color-placeholder);overflow: hidden;@@ -664,7 +664,7 @@ watch(searchQuery, (newVal, oldVal) => {align-items: center;flex-shrink: 0;opacity: 0;- transition: opacity 0.12s ease;+ transition: opacity var(--app-motion-instant) ease;}.tag-tile:hover .tag-tile__actions,@@ -699,7 +699,7 @@ watch(searchQuery, (newVal, oldVal) => {padding-top: 8px;:deep(.t-button) {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}diff --git a/frontend/src/views/knowledge/components/KbUploadSourceDropdown.vue b/frontend/src/views/knowledge/components/KbUploadSourceDropdown.vueindex e0e83fcb2..e87338d2c 100644--- a/frontend/src/views/knowledge/components/KbUploadSourceDropdown.vue+++ b/frontend/src/views/knowledge/components/KbUploadSourceDropdown.vue@@ -236,14 +236,14 @@ defineExpose({ openUrlDialog }).url-import-form {.url-input-label {margin-bottom: 8px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.url-input-tip {margin-top: 8px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/knowledge/components/KnowledgeTagFilter.vue b/frontend/src/views/knowledge/components/KnowledgeTagFilter.vueindex dd4af7023..4086b9b61 100644--- a/frontend/src/views/knowledge/components/KnowledgeTagFilter.vue+++ b/frontend/src/views/knowledge/components/KnowledgeTagFilter.vue@@ -154,7 +154,7 @@ const manage = () => {.tag-filter-popup .t-popup__content {padding: 0 !important;- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -180,10 +180,10 @@ const manage = () => {background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1;cursor: pointer;- transition: background 0.2s ease, border-color 0.2s ease;+ transition: background var(--app-motion-base) ease, border-color var(--app-motion-base) ease;&:hover,&.open {@@ -222,7 +222,7 @@ const manage = () => {&__caret {flex-shrink: 0;color: var(--td-text-color-placeholder);- transition: transform 0.2s ease, color 0.2s ease;+ transition: transform var(--app-motion-base) ease, color var(--app-motion-base) ease;&.open {color: var(--td-brand-color);@@ -235,7 +235,7 @@ const manage = () => {margin-left: 0;}:deep(.t-input__suffix-clear) {- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -247,7 +247,7 @@ const manage = () => {flex-direction: column;padding: 12px 14px;box-sizing: border-box;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);}@@ -262,12 +262,12 @@ const manage = () => {display: flex;align-items: baseline;gap: 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;}.tag-filter-panel__count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-weight: 400;}@@ -298,10 +298,10 @@ const manage = () => {height: 24px;padding: 0 8px;border: 1px solid var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);cursor: pointer;}@@ -319,7 +319,7 @@ const manage = () => {}.tag-filter-chip__count {- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);}@@ -333,7 +333,7 @@ const manage = () => {text-align: center;padding: 10px 6px;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.tag-load-more {@@ -352,10 +352,10 @@ const manage = () => {padding: 0;}.tag-filter-panel--documents .tag-search-bar :deep(.t-input) {- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: none !important;}.tag-filter-panel--documents .tag-search-bar :deep(.t-input):hover,@@ -366,7 +366,7 @@ const manage = () => {box-shadow: none !important;}.tag-filter-panel--documents .tag-search-bar :deep(.t-input__inner) {- font-size: 13px;+ font-size: var(--app-text-md);}.tag-filter-panel--documents .tag-search-bar :deep(.t-input__prefix-icon) {margin-right: 0;@@ -395,7 +395,7 @@ const manage = () => {font-weight: 400;line-height: 24px;outline: none;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;-webkit-font-smoothing: antialiased;}.tag-filter-panel--documents .tag-filter-chip:hover:not(.active) {@@ -436,12 +436,12 @@ const manage = () => {padding: 0;height: auto;min-height: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);border: none !important;background: transparent !important;box-shadow: none !important;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.tag-filter-panel--documents .tag-filter-panel__footer :deep(.tag-manage-link.t-button):hover,.tag-filter-panel--documents .tag-filter-panel__footer :deep(.tag-manage-link.t-button):focus-visible {@@ -452,12 +452,12 @@ const manage = () => {}.tag-filter-panel--documents .tag-load-more :deep(.t-button) {padding: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}.tag-filter-panel--documents .tag-empty-state {padding: 6px 0;- font-size: 12px;+ font-size: var(--app-text-sm);}</style>diff --git a/frontend/src/views/knowledge/components/TagEditDialog.vue b/frontend/src/views/knowledge/components/TagEditDialog.vueindex 07b4e7887..123f0a945 100644--- a/frontend/src/views/knowledge/components/TagEditDialog.vue+++ b/frontend/src/views/knowledge/components/TagEditDialog.vue@@ -154,7 +154,7 @@ function handleOpenManage() {.tag-edit-dialog {overflow: hidden;padding: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.tag-edit-dialog .t-dialog__header {@@ -171,7 +171,7 @@ function handleOpenManage() {right: 16px;width: 28px;height: 28px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-secondary);transition: background 0.18s ease;}@@ -211,7 +211,7 @@ function handleOpenManage() {.tag-edit-title {color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 22px;letter-spacing: 0.2px;@@ -222,7 +222,7 @@ function handleOpenManage() {min-width: 0;overflow: hidden;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;line-height: 18px;text-overflow: ellipsis;@@ -253,7 +253,7 @@ function handleOpenManage() {}.tag-edit-body .setting-drawer__section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;@@ -288,13 +288,13 @@ function handleOpenManage() {.tag-edit-section-head :deep(.t-button) {height: auto;padding: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);flex-shrink: 0;border: none !important;background: transparent !important;box-shadow: none !important;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.tag-edit-section-head :deep(.tag-edit-manage-link.t-button:hover),@@ -310,10 +310,10 @@ function handleOpenManage() {}.tag-edit-search-bar :deep(.t-input) {- font-size: 12px;+ font-size: var(--app-text-sm);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;- border-radius: 4px;+ border-radius: var(--app-radius-xs);box-shadow: none !important;}@@ -350,11 +350,11 @@ function handleOpenManage() {height: 22px;padding: 0 8px;border: 1px solid var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 22px;text-align: center;cursor: pointer;@@ -362,7 +362,7 @@ function handleOpenManage() {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;-webkit-font-smoothing: antialiased;}@@ -390,7 +390,7 @@ function handleOpenManage() {.tag-edit-section-empty {margin: 0;min-height: 22px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 22px;color: var(--td-text-color-placeholder);}@@ -407,11 +407,11 @@ function handleOpenManage() {}.tag-edit-create-row :deep(.t-input) {- font-size: 12px;+ font-size: var(--app-text-sm);background-color: transparent;border-style: dashed;border-color: var(--td-component-stroke);- border-radius: 4px;+ border-radius: var(--app-radius-xs);box-shadow: none !important;}@@ -434,7 +434,7 @@ function handleOpenManage() {}.tag-edit-selected-count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);white-space: nowrap;}diff --git a/frontend/src/views/knowledge/components/UploadConfirmDialog.vue b/frontend/src/views/knowledge/components/UploadConfirmDialog.vueindex 497899e58..0f00c9e5d 100644--- a/frontend/src/views/knowledge/components/UploadConfirmDialog.vue+++ b/frontend/src/views/knowledge/components/UploadConfirmDialog.vue@@ -1493,7 +1493,7 @@ const handleConfirm = () => {height: 85vh;max-height: 750px;overflow: hidden;- border-radius: 12px;+ border-radius: var(--app-radius-xl);background: var(--td-bg-color-container);box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);}@@ -1509,7 +1509,7 @@ const handleConfirm = () => {width: 32px;height: 32px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);cursor: pointer;@@ -1531,7 +1531,7 @@ const handleConfirm = () => {flex-direction: column;flex-shrink: 0;width: 220px;- background: var(--td-bg-color-settings-modal, var(--td-bg-color-secondarycontainer));+ background: var(--td-bg-color-settings-modal);border-right: 1px solid var(--td-component-stroke);}@@ -1566,7 +1566,7 @@ const handleConfirm = () => {flex: 1;min-width: 0;padding-right: 0;- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -1584,8 +1584,8 @@ const handleConfirm = () => {min-width: 20px;height: 20px;padding: 0 6px;- border-radius: 10px;- font-size: 11px;+ border-radius: var(--app-radius-lg);+ font-size: var(--app-text-xs);font-weight: 600;line-height: 20px;text-align: center;@@ -1614,11 +1614,11 @@ const handleConfirm = () => {border: 0;background: transparent;font-family: var(--app-font-family);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-secondary);cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color);@@ -1645,7 +1645,7 @@ const handleConfirm = () => {.destination-crumb__caret {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -1672,8 +1672,8 @@ const handleConfirm = () => {gap: 8px;margin-bottom: 2px;padding: 6px 6px 6px 8px;- border-radius: 6px;- transition: background-color 0.15s ease;+ border-radius: var(--app-radius-sm);+ transition: background-color var(--app-motion-fast) ease;&:last-child {margin-bottom: 0;@@ -1694,7 +1694,7 @@ const handleConfirm = () => {}.file-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);}@@ -1710,7 +1710,7 @@ const handleConfirm = () => {.file-name {display: block;overflow: hidden;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.35;color: var(--td-text-color-primary);@@ -1721,7 +1721,7 @@ const handleConfirm = () => {.file-size {display: block;margin-top: 1px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.3;color: var(--td-text-color-placeholder);overflow: hidden;@@ -1747,11 +1747,11 @@ const handleConfirm = () => {height: 22px;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;opacity: 0.45;.file-item:hover &,@@ -1768,7 +1768,7 @@ const handleConfirm = () => {.files-empty {flex: 1;padding: 16px 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);text-align: center;}@@ -1783,9 +1783,9 @@ const handleConfirm = () => {.manual-source-title {margin: 0;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container-hover);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;color: var(--td-text-color-primary);@@ -1794,7 +1794,7 @@ const handleConfirm = () => {.manual-source-meta {margin: 6px 2px 0;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}@@ -1812,7 +1812,7 @@ const handleConfirm = () => {flex-shrink: 0;width: 216px;min-height: 0;- background-color: var(--td-bg-color-settings-modal, var(--td-bg-color-secondarycontainer));+ background-color: var(--td-bg-color-settings-modal);border-right: 1px solid var(--td-component-stroke);}@@ -1822,7 +1822,7 @@ const handleConfirm = () => {.settings-sidebar-title {margin: 0;- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -1838,7 +1838,7 @@ const handleConfirm = () => {.nav-group-title {padding: 6px 14px 2px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;letter-spacing: 0.02em;@@ -1858,13 +1858,13 @@ const handleConfirm = () => {margin-bottom: 2px;padding: 9px 10px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);text-align: left;cursor: pointer;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;user-select: none;&:hover {@@ -1898,7 +1898,7 @@ const handleConfirm = () => {justify-content: center;margin-right: 8px;margin-top: 2px;- font-size: 16px;+ font-size: var(--app-text-xl);color: inherit;}@@ -1912,7 +1912,7 @@ const handleConfirm = () => {.nav-label {overflow: hidden;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.35;text-overflow: ellipsis;@@ -1921,7 +1921,7 @@ const handleConfirm = () => {.nav-status {overflow: hidden;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-placeholder);text-overflow: ellipsis;@@ -1978,16 +1978,16 @@ const handleConfirm = () => {margin-bottom: 16px;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);.t-icon {flex-shrink: 0;margin-top: 1px;- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-brand-color);}}@@ -2007,14 +2007,14 @@ const handleConfirm = () => {.section-title {margin: 0 0 6px;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}.section-desc {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 22px;color: var(--td-text-color-placeholder);}@@ -2029,14 +2029,14 @@ const handleConfirm = () => {.section-title {margin: 0 0 6px;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}.section-desc {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -2072,21 +2072,21 @@ const handleConfirm = () => {label {display: block;margin-bottom: 4px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);}.desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}.warn {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-warning-color);}@@ -2137,7 +2137,7 @@ const handleConfirm = () => {.field-hint {margin: 6px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -2155,7 +2155,7 @@ const handleConfirm = () => {border: none;background: transparent;color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;.t-icon {@@ -2237,7 +2237,7 @@ const handleConfirm = () => {.modal-enter-active,.modal-leave-active {- transition: opacity 0.2s ease;+ transition: opacity var(--app-motion-base) ease;}.modal-enter-from,@@ -2256,7 +2256,7 @@ const handleConfirm = () => {padding: 4px !important;margin-top: 6px !important;min-width: 208px;- border-radius: 10px !important;+ border-radius: var(--app-radius-lg) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:diff --git a/frontend/src/views/knowledge/settings/DataSourceEditorDialog.vue b/frontend/src/views/knowledge/settings/DataSourceEditorDialog.vueindex d6cec9091..44b16aa43 100644--- a/frontend/src/views/knowledge/settings/DataSourceEditorDialog.vue+++ b/frontend/src/views/knowledge/settings/DataSourceEditorDialog.vue@@ -1912,7 +1912,7 @@ const drawerConfirmText = computed(() => {gap: 8px;flex: 1;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -1941,7 +1941,7 @@ const drawerConfirmText = computed(() => {display: flex;align-items: center;justify-content: center;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;border: 1px solid var(--td-component-stroke);color: var(--td-text-color-placeholder);@@ -1961,7 +1961,7 @@ const drawerConfirmText = computed(() => {}.ds-step-check {- font-size: 14px;+ font-size: var(--app-text-base);}.ds-loading-center {@@ -1998,12 +1998,12 @@ const drawerConfirmText = computed(() => {}.ds-type-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.ds-type-soon {- font-size: 10px;+ font-size: var(--app-text-2xs);color: var(--td-text-color-placeholder);background: var(--td-bg-color-component);padding: 1px 6px;@@ -2011,7 +2011,7 @@ const drawerConfirmText = computed(() => {}.ds-type-desc {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -2021,14 +2021,14 @@ const drawerConfirmText = computed(() => {display: flex;align-items: center;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);flex-wrap: wrap;}.inline-alert__icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;color: var(--td-text-color-placeholder);}@@ -2042,11 +2042,11 @@ const drawerConfirmText = computed(() => {display: inline-flex;align-items: center;gap: 2px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-brand-color);white-space: nowrap;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.inline-alert__action:hover {@@ -2072,12 +2072,12 @@ const drawerConfirmText = computed(() => {border: none;background: transparent;font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);text-align: left;cursor: pointer;- transition: color 0.12s ease;+ transition: color var(--app-motion-instant) ease;}.ds-setup-guide__toggle:hover,@@ -2114,7 +2114,7 @@ const drawerConfirmText = computed(() => {}.ds-setup-step {- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);}@@ -2132,7 +2132,7 @@ const drawerConfirmText = computed(() => {.ds-perm-tag {display: inline-block;- font-size: 11px;+ font-size: var(--app-text-xs);padding: 1px 5px;margin: 2px 4px 2px 0;border-radius: 3px;@@ -2146,7 +2146,7 @@ const drawerConfirmText = computed(() => {align-items: center;gap: 4px;margin-top: 10px;- font-size: 13px;+ font-size: var(--app-text-md);}.credential-faux-input {@@ -2156,14 +2156,14 @@ const drawerConfirmText = computed(() => {height: 32px;padding: 0 4px 0 12px;background: var(--td-bg-color-container);- border: 1px solid var(--td-component-border, var(--td-component-stroke));- border-radius: 6px;- font-size: 13px;- transition: border-color 0.15s ease, background-color 0.15s ease;+ border: 1px solid var(--td-component-border);+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);+ transition: border-color var(--app-motion-fast) ease, background-color var(--app-motion-fast) ease;}.credential-faux-input:hover {- border-color: var(--td-brand-color-hover, var(--td-brand-color));+ border-color: var(--td-brand-color-hover);}.credential-faux-input.is-empty {@@ -2199,7 +2199,7 @@ const drawerConfirmText = computed(() => {.credential-status-icon {flex-shrink: 0;- font-size: 16px;+ font-size: var(--app-text-xl);}.credential-status-icon.success {@@ -2224,8 +2224,8 @@ const drawerConfirmText = computed(() => {.credential-actions :deep(.t-button--variant-text) {height: 24px;padding: 0 8px;- font-size: 12px;- border-radius: 4px;+ font-size: var(--app-text-sm);+ border-radius: var(--app-radius-xs);}.action-divider {@@ -2243,7 +2243,7 @@ const drawerConfirmText = computed(() => {.credential-edit-actions :deep(.t-button) {height: 28px;padding: 0 12px;- font-size: 12px;+ font-size: var(--app-text-sm);}.form-item {@@ -2255,14 +2255,14 @@ const drawerConfirmText = computed(() => {}.form-item--flat :deep(.t-checkbox__label) {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}.form-label {display: block;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;margin-bottom: 6px;color: var(--td-text-color-primary);@@ -2279,13 +2279,13 @@ const drawerConfirmText = computed(() => {.form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;}@@ -2298,7 +2298,7 @@ const drawerConfirmText = computed(() => {}.footer-test-message {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;flex: 1;min-width: 0;@@ -2322,7 +2322,7 @@ const drawerConfirmText = computed(() => {.ds-resource-hint {margin: -8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -2334,7 +2334,7 @@ const drawerConfirmText = computed(() => {gap: 8px;padding: 12px;border: 1px solid var(--td-border-level-1-color);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}@@ -2342,7 +2342,7 @@ const drawerConfirmText = computed(() => {display: flex;align-items: center;gap: 4px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);@@ -2356,7 +2356,7 @@ const drawerConfirmText = computed(() => {}.drive-folder-input__help {- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-placeholder);cursor: help;@@ -2382,21 +2382,21 @@ const drawerConfirmText = computed(() => {min-height: 120px;padding: 24px 12px;border: 1px dashed var(--td-border-level-2-color);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-page);text-align: center;}.ds-drive-placeholder .ds-empty-title {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}.ds-drive-placeholder .ds-empty-desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -2417,7 +2417,7 @@ const drawerConfirmText = computed(() => {}.resource-picker__count {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -2433,10 +2433,10 @@ const drawerConfirmText = computed(() => {border: none;background: transparent;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.12s ease;+ transition: color var(--app-motion-instant) ease;}.resource-picker__action:hover,@@ -2447,7 +2447,7 @@ const drawerConfirmText = computed(() => {.resource-picker__action-sep {color: var(--td-text-color-disabled);- font-size: 12px;+ font-size: var(--app-text-sm);user-select: none;}@@ -2470,9 +2470,9 @@ const drawerConfirmText = computed(() => {min-height: 34px;margin-bottom: 2px;padding: 5px 8px 5px calc(8px + var(--depth) * 14px);- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;- transition: background 0.12s ease;+ transition: background var(--app-motion-instant) ease;}.resource-picker__row:last-child {@@ -2498,11 +2498,11 @@ const drawerConfirmText = computed(() => {justify-content: center;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.12s ease, color 0.12s ease;+ transition: background var(--app-motion-instant) ease, color var(--app-motion-instant) ease;}.resource-picker__expand:hover,@@ -2516,13 +2516,13 @@ const drawerConfirmText = computed(() => {width: 16px;height: 16px;border-radius: 3px;- border: 1.5px solid var(--td-component-border, var(--td-component-stroke));+ border: 1.5px solid var(--td-component-border);display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;box-sizing: border-box;- transition: background 0.12s ease, border-color 0.12s ease;+ transition: background var(--app-motion-instant) ease, border-color var(--app-motion-instant) ease;}.resource-picker__check.is-checked,@@ -2558,7 +2558,7 @@ const drawerConfirmText = computed(() => {.resource-picker__name {min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;color: var(--td-text-color-primary);white-space: nowrap;@@ -2568,10 +2568,10 @@ const drawerConfirmText = computed(() => {.resource-picker__type {flex-shrink: 0;- font-size: 10px;+ font-size: var(--app-text-2xs);line-height: 1;padding: 2px 5px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-text-color-placeholder);background: color-mix(in srgb, var(--td-text-color-placeholder) 8%, transparent);}@@ -2583,14 +2583,14 @@ const drawerConfirmText = computed(() => {}.ds-empty-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 4px;}.ds-empty-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 0 0 16px;}@@ -2608,7 +2608,7 @@ const drawerConfirmText = computed(() => {display: flex;align-items: flex-start;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);line-height: 1.5;}@@ -2620,7 +2620,7 @@ const drawerConfirmText = computed(() => {border: 1px solid var(--td-component-stroke);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;display: flex;align-items: center;@@ -2645,7 +2645,7 @@ const drawerConfirmText = computed(() => {.custom-headers-desc {margin: 0 0 10px 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -2675,7 +2675,7 @@ const drawerConfirmText = computed(() => {height: 32px;padding: 0;color: var(--td-text-color-placeholder);- border-radius: 6px;+ border-radius: var(--app-radius-sm);transition: all 0.18s ease;&:hover {@@ -2690,11 +2690,11 @@ const drawerConfirmText = computed(() => {border: none;background: transparent;font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-brand-color);cursor: pointer;- transition: color 0.12s ease;+ transition: color var(--app-motion-instant) ease;}.ds-empty-retry:hover,@@ -2711,7 +2711,7 @@ const drawerConfirmText = computed(() => {padding: 3px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);width: fit-content;max-width: 100%;}@@ -2723,15 +2723,15 @@ const drawerConfirmText = computed(() => {padding: 4px 10px;min-height: 28px;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.3;color: var(--td-text-color-secondary);cursor: pointer;white-space: nowrap;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease, border-color var(--app-motion-fast) ease;}.option-pill:hover {@@ -2761,7 +2761,7 @@ const drawerConfirmText = computed(() => {gap: 8px;padding: 12px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}@@ -2777,7 +2777,7 @@ const drawerConfirmText = computed(() => {--><style lang="less">.datasource-editor-drawer .setting-drawer__header-icon:has(.datasource-header-icon__img) {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}diff --git a/frontend/src/views/knowledge/settings/DataSourceSettings.vue b/frontend/src/views/knowledge/settings/DataSourceSettings.vueindex d8ed8ed5a..34e7d0ea7 100644--- a/frontend/src/views/knowledge/settings/DataSourceSettings.vue+++ b/frontend/src/views/knowledge/settings/DataSourceSettings.vue@@ -349,14 +349,14 @@ onBeforeUnmount(stopPolling)margin-bottom: 28px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 8px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.6;@@ -431,14 +431,14 @@ onBeforeUnmount(stopPolling)justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -453,10 +453,10 @@ onBeforeUnmount(stopPolling)align-items: center;justify-content: center;margin-top: 1px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: #07c05f;overflow: hidden;}@@ -466,7 +466,7 @@ onBeforeUnmount(stopPolling)&--yuque .ds-card__badge,&--ima .ds-card__badge,&--rss .ds-card__badge {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}@@ -486,7 +486,7 @@ onBeforeUnmount(stopPolling)flex: 1;min-width: 0;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -501,7 +501,7 @@ onBeforeUnmount(stopPolling)flex-wrap: wrap;gap: 4px;margin: 2px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);min-width: 0;@@ -531,7 +531,7 @@ onBeforeUnmount(stopPolling)flex-wrap: wrap;gap: 4px;margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-placeholder);min-width: 0;@@ -559,7 +559,7 @@ onBeforeUnmount(stopPolling)}&__metric {- font-size: 11px;+ font-size: var(--app-text-xs);font-variant-numeric: tabular-nums;color: var(--td-text-color-disabled);}@@ -575,10 +575,10 @@ onBeforeUnmount(stopPolling)gap: 6px;margin-top: 8px;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-error-color-1);color: var(--td-error-color);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;text-align: left;}@@ -596,7 +596,7 @@ onBeforeUnmount(stopPolling)padding: 2px;opacity: 0;color: var(--td-text-color-placeholder);- transition: opacity 0.15s ease, color 0.15s ease;+ transition: opacity var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover,&:focus-visible {@@ -621,12 +621,7 @@ onBeforeUnmount(stopPolling)}.ds-icon-spin {- animation: ds-spin 1s linear infinite;-}--@keyframes ds-spin {- from { transform: rotate(0deg); }- to { transform: rotate(360deg); }+ animation: wk-spin 1s linear infinite;}:deep(.t-dropdown__item.ds-dropdown-delete-item) {diff --git a/frontend/src/views/knowledge/settings/DataSourceSyncLogs.vue b/frontend/src/views/knowledge/settings/DataSourceSyncLogs.vueindex b613aa407..76dc7b221 100644--- a/frontend/src/views/knowledge/settings/DataSourceSyncLogs.vue+++ b/frontend/src/views/knowledge/settings/DataSourceSyncLogs.vue@@ -330,7 +330,7 @@ const groupedLogs = computed(() => {justify-content: center;padding: 80px 0;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);gap: 12px;}@@ -347,7 +347,7 @@ const groupedLogs = computed(() => {flex: 1;text-align: center;padding: 16px 8px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);background: var(--td-bg-color-container);border: 1px solid var(--td-border-level-1-color);box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);@@ -357,7 +357,7 @@ const groupedLogs = computed(() => {}.stat-num {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 700;color: var(--td-text-color-primary);line-height: 1.2;@@ -368,7 +368,7 @@ const groupedLogs = computed(() => {.stat-num.error { color: var(--td-error-color); }.stat-label {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;text-transform: uppercase;letter-spacing: 0.5px;@@ -386,7 +386,7 @@ const groupedLogs = computed(() => {}.timeline-date {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);padding: 12px 0 8px 24px;@@ -411,7 +411,7 @@ const groupedLogs = computed(() => {}.logs-load-more-text {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -465,8 +465,8 @@ const groupedLogs = computed(() => {flex: 1;min-width: 0;padding: 12px 14px;- border-radius: 10px;- transition: background 0.2s ease;+ border-radius: var(--app-radius-lg);+ transition: background var(--app-motion-base) ease;}.timeline-item:hover .tl-content {@@ -480,25 +480,25 @@ const groupedLogs = computed(() => {}.tl-status {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;}.tl-time {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-variant-numeric: tabular-nums;}.tl-duration {margin-left: auto;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;color: var(--td-text-color-placeholder);font-variant-numeric: tabular-nums;background: var(--td-bg-color-component);padding: 2px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}/* --- Pills --- */@@ -510,9 +510,9 @@ const groupedLogs = computed(() => {}.pill {- font-size: 11px;+ font-size: var(--app-text-xs);padding: 1px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-weight: 500;line-height: 18px;font-variant-numeric: tabular-nums;@@ -537,7 +537,7 @@ const groupedLogs = computed(() => {.detail-row {display: flex;justify-content: space-between;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);line-height: 20px;}@@ -549,10 +549,10 @@ const groupedLogs = computed(() => {.tl-error {margin-top: 8px;padding: 8px 12px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-error-color-1);color: var(--td-error-color);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;word-break: break-word;}@@ -566,14 +566,14 @@ const groupedLogs = computed(() => {}.tl-failed-title {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-error-color);margin-bottom: 2px;}.tl-failed-item {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.5;color: var(--td-text-color-secondary);padding: 2px 8px;@@ -585,7 +585,7 @@ const groupedLogs = computed(() => {}.tl-failed-more {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);padding: 2px 8px;}@@ -599,7 +599,7 @@ const groupedLogs = computed(() => {}.logs-drawer-title {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);overflow: hidden;diff --git a/frontend/src/views/knowledge/settings/DataSourceTypeIcon.vue b/frontend/src/views/knowledge/settings/DataSourceTypeIcon.vueindex a3cf664a6..2de050e88 100644--- a/frontend/src/views/knowledge/settings/DataSourceTypeIcon.vue+++ b/frontend/src/views/knowledge/settings/DataSourceTypeIcon.vue@@ -58,7 +58,7 @@ function fallbackText(type: string) {}.ds-type-icon--inline {- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-component);}@@ -68,7 +68,7 @@ function fallbackText(type: string) {}.ds-type-icon--inline .ds-type-icon-fallback {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-placeholder);}@@ -87,7 +87,7 @@ function fallbackText(type: string) {}.ds-type-icon--badge .ds-type-icon-fallback {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;color: inherit;diff --git a/frontend/src/views/knowledge/settings/GraphSettings.vue b/frontend/src/views/knowledge/settings/GraphSettings.vueindex 468df615c..841c99967 100644--- a/frontend/src/views/knowledge/settings/GraphSettings.vue+++ b/frontend/src/views/knowledge/settings/GraphSettings.vue@@ -610,14 +610,14 @@ onMounted(async () => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -658,7 +658,7 @@ onMounted(async () => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -666,7 +666,7 @@ onMounted(async () => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -705,7 +705,7 @@ onMounted(async () => {display: flex;align-items: center;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);.tip-icon {@@ -723,7 +723,7 @@ onMounted(async () => {.node-item {background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 16px;}@@ -734,7 +734,7 @@ onMounted(async () => {margin-bottom: 12px;.node-icon {- font-size: 20px;+ font-size: var(--app-text-3xl);color: var(--td-brand-color);}@@ -778,7 +778,7 @@ onMounted(async () => {padding: 12px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);.relation-select {flex: 1;@@ -787,7 +787,7 @@ onMounted(async () => {.relation-arrow {color: var(--td-text-color-secondary);- font-size: 16px;+ font-size: var(--app-text-xl);}}diff --git a/frontend/src/views/knowledge/settings/KBAdvancedSettings.vue b/frontend/src/views/knowledge/settings/KBAdvancedSettings.vueindex 58519136d..4df8f0731 100644--- a/frontend/src/views/knowledge/settings/KBAdvancedSettings.vue+++ b/frontend/src/views/knowledge/settings/KBAdvancedSettings.vue@@ -283,14 +283,14 @@ const handleQuestionGenerationChange = () => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -321,7 +321,7 @@ const handleQuestionGenerationChange = () => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -329,14 +329,14 @@ const handleQuestionGenerationChange = () => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;}.hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);margin: 6px 0 0 0;line-height: 1.5;@@ -372,7 +372,7 @@ const handleQuestionGenerationChange = () => {padding: 16px 20px;margin: 12px 0 0 0;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);border-left: 3px solid var(--td-brand-color);position: relative;}diff --git a/frontend/src/views/knowledge/settings/KBChunkingDebug.vue b/frontend/src/views/knowledge/settings/KBChunkingDebug.vueindex bb869a3e2..fcf539920 100644--- a/frontend/src/views/knowledge/settings/KBChunkingDebug.vue+++ b/frontend/src/views/knowledge/settings/KBChunkingDebug.vue@@ -410,7 +410,7 @@ const tierTheme = (tier: StrategyTier) => {}.section-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);}@@ -422,7 +422,7 @@ const tierTheme = (tier: StrategyTier) => {flex-wrap: wrap;.presets-label {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);margin-right: 4px;}@@ -430,7 +430,7 @@ const tierTheme = (tier: StrategyTier) => {.preset-chip {--td-comp-paddinglr-s: 8px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);&:hover {color: var(--td-brand-color);@@ -456,8 +456,8 @@ const tierTheme = (tier: StrategyTier) => {gap: 10px;padding: 12px 14px;background: var(--td-bg-color-container-hover);- border-radius: 6px;- font-size: 13px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -467,14 +467,14 @@ const tierTheme = (tier: StrategyTier) => {gap: 10px;padding: 12px 14px;background: var(--td-error-color-light);- border-radius: 6px;- font-size: 13px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);color: var(--td-error-color);.error-icon {flex-shrink: 0;margin-top: 2px;- font-size: 16px;+ font-size: var(--app-text-xl);}strong {@@ -503,7 +503,7 @@ const tierTheme = (tier: StrategyTier) => {align-items: center;gap: 8px;flex-wrap: wrap;- font-size: 13px;+ font-size: var(--app-text-md);}.result-label {@@ -520,7 +520,7 @@ const tierTheme = (tier: StrategyTier) => {.fallback-warning {color: var(--td-warning-color);- font-size: 12px;+ font-size: var(--app-text-sm);}.profile-grid {@@ -530,7 +530,7 @@ const tierTheme = (tier: StrategyTier) => {margin-bottom: 16px;background: var(--td-component-stroke);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow: hidden;}@@ -541,7 +541,7 @@ const tierTheme = (tier: StrategyTier) => {}.cell-value {- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;font-variant-numeric: tabular-nums;color: var(--td-text-color-primary);@@ -550,7 +550,7 @@ const tierTheme = (tier: StrategyTier) => {.cell-label {margin-top: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}@@ -562,15 +562,15 @@ const tierTheme = (tier: StrategyTier) => {margin-bottom: 12px;padding: 10px 14px;background: var(--td-bg-color-container-hover);- border-radius: 6px;- font-size: 13px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);font-variant-numeric: tabular-nums;.stats-count strong {margin-right: 4px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;}@@ -582,7 +582,7 @@ const tierTheme = (tier: StrategyTier) => {.truncation-hint {margin-left: auto;color: var(--td-warning-color);- font-size: 12px;+ font-size: var(--app-text-sm);}.chunks-list {@@ -596,10 +596,10 @@ const tierTheme = (tier: StrategyTier) => {.chunk-card {border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);overflow: hidden;- transition: border-color 0.15s ease, box-shadow 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;&.expanded {border-color: var(--td-brand-color-light-active);@@ -617,7 +617,7 @@ const tierTheme = (tier: StrategyTier) => {background: var(--td-bg-color-container-hover);border: none;cursor: pointer;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);text-align: left;@@ -652,7 +652,7 @@ const tierTheme = (tier: StrategyTier) => {.chunk-pos {flex-shrink: 0;color: var(--td-text-color-placeholder);- font-family: var(--td-font-family-mono, ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace);+ font-family: var(--td-font-family-mono);font-variant-numeric: tabular-nums;}@@ -663,9 +663,9 @@ const tierTheme = (tier: StrategyTier) => {padding: 2px 8px;background: var(--td-brand-color-light);color: var(--td-brand-color);- border-radius: 10px;- font-size: 11px;- font-family: var(--td-font-family-mono, ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace);+ border-radius: var(--app-radius-lg);+ font-size: var(--app-text-xs);+ font-family: var(--td-font-family-mono);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;@@ -674,9 +674,9 @@ const tierTheme = (tier: StrategyTier) => {.chunk-toggle {margin-left: auto;flex-shrink: 0;- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);- transition: transform 0.15s ease;+ transition: transform var(--app-motion-fast) ease;&.open {transform: rotate(180deg);@@ -696,7 +696,7 @@ const tierTheme = (tier: StrategyTier) => {white-space: pre-wrap;word-break: break-word;color: var(--td-text-color-primary);- font-family: var(--td-font-family-mono, ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace);+ font-family: var(--td-font-family-mono);}// Collapsed preview: clamp the visible lines so each card stays compact, butdiff --git a/frontend/src/views/knowledge/settings/KBChunkingSettings.vue b/frontend/src/views/knowledge/settings/KBChunkingSettings.vueindex 3ec5a9eec..7d38d0ea2 100644--- a/frontend/src/views/knowledge/settings/KBChunkingSettings.vue+++ b/frontend/src/views/knowledge/settings/KBChunkingSettings.vue@@ -422,14 +422,14 @@ const emitUpdate = () => {}h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -464,7 +464,7 @@ const emitUpdate = () => {background: var(--td-bg-color-container-hover);border-left: 3px solid var(--td-brand-color);border-radius: 0 4px 4px 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;@@ -484,7 +484,7 @@ const emitUpdate = () => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -492,14 +492,14 @@ const emitUpdate = () => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;}.warn {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-warning-color);margin: 4px 0 0 0;line-height: 1.4;@@ -532,7 +532,7 @@ const emitUpdate = () => {}.value-display {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);font-weight: 500;min-width: 80px;@@ -548,7 +548,7 @@ const emitUpdate = () => {background: transparent;border: none;cursor: pointer;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);user-select: none;@@ -560,13 +560,13 @@ const emitUpdate = () => {&:focus-visible {outline: 2px solid var(--td-brand-color-focus);outline-offset: 2px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}.toggle-arrow {- font-size: 16px;- transition: transform 0.15s ease;+ font-size: var(--app-text-xl);+ transition: transform var(--app-motion-fast) ease;&.open {transform: rotate(90deg);@@ -614,11 +614,11 @@ const emitUpdate = () => {padding-right: 0;label {- font-size: 14px;+ font-size: var(--app-text-base);}.desc {- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -639,7 +639,7 @@ const emitUpdate = () => {.strategy-info-panel {margin: -4px 0 10px;padding: 8px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);}.slider-container {diff --git a/frontend/src/views/knowledge/settings/KBModelConfig.vue b/frontend/src/views/knowledge/settings/KBModelConfig.vueindex 0c82d8f71..67a4dd328 100644--- a/frontend/src/views/knowledge/settings/KBModelConfig.vue+++ b/frontend/src/views/knowledge/settings/KBModelConfig.vue@@ -151,14 +151,14 @@ const handleAddModel = (subSection: string) => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -189,7 +189,7 @@ const handleAddModel = (subSection: string) => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -202,14 +202,14 @@ const handleAddModel = (subSection: string) => {.optional {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;margin-left: 4px;}}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;diff --git a/frontend/src/views/knowledge/settings/KBParserSettings.vue b/frontend/src/views/knowledge/settings/KBParserSettings.vueindex 2a8ee26e1..107eb2dbd 100644--- a/frontend/src/views/knowledge/settings/KBParserSettings.vue+++ b/frontend/src/views/knowledge/settings/KBParserSettings.vue@@ -346,14 +346,14 @@ watch(() => props.parserEngineRules, (v) => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -402,13 +402,13 @@ watch(() => props.parserEngineRules, (v) => {}.group-icon {- font-size: 18px;+ font-size: var(--app-text-2xl);color: var(--td-text-color-secondary);flex-shrink: 0;}label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -424,17 +424,17 @@ watch(() => props.parserEngineRules, (v) => {.ext-tag {display: inline-block;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);padding: 3px 8px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-family: var(--app-font-family-mono);}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -465,7 +465,7 @@ watch(() => props.parserEngineRules, (v) => {}:deep(.t-checkbox__label) {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;text-align: left;white-space: normal;@@ -477,7 +477,7 @@ watch(() => props.parserEngineRules, (v) => {align-items: center;gap: 4px;margin-top: 8px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-warning-color);line-height: 1.4;@@ -497,8 +497,8 @@ watch(() => props.parserEngineRules, (v) => {.kb-parser-settings--embedded {.settings-group {border: 1px solid var(--td-component-stroke);- border-radius: 8px;- background: var(--td-bg-color-secondarycontainer, #f8f9fb);+ border-radius: var(--app-radius-md);+ background: var(--td-bg-color-secondarycontainer);overflow: hidden;}@@ -507,7 +507,7 @@ watch(() => props.parserEngineRules, (v) => {align-items: center;gap: 16px;padding: 10px 14px;- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);border-bottom: 1px solid var(--td-component-stroke);&:last-child {@@ -534,7 +534,7 @@ watch(() => props.parserEngineRules, (v) => {}.group-label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;margin-bottom: 4px;}@@ -545,7 +545,7 @@ watch(() => props.parserEngineRules, (v) => {}.ext-tag {- font-size: 11px;+ font-size: var(--app-text-xs);padding: 2px 6px;}diff --git a/frontend/src/views/knowledge/settings/KBShareSettings.vue b/frontend/src/views/knowledge/settings/KBShareSettings.vueindex 6925a5678..3660e4681 100644--- a/frontend/src/views/knowledge/settings/KBShareSettings.vue+++ b/frontend/src/views/knowledge/settings/KBShareSettings.vue@@ -4,7 +4,7 @@<div class="share-panel-header-row"><div class="share-panel-titlewrap"><h2 class="share-panel-title">{{ $t('organization.share.title') }}</h2>- <t-popup placement="bottom-start" trigger="hover" overlay-class-name="share-hint-popup-overlay"+ <t-popup placement="bottom-start" trigger="hover" overlay-class-name="wk-popover share-hint-popup-overlay":overlay-inner-style="shareHintPopupInnerStyle"><button type="button" class="share-hint-trigger-btn" :aria-label="$t('knowledgeEditor.share.hintTitle')":title="$t('knowledgeEditor.share.hintTitle')">diff --git a/frontend/src/views/knowledge/settings/KBStorageSettings.vue b/frontend/src/views/knowledge/settings/KBStorageSettings.vueindex bf50e0260..d7fe992eb 100644--- a/frontend/src/views/knowledge/settings/KBStorageSettings.vue+++ b/frontend/src/views/knowledge/settings/KBStorageSettings.vue@@ -64,6 +64,6 @@ onMounted(load)</script><style scoped lang="less">-.section-header{margin-bottom:20px}.section-header h2{font-size:20px;margin:0 0 6px}.section-description,.desc,.option-hint{color:var(--td-text-color-secondary)}-.setting-row{display:flex;justify-content:space-between;gap:28px}.setting-info{flex:1}.setting-control{width:45%;min-width:300px}.select-option{display:flex;align-items:center;gap:8px}.option-hint{font-size:12px;margin:8px 0}.change-warning{color:var(--td-warning-color)}.go-settings{font-size:13px;color:var(--td-brand-color)}.loading-inline{display:flex;gap:8px}+.section-header{margin-bottom:20px}.section-header h2{font-size:var(--app-text-3xl);margin:0 0 6px}.section-description,.desc,.option-hint{color:var(--td-text-color-secondary)}+.setting-row{display:flex;justify-content:space-between;gap:28px}.setting-info{flex:1}.setting-control{width:45%;min-width:300px}.select-option{display:flex;align-items:center;gap:8px}.option-hint{font-size:var(--app-text-sm);margin:8px 0}.change-warning{color:var(--td-warning-color)}.go-settings{font-size:var(--app-text-md);color:var(--td-brand-color)}.loading-inline{display:flex;gap:8px}</style>diff --git a/frontend/src/views/knowledge/settings/KBVectorStoreSettings.vue b/frontend/src/views/knowledge/settings/KBVectorStoreSettings.vueindex f7b1d7594..3e2ae4130 100644--- a/frontend/src/views/knowledge/settings/KBVectorStoreSettings.vue+++ b/frontend/src/views/knowledge/settings/KBVectorStoreSettings.vue@@ -186,14 +186,14 @@ onMounted(async () => {margin-bottom: 20px;h2 {- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 6px 0;}.section-description {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -205,7 +205,7 @@ onMounted(async () => {align-items: center;gap: 8px;padding: 16px 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -232,7 +232,7 @@ onMounted(async () => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -240,7 +240,7 @@ onMounted(async () => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -263,7 +263,7 @@ onMounted(async () => {}.option-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);margin: 0;line-height: 1.4;@@ -274,8 +274,8 @@ onMounted(async () => {}.go-settings {- font-size: 13px;- color: var(--td-brand-color, #0052d9);+ font-size: var(--app-text-md);+ color: var(--td-brand-color);margin-top: 8px;text-decoration: none;diff --git a/frontend/src/views/knowledge/settings/KnowledgeBaseActivitySettings.vue b/frontend/src/views/knowledge/settings/KnowledgeBaseActivitySettings.vueindex 206465b55..5f8b9e900 100644--- a/frontend/src/views/knowledge/settings/KnowledgeBaseActivitySettings.vue+++ b/frontend/src/views/knowledge/settings/KnowledgeBaseActivitySettings.vue@@ -737,7 +737,7 @@ onUnmounted(() => detachInfiniteScroll()).section-title {margin: 0;font-family: var(--app-font-family);- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -745,7 +745,7 @@ onUnmounted(() => detachInfiniteScroll()).section-desc {margin: 0;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);line-height: 22px;}@@ -756,7 +756,7 @@ onUnmounted(() => detachInfiniteScroll())flex-wrap: wrap;gap: 8px;margin: 6px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 20px;}@@ -779,7 +779,7 @@ onUnmounted(() => detachInfiniteScroll())border: none;background: none;color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 20px;cursor: pointer;@@ -808,11 +808,11 @@ onUnmounted(() => detachInfiniteScroll())height: 22px;padding: 0;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -821,7 +821,7 @@ onUnmounted(() => detachInfiniteScroll())&.active {color: var(--td-brand-color);- background: var(--td-brand-color-light, rgba(0, 82, 217, 0.08));+ background: var(--td-brand-color-light);}}@@ -851,21 +851,21 @@ onUnmounted(() => detachInfiniteScroll())gap: 8px;padding: 6px 10px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;cursor: pointer;text-align: left;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-secondarycontainer);}&.active {- background: var(--td-brand-color-light, rgba(0, 82, 217, 0.08));+ background: var(--td-brand-color-light);color: var(--td-brand-color);font-weight: 500;}@@ -913,13 +913,13 @@ onUnmounted(() => detachInfiniteScroll())justify-content: center;gap: 10px;padding: 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-end-hint {text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);padding: 8px 0 14px;margin: 0;@@ -932,12 +932,12 @@ onUnmounted(() => detachInfiniteScroll())line-height: 1.3;.audit-time-date {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-time-clock {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);font-variant-numeric: tabular-nums;@@ -948,7 +948,7 @@ onUnmounted(() => detachInfiniteScroll())min-width: 0;.audit-actor-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);overflow: hidden;@@ -966,15 +966,15 @@ onUnmounted(() => detachInfiniteScroll())padding: 2px 0;.audit-target-key {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);word-break: break-word;}.audit-target-diff {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);word-break: break-all;line-height: 1.4;}@@ -986,13 +986,13 @@ onUnmounted(() => detachInfiniteScroll()).data-table-shell {overflow-x: auto;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-container);&:deep(thead th) {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);}&:deep(.t-table td),@@ -1044,7 +1044,7 @@ onUnmounted(() => detachInfiniteScroll())dt {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;white-space: nowrap;}@@ -1052,7 +1052,7 @@ onUnmounted(() => detachInfiniteScroll())dd {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;word-break: break-all;}@@ -1061,12 +1061,12 @@ onUnmounted(() => detachInfiniteScroll()).audit-detail-json {margin: 0;padding: 12px 14px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);white-space: pre-wrap;word-break: break-all;max-height: min(420px, 50vh);@@ -1074,7 +1074,7 @@ onUnmounted(() => detachInfiniteScroll())}.mono {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);+ font-family: var(--td-font-family-mono);}.narrow-scrollbar {diff --git a/frontend/src/views/knowledge/settings/datasource-surface.less b/frontend/src/views/knowledge/settings/datasource-surface.lessindex d6977a07f..ac59f95c2 100644--- a/frontend/src/views/knowledge/settings/datasource-surface.less+++ b/frontend/src/views/knowledge/settings/datasource-surface.less@@ -2,7 +2,7 @@.ds-surface-card() {border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);transition: border-color 0.18s ease, box-shadow 0.18s ease;}@@ -12,7 +12,7 @@&:hover:not(.disabled):not(:disabled),&:focus-visible {- border-color: var(--td-brand-color-3, var(--td-brand-color));+ border-color: var(--td-brand-color-3);box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);outline: none;}@@ -25,7 +25,7 @@// Light inset panel for grouped lists — no outer stroke..ds-inset-panel() {- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);overflow: hidden;}diff --git a/frontend/src/views/knowledge/wiki/WikiBrowser.vue b/frontend/src/views/knowledge/wiki/WikiBrowser.vueindex 6e5c5acb4..e1b6afd98 100644--- a/frontend/src/views/knowledge/wiki/WikiBrowser.vue+++ b/frontend/src/views/knowledge/wiki/WikiBrowser.vue@@ -4084,8 +4084,8 @@ function renderGraph(opts: RenderGraphOpts = {}) {btnBg.setAttribute('cx', String(btnX))btnBg.setAttribute('cy', String(btnY))btnBg.setAttribute('r', '8')- btnBg.setAttribute('fill', 'var(--td-bg-color-container, #fff)')- btnBg.setAttribute('stroke', 'var(--td-brand-color, #0052d9)')+ btnBg.setAttribute('fill', 'var(--td-bg-color-container)')+ btnBg.setAttribute('stroke', 'var(--td-brand-color)')btnBg.setAttribute('stroke-width', '1.5')bloomBtn.appendChild(btnBg)@@ -4095,7 +4095,7 @@ function renderGraph(opts: RenderGraphOpts = {}) {btnCrossV.setAttribute('x2', String(btnX))btnCrossV.setAttribute('y1', String(btnY - 4))btnCrossV.setAttribute('y2', String(btnY + 4))- btnCrossV.setAttribute('stroke', 'var(--td-brand-color, #0052d9)')+ btnCrossV.setAttribute('stroke', 'var(--td-brand-color)')btnCrossV.setAttribute('stroke-width', '1.8')btnCrossV.setAttribute('stroke-linecap', 'round')bloomBtn.appendChild(btnCrossV)@@ -4105,7 +4105,7 @@ function renderGraph(opts: RenderGraphOpts = {}) {btnCrossH.setAttribute('x2', String(btnX + 4))btnCrossH.setAttribute('y1', String(btnY))btnCrossH.setAttribute('y2', String(btnY))- btnCrossH.setAttribute('stroke', 'var(--td-brand-color, #0052d9)')+ btnCrossH.setAttribute('stroke', 'var(--td-brand-color)')btnCrossH.setAttribute('stroke-width', '1.8')btnCrossH.setAttribute('stroke-linecap', 'round')bloomBtn.appendChild(btnCrossH)@@ -4914,9 +4914,9 @@ onUnmounted(() => {gap: 8px;padding: 8px 12px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);.queue-text {line-height: 1.2;@@ -4929,11 +4929,11 @@ onUnmounted(() => {gap: 8px;padding: 8px 12px;background: var(--td-warning-color-light);- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-warning-color-8);- font-size: 13px;+ font-size: var(--app-text-md);cursor: pointer;- transition: filter 0.2s;+ transition: filter var(--app-motion-base);&:hover {filter: brightness(0.95);@@ -4999,7 +4999,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;padding: 2px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);}@@ -5009,14 +5009,14 @@ onUnmounted(() => {height: 22px;padding: 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-secondary);display: inline-flex;align-items: center;justify-content: center;cursor: pointer;- transition: background-color 0.12s ease, color 0.12s ease;+ transition: background-color var(--app-motion-instant) ease, color var(--app-motion-instant) ease;&:hover {color: var(--td-text-color-primary);@@ -5029,7 +5029,7 @@ onUnmounted(() => {}.t-icon {- font-size: 15px;+ font-size: var(--app-text-lg);}}@@ -5038,7 +5038,7 @@ onUnmounted(() => {height: 26px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);display: inline-flex;@@ -5046,10 +5046,10 @@ onUnmounted(() => {justify-content: center;flex-shrink: 0;cursor: pointer;- transition: background-color 0.15s ease, color 0.15s ease;+ transition: background-color var(--app-motion-fast) ease, color var(--app-motion-fast) ease;.t-icon {- font-size: 15px;+ font-size: var(--app-text-lg);}&:hover {@@ -5096,7 +5096,7 @@ onUnmounted(() => {border-radius: var(--wiki-list-row-radius);cursor: pointer;margin-bottom: 0;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -5116,12 +5116,12 @@ onUnmounted(() => {}.wiki-nav-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: var(--td-text-color-secondary);}.wiki-nav-text {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;color: var(--td-text-color-primary);@@ -5140,13 +5140,13 @@ onUnmounted(() => {gap: 5px;padding: 7px 2px 8px;border-radius: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);cursor: pointer;white-space: nowrap;flex-shrink: 0;position: relative;- transition: background 0.15s, color 0.15s;+ transition: background var(--app-motion-fast), color var(--app-motion-fast);&:hover {color: var(--td-text-color-primary);@@ -5169,7 +5169,7 @@ onUnmounted(() => {}.wiki-tab-count {- font-size: 11px;+ font-size: var(--app-text-xs);padding: 0;line-height: 1;color: var(--td-text-color-placeholder);@@ -5190,7 +5190,7 @@ onUnmounted(() => {cursor: pointer;margin-bottom: 0;user-select: none;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -5217,16 +5217,16 @@ onUnmounted(() => {.wiki-page-item--list .wiki-page-item-title {display: block;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;margin-bottom: 4px;color: var(--td-text-color-primary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.wiki-page-item-summary {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);display: -webkit-box;@@ -5240,7 +5240,7 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: space-between;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);}@@ -5258,7 +5258,7 @@ onUnmounted(() => {color: var(--td-text-color-secondary);background: transparent;user-select: none;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;&:hover {background: var(--td-bg-color-container-hover);@@ -5275,9 +5275,9 @@ onUnmounted(() => {min-width: 0;height: 24px;border: 1px solid var(--td-brand-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);padding: 0 6px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);background: var(--td-bg-color-container);outline: none;@@ -5308,11 +5308,11 @@ onUnmounted(() => {}:deep(.wiki-folder-action-btn) {- border-radius: 4px;- transition: all 0.2s ease;+ border-radius: var(--app-radius-xs);+ transition: all var(--app-motion-base) ease;.t-icon {- font-size: 14px;+ font-size: var(--app-text-base);}}@@ -5340,7 +5340,7 @@ onUnmounted(() => {// While dragging, the whole list is the "move to root" target; a subtle inset// ring signals it without inserting any element that would shift the layout..wiki-tree-list--root-drop {- border-radius: 6px;+ border-radius: var(--app-radius-sm);box-shadow: inset 0 0 0 1px var(--td-brand-color);}@@ -5362,14 +5362,14 @@ onUnmounted(() => {.wiki-page-file-icon {flex: 0 0 auto;color: var(--td-text-color-placeholder);- font-size: 15px;+ font-size: var(--app-text-lg);}.wiki-directory-title,.wiki-page-item-title {min-width: 0;flex: 1;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -5384,7 +5384,7 @@ onUnmounted(() => {flex: 0 0 auto;min-width: 16px;text-align: right;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 18px;color: var(--td-text-color-placeholder);font-variant-numeric: tabular-nums;@@ -5397,11 +5397,11 @@ onUnmounted(() => {align-items: center;gap: 6px;padding-left: calc(var(--wiki-tree-depth, 0) * var(--wiki-tree-depth-indent, 14px));- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;margin: 1px 0;color: var(--td-brand-color);- font-size: 12px;+ font-size: var(--app-text-sm);&:hover {background: var(--td-brand-color-light);@@ -5426,11 +5426,11 @@ onUnmounted(() => {}.wiki-page-item--tree .wiki-page-item-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;color: var(--td-text-color-primary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}// ── Right Content ──@@ -5458,7 +5458,7 @@ onUnmounted(() => {.wiki-reader-lead {margin: 10px 0 0;- font-size: 15px;+ font-size: var(--app-text-lg);line-height: 1.65;color: var(--td-text-color-secondary);}@@ -5488,7 +5488,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-placeholder);white-space: nowrap;@@ -5501,20 +5501,20 @@ onUnmounted(() => {align-items: center;gap: 4px;padding: 2px 8px;- border-radius: 4px;- font-size: 12px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);.t-icon {- font-size: 13px;+ font-size: var(--app-text-md);flex-shrink: 0;}}.wiki-badge--ver {- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);font-variant-numeric: tabular-nums;}@@ -5542,13 +5542,13 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 4px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);text-decoration: none;padding: 4px 8px;margin-left: -8px;- border-radius: 4px;- transition: all 0.15s;+ border-radius: var(--app-radius-xs);+ transition: all var(--app-motion-fast);&:hover {color: var(--td-brand-color);@@ -5596,15 +5596,15 @@ onUnmounted(() => {:deep(.t-input),:deep(.t-textarea) {- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);- transition: border-color 0.15s ease, box-shadow 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, box-shadow var(--app-motion-fast) ease;}:deep(.t-input:focus-within),:deep(.t-textarea:focus-within) {border-color: var(--td-brand-color);- box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--td-brand-color) 10%, transparent);}}@@ -5625,7 +5625,7 @@ onUnmounted(() => {margin: 10px 0 0;:deep(.t-textarea__inner) {- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;padding: 10px 12px;resize: vertical;@@ -5634,8 +5634,8 @@ onUnmounted(() => {.wiki-edit-field--content {:deep(.t-textarea__inner) {- font-family: var(--td-font-family-mono, monospace);- font-size: 14px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-base);line-height: 1.7;padding: 12px 14px;resize: vertical;@@ -5654,7 +5654,7 @@ onUnmounted(() => {height: 32px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-placeholder);display: inline-flex;@@ -5662,10 +5662,10 @@ onUnmounted(() => {justify-content: center;flex-shrink: 0;cursor: pointer;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;.t-icon {- font-size: 16px;+ font-size: var(--app-text-xl);}&:hover {@@ -5683,13 +5683,13 @@ onUnmounted(() => {flex-wrap: wrap;gap: 6px 8px;margin: 0 0 8px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;}.wiki-alias-label {color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;}@@ -5707,7 +5707,7 @@ onUnmounted(() => {}.wiki-reader-meta-text {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -5739,13 +5739,13 @@ onUnmounted(() => {gap: 6px;label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}}.wiki-create-page-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}@@ -5753,7 +5753,7 @@ onUnmounted(() => {.wiki-reader-links {padding: 12px 16px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);margin-bottom: 20px;display: flex;flex-direction: column;@@ -5765,7 +5765,7 @@ onUnmounted(() => {align-items: center;flex-wrap: wrap;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);}.wiki-link-label {@@ -5778,14 +5778,14 @@ onUnmounted(() => {color: var(--td-brand-color);text-decoration: none;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);padding: 2px 8px;- background: rgba(7, 192, 95, 0.06);- border-radius: 4px;- transition: background 0.15s;+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);+ border-radius: var(--app-radius-xs);+ transition: background var(--app-motion-fast);&:hover {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}@@ -5793,25 +5793,25 @@ onUnmounted(() => {// Chat answer Markdown styles are centralized in components/css/chat-markdown.less..wiki-reader-body {line-height: 1.6;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);:deep(h1) {- font-size: 24px;+ font-size: var(--app-text-4xl);margin: 28px 0 16px;font-weight: 600;line-height: 1.4;}:deep(h2) {- font-size: 18px;+ font-size: var(--app-text-2xl);margin: 24px 0 12px;font-weight: 600;line-height: 1.4;}:deep(h3) {- font-size: 16px;+ font-size: var(--app-text-xl);margin: 20px 0 10px;font-weight: 600;line-height: 1.5;@@ -5820,7 +5820,7 @@ onUnmounted(() => {:deep(h4),:deep(h5),:deep(h6) {- font-size: 14px;+ font-size: var(--app-text-base);margin: 16px 0 8px;font-weight: 600;line-height: 1.5;@@ -5856,10 +5856,10 @@ onUnmounted(() => {:deep(code) {font-family: var(--app-font-family-mono);- font-size: 13px;+ font-size: var(--app-text-md);padding: 2px 4px;background: var(--td-bg-color-secondarycontainer);- border-radius: 4px;+ border-radius: var(--app-radius-xs);color: var(--td-brand-color);}@@ -5867,7 +5867,7 @@ onUnmounted(() => {margin: 0 0 14px;padding: 12px 16px;background: var(--td-bg-color-secondarycontainer);- border-radius: 6px;+ border-radius: var(--app-radius-sm);overflow-x: auto;code {@@ -5880,7 +5880,7 @@ onUnmounted(() => {:deep(p:has(img)) {text-align: center;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);margin-top: 16px;margin-bottom: 24px;@@ -5888,11 +5888,11 @@ onUnmounted(() => {max-width: 100%;max-height: 400px;object-fit: contain;- border-radius: 6px;+ border-radius: var(--app-radius-sm);display: block;margin: 0 auto 8px;cursor: zoom-in;- transition: opacity 0.2s;+ transition: opacity var(--app-motion-base);&:hover {opacity: 0.9;@@ -5924,11 +5924,11 @@ onUnmounted(() => {overflow-x: auto;margin: 0 0 16px;border-collapse: collapse;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);-webkit-overflow-scrolling: touch;}@@ -5966,7 +5966,7 @@ onUnmounted(() => {}:deep(table code) {- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -5983,13 +5983,13 @@ onUnmounted(() => {display: flex;align-items: baseline;gap: 16px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.65;}.wiki-reader-footer-label {flex: 0 0 64px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -6038,7 +6038,7 @@ onUnmounted(() => {min-height: 32px;padding: 16px 0 24px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.wiki-index-loading {@@ -6058,14 +6058,14 @@ onUnmounted(() => {}.wiki-empty-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);margin: 0 0 4px;}.wiki-empty-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);margin: 0;}@@ -6090,7 +6090,7 @@ onUnmounted(() => {}.help-glyph-icon {- font-size: 14px !important;+ font-size: var(--app-text-base) !important;font-weight: 600;line-height: 14px !important;text-align: center;@@ -6103,7 +6103,7 @@ onUnmounted(() => {max-width: 320px;.help-section-title {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 14px;color: var(--td-text-color-placeholder);text-transform: uppercase;@@ -6122,7 +6122,7 @@ onUnmounted(() => {display: grid;grid-template-columns: 110px 1fr;gap: 12px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 16px;}@@ -6151,7 +6151,7 @@ onUnmounted(() => {.wiki-graph-search {width: 100%;box-shadow: var(--td-shadow-1);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.graph-issues-badge {@@ -6200,10 +6200,10 @@ onUnmounted(() => {background: transparent;border: none;color: var(--td-text-color-placeholder);- font-size: 18px;+ font-size: var(--app-text-2xl);cursor: pointer;user-select: none;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.wiki-graph-help-trigger:hover {@@ -6216,7 +6216,7 @@ onUnmounted(() => {right: 16px;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 10px 12px;box-shadow: var(--td-shadow-1);display: flex;@@ -6224,7 +6224,7 @@ onUnmounted(() => {gap: 12px;z-index: 10;opacity: 0.95;- transition: right 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);+ transition: right var(--app-motion-slow) cubic-bezier(0.645, 0.045, 0.355, 1);}.wiki-graph-legend.legend-shifted {@@ -6241,12 +6241,12 @@ onUnmounted(() => {display: flex;align-items: center;gap: 8px;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);&.clickable {cursor: pointer;- transition: all 0.15s;+ transition: all var(--app-motion-fast);&:hover {color: var(--td-text-color-primary);@@ -6295,12 +6295,12 @@ onUnmounted(() => {display: flex;align-items: center;gap: 6px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 14px;color: var(--td-text-color-secondary);cursor: pointer;user-select: none;- transition: all 0.15s;+ transition: all var(--app-motion-fast);&:hover {color: var(--td-brand-color);@@ -6320,7 +6320,7 @@ onUnmounted(() => {}.wiki-graph-truncation-hint {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 14px;color: var(--td-text-color-placeholder);user-select: none;@@ -6340,12 +6340,12 @@ onUnmounted(() => {display: flex;align-items: center;gap: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 14px;color: var(--td-text-color-placeholder);.t-icon {- font-size: 12px;+ font-size: var(--app-text-sm);}}@@ -6354,7 +6354,7 @@ onUnmounted(() => {}.status-card-primary {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 16px;color: var(--td-text-color-primary);overflow: hidden;@@ -6363,14 +6363,14 @@ onUnmounted(() => {}.status-card-secondary {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 14px;color: var(--td-text-color-secondary);}}.wiki-drawer-neighbor-hint {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 16px;color: var(--td-text-color-secondary);user-select: none;@@ -6383,13 +6383,13 @@ onUnmounted(() => {width: 14px;height: 14px;flex-shrink: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1;color: var(--td-text-color-placeholder);- transition: color 0.15s;+ transition: color var(--app-motion-fast);.t-icon {- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1;}}@@ -6418,8 +6418,8 @@ onUnmounted(() => {display: flex;align-items: center;justify-content: center;- font-size: 20px;- transition: opacity 0.2s ease;+ font-size: var(--app-text-3xl);+ transition: opacity var(--app-motion-base) ease;&:hover {opacity: 0.8;@@ -6430,7 +6430,7 @@ onUnmounted(() => {display: flex;flex-direction: column;background: var(--td-bg-color-container);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;}@@ -6447,13 +6447,13 @@ onUnmounted(() => {display: flex;align-items: center;font-weight: 500;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);.wiki-issue-popup-icon {color: var(--td-brand-color);margin-right: 8px;- font-size: 16px;+ font-size: var(--app-text-xl);}}@@ -6471,8 +6471,8 @@ onUnmounted(() => {padding: 16px;gap: 12px;border: 1px solid var(--td-component-border);- border-radius: 6px;- transition: box-shadow 0.2s ease, border-color 0.2s ease;+ border-radius: var(--app-radius-sm);+ transition: box-shadow var(--app-motion-base) ease, border-color var(--app-motion-base) ease;background: var(--td-bg-color-container);&:hover {@@ -6494,7 +6494,7 @@ onUnmounted(() => {}.wiki-issue-popup-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);line-height: 1.6;white-space: pre-wrap;@@ -6511,7 +6511,7 @@ onUnmounted(() => {.wiki-issue-popup-desc::-webkit-scrollbar-thumb {background: var(--td-scrollbar-color);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}.wiki-issue-popup-desc::-webkit-scrollbar-track {@@ -6528,7 +6528,7 @@ onUnmounted(() => {}.wiki-issue-popup-reporter {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);flex: 1;}@@ -6539,10 +6539,10 @@ onUnmounted(() => {}.wiki-issue-popup-action {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-brand-color);cursor: pointer;- transition: opacity 0.2s ease;+ transition: opacity var(--app-motion-base) ease;&:hover {opacity: 0.8;@@ -6590,3 +6590,4 @@ onUnmounted(() => {}}</style>+<style lang="less" src="@/components/css/wiki-graph-drawer.less"></style>diff --git a/frontend/src/views/knowledge/wiki/WikiFolderActions.vue b/frontend/src/views/knowledge/wiki/WikiFolderActions.vueindex f461dacf3..1f71d7428 100644--- a/frontend/src/views/knowledge/wiki/WikiFolderActions.vue+++ b/frontend/src/views/knowledge/wiki/WikiFolderActions.vue@@ -143,10 +143,10 @@ function submitDelete() {flex: 0 0 auto;display: inline-flex;align-items: center;- font-size: 15px;+ font-size: var(--app-text-lg);color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.15s, opacity 0.15s;+ transition: color var(--app-motion-fast), opacity var(--app-motion-fast);&:hover {color: var(--td-brand-color);diff --git a/frontend/src/views/knowledge/wiki/WikiRevisionDrawer.vue b/frontend/src/views/knowledge/wiki/WikiRevisionDrawer.vueindex c5bc3908e..b1ad0aeb9 100644--- a/frontend/src/views/knowledge/wiki/WikiRevisionDrawer.vue+++ b/frontend/src/views/knowledge/wiki/WikiRevisionDrawer.vue@@ -528,10 +528,10 @@ function formatShortTime(iso?: string): string {.wiki-rev-item {border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 6px 10px 6px 14px;cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}.wiki-rev-item:hover,@@ -553,18 +553,18 @@ function formatShortTime(iso?: string): string {.wiki-rev-version {font-weight: 400;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);color: var(--td-text-color-primary);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.wiki-rev-current-label {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 16px;color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;}.wiki-rev-item-secondary {@@ -574,13 +574,13 @@ function formatShortTime(iso?: string): string {gap: 8px;margin-top: 2px;min-width: 0;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;color: var(--td-text-color-placeholder);}.wiki-rev-time {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);white-space: nowrap;flex-shrink: 0;@@ -598,7 +598,7 @@ function formatShortTime(iso?: string): string {justify-content: center;padding: 16px 14px;text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -629,8 +629,8 @@ function formatShortTime(iso?: string): string {}.wiki-rev-detail-range {- font-family: var(--td-font-family-mono, monospace);- font-size: 15px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.4;color: var(--td-text-color-primary);@@ -638,7 +638,7 @@ function formatShortTime(iso?: string): string {.wiki-rev-detail-sub {margin-top: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -655,21 +655,21 @@ function formatShortTime(iso?: string): string {align-items: center;gap: 2px;padding: 2px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}.wiki-rev-view-switch-btn {padding: 5px 10px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;white-space: nowrap;cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;}.wiki-rev-view-switch-btn:hover {@@ -690,7 +690,7 @@ function formatShortTime(iso?: string): string {color: var(--td-text-color-placeholder);padding: 24px;text-align: center;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;}@@ -701,7 +701,7 @@ function formatShortTime(iso?: string): string {justify-content: center;gap: 8px;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.wiki-rev-diff {@@ -716,7 +716,7 @@ function formatShortTime(iso?: string): string {.wiki-rev-empty-diff {padding: 24px 0;text-align: center;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -727,7 +727,7 @@ function formatShortTime(iso?: string): string {}.wiki-rev-diff-block-label {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-placeholder);}@@ -737,10 +737,10 @@ function formatShortTime(iso?: string): string {margin: 0;padding: 10px 12px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;- font-size: 12px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-sm);line-height: 1.7;- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);white-space: pre-wrap;word-break: break-word;}@@ -755,10 +755,10 @@ function formatShortTime(iso?: string): string {margin: 0;padding: 12px 14px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);line-height: 1.7;- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);white-space: pre-wrap;word-break: break-word;}@@ -768,7 +768,7 @@ function formatShortTime(iso?: string): string {}.wiki-rev-diff-line--add {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-text-color-primary);}diff --git a/frontend/src/views/organization/OrganizationList.vue b/frontend/src/views/organization/OrganizationList.vueindex 8956b817c..7deffdd99 100644--- a/frontend/src/views/organization/OrganizationList.vue+++ b/frontend/src/views/organization/OrganizationList.vue@@ -29,7 +29,7 @@<div class="org-list-main"><!-- 骨架屏占位 --><div v-if="loading && filteredOrganizations.length === 0" class="org-card-wrap">- <div v-for="n in 4" :key="'skel-' + n" class="org-card org-card-skeleton">+ <div v-for="n in 4" :key="'skel-' + n" class="org-card org-card-skeleton is-skeleton"><div class="card-header"><t-skeleton animation="gradient":row-col="[[{ width: '36px', height: '36px', type: 'circle' }, { width: '50%', height: '20px' }]]" />@@ -175,27 +175,23 @@</div><!-- 空状态(按筛选显示不同文案) -->- <div v-else-if="!loading" class="empty-state">- <img class="empty-img" src="@/assets/img/upload.svg" alt="">- <span class="empty-txt">{{ emptyStateTitle }}</span>- <span class="empty-desc">{{ emptyStateDesc }}</span>- <div class="empty-state-actions">- <t-tooltip :content="noPermissionTip" placement="top" :disabled="canManageOrg">- <t-button theme="default" variant="outline" class="org-join-btn" :disabled="!canManageOrg"- @click="handleJoinOrganization">- <template #icon><t-icon name="enter" /></template>- {{ $t('organization.joinOrg') }}- </t-button>- </t-tooltip>- <t-tooltip :content="noPermissionTip" placement="top" :disabled="canManageOrg">- <t-button class="org-create-btn" :disabled="!canManageOrg" @click="handleCreateOrganization">- <template #icon><img src="@/assets/img/organization-green.svg" class="org-create-icon" alt=""- aria-hidden="true" /></template>- {{ $t('organization.createOrg') }}- </t-button>- </t-tooltip>- </div>- </div>+ <EmptyState v-else-if="!loading" icon="usergroup" :title="emptyStateTitle"+ :description="emptyStateDesc">+ <t-tooltip :content="noPermissionTip" placement="top" :disabled="canManageOrg">+ <t-button theme="default" variant="outline" class="org-join-btn" :disabled="!canManageOrg"+ @click="handleJoinOrganization">+ <template #icon><t-icon name="enter" /></template>+ {{ $t('organization.joinOrg') }}+ </t-button>+ </t-tooltip>+ <t-tooltip :content="noPermissionTip" placement="top" :disabled="canManageOrg">+ <t-button theme="primary" class="org-create-btn" :disabled="!canManageOrg" @click="handleCreateOrganization">+ <template #icon><img src="@/assets/img/organization-green.svg" class="org-create-icon" alt=""+ aria-hidden="true" /></template>+ {{ $t('organization.createOrg') }}+ </t-button>+ </t-tooltip>+ </EmptyState></div></div>@@ -203,42 +199,6 @@<OrganizationSettingsModal :visible="showSettingsModal" :org-id="settingsOrgId" :mode="settingsMode"@update:visible="showSettingsModal = $event" />- <!-- Delete Confirm Dialog -->- <t-dialog v-model:visible="deleteVisible" dialogClassName="del-org-dialog" :closeBtn="false" :cancelBtn="null"- :confirmBtn="null">- <div class="circle-wrap">- <div class="dialog-header">- <img class="circle-img" src="@/assets/img/circle.png" alt="">- <span class="circle-title">{{ $t('organization.deleteConfirmTitle') }}</span>- </div>- <span class="del-circle-txt">- {{ $t('organization.deleteConfirmMessage', { name: deletingOrg?.name ?? '' }) }}- </span>- <div class="circle-btn">- <span class="circle-btn-txt" @click="deleteVisible = false">{{ $t('common.cancel') }}</span>- <span class="circle-btn-txt confirm" @click="confirmDelete">{{ $t('common.delete') }}</span>- </div>- </div>- </t-dialog>-- <!-- Leave Confirm Dialog -->- <t-dialog v-model:visible="leaveVisible" dialogClassName="del-org-dialog" :closeBtn="false" :cancelBtn="null"- :confirmBtn="null">- <div class="circle-wrap">- <div class="dialog-header">- <img class="circle-img" src="@/assets/img/circle.png" alt="">- <span class="circle-title">{{ $t('organization.leaveConfirmTitle') }}</span>- </div>- <span class="del-circle-txt">- {{ $t('organization.leaveConfirmMessage', { name: leavingOrg?.name ?? '' }) }}- </span>- <div class="circle-btn">- <span class="circle-btn-txt" @click="leaveVisible = false">{{ $t('common.cancel') }}</span>- <span class="circle-btn-txt confirm" @click="confirmLeave">{{ $t('organization.leave') }}</span>- </div>- </div>- </t-dialog>-<!-- 加入组织 / 邀请预览弹框(菜单与邀请链接共用同一弹框) --><Teleport to="body"><Transition name="modal">@@ -477,6 +437,8 @@import { ref, reactive, onMounted, onUnmounted, computed, watch, nextTick } from 'vue'import { useRoute, useRouter } from 'vue-router'import { MessagePlugin } from 'tdesign-vue-next'+import EmptyState from '@/components/EmptyState.vue'+import { useConfirmDelete } from '@/components/settings/useConfirmDelete'import { useOrganizationStore } from '@/stores/organization'import { useAuthStore } from '@/stores/auth'import type { Organization, OrganizationPreview, SearchableOrganizationItem } from '@/api/organization'@@ -516,10 +478,7 @@ const inviteRequestMessage = ref('')const showSettingsModal = ref(false)const settingsOrgId = ref('')const settingsMode = ref<'create' | 'edit'>('edit')-const deleteVisible = ref(false)-const leaveVisible = ref(false)-const deletingOrg = ref<Organization | null>(null)-const leavingOrg = ref<Organization | null>(null)+const confirmDelete = useConfirmDelete()// 邀请预览相关状态(与邀请链接共用同一弹框)const showInvitePreview = ref(false)@@ -818,42 +777,39 @@ function handleSettings(org: OrgWithUI) {function handleLeave(org: OrgWithUI) {organizationMenuVisibility[org.id] = false- leavingOrg.value = org- leaveVisible.value = true-}--async function confirmLeave() {- if (!leavingOrg.value) return- const success = await orgStore.leave(leavingOrg.value.id)- if (success) {- MessagePlugin.success(t('organization.leaveSuccess'))- leaveVisible.value = false- leavingOrg.value = null- } else {- MessagePlugin.error(orgStore.error || t('organization.leaveFailed'))- }+ confirmDelete({+ title: t('organization.leaveConfirmTitle'),+ body: t('organization.leaveConfirmMessage', { name: org.name }),+ confirmText: t('organization.leave'),+ onConfirm: async () => {+ const success = await orgStore.leave(org.id)+ if (success) {+ MessagePlugin.success(t('organization.leaveSuccess'))+ } else {+ MessagePlugin.error(orgStore.error || t('organization.leaveFailed'))+ }+ },+ })}function handleDelete(org: OrgWithUI) {organizationMenuVisibility[org.id] = false- deletingOrg.value = org- deleteVisible.value = true-}--async function confirmDelete() {- if (!deletingOrg.value) returnif (!canManageOrg.value) {MessagePlugin.warning(t('organization.rbac.cannotManage'))return}- const success = await orgStore.remove(deletingOrg.value.id)- if (success) {- MessagePlugin.success(t('organization.deleteSuccess'))- deleteVisible.value = false- deletingOrg.value = null- } else {- MessagePlugin.error(orgStore.error || t('organization.deleteFailed'))- }+ confirmDelete({+ title: t('organization.deleteConfirmTitle'),+ body: t('organization.deleteConfirmMessage', { name: org.name }),+ onConfirm: async () => {+ const success = await orgStore.remove(org.id)+ if (success) {+ MessagePlugin.success(t('organization.deleteSuccess'))+ } else {+ MessagePlugin.error(orgStore.error || t('organization.deleteFailed'))+ }+ },+ })}// 处理邀请链接预览@@ -1118,6 +1074,8 @@ onUnmounted(() => {</script><style scoped lang="less">+@import (reference) '@/components/css/resource-card.less';+.org-list-container {margin: 0 16px 0 0;height: 100%;@@ -1167,7 +1125,7 @@ onUnmounted(() => {margin: 0;color: var(--td-text-color-primary);font-family: var(--app-font-family);- font-size: 24px;+ font-size: var(--app-text-4xl);font-weight: 600;line-height: 32px;}@@ -1181,17 +1139,17 @@ onUnmounted(() => {}.org-join-btn {- border-color: rgba(7, 192, 95, 0.5);+ border-color: color-mix(in srgb, var(--td-brand-color) 50%, transparent);color: var(--td-brand-color);font-weight: 500;- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;.t-icon {color: var(--td-brand-color);}&:hover {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);border-color: var(--td-brand-color);color: var(--td-brand-color);@@ -1201,54 +1159,40 @@ onUnmounted(() => {}}-.org-create-btn {- background: var(--td-brand-color);- border: none;- color: var(--td-text-color-anti);- font-weight: 500;- box-shadow: 0 2px 8px rgba(7, 192, 95, 0.25);- transition: all 0.25s ease;-- &:hover {- background: var(--td-brand-color);- box-shadow: 0 4px 14px rgba(7, 192, 95, 0.35);- }-- .org-create-icon {- width: 16px;- height: 16px;- filter: brightness(0) invert(1);- }+.org-create-btn .org-create-icon {+ width: 16px;+ height: 16px;+ filter: brightness(0) invert(1);}.header-subtitle {margin: 0;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;line-height: 20px;}.header-action-btn {- padding: 0 !important;- min-width: 28px !important;- width: 28px !important;- height: 28px !important;- display: inline-flex !important;- align-items: center !important;- justify-content: center !important;- background: var(--td-bg-color-secondarycontainer) !important;- border: 1px solid var(--td-component-stroke) !important;- border-radius: 6px !important;+ padding: 0;+ min-width: 28px;+ width: 28px;+ height: 28px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ background: var(--td-bg-color-secondarycontainer);+ border: 1px solid var(--td-component-stroke);+ border-radius: var(--app-radius-sm);color: var(--td-text-color-secondary);cursor: pointer;box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-bg-color-container) 72%, transparent);- transition: background 0.2s, border-color 0.2s, color 0.2s;+ transition: background var(--app-motion-base), border-color var(--app-motion-base), color var(--app-motion-base);&:hover {- background: var(--td-bg-color-secondarycontainer) !important;- border-color: var(--td-component-stroke) !important;+ background: var(--td-bg-color-secondarycontainer);+ border-color: var(--td-component-stroke);color: var(--td-text-color-primary);}@@ -1277,11 +1221,11 @@ onUnmounted(() => {cursor: pointer;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 400;user-select: none;position: relative;- transition: color 0.2s ease;+ transition: color var(--app-motion-base) ease;&:hover {color: var(--td-text-color-secondary);@@ -1318,10 +1262,7 @@ onUnmounted(() => {}.org-card-wrap {- display: grid;- gap: 12px;- grid-template-columns: 1fr;- animation: contentFadeIn 0.32s ease-out;+ .resource-card-grid();}// 共享空间分组标题——与 KB / Agent 列表口径完全一致(图标 + 名称 + 数量 + 折叠 chevron)。@@ -1345,7 +1286,7 @@ onUnmounted(() => {padding: 6px 4px 6px 0;color: var(--td-text-color-secondary);font-family: var(--app-font-family);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 20px;cursor: pointer;@@ -1357,7 +1298,7 @@ onUnmounted(() => {}&:focus-visible {- box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 82, 217, 0.2));+ box-shadow: 0 0 0 2px var(--td-brand-color-focus);}.t-icon {@@ -1367,16 +1308,16 @@ onUnmounted(() => {.org-section-toggle {margin-left: 4px;opacity: 0.7;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}.org-section-count {margin-left: 2px;padding: 0 6px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 16px;font-weight: 500;}@@ -1386,30 +1327,9 @@ onUnmounted(() => {}}-.org-card-skeleton {- cursor: default;- display: flex;- flex-direction: column;- height: 136px;- min-height: 136px;-}-/* 与知识库 / 智能体列表统一:紧凑 + 1px 描边 */.org-card {- border: 1px solid var(--td-component-stroke);- border-radius: 8px;- overflow: hidden;- box-sizing: border-box;- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);- background: var(--td-bg-color-container);- position: relative;- cursor: pointer;- transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;- padding: 12px 14px;- display: flex;- flex-direction: column;- height: 136px;- min-height: 136px;+ .resource-card();&::before {content: '';@@ -1418,69 +1338,19 @@ onUnmounted(() => {right: 0;width: 120px;height: 80px;- background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(7, 192, 95, 0.06) 0%, transparent 70%);+ background: radial-gradient(ellipse 60% 50% at 100% 0%, color-mix(in srgb, var(--td-brand-color) 6%, transparent) 0%, transparent 70%);pointer-events: none;z-index: 0;}- &.joined-org {- &:hover {- border-color: rgba(7, 192, 95, 0.4);- box-shadow: 0 4px 16px rgba(7, 192, 95, 0.08);- }- }-- &:hover {- border-color: rgba(7, 192, 95, 0.5);- box-shadow: 0 6px 20px rgba(7, 192, 95, 0.12);- }-.card-decoration {- color: rgba(7, 192, 95, 0.35);+ color: color-mix(in srgb, var(--td-brand-color) 35%, transparent);}&:hover .card-decoration {- color: rgba(7, 192, 95, 0.55);- }-- .card-header {- position: relative;- z-index: 2;- margin-bottom: 6px;- }-- .card-title {- font-size: 15px;- line-height: 22px;- }-- .card-content {- position: relative;- z-index: 1;- margin-bottom: 6px;- }-- .card-bottom {- position: relative;- z-index: 1;- padding-top: 6px;- }-- .card-description {- font-size: 12px;- line-height: 17px;+ color: color-mix(in srgb, var(--td-brand-color) 55%, transparent);}- .more-wrap {- width: 28px;- height: 28px;- border-radius: 8px;-- .more-icon {- width: 16px;- height: 16px;- }- }}// 卡片装饰:协作网络图形@@ -1493,7 +1363,7 @@ onUnmounted(() => {justify-content: flex-end;pointer-events: none;z-index: 0;- transition: color 0.3s ease;+ transition: color var(--app-motion-slow) ease;.card-deco-svg {display: block;@@ -1502,23 +1372,6 @@ onUnmounted(() => {}}-.card-header {- display: flex;- justify-content: space-between;- align-items: center;- margin-bottom: 8px;- position: relative;- z-index: 2;-}--.card-header-left {- display: flex;- align-items: center;- gap: 8px;- flex: 1;- min-width: 0;-}-// 空间头像容器(SpaceAvatar 自带样式).org-avatar {display: flex;@@ -1527,92 +1380,8 @@ onUnmounted(() => {flex-shrink: 0;}-.card-title-block {- display: flex;- flex-direction: column;- gap: 2px;- flex: 1;- min-width: 0;-}--.card-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 15px;- font-weight: 600;- line-height: 22px;- letter-spacing: 0.01em;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.more-wrap {- display: flex;- width: 28px;- height: 28px;- justify-content: center;- align-items: center;- border-radius: 8px;- cursor: pointer;- flex-shrink: 0;- transition: all 0.2s ease;- opacity: 0;-- .org-card:hover & {- opacity: 0.6;- }-- &:hover {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- &.active-more {- background: var(--td-bg-color-container-hover);- opacity: 1 !important;- }-- .more-icon {- width: 16px;- height: 16px;- }-}-/* 与知识库卡片内容区一致 */-.card-content {- flex: 1;- min-height: 0;- margin-bottom: 8px;- overflow: hidden;- display: flex;- flex-direction: column;- gap: 6px;-}-/* 三个列表卡片统一:描述字体 */-.card-description {- display: -webkit-box;- -webkit-box-orient: vertical;- -webkit-line-clamp: 2;- line-clamp: 2;- overflow: hidden;- color: var(--td-text-color-secondary);- font-family: var(--app-font-family);- font-size: 12px;- font-weight: 400;- line-height: 18px;-}--.card-bottom {- display: flex;- align-items: center;- justify-content: space-between;- margin-top: auto;- padding-top: 8px;- border-top: .5px solid var(--td-component-stroke);-}-.bottom-left {display: flex;align-items: center;@@ -1622,25 +1391,8 @@ onUnmounted(() => {}// 与知识库卡片统一的底部标签:小尺寸、统一圆角-.feature-badges {- display: flex;- align-items: center;- gap: 4px;-}-.feature-badge {- display: inline-flex;- align-items: center;- justify-content: center;- gap: 3px;- height: 20px;- padding: 0 5px;- border-radius: 5px;- font-size: 11px;- font-weight: 500;- font-family: var(--app-font-family);- cursor: default;- transition: background 0.2s ease;+ .resource-feature-badge();.t-icon {flex-shrink: 0;@@ -1651,7 +1403,7 @@ onUnmounted(() => {}&.stat-member {- background: rgba(100, 116, 139, 0.08);+ background: color-mix(in srgb, var(--td-text-color-secondary) 8%, transparent);color: var(--td-text-color-secondary);.t-icon {@@ -1659,12 +1411,12 @@ onUnmounted(() => {}&:hover {- background: rgba(100, 116, 139, 0.12);+ background: color-mix(in srgb, var(--td-text-color-secondary) 12%, transparent);}}&.stat-kb {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);.t-icon {@@ -1672,12 +1424,12 @@ onUnmounted(() => {}&:hover {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}}&.stat-agent {- background: rgba(124, 77, 255, 0.08);+ background: color-mix(in srgb, var(--app-accent-purple) 8%, transparent);color: var(--td-brand-color);.stat-agent-icon {@@ -1689,7 +1441,7 @@ onUnmounted(() => {}&:hover {- background: rgba(124, 77, 255, 0.12);+ background: color-mix(in srgb, var(--app-accent-purple) 12%, transparent);}}}@@ -1700,8 +1452,8 @@ onUnmounted(() => {align-items: center;height: 22px;padding: 0 6px;- border-radius: 6px;- font-size: 12px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);font-weight: 500;background: rgba(250, 173, 20, 0.12);color: var(--td-warning-color);@@ -1721,11 +1473,11 @@ onUnmounted(() => {gap: 4px;height: 22px;padding: 0 6px;- border-radius: 6px;- font-size: 12px;+ border-radius: var(--app-radius-sm);+ font-size: var(--app-text-sm);font-weight: 500;font-family: var(--app-font-family);- background: rgba(107, 114, 128, 0.08);+ background: color-mix(in srgb, var(--td-text-color-secondary) 8%, transparent);color: var(--td-text-color-secondary);.t-icon {@@ -1734,7 +1486,7 @@ onUnmounted(() => {}&.owner {- background: rgba(124, 77, 255, 0.1);+ background: color-mix(in srgb, var(--app-accent-purple) 10%, transparent);color: var(--td-brand-color);.t-icon {@@ -1743,7 +1495,7 @@ onUnmounted(() => {}&.admin {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: var(--td-brand-color);.t-icon {@@ -1752,7 +1504,7 @@ onUnmounted(() => {}&.editor {- background: rgba(7, 192, 95, 0.08);+ background: color-mix(in srgb, var(--td-brand-color) 8%, transparent);color: var(--td-brand-color);.t-icon {@@ -1761,7 +1513,7 @@ onUnmounted(() => {}&.viewer {- background: rgba(107, 114, 128, 0.08);+ background: color-mix(in srgb, var(--td-text-color-secondary) 8%, transparent);color: var(--td-text-color-secondary);.t-icon {@@ -1770,46 +1522,6 @@ onUnmounted(() => {}}-.empty-state {- flex: 1;- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;- padding: 60px 20px;-- .empty-img {- width: 162px;- height: 162px;- margin-bottom: 20px;- }-- .empty-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 26px;- margin-bottom: 8px;- }-- .empty-desc {- color: var(--td-text-color-disabled);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- margin-bottom: 0;- }-- .empty-state-actions {- display: flex;- align-items: center;- gap: 12px;- margin-top: 20px;- }-}-// 响应式布局@media (min-width: 900px) {.org-card-wrap {@@ -1842,88 +1554,10 @@ onUnmounted(() => {}// 删除/离开确认对话框样式-:deep(.del-org-dialog) {- padding: 0px !important;- border-radius: 6px !important;-- .t-dialog__header {- display: none;- }-- .t-dialog__body {- padding: 16px;- }-- .t-dialog__footer {- padding: 0;- }-}-:deep(.t-dialog__position.t-dialog--top) {padding-top: 40vh !important;}-.circle-wrap {- .dialog-header {- display: flex;- align-items: center;- margin-bottom: 8px;- }-- .circle-img {- width: 20px;- height: 20px;- margin-right: 8px;- }-- .circle-title {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 16px;- font-weight: 600;- line-height: 24px;- }-- .del-circle-txt {- color: var(--td-text-color-placeholder);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- display: inline-block;- margin-left: 29px;- margin-bottom: 21px;- }-- .circle-btn {- height: 22px;- width: 100%;- display: flex;- justify-content: flex-end;- }-- .circle-btn-txt {- color: var(--td-text-color-primary);- font-family: var(--app-font-family);- font-size: 14px;- font-weight: 400;- line-height: 22px;- cursor: pointer;-- &:hover {- opacity: 0.8;- }- }-- .confirm {- color: var(--td-error-color);- margin-left: 40px;-- &:hover {- opacity: 0.8;- }- }-}</style><style lang="less">@@ -1934,7 +1568,7 @@ onUnmounted(() => {.join-org-dialog {.t-form-item__label {font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}@@ -1965,7 +1599,7 @@ onUnmounted(() => {max-width: 480px;max-height: 90vh;background: var(--td-bg-color-container);- border-radius: 12px;+ border-radius: var(--app-radius-xl);box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);overflow: hidden;display: flex;@@ -1993,13 +1627,13 @@ onUnmounted(() => {height: 32px;border: none;background: transparent;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;display: flex;align-items: center;justify-content: center;color: var(--td-text-color-secondary);- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;&:hover {background: var(--td-bg-color-secondarycontainer);@@ -2009,7 +1643,7 @@ onUnmounted(() => {.invite-preview-title {margin: 0;- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);flex: 1;@@ -2024,13 +1658,13 @@ onUnmounted(() => {height: 32px;border: none;background: transparent;- border-radius: 8px;+ border-radius: var(--app-radius-md);cursor: pointer;display: flex;align-items: center;justify-content: center;color: var(--td-text-color-secondary);- transition: background 0.2s ease, color 0.2s ease;+ transition: background var(--app-motion-base) ease, color var(--app-motion-base) ease;z-index: 10;&:hover {@@ -2077,7 +1711,7 @@ onUnmounted(() => {&::-webkit-scrollbar-thumb {background: var(--td-bg-color-component-disabled);border-radius: 3px;- transition: background 0.2s;+ transition: background var(--app-motion-base);&:hover {background: var(--td-brand-color);@@ -2097,14 +1731,14 @@ onUnmounted(() => {align-items: center;padding: 6px 14px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;color: var(--td-text-color-secondary);cursor: pointer;- transition: color 0.15s ease, background 0.15s ease;+ transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover,&:focus-visible {@@ -2130,21 +1764,21 @@ onUnmounted(() => {.join-form-label {display: block;margin-bottom: 4px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.join-form-desc {margin: 0 0 10px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;}.join-form-tip {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 1.45;}@@ -2158,7 +1792,7 @@ onUnmounted(() => {// Tab 内容容器 - 平滑高度过渡.join-tab-content-wrapper {- transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);+ transition: height var(--app-motion-slow) cubic-bezier(0.4, 0, 0.2, 1);overflow: hidden;}@@ -2177,7 +1811,7 @@ onUnmounted(() => {overflow-y: auto;margin-bottom: 16px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);&::-webkit-scrollbar {@@ -2192,7 +1826,7 @@ onUnmounted(() => {&::-webkit-scrollbar-thumb {background: var(--td-bg-color-component-disabled);border-radius: 3px;- transition: background 0.2s;+ transition: background var(--app-motion-base);&:hover {background: var(--td-brand-color);@@ -2217,7 +1851,7 @@ onUnmounted(() => {padding: 12px 14px;border-bottom: 1px solid var(--td-component-stroke);cursor: pointer;- transition: background 0.15s ease;+ transition: background var(--app-motion-fast) ease;&:last-child {border-bottom: none;@@ -2249,7 +1883,7 @@ onUnmounted(() => {}.searchable-row-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);overflow: hidden;@@ -2258,7 +1892,7 @@ onUnmounted(() => {}.searchable-row-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);overflow: hidden;text-overflow: ellipsis;@@ -2276,7 +1910,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -2287,10 +1921,10 @@ onUnmounted(() => {gap: 8px;margin-bottom: 12px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-error-color-light);color: var(--td-error-color);- font-size: 13px;+ font-size: var(--app-text-md);}.invite-preview-footer-single {@@ -2309,7 +1943,7 @@ onUnmounted(() => {gap: 20px;.invite-preview-loading-text {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);font-family: var(--app-font-family);}@@ -2328,7 +1962,7 @@ onUnmounted(() => {}.invite-preview-error-title {- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 8px;@@ -2336,7 +1970,7 @@ onUnmounted(() => {}.invite-preview-error-desc {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);margin: 0 0 24px;line-height: 1.5;@@ -2366,7 +2000,7 @@ onUnmounted(() => {.preview-space-name {margin: 0 0 6px;- font-size: 18px;+ font-size: var(--app-text-2xl);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -2379,7 +2013,7 @@ onUnmounted(() => {.preview-space-desc {margin: 0 0 14px;max-width: 360px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);display: -webkit-box;@@ -2401,17 +2035,17 @@ onUnmounted(() => {max-width: 100%;padding: 4px 10px;border: none;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-bg-color-secondarycontainer);font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);cursor: pointer;- transition: background 0.15s ease, color 0.15s ease;+ transition: background var(--app-motion-fast) ease, color var(--app-motion-fast) ease;code {font-family: var(--app-font-family-mono);- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);background: transparent;border: none;@@ -2440,7 +2074,7 @@ onUnmounted(() => {justify-content: center;gap: 8px;padding: 12px 0 4px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-brand-color);}@@ -2459,14 +2093,14 @@ onUnmounted(() => {}.preview-info-label {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.preview-info-desc {margin: 8px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);@@ -2505,7 +2139,7 @@ onUnmounted(() => {.modal-enter-active,.modal-leave-active {- transition: all 0.3s ease;+ transition: all var(--app-motion-slow) ease;}.modal-enter-from,diff --git a/frontend/src/views/organization/OrganizationSettingsModal.test.mjs b/frontend/src/views/organization/OrganizationSettingsModal.test.mjsindex 9c761b639..da5fa1a23 100644--- a/frontend/src/views/organization/OrganizationSettingsModal.test.mjs+++ b/frontend/src/views/organization/OrganizationSettingsModal.test.mjs@@ -3,6 +3,8 @@ import { readFileSync } from 'node:fs'import test from 'node:test'const source = readFileSync(new URL('./OrganizationSettingsModal.vue', import.meta.url), 'utf8')+// 遮罩层由共享壳 SettingsModalShell 渲染,overscroll 规则也随之搬到那里。+const shellSource = readFileSync(new URL('../../components/SettingsModalShell.vue', import.meta.url), 'utf8')test('reviewing join requests goes through the store and refreshes modal data', () => {assert.match(@@ -30,6 +32,6 @@ test('organization settings lock and restore background scrolling', () => {assert.match(source, /document\.body\.style\.overflow = 'hidden'/)assert.match(source, /document\.body\.style\.overflow = previousBodyOverflow/)assert.match(source, /onBeforeUnmount\(\(\) => \{\s*unlockBackgroundScroll\(\)/)- assert.match(source, /\.settings-overlay\s*\{[\s\S]*?overscroll-behavior: none;/)+ assert.match(shellSource, /\.settings-overlay\s*\{[\s\S]*?overscroll-behavior: none;/)assert.match(source, /\.content-wrapper\s*\{[\s\S]*?overscroll-behavior: contain;/)})diff --git a/frontend/src/views/organization/OrganizationSettingsModal.vue b/frontend/src/views/organization/OrganizationSettingsModal.vueindex 2142cbbe8..361dc3f54 100644--- a/frontend/src/views/organization/OrganizationSettingsModal.vue+++ b/frontend/src/views/organization/OrganizationSettingsModal.vue@@ -1,826 +1,790 @@<template>- <Teleport to="body">- <Transition name="modal">- <div v-if="visible" class="settings-overlay" @click.self="handleClose">- <div class="settings-modal">- <!-- 关闭按钮 -->- <button class="close-btn" @click="handleClose" :aria-label="$t('common.close')">- <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor">- <path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" />- </svg>- </button>-- <div class="settings-container">- <!-- 左侧导航 -->- <div class="settings-sidebar">- <div class="sidebar-header">- <h2 class="sidebar-title">{{ modalTitle }}</h2>- </div>- <div class="settings-nav">- <template v-for="group in navGroups" :key="group.key">- <div class="nav-group-title">{{ group.label }}</div>- <div v-for="item in group.items" :key="item.key"- :class="['nav-item', { 'active': currentSection === item.key }]"- @click="currentSection = item.key">- <img v-if="item.key === 'sharedAgents'"- :src="currentSection === 'sharedAgents' ? agentIconActiveSrc : agentIconSrc"- class="nav-icon nav-icon-img" alt="" aria-hidden="true" />- <t-icon v-else :name="item.icon" class="nav-icon" />- <span class="nav-label">{{ item.label }}</span>- <span- v-if="item.badge != null && (item.key === 'sharedKb' || item.key === 'sharedAgents' ? true : item.badge > 0)"- :class="['nav-badge', { 'nav-badge-count': item.key === 'sharedKb' || item.key === 'sharedAgents' }]">{{- item.badge }}</span>- </div>- </template>- </div>- </div>+ <SettingsModalShell :visible="visible" :title="modalTitle" v-model="currentSection" :nav-groups="navGroups"+ :z-index="2000" @close="modalShell.requestClose">+ <template #nav-icon="{ item, active }">+ <img v-if="item.key === 'sharedAgents'" :src="active ? agentIconActiveSrc : agentIconSrc"+ class="nav-icon nav-icon-img" alt="" aria-hidden="true" />+ <t-icon v-else :name="item.icon" class="nav-icon" />+ </template>+ <div ref="contentWrapperRef" class="content-wrapper">+ <!-- 组织管理员但空间角色不足,给出只读提示 -->+ <div v-if="showTenantRoleHint" class="tenant-role-hint">+ <t-icon name="info-circle" size="16px" />+ <span>{{ $t('organization.rbac.needTenantAdminTip') }}</span>+ </div>+ <!-- 基本信息 -->+ <div v-show="currentSection === 'basic'" class="section">+ <div class="section-header">+ <h2>{{ $t('organization.editor.basicTitle') }}</h2>+ <p class="section-description">{{ $t('organization.editor.basicDesc') }}</p>+ </div>- <!-- 右侧内容区域 -->- <div class="settings-content">- <div ref="contentWrapperRef" class="content-wrapper">- <!-- 组织管理员但空间角色不足,给出只读提示 -->- <div v-if="showTenantRoleHint" class="tenant-role-hint">- <t-icon name="info-circle" size="16px" />- <span>{{ $t('organization.rbac.needTenantAdminTip') }}</span>- </div>- <!-- 基本信息 -->- <div v-show="currentSection === 'basic'" class="section">- <div class="section-header">- <h2>{{ $t('organization.editor.basicTitle') }}</h2>- <p class="section-description">{{ $t('organization.editor.basicDesc') }}</p>+ <div class="settings-group">+ <!-- 空间名称与头像:一行展示,头像点击弹出 Emoji 选择 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('organization.name') }} <span class="required">*</span></label>+ <p class="desc">{{ $t('organization.editor.nameTip') }}</p>+ </div>+ <div class="setting-control">+ <div class="name-input-wrapper">+ <t-popup v-model="avatarPopoverVisible" trigger="click" placement="bottom-left"+ :disabled="!isAdmin" overlay-class-name="avatar-emoji-popover">+ <div class="avatar-trigger-wrap">+ <SpaceAvatar :name="formData.name || '?'" :avatar="formData.avatar" size="medium" />+ <span v-if="isAdmin" class="avatar-change-hint">{{ $t('organization.avatar') }}</span></div>-- <div class="settings-group">- <!-- 空间名称与头像:一行展示,头像点击弹出 Emoji 选择 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('organization.name') }} <span class="required">*</span></label>- <p class="desc">{{ $t('organization.editor.nameTip') }}</p>- </div>- <div class="setting-control">- <div class="name-input-wrapper">- <t-popup v-model="avatarPopoverVisible" trigger="click" placement="bottom-left"- :disabled="!isAdmin" overlay-class-name="avatar-emoji-popover">- <div class="avatar-trigger-wrap">- <SpaceAvatar :name="formData.name || '?'" :avatar="formData.avatar" size="medium" />- <span v-if="isAdmin" class="avatar-change-hint">{{ $t('organization.avatar') }}</span>- </div>- <template #content>- <div class="avatar-popover-content" @click.stop>- <p class="avatar-popover-title">{{ $t('organization.avatarPickerHint') }}</p>- <div class="avatar-emoji-grid">- <button v-for="emoji in avatarEmojiOptions" :key="emoji" type="button"- class="avatar-emoji-btn"- :class="{ 'is-selected': formData.avatar === 'emoji:' + emoji }"- @click="selectAvatarEmoji(emoji)">- {{ emoji }}- </button>- </div>- <t-button v-if="formData.avatar" variant="text" size="small" class="avatar-clear-btn"- @click="clearAvatarEmoji">- {{ $t('organization.avatarClear') }}- </t-button>- </div>- </template>- </t-popup>- <t-input v-model="formData.name" :placeholder="$t('organization.namePlaceholder')"- :disabled="!isAdmin" class="name-input" />- </div>+ <template #content>+ <div class="avatar-popover-content" @click.stop>+ <p class="avatar-popover-title">{{ $t('organization.avatarPickerHint') }}</p>+ <div class="avatar-emoji-grid">+ <button v-for="emoji in avatarEmojiOptions" :key="emoji" type="button"+ class="avatar-emoji-btn"+ :class="{ 'is-selected': formData.avatar === 'emoji:' + emoji }"+ @click="selectAvatarEmoji(emoji)">+ {{ emoji }}+ </button></div>+ <t-button v-if="formData.avatar" variant="text" size="small" class="avatar-clear-btn"+ @click="clearAvatarEmoji">+ {{ $t('organization.avatarClear') }}+ </t-button></div>+ </template>+ </t-popup>+ <t-input v-model="formData.name" :placeholder="$t('organization.namePlaceholder')"+ :disabled="!isAdmin" class="name-input" />+ </div>+ </div>+ </div>- <!-- 空间描述 -->- <div class="setting-row">- <div class="setting-info">- <label>{{ $t('organization.description') }}</label>- <p class="desc">{{ $t('organization.editor.descriptionTip') }}</p>- </div>- <div class="setting-control">- <t-textarea v-model="formData.description"- :placeholder="$t('organization.descriptionPlaceholder')"- :autosize="{ minRows: 3, maxRows: 6 }" :maxlength="500" :disabled="!isAdmin" />- </div>- </div>+ <!-- 空间描述 -->+ <div class="setting-row">+ <div class="setting-info">+ <label>{{ $t('organization.description') }}</label>+ <p class="desc">{{ $t('organization.editor.descriptionTip') }}</p>+ </div>+ <div class="setting-control">+ <t-textarea v-model="formData.description"+ :placeholder="$t('organization.descriptionPlaceholder')"+ :autosize="{ minRows: 3, maxRows: 6 }" :maxlength="500" :disabled="!isAdmin" />+ </div>+ </div>- <!-- 邀请成员 (仅管理员可见) -->- <div v-if="isAdmin && orgId" class="setting-row setting-row-vertical">- <div class="setting-info full-width">- <label>{{ $t('organization.settings.inviteMembers') }}</label>- <p class="desc">{{ $t('organization.settings.inviteMembersDesc') }}</p>- </div>- <div class="setting-control full-width">- <div class="invite-card">- <!-- 邀请码 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="qrcode" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.inviteCode') }}</span>- </div>- <div class="invite-code-box">- <span class="invite-code-value">{{ inviteCode }}</span>- <div class="invite-code-actions">- <t-tooltip :content="$t('common.copy')">- <t-button variant="text" size="small" @click="copyInviteCode">- <t-icon name="file-copy" />- </t-button>- </t-tooltip>- <t-tooltip :content="$t('organization.refreshInviteCode')">- <t-button variant="text" size="small" @click="refreshInviteCode"- :loading="refreshingCode">- <t-icon name="refresh" />- </t-button>- </t-tooltip>- </div>- </div>- <p v-if="inviteCode" class="invite-remaining">{{ remainingValidityText }}</p>- </div>-- <div class="invite-divider"></div>-- <!-- 邀请链接有效期 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="time" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.settings.inviteLinkValidity')- }}</span>- </div>- <p class="invite-validity-desc">{{ $t('organization.settings.inviteLinkValidityDesc') }}</p>- <t-select v-model="formData.invite_code_validity_days" :options="inviteValidityOptions"- size="small" class="invite-validity-select" :disabled="!isAdmin"- @change="handleValidityChange" />- </div>-- <div class="invite-divider"></div>-- <!-- 邀请链接 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="link" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.settings.inviteLink') }}</span>- </div>- <div class="invite-link-box">- <span class="invite-link-value">{{ inviteLink }}</span>- <t-tooltip :content="$t('common.copy')">- <t-button variant="text" size="small" @click="copyInviteLink">- <t-icon name="file-copy" />- </t-button>- </t-tooltip>- </div>- </div>-- <div class="invite-divider"></div>-- <!-- 需要审核开关 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="check-circle" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.settings.requireApproval') }}</span>- </div>- <div class="approval-toggle">- <t-switch v-model="formData.require_approval" @change="handleApprovalToggle" />- <span class="approval-desc">{{ $t('organization.settings.requireApprovalDesc') }}</span>- </div>- </div>-- <div class="invite-divider"></div>-- <!-- 开放可被搜索 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="search" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.settings.searchable') }}</span>- </div>- <div class="approval-toggle">- <t-switch v-model="formData.searchable" @change="handleSearchableToggle" />- <span class="approval-desc">{{ $t('organization.settings.searchableDesc') }}</span>- </div>- </div>-- <div class="invite-divider"></div>-- <!-- 成员人数上限 -->- <div class="invite-method">- <div class="invite-method-header">- <t-icon name="user-add" class="invite-icon" />- <span class="invite-method-title">{{ $t('organization.settings.memberLimit') }}</span>- </div>- <p class="invite-validity-desc">{{ $t('organization.settings.memberLimitDesc') }}</p>- <div class="member-limit-input-row">- <t-input-number v-model="formData.member_limit" :min="0" :max="10000"- :placeholder="$t('organization.settings.memberLimitPlaceholder')" theme="normal"- style="width: 140px;" />- <span class="member-limit-hint">{{ $t('organization.settings.memberLimitHint', {- count:- orgInfo?.member_count- ?? 0- }) }}</span>- </div>- </div>- </div>- </div>+ <!-- 邀请成员 (仅管理员可见) -->+ <div v-if="isAdmin && orgId" class="setting-row setting-row-vertical">+ <div class="setting-info full-width">+ <label>{{ $t('organization.settings.inviteMembers') }}</label>+ <p class="desc">{{ $t('organization.settings.inviteMembersDesc') }}</p>+ </div>+ <div class="setting-control full-width">+ <div class="invite-card">+ <!-- 邀请码 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="qrcode" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.inviteCode') }}</span>+ </div>+ <div class="invite-code-box">+ <span class="invite-code-value">{{ inviteCode }}</span>+ <div class="invite-code-actions">+ <t-tooltip :content="$t('common.copy')">+ <t-button variant="text" size="small" @click="copyInviteCode">+ <t-icon name="file-copy" />+ </t-button>+ </t-tooltip>+ <t-tooltip :content="$t('organization.refreshInviteCode')">+ <t-button variant="text" size="small" @click="refreshInviteCode"+ :loading="refreshingCode">+ <t-icon name="refresh" />+ </t-button>+ </t-tooltip></div>+ </div>+ <p v-if="inviteCode" class="invite-remaining">{{ remainingValidityText }}</p>+ </div>+ <div class="invite-divider"></div>+ <!-- 邀请链接有效期 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="time" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.settings.inviteLinkValidity')+ }}</span></div>+ <p class="invite-validity-desc">{{ $t('organization.settings.inviteLinkValidityDesc') }}</p>+ <t-select v-model="formData.invite_code_validity_days" :options="inviteValidityOptions"+ size="small" class="invite-validity-select" :disabled="!isAdmin"+ @change="handleValidityChange" /></div>- <!-- 创建空间 - 权限说明 -->- <div v-if="isCreateMode" v-show="currentSection === 'permissions'" class="section">- <div class="section-header">- <h2>{{ $t('organization.editor.permissionsTitle') }}</h2>- <p class="section-description">{{ $t('organization.editor.permissionsDesc') }}</p>- </div>+ <div class="invite-divider"></div>- <div class="permissions-info">- <div class="permission-card">- <div class="permission-header">- <div class="permission-icon admin">- <t-icon name="user-safety" />- </div>- <div class="permission-title">- <span class="role-name">{{ $t('organization.role.admin') }}</span>- <t-tag size="small" theme="primary">{{ $t('organization.editor.fullAccess') }}</t-tag>- </div>- </div>- <ul class="permission-list">- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm1') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm2') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm3') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm4') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>- </ul>- </div>- <div class="permission-card">- <div class="permission-header">- <div class="permission-icon editor">- <t-icon name="edit" />- </div>- <div class="permission-title">- <span class="role-name">{{ $t('organization.role.editor') }}</span>- <t-tag size="small" theme="warning">{{ $t('organization.editor.editAccess') }}</t-tag>- </div>- </div>- <ul class="permission-list">- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.editorPerm1') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.editorPerm2') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.shareKBPerm') }}</li>- <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.editorPerm3') }}</li>- </ul>- </div>- <div class="permission-card">- <div class="permission-header">- <div class="permission-icon viewer">- <t-icon name="browse" />- </div>- <div class="permission-title">- <span class="role-name">{{ $t('organization.role.viewer') }}</span>- <t-tag size="small">{{ $t('organization.editor.viewAccess') }}</t-tag>- </div>- </div>- <ul class="permission-list">- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.viewerPerm1') }}</li>- <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>- <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.shareKBPerm') }}</li>- <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.viewerPerm2') }}</li>- <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.viewerPerm3') }}</li>- </ul>- </div>+ <!-- 邀请链接 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="link" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.settings.inviteLink') }}</span></div>- <div class="info-notice">- <t-icon name="info-circle" />- <span>{{ $t('organization.editor.ownerNote') }}</span>+ <div class="invite-link-box">+ <span class="invite-link-value">{{ inviteLink }}</span>+ <t-tooltip :content="$t('common.copy')">+ <t-button variant="text" size="small" @click="copyInviteLink">+ <t-icon name="file-copy" />+ </t-button>+ </t-tooltip></div></div>- <!-- 成员管理 -->- <div v-show="currentSection === 'members'" class="section">- <div class="section-header">- <div class="section-header-row">- <div class="section-header-titlewrap">- <h2>{{ $t('organization.manageMembers') }}</h2>- <t-popup placement="bottom-start" trigger="hover"- overlay-class-name="org-permissions-popup-overlay"- :overlay-inner-style="permissionsPopupInnerStyle">- <button type="button" class="permissions-trigger-btn"- :aria-label="$t('organization.editor.permissionsTitle')"- :title="$t('organization.settings.permissionsIconHint')">- <t-icon name="info-circle" size="16px" />- </button>- <template #content>- <div class="permissions-compact permissions-compact--popover">- <div class="permissions-compact-header">- <span class="permissions-compact-title">{{ $t('organization.editor.permissionsTitle') }}</span>- <span class="permissions-compact-desc">{{ $t('organization.editor.permissionsDesc') }}</span>- </div>- <div class="permissions-compact-grid">- <div v-for="role in orgRoleMatrixOrder" :key="role"- :class="['perm-role-block', role, { 'is-me': orgInfo?.my_role === role }]">- <div class="perm-role-tag">- <t-icon :name="orgRoleIcon(role)" size="12px" />- <span>{{ $t(`organization.role.${role}`) }}</span>- <span v-if="orgInfo?.my_role === role" class="me-badge">{{ $t('common.me') }}</span>- </div>- <div class="perm-items">- <span v-for="(perm, idx) in orgRoleMatrix[role]" :key="idx"- :class="['perm-item', perm.has ? 'has' : 'no']">- <t-icon :name="perm.has ? 'check' : 'close'" size="12px" />- {{ $t(`organization.editor.${perm.key}`) }}- </span>- </div>- </div>- </div>- </div>- </template>- </t-popup>- </div>- </div>- <p class="section-description">{{ $t('organization.settings.membersDesc') }}</p>+ <div class="invite-divider"></div>++ <!-- 需要审核开关 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="check-circle" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.settings.requireApproval') }}</span>+ </div>+ <div class="approval-toggle">+ <t-switch v-model="formData.require_approval" @change="handleApprovalToggle" />+ <span class="approval-desc">{{ $t('organization.settings.requireApprovalDesc') }}</span></div>+ </div>- <div class="members-list-wrap">- <div class="members-list-header">- <div class="members-list-titlewrap">- <span class="members-list-title">{{ $t('organization.members.listTitle') }}</span>- <span class="members-list-count-badge">{{ filteredMembers.length }}</span>- </div>- <div class="members-list-actions">- <div class="members-list-search">- <t-input v-model="memberSearchQuery" size="small"- :placeholder="$t('organization.members.searchPlaceholder')" clearable>- <template #prefix-icon>- <t-icon name="search" />- </template>- </t-input>- </div>- <t-popup v-if="canRequestUpgrade" v-model="upgradePopupVisible" trigger="click"- placement="bottom-end" destroy-on-close overlay-class-name="org-upgrade-popup-overlay">- <t-button variant="outline" shape="square" size="small" class="members-list-upgrade-btn"- :disabled="hasPendingUpgrade"- :title="hasPendingUpgrade ? $t('organization.upgrade.pending') : $t('organization.upgrade.requestUpgrade')"- :aria-label="hasPendingUpgrade ? $t('organization.upgrade.pending') : $t('organization.upgrade.requestUpgrade')">- <template #icon><t-icon name="arrow-up" /></template>- </t-button>- <template #content>- <div class="org-upgrade-popup-inner" @click.stop>- <div class="member-invite-popup-title">{{ $t('organization.upgrade.dialogTitle') }}</div>- <p class="add-member-tip">{{ $t('organization.upgrade.dialogDesc') }}</p>-- <div class="upgrade-current-role-bar">- <span class="upgrade-current-role-label">{{ $t('organization.upgrade.currentRole') }}</span>- <t-tag size="small" :theme="getRoleTheme(orgInfo?.my_role || 'viewer')" variant="light">- {{ $t(`organization.role.${orgInfo?.my_role || 'viewer'}`) }}- </t-tag>- </div>-- <div class="org-upgrade-fields">- <div class="org-upgrade-field">- <label class="org-upgrade-field-label">{{ $t('organization.upgrade.selectRole') }}</label>- <div class="upgrade-role-pills">- <button v-for="opt in upgradeRoleOptions" :key="opt.value" type="button"- :class="['upgrade-role-pill', { active: upgradeForm.requested_role === opt.value }]"- @click="upgradeForm.requested_role = opt.value as 'editor' | 'admin'">- {{ opt.label }}- </button>- </div>- </div>- <div class="org-upgrade-field org-upgrade-field--last">- <label class="org-upgrade-field-label">{{ $t('organization.upgrade.reason') }}</label>- <t-textarea v-model="upgradeForm.message" size="medium"- :placeholder="$t('organization.upgrade.reasonPlaceholder')"- :autosize="{ minRows: 2, maxRows: 4 }" :maxlength="500" />- </div>- </div>-- <div class="invite-popup-footer">- <t-button variant="outline" :disabled="upgradeSubmitting"- @click="upgradePopupVisible = false">- {{ $t('common.cancel') }}- </t-button>- <t-button theme="primary" :loading="upgradeSubmitting" @click="handleSubmitUpgrade">- {{ $t('organization.upgrade.submitBtn') }}- </t-button>- </div>- </div>- </template>- </t-popup>- <t-popup v-if="isAdmin" v-model="addMemberPopupVisible" trigger="click" placement="bottom-end"- destroy-on-close overlay-class-name="org-add-member-popup-overlay">- <t-button theme="primary" variant="outline" shape="square" size="small"- class="members-list-add-btn" :title="$t('organization.addMember.button')"- :aria-label="$t('organization.addMember.button')">- <template #icon><t-icon name="user-add" /></template>- </t-button>- <template #content>- <div class="member-invite-popup-inner" @click.stop>- <div class="member-invite-popup-title">{{ $t('organization.addMember.dialogTitle') }}</div>- <p class="add-member-tip">{{ $t('organization.addMember.tipTenant') }}</p>- <t-form layout="vertical" class="member-invite-form">- <t-form-item :label="$t('organization.addMember.searchTenant')">- <div class="member-form-control">- <t-select v-model="selectedTenantId"- :placeholder="$t('organization.addMember.searchTenantPlaceholder')" filterable- :filter="() => true" :loading="tenantSearchLoading" @search="handleTenantSearch"- clearable :options="tenantSearchOptions" />- <p class="field-hint">{{ $t('organization.addMember.searchTenantHint') }}</p>- </div>- </t-form-item>- <t-form-item :label="$t('organization.addMember.selectRole')">- <t-select v-model="addMemberRole" :options="addMemberRoleOptions"- :placeholder="$t('organization.addMember.selectRole')" />- </t-form-item>- </t-form>- <div class="invite-popup-footer">- <t-button variant="outline" :disabled="addMemberSubmitting"- @click="addMemberPopupVisible = false">- {{ $t('common.cancel') }}- </t-button>- <t-button theme="primary" :loading="addMemberSubmitting"- :disabled="selectedTenantId == null" @click="handleAddMember">- {{ $t('organization.addMember.confirmBtn') }}- </t-button>- </div>- </div>- </template>- </t-popup>- </div>- </div>+ <div class="invite-divider"></div>- <div v-if="membersLoading && members.length === 0" class="loading-inline">- <t-loading size="small" />- <span>{{ $t('organization.members.loading') }}</span>- </div>- <div v-else-if="filteredMembers.length === 0" class="empty-state">- <t-empty :description="memberSearchQuery.trim()- ? $t('organization.members.emptySearch', { q: memberSearchQuery })- : $t('organization.noMembers')" />- </div>- <div v-else class="data-table-shell members-table-shell">- <t-table row-key="id" :data="filteredMembers" :columns="memberColumns" size="medium" hover- stripe :loading="membersLoading">- <template #member="{ row }">- <div class="member-cell">- <span class="member-name">- {{ memberPrimaryLabel(row) }}- <span v-if="isOwnerMember(row)" class="owner-tag">{{ $t('organization.owner') }}</span>- <span v-if="row.user_id === authStore.currentUserId" class="me-tag">{{ $t('common.me')- }}</span>- </span>- <span v-if="memberSecondaryLabel(row)" class="member-email">{{ memberSecondaryLabel(row)- }}</span>- </div>- </template>- <template #role="{ row }">- <div class="role-cell">- <t-select v-if="isAdmin && !isOwnerMember(row)" :model-value="row.role"- class="member-role-select" size="small" :options="roleOptions"- @change="(val: string) => handleRoleChange(row, val)" />- <t-tag v-else size="small" :theme="getRoleTheme(row.role)">- {{ $t(`organization.role.${row.role}`) }}- </t-tag>- </div>- </template>- <template #joined_at="{ row }">{{ formatDate(row.joined_at) }}</template>- <template #actions="{ row }">- <t-popconfirm v-if="isAdmin && !isOwnerMember(row)"- :content="$t('organization.detail.removeMemberConfirm', { name: memberPrimaryLabel(row) })"- :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"- :cancel-btn="{ content: $t('common.cancel') }" placement="left"- @confirm="confirmRemoveMember(row)">- <t-tooltip :content="$t('organization.detail.removeMember')" placement="top">- <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>- <template #icon><t-icon name="user-clear" /></template>- </t-button>- </t-tooltip>- </t-popconfirm>- </template>- </t-table>- </div>+ <!-- 开放可被搜索 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="search" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.settings.searchable') }}</span>+ </div>+ <div class="approval-toggle">+ <t-switch v-model="formData.searchable" @change="handleSearchableToggle" />+ <span class="approval-desc">{{ $t('organization.settings.searchableDesc') }}</span></div></div>- <!-- 加入申请(待审核) -->- <div v-show="currentSection === 'joinRequests'" class="section">- <div class="section-header">- <h2>{{ $t('organization.settings.joinRequests') }}</h2>- <p class="section-description">{{ $t('organization.settings.joinRequestsDesc') }}</p>+ <div class="invite-divider"></div>++ <!-- 成员人数上限 -->+ <div class="invite-method">+ <div class="invite-method-header">+ <t-icon name="user-add" class="invite-icon" />+ <span class="invite-method-title">{{ $t('organization.settings.memberLimit') }}</span>+ </div>+ <p class="invite-validity-desc">{{ $t('organization.settings.memberLimitDesc') }}</p>+ <div class="member-limit-input-row">+ <t-input-number v-model="formData.member_limit" :min="0" :max="10000"+ :placeholder="$t('organization.settings.memberLimitPlaceholder')" theme="normal"+ style="width: 140px;" />+ <span class="member-limit-hint">{{ $t('organization.settings.memberLimitHint', {+ count:+ orgInfo?.member_count+ ?? 0+ }) }}</span></div>+ </div>+ </div>+ </div>+ </div>- <div class="members-list-wrap join-requests-wrap">- <div class="members-list-header">- <div class="members-list-titlewrap">- <span class="members-list-title">{{ $t('organization.joinRequests.listTitle') }}</span>- <span class="members-list-count-badge">{{ filteredJoinRequests.length }}</span>- </div>- <div class="members-list-actions">- <div class="members-list-search">- <t-input v-model="joinRequestSearchQuery" size="small"- :placeholder="$t('organization.joinRequests.searchPlaceholder')" clearable>- <template #prefix-icon>- <t-icon name="search" />- </template>- </t-input>- </div>- </div>- </div>- <div v-if="joinRequestsLoading && joinRequests.length === 0" class="loading-inline">- <t-loading size="small" />- <span>{{ $t('organization.joinRequests.loading') }}</span>- </div>- <div v-else-if="filteredJoinRequests.length === 0" class="empty-state">- <t-empty :description="joinRequestSearchQuery.trim()- ? $t('organization.joinRequests.emptySearch', { q: joinRequestSearchQuery })- : $t('organization.settings.noPendingRequests')" />+ </div>+ </div>++ <!-- 创建空间 - 权限说明 -->+ <div v-if="isCreateMode" v-show="currentSection === 'permissions'" class="section">+ <div class="section-header">+ <h2>{{ $t('organization.editor.permissionsTitle') }}</h2>+ <p class="section-description">{{ $t('organization.editor.permissionsDesc') }}</p>+ </div>++ <div class="permissions-info">+ <div class="permission-card">+ <div class="permission-header">+ <div class="permission-icon admin">+ <t-icon name="user-safety" />+ </div>+ <div class="permission-title">+ <span class="role-name">{{ $t('organization.role.admin') }}</span>+ <t-tag size="small" theme="primary">{{ $t('organization.editor.fullAccess') }}</t-tag>+ </div>+ </div>+ <ul class="permission-list">+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm1') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm2') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm3') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.adminPerm4') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>+ </ul>+ </div>+ <div class="permission-card">+ <div class="permission-header">+ <div class="permission-icon editor">+ <t-icon name="edit" />+ </div>+ <div class="permission-title">+ <span class="role-name">{{ $t('organization.role.editor') }}</span>+ <t-tag size="small" theme="warning">{{ $t('organization.editor.editAccess') }}</t-tag>+ </div>+ </div>+ <ul class="permission-list">+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.editorPerm1') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.editorPerm2') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.shareKBPerm') }}</li>+ <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.editorPerm3') }}</li>+ </ul>+ </div>+ <div class="permission-card">+ <div class="permission-header">+ <div class="permission-icon viewer">+ <t-icon name="browse" />+ </div>+ <div class="permission-title">+ <span class="role-name">{{ $t('organization.role.viewer') }}</span>+ <t-tag size="small">{{ $t('organization.editor.viewAccess') }}</t-tag>+ </div>+ </div>+ <ul class="permission-list">+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.viewerPerm1') }}</li>+ <li><t-icon name="check" class="check-icon" />{{ $t('organization.editor.useSharedAgentsPerm') }}</li>+ <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.shareKBPerm') }}</li>+ <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.viewerPerm2') }}</li>+ <li><t-icon name="close" class="close-icon" />{{ $t('organization.editor.viewerPerm3') }}</li>+ </ul>+ </div>+ </div>+ <div class="info-notice">+ <t-icon name="info-circle" />+ <span>{{ $t('organization.editor.ownerNote') }}</span>+ </div>+ </div>++ <!-- 成员管理 -->+ <div v-show="currentSection === 'members'" class="section">+ <div class="section-header">+ <div class="section-header-row">+ <div class="section-header-titlewrap">+ <h2>{{ $t('organization.manageMembers') }}</h2>+ <t-popup placement="bottom-start" trigger="hover"+ overlay-class-name="wk-popover org-permissions-popup-overlay"+ :overlay-inner-style="permissionsPopupInnerStyle">+ <button type="button" class="permissions-trigger-btn"+ :aria-label="$t('organization.editor.permissionsTitle')"+ :title="$t('organization.settings.permissionsIconHint')">+ <t-icon name="info-circle" size="16px" />+ </button>+ <template #content>+ <div class="permissions-compact permissions-compact--popover">+ <div class="permissions-compact-header">+ <span class="permissions-compact-title">{{ $t('organization.editor.permissionsTitle') }}</span>+ <span class="permissions-compact-desc">{{ $t('organization.editor.permissionsDesc') }}</span></div>- <div v-else class="data-table-shell join-requests-table">- <t-table row-key="id" :data="filteredJoinRequests" :columns="joinRequestColumns" size="medium"- hover stripe :loading="joinRequestsLoading">- <template #applicant="{ row }">- <div class="member-cell">- <span class="member-name">{{ joinRequestApplicantLabel(row) }}</span>- <span v-if="joinRequestApplicantSecondary(row)" class="member-email">- {{ joinRequestApplicantSecondary(row) }}- </span>- </div>- </template>- <template #request_type="{ row }">- <t-tag size="small" :theme="row.request_type === 'upgrade' ? 'warning' : 'primary'"- variant="light">- {{ row.request_type === 'upgrade'- ? $t('organization.joinRequests.typeUpgrade')- : $t('organization.joinRequests.typeJoin') }}- </t-tag>- </template>- <template #requested_role="{ row }">- <span v-if="row.request_type === 'upgrade' && row.prev_role" class="join-request-role-change">- {{ roleLabel(row.prev_role) }}- <t-icon name="arrow-right" size="12px" />- {{ roleLabel(row.requested_role) }}- </span>- <t-tag v-else size="small" :theme="getRoleTheme(row.requested_role)" variant="light">- {{ roleLabel(row.requested_role) }}- </t-tag>- </template>- <template #message="{ row }">- <span class="join-request-message" :title="row.message || undefined">- {{ row.message || '—' }}+ <div class="permissions-compact-grid">+ <div v-for="role in orgRoleMatrixOrder" :key="role"+ :class="['perm-role-block', role, { 'is-me': orgInfo?.my_role === role }]">+ <div class="perm-role-tag">+ <t-icon :name="orgRoleIcon(role)" size="12px" />+ <span>{{ $t(`organization.role.${role}`) }}</span>+ <span v-if="orgInfo?.my_role === role" class="me-badge">{{ $t('common.me') }}</span>+ </div>+ <div class="perm-items">+ <span v-for="(perm, idx) in orgRoleMatrix[role]" :key="idx"+ :class="['perm-item', perm.has ? 'has' : 'no']">+ <t-icon :name="perm.has ? 'check' : 'close'" size="12px" />+ {{ $t(`organization.editor.${perm.key}`) }}</span>- </template>- <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>- <template #actions="{ row }">- <div class="join-request-actions">- <t-popup :visible="approvePopupRequestId === row.id"- placement="left-start" destroy-on-close overlay-class-name="org-approve-request-popup-overlay"- @visible-change="(visible: boolean) => handleApprovePopupVisibleChange(visible, row)">- <t-tooltip :content="$t('organization.settings.approve')" placement="top">- <t-button theme="primary" variant="text" shape="square" size="small"- :loading="reviewingRequestId === row.id" @click.stop="openApprovePopup(row)">- <template #icon><t-icon name="check" /></template>- </t-button>- </t-tooltip>- <template #content>- <div class="org-approve-request-popup-inner" @click.stop>- <div class="member-invite-popup-title">{{ $t('organization.joinRequests.approveTitle') }}</div>- <p class="add-member-tip">- {{ $t('organization.joinRequests.approveDesc', { name: joinRequestApplicantLabel(row) }) }}- </p>- <div class="org-upgrade-field org-upgrade-field--last">- <label class="org-upgrade-field-label">{{ $t('organization.settings.assignRole') }}</label>- <t-select v-model="approveAssignRole" size="medium" :options="orgRoleOptions" />- </div>- <div class="invite-popup-footer">- <t-button variant="outline" :disabled="reviewingRequestId === row.id"- @click="closeApprovePopup">- {{ $t('common.cancel') }}- </t-button>- <t-button theme="primary" :loading="reviewingRequestId === row.id"- @click="confirmApproveRequest(row)">- {{ $t('organization.settings.approve') }}- </t-button>- </div>- </div>- </template>- </t-popup>- <t-popconfirm :content="$t('organization.joinRequests.rejectConfirm')"- :confirm-btn="{ content: $t('organization.settings.reject'), theme: 'danger' }"- :cancel-btn="{ content: $t('common.cancel') }" placement="left"- @confirm="handleRejectRequest(row)">- <t-tooltip :content="$t('organization.settings.reject')" placement="top">- <t-button theme="danger" variant="text" shape="square" size="small"- :loading="reviewingRequestId === row.id" @click.stop>- <template #icon><t-icon name="close" /></template>- </t-button>- </t-tooltip>- </t-popconfirm>- </div>- </template>- </t-table>+ </div>+ </div></div></div>- </div>+ </template>+ </t-popup>+ </div>+ </div>+ <p class="section-description">{{ $t('organization.settings.membersDesc') }}</p>+ </div>- <!-- 共享知识库 -->- <div v-show="currentSection === 'sharedKb'" class="section">- <div class="section-header">- <div class="section-header-row">- <div class="section-header-titlewrap">- <h2>{{ $t('organization.share.sharedKnowledgeBase') }}</h2>- <t-popup placement="bottom-start" trigger="hover"- overlay-class-name="org-permissions-popup-overlay"- :overlay-inner-style="permissionsHintPopupInnerStyle">- <button type="button" class="permissions-trigger-btn"- :aria-label="$t('organization.settings.permissionCalcFormula')"- :title="$t('organization.settings.permissionCalcFormula')">- <t-icon name="info-circle" size="16px" />- </button>- <template #content>- <div class="permission-hint-popover">- <p class="permission-hint-title">{{ $t('organization.settings.sharePermissionLabel') }}</p>- <p class="permission-hint-desc">{{ $t('organization.settings.permissionCalcTip') }}</p>- </div>- </template>- </t-popup>- </div>+ <div class="members-list-wrap">+ <div class="members-list-header">+ <div class="members-list-titlewrap">+ <span class="members-list-title">{{ $t('organization.members.listTitle') }}</span>+ <span class="members-list-count-badge">{{ filteredMembers.length }}</span>+ </div>+ <div class="members-list-actions">+ <div class="members-list-search">+ <t-input v-model="memberSearchQuery" size="small"+ :placeholder="$t('organization.members.searchPlaceholder')" clearable>+ <template #prefix-icon>+ <t-icon name="search" />+ </template>+ </t-input>+ </div>+ <t-popup v-if="canRequestUpgrade" v-model="upgradePopupVisible" trigger="click"+ placement="bottom-end" destroy-on-close overlay-class-name="org-upgrade-popup-overlay">+ <t-button variant="outline" shape="square" size="small" class="members-list-upgrade-btn"+ :disabled="hasPendingUpgrade"+ :title="hasPendingUpgrade ? $t('organization.upgrade.pending') : $t('organization.upgrade.requestUpgrade')"+ :aria-label="hasPendingUpgrade ? $t('organization.upgrade.pending') : $t('organization.upgrade.requestUpgrade')">+ <template #icon><t-icon name="arrow-up" /></template>+ </t-button>+ <template #content>+ <div class="org-upgrade-popup-inner" @click.stop>+ <div class="member-invite-popup-title">{{ $t('organization.upgrade.dialogTitle') }}</div>+ <p class="add-member-tip">{{ $t('organization.upgrade.dialogDesc') }}</p>++ <div class="upgrade-current-role-bar">+ <span class="upgrade-current-role-label">{{ $t('organization.upgrade.currentRole') }}</span>+ <t-tag size="small" :theme="getRoleTheme(orgInfo?.my_role || 'viewer')" variant="light">+ {{ $t(`organization.role.${orgInfo?.my_role || 'viewer'}`) }}+ </t-tag></div>- <p class="section-description">{{ $t('organization.settings.sharedDesc') }}</p>- </div>- <div class="shared-resources-wrap">- <div class="members-list-header">- <div class="members-list-titlewrap">- <span class="members-list-title">{{ $t('organization.sharedResources.kbListTitle') }}</span>- <span class="members-list-count-badge">{{ sharedKnowledgeBases.length }}</span>+ <div class="org-upgrade-fields">+ <div class="org-upgrade-field">+ <label class="org-upgrade-field-label">{{ $t('organization.upgrade.selectRole') }}</label>+ <div class="upgrade-role-pills">+ <button v-for="opt in upgradeRoleOptions" :key="opt.value" type="button"+ :class="['upgrade-role-pill', { active: upgradeForm.requested_role === opt.value }]"+ @click="upgradeForm.requested_role = opt.value as 'editor' | 'admin'">+ {{ opt.label }}+ </button>+ </div>+ </div>+ <div class="org-upgrade-field org-upgrade-field--last">+ <label class="org-upgrade-field-label">{{ $t('organization.upgrade.reason') }}</label>+ <t-textarea v-model="upgradeForm.message" size="medium"+ :placeholder="$t('organization.upgrade.reasonPlaceholder')"+ :autosize="{ minRows: 2, maxRows: 4 }" :maxlength="500" /></div></div>- <div v-if="sharesLoading && sharedKnowledgeBases.length === 0" class="loading-inline">- <t-loading size="small" />- <span>{{ $t('organization.sharedResources.loading') }}</span>+ <div class="invite-popup-footer">+ <t-button variant="outline" :disabled="upgradeSubmitting"+ @click="upgradePopupVisible = false">+ {{ $t('common.cancel') }}+ </t-button>+ <t-button theme="primary" :loading="upgradeSubmitting" @click="handleSubmitUpgrade">+ {{ $t('organization.upgrade.submitBtn') }}+ </t-button></div>- <div v-else-if="sharedKnowledgeBases.length === 0" class="empty-state">- <t-empty>- <template #description>- <p class="empty-state-title">{{ $t('organization.settings.noSharedKB') }}</p>- <p class="empty-state-desc">{{ $t('organization.settings.noSharedKBTip') }}</p>- </template>- </t-empty>- </div>- <div v-else class="data-table-shell shared-resources-table">- <t-table row-key="id" :data="sharedKnowledgeBases" :columns="sharedKbColumns" size="medium"- hover stripe :loading="sharesLoading" class="shared-kb-table">- <template #name="{ row }">- <span class="resource-name" :title="row.knowledge_base_name">{{ row.knowledge_base_name }}</span>- </template>- <template #shared_by="{ row }">- <span class="resource-meta">{{ row.shared_by_username || '—' }}</span>- </template>- <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>- <template #space_permission="{ row }">- <t-tag size="small" :theme="getPermissionTheme(row.permission)" variant="light">- {{ sharePermissionLabel(row.permission) }}- </t-tag>- </template>- <template #my_permission="{ row }">- <t-tag size="small"- :theme="getPermissionTheme(row.my_permission ?? row.permission)" variant="light">- {{ sharePermissionLabel(row.my_permission ?? row.permission) }}- </t-tag>- </template>- <template #actions="{ row }">- <div class="resource-row-actions">- <t-tooltip :content="$t('knowledgeList.detail.goToKb')" placement="top">- <t-button theme="primary" shape="square" variant="text" size="small"- :aria-label="$t('knowledgeList.detail.goToKb')"- @click.stop="handleShareClick(row)">- <template #icon><t-icon name="browse" /></template>- </t-button>- </t-tooltip>- <t-popconfirm v-if="isAdmin"- :content="$t('organization.settings.removeShareConfirm', { name: row.knowledge_base_name || row.knowledge_base_id })"- :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"- :cancel-btn="{ content: $t('common.cancel') }" placement="left"- @confirm="handleRemoveShare(row)">- <t-tooltip :content="$t('organization.settings.removeShareFromOrg')" placement="top">- <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>- <template #icon><t-icon name="delete" /></template>- </t-button>- </t-tooltip>- </t-popconfirm>- </div>- </template>- </t-table>+ </div>+ </template>+ </t-popup>+ <t-popup v-if="isAdmin" v-model="addMemberPopupVisible" trigger="click" placement="bottom-end"+ destroy-on-close overlay-class-name="org-add-member-popup-overlay">+ <t-button theme="primary" variant="outline" shape="square" size="small"+ class="members-list-add-btn" :title="$t('organization.addMember.button')"+ :aria-label="$t('organization.addMember.button')">+ <template #icon><t-icon name="user-add" /></template>+ </t-button>+ <template #content>+ <div class="member-invite-popup-inner" @click.stop>+ <div class="member-invite-popup-title">{{ $t('organization.addMember.dialogTitle') }}</div>+ <p class="add-member-tip">{{ $t('organization.addMember.tipTenant') }}</p>+ <t-form layout="vertical" class="member-invite-form">+ <t-form-item :label="$t('organization.addMember.searchTenant')">+ <div class="member-form-control">+ <t-select v-model="selectedTenantId"+ :placeholder="$t('organization.addMember.searchTenantPlaceholder')" filterable+ :filter="() => true" :loading="tenantSearchLoading" @search="handleTenantSearch"+ clearable :options="tenantSearchOptions" />+ <p class="field-hint">{{ $t('organization.addMember.searchTenantHint') }}</p>+ </div>+ </t-form-item>+ <t-form-item :label="$t('organization.addMember.selectRole')">+ <t-select v-model="addMemberRole" :options="addMemberRoleOptions"+ :placeholder="$t('organization.addMember.selectRole')" />+ </t-form-item>+ </t-form>+ <div class="invite-popup-footer">+ <t-button variant="outline" :disabled="addMemberSubmitting"+ @click="addMemberPopupVisible = false">+ {{ $t('common.cancel') }}+ </t-button>+ <t-button theme="primary" :loading="addMemberSubmitting"+ :disabled="selectedTenantId == null" @click="handleAddMember">+ {{ $t('organization.addMember.confirmBtn') }}+ </t-button></div></div>+ </template>+ </t-popup>+ </div>+ </div>++ <div v-if="membersLoading && members.length === 0" class="loading-inline">+ <t-loading size="small" />+ <span>{{ $t('organization.members.loading') }}</span>+ </div>+ <div v-else-if="filteredMembers.length === 0" class="empty-state">+ <t-empty :description="memberSearchQuery.trim()+ ? $t('organization.members.emptySearch', { q: memberSearchQuery })+ : $t('organization.noMembers')" />+ </div>+ <div v-else class="data-table-shell members-table-shell">+ <t-table row-key="id" :data="filteredMembers" :columns="memberColumns" size="medium" hover+ stripe :loading="membersLoading">+ <template #member="{ row }">+ <div class="member-cell">+ <span class="member-name">+ {{ memberPrimaryLabel(row) }}+ <span v-if="isOwnerMember(row)" class="owner-tag">{{ $t('organization.owner') }}</span>+ <span v-if="row.user_id === authStore.currentUserId" class="me-tag">{{ $t('common.me')+ }}</span>+ </span>+ <span v-if="memberSecondaryLabel(row)" class="member-email">{{ memberSecondaryLabel(row)+ }}</span></div>+ </template>+ <template #role="{ row }">+ <div class="role-cell">+ <t-select v-if="isAdmin && !isOwnerMember(row)" :model-value="row.role"+ class="member-role-select" size="small" :options="roleOptions"+ @change="(val: string) => handleRoleChange(row, val)" />+ <t-tag v-else size="small" :theme="getRoleTheme(row.role)">+ {{ $t(`organization.role.${row.role}`) }}+ </t-tag>+ </div>+ </template>+ <template #joined_at="{ row }">{{ formatDate(row.joined_at) }}</template>+ <template #actions="{ row }">+ <t-popconfirm v-if="isAdmin && !isOwnerMember(row)"+ :content="$t('organization.detail.removeMemberConfirm', { name: memberPrimaryLabel(row) })"+ :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"+ :cancel-btn="{ content: $t('common.cancel') }" placement="left"+ @confirm="confirmRemoveMember(row)">+ <t-tooltip :content="$t('organization.detail.removeMember')" placement="top">+ <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>+ <template #icon><t-icon name="user-clear" /></template>+ </t-button>+ </t-tooltip>+ </t-popconfirm>+ </template>+ </t-table>+ </div>+ </div>+ </div>- <!-- 共享智能体 -->- <div v-show="currentSection === 'sharedAgents'" class="section">- <div class="section-header">- <div class="section-header-row">- <div class="section-header-titlewrap">- <h2>{{ $t('organization.settings.sharedAgents') }}</h2>- <t-popup placement="bottom-start" trigger="hover"- overlay-class-name="org-permissions-popup-overlay"- :overlay-inner-style="permissionsHintPopupInnerStyle">- <button type="button" class="permissions-trigger-btn"- :aria-label="$t('organization.settings.sharedAgentsKbHintShort')"- :title="$t('organization.settings.sharedAgentsKbHintShort')">- <t-icon name="info-circle" size="16px" />- </button>- <template #content>- <div class="permission-hint-popover">- <p class="permission-hint-title">{{ $t('organization.settings.sharedAgents') }}</p>- <p class="permission-hint-desc">{{ $t('organization.settings.sharedAgentsKbHint') }}</p>- </div>- </template>- </t-popup>- </div>- </div>- <p class="section-description">{{ $t('organization.settings.sharedAgentsDesc') }}</p>- </div>+ <!-- 加入申请(待审核) -->+ <div v-show="currentSection === 'joinRequests'" class="section">+ <div class="section-header">+ <h2>{{ $t('organization.settings.joinRequests') }}</h2>+ <p class="section-description">{{ $t('organization.settings.joinRequestsDesc') }}</p>+ </div>++ <div class="members-list-wrap join-requests-wrap">+ <div class="members-list-header">+ <div class="members-list-titlewrap">+ <span class="members-list-title">{{ $t('organization.joinRequests.listTitle') }}</span>+ <span class="members-list-count-badge">{{ filteredJoinRequests.length }}</span>+ </div>+ <div class="members-list-actions">+ <div class="members-list-search">+ <t-input v-model="joinRequestSearchQuery" size="small"+ :placeholder="$t('organization.joinRequests.searchPlaceholder')" clearable>+ <template #prefix-icon>+ <t-icon name="search" />+ </template>+ </t-input>+ </div>+ </div>+ </div>- <div class="shared-resources-wrap">- <div class="members-list-header">- <div class="members-list-titlewrap">- <span class="members-list-title">{{ $t('organization.sharedResources.agentListTitle') }}</span>- <span class="members-list-count-badge">{{ sharedAgents.length }}</span>+ <div v-if="joinRequestsLoading && joinRequests.length === 0" class="loading-inline">+ <t-loading size="small" />+ <span>{{ $t('organization.joinRequests.loading') }}</span>+ </div>+ <div v-else-if="filteredJoinRequests.length === 0" class="empty-state">+ <t-empty :description="joinRequestSearchQuery.trim()+ ? $t('organization.joinRequests.emptySearch', { q: joinRequestSearchQuery })+ : $t('organization.settings.noPendingRequests')" />+ </div>+ <div v-else class="data-table-shell join-requests-table">+ <t-table row-key="id" :data="filteredJoinRequests" :columns="joinRequestColumns" size="medium"+ hover stripe :loading="joinRequestsLoading">+ <template #applicant="{ row }">+ <div class="member-cell">+ <span class="member-name">{{ joinRequestApplicantLabel(row) }}</span>+ <span v-if="joinRequestApplicantSecondary(row)" class="member-email">+ {{ joinRequestApplicantSecondary(row) }}+ </span>+ </div>+ </template>+ <template #request_type="{ row }">+ <t-tag size="small" :theme="row.request_type === 'upgrade' ? 'warning' : 'primary'"+ variant="light">+ {{ row.request_type === 'upgrade'+ ? $t('organization.joinRequests.typeUpgrade')+ : $t('organization.joinRequests.typeJoin') }}+ </t-tag>+ </template>+ <template #requested_role="{ row }">+ <span v-if="row.request_type === 'upgrade' && row.prev_role" class="join-request-role-change">+ {{ roleLabel(row.prev_role) }}+ <t-icon name="arrow-right" size="12px" />+ {{ roleLabel(row.requested_role) }}+ </span>+ <t-tag v-else size="small" :theme="getRoleTheme(row.requested_role)" variant="light">+ {{ roleLabel(row.requested_role) }}+ </t-tag>+ </template>+ <template #message="{ row }">+ <span class="join-request-message" :title="row.message || undefined">+ {{ row.message || '—' }}+ </span>+ </template>+ <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>+ <template #actions="{ row }">+ <div class="join-request-actions">+ <t-popup :visible="approvePopupRequestId === row.id"+ placement="left-start" destroy-on-close overlay-class-name="org-approve-request-popup-overlay"+ @visible-change="(visible: boolean) => handleApprovePopupVisibleChange(visible, row)">+ <t-tooltip :content="$t('organization.settings.approve')" placement="top">+ <t-button theme="primary" variant="text" shape="square" size="small"+ :loading="reviewingRequestId === row.id" @click.stop="openApprovePopup(row)">+ <template #icon><t-icon name="check" /></template>+ </t-button>+ </t-tooltip>+ <template #content>+ <div class="org-approve-request-popup-inner" @click.stop>+ <div class="member-invite-popup-title">{{ $t('organization.joinRequests.approveTitle') }}</div>+ <p class="add-member-tip">+ {{ $t('organization.joinRequests.approveDesc', { name: joinRequestApplicantLabel(row) }) }}+ </p>+ <div class="org-upgrade-field org-upgrade-field--last">+ <label class="org-upgrade-field-label">{{ $t('organization.settings.assignRole') }}</label>+ <t-select v-model="approveAssignRole" size="medium" :options="orgRoleOptions" />+ </div>+ <div class="invite-popup-footer">+ <t-button variant="outline" :disabled="reviewingRequestId === row.id"+ @click="closeApprovePopup">+ {{ $t('common.cancel') }}+ </t-button>+ <t-button theme="primary" :loading="reviewingRequestId === row.id"+ @click="confirmApproveRequest(row)">+ {{ $t('organization.settings.approve') }}+ </t-button>+ </div></div>- </div>+ </template>+ </t-popup>+ <t-popconfirm :content="$t('organization.joinRequests.rejectConfirm')"+ :confirm-btn="{ content: $t('organization.settings.reject'), theme: 'danger' }"+ :cancel-btn="{ content: $t('common.cancel') }" placement="left"+ @confirm="handleRejectRequest(row)">+ <t-tooltip :content="$t('organization.settings.reject')" placement="top">+ <t-button theme="danger" variant="text" shape="square" size="small"+ :loading="reviewingRequestId === row.id" @click.stop>+ <template #icon><t-icon name="close" /></template>+ </t-button>+ </t-tooltip>+ </t-popconfirm>+ </div>+ </template>+ </t-table>+ </div>+ </div>+ </div>- <div v-if="sharedAgents.length === 0" class="empty-state">- <t-empty>- <template #description>- <p class="empty-state-title">{{ $t('organization.settings.noSharedAgents') }}</p>- <p class="empty-state-desc">{{ $t('organization.settings.noSharedAgentsTip') }}</p>- </template>- </t-empty>- </div>- <div v-else class="data-table-shell shared-resources-table">- <t-table row-key="id" :data="sharedAgents" :columns="sharedAgentColumns" size="medium" hover- stripe class="shared-agent-table">- <template #name="{ row }">- <span class="resource-name" :title="row.agent_name || row.agent_id">{{ row.agent_name ||- row.agent_id }}</span>- </template>- <template #shared_by="{ row }">- <span class="resource-meta">{{ row.shared_by_username || '—' }}</span>- </template>- <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>- <template #scope_kb="{ row }">- <span class="resource-meta" :title="agentKbScopeLabel(row)">{{ agentKbScopeLabel(row) }}</span>- </template>- <template #scope_web_search="{ row }">- <span class="resource-meta">{{ agentWebSearchScopeLabel(row) }}</span>- </template>- <template #scope_mcp="{ row }">- <span class="resource-meta" :title="agentMcpScopeLabel(row)">{{ agentMcpScopeLabel(row) }}</span>- </template>- <template #permission>- <t-tag size="small" theme="default" variant="light">- {{ $t('organization.share.permissionReadonly') }}- </t-tag>- </template>- <template #actions="{ row }">- <t-popconfirm v-if="isAdmin"- :content="$t('organization.settings.removeAgentShareConfirm', { name: row.agent_name || row.agent_id })"- :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"- :cancel-btn="{ content: $t('common.cancel') }" placement="left"- @confirm="handleRemoveAgentShare(row)">- <t-tooltip :content="$t('organization.settings.removeShareFromOrg')" placement="top">- <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>- <template #icon><t-icon name="delete" /></template>- </t-button>- </t-tooltip>- </t-popconfirm>- </template>- </t-table>- </div>+ <!-- 共享知识库 -->+ <div v-show="currentSection === 'sharedKb'" class="section">+ <div class="section-header">+ <div class="section-header-row">+ <div class="section-header-titlewrap">+ <h2>{{ $t('organization.share.sharedKnowledgeBase') }}</h2>+ <t-popup placement="bottom-start" trigger="hover"+ overlay-class-name="wk-popover org-permissions-popup-overlay"+ :overlay-inner-style="permissionsHintPopupInnerStyle">+ <button type="button" class="permissions-trigger-btn"+ :aria-label="$t('organization.settings.permissionCalcFormula')"+ :title="$t('organization.settings.permissionCalcFormula')">+ <t-icon name="info-circle" size="16px" />+ </button>+ <template #content>+ <div class="permission-hint-popover">+ <p class="permission-hint-title">{{ $t('organization.settings.sharePermissionLabel') }}</p>+ <p class="permission-hint-desc">{{ $t('organization.settings.permissionCalcTip') }}</p></div>+ </template>+ </t-popup>+ </div>+ </div>+ <p class="section-description">{{ $t('organization.settings.sharedDesc') }}</p>+ </div>++ <div class="shared-resources-wrap">+ <div class="members-list-header">+ <div class="members-list-titlewrap">+ <span class="members-list-title">{{ $t('organization.sharedResources.kbListTitle') }}</span>+ <span class="members-list-count-badge">{{ sharedKnowledgeBases.length }}</span>+ </div>+ </div>++ <div v-if="sharesLoading && sharedKnowledgeBases.length === 0" class="loading-inline">+ <t-loading size="small" />+ <span>{{ $t('organization.sharedResources.loading') }}</span>+ </div>+ <div v-else-if="sharedKnowledgeBases.length === 0" class="empty-state">+ <t-empty>+ <template #description>+ <p class="empty-state-title">{{ $t('organization.settings.noSharedKB') }}</p>+ <p class="empty-state-desc">{{ $t('organization.settings.noSharedKBTip') }}</p>+ </template>+ </t-empty>+ </div>+ <div v-else class="data-table-shell shared-resources-table">+ <t-table row-key="id" :data="sharedKnowledgeBases" :columns="sharedKbColumns" size="medium"+ hover stripe :loading="sharesLoading" class="shared-kb-table">+ <template #name="{ row }">+ <span class="resource-name" :title="row.knowledge_base_name">{{ row.knowledge_base_name }}</span>+ </template>+ <template #shared_by="{ row }">+ <span class="resource-meta">{{ row.shared_by_username || '—' }}</span>+ </template>+ <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>+ <template #space_permission="{ row }">+ <t-tag size="small" :theme="getPermissionTheme(row.permission)" variant="light">+ {{ sharePermissionLabel(row.permission) }}+ </t-tag>+ </template>+ <template #my_permission="{ row }">+ <t-tag size="small"+ :theme="getPermissionTheme(row.my_permission ?? row.permission)" variant="light">+ {{ sharePermissionLabel(row.my_permission ?? row.permission) }}+ </t-tag>+ </template>+ <template #actions="{ row }">+ <div class="resource-row-actions">+ <t-tooltip :content="$t('knowledgeList.detail.goToKb')" placement="top">+ <t-button theme="primary" shape="square" variant="text" size="small"+ :aria-label="$t('knowledgeList.detail.goToKb')"+ @click.stop="handleShareClick(row)">+ <template #icon><t-icon name="browse" /></template>+ </t-button>+ </t-tooltip>+ <t-popconfirm v-if="isAdmin"+ :content="$t('organization.settings.removeShareConfirm', { name: row.knowledge_base_name || row.knowledge_base_id })"+ :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"+ :cancel-btn="{ content: $t('common.cancel') }" placement="left"+ @confirm="handleRemoveShare(row)">+ <t-tooltip :content="$t('organization.settings.removeShareFromOrg')" placement="top">+ <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>+ <template #icon><t-icon name="delete" /></template>+ </t-button>+ </t-tooltip>+ </t-popconfirm></div>+ </template>+ </t-table>+ </div>+ </div>+ </div>- </div>+ <!-- 共享智能体 -->+ <div v-show="currentSection === 'sharedAgents'" class="section">+ <div class="section-header">+ <div class="section-header-row">+ <div class="section-header-titlewrap">+ <h2>{{ $t('organization.settings.sharedAgents') }}</h2>+ <t-popup placement="bottom-start" trigger="hover"+ overlay-class-name="wk-popover org-permissions-popup-overlay"+ :overlay-inner-style="permissionsHintPopupInnerStyle">+ <button type="button" class="permissions-trigger-btn"+ :aria-label="$t('organization.settings.sharedAgentsKbHintShort')"+ :title="$t('organization.settings.sharedAgentsKbHintShort')">+ <t-icon name="info-circle" size="16px" />+ </button>+ <template #content>+ <div class="permission-hint-popover">+ <p class="permission-hint-title">{{ $t('organization.settings.sharedAgents') }}</p>+ <p class="permission-hint-desc">{{ $t('organization.settings.sharedAgentsKbHint') }}</p>+ </div>+ </template>+ </t-popup>+ </div>+ </div>+ <p class="section-description">{{ $t('organization.settings.sharedAgentsDesc') }}</p>+ </div>- <!-- 底部操作按钮 -->- <div class="settings-footer">- <t-button variant="outline" @click="handleClose">{{ $t('common.cancel') }}</t-button>- <t-button v-if="isAdmin" theme="primary" :loading="submitting" @click="handleSave">- {{ isCreateMode ? $t('common.create') : $t('common.save') }}- </t-button>- </div>+ <div class="shared-resources-wrap">+ <div class="members-list-header">+ <div class="members-list-titlewrap">+ <span class="members-list-title">{{ $t('organization.sharedResources.agentListTitle') }}</span>+ <span class="members-list-count-badge">{{ sharedAgents.length }}</span></div></div>++ <div v-if="sharedAgents.length === 0" class="empty-state">+ <t-empty>+ <template #description>+ <p class="empty-state-title">{{ $t('organization.settings.noSharedAgents') }}</p>+ <p class="empty-state-desc">{{ $t('organization.settings.noSharedAgentsTip') }}</p>+ </template>+ </t-empty>+ </div>+ <div v-else class="data-table-shell shared-resources-table">+ <t-table row-key="id" :data="sharedAgents" :columns="sharedAgentColumns" size="medium" hover+ stripe class="shared-agent-table">+ <template #name="{ row }">+ <span class="resource-name" :title="row.agent_name || row.agent_id">{{ row.agent_name ||+ row.agent_id }}</span>+ </template>+ <template #shared_by="{ row }">+ <span class="resource-meta">{{ row.shared_by_username || '—' }}</span>+ </template>+ <template #created_at="{ row }">{{ formatDate(row.created_at) }}</template>+ <template #scope_kb="{ row }">+ <span class="resource-meta" :title="agentKbScopeLabel(row)">{{ agentKbScopeLabel(row) }}</span>+ </template>+ <template #scope_web_search="{ row }">+ <span class="resource-meta">{{ agentWebSearchScopeLabel(row) }}</span>+ </template>+ <template #scope_mcp="{ row }">+ <span class="resource-meta" :title="agentMcpScopeLabel(row)">{{ agentMcpScopeLabel(row) }}</span>+ </template>+ <template #permission>+ <t-tag size="small" theme="default" variant="light">+ {{ $t('organization.share.permissionReadonly') }}+ </t-tag>+ </template>+ <template #actions="{ row }">+ <t-popconfirm v-if="isAdmin"+ :content="$t('organization.settings.removeAgentShareConfirm', { name: row.agent_name || row.agent_id })"+ :confirm-btn="{ content: $t('common.confirm'), theme: 'danger' }"+ :cancel-btn="{ content: $t('common.cancel') }" placement="left"+ @confirm="handleRemoveAgentShare(row)">+ <t-tooltip :content="$t('organization.settings.removeShareFromOrg')" placement="top">+ <t-button theme="danger" shape="square" variant="text" size="small" @click.stop>+ <template #icon><t-icon name="delete" /></template>+ </t-button>+ </t-tooltip>+ </t-popconfirm>+ </template>+ </t-table>+ </div></div></div>- </Transition>- </Teleport>++ </div>++ <template #footer>+ <t-button variant="outline" @click="modalShell.requestClose">{{ $t('common.cancel') }}</t-button>+ <t-button v-if="isAdmin" theme="primary" :loading="submitting" @click="handleSave">+ {{ isCreateMode ? $t('common.create') : $t('common.save') }}+ </t-button>+ </template>+ </SettingsModalShell></template><script setup lang="ts">import { ref, computed, watch, nextTick, onBeforeUnmount } from 'vue'import { useRouter } from 'vue-router'import { MessagePlugin } from 'tdesign-vue-next'+import { useModalShell } from '@/composables/useModalShell'+import SettingsModalShell from '@/components/SettingsModalShell.vue'import { useI18n } from 'vue-i18n'import { copyWithToast } from '@/utils/clipboard'import {@@ -991,7 +955,7 @@ const modalTitle = computed(() => {})const navItems = computed(() => {- const items: { key: string; icon: string; label: string; badge?: number }[] = [+ const items: { key: string; icon: string; label: string; badge?: number; badgeClass?: string; showZeroBadge?: boolean }[] = [{ key: 'basic', icon: 'info-circle', label: t('organization.editor.navBasic') },]if (isCreateMode.value) {@@ -1011,12 +975,16 @@ const navItems = computed(() => {}items.push({key: 'sharedKb',+ badgeClass: 'nav-badge-count',+ showZeroBadge: true,icon: 'folder-open',label: t('organization.share.sharedKnowledgeBase'),badge: sharedKnowledgeBases.value.length})items.push({key: 'sharedAgents',+ badgeClass: 'nav-badge-count',+ showZeroBadge: true,icon: 'control-platform',label: t('organization.settings.sharedAgents'),badge: sharedAgents.value.length@@ -1302,6 +1270,12 @@ const handleClose = () => {emit('update:visible', false)}+const modalShell = useModalShell({+ visible: () => props.visible,+ close: handleClose,+ snapshot: () => formData.value,+})+const fetchOrgDetail = async () => {if (!props.orgId) returntry {@@ -1322,6 +1296,7 @@ const fetchOrgDetail = async () => {}inviteCode.value = res.data.invite_code || ''inviteCodeExpiresAt.value = res.data.invite_code_expires_at ?? null+ modalShell.markClean()// 初始化是否有待处理的升级申请hasPendingUpgrade.value = res.data.has_pending_upgrade || false}@@ -1857,6 +1832,7 @@ watch(() => props.visible, (newVal) => {if (props.mode === 'create') {// 创建模式:重置表单formData.value = { name: '', description: '', avatar: '', require_approval: false, searchable: false, invite_code_validity_days: 7, member_limit: 50 }+ modalShell.markClean()orgStore.clearCurrentOrganizationContext()sharedKnowledgeBases.value = []inviteCode.value = ''@@ -1906,180 +1882,6 @@ watch(addMemberPopupVisible, (visible) => {@primary-lighter: var(--td-component-stroke);@primary-hover: var(--td-brand-color-active);-.settings-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- z-index: 2000;- backdrop-filter: blur(4px);- overscroll-behavior: none;-}--.settings-modal {- position: relative;- width: 90vw;- max-width: 1100px;- height: 85vh;- max-height: 750px;- background: var(--td-bg-color-container);- border-radius: 12px;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);- display: flex;- flex-direction: column;- overflow: hidden;-}--.close-btn {- position: absolute;- top: 16px;- right: 16px;- width: 32px;- height: 32px;- border: none;- background: transparent;- border-radius: 6px;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- color: var(--td-text-color-secondary);- transition: all 0.2s ease;- z-index: 10;-- &:hover {- background: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-}--.settings-container {- display: flex;- height: 100%;- overflow: hidden;-}--.settings-sidebar {- width: 208px;- background-color: var(--td-bg-color-settings-modal);- border-right: 1px solid var(--td-component-stroke);- flex-shrink: 0;- display: flex;- flex-direction: column;- overflow: hidden;-}--.sidebar-header {- padding: 16px 14px 12px;- border-bottom: 1px solid var(--td-component-stroke);- flex-shrink: 0;-}--.sidebar-title {- margin: 0;- font-size: 16px;- font-weight: 600;- color: var(--td-text-color-primary);-}--.settings-nav {- flex: 1;- padding: 8px 8px 12px;- overflow-y: auto;- min-height: 0;-}--.nav-group-title {- padding: 6px 14px 2px;- color: var(--td-text-color-placeholder);- font-size: 12px;- font-weight: 600;- letter-spacing: 0.02em;-- .settings-nav > &:first-child {- padding-top: 2px;- }-- .settings-nav > &:not(:first-child) {- padding-top: 8px;- }-}--.nav-item {- display: flex;- align-items: center;- padding: 6px 12px;- margin-bottom: 2px;- border-radius: 6px;- cursor: pointer;- transition: all 0.2s ease;- font-size: 14px;- color: var(--td-text-color-primary);- user-select: none;-- &:hover {- background-color: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-- &.active {- background-color: var(--td-bg-color-secondarycontainer);- color: var(--td-brand-color);- font-weight: 500;- }-}--.nav-icon {- margin-right: 9px;- font-size: 16px;- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- color: inherit;-- &.nav-icon-img {- width: 16px;- height: 16px;- }-}--.nav-label {- flex: 1;-}--.nav-badge {- flex-shrink: 0;- margin-left: 2px;- padding: 0 6px;- border-radius: 8px;- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-secondary);- font-size: 11px;- line-height: 16px;- font-weight: 500;- text-align: center;-- &.nav-badge-count {- min-width: 20px;- }-}--.settings-content {- flex: 1;- display: flex;- flex-direction: column;- min-width: 0;- min-height: 0;- overflow: hidden;- background-color: var(--td-bg-color-container);-}-.content-wrapper {flex: 1;overflow-y: auto;@@ -2098,8 +1900,8 @@ watch(addMemberPopupVisible, (visible) => {padding: 10px 12px;background: var(--td-warning-color-light);border: 1px solid var(--td-warning-color-focus);- border-radius: 8px;- font-size: 13px;+ border-radius: var(--app-radius-md);+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-warning-color-active);@@ -2121,7 +1923,7 @@ watch(addMemberPopupVisible, (visible) => {h2 {margin: 0;font-family: var(--app-font-family);- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}@@ -2133,7 +1935,7 @@ watch(addMemberPopupVisible, (visible) => {.section-description {margin: 8px 0 0;font-family: var(--app-font-family);- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -2147,7 +1949,7 @@ watch(addMemberPopupVisible, (visible) => {gap: 6px;cursor: help;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);}}}@@ -2201,7 +2003,7 @@ watch(addMemberPopupVisible, (visible) => {label {display: block;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -2213,7 +2015,7 @@ watch(addMemberPopupVisible, (visible) => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -2266,8 +2068,8 @@ watch(addMemberPopupVisible, (visible) => {cursor: pointer;flex-shrink: 0;padding: 4px;- border-radius: 12px;- transition: background 0.2s ease;+ border-radius: var(--app-radius-xl);+ transition: background var(--app-motion-base) ease;}.avatar-trigger-wrap:hover {@@ -2275,7 +2077,7 @@ watch(addMemberPopupVisible, (visible) => {}.avatar-change-hint {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);line-height: 1.2;}@@ -2301,7 +2103,7 @@ watch(addMemberPopupVisible, (visible) => {.permission-card {background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 16px;border: 1px solid var(--td-component-stroke);}@@ -2316,7 +2118,7 @@ watch(addMemberPopupVisible, (visible) => {.permission-icon {width: 40px;height: 40px;- border-radius: 8px;+ border-radius: var(--app-radius-md);display: flex;align-items: center;justify-content: center;@@ -2341,7 +2143,7 @@ watch(addMemberPopupVisible, (visible) => {gap: 8px;.role-name {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);}@@ -2357,18 +2159,18 @@ watch(addMemberPopupVisible, (visible) => {align-items: center;gap: 8px;padding: 6px 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}.check-icon {color: var(--td-brand-color);- font-size: 14px;+ font-size: var(--app-text-base);}.close-icon {color: var(--td-error-color);- font-size: 14px;+ font-size: var(--app-text-base);}}@@ -2379,9 +2181,9 @@ watch(addMemberPopupVisible, (visible) => {margin-top: 20px;padding: 12px 16px;background: var(--td-brand-color-light);- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-brand-color);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 20px;.t-icon {@@ -2398,7 +2200,7 @@ watch(addMemberPopupVisible, (visible) => {.avatar-popover-title {margin: 0 0 10px 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.4;}@@ -2418,27 +2220,27 @@ watch(addMemberPopupVisible, (visible) => {height: 36px;padding: 0;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);- font-size: 18px;+ font-size: var(--app-text-2xl);cursor: pointer;- transition: border-color 0.2s ease, background 0.2s ease;+ transition: border-color var(--app-motion-base) ease, background var(--app-motion-base) ease;}.avatar-popover-content .avatar-emoji-btn:hover {border-color: var(--td-brand-color);- background: rgba(7, 192, 95, 0.06);+ background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);}.avatar-popover-content .avatar-emoji-btn.is-selected {border-color: var(--td-brand-color);- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);}.avatar-popover-content .avatar-clear-btn {margin-top: 10px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);}.avatar-popover-content .avatar-clear-btn:hover {@@ -2449,7 +2251,7 @@ watch(addMemberPopupVisible, (visible) => {.invite-card {background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);padding: 16px;.invite-method {@@ -2460,12 +2262,12 @@ watch(addMemberPopupVisible, (visible) => {margin-bottom: 10px;.invite-icon {- font-size: 16px;+ font-size: var(--app-text-xl);color: @primary-color;}.invite-method-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}@@ -2478,12 +2280,12 @@ watch(addMemberPopupVisible, (visible) => {justify-content: space-between;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 10px 14px;.invite-code-value {font-family: var(--app-font-family-mono);- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;letter-spacing: 2px;color: @primary-color;@@ -2497,12 +2299,12 @@ watch(addMemberPopupVisible, (visible) => {.invite-remaining {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.invite-validity-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 4px 0 10px;line-height: 1.4;@@ -2519,7 +2321,7 @@ watch(addMemberPopupVisible, (visible) => {margin-top: 8px;.member-limit-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}}@@ -2536,13 +2338,13 @@ watch(addMemberPopupVisible, (visible) => {justify-content: space-between;background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 10px 14px;gap: 12px;.invite-link-value {flex: 1;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);word-break: break-all;line-height: 1.4;@@ -2555,7 +2357,7 @@ watch(addMemberPopupVisible, (visible) => {gap: 12px;.approval-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}}@@ -2596,12 +2398,12 @@ watch(addMemberPopupVisible, (visible) => {margin: 0;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;line-height: 0;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;:deep(.t-icon) {display: block;@@ -2641,7 +2443,7 @@ watch(addMemberPopupVisible, (visible) => {}.members-list-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -2653,10 +2455,10 @@ watch(addMemberPopupVisible, (visible) => {min-width: 22px;height: 20px;padding: 0 7px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background-color: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1;}@@ -2700,14 +2502,14 @@ watch(addMemberPopupVisible, (visible) => {.empty-state-title {margin: 0 0 4px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.empty-state-desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -2717,14 +2519,14 @@ watch(addMemberPopupVisible, (visible) => {.permission-hint-title {margin: 0 0 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}.permission-hint-desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -2745,7 +2547,7 @@ watch(addMemberPopupVisible, (visible) => {.resource-name {display: block;font-weight: 500;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -2753,7 +2555,7 @@ watch(addMemberPopupVisible, (visible) => {}.resource-meta {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -2769,7 +2571,7 @@ watch(addMemberPopupVisible, (visible) => {align-items: center;gap: 6px;font-weight: 500;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -2778,7 +2580,7 @@ watch(addMemberPopupVisible, (visible) => {}.member-email {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-secondary);overflow: hidden;@@ -2793,7 +2595,7 @@ watch(addMemberPopupVisible, (visible) => {padding: 0 5px;height: 16px;border-radius: 3px;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 500;flex-shrink: 0;}@@ -2811,13 +2613,13 @@ watch(addMemberPopupVisible, (visible) => {.data-table-shell {overflow-x: auto;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-container);:deep(thead th) {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-table td),@@ -2858,13 +2660,13 @@ watch(addMemberPopupVisible, (visible) => {margin-bottom: 16px;.permissions-compact-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}.permissions-compact-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}}@@ -2877,10 +2679,10 @@ watch(addMemberPopupVisible, (visible) => {.perm-role-block {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 14px 16px;background: var(--td-bg-color-container);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&.is-me {border-color: var(--td-brand-color);@@ -2891,19 +2693,19 @@ watch(addMemberPopupVisible, (visible) => {display: flex;align-items: center;gap: 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 12px;.me-badge {margin-left: auto;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-brand-color);padding: 2px 8px;background: var(--td-brand-color-light);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}@@ -2916,7 +2718,7 @@ watch(addMemberPopupVisible, (visible) => {display: flex;align-items: flex-start;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;.t-icon {@@ -2955,11 +2757,11 @@ watch(addMemberPopupVisible, (visible) => {margin-bottom: 10px;.permissions-compact-title {- font-size: 13px;+ font-size: var(--app-text-md);}.permissions-compact-desc {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;}}@@ -2971,15 +2773,15 @@ watch(addMemberPopupVisible, (visible) => {.perm-role-block {padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);.perm-role-tag {- font-size: 12px;+ font-size: var(--app-text-sm);margin-bottom: 6px;gap: 4px;.me-badge {- font-size: 10px;+ font-size: var(--app-text-2xs);padding: 1px 5px;}}@@ -2988,7 +2790,7 @@ watch(addMemberPopupVisible, (visible) => {gap: 3px;.perm-item {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.35;gap: 4px;@@ -3028,7 +2830,7 @@ watch(addMemberPopupVisible, (visible) => {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -3036,7 +2838,7 @@ watch(addMemberPopupVisible, (visible) => {display: inline-flex;align-items: center;gap: 4px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);.t-icon {@@ -3052,34 +2854,10 @@ watch(addMemberPopupVisible, (visible) => {}}-.settings-footer {- padding: 12px 40px;- border-top: 1px solid var(--td-component-stroke);- display: flex;- justify-content: flex-end;- gap: 12px;- flex-shrink: 0;- background-color: var(--td-bg-color-container);-}--.settings-nav::-webkit-scrollbar,.content-wrapper::-webkit-scrollbar {width: 6px;}-.settings-nav::-webkit-scrollbar-track {- background: var(--td-bg-color-secondarycontainer);-}--.settings-nav::-webkit-scrollbar-thumb {- background: var(--td-gray-color-5);- border-radius: 3px;-}--.settings-nav::-webkit-scrollbar-thumb:hover {- background: var(--td-gray-color-6);-}-.content-wrapper::-webkit-scrollbar-track {background: var(--td-bg-color-container);}@@ -3094,29 +2872,15 @@ watch(addMemberPopupVisible, (visible) => {}// Transitions-.modal-enter-active,-.modal-leave-active {- transition: all 0.3s ease;-}--.modal-enter-from,-.modal-leave-to {- opacity: 0;-- .settings-modal {- transform: scale(0.95);- }-}-// 权限升级申请弹出层(对齐添加成员 popup).add-member-tip {margin: 0 0 14px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -3127,7 +2891,7 @@ watch(addMemberPopupVisible, (visible) => {}.member-invite-popup-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 12px;@@ -3163,7 +2927,7 @@ watch(addMemberPopupVisible, (visible) => {.field-hint {margin: 6px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);line-height: 1.45;}@@ -3184,26 +2948,12 @@ watch(addMemberPopupVisible, (visible) => {.org-permissions-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 0 !important;- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- overflow: hidden;- }-.permission-hint-popover {padding: 14px 16px;.permission-hint-title {margin: 0 0 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);line-height: 1.35;@@ -3211,7 +2961,7 @@ watch(addMemberPopupVisible, (visible) => {.permission-hint-desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -3231,13 +2981,13 @@ watch(addMemberPopupVisible, (visible) => {margin-bottom: 10px;.permissions-compact-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}.permissions-compact-desc {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);}@@ -3251,7 +3001,7 @@ watch(addMemberPopupVisible, (visible) => {.perm-role-block {border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 8px 10px;background: var(--td-bg-color-container);@@ -3264,19 +3014,19 @@ watch(addMemberPopupVisible, (visible) => {display: flex;align-items: center;gap: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 6px;.me-badge {margin-left: auto;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 500;color: var(--td-brand-color);padding: 1px 5px;background: var(--td-brand-color-light);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}@@ -3289,7 +3039,7 @@ watch(addMemberPopupVisible, (visible) => {display: flex;align-items: flex-start;gap: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.35;color: var(--td-text-color-secondary);@@ -3338,7 +3088,7 @@ watch(addMemberPopupVisible, (visible) => {.t-popup__content {padding: 16px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);box-shadow: var(--td-shadow-2), 0 8px 24px rgba(15, 23, 42, 0.08);}@@ -3355,7 +3105,7 @@ watch(addMemberPopupVisible, (visible) => {.member-invite-popup-title {margin: 0 0 10px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -3364,10 +3114,10 @@ watch(addMemberPopupVisible, (visible) => {.add-member-tip {margin: 0 0 12px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -3379,13 +3129,13 @@ watch(addMemberPopupVisible, (visible) => {gap: 12px;margin-bottom: 14px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);}.upgrade-current-role-label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -3406,7 +3156,7 @@ watch(addMemberPopupVisible, (visible) => {.org-upgrade-field-label {display: block;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 1.4;color: var(--td-text-color-primary);@@ -3424,14 +3174,14 @@ watch(addMemberPopupVisible, (visible) => {align-items: center;padding: 6px 14px;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;color: var(--td-text-color-secondary);cursor: pointer;- transition: color 0.15s ease, background 0.15s ease;+ transition: color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover,&:focus-visible {diff --git a/frontend/src/views/settings/BrowserConnectionSettings.vue b/frontend/src/views/settings/BrowserConnectionSettings.vueindex 328d7624c..20dfdccf7 100644--- a/frontend/src/views/settings/BrowserConnectionSettings.vue+++ b/frontend/src/views/settings/BrowserConnectionSettings.vue@@ -202,31 +202,19 @@ onMounted(() => { void refresh() })onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer); clearPairing() })</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.browser-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }+ .settings-section-header();}.connection-card {border: 1px solid var(--td-component-stroke);- border-radius: 12px;+ border-radius: var(--app-radius-xl);padding: 20px;background: var(--td-bg-color-container);box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);@@ -242,7 +230,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);flex-shrink: 0;width: 44px;height: 44px;- border-radius: 12px;+ border-radius: var(--app-radius-xl);object-fit: cover;box-shadow:0 1px 2px rgba(15, 23, 42, 0.08),@@ -268,7 +256,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);min-width: 0;strong {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;line-height: 24px;color: var(--td-text-color-primary);@@ -290,7 +278,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);.product-desc {margin: 4px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -301,10 +289,10 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);gap: 6px;margin-left: auto;padding: 3px 9px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 18px;flex-shrink: 0;@@ -346,20 +334,20 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);gap: 8px 12px;strong {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}span {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}.device-hint {margin: 8px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -406,7 +394,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);border-radius: 50%;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;}@@ -416,14 +404,14 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);strong {display: block;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}p {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;color: var(--td-text-color-secondary);}@@ -432,7 +420,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);.package-hint,.empty-hint {margin: 12px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.65;color: var(--td-text-color-secondary);}@@ -440,14 +428,14 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);.pairing-feedback {margin-top: 16px;padding: 10px 12px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-success-color) 10%, transparent);display: flex;flex-wrap: wrap;align-items: center;gap: 8px;color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;:deep(.t-icon) {@@ -458,7 +446,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);width: 100%;padding: 8px;border: 1px solid var(--td-component-border);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-container);}}@@ -468,7 +456,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);h3 {margin: 0 0 16px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);}@@ -512,7 +500,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);border-radius: 50%;background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;z-index: 1;}@@ -524,14 +512,14 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);strong {display: block;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}p {margin: 4px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.65;color: var(--td-text-color-secondary);}@@ -539,7 +527,7 @@ onBeforeUnmount(() => { alive = false; controller.abort(); clearTimeout(timer);.error {color: var(--td-error-color);- font-size: 13px;+ font-size: var(--app-text-md);margin: 0 0 16px;}diff --git a/frontend/src/views/settings/BrowserSearchPreferences.vue b/frontend/src/views/settings/BrowserSearchPreferences.vueindex 4bd6efb56..5d9f60aac 100644--- a/frontend/src/views/settings/BrowserSearchPreferences.vue+++ b/frontend/src/views/settings/BrowserSearchPreferences.vue@@ -76,12 +76,12 @@ onBeforeUnmount(() => { alive = false })<style scoped lang="less">.browser-search-preferences {margin-top: 20px;- h3 { margin: 0 0 6px; font-size: 16px; color: var(--td-text-color-primary); }- .description { margin: 0 0 8px; color: var(--td-text-color-secondary); font-size: 13px; line-height: 1.5; }+ h3 { margin: 0 0 6px; font-size: var(--app-text-xl); color: var(--td-text-color-primary); }+ .description { margin: 0 0 8px; color: var(--td-text-color-secondary); font-size: var(--app-text-md); line-height: 1.5; }.actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }- .actions span { color: var(--td-success-color); font-size: 12px; }- :deep(.t-textarea__inner) { font-size: 13px; line-height: 20px; }- :deep(.t-textarea__info_wrapper) { font-size: 12px; }- .error { color: var(--td-error-color); font-size: 13px; }+ .actions span { color: var(--td-success-color); font-size: var(--app-text-sm); }+ :deep(.t-textarea__inner) { font-size: var(--app-text-md); line-height: 20px; }+ :deep(.t-textarea__info_wrapper) { font-size: var(--app-text-sm); }+ .error { color: var(--td-error-color); font-size: var(--app-text-md); }}</style>diff --git a/frontend/src/views/settings/ChatHistorySettings.vue b/frontend/src/views/settings/ChatHistorySettings.vueindex 2ec3558ea..f7c80b9ca 100644--- a/frontend/src/views/settings/ChatHistorySettings.vue+++ b/frontend/src/views/settings/ChatHistorySettings.vue@@ -201,26 +201,14 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.chat-history-settings {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.settings-group {@@ -230,36 +218,11 @@ onMounted(async () => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.warning-text {@@ -268,11 +231,7 @@ onMounted(async () => {}.setting-control {- flex-shrink: 0;- min-width: 280px;- display: flex;- justify-content: flex-end;- align-items: center;+ .setting-control();}// Stats section@@ -283,7 +242,7 @@ onMounted(async () => {}.stats-title {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 16px 0;@@ -297,7 +256,7 @@ onMounted(async () => {.stat-card {background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 20px;text-align: center;}@@ -310,26 +269,26 @@ onMounted(async () => {}.stat-label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}.stats-empty {background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 24px;text-align: center;}.stats-empty-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);margin: 0 0 4px 0;}.stats-empty-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);margin: 0;}diff --git a/frontend/src/views/settings/EnvVarSettings.vue b/frontend/src/views/settings/EnvVarSettings.vueindex c5ae02808..99a560387 100644--- a/frontend/src/views/settings/EnvVarSettings.vue+++ b/frontend/src/views/settings/EnvVarSettings.vue@@ -612,26 +612,14 @@ onMounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.env-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 8px 0 0;- line-height: 1.6;- }+ .settings-section-header();}.section-header__titlewrap {@@ -646,7 +634,7 @@ onMounted(() => {justify-content: center;padding: 2px;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: help;@@ -668,14 +656,14 @@ onMounted(() => {.hint-popover__title {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.hint-popover__text {margin: 4px 0 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}@@ -683,7 +671,7 @@ onMounted(() => {display: flex;align-items: center;gap: 12px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;}@@ -695,7 +683,7 @@ onMounted(() => {.env-empty {background: var(--td-bg-color-secondarycontainer);- border-radius: 10px;+ border-radius: var(--app-radius-lg);padding: 24px;text-align: center;}@@ -705,14 +693,14 @@ onMounted(() => {}.env-empty__title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);margin: 0 0 4px 0;}.env-empty__desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);margin: 0;}@@ -722,14 +710,14 @@ onMounted(() => {h3 {margin: 0;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);}p {margin: 4px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -746,7 +734,7 @@ onMounted(() => {margin-bottom: 12px;padding: 12px 14px;border: 1px dashed var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);}@@ -772,7 +760,7 @@ onMounted(() => {.env-skill-card,.env-sandbox-card {border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);padding: 14px 16px;background: var(--td-bg-color-container);}@@ -787,7 +775,7 @@ onMounted(() => {.env-skill-card__identity h4,.env-sandbox-card h4 {margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -806,7 +794,7 @@ onMounted(() => {.env-group__desc {margin: 6px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-secondary);display: -webkit-box;@@ -816,17 +804,17 @@ onMounted(() => {}.env-skill-card__sandbox {- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 400;color: var(--td-text-color-placeholder);}.env-skill-card__status {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 20px;padding: 0 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-success-color-light);color: var(--td-success-color);@@ -866,8 +854,8 @@ onMounted(() => {flex: 1;code {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 13px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-md);color: var(--td-text-color-primary);overflow-wrap: anywhere;}@@ -899,18 +887,18 @@ onMounted(() => {gap: 6px;code {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);- font-size: 13px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-md);color: var(--td-text-color-primary);overflow-wrap: anywhere;}}.env-tag {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;padding: 0 8px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);}@@ -933,7 +921,7 @@ onMounted(() => {.env-secret__desc,.env-secret__when {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -962,7 +950,7 @@ onMounted(() => {.env-sandbox-card__empty {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/settings/GeneralSettings.vue b/frontend/src/views/settings/GeneralSettings.vueindex c6ee7bddb..1e444b048 100755--- a/frontend/src/views/settings/GeneralSettings.vue+++ b/frontend/src/views/settings/GeneralSettings.vue@@ -246,7 +246,6 @@ const handleThemeChange = (val: ThemeMode) => {localTheme.value = currentTheme.valuereturn}- MessagePlugin.success(t('common.success'))}// 处理字体变化@@ -255,7 +254,6 @@ const handleSansFontChange = (val: FontKey) => {localSansFont.value = currentSans.valuereturn}- MessagePlugin.success(t('common.success'))}const handleMonoFontChange = (val: MonoFontKey) => {@@ -263,7 +261,6 @@ const handleMonoFontChange = (val: MonoFontKey) => {localMonoFont.value = currentMono.valuereturn}- MessagePlugin.success(t('common.success'))}const handleFontSizeChange = (val: FontSizeKey) => {@@ -271,31 +268,18 @@ const handleFontSizeChange = (val: FontSizeKey) => {localFontSize.value = currentSize.valuereturn}- MessagePlugin.success(t('common.success'))}</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.general-settings {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.settings-group {@@ -305,44 +289,15 @@ const handleFontSizeChange = (val: FontSizeKey) => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.setting-control {- flex-shrink: 0;- min-width: 280px;- display: flex;- justify-content: flex-end;- align-items: center;+ .setting-control();}// When a font picker is rendered, stack the select on top of a live@@ -361,7 +316,7 @@ const handleFontSizeChange = (val: FontSizeKey) => {border-radius: var(--td-radius-medium);background: var(--td-bg-color-container);color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.4;text-align: left;box-sizing: border-box;diff --git a/frontend/src/views/settings/McpSettings.vue b/frontend/src/views/settings/McpSettings.vueindex ff4630a23..9128334c9 100644--- a/frontend/src/views/settings/McpSettings.vue+++ b/frontend/src/views/settings/McpSettings.vue@@ -240,26 +240,16 @@ onMounted(() => {</script><style scoped lang="less">+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.mcp-settings {width: 100%;}.section-header {- margin-bottom: 28px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }+ .settings-section-header();}.loading-container {@@ -272,7 +262,7 @@ onMounted(() => {text-align: center;:deep(.t-empty__description) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin-bottom: 16px;}@@ -293,7 +283,7 @@ onMounted(() => {padding: 0;overflow: hidden;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);&--add {@@ -328,14 +318,14 @@ onMounted(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -351,15 +341,8 @@ onMounted(() => {}.service-card__badge {- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- width: 26px;- height: 26px;- border-radius: 7px;- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-secondary);+ .provider-card-badge(26px, 7px);+ font-size: var(--app-text-md);:deep(.t-icon) {display: block;@@ -387,7 +370,7 @@ onMounted(() => {flex: 1;min-width: 0;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 20px;color: var(--td-text-color-primary);@@ -398,14 +381,14 @@ onMounted(() => {.service-card__builtin {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-placeholder);}.service-card__type {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 18px;color: var(--td-text-color-placeholder);}@@ -425,7 +408,7 @@ onMounted(() => {height: 24px;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: none;color: var(--td-text-color-placeholder);cursor: pointer;@@ -458,7 +441,7 @@ onMounted(() => {line-clamp: 2;margin: 0;overflow: hidden;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);overflow-wrap: anywhere;@@ -478,7 +461,7 @@ onMounted(() => {align-items: center;min-height: calc(2 * 12px * 1.5);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}@@ -488,7 +471,7 @@ onMounted(() => {gap: 4px;padding: 2px 0;border: 0;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: none;color: inherit;font: inherit;@@ -513,11 +496,11 @@ onMounted(() => {max-width: 100%;padding: 2px 6px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;text-align: left;@@ -556,10 +539,10 @@ button.service-card__tools {gap: 5px;padding: 2px 4px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: none;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);diff --git a/frontend/src/views/settings/MemorySettings.vue b/frontend/src/views/settings/MemorySettings.vueindex 72627810b..65df9a465 100644--- a/frontend/src/views/settings/MemorySettings.vue+++ b/frontend/src/views/settings/MemorySettings.vue@@ -860,26 +860,14 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.memory-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 8px 0 0;- line-height: 1.5;- }+ .settings-section-header();}.section-header-titlewrap {@@ -898,12 +886,12 @@ onMounted(async () => {margin: 0;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;line-height: 0;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;:deep(.t-icon) {display: block;@@ -926,16 +914,16 @@ onMounted(async () => {gap: 8px;padding: 12px 16px;margin-bottom: 16px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-warning-color-1);color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);}.status-hint {margin: 12px 0 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;}@@ -945,39 +933,15 @@ onMounted(async () => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.setting-control {- flex-shrink: 0;- display: flex;- justify-content: flex-end;- align-items: center;+ .setting-control();}.list-section {@@ -999,7 +963,7 @@ onMounted(async () => {gap: 8px;h3 {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0;@@ -1007,7 +971,7 @@ onMounted(async () => {}.list-count {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -1027,7 +991,7 @@ onMounted(async () => {}:deep(.t-tabs__nav-item) {- font-size: 13px;+ font-size: var(--app-text-md);}.status-tab-label {@@ -1090,7 +1054,7 @@ onMounted(async () => {.memory-content {margin: 0 0 4px;- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;color: var(--td-text-color-primary);word-break: break-word;@@ -1105,7 +1069,7 @@ onMounted(async () => {display: flex;align-items: center;flex-wrap: wrap;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);@@ -1137,7 +1101,7 @@ onMounted(async () => {> span {flex-shrink: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);}@@ -1174,14 +1138,14 @@ onMounted(async () => {}.empty-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-secondary);margin: 0 0 4px 0;}.empty-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);margin: 0;}@@ -1196,7 +1160,7 @@ onMounted(async () => {padding: 0 !important;width: 380px;max-width: calc(100vw - 24px);- border-radius: 12px !important;+ border-radius: var(--app-radius-xl) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -1210,14 +1174,14 @@ onMounted(async () => {}.usage-popup-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}.usage-popup-intro {margin: 4px 0 12px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -1237,7 +1201,7 @@ onMounted(async () => {.usage-popup-label {flex: 0 0 88px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-primary);}@@ -1245,7 +1209,7 @@ onMounted(async () => {.usage-popup-text {flex: 1;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}}@@ -1266,7 +1230,7 @@ onMounted(async () => {padding: 14px 16px !important;width: 320px;max-width: calc(100vw - 24px);- border-radius: 12px !important;+ border-radius: var(--app-radius-xl) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -1282,7 +1246,7 @@ onMounted(async () => {}.add-popup-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -1294,12 +1258,12 @@ onMounted(async () => {}.add-label {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.add-kind-hint {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);}diff --git a/frontend/src/views/settings/MemoryWorkspaceSettings.vue b/frontend/src/views/settings/MemoryWorkspaceSettings.vueindex 7e3c06334..477d4f1cb 100644--- a/frontend/src/views/settings/MemoryWorkspaceSettings.vue+++ b/frontend/src/views/settings/MemoryWorkspaceSettings.vue@@ -296,26 +296,14 @@ onMounted(loadConfig)</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.memory-workspace-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.intro {@@ -324,7 +312,7 @@ onMounted(loadConfig)gap: 10px;padding: 14px 16px;margin-bottom: 8px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}@@ -336,14 +324,14 @@ onMounted(loadConfig).intro-title {margin: 0 0 4px 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);}.intro-desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;color: var(--td-text-color-secondary);}@@ -354,36 +342,11 @@ onMounted(loadConfig)}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();.hint {margin-top: 4px !important;@@ -392,10 +355,7 @@ onMounted(loadConfig)}.setting-control {- flex-shrink: 0;- display: flex;- justify-content: flex-end;- align-items: center;+ .setting-control();}// The custom prompt needs room to read, so this row stacks instead of putting adiff --git a/frontend/src/views/settings/ModelSettings.vue b/frontend/src/views/settings/ModelSettings.vueindex 5171c8645..16e8fa40b 100644--- a/frontend/src/views/settings/ModelSettings.vue+++ b/frontend/src/views/settings/ModelSettings.vue@@ -834,33 +834,16 @@ onMounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.model-settings {width: 100%;}.section-header {- margin-bottom: 28px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }-}--.section-header__top {- display: flex;- align-items: center;- justify-content: space-between;- gap: 20px;+ .settings-section-header();}.model-test-trigger {@@ -888,12 +871,12 @@ onMounted(() => {padding: 10px 12px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);}.builtin-hint-label {margin: 0 0 4px 0;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-placeholder);letter-spacing: 0.02em;@@ -901,13 +884,13 @@ onMounted(() => {.builtin-hint-text {margin: 0 0 6px 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}.builtin-models-hint .doc-link {- font-size: 13px;+ font-size: var(--app-text-md);}.model-list-loading {@@ -918,7 +901,7 @@ onMounted(() => {margin-bottom: 16px;:deep(.t-tabs__nav-item) {- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-tabs__nav-item-wrapper) {@@ -957,47 +940,18 @@ onMounted(() => {// 模型卡片 —— 可选类型徽章(仅「全部」Tab)+ 标题 + 一行副标题.model-card {- position: relative;- display: flex;- align-items: flex-start;- gap: 12px;- padding: 14px 16px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);- transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;- min-width: 0;-- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }+ .provider-card();+ .provider-card-interactive();&--add {- flex-direction: column;- align-items: center;- justify-content: center;- gap: 8px;- min-height: 68px;- border-style: dashed;- background: transparent;- color: var(--td-text-color-placeholder);- cursor: pointer;- font: inherit;- text-align: center;+ .provider-card-add();&:hover,&:focus-visible {- color: var(--td-brand-color);- border-color: var(--td-brand-color);- background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);box-shadow: none;}- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+&__icon {display: flex;@@ -1005,14 +959,14 @@ onMounted(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -1028,87 +982,48 @@ onMounted(() => {}&--clickable {- cursor: pointer;+ .provider-card-interactive();- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }}}.model-card__badge {- flex-shrink: 0;- width: 36px;- height: 36px;- border-radius: 9px;- display: flex;- align-items: center;- justify-content: center;- margin-top: 1px;- // 默认底色,被 type 修饰覆盖- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge();+ .provider-card-badge-color(#0052d9);}// 5 种类型的徽章配色 —— 比原 tag 配色饱和度低一档,避免炫光.model-card--chat .model-card__badge {- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge-color(#0052d9);}.model-card--embedding .model-card__badge {- background: rgba(98, 53, 187, 0.1);- color: #6235BB;+ .provider-card-badge-color(#6235bb);}.model-card--rerank .model-card__badge {- background: rgba(184, 92, 0, 0.1);- color: #B85C00;+ .provider-card-badge-color(#b85c00);}.model-card--vllm .model-card__badge {- background: rgba(201, 62, 62, 0.1);- color: #C93E3E;+ .provider-card-badge-color(#c93e3e);}.model-card--asr .model-card__badge {- background: rgba(17, 128, 83, 0.1);- color: #118053;+ .provider-card-badge-color(#118053);}.model-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- justify-content: center;- gap: 2px;+ .provider-card-body();}.model-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.model-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}/*@@ -1127,10 +1042,10 @@ onMounted(() => {height: 18px;color: var(--td-text-color-placeholder);opacity: 0.6;- transition: color 0.15s ease, opacity 0.15s ease;+ transition: color var(--app-motion-fast) ease, opacity var(--app-motion-fast) ease;.t-icon {- font-size: 13px;+ font-size: var(--app-text-md);}}@@ -1141,7 +1056,7 @@ onMounted(() => {.model-card__subtitle {margin: 2px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);overflow: hidden;@@ -1179,7 +1094,7 @@ onMounted(() => {flex-shrink: 0;padding: 2px;opacity: 0;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;}.model-card__more {@@ -1204,7 +1119,7 @@ onMounted(() => {text-align: center;:deep(.t-empty__description) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin-bottom: 16px;}@@ -1229,7 +1144,7 @@ onMounted(() => {h3 {margin: 0 0 8px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -1239,7 +1154,7 @@ onMounted(() => {padding: 0;list-style: none;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);overflow: hidden;}@@ -1258,7 +1173,7 @@ onMounted(() => {.model-usage-truncated {margin: 8px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -1285,7 +1200,7 @@ onMounted(() => {.model-usage-memory {padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.model-usage-dialog__actions {diff --git a/frontend/src/views/settings/OllamaSettings.vue b/frontend/src/views/settings/OllamaSettings.vueindex 1b34b0352..e35f6b2d4 100644--- a/frontend/src/views/settings/OllamaSettings.vue+++ b/frontend/src/views/settings/OllamaSettings.vue@@ -367,26 +367,14 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.ollama-settings {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.settings-group {@@ -396,42 +384,17 @@ onMounted(async () => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- padding-right: 32px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }+ .setting-info();}.setting-control {- flex-shrink: 0;+ .setting-control();min-width: 360px;max-width: 360px;- display: flex;flex-direction: column;align-items: flex-end;}@@ -442,7 +405,7 @@ onMounted(async () => {gap: 12px;.status-icon.spinning {- animation: spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}}@@ -486,7 +449,7 @@ onMounted(async () => {}p {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);margin: 0;line-height: 1.5;@@ -502,7 +465,7 @@ onMounted(async () => {gap: 8px;padding: 48px 0;color: var(--td-text-color-placeholder);- font-size: 14px;+ font-size: var(--app-text-base);}.model-list-container {@@ -521,9 +484,9 @@ onMounted(async () => {justify-content: space-between;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);- transition: all 0.2s;+ transition: all var(--app-motion-base);&:hover {border-color: var(--td-brand-color);@@ -536,7 +499,7 @@ onMounted(async () => {min-width: 0;.model-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -546,7 +509,7 @@ onMounted(async () => {.model-meta {display: flex;gap: 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}}@@ -570,14 +533,14 @@ onMounted(async () => {.download-progress {padding: 16px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);border: 1px solid var(--td-component-stroke);.progress-info {display: flex;justify-content: space-between;margin-bottom: 10px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);font-weight: 500;}@@ -589,18 +552,10 @@ onMounted(async () => {text-align: center;.empty-text {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin: 0;}}-@keyframes spin {- from {- transform: rotate(0deg);- }- to {- transform: rotate(360deg);- }-}</style>diff --git a/frontend/src/views/settings/ParserEngineSettings.vue b/frontend/src/views/settings/ParserEngineSettings.vueindex 9251f3eef..d16465919 100644--- a/frontend/src/views/settings/ParserEngineSettings.vue+++ b/frontend/src/views/settings/ParserEngineSettings.vue@@ -719,26 +719,16 @@ onMounted(loadAll)</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.parser-engine-settings {width: 100%;}.section-header {- margin-bottom: 28px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }+ .settings-section-header();}.loading-state {@@ -748,7 +738,7 @@ onMounted(loadAll)gap: 8px;padding: 48px 0;color: var(--td-text-color-placeholder);- font-size: 14px;+ font-size: var(--app-text-base);}.error-inline {@@ -760,7 +750,7 @@ onMounted(loadAll)text-align: center;.empty-text {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin: 0;}@@ -777,95 +767,52 @@ onMounted(loadAll)// 与 ModelSettings / WebSearchSettings / McpSettings 同形的提供者卡片。// 这里整张卡是一个 button —— 单击即打开配置抽屉;active 状态用品牌色描边。.engine-card {- display: flex;- align-items: flex-start;- gap: 12px;- padding: 14px 14px 14px 12px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);+ .provider-card();+ .provider-card-interactive();text-align: left;font: inherit;color: inherit;cursor: pointer;- transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;- min-width: 0;-- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }&--active {border-color: var(--td-brand-color);- background: var(--td-brand-color-1, rgba(7, 192, 95, 0.06));+ background: var(--td-brand-color-1);}}.engine-card__badge {- flex-shrink: 0;- width: 36px;- height: 36px;- border-radius: 9px;- display: flex;- align-items: center;- justify-content: center;- margin-top: 1px;- font-size: 15px;- font-weight: 600;- letter-spacing: 0.02em;- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge();+ .provider-card-badge-color(#0052d9);}// 解析引擎徽章配色 —— 内置/官方系绿,外部工具按性质各取一色。.engine-card--builtin .engine-card__badge,.engine-card--weknoracloud .engine-card__badge {- background: rgba(7, 192, 95, 0.12);- color: #07C05F;+ .provider-card-badge-color(#07c05f);}.engine-card--simple .engine-card__badge {- background: rgba(70, 70, 70, 0.1);- color: #464646;+ .provider-card-badge-color(#464646);}.engine-card--markitdown .engine-card__badge {- background: rgba(0, 137, 255, 0.12);- color: #0089FF;+ .provider-card-badge-color(#0089ff);}.engine-card--mineru .engine-card__badge,.engine-card--mineru_cloud .engine-card__badge,.engine-card--paddleocr_vl .engine-card__badge,.engine-card--paddleocr_vl_cloud .engine-card__badge {- background: rgba(98, 53, 187, 0.12);- color: #6235BB;+ .provider-card-badge-color(#6235bb);}.engine-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- gap: 4px;+ .provider-card-body();}.engine-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.engine-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}// 与 McpSettings 一致的 dot+文字状态徽章。on=绿、err=红、help 用 cursor:help 提示。@@ -875,22 +822,22 @@ onMounted(loadAll)align-items: center;gap: 5px;padding: 1px 8px 1px 6px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 16px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);&--on {- color: var(--td-success-color-7, #118053);+ color: var(--td-success-color-7);- .engine-card__status-dot { background: var(--td-success-color, #118053); }+ .engine-card__status-dot { background: var(--td-success-color); }}&--err {- color: var(--td-error-color-7, #C93E3E);+ color: var(--td-error-color-7);- .engine-card__status-dot { background: var(--td-error-color, #C93E3E); }+ .engine-card__status-dot { background: var(--td-error-color); }}&--help {@@ -905,7 +852,7 @@ onMounted(loadAll)}.engine-card__desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -925,7 +872,7 @@ onMounted(loadAll).form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -942,7 +889,7 @@ onMounted(loadAll).form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);}@@ -953,14 +900,14 @@ onMounted(loadAll):deep(.t-textarea),:deep(.t-input-number) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-checkbox) {- font-size: 13px;+ font-size: var(--app-text-md);.t-checkbox__label {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);}}@@ -973,7 +920,7 @@ onMounted(loadAll)padding: 12px 14px;background: var(--td-bg-color-container-hover);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);.form-desc {margin-top: 0;@@ -988,7 +935,7 @@ onMounted(loadAll)}.env-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;}@@ -1005,11 +952,11 @@ onMounted(loadAll)align-items: center;height: 22px;padding: 0 8px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;color: var(--td-text-color-secondary);background: var(--td-bg-color-component);- border-radius: 4px;+ border-radius: var(--app-radius-xs);font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;letter-spacing: 0.02em;}@@ -1021,14 +968,14 @@ onMounted(loadAll)display: flex;align-items: center;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);flex-wrap: wrap;}.inline-alert__icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;color: var(--td-text-color-placeholder);}@@ -1041,7 +988,7 @@ onMounted(loadAll)color: var(--td-text-color-primary);.inline-alert__icon {- color: var(--td-warning-color, #f97316);+ color: var(--td-warning-color);}}@@ -1055,29 +1002,24 @@ onMounted(loadAll)display: inline-flex;align-items: center;gap: 2px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-brand-color);cursor: pointer;white-space: nowrap;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color-active);}.t-icon {- font-size: 14px;+ font-size: var(--app-text-base);}}-@keyframes spin {- from { transform: rotate(0deg); }- to { transform: rotate(360deg); }-}-.spinning {- animation: spin 1s linear infinite;+ animation: wk-spin 1s linear infinite;}// ---- 表单切换组(公式/表格/OCR) ----@@ -1090,7 +1032,7 @@ onMounted(loadAll)// ---- footer-left 测试连接消息(与 ModelEditorDialog 同款) ----.footer-test-message {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;flex: 1;min-width: 0;@@ -1108,7 +1050,7 @@ onMounted(loadAll)}.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -1125,36 +1067,36 @@ onMounted(loadAll)display: inline-flex;align-items: center;gap: 4px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-brand-color);text-decoration: none;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color-active);}.link-icon {- font-size: 14px;+ font-size: var(--app-text-base);}// 副标题里的 inline 文档链接:与描述文字平铺一行,体量等同小字&--inline {margin-left: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;vertical-align: baseline;.link-icon {- font-size: 12px;+ font-size: var(--app-text-sm);}}}// ---- Header 图标的首字母 monogram(per-engine 配色见非 scoped 块)----.header-icon__text {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;}@@ -1170,7 +1112,7 @@ onMounted(loadAll)<style lang="less">.parser-engine-drawer--builtin .setting-drawer__header-icon,.parser-engine-drawer--weknoracloud .setting-drawer__header-icon {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: #07C05F;}.parser-engine-drawer--simple .setting-drawer__header-icon {diff --git a/frontend/src/views/settings/RetrievalSettings.vue b/frontend/src/views/settings/RetrievalSettings.vueindex 583c1601f..401d37654 100644--- a/frontend/src/views/settings/RetrievalSettings.vue+++ b/frontend/src/views/settings/RetrievalSettings.vue@@ -205,26 +205,14 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.retrieval-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 6px 0;- }-- .section-description {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.settings-group {@@ -243,7 +231,7 @@ onMounted(async () => {}.setting-label {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -253,14 +241,14 @@ onMounted(async () => {display: flex;align-items: center;justify-content: space-between;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 10px;}.setting-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);margin: 0 0 8px 0;line-height: 1.5;@@ -279,7 +267,7 @@ onMounted(async () => {}.value-display {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-brand-color);font-family: var(--app-font-family-mono);diff --git a/frontend/src/views/settings/SandboxSettings.vue b/frontend/src/views/settings/SandboxSettings.vueindex 68d074ab4..baaa593e8 100644--- a/frontend/src/views/settings/SandboxSettings.vue+++ b/frontend/src/views/settings/SandboxSettings.vue@@ -576,33 +576,16 @@ onMounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.sandbox-settings {width: 100%;}.section-header {- margin-bottom: 20px;-- h2 {- margin: 0 0 8px;- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- }-}--.section-description {- margin: 0;- color: var(--td-text-color-secondary);- font-size: 14px;- line-height: 1.6;-}--.section-header__top {- display: flex;- align-items: center;- justify-content: space-between;- gap: 20px;+ .settings-section-header();}.defaults-trigger {@@ -625,7 +608,7 @@ onMounted(() => {align-items: center;gap: 5px;color: var(--td-brand-color);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;text-decoration: none;@@ -650,7 +633,7 @@ onMounted(() => {justify-content: center;padding: 2px;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: help;@@ -672,14 +655,14 @@ onMounted(() => {.hint-popover__title {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.hint-popover__text {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}@@ -688,39 +671,16 @@ onMounted(() => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;+ .setting-row();gap: 24px;- padding: 0 0 16px;- margin-bottom: 8px;- border-bottom: 1px solid var(--td-component-stroke);}.setting-info {- flex: 1;- min-width: 0;-- label {- display: block;- margin-bottom: 4px;- color: var(--td-text-color-primary);- font-size: 14px;- font-weight: 500;- }-- .desc {- margin: 0;- color: var(--td-text-color-secondary);- font-size: 13px;- line-height: 1.5;- }+ .setting-info();}.setting-control {- flex-shrink: 0;- display: flex;- align-items: center;+ .setting-control();}.sandbox-tabs-row {@@ -736,7 +696,7 @@ onMounted(() => {margin-bottom: 0;:deep(.t-tabs__nav-item) {- font-size: 13px;+ font-size: var(--app-text-md);}:deep(.t-tabs__nav-item-wrapper) {@@ -774,29 +734,12 @@ onMounted(() => {}.sandbox-card {- position: relative;- display: flex;- align-items: flex-start;- gap: 12px;- padding: 14px 14px 14px 12px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);- transition: border-color 0.18s ease, box-shadow 0.18s ease;- min-width: 0;+ .provider-card();&--clickable {- cursor: pointer;+ .provider-card-interactive();- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }}&--add {@@ -819,10 +762,7 @@ onMounted(() => {box-shadow: none;}- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+&__icon {display: flex;@@ -830,14 +770,14 @@ onMounted(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -845,42 +785,19 @@ onMounted(() => {}.sandbox-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- gap: 4px;+ .provider-card-body();}.sandbox-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.sandbox-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}.sandbox-card__subtitle {- display: flex;- align-items: center;- flex-wrap: wrap;- gap: 4px;- font-size: 12px;- line-height: 1.4;- color: var(--td-text-color-secondary);- min-width: 0;+ .provider-card-subtitle();}.sandbox-card__type {@@ -900,7 +817,7 @@ onMounted(() => {.sandbox-card__url {font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;color: var(--td-text-color-placeholder);white-space: nowrap;@@ -921,8 +838,8 @@ onMounted(() => {display: inline-flex;align-items: center;gap: 4px;- color: var(--td-warning-color-7, var(--td-warning-color));- font-size: 12px;+ color: var(--td-warning-color-7);+ font-size: var(--app-text-sm);line-height: 1.4;}}@@ -932,17 +849,7 @@ onMounted(() => {}.sandbox-card__more {- flex-shrink: 0;- padding: 2px;- color: var(--td-text-color-placeholder);- opacity: 0;- transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;-- &:hover,- &:focus-visible {- color: var(--td-text-color-primary);- background: var(--td-bg-color-secondarycontainer);- }+ .provider-card-more();}.sandbox-card:hover .sandbox-card__more,@@ -962,7 +869,7 @@ onMounted(() => {.sandbox-empty-hint {margin: 16px 0 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -988,7 +895,7 @@ onMounted(() => {margin: 0;padding: 6px 8px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: inherit;font: inherit;@@ -1019,13 +926,13 @@ onMounted(() => {text-overflow: ellipsis;white-space: nowrap;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.4;}.inventory-row__meta {color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;}@@ -1038,7 +945,7 @@ onMounted(() => {.inventory-agents {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;}</style>diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vueindex 57168e3e5..70e4ba154 100644--- a/frontend/src/views/settings/Settings.vue+++ b/frontend/src/views/settings/Settings.vue@@ -1,227 +1,202 @@<template>- <Teleport to="body">- <Transition name="modal">- <div v-if="visible" class="settings-overlay">- <div class="settings-modal">- <!-- 关闭按钮 -->- <button class="close-btn" @click="handleClose" :aria-label="$t('general.close')">- <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor">- <path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" />+ <SettingsModalShell :visible="visible" :title="$t('general.settings')" @close="modalShell.requestClose">+ <template #nav>+ <template v-for="group in navGroups" :key="group.key">+ <div class="nav-group-title">{{ group.label }}</div>+ <template v-for="item in group.items" :key="item.key">+ <div :class="['nav-item', {+ 'active': currentSection === item.key,+ 'has-submenu': item.children && item.children.length > 0,+ 'expanded': expandedMenus.includes(item.key)+ }]" @click="handleNavClick(item)">+ <!-- 网络搜索使用自定义 SVG 图标 -->+ <svg v-if="item.key === 'websearch'" width="17" height="17" viewBox="0 0 18 18" fill="none"+ xmlns="http://www.w3.org/2000/svg" class="nav-icon">+ <circle cx="9" cy="9" r="7" stroke="currentColor" stroke-width="1.2" fill="none" />+ <path d="M 9 2 A 3.5 7 0 0 0 9 16" stroke="currentColor" stroke-width="1.2" fill="none" />+ <path d="M 9 2 A 3.5 7 0 0 1 9 16" stroke="currentColor" stroke-width="1.2" fill="none" />+ <line x1="2.94" y1="5.5" x2="15.06" y2="5.5" stroke="currentColor" stroke-width="1.2"+ stroke-linecap="round" />+ <line x1="2.94" y1="12.5" x2="15.06" y2="12.5" stroke="currentColor" stroke-width="1.2"+ stroke-linecap="round" /></svg>- </button>-- <div class="settings-container">- <!-- 左侧导航 -->- <div class="settings-sidebar">- <div class="sidebar-header">- <h2 class="sidebar-title">{{ $t('general.settings') }}</h2>- </div>- <div class="settings-nav">- <template v-for="group in navGroups" :key="group.key">- <div class="nav-group-title">{{ group.label }}</div>- <template v-for="item in group.items" :key="item.key">- <div :class="['nav-item', {- 'active': currentSection === item.key,- 'has-submenu': item.children && item.children.length > 0,- 'expanded': expandedMenus.includes(item.key)- }]" @click="handleNavClick(item)">- <!-- 网络搜索使用自定义 SVG 图标 -->- <svg v-if="item.key === 'websearch'" width="17" height="17" viewBox="0 0 18 18" fill="none"- xmlns="http://www.w3.org/2000/svg" class="nav-icon">- <circle cx="9" cy="9" r="7" stroke="currentColor" stroke-width="1.2" fill="none" />- <path d="M 9 2 A 3.5 7 0 0 0 9 16" stroke="currentColor" stroke-width="1.2" fill="none" />- <path d="M 9 2 A 3.5 7 0 0 1 9 16" stroke="currentColor" stroke-width="1.2" fill="none" />- <line x1="2.94" y1="5.5" x2="15.06" y2="5.5" stroke="currentColor" stroke-width="1.2"- stroke-linecap="round" />- <line x1="2.94" y1="12.5" x2="15.06" y2="12.5" stroke="currentColor" stroke-width="1.2"- stroke-linecap="round" />- </svg>- <!-- WeKnora Cloud 使用自定义 W 图标 -->- <svg v-else-if="item.key === 'weknoracloud'" width="17" height="17" viewBox="0 0 18 18"- fill="none" xmlns="http://www.w3.org/2000/svg" class="nav-icon">- <rect x="1.5" y="1.5" width="15" height="15" rx="3.5" stroke="currentColor" stroke-width="1.2"- fill="none" />- <path d="M4.5 5.5L6.5 12.5L9 7.5L11.5 12.5L13.5 5.5" stroke="currentColor" stroke-width="1.3"- stroke-linecap="round" stroke-linejoin="round" fill="none" />- </svg>- <!-- 沙箱:隔离运行窗口,避免和 Ollama / 系统设置共用 server -->- <svg v-else-if="item.key === 'sandbox'" width="17" height="17" viewBox="0 0 18 18" fill="none"- xmlns="http://www.w3.org/2000/svg" class="nav-icon">- <rect x="2.5" y="3" width="13" height="12" rx="2" stroke="currentColor" stroke-width="1.2"- fill="none" />- <path d="M2.5 6.5h13" stroke="currentColor" stroke-width="1.2" />- <path d="M5.5 10h4M5.5 12.5h2.5" stroke="currentColor" stroke-width="1.2"- stroke-linecap="round" />- </svg>- <BrowserIcon v-else-if="item.key === 'browserconnection'" class="nav-icon" width="17" height="17" />- <span v-else-if="item.emoji" class="nav-icon nav-icon-emoji">{{ item.emoji }}</span>- <t-icon v-else :name="item.icon" class="nav-icon" />- <span class="nav-label">{{ item.label }}</span>- <t-icon v-if="item.children && item.children.length > 0"- :name="expandedMenus.includes(item.key) ? 'chevron-down' : 'chevron-right'"- class="expand-icon" />- </div>-- <!-- 子菜单 -->- <Transition name="submenu">- <div v-if="item.children && expandedMenus.includes(item.key)" class="submenu">- <div v-for="(child, childIndex) in item.children" :key="childIndex"- :class="['submenu-item', { 'active': currentSubSection === child.key }]"- @click.stop="handleSubMenuClick(item.key, child.key)">- <span class="submenu-label">{{ child.label }}</span>- </div>- </div>- </Transition>- </template>- </template>- </div>- </div>+ <!-- WeKnora Cloud 使用自定义 W 图标 -->+ <svg v-else-if="item.key === 'weknoracloud'" width="17" height="17" viewBox="0 0 18 18"+ fill="none" xmlns="http://www.w3.org/2000/svg" class="nav-icon">+ <rect x="1.5" y="1.5" width="15" height="15" rx="3.5" stroke="currentColor" stroke-width="1.2"+ fill="none" />+ <path d="M4.5 5.5L6.5 12.5L9 7.5L11.5 12.5L13.5 5.5" stroke="currentColor" stroke-width="1.3"+ stroke-linecap="round" stroke-linejoin="round" fill="none" />+ </svg>+ <!-- 沙箱:隔离运行窗口,避免和 Ollama / 系统设置共用 server -->+ <svg v-else-if="item.key === 'sandbox'" width="17" height="17" viewBox="0 0 18 18" fill="none"+ xmlns="http://www.w3.org/2000/svg" class="nav-icon">+ <rect x="2.5" y="3" width="13" height="12" rx="2" stroke="currentColor" stroke-width="1.2"+ fill="none" />+ <path d="M2.5 6.5h13" stroke="currentColor" stroke-width="1.2" />+ <path d="M5.5 10h4M5.5 12.5h2.5" stroke="currentColor" stroke-width="1.2"+ stroke-linecap="round" />+ </svg>+ <BrowserIcon v-else-if="item.key === 'browserconnection'" class="nav-icon" width="17" height="17" />+ <span v-else-if="item.emoji" class="nav-icon nav-icon-emoji">{{ item.emoji }}</span>+ <t-icon v-else :name="item.icon" class="nav-icon" />+ <span class="nav-label">{{ item.label }}</span>+ <t-icon v-if="item.children && item.children.length > 0"+ :name="expandedMenus.includes(item.key) ? 'chevron-down' : 'chevron-right'"+ class="expand-icon" />+ </div>- <!-- 右侧内容区域 -->- <div class="settings-content">- <div class="content-wrapper" :class="{- 'content-wrapper--wide': currentSection === 'members',- 'content-wrapper--full': SYSTEM_ADMIN_SECTIONS.has(currentSection) || isIntegrationSection(currentSection),- }">- <!-- 角色不允许访问当前 section(deep-link 进来 / 跨空间切换后角色降级)—— 优先于具体 section 渲染。- 正常导航走 navItems filter 不会到这里,但 watch(navItems) 的 fallback 会在角色降级- 的瞬间触发;这一段做兜底兼容旧 URL。 -->- <div v-if="!canSeeSection(currentSection)" class="section role-denied">- <div class="role-denied-icon">- <t-icon name="lock-on" size="48px" />- </div>- <div class="role-denied-title">{{ $t('settings.roleDenied.title') }}</div>- <div class="role-denied-desc">{{ $t('settings.roleDenied.desc') }}</div>- </div>- <template v-else>- <!-- 常规设置 -->- <div v-if="currentSection === 'general'" class="section">- <GeneralSettings />- </div>-- <!-- Ollama 设置 -->- <div v-if="currentSection === 'ollama'" class="section">- <OllamaSettings />- </div>-- <!-- WeKnora Cloud -->- <div v-if="currentSection === 'weknoracloud'" class="section">- <WeKnoraCloudSettings />- </div>-- <!-- 模型配置 -->- <div v-if="currentSection === 'models'" class="section">- <ModelSettings />- </div>-- <!-- 网络搜索配置 -->- <div v-if="currentSection === 'websearch'" class="section">- <WebSearchSettings />- </div>-- <!-- 消息管理 -->- <div v-if="currentSection === 'chathistory'" class="section">- <ChatHistorySettings />- </div>-- <!-- 长期记忆(空间级开关) -->- <div v-if="currentSection === 'memory'" class="section">- <MemoryWorkspaceSettings />- </div>-- <!-- 我的记忆(个人记忆管理) -->- <div v-if="currentSection === 'mymemory'" class="section">- <MemorySettings />- </div>-- <!-- 沙箱密钥(成员自己的技能 / 沙箱密钥) -->- <div v-if="currentSection === 'envvars'" class="section">- <EnvVarSettings />- </div>-- <!-- 向量数据库引擎 -->- <div v-if="currentSection === 'vectorstore'" class="section">- <VectorStoreSettings />- </div>-- <!-- 解析引擎 -->- <div v-if="currentSection === 'parser'" class="section">- <ParserEngineSettings />- </div>-- <!-- 存储引擎 -->- <div v-if="currentSection === 'storage'" class="section">- <StorageBackendSettings />- </div>-- <!-- 沙箱 -->- <div v-if="currentSection === 'sandbox'" class="section">- <SandboxSettings />- </div>-- <!-- 技能目录:登记后可装到多份沙箱,智能体只从当前沙箱的就绪集合选用 -->- <div v-if="currentSection === 'skills'" class="section">- <SkillSettings :initial-sandbox-id="currentSubSection" />- </div>-- <!-- 系统信息 -->- <div v-if="currentSection === 'system'" class="section">- <SystemInfo />- </div>-- <!-- 系统管理员可见的全局运行时设置 -->- <div v-if="currentSection === 'system-global'" class="section">- <SystemSettings />- </div>-- <!-- 系统管理员可见的任务队列运行状态 -->- <div v-if="currentSection === 'runtime-queues'" class="section">- <RuntimeQueues />- </div>-- <div v-if="currentSection === 'platform-api-keys'" class="section">- <PlatformAPIKeys />- </div>-- <div v-if="currentSection === 'system-audit-log'" class="section">- <SystemAuditLog />- </div>-- <!-- 用户信息(账户基础信息:ID / 用户名 / 邮箱 / 注册时间)。- 用户的基本信息不该跟 owner 权限绑定。 -->- <div v-if="currentSection === 'userprofile'" class="section">- <UserProfile />- </div>-- <div v-if="currentSection === 'browserconnection'" class="section"><BrowserConnectionSettings /></div>-- <!-- 空间信息 -->- <div v-if="currentSection === 'tenant'" class="section">- <TenantInfo />- </div>-- <!-- 成员管理 (#1303 PR 3) -->- <div v-if="currentSection === 'members'" class="section">- <TenantMembers />- </div>-- <!-- 发布集成 -->- <div v-if="isIntegrationSection(currentSection)" class="section">- <IntegrationSettingsSection :tab="integrationTabFromSection(currentSection)" />- </div>-- <!-- MCP 服务 -->- <div v-if="currentSection === 'mcp'" class="section">- <McpSettings />- </div>- </template>+ <!-- 子菜单 -->+ <Transition name="submenu">+ <div v-if="item.children && expandedMenus.includes(item.key)" class="submenu">+ <div v-for="(child, childIndex) in item.children" :key="childIndex"+ :class="['submenu-item', { 'active': currentSubSection === child.key }]"+ @click.stop="handleSubMenuClick(item.key, child.key)">+ <span class="submenu-label">{{ child.label }}</span></div></div>- </div>+ </Transition>+ </template>+ </template>+ </template>+ <div class="content-wrapper" :class="{+ 'content-wrapper--wide': currentSection === 'members',+ 'content-wrapper--full': SYSTEM_ADMIN_SECTIONS.has(currentSection) || isIntegrationSection(currentSection),+ }">+ <!-- 角色不允许访问当前 section(deep-link 进来 / 跨空间切换后角色降级)—— 优先于具体 section 渲染。+ 正常导航走 navItems filter 不会到这里,但 watch(navItems) 的 fallback 会在角色降级+ 的瞬间触发;这一段做兜底兼容旧 URL。 -->+ <div v-if="!canSeeSection(currentSection)" class="section role-denied">+ <div class="role-denied-icon">+ <t-icon name="lock-on" size="48px" /></div>+ <div class="role-denied-title">{{ $t('settings.roleDenied.title') }}</div>+ <div class="role-denied-desc">{{ $t('settings.roleDenied.desc') }}</div></div>- </Transition>- </Teleport>+ <template v-else>+ <!-- 常规设置 -->+ <div v-if="currentSection === 'general'" class="section">+ <GeneralSettings />+ </div>++ <!-- Ollama 设置 -->+ <div v-if="currentSection === 'ollama'" class="section">+ <OllamaSettings />+ </div>++ <!-- WeKnora Cloud -->+ <div v-if="currentSection === 'weknoracloud'" class="section">+ <WeKnoraCloudSettings />+ </div>++ <!-- 模型配置 -->+ <div v-if="currentSection === 'models'" class="section">+ <ModelSettings />+ </div>++ <!-- 网络搜索配置 -->+ <div v-if="currentSection === 'websearch'" class="section">+ <WebSearchSettings />+ </div>++ <!-- 消息管理 -->+ <div v-if="currentSection === 'chathistory'" class="section">+ <ChatHistorySettings />+ </div>++ <!-- 长期记忆(空间级开关) -->+ <div v-if="currentSection === 'memory'" class="section">+ <MemoryWorkspaceSettings />+ </div>++ <!-- 我的记忆(个人记忆管理) -->+ <div v-if="currentSection === 'mymemory'" class="section">+ <MemorySettings />+ </div>++ <!-- 沙箱密钥(成员自己的技能 / 沙箱密钥) -->+ <div v-if="currentSection === 'envvars'" class="section">+ <EnvVarSettings />+ </div>++ <!-- 向量数据库引擎 -->+ <div v-if="currentSection === 'vectorstore'" class="section">+ <VectorStoreSettings />+ </div>++ <!-- 解析引擎 -->+ <div v-if="currentSection === 'parser'" class="section">+ <ParserEngineSettings />+ </div>++ <!-- 存储引擎 -->+ <div v-if="currentSection === 'storage'" class="section">+ <StorageBackendSettings />+ </div>++ <!-- 沙箱 -->+ <div v-if="currentSection === 'sandbox'" class="section">+ <SandboxSettings />+ </div>++ <!-- 技能目录:登记后可装到多份沙箱,智能体只从当前沙箱的就绪集合选用 -->+ <div v-if="currentSection === 'skills'" class="section">+ <SkillSettings :initial-sandbox-id="currentSubSection" />+ </div>++ <!-- 系统信息 -->+ <div v-if="currentSection === 'system'" class="section">+ <SystemInfo />+ </div>++ <!-- 系统管理员可见的全局运行时设置 -->+ <div v-if="currentSection === 'system-global'" class="section">+ <SystemSettings />+ </div>++ <!-- 系统管理员可见的任务队列运行状态 -->+ <div v-if="currentSection === 'runtime-queues'" class="section">+ <RuntimeQueues />+ </div>++ <div v-if="currentSection === 'platform-api-keys'" class="section">+ <PlatformAPIKeys />+ </div>++ <div v-if="currentSection === 'system-audit-log'" class="section">+ <SystemAuditLog />+ </div>++ <!-- 用户信息(账户基础信息:ID / 用户名 / 邮箱 / 注册时间)。+ 用户的基本信息不该跟 owner 权限绑定。 -->+ <div v-if="currentSection === 'userprofile'" class="section">+ <UserProfile />+ </div>++ <div v-if="currentSection === 'browserconnection'" class="section"><BrowserConnectionSettings /></div>++ <!-- 空间信息 -->+ <div v-if="currentSection === 'tenant'" class="section">+ <TenantInfo />+ </div>++ <!-- 成员管理 (#1303 PR 3) -->+ <div v-if="currentSection === 'members'" class="section">+ <TenantMembers />+ </div>++ <!-- 发布集成 -->+ <div v-if="isIntegrationSection(currentSection)" class="section">+ <IntegrationSettingsSection :tab="integrationTabFromSection(currentSection)" />+ </div>++ <!-- MCP 服务 -->+ <div v-if="currentSection === 'mcp'" class="section">+ <McpSettings />+ </div>+ </template>+ </div>+ </SettingsModalShell></template><script setup lang="ts">@@ -233,6 +208,8 @@ import { useAuthStore } from '@/stores/auth'import { useDeploymentCapabilitiesStore } from '@/stores/deploymentCapabilities'import { useI18n } from 'vue-i18n'import { MessagePlugin } from 'tdesign-vue-next'+import { useModalShell } from '@/composables/useModalShell'+import SettingsModalShell from '@/components/SettingsModalShell.vue'import SystemInfo from './SystemInfo.vue'import TenantInfo from './TenantInfo.vue'import UserProfile from './UserProfile.vue'@@ -601,12 +578,11 @@ watch(navItems, (items) => {}})-// ESC 键关闭-const handleEscape = (e: KeyboardEvent) => {- if (e.key === 'Escape' && visible.value) {- handleClose()- }-}+// Esc / 遮罩点击关闭(与其他设置类弹窗共用同一壳层交互)+const modalShell = useModalShell({+ visible: () => visible.value,+ close: handleClose,+})// 处理快捷导航事件const handleSettingsNav = (e: CustomEvent) => {@@ -634,7 +610,6 @@ const handleSettingsNav = (e: CustomEvent) => {}onMounted(() => {- window.addEventListener('keydown', handleEscape)window.addEventListener('settings-nav', handleSettingsNav as EventListener)})@@ -645,162 +620,19 @@ watch(currentSection, () => {})onUnmounted(() => {- window.removeEventListener('keydown', handleEscape)window.removeEventListener('settings-nav', handleSettingsNav as EventListener)})</script><style lang="less" scoped>/* 遮罩层 */-.settings-overlay {- position: fixed;- inset: 0;- z-index: 1100;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- padding: 20px;- backdrop-filter: blur(4px);-}-/* 弹窗容器 */-.settings-modal {- position: relative;- width: 100%;- // 1080×780 trades a touch of small-screen real estate for noticeably- // less cramped tables (member list, system settings rows). Outer- // padding is 20px so 1080 + 40 = 1120, comfortably within typical- // laptops (1280+). Below 1100px viewport the `width: 100%` kicks in- // and the modal shrinks to fit minus the 20px padding.- max-width: 1080px;- height: 780px;- max-height: calc(100vh - 40px);- background: var(--td-bg-color-container);- border-radius: 12px;- box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);- overflow: hidden;- display: flex;- flex-direction: column;-}-/* 关闭按钮 */-.close-btn {- position: absolute;- top: 16px;- right: 16px;- width: 32px;- height: 32px;- border: none;- background: transparent;- color: var(--td-text-color-secondary);- cursor: pointer;- border-radius: 6px;- display: flex;- align-items: center;- justify-content: center;- transition: all 0.2s ease;- z-index: 10;-- &:hover {- background: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-}--.settings-container {- display: flex;- height: 100%;- width: 100%;- overflow: hidden;-}-/* 左侧导航栏:略紧凑于最初版,字号与留白适中 */-.settings-sidebar {- width: 208px;- background-color: var(--td-bg-color-settings-modal);- border-right: 1px solid var(--td-component-stroke);- flex-shrink: 0;- display: flex;- flex-direction: column;- overflow: hidden;-}--.sidebar-header {- padding: 16px 14px 12px;- border-bottom: 1px solid var(--td-component-stroke);- flex-shrink: 0;-}--.sidebar-title {- font-size: 16px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;-}--.settings-nav {- padding: 8px 8px 12px;- flex: 1;- overflow-y: auto;- min-height: 0;-}--.nav-group-title {- padding: 9px 14px 4px;- color: var(--td-text-color-placeholder);- font-size: 12px;- font-weight: 600;- letter-spacing: 0.02em;-}--.nav-item {- display: flex;- align-items: center;- padding: 6px 12px;- margin-bottom: 2px;- border-radius: 6px;- cursor: pointer;- color: var(--td-text-color-primary);- font-size: 14px;- transition: all 0.2s ease;- user-select: none;-- &:hover {- background-color: var(--td-bg-color-container-hover);- color: var(--td-text-color-primary);- }-- &.active {- background-color: var(--td-bg-color-secondarycontainer);- color: var(--td-brand-color);- font-weight: 500;- }-}--.nav-icon {- margin-right: 9px;- font-size: 16px;- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;- color: inherit;-}--.nav-icon-emoji {- font-size: 14px;- line-height: 1;-}--.nav-label {- flex: 1;-}-.expand-icon {margin-left: 4px;- font-size: 14px;- transition: transform 0.2s ease;+ font-size: var(--app-text-base);+ transition: transform var(--app-motion-base) ease;}/* 子菜单 */@@ -813,11 +645,11 @@ onUnmounted(() => {.submenu-item {padding: 5px 12px;margin-bottom: 2px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);cursor: pointer;color: var(--td-text-color-primary);- font-size: 13px;- transition: all 0.2s ease;+ font-size: var(--app-text-md);+ transition: all var(--app-motion-base) ease;user-select: none;&:hover {@@ -839,7 +671,7 @@ onUnmounted(() => {/* 子菜单动画 */.submenu-enter-active,.submenu-leave-active {- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;}.submenu-enter-from {@@ -863,12 +695,6 @@ onUnmounted(() => {}/* 右侧内容区域 */-.settings-content {- flex: 1;- overflow-y: auto;- background-color: var(--td-bg-color-container);-}-.content-wrapper {// Bumped from 600 to 760 when the modal grew from 900→1080 (see// .settings-modal). Without this, single-column panes (General,@@ -912,59 +738,7 @@ onUnmounted(() => {}/* 弹窗动画 */-.modal-enter-active,-.modal-leave-active {- transition: opacity 0.2s ease;-}--.modal-enter-active .settings-modal,-.modal-leave-active .settings-modal {- transition: transform 0.2s ease, opacity 0.2s ease;-}--.modal-enter-from,-.modal-leave-to {- opacity: 0;-}--.modal-enter-from .settings-modal,-.modal-leave-to .settings-modal {- transform: scale(0.95);- opacity: 0;-}-/* 滚动条样式 */-.settings-nav::-webkit-scrollbar,-.settings-content::-webkit-scrollbar {- width: 6px;-}--.settings-nav::-webkit-scrollbar-track {- background: var(--td-bg-color-secondarycontainer);-}--.settings-nav::-webkit-scrollbar-thumb {- background: var(--td-gray-color-5);- border-radius: 3px;-}--.settings-nav::-webkit-scrollbar-thumb:hover {- background: var(--td-gray-color-6);-}--.settings-content::-webkit-scrollbar-track {- background: var(--td-bg-color-container);-}--.settings-content::-webkit-scrollbar-thumb {- background: var(--td-gray-color-5);- border-radius: 3px;-}--.settings-content::-webkit-scrollbar-thumb:hover {- background: var(--td-gray-color-6);-}-.role-denied {display: flex;flex-direction: column;@@ -980,13 +754,13 @@ onUnmounted(() => {}.role-denied-title {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);}.role-denied-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);max-width: 360px;line-height: 1.6;diff --git a/frontend/src/views/settings/SkillSettings.vue b/frontend/src/views/settings/SkillSettings.vueindex 44efc5bfe..dfb9457a5 100644--- a/frontend/src/views/settings/SkillSettings.vue+++ b/frontend/src/views/settings/SkillSettings.vue@@ -1170,12 +1170,16 @@ onUnmounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.skill-settings {width: 100%;}.section-header {- margin-bottom: 28px;+ .settings-section-header();&__title-row {display: flex;@@ -1184,30 +1188,16 @@ onUnmounted(() => {margin-bottom: 8px;}- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;- }-&__help {color: var(--td-text-color-placeholder);- font-size: 16px;+ font-size: var(--app-text-xl);cursor: help;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-text-color-secondary);}}-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }}:global(.skill-settings__help-tooltip .t-popup__content) {@@ -1221,10 +1211,10 @@ onUnmounted(() => {:global(.skill-install-panel-overlay .t-popup__content) {padding: 0 !important;- border-radius: 6px !important;+ border-radius: var(--app-radius-sm) !important;border: 1px solid var(--td-component-stroke) !important;background: var(--td-bg-color-container) !important;- box-shadow: var(--td-shadow-2, 0 3px 14px 2px rgba(0, 0, 0, 0.05)) !important;+ box-shadow: var(--td-shadow-2) !important;}.loading-container {@@ -1237,7 +1227,7 @@ onUnmounted(() => {text-align: center;:deep(.t-empty__description) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin-bottom: 16px;}@@ -1245,7 +1235,7 @@ onUnmounted(() => {.empty-hint {margin: 0 0 16px;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-placeholder);}@@ -1269,7 +1259,7 @@ onUnmounted(() => {padding: 0;overflow: hidden;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);transition: border-color 0.18s ease, box-shadow 0.18s ease;min-width: 0;@@ -1277,7 +1267,7 @@ onUnmounted(() => {&--focused {border-color: var(--td-brand-color);- box-shadow: 0 0 0 2px var(--td-brand-color-focus, rgba(0, 168, 112, 0.18));+ box-shadow: 0 0 0 2px var(--td-brand-color-focus);}&--installed .skill-card__badge {@@ -1319,14 +1309,14 @@ onUnmounted(() => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -1342,15 +1332,8 @@ onUnmounted(() => {}.skill-card__badge {- flex-shrink: 0;- width: 26px;- height: 26px;- border-radius: 7px;- display: flex;- align-items: center;- justify-content: center;- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-secondary);+ .provider-card-badge(26px, 7px);+ font-size: var(--app-text-md);:deep(.t-icon) {display: block;@@ -1386,7 +1369,7 @@ onUnmounted(() => {flex: 0 1 auto;min-width: 0;margin: 0;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 20px;color: var(--td-text-color-primary);@@ -1412,7 +1395,7 @@ onUnmounted(() => {margin: 0;padding: 0;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: none;color: var(--td-text-color-placeholder);cursor: pointer;@@ -1440,7 +1423,7 @@ onUnmounted(() => {.skill-card__type {flex-shrink: 0;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 18px;color: var(--td-text-color-placeholder);@@ -1453,7 +1436,7 @@ onUnmounted(() => {line-clamp: 2;margin: 0;overflow: hidden;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);overflow-wrap: anywhere;@@ -1467,7 +1450,7 @@ onUnmounted(() => {}.skill-card__installs-label {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;color: var(--td-text-color-placeholder);}@@ -1481,12 +1464,12 @@ onUnmounted(() => {margin: 0;padding: 2px 6px;border: 0;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-secondary);cursor: pointer;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;text-align: left;@@ -1519,7 +1502,7 @@ onUnmounted(() => {}&--installed .skill-card__entry-status {- color: var(--td-success-color, var(--td-brand-color));+ color: var(--td-success-color);}&.skill-card__entry--stale {@@ -1562,7 +1545,7 @@ onUnmounted(() => {}.skill-card__entry--ready .skill-card__entry-status {- color: var(--td-success-color, var(--td-brand-color));+ color: var(--td-success-color);}.skill-card__chip-go {@@ -1594,7 +1577,7 @@ onUnmounted(() => {.skill-install-panel__group {margin: 0;padding: 6px 12px 4px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 20px;color: var(--td-text-color-placeholder);}@@ -1613,7 +1596,7 @@ onUnmounted(() => {color: var(--td-text-color-primary);cursor: pointer;font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 22px;text-align: left;@@ -1680,7 +1663,7 @@ onUnmounted(() => {.installer-model-hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1702,7 +1685,7 @@ onUnmounted(() => {gap: 8px;min-width: 0;color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:not(:last-child) {flex: 1;@@ -1731,7 +1714,7 @@ onUnmounted(() => {&:focus-visible {outline: 2px solid var(--td-brand-color);outline-offset: 2px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}}@@ -1745,7 +1728,7 @@ onUnmounted(() => {flex-shrink: 0;border: 1px solid currentColor;border-radius: 50%;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;line-height: 1;@@ -1764,7 +1747,7 @@ onUnmounted(() => {.skill-add-step__title {overflow: hidden;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;text-overflow: ellipsis;white-space: nowrap;@@ -1798,7 +1781,7 @@ onUnmounted(() => {align-items: center;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);cursor: pointer;box-sizing: border-box;@@ -1845,7 +1828,7 @@ onUnmounted(() => {box-sizing: border-box;padding: 10px 12px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);.sandbox-pick__main {@@ -1878,7 +1861,7 @@ onUnmounted(() => {}.sandbox-pick__name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.3;@@ -1888,7 +1871,7 @@ onUnmounted(() => {}.sandbox-pick__meta {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.3;overflow: hidden;@@ -1900,7 +1883,7 @@ onUnmounted(() => {display: inline-flex;align-items: center;gap: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1;color: var(--td-brand-color);@@ -1920,9 +1903,9 @@ onUnmounted(() => {.file-upload-area {border: 1px dashed var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);cursor: pointer;- transition: border-color 0.15s ease, background 0.15s ease;+ transition: border-color var(--app-motion-fast) ease, background var(--app-motion-fast) ease;&:hover:not(.is-disabled) {border-color: var(--td-brand-color);@@ -1965,18 +1948,18 @@ onUnmounted(() => {}.upload-primary-text {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);}.upload-secondary-text {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}.upload-file-name {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-brand-color);}diff --git a/frontend/src/views/settings/StorageBackendSettings.vue b/frontend/src/views/settings/StorageBackendSettings.vueindex 4c5fb9717..c49d889a1 100644--- a/frontend/src/views/settings/StorageBackendSettings.vue+++ b/frontend/src/views/settings/StorageBackendSettings.vue@@ -356,39 +356,22 @@ async function save() {}async function makeDefault(backend: StorageBackend) { await setDefaultStorageBackend(backend.id); defaultID.value = backend.id; MessagePlugin.success(t('settings.storageBackend.defaultUpdated')) }function remove(backend: StorageBackend) {- const dialog = DialogPlugin.confirm({ header: t('settings.storageBackend.deleteTitle'), body: t('settings.storageBackend.deleteConfirm', { name: backend.name }), onConfirm: async () => { dialog.destroy(); try { await deleteStorageBackend(backend.id); await load(); MessagePlugin.success(t('settings.storageBackend.deleted')) } catch (e: any) { MessagePlugin.error(e?.message || t('settings.storageBackend.deleteFailed')) } }, onCancel: () => dialog.destroy() })+ const dialog = DialogPlugin.confirm({ theme: 'danger', confirmBtn: { content: t('common.delete'), theme: 'danger' }, header: t('settings.storageBackend.deleteTitle'), body: t('settings.storageBackend.deleteConfirm', { name: backend.name }), onConfirm: async () => { dialog.destroy(); try { await deleteStorageBackend(backend.id); await load(); MessagePlugin.success(t('settings.storageBackend.deleted')) } catch (e: any) { MessagePlugin.error(e?.message || t('settings.storageBackend.deleteFailed')) } }, onCancel: () => dialog.destroy() })}onMounted(load)</script><style scoped lang="less">+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.storage-backend-settings {width: 100%;}.section-header {- margin-bottom: 28px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }-}--.section-header__top {- display: flex;- align-items: center;- justify-content: space-between;- gap: 20px;+ .settings-section-header();}.backend-list-loading {@@ -407,56 +390,24 @@ onMounted(load)}.backend-card {- position: relative;- display: flex;- align-items: flex-start;- gap: 12px;- padding: 14px 16px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);- transition: border-color 0.18s ease, box-shadow 0.18s ease;- min-width: 0;-- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }+ .provider-card();+ .provider-card-interactive();&--clickable {cursor: pointer;- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+}&--add {- flex-direction: column;- align-items: center;- justify-content: center;- gap: 8px;- min-height: 68px;- border-style: dashed;- background: transparent;- color: var(--td-text-color-placeholder);- cursor: pointer;- font: inherit;- text-align: center;+ .provider-card-add();&:hover,&:focus-visible {- color: var(--td-brand-color);- border-color: var(--td-brand-color);- background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);box-shadow: none;}- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+&__icon {display: flex;@@ -464,14 +415,14 @@ onMounted(load)justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -479,89 +430,54 @@ onMounted(load)}.backend-card__badge {- flex-shrink: 0;- width: 36px;- height: 36px;- border-radius: 9px;- display: flex;- align-items: center;- justify-content: center;- margin-top: 1px;- font-size: 15px;- font-weight: 600;- letter-spacing: 0.02em;- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge();+ .provider-card-badge-color(#0052d9);}-.backend-card .backend-card__badge--logo {- background: var(--td-bg-color-container, #fff);- box-shadow: inset 0 0 0 1px var(--td-component-stroke);+.backend-card__badge-img {+ .provider-card-badge-img();}-.backend-card .backend-card__badge--mono::before {- content: '';- width: 22px;- height: 22px;- background-color: currentColor;- -webkit-mask-image: var(--logo-url);- -webkit-mask-position: center;- -webkit-mask-repeat: no-repeat;- -webkit-mask-size: contain;- mask-image: var(--logo-url);- mask-position: center;- mask-repeat: no-repeat;- mask-size: contain;+.backend-card--local .backend-card__badge {+ .provider-card-badge-color(#464646);}--.backend-card__badge-img {- width: 24px;- height: 24px;- object-fit: contain;- display: block;+.backend-card--minio .backend-card__badge {+ .provider-card-badge-color(#c0382b);+}+.backend-card--cos .backend-card__badge {+ .provider-card-badge-color(#0052d9);+}+.backend-card--tos .backend-card__badge {+ .provider-card-badge-color(#0089ff);+}+.backend-card--s3 .backend-card__badge {+ .provider-card-badge-color(#d97706);+}+.backend-card--oss .backend-card__badge {+ .provider-card-badge-color(#e55a00);+}+.backend-card--ks3 .backend-card__badge {+ .provider-card-badge-color(#07a050);+}+.backend-card--obs .backend-card__badge {+ .provider-card-badge-color(#ce1126);}--.backend-card--local .backend-card__badge { background: rgba(70, 70, 70, 0.1); color: #464646; }-.backend-card--minio .backend-card__badge { background: rgba(225, 38, 38, 0.12); color: #C0382B; }-.backend-card--cos .backend-card__badge { background: rgba(0, 82, 217, 0.1); color: #0052D9; }-.backend-card--tos .backend-card__badge { background: rgba(0, 137, 255, 0.12); color: #0089FF; }-.backend-card--s3 .backend-card__badge { background: rgba(255, 153, 0, 0.12); color: #D97706; }-.backend-card--oss .backend-card__badge { background: rgba(255, 90, 0, 0.12); color: #E55A00; }-.backend-card--ks3 .backend-card__badge { background: rgba(7, 192, 95, 0.12); color: #07A050; }-.backend-card--obs .backend-card__badge { background: rgba(206, 17, 38, 0.1); color: #CE1126; }.backend-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- justify-content: center;- gap: 2px;+ .provider-card-body();}.backend-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.backend-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}.backend-card__subtitle {margin: 2px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);display: flex;@@ -593,7 +509,7 @@ onMounted(load)padding: 2px;color: var(--td-text-color-placeholder);opacity: 0;- transition: opacity 0.15s ease;+ transition: opacity var(--app-motion-fast) ease;&:hover,&:focus-visible {@@ -631,7 +547,7 @@ onMounted(load)}.header-icon__text {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;}@@ -644,7 +560,7 @@ onMounted(load).form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -660,7 +576,7 @@ onMounted(load).form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -673,7 +589,7 @@ onMounted(load):deep(.t-select),:deep(.t-textarea) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}.vision-toggle {@@ -690,7 +606,7 @@ onMounted(load)padding: 3px;background: var(--td-bg-color-component);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.source-option {@@ -701,13 +617,13 @@ onMounted(load)height: 28px;background: transparent;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;font-family: inherit;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;&:disabled {cursor: not-allowed;@@ -729,7 +645,7 @@ onMounted(load)}.source-option__icon {- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;}@@ -738,7 +654,7 @@ onMounted(load)}.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -757,7 +673,7 @@ onMounted(load)--><style lang="less">.storage-backend-drawer .setting-drawer__header-icon:has(.header-icon__img) {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}@@ -767,6 +683,6 @@ onMounted(load).storage-backend-drawer--tos .setting-drawer__header-icon { background: rgba(0, 137, 255, 0.12); color: #0089FF; }.storage-backend-drawer--s3 .setting-drawer__header-icon { background: rgba(255, 153, 0, 0.12); color: #D97706; }.storage-backend-drawer--oss .setting-drawer__header-icon { background: rgba(255, 90, 0, 0.12); color: #E55A00; }-.storage-backend-drawer--ks3 .setting-drawer__header-icon { background: rgba(7, 192, 95, 0.12); color: #07A050; }+.storage-backend-drawer--ks3 .setting-drawer__header-icon { background: color-mix(in srgb, var(--td-brand-color) 12%, transparent); color: #07A050; }.storage-backend-drawer--obs .setting-drawer__header-icon { background: rgba(206, 17, 38, 0.1); color: #CE1126; }</style>diff --git a/frontend/src/views/settings/SystemInfo.vue b/frontend/src/views/settings/SystemInfo.vueindex eddae2056..c97e18f4f 100644--- a/frontend/src/views/settings/SystemInfo.vue+++ b/frontend/src/views/settings/SystemInfo.vue@@ -314,26 +314,14 @@ onUnmounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.system-info {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.loading-inline {@@ -343,7 +331,7 @@ onUnmounted(() => {padding: 40px 0;justify-content: center;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.error-inline {@@ -357,36 +345,11 @@ onUnmounted(() => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.migration-error-row {@@ -397,7 +360,7 @@ onUnmounted(() => {.migration-error-desc {margin: 0 0 8px 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-primary);}@@ -406,8 +369,8 @@ onUnmounted(() => {margin: 0 0 12px 0;padding: 8px 12px;background: var(--td-bg-color-container-hover);- border-radius: 4px;- font-size: 12px;+ border-radius: var(--app-radius-xs);+ font-size: var(--app-text-sm);line-height: 1.5;white-space: pre-wrap;word-break: break-word;@@ -420,7 +383,7 @@ onUnmounted(() => {display: flex;align-items: center;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);.migration-error-actions-sep {color: var(--td-text-color-placeholder);@@ -428,21 +391,17 @@ onUnmounted(() => {}.setting-control {- flex-shrink: 0;- min-width: 280px;- display: flex;- justify-content: flex-end;- align-items: center;+ .setting-control();.info-value {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);text-align: right;word-break: break-word;.commit-info {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);margin-left: 6px;}}diff --git a/frontend/src/views/settings/TenantInfo.vue b/frontend/src/views/settings/TenantInfo.vueindex 463f80a50..4356df46b 100644--- a/frontend/src/views/settings/TenantInfo.vue+++ b/frontend/src/views/settings/TenantInfo.vue@@ -675,26 +675,14 @@ onMounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.tenant-info {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.loading-inline {@@ -704,7 +692,7 @@ onMounted(() => {padding: 40px 0;justify-content: center;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.error-inline {@@ -723,15 +711,7 @@ onMounted(() => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {@@ -745,7 +725,7 @@ onMounted(() => {padding-right: 24px;label {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);display: block;@@ -753,7 +733,7 @@ onMounted(() => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -761,17 +741,12 @@ onMounted(() => {}.setting-control {- /* 反过来:内容列吃掉剩余空间,并允许收缩 + 内部换行,长字符串不会再撑爆行。- 去掉原先的 min-width:280px 硬约束(短内容也不需要那么宽的展示槽)。 */+ .setting-control();flex: 1 1 auto;min-width: 0;- display: flex;- justify-content: flex-end;- align-items: center;- gap: 8px;.info-value {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);text-align: right;/* anywhere 比 break-word 激进:连无空格的长串("WorkspaceDefault..." 这种)@@ -783,6 +758,8 @@ onMounted(() => {.edit-btn {flex-shrink: 0;}+ /* 反过来:内容列吃掉剩余空间,并允许收缩 + 内部换行,长字符串不会再撑爆行。+ 去掉原先的 min-width:280px 硬约束(短内容也不需要那么宽的展示槽)。 */}.inline-edit {@@ -845,7 +822,7 @@ onMounted(() => {justify-content: space-between;gap: 20px;padding: 16px 18px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-secondarycontainer);box-sizing: border-box;@@ -859,7 +836,7 @@ onMounted(() => {}.leave-space-panel-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -868,7 +845,7 @@ onMounted(() => {.leave-space-panel-desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -901,7 +878,7 @@ onMounted(() => {// gap: 12px;.usage-text {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);min-width: 50px;diff --git a/frontend/src/views/settings/TenantMembers.vue b/frontend/src/views/settings/TenantMembers.vueindex 19cc4ecbd..0d8b388cd 100644--- a/frontend/src/views/settings/TenantMembers.vue+++ b/frontend/src/views/settings/TenantMembers.vue@@ -9,7 +9,7 @@<div class="section-header-row"><div class="section-header-titlewrap"><h2>{{ $t('tenantMember.title') }}</h2>- <t-popup placement="bottom-start" trigger="hover" overlay-class-name="permissions-popup-overlay"+ <t-popup placement="bottom-start" trigger="hover" overlay-class-name="wk-popover permissions-popup-overlay":overlay-inner-style="permissionsPopupInnerStyle"><button type="button" class="permissions-trigger-btn" :aria-label="$t('tenantMember.permissions.title')":title="$t('tenantMember.permissions.iconHint')">@@ -198,7 +198,7 @@</t-input></div><t-popup v-if="canManage" v-model="invitePopupVisible" trigger="click" placement="bottom-end"- destroy-on-close overlay-class-name="member-invite-popup-overlay">+ destroy-on-close overlay-class-name="wk-popover member-invite-popup-overlay"><t-button theme="primary" variant="outline" shape="square" size="small" class="members-list-add-btn":title="$t('tenantMember.add.button')" :aria-label="$t('tenantMember.add.button')"><template #icon><t-icon name="user-add" /></template>@@ -247,7 +247,7 @@popup so the two flows live side-by-side: "I know who"(email input) vs "I don't" (one link, group chat). --><t-popup v-if="canManage" v-model="shareLinkPopupVisible" trigger="click" placement="bottom-end"- destroy-on-close overlay-class-name="member-invite-popup-overlay">+ destroy-on-close overlay-class-name="wk-popover member-invite-popup-overlay"><t-button theme="default" variant="outline" shape="square" size="small" class="members-list-add-btn":title="$t('tenantInvitation.shareLink.button')":aria-label="$t('tenantInvitation.shareLink.button')">@@ -1466,6 +1466,8 @@ watch(</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.tenant-members {width: 100%;}@@ -1479,7 +1481,7 @@ watch(.member-name {font-weight: 500;- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);overflow: hidden;text-overflow: ellipsis;@@ -1487,7 +1489,7 @@ watch(}.member-email {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.35;color: var(--td-text-color-secondary);overflow: hidden;@@ -1497,23 +1499,7 @@ watch(}.section-header {- margin-bottom: 20px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;- letter-spacing: -0.02em;- }-- .section-description {- color: var(--td-text-color-secondary);- font-size: 13px;- line-height: 1.55;- margin: 8px 0 0;- max-width: 52rem;- }+ .settings-section-header();}.section-header-row {@@ -1593,12 +1579,12 @@ watch(margin: 0;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-secondary);cursor: pointer;line-height: 0;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: background-color var(--app-motion-base) ease, color var(--app-motion-base) ease;:deep(.t-icon) {display: block;@@ -1640,7 +1626,7 @@ watch(}.members-list-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}@@ -1654,16 +1640,16 @@ watch(min-width: 22px;height: 20px;padding: 0 7px;- border-radius: 10px;+ border-radius: var(--app-radius-lg);background-color: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1;}.members-list-filter-hint {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -1709,13 +1695,13 @@ watch(.data-table-shell {overflow-x: auto;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-container);&:deep(thead th) {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);}&:deep(.t-table td),@@ -1789,13 +1775,13 @@ watch(margin-bottom: 16px;.permissions-compact-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}.permissions-compact-desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}}@@ -1808,10 +1794,10 @@ watch(.perm-role-block {border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);padding: 14px 16px;background: var(--td-bg-color-container);- transition: all 0.2s ease;+ transition: all var(--app-motion-base) ease;&.is-me {border-color: var(--td-brand-color);@@ -1822,19 +1808,19 @@ watch(display: flex;align-items: center;gap: 6px;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 12px;.me-badge {margin-left: auto;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-brand-color);padding: 2px 8px;background: var(--td-brand-color-light);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}@@ -1847,7 +1833,7 @@ watch(display: flex;align-items: flex-start;gap: 6px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;.t-icon {@@ -1887,11 +1873,11 @@ watch(margin-bottom: 10px;.permissions-compact-title {- font-size: 13px;+ font-size: var(--app-text-md);}.permissions-compact-desc {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;}}@@ -1903,15 +1889,15 @@ watch(.perm-role-block {padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);.perm-role-tag {- font-size: 12px;+ font-size: var(--app-text-sm);margin-bottom: 6px;gap: 4px;.me-badge {- font-size: 10px;+ font-size: var(--app-text-2xs);padding: 1px 5px;}}@@ -1920,7 +1906,7 @@ watch(gap: 3px;.perm-item {- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.35;gap: 4px;@@ -1954,7 +1940,7 @@ watch(}.member-invite-popup-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 12px;@@ -1974,7 +1960,7 @@ watch(.invite-confirm-body {padding: 4px 0 8px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;}@@ -2004,10 +1990,10 @@ watch(min-width: 0;padding: 7px 10px;border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: var(--td-bg-color-page);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);outline: none;}@@ -2046,22 +2032,22 @@ watch(}.pending-invitations-title {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;color: var(--td-text-color-primary);}.pending-invitations-desc {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.pending-invitations-empty {padding: 10px 12px;border: 1px dashed var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);background: var(--td-bg-color-container);}@@ -2098,13 +2084,13 @@ watch(justify-content: space-between;background: var(--td-bg-color-secondarycontainer);padding: 12px 16px;- border-radius: 8px;+ border-radius: var(--app-radius-md);gap: 12px;.audit-desc {flex: 1;min-width: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);}@@ -2172,13 +2158,13 @@ watch(justify-content: center;gap: 10px;padding: 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-end-hint {text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);padding: 8px 0 14px;margin: 0;@@ -2191,12 +2177,12 @@ watch(line-height: 1.3;.audit-time-date {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-time-clock {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);font-variant-numeric: tabular-nums;@@ -2211,7 +2197,7 @@ watch(min-width: 0;.audit-actor-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);overflow: hidden;@@ -2220,7 +2206,7 @@ watch(}.audit-actor-role {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}}@@ -2234,15 +2220,15 @@ watch(padding: 2px 0;.audit-target-key {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-primary);word-break: break-all;}.audit-target-diff {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);word-break: break-all;line-height: 1.4;}@@ -2253,8 +2239,8 @@ watch(}.audit-path {- font-family: var(--td-font-family-mono, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);word-break: break-all;@@ -2291,7 +2277,7 @@ watch(}.audit-expanded-label {- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;color: var(--td-text-color-secondary);text-transform: uppercase;@@ -2299,7 +2285,7 @@ watch(}.audit-expanded-value {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-primary);word-break: break-all;}@@ -2313,12 +2299,12 @@ watch(.audit-expanded-json {margin: 0;padding: 10px 12px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);white-space: pre-wrap;word-break: break-all;max-height: 280px;@@ -2326,7 +2312,7 @@ watch(}.mono {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);+ font-family: var(--td-font-family-mono);}</style>@@ -2335,20 +2321,6 @@ watch(.permissions-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 0 !important;- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- overflow: hidden;- }-.permissions-compact.permissions-compact--popover {padding: 12px 14px;margin: 0;@@ -2363,13 +2335,13 @@ watch(margin-bottom: 10px;.permissions-compact-title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}.permissions-compact-desc {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;color: var(--td-text-color-secondary);}@@ -2383,7 +2355,7 @@ watch(.perm-role-block {border: 1px solid var(--td-component-stroke);- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 8px 10px;background: var(--td-bg-color-container);@@ -2396,19 +2368,19 @@ watch(display: flex;align-items: center;gap: 4px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;color: var(--td-text-color-primary);margin-bottom: 6px;.me-badge {margin-left: auto;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 500;color: var(--td-brand-color);padding: 1px 5px;background: var(--td-brand-color-light);- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}@@ -2421,7 +2393,7 @@ watch(display: flex;align-items: flex-start;gap: 4px;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.35;color: var(--td-text-color-secondary);@@ -2466,20 +2438,6 @@ watch(.member-invite-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 14px 16px !important;- min-width: 300px;- max-width: min(392px, calc(100vw - 24px));- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- }}:root[theme-mode='dark'] .member-invite-popup-overlay .t-popup__content {@@ -2501,7 +2459,7 @@ watch(gap: 8px;}.role-option-icon {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-secondary);}}diff --git a/frontend/src/views/settings/UserProfile.vue b/frontend/src/views/settings/UserProfile.vueindex d7e88507a..94464a8de 100644--- a/frontend/src/views/settings/UserProfile.vue+++ b/frontend/src/views/settings/UserProfile.vue@@ -87,7 +87,7 @@trigger="click"placement="bottom-end"destroy-on-close- overlay-class-name="user-profile-password-popup-overlay"+ overlay-class-name="wk-popover user-profile-password-popup-overlay"><t-buttontheme="default"@@ -334,26 +334,14 @@ onMounted(loadInfo)</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.user-profile {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.loading-inline {@@ -363,7 +351,7 @@ onMounted(loadInfo)padding: 40px 0;justify-content: center;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);}.error-inline {@@ -377,48 +365,18 @@ onMounted(loadInfo)}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;-- label {- font-size: 15px;- font-weight: 500;- color: var(--td-text-color-primary);- display: block;- margin-bottom: 4px;- }-- .desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.setting-control {- flex-shrink: 0;- min-width: 280px;- display: flex;- justify-content: flex-end;- align-items: center;- gap: 8px;+ .setting-control();.info-value {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-primary);text-align: right;word-break: break-word;@@ -443,7 +401,7 @@ onMounted(loadInfo)}.password-popup-title {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 8px;@@ -452,7 +410,7 @@ onMounted(loadInfo).password-popup-hint {margin: 0 0 12px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -480,20 +438,6 @@ onMounted(loadInfo).user-profile-password-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 14px 16px !important;- min-width: 300px;- max-width: min(392px, calc(100vw - 24px));- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- }}:root[theme-mode='dark'] .user-profile-password-popup-overlay .t-popup__content {diff --git a/frontend/src/views/settings/VectorStoreSettings.vue b/frontend/src/views/settings/VectorStoreSettings.vueindex 2c0f700ea..8c6efea87 100644--- a/frontend/src/views/settings/VectorStoreSettings.vue+++ b/frontend/src/views/settings/VectorStoreSettings.vue@@ -702,9 +702,9 @@ const handleAction = (action: { value: string }, store: VectorStoreEntity) => {const confirmDelete = (store: VectorStoreEntity) => {const dialog = DialogPlugin.confirm({header: t('vectorStoreSettings.deleteConfirm'),- confirmBtn: t('common.delete'),+ confirmBtn: { content: t('common.delete'), theme: 'danger' },cancelBtn: t('common.cancel'),- theme: 'warning',+ theme: 'danger',onConfirm: async () => {try {await deleteVectorStoreAPI(store.id!)@@ -755,26 +755,16 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.vectorstore-settings {width: 100%;}.section-header {- margin-bottom: 32px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .settings-section-header();}.loading-container {@@ -789,7 +779,7 @@ onMounted(async () => {}.list-section-title {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 16px 0;@@ -809,31 +799,17 @@ onMounted(async () => {// 与 Parser / Storage / Model 等同形:徽章 + 三段式。env 来源走 secondaryContainer// 底色暗示只读;test 按钮做成 text 模式,避免在标题行抢眼。.store-card {- display: flex;+ .provider-card();flex-direction: column;- padding: 14px 14px 14px 12px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);- transition: border-color 0.18s ease, box-shadow 0.18s ease;- min-width: 0;&--env {background: var(--td-bg-color-secondarycontainer);}&--clickable {- cursor: pointer;+ .provider-card-interactive();- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }}&--env:not(.store-card--clickable):hover {@@ -842,30 +818,14 @@ onMounted(async () => {}&--add {- flex-direction: column;- align-items: center;- justify-content: center;- gap: 8px;- min-height: 68px;- border-style: dashed;- background: transparent;- color: var(--td-text-color-placeholder);- cursor: pointer;- font: inherit;- text-align: center;+ .provider-card-add();&:hover,&:focus-visible {- color: var(--td-brand-color);- border-color: var(--td-brand-color);- background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);box-shadow: none;}- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+&__icon {display: flex;@@ -873,14 +833,14 @@ onMounted(async () => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -899,146 +859,76 @@ onMounted(async () => {}.store-card__badge {- flex-shrink: 0;- width: 36px;- height: 36px;- border-radius: 9px;- display: flex;- align-items: center;- justify-content: center;- margin-top: 1px;- font-size: 15px;- font-weight: 600;- letter-spacing: 0.02em;- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge();+ .provider-card-badge-color(#0052d9);}// 真实品牌 logo 的渲染:保留每个 engine 类的 color 作为品牌色,// 把背景换成中性白 + 细边框;用 ::before mask-image 把单色 SVG 染成 currentColor。// 选择器叠了一层 .store-card 是为了胜过 `.store-card--<engine> .store-card__badge`// 那条更具体的品牌底色规则。-.store-card .store-card__badge--logo {- background: var(--td-bg-color-container, #fff);- box-shadow: inset 0 0 0 1px var(--td-component-stroke);-}--.store-card .store-card__badge--mono::before {- content: '';- width: 22px;- height: 22px;- background-color: currentColor;- -webkit-mask-image: var(--logo-url);- -webkit-mask-position: center;- -webkit-mask-repeat: no-repeat;- -webkit-mask-size: contain;- mask-image: var(--logo-url);- mask-position: center;- mask-repeat: no-repeat;- mask-size: contain;-}-.store-card__badge-img {- width: 24px;- height: 24px;- object-fit: contain;- display: block;+ .provider-card-badge-img();}// 各 vector engine 配色(覆盖 11 类常见后端,未列出的回落到默认蓝).store-card--qdrant .store-card__badge {- background: rgba(225, 38, 38, 0.12);- color: #E12626;+ .provider-card-badge-color(#e12626);}.store-card--milvus .store-card__badge {- background: rgba(0, 137, 255, 0.12);- color: #0089FF;+ .provider-card-badge-color(#0089ff);}.store-card--weaviate .store-card__badge {- background: rgba(7, 192, 95, 0.12);- color: #07A050;+ .provider-card-badge-color(#07a050);}.store-card--elasticsearch .store-card__badge,.store-card--elasticfaiss .store-card__badge {- background: rgba(255, 153, 0, 0.12);- color: #D97706;+ .provider-card-badge-color(#d97706);}.store-card--postgres .store-card__badge {- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge-color(#0052d9);}.store-card--opensearch .store-card__badge {- background: rgba(98, 53, 187, 0.12);- color: #6235BB;+ .provider-card-badge-color(#6235bb);}.store-card--infinity .store-card__badge {- background: rgba(98, 53, 187, 0.12);- color: #6235BB;+ .provider-card-badge-color(#6235bb);}.store-card--tencent_vectordb .store-card__badge {- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge-color(#0052d9);}.store-card--doris .store-card__badge {- background: rgba(255, 90, 0, 0.12);- color: #E55A00;+ .provider-card-badge-color(#e55a00);}.store-card--sqlite .store-card__badge {- background: rgba(70, 70, 70, 0.1);- color: #464646;+ .provider-card-badge-color(#464646);}.store-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- gap: 4px;+ .provider-card-body();}.store-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.store-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}.store-card__pill {flex-shrink: 0;padding: 1px 6px;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 16px;border-radius: 3px;- color: var(--td-warning-color-7, #B85C00);- background: var(--td-warning-color-1, #FEF3E6);+ color: var(--td-warning-color-7);+ background: var(--td-warning-color-1);}.store-card__more {- flex-shrink: 0;- color: var(--td-text-color-placeholder);- padding: 2px;- opacity: 0;- transition: opacity 0.15s ease;-- &:hover,- &:focus-visible {- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-primary);- }+ .provider-card-more();}.store-card:hover .store-card__more,@@ -1048,14 +938,7 @@ onMounted(async () => {}.store-card__subtitle {- display: flex;- align-items: center;- flex-wrap: wrap;- gap: 4px;- font-size: 12px;- line-height: 1.4;- color: var(--td-text-color-secondary);- min-width: 0;+ .provider-card-subtitle();}.store-card__type {@@ -1068,7 +951,7 @@ onMounted(async () => {.store-card__endpoint {font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-placeholder);overflow: hidden;text-overflow: ellipsis;@@ -1082,7 +965,7 @@ onMounted(async () => {text-align: center;:deep(.t-empty__description) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin-bottom: 16px;}@@ -1096,7 +979,7 @@ onMounted(async () => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1112,7 +995,7 @@ onMounted(async () => {.form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -1126,7 +1009,7 @@ onMounted(async () => {:deep(.t-select),:deep(.t-textarea) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}// 隐藏 t-form 默认 form-item 容器 — 走自定义 .form-item / .form-label@@ -1145,7 +1028,7 @@ onMounted(async () => {display: flex;align-items: center;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);flex-wrap: wrap;@@ -1153,7 +1036,7 @@ onMounted(async () => {white-space: pre-line;&__icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;color: var(--td-text-color-placeholder);}@@ -1174,7 +1057,7 @@ onMounted(async () => {.readonly-fields {padding: 10px 12px;background: var(--td-bg-color-secondarycontainer);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.readonly-row {@@ -1182,7 +1065,7 @@ onMounted(async () => {align-items: baseline;gap: 8px;padding: 4px 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;border-bottom: 1px solid var(--td-component-stroke);@@ -1191,14 +1074,14 @@ onMounted(async () => {.readonly-label {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);white-space: nowrap;min-width: 80px;}.readonly-value {color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;word-break: break-all;}@@ -1209,7 +1092,7 @@ onMounted(async () => {align-items: center;gap: 4px;padding: 4px 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);background: transparent;border: none;@@ -1220,7 +1103,7 @@ onMounted(async () => {&:hover { color: var(--td-brand-color); }- .t-icon { font-size: 14px; }+ .t-icon { font-size: var(--app-text-base); }}// ---- Number input:去原生 spinner(与 MCP 高级配置同款)----@@ -1262,14 +1145,14 @@ onMounted(async () => {}.header-icon__text {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;}// ---- footer-left 测试按钮的状态 icon ----.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available { color: var(--td-brand-color); }@@ -1288,7 +1171,7 @@ onMounted(async () => {<style lang="less">// 彩色 logo 时给 header-icon 容器一个白底 + 1px 边.vectorstore-drawer .setting-drawer__header-icon:has(.header-icon__img) {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}@@ -1301,7 +1184,7 @@ onMounted(async () => {color: #0089FF;}.vectorstore-drawer--weaviate .setting-drawer__header-icon {- background: rgba(7, 192, 95, 0.12);+ background: color-mix(in srgb, var(--td-brand-color) 12%, transparent);color: #07A050;}.vectorstore-drawer--elasticsearch .setting-drawer__header-icon,diff --git a/frontend/src/views/settings/WeKnoraCloudSettings.vue b/frontend/src/views/settings/WeKnoraCloudSettings.vueindex 9d46dee6e..ed278e940 100644--- a/frontend/src/views/settings/WeKnoraCloudSettings.vue+++ b/frontend/src/views/settings/WeKnoraCloudSettings.vue@@ -367,26 +367,14 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.weknoracloud-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0 0 10px 0;- line-height: 1.5;- }+ .settings-section-header();}.credential-warning {@@ -394,14 +382,14 @@ onMounted(async () => {background: #fff7ed;border: 1px solid #fed7aa;border-left: 3px solid #f97316;- border-radius: 6px;+ border-radius: var(--app-radius-sm);padding: 12px 16px;display: flex;align-items: flex-start;gap: 10px;.warning-text {- font-size: 13px;+ font-size: var(--app-text-md);color: #9a3412;line-height: 1.5;}@@ -410,11 +398,11 @@ onMounted(async () => {.credential-status {margin-bottom: 20px;padding: 10px 14px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);display: flex;align-items: center;gap: 8px;- font-size: 13px;+ font-size: var(--app-text-md);&.unconfigured {background: var(--td-bg-color-secondarycontainer);@@ -442,16 +430,9 @@ onMounted(async () => {}.setting-row {- display: flex;+ .setting-row();align-items: center;- justify-content: space-between;gap: 16px;- padding: 16px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }&.action-row {padding-top: 20px;@@ -459,34 +440,18 @@ onMounted(async () => {}.setting-info {- flex: 1;- min-width: 0;-- .setting-label {- display: block;- font-size: 14px;- font-weight: 500;- color: var(--td-text-color-primary);- margin-bottom: 4px;- }-- .setting-desc {- font-size: 13px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.5;- }+ .setting-info();}.setting-control {- flex-shrink: 0;+ .setting-control();}.models-section {margin-bottom: 24px;padding: 16px;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-container);&--disabled {@@ -500,14 +465,14 @@ onMounted(async () => {&__title {margin: 0 0 6px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;color: var(--td-text-color-primary);}&__desc {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}@@ -523,12 +488,12 @@ onMounted(async () => {align-items: center;gap: 6px;margin: 14px 0 0;- font-size: 13px;- color: var(--td-success-color, #2ba471);+ font-size: var(--app-text-md);+ color: var(--td-success-color);}&__ready-icon {- font-size: 15px;+ font-size: var(--app-text-lg);flex-shrink: 0;}}@@ -564,18 +529,18 @@ onMounted(async () => {}&__label {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);min-width: 88px;}&__id {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);padding: 2px 6px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}&__action {@@ -583,7 +548,7 @@ onMounted(async () => {}&__pending {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}}@@ -592,18 +557,18 @@ onMounted(async () => {padding: 14px 16px;background: var(--td-bg-color-secondarycontainer);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);.hint-title {margin: 0 0 8px 0;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-placeholder);}.hint-text {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1.8;}diff --git a/frontend/src/views/settings/WebSearchSettings.vue b/frontend/src/views/settings/WebSearchSettings.vueindex 111954ed2..12e16f61b 100644--- a/frontend/src/views/settings/WebSearchSettings.vue+++ b/frontend/src/views/settings/WebSearchSettings.vue@@ -714,30 +714,20 @@ onMounted(async () => {</script><style lang="less" scoped>+@import (reference) '@/components/css/provider-card.less';++@import (reference) '@/components/css/settings-section.less';+.websearch-settings {width: 100%;}.section-header {- margin-bottom: 28px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0 0 8px 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 0;- line-height: 1.6;- }+ .settings-section-header();}.list-section-title {- font-size: 16px;+ font-size: var(--app-text-xl);font-weight: 600;color: var(--td-text-color-primary);margin: 0 0 16px 0;@@ -758,55 +748,23 @@ onMounted(async () => {// 现阶段两份样式各自维护避免过度抽象;如果后续 Mcp / 第四个消费者出现,// 再把共用片段抽到 components/settings/ 下的基类。.provider-card {- display: flex;- align-items: flex-start;- gap: 12px;- padding: 14px 14px 14px 12px;- border: 1px solid var(--td-component-stroke);- border-radius: 10px;- background: var(--td-bg-color-container);- transition: border-color 0.18s ease, box-shadow 0.18s ease;- min-width: 0;+ .provider-card();&--clickable {- cursor: pointer;+ .provider-card-interactive();- &:hover {- border-color: var(--td-brand-color-3, var(--td-brand-color));- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);- }- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }}&--add {- flex-direction: column;- align-items: center;- justify-content: center;- gap: 8px;- min-height: 68px;- border-style: dashed;- background: transparent;- color: var(--td-text-color-placeholder);- cursor: pointer;- font: inherit;- text-align: center;+ .provider-card-add();&:hover,&:focus-visible {- color: var(--td-brand-color);- border-color: var(--td-brand-color);- background: color-mix(in srgb, var(--td-brand-color) 6%, transparent);box-shadow: none;}- &:focus-visible {- outline: 2px solid var(--td-brand-color);- outline-offset: 2px;- }+&__icon {display: flex;@@ -814,14 +772,14 @@ onMounted(async () => {justify-content: center;width: 32px;height: 32px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);color: var(--td-brand-color);- font-size: 18px;+ font-size: var(--app-text-2xl);}&__label {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;line-height: 1.4;}@@ -833,131 +791,59 @@ onMounted(async () => {}.provider-card__badge {- flex-shrink: 0;- width: 36px;- height: 36px;- border-radius: 9px;- display: flex;- align-items: center;- justify-content: center;- margin-top: 1px;- font-size: 15px;- font-weight: 600;- letter-spacing: 0.02em;- // 默认色,被 provider 修饰覆盖- background: rgba(0, 82, 217, 0.1);- color: #0052D9;+ .provider-card-badge();+ .provider-card-badge-color(#0052d9);}// 真实品牌 logo:白底 + 细边,logo 用 mask-image 染成 currentColor(沿用品牌色)。// 多套一层 .provider-card 以胜过 `.provider-card--<id> .provider-card__badge` 的具体规则。-.provider-card .provider-card__badge--logo {- background: var(--td-bg-color-container, #fff);- box-shadow: inset 0 0 0 1px var(--td-component-stroke);-}--.provider-card .provider-card__badge--mono::before {- content: '';- width: 22px;- height: 22px;- background-color: currentColor;- -webkit-mask-image: var(--logo-url);- -webkit-mask-position: center;- -webkit-mask-repeat: no-repeat;- -webkit-mask-size: contain;- mask-image: var(--logo-url);- mask-position: center;- mask-repeat: no-repeat;- mask-size: contain;-}-.provider-card__badge-img {- width: 24px;- height: 24px;- object-fit: contain;- display: block;+ .provider-card-badge-img();}// 各搜索源的徽章配色 —— 不强求与官方 logo 一致,挑同色系低饱和版即可。.provider-card--duckduckgo .provider-card__badge {- background: rgba(222, 88, 51, 0.12);- color: #DE5833;+ .provider-card-badge-color(#de5833);}.provider-card--bing .provider-card__badge {- background: rgba(0, 137, 255, 0.12);- color: #0089FF;+ .provider-card-badge-color(#0089ff);}.provider-card--google .provider-card__badge {- background: rgba(66, 133, 244, 0.12);- color: #4285F4;+ .provider-card-badge-color(#4285f4);}.provider-card--tavily .provider-card__badge {- background: rgba(98, 53, 187, 0.12);- color: #6235BB;+ .provider-card-badge-color(#6235bb);}.provider-card--baidu .provider-card__badge {- // 百度官方主色(搜索框 du 标识那个蓝),#2932E1。低饱和版用 12% alpha- // 浅底,跟其他 provider 一致。之前误填红色(混淆了百度地图等子产品)。- background: rgba(41, 50, 225, 0.12);- color: #2932E1;+ .provider-card-badge-color(#2932e1);}.provider-card--searxng .provider-card__badge {- background: rgba(33, 86, 137, 0.12);- color: #215689;+ .provider-card-badge-color(#215689);}.provider-card--ollama .provider-card__badge {- background: rgba(70, 70, 70, 0.12);- color: #464646;+ .provider-card-badge-color(#464646);}.provider-card--keenable .provider-card__badge {- background: rgba(20, 158, 130, 0.12);- color: #149E82;+ .provider-card-badge-color(#149e82);}.provider-card--zhipu .provider-card__badge {- background: rgba(37, 99, 235, 0.12);- color: #2563EB;+ .provider-card-badge-color(#2563eb);}.provider-card__body {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- gap: 4px;+ .provider-card-body();}.provider-card__header {- display: flex;- align-items: center;- gap: 6px;- min-width: 0;+ .provider-card-header();}.provider-card__title {- flex: 1;- min-width: 0;- margin: 0;- font-size: 14px;- font-weight: 600;- line-height: 1.4;- color: var(--td-text-color-primary);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ .provider-card-title();}.provider-card__more {- flex-shrink: 0;- color: var(--td-text-color-placeholder);- padding: 2px;- opacity: 0;- transition: opacity 0.15s ease;-- &:hover,- &:focus-visible {- background: var(--td-bg-color-secondarycontainer);- color: var(--td-text-color-primary);- }+ .provider-card-more();}.provider-card:hover .provider-card__more,@@ -967,14 +853,7 @@ onMounted(async () => {}.provider-card__subtitle {- display: flex;- align-items: center;- flex-wrap: wrap;- gap: 4px;- font-size: 12px;- line-height: 1.4;- color: var(--td-text-color-secondary);- min-width: 0;+ .provider-card-subtitle();}.provider-card__type {@@ -994,7 +873,7 @@ onMounted(async () => {.provider-card__url {font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.4;color: var(--td-text-color-placeholder);white-space: nowrap;@@ -1008,7 +887,7 @@ onMounted(async () => {text-align: center;:deep(.t-empty__description) {- font-size: 14px;+ font-size: var(--app-text-base);color: var(--td-text-color-placeholder);margin-bottom: 16px;}@@ -1029,7 +908,7 @@ onMounted(async () => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1045,7 +924,7 @@ onMounted(async () => {.form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -1059,7 +938,7 @@ onMounted(async () => {:deep(.t-textarea),:deep(.t-input-number) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}// 隐藏 t-form 默认的 form-item 容器 — 我们走自定义 .form-item / .form-label。@@ -1075,7 +954,7 @@ onMounted(async () => {// ---- footer-left 测试按钮的状态 icon(与 ModelEditorDialog/MCP 同款) ----.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -1111,7 +990,7 @@ onMounted(async () => {}.header-icon__text {- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;letter-spacing: 0.02em;}@@ -1120,28 +999,28 @@ onMounted(async () => {display: inline-flex;align-items: center;gap: 4px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-brand-color);text-decoration: none;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover {color: var(--td-brand-color-active);}.link-icon {- font-size: 14px;+ font-size: var(--app-text-base);}&--inline {margin-left: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;vertical-align: baseline;.link-icon {- font-size: 12px;+ font-size: var(--app-text-sm);}}}@@ -1159,7 +1038,7 @@ onMounted(async () => {// 彩色 logo 时给 header-icon 容器一个白底 + 1px 边,避免品牌色浅底压在// 彩色图标上影响对比度。.websearch-drawer .setting-drawer__header-icon:has(.header-icon__img) {- background: var(--td-bg-color-container, #fff);+ background: var(--td-bg-color-container);box-shadow: inset 0 0 0 1px var(--td-component-stroke);}diff --git a/frontend/src/views/settings/components/McpMetadataPanel.vue b/frontend/src/views/settings/components/McpMetadataPanel.vueindex 215ae5ef5..1892acd92 100644--- a/frontend/src/views/settings/components/McpMetadataPanel.vue+++ b/frontend/src/views/settings/components/McpMetadataPanel.vue@@ -177,7 +177,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false).form-desc {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -207,7 +207,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false)align-items: center;gap: 4px 10px;margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;color: var(--td-text-color-secondary);}@@ -226,7 +226,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false).snapshot-meta__docs {font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;}@@ -252,7 +252,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false)padding: 0 !important;width: 400px;max-width: calc(100vw - 24px);- border-radius: 12px !important;+ border-radius: var(--app-radius-xl) !important;background: var(--td-bg-color-container) !important;border: 0.5px solid var(--td-component-stroke) !important;box-shadow:@@ -268,7 +268,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false)}.server-docs-popup__title {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;color: var(--td-text-color-primary);}@@ -277,7 +277,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false); emit('synced', false).server-docs-popup pre {margin: 8px 0 0;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;color: var(--td-text-color-secondary);white-space: pre-wrap;diff --git a/frontend/src/views/settings/components/McpServiceDialog.vue b/frontend/src/views/settings/components/McpServiceDialog.vueindex 3478edd03..50cfc57ee 100644--- a/frontend/src/views/settings/components/McpServiceDialog.vue+++ b/frontend/src/views/settings/components/McpServiceDialog.vue@@ -1028,7 +1028,7 @@ const handleClose = () => {gap: 8px;min-width: 0;color: var(--td-text-color-placeholder);- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;/* Only the steps that draw a connector need to absorb the leftover width. */&:not(:last-child) {@@ -1063,7 +1063,7 @@ const handleClose = () => {&:focus-visible {outline: 2px solid var(--td-brand-color);outline-offset: 2px;- border-radius: 4px;+ border-radius: var(--app-radius-xs);}}}@@ -1077,7 +1077,7 @@ const handleClose = () => {flex-shrink: 0;border: 1px solid currentColor;border-radius: 50%;- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 600;line-height: 1;@@ -1096,7 +1096,7 @@ const handleClose = () => {.mcp-step__title {overflow: hidden;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;text-overflow: ellipsis;white-space: nowrap;@@ -1175,7 +1175,7 @@ const handleClose = () => {border: none;background: none;cursor: pointer;- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;color: var(--td-text-color-primary);@@ -1196,13 +1196,13 @@ const handleClose = () => {}&__textarea :deep(textarea) {- font-family: var(--td-font-family-mono, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);}&__error {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-error-color);}@@ -1236,7 +1236,7 @@ const handleClose = () => {.oauth-hint {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);line-height: 1.5;}@@ -1244,7 +1244,7 @@ const handleClose = () => {.form-label {display: block;margin-bottom: 6px;- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);line-height: 1.4;@@ -1260,7 +1260,7 @@ const handleClose = () => {.form-desc {margin: 4px 0 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-placeholder);@@ -1274,7 +1274,7 @@ const handleClose = () => {:deep(.t-textarea),:deep(.t-input-number) {width: 100%;- font-size: 13px;+ font-size: var(--app-text-md);}// 隐藏 t-form 默认 form-item 容器 — 走自定义 .form-item / .form-label@@ -1290,7 +1290,7 @@ const handleClose = () => {padding: 3px;background: var(--td-bg-color-component);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);}.source-option {@@ -1301,13 +1301,13 @@ const handleClose = () => {height: 28px;background: transparent;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);cursor: pointer;font-family: inherit;- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);line-height: 1;- transition: all 0.15s ease;+ transition: all var(--app-motion-fast) ease;&:hover:not(.is-active) {color: var(--td-text-color-primary);@@ -1324,7 +1324,7 @@ const handleClose = () => {}.source-option__icon {- font-size: 14px;+ font-size: var(--app-text-base);flex-shrink: 0;}@@ -1358,14 +1358,14 @@ const handleClose = () => {}.number-input__unit {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);user-select: none;}// ---- footer-left 测试按钮的状态 icon ----.status-icon {- font-size: 16px;+ font-size: var(--app-text-xl);flex-shrink: 0;&.available {@@ -1384,7 +1384,7 @@ const handleClose = () => {padding: 0 6px;margin-left: 6px;height: 16px;- font-size: 10px;+ font-size: var(--app-text-2xs);font-weight: 500;border-radius: 3px;diff --git a/frontend/src/views/settings/components/McpToolsList.vue b/frontend/src/views/settings/components/McpToolsList.vueindex 48c61349d..4b6e763c2 100644--- a/frontend/src/views/settings/components/McpToolsList.vue+++ b/frontend/src/views/settings/components/McpToolsList.vue@@ -172,14 +172,14 @@ onBeforeUnmount(() => { generation++; emit('busy', false) }).tool-row { padding: 14px 0; min-width: 0; border-bottom: 1px solid var(--td-component-stroke); }.tool-row:last-child { border-bottom: 0; padding-bottom: 0; }.tool-heading { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; }-.tool-name { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }+.tool-name { min-width: 0; font-size: var(--app-text-md); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }.tool-details {flex-shrink: 0;padding: 0;border: 0;background: transparent;font: inherit;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.7;color: var(--td-text-color-placeholder);cursor: pointer;@@ -189,7 +189,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) }).tool-details:focus-visible { color: var(--td-brand-color); }.tool-description {margin: 6px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.65;color: var(--td-text-color-secondary);overflow-wrap: anywhere;@@ -200,8 +200,8 @@ onBeforeUnmount(() => { generation++; emit('busy', false) })overflow: hidden;}.tool-controls { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }-.tool-control { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 20px; color: var(--td-text-color-secondary); cursor: pointer; }-.tools-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; color: var(--td-text-color-secondary); }+.tool-control { display: inline-flex; align-items: center; gap: 8px; font-size: var(--app-text-sm); line-height: 20px; color: var(--td-text-color-secondary); cursor: pointer; }+.tools-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: var(--app-text-sm); color: var(--td-text-color-secondary); }</style><!-- t-popup attaches to body; z-index must sit above SettingDrawer (2500). -->@@ -213,10 +213,10 @@ onBeforeUnmount(() => { generation++; emit('busy', false) })padding: 0 !important;width: 400px;max-width: calc(100vw - 24px);- border-radius: 8px !important;+ border-radius: var(--app-radius-md) !important;background: var(--td-bg-color-container) !important;border: 1px solid var(--td-component-stroke) !important;- box-shadow: var(--td-shadow-2, 0 3px 14px 2px rgba(0, 0, 0, 0.05)) !important;+ box-shadow: var(--td-shadow-2) !important;}}@@ -234,7 +234,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) })border-bottom: 2px solid transparent;background: transparent;font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.2;color: var(--td-text-color-secondary);cursor: pointer;@@ -258,7 +258,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) }).tool-detail__desc {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.65;color: var(--td-text-color-secondary);white-space: pre-wrap;@@ -267,7 +267,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) }).tool-detail__empty {margin: 0;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}@@ -293,7 +293,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) })}.tool-detail__param-title span {- font-size: 11px;+ font-size: var(--app-text-xs);color: var(--td-text-color-secondary);}@@ -303,7 +303,7 @@ onBeforeUnmount(() => { generation++; emit('busy', false) }).tool-detail__param p {margin: 4px 0 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;color: var(--td-text-color-secondary);white-space: pre-wrap;diff --git a/frontend/src/views/settings/modelUsageDetails.test.ts b/frontend/src/views/settings/modelUsageDetails.test.tsindex 48f4f4b2a..c11720e16 100644--- a/frontend/src/views/settings/modelUsageDetails.test.ts+++ b/frontend/src/views/settings/modelUsageDetails.test.ts@@ -35,9 +35,10 @@ test('referenced knowledge bases and agents open their relevant configuration pa/editingAgent\.value\?\.id === agent\.id[\s\S]*focusAgentEditorSection\(requestedSection\)[\s\S]*editorVisible\.value = false\s*await nextTick\(\)\s*if \(generation !== editOpenGeneration\) return[\s\S]*editorVisible\.value = true/,)assert.match(agentListSource, /const agent = resolveAgentForEdit\([\s\S]*if \(!agent\) return[\s\S]*router\.replace/)- assert.match(agentEditorSource, /v-if="editorInitializing"[\s\S]*:disabled="editorInitializing"/)+ // 加载遮罩由 SettingsModalShell 的 :loading 渲染(旧写法是模板内 v-if),两种都接受+ assert.match(agentEditorSource, /(?:v-if|:loading)="editorInitializing"[\s\S]*:disabled="editorInitializing"/)assert.match(agentEditorSource, /generation !== editorInitializationGeneration \|\| !props\.visible/)- assert.match(knowledgeBaseEditorSource, /v-if="loading"[\s\S]*:disabled="loading"/)+ assert.match(knowledgeBaseEditorSource, /(?:v-if|:loading)="loading"[\s\S]*:disabled="loading"/)assert.match(knowledgeBaseEditorSource, /isCurrentKBLoad\(generation, kbId\)/)assert.match(knowledgeBaseEditorSource, /generation !== kbEditorLoadGeneration \|\| !props\.visible/)assert.match(knowledgeBaseEditorSource, /setTimeout\(\(\) => \{\s*if \(props\.visible\) return\s*resetState\(\)/)diff --git a/frontend/src/views/system/CreateUserDialog.vue b/frontend/src/views/system/CreateUserDialog.vueindex 181dd47ef..24250b0f6 100644--- a/frontend/src/views/system/CreateUserDialog.vue+++ b/frontend/src/views/system/CreateUserDialog.vue@@ -15,7 +15,7 @@--><template><t-popup :visible="visible" trigger="click" placement="left-top" :destroy-on-close="!locked"- overlay-class-name="system-admin-action-popup-overlay" @visible-change="onVisibleChange">+ overlay-class-name="wk-popover system-admin-action-popup-overlay" @visible-change="onVisibleChange"><span class="system-admin-action-popup-anchor"><slot /></span>@@ -297,7 +297,7 @@ function acknowledge() {gap: 0;padding: 2px 0 0;border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-page);overflow: hidden;}@@ -315,13 +315,13 @@ function acknowledge() {}.create-user-reveal-label {- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 16px;color: var(--td-text-color-secondary);}.create-user-reveal-value {- font-size: 14px;+ font-size: var(--app-text-base);line-height: 20px;color: var(--td-text-color-primary);word-break: break-all;@@ -329,8 +329,8 @@ function acknowledge() {.create-user-reveal-value--mono {margin: 0;- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);- font-size: 12px;+ font-family: var(--td-font-family-mono);+ font-size: var(--app-text-sm);line-height: 18px;white-space: pre-wrap;user-select: all;diff --git a/frontend/src/views/system/PlatformAPIKeys.vue b/frontend/src/views/system/PlatformAPIKeys.vueindex 0100e59d5..0ea919568 100644--- a/frontend/src/views/system/PlatformAPIKeys.vue+++ b/frontend/src/views/system/PlatformAPIKeys.vue@@ -355,36 +355,31 @@ async function copyToken() {onMounted(reload)</script>-<style scoped>+<style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.platform-api-keys {width: 100%;}.section-header {- margin-bottom: 20px;+ .settings-section-header();}.section-header h2 {margin: 0 0 8px;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}-.section-description {- margin: 0;- color: var(--td-text-color-secondary);- font-size: 14px;- line-height: 1.5;-}-.security-alert {margin-bottom: 20px;}.keys-section {border: 1px solid var(--td-component-border);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);overflow: hidden;}@@ -396,7 +391,7 @@ onMounted(reload)gap: 8px;min-height: 120px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);}.keys-state--empty {@@ -426,14 +421,14 @@ onMounted(reload).api-key-table th {background: var(--td-bg-color-secondarycontainer);color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 1.4;}.api-key-table td {color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.45;}@@ -495,7 +490,7 @@ onMounted(reload).api-key-capability-popup__title {margin-bottom: 10px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.4;}@@ -523,7 +518,7 @@ onMounted(reload).api-key-capability-block__title {margin-bottom: 6px;color: var(--td-text-color-primary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 600;line-height: 1.4;}@@ -539,10 +534,10 @@ onMounted(reload)align-items: center;height: 22px;padding: 0 8px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: color-mix(in srgb, var(--td-success-color) 10%, var(--td-bg-color-container));color: var(--td-success-color);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;line-height: 20px;white-space: nowrap;@@ -552,7 +547,7 @@ onMounted(reload)display: block;min-width: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;overflow: hidden;text-overflow: ellipsis;@@ -564,7 +559,7 @@ onMounted(reload)max-width: 100%;color: var(--td-text-color-secondary);font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;overflow: hidden;text-overflow: ellipsis;@@ -575,7 +570,7 @@ onMounted(reload).api-key-meta {display: block;min-width: 0;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;white-space: nowrap;}@@ -583,7 +578,7 @@ onMounted(reload).api-key-date {display: block;font-family: var(--app-font-family-mono);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;white-space: nowrap;color: var(--td-text-color-secondary);@@ -618,7 +613,7 @@ onMounted(reload)align-items: center;gap: 8px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;line-height: 1.45;}@@ -633,7 +628,7 @@ onMounted(reload)}.api-key-dialog-row :deep(.t-input) {- border-radius: 4px;+ border-radius: var(--app-radius-xs);background-color: var(--td-bg-color-secondarycontainer);border-color: transparent;box-shadow: none !important;@@ -648,7 +643,7 @@ onMounted(reload).scope-hint {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 18px;}@@ -676,7 +671,7 @@ onMounted(reload)gap: 12px;min-height: 24px;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}diff --git a/frontend/src/views/system/ResetPasswordDialog.vue b/frontend/src/views/system/ResetPasswordDialog.vueindex 35ab99c48..2deae7b4a 100644--- a/frontend/src/views/system/ResetPasswordDialog.vue+++ b/frontend/src/views/system/ResetPasswordDialog.vue@@ -8,7 +8,7 @@--><template><t-popup :visible="visible && active" trigger="click" placement="left-top" destroy-on-close- overlay-class-name="system-admin-action-popup-overlay" @visible-change="onVisibleChange">+ overlay-class-name="wk-popover system-admin-action-popup-overlay" @visible-change="onVisibleChange"><span class="system-admin-action-popup-anchor"><slot /></span>diff --git a/frontend/src/views/system/RuntimeQueues.vue b/frontend/src/views/system/RuntimeQueues.vueindex 69dea611e..1acd005cc 100644--- a/frontend/src/views/system/RuntimeQueues.vue+++ b/frontend/src/views/system/RuntimeQueues.vue@@ -988,7 +988,7 @@ onUnmounted(() => {gap: 10px;color: var(--td-text-color-secondary);font-variant-numeric: tabular-nums;- font-size: 12px;+ font-size: var(--app-text-sm);}.rq-header {@@ -1001,7 +1001,7 @@ onUnmounted(() => {h2 {margin: 0 0 8px;color: var(--td-text-color-primary);- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;line-height: 1.3;letter-spacing: -0.01em;@@ -1011,7 +1011,7 @@ onUnmounted(() => {max-width: 560px;margin: 0;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.6;text-wrap: pretty;}@@ -1033,14 +1033,14 @@ onUnmounted(() => {height: 20px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s cubic-bezier(0.16, 1, 0.3, 1);+ transition: color var(--app-motion-base) cubic-bezier(0.16, 1, 0.3, 1), background var(--app-motion-base) cubic-bezier(0.16, 1, 0.3, 1);:deep(.t-icon) {- font-size: 12px;+ font-size: var(--app-text-sm);}&:hover:not(:disabled) {@@ -1059,17 +1059,7 @@ onUnmounted(() => {}.rq-refresh-spin {- animation: rq-refresh-rotate 0.8s linear infinite;-}--@keyframes rq-refresh-rotate {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}.rq-auto-refresh {@@ -1078,7 +1068,7 @@ onUnmounted(() => {gap: 7px;min-height: 32px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);white-space: nowrap;cursor: pointer;}@@ -1088,7 +1078,7 @@ onUnmounted(() => {height: 6px;border-radius: 50%;background: var(--td-text-color-placeholder);- transition: background-color 0.2s ease, box-shadow 0.2s ease;+ transition: background-color var(--app-motion-base) ease, box-shadow var(--app-motion-base) ease;&--active {background: var(--td-success-color);@@ -1108,7 +1098,7 @@ onUnmounted(() => {gap: 1px;overflow: hidden;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-component-stroke);:deep(.t-skeleton) {@@ -1125,7 +1115,7 @@ onUnmounted(() => {min-height: 112px;padding: 20px 22px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-secondarycontainer);}@@ -1134,7 +1124,7 @@ onUnmounted(() => {width: 44px;height: 44px;place-items: center;- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-text-color-secondary);background: var(--td-bg-color-container);}@@ -1145,14 +1135,14 @@ onUnmounted(() => {gap: 5px;strong {- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;}span {max-width: 560px;color: var(--td-text-color-secondary);- font-size: 14px;+ font-size: var(--app-text-base);line-height: 1.55;}}@@ -1169,7 +1159,7 @@ onUnmounted(() => {gap: 28px;margin-bottom: 30px;padding: 13px 16px;- border-radius: 8px;+ border-radius: var(--app-radius-md);background: var(--td-bg-color-secondarycontainer);}@@ -1179,7 +1169,7 @@ onUnmounted(() => {align-items: center;gap: 9px;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 600;white-space: nowrap;}@@ -1189,10 +1179,10 @@ onUnmounted(() => {width: 28px;height: 28px;place-items: center;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-brand-color);background: var(--td-bg-color-container);- font-size: 15px;+ font-size: var(--app-text-lg);}.rq-overview-metrics {@@ -1214,7 +1204,7 @@ onUnmounted(() => {.rq-metric-value {color: var(--td-text-color-primary);- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;line-height: 1.1;letter-spacing: -0.02em;@@ -1223,7 +1213,7 @@ onUnmounted(() => {.rq-metric-label {color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.35;white-space: nowrap;}@@ -1246,7 +1236,7 @@ onUnmounted(() => {gap: 8px;margin: 0 0 6px;color: var(--td-text-color-primary);- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;user-select: none;@@ -1271,7 +1261,7 @@ onUnmounted(() => {p {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;}}@@ -1280,9 +1270,9 @@ onUnmounted(() => {flex-shrink: 0;margin-top: 2px;padding: 4px 10px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;white-space: nowrap;background: var(--td-bg-color-secondarycontainer);@@ -1301,7 +1291,7 @@ onUnmounted(() => {gap: 8px;padding: 16px 18px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);}@@ -1314,7 +1304,7 @@ onUnmounted(() => {.rq-pool-name {color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 1.35;}@@ -1331,7 +1321,7 @@ onUnmounted(() => {.rq-pool-desc {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;text-wrap: pretty;}@@ -1340,7 +1330,7 @@ onUnmounted(() => {display: block;margin-top: 4px;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.4;}@@ -1358,7 +1348,7 @@ onUnmounted(() => {p {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;}}@@ -1369,7 +1359,7 @@ onUnmounted(() => {gap: 5px;flex-shrink: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);font-variant-numeric: tabular-nums;}@@ -1380,7 +1370,7 @@ onUnmounted(() => {margin-bottom: 14px;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);}@@ -1390,9 +1380,9 @@ onUnmounted(() => {width: 28px;height: 28px;place-items: center;- border-radius: 8px;+ border-radius: var(--app-radius-md);color: var(--td-error-color);- font-size: 16px;+ font-size: var(--app-text-xl);background: color-mix(in srgb, var(--td-error-color) 10%, transparent);}@@ -1407,7 +1397,7 @@ onUnmounted(() => {.rq-failed-notice__title {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;line-height: 1.45;font-variant-numeric: tabular-nums;@@ -1416,14 +1406,14 @@ onUnmounted(() => {.rq-failed-notice__desc {margin: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}.rq-failed-guide-desc {margin: 0;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.6;}@@ -1448,10 +1438,10 @@ onUnmounted(() => {color: var(--td-text-color-secondary);cursor: pointer;font: inherit;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.2;white-space: nowrap;- transition: color 0.15s ease;+ transition: color var(--app-motion-fast) ease;&:hover:not(.is-active) {color: var(--td-text-color-primary);@@ -1487,7 +1477,7 @@ onUnmounted(() => {.rq-task-state-option__count {flex-shrink: 0;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);font-weight: 500;line-height: 1;font-variant-numeric: tabular-nums;@@ -1528,7 +1518,7 @@ onUnmounted(() => {justify-content: center;gap: 10px;color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);}.rq-failed-error-state {@@ -1538,9 +1528,9 @@ onUnmounted(() => {gap: 12px;padding: 12px 14px;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);color: var(--td-text-color-secondary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;background: var(--td-bg-color-container);}@@ -1553,9 +1543,9 @@ onUnmounted(() => {flex-direction: column;gap: 10px;border: 1px dashed var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}.rq-queue-cell {@@ -1568,7 +1558,7 @@ onUnmounted(() => {.rq-queue-name {overflow: hidden;color: var(--td-text-color-primary);- font-size: 14px;+ font-size: var(--app-text-base);font-weight: 500;line-height: 1.35;text-overflow: ellipsis;@@ -1581,7 +1571,7 @@ onUnmounted(() => {-webkit-box-orient: vertical;-webkit-line-clamp: 2;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;}@@ -1633,7 +1623,7 @@ onUnmounted(() => {height: 18px;padding: 0;color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);}.rq-backlog {@@ -1644,7 +1634,7 @@ onUnmounted(() => {small {color: var(--td-text-color-placeholder);- font-size: 11px;+ font-size: var(--app-text-xs);white-space: nowrap;}}@@ -1654,7 +1644,7 @@ onUnmounted(() => {align-items: center;gap: 6px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);white-space: nowrap;i {@@ -1690,13 +1680,13 @@ onUnmounted(() => {.data-table-shell.rq-table-shell {overflow-x: auto;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background-color: var(--td-bg-color-container);&:deep(thead th) {height: 40px;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;letter-spacing: 0.01em;white-space: nowrap;@@ -1707,7 +1697,7 @@ onUnmounted(() => {height: 56px;padding-top: 10px;padding-bottom: 10px;- font-size: 14px;+ font-size: var(--app-text-base);font-variant-numeric: tabular-nums;}@@ -1729,14 +1719,14 @@ onUnmounted(() => {.rq-footnote {margin: 12px 0 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;}.rq-failed-list-panel {overflow: hidden;border: 1px solid var(--td-component-stroke);- border-radius: 10px;+ border-radius: var(--app-radius-lg);background: var(--td-bg-color-container);}@@ -1767,21 +1757,21 @@ onUnmounted(() => {gap: 6px;min-width: 0;color: var(--td-text-color-secondary);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;}.rq-failed-row-type {color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.rq-task-state-pill {padding: 1px 6px;- border-radius: 999px;+ border-radius: var(--app-radius-pill);color: var(--td-text-color-secondary);- font-size: 11px;+ font-size: var(--app-text-xs);background: var(--td-bg-color-secondarycontainer);&--active {@@ -1832,7 +1822,7 @@ onUnmounted(() => {dt {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;white-space: nowrap;}@@ -1842,7 +1832,7 @@ onUnmounted(() => {overflow: hidden;color: var(--td-text-color-secondary);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.45;text-overflow: ellipsis;white-space: nowrap;@@ -1852,17 +1842,17 @@ onUnmounted(() => {.rq-failed-row-unknown {margin: 2px 0 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;}.rq-failed-row-error {margin: 8px 0 0;padding: 8px 10px;- border-radius: 6px;+ border-radius: var(--app-radius-sm);color: var(--td-text-color-primary);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;- font-size: 11px;+ font-size: var(--app-text-xs);line-height: 1.55;overflow-wrap: anywhere;white-space: pre-wrap;@@ -1897,7 +1887,7 @@ onUnmounted(() => {.rq-failed-list-status {color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.5;text-align: center;font-variant-numeric: tabular-nums;diff --git a/frontend/src/views/system/SystemAuditLog.vue b/frontend/src/views/system/SystemAuditLog.vueindex 912cebfd1..cc9bd611f 100644--- a/frontend/src/views/system/SystemAuditLog.vue+++ b/frontend/src/views/system/SystemAuditLog.vue@@ -617,6 +617,8 @@ onUnmounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.system-audit-log {width: 100%;display: flex;@@ -625,7 +627,7 @@ onUnmounted(() => {}.section-header {- margin-bottom: 20px;+ .settings-section-header();}.audit-page-header {@@ -637,18 +639,11 @@ onUnmounted(() => {.audit-page-header h2 {margin: 0 0 8px;- font-size: 20px;+ font-size: var(--app-text-3xl);font-weight: 600;color: var(--td-text-color-primary);}-.section-description {- margin: 0;- color: var(--td-text-color-secondary);- font-size: 14px;- line-height: 1.5;-}-.rq-refresh {display: inline-flex;align-items: center;@@ -658,14 +653,14 @@ onUnmounted(() => {height: 20px;padding: 0;border: none;- border-radius: 6px;+ border-radius: var(--app-radius-sm);background: transparent;color: var(--td-text-color-placeholder);cursor: pointer;- transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s cubic-bezier(0.16, 1, 0.3, 1);+ transition: color var(--app-motion-base) cubic-bezier(0.16, 1, 0.3, 1), background var(--app-motion-base) cubic-bezier(0.16, 1, 0.3, 1);:deep(.t-icon) {- font-size: 12px;+ font-size: var(--app-text-sm);}&:hover:not(:disabled) {@@ -684,17 +679,7 @@ onUnmounted(() => {}.rq-refresh-spin {- animation: rq-refresh-rotate 0.8s linear infinite;-}--@keyframes rq-refresh-rotate {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(360deg);- }+ animation: wk-spin 0.8s linear infinite;}.audit-page-body {@@ -741,13 +726,13 @@ onUnmounted(() => {justify-content: center;gap: 10px;padding: 12px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-end-hint {text-align: center;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-disabled);padding: 8px 0 14px;margin: 0;@@ -760,12 +745,12 @@ onUnmounted(() => {line-height: 1.3;.audit-time-date {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}.audit-time-clock {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);font-variant-numeric: tabular-nums;@@ -780,7 +765,7 @@ onUnmounted(() => {min-width: 0;.audit-actor-name {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);overflow: hidden;@@ -789,7 +774,7 @@ onUnmounted(() => {}.audit-actor-role {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}}@@ -803,17 +788,17 @@ onUnmounted(() => {padding: 2px 0;.audit-target-key {- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 500;color: var(--td-text-color-primary);word-break: break-all;- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);}.audit-target-diff {- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);- font-family: var(--td-font-family-mono, monospace);+ font-family: var(--td-font-family-mono);word-break: break-all;line-height: 1.4;}@@ -840,7 +825,7 @@ onUnmounted(() => {dt {margin: 0;color: var(--td-text-color-placeholder);- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.45;white-space: nowrap;}@@ -848,7 +833,7 @@ onUnmounted(() => {dd {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;word-break: break-all;}@@ -857,12 +842,12 @@ onUnmounted(() => {.audit-detail-json {margin: 0;padding: 12px 14px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.55;color: var(--td-text-color-primary);background: var(--td-bg-color-container);border: 1px solid var(--td-component-stroke);- border-radius: 8px;+ border-radius: var(--app-radius-md);white-space: pre-wrap;word-break: break-all;max-height: min(420px, 50vh);@@ -870,18 +855,18 @@ onUnmounted(() => {}.mono {- font-family: var(--td-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);+ font-family: var(--td-font-family-mono);}.data-table-shell {overflow-x: auto;- border-radius: 10px;+ border-radius: var(--app-radius-lg);border: 1px solid var(--td-component-stroke);background-color: var(--td-bg-color-container);&:deep(thead th) {font-weight: 600;- font-size: 13px;+ font-size: var(--app-text-md);background-color: var(--td-bg-color-secondarycontainer) !important;}diff --git a/frontend/src/views/system/SystemSettings.vue b/frontend/src/views/system/SystemSettings.vueindex 88cb5f330..67acbe942 100644--- a/frontend/src/views/system/SystemSettings.vue+++ b/frontend/src/views/system/SystemSettings.vue@@ -1116,26 +1116,14 @@ onUnmounted(() => {</script><style lang="less" scoped>+@import (reference) '@/components/css/settings-section.less';+.system-settings {width: 100%;}.section-header {- margin-bottom: 24px;-- h2 {- font-size: 20px;- font-weight: 600;- color: var(--td-text-color-primary);- margin: 0;- }-- .section-description {- font-size: 14px;- color: var(--td-text-color-secondary);- margin: 8px 0 0;- line-height: 1.5;- }+ .settings-section-header();}.section-header__titlewrap {@@ -1150,7 +1138,7 @@ onUnmounted(() => {justify-content: center;padding: 2px;border: none;- border-radius: 4px;+ border-radius: var(--app-radius-xs);background: transparent;color: var(--td-text-color-placeholder);cursor: help;@@ -1171,14 +1159,14 @@ onUnmounted(() => {.hint-popover__title {margin: 0;color: var(--td-text-color-primary);- font-size: 13px;+ font-size: var(--app-text-md);font-weight: 600;}.hint-popover__list {margin: 0;padding: 0 0 0 18px;- font-size: 12px;+ font-size: var(--app-text-sm);line-height: 1.6;color: var(--td-text-color-secondary);list-style: disc;@@ -1215,7 +1203,7 @@ onUnmounted(() => {p {margin: 0;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.5;color: var(--td-text-color-secondary);}@@ -1230,7 +1218,7 @@ onUnmounted(() => {grid-template-columns: minmax(0, 1fr) 280px;gap: 24px;padding: 10px 16px;- font-size: 12px;+ font-size: var(--app-text-sm);font-weight: 500;color: var(--td-text-color-secondary);background: var(--td-bg-color-secondarycontainer);@@ -1261,12 +1249,12 @@ onUnmounted(() => {}.setting-label {- font-size: 14px;+ font-size: var(--app-text-base);}.desc {max-width: 620px;- font-size: 12px;+ font-size: var(--app-text-sm);}.setting-control {@@ -1296,7 +1284,7 @@ onUnmounted(() => {gap: 5px;flex-shrink: 0;min-width: 52px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-secondary);}@@ -1327,7 +1315,7 @@ onUnmounted(() => {gap: 8px;padding: 60px 0;color: var(--td-text-color-placeholder);- font-size: 13px;+ font-size: var(--app-text-md);}// Skeleton mirrors GeneralSettings.vue 1:1 so the two panes feel like@@ -1344,21 +1332,11 @@ onUnmounted(() => {}.setting-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- padding: 20px 0;- border-bottom: 1px solid var(--td-component-stroke);-- &:last-child {- border-bottom: none;- }+ .setting-row();}.setting-info {- flex: 1;- max-width: 65%;- padding-right: 24px;+ .setting-info();}.setting-label {@@ -1366,7 +1344,7 @@ onUnmounted(() => {align-items: center;flex-wrap: wrap;gap: 6px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 500;color: var(--td-text-color-primary);margin-bottom: 4px;@@ -1378,7 +1356,7 @@ onUnmounted(() => {}.desc {- font-size: 13px;+ font-size: var(--app-text-md);color: var(--td-text-color-secondary);margin: 0;line-height: 1.5;@@ -1387,14 +1365,12 @@ onUnmounted(() => {.setting-meta {margin-top: 6px;- font-size: 12px;+ font-size: var(--app-text-sm);color: var(--td-text-color-placeholder);}.setting-control {- flex-shrink: 0;- min-width: 280px;- display: flex;+ .setting-control();flex-direction: column;align-items: flex-end;gap: 6px;@@ -1434,7 +1410,7 @@ onUnmounted(() => {height: 32px;padding: 0 12px;border: 1px solid transparent;- border-radius: 6px;+ border-radius: var(--app-radius-sm);}.password-reset-trigger {@@ -1464,7 +1440,7 @@ onUnmounted(() => {}.settings-group--runtime {- border-radius: 8px;+ border-radius: var(--app-radius-md);.setting-row {display: flex;diff --git a/frontend/src/views/system/systemAdminDialog.less b/frontend/src/views/system/systemAdminDialog.lessindex 9441db8ea..11a9dd910 100644--- a/frontend/src/views/system/systemAdminDialog.less+++ b/frontend/src/views/system/systemAdminDialog.less@@ -5,22 +5,6 @@.system-admin-action-popup-overlay {z-index: 3050 !important;- .t-popup__content {- padding: 14px 16px !important;- min-width: 300px;- max-width: min(360px, calc(100vw - 24px));- max-height: min(480px, calc(100vh - 96px));- overflow-y: auto;- border-radius: 12px !important;- background: var(--td-bg-color-container) !important;- border: 0.5px solid var(--td-component-stroke) !important;- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.03),- 0 2px 4px rgba(0, 0, 0, 0.04),- 0 8px 24px rgba(0, 0, 0, 0.1) !important;- backdrop-filter: blur(20px) saturate(180%) !important;- -webkit-backdrop-filter: blur(20px) saturate(180%) !important;- }}:root[theme-mode='dark'] .system-admin-action-popup-overlay .t-popup__content {@@ -43,7 +27,7 @@.system-admin-action-popup-title {margin: 0 0 8px;- font-size: 15px;+ font-size: var(--app-text-lg);font-weight: 600;line-height: 1.35;color: var(--td-text-color-primary);@@ -51,7 +35,7 @@.system-admin-action-popup-hint {margin: 0 0 12px;- font-size: 13px;+ font-size: var(--app-text-md);line-height: 1.55;color: var(--td-text-color-secondary);}