This commit is contained in:
xuhd committed 2026-06-16 17:26:19 +08:00
commit 4511c0dee7
282 files changed
+27745 -5360

No files matched your search

+135 -2
View File
@@ -317,6 +317,49 @@
font-weight: 300;
}
/* 浅蓝色主题 —— 详见 docs/ui规范-浅蓝/浅蓝色ui规范.md。
第三套主题,由 next-themes 在 <html> 加 `.lightblue` 类触发。
只覆盖颜色 token(圆角/间距沿用 :root),实现整站换肤;
主色 #0062D9(ZS-002 深色基准),浅底 #EAF4FF,正文 #3D3D3D。 */
.lightblue {
--workspace-brand: #0062d9;
--workspace-brand-foreground: #ffffff;
--brand-200: #eaf4ff;
--brand-900: #0062d9;
--brand-950: #004ab3;
--background: #ffffff;
--foreground: #3d3d3d;
--card: #ffffff;
--card-foreground: #3d3d3d;
--popover: #ffffff;
--popover-foreground: #3d3d3d;
--primary: #0062d9;
--primary-foreground: #ffffff;
--secondary: #f4f9ff;
--secondary-foreground: #0056c6;
--muted: #f3f5f8;
--muted-foreground: #7f7f7f;
--accent: #eaf4ff;
--accent-foreground: #0062d9;
--destructive: #f5222d;
--border: #dbdbdb;
--input: #dbdbdb;
--ring: rgb(0 98 217 / 0.35);
--chart-1: #0062d9;
--chart-2: #1eb07f;
--chart-3: #ff9900;
--chart-4: #2f9acc;
--chart-5: #f5222d;
--sidebar: #f9fcff;
--sidebar-foreground: #3d3d3d;
--sidebar-primary: #0062d9;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #eaf4ff;
--sidebar-accent-foreground: #0056c6;
--sidebar-border: #e6ebf2;
--sidebar-ring: rgb(0 98 217 / 0.4);
}
@layer base {
* {
@apply border-border outline-ring/50;
@@ -459,6 +502,20 @@
background: var(--background);
}
/* 深色背景换成设计稿深蓝主题底图。background-color 作为图片加载前/超出
* 区域的回落底色。仅 .dark 生效,浅色模式不受影响。
* - .workspace-chat-bg:紧凑模式聊天页(ChatPage 在 compactChrome 下挂)
* - .canvas-writing-bg:AI 写作页(AIWritingPage 根容器)*/
.dark .workspace-chat-bg,
.dark .canvas-writing-bg {
background-color: var(--background);
background-image: url("../assets/img/layout-bg-theme-dark-blue.svg");
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
background-attachment: fixed;
}
.workspace-panel {
border: 1px solid #f0d7d0;
background: #ffffff;
@@ -875,13 +932,89 @@ body {
.strategy-app-header {
background-color: transparent;
background-image: url("../assets/img/red-header.png");
background-size: 100% 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
html.dark .strategy-app-header {
background-image: url("../assets/img/dark-blue-header.svg");
background-image: url("../assets/img/top-bg.svg");
background-size: cover;
}
/* 深色顶栏:居中「CM助手」标题,落在背景图中间的发光梯形基座上。
左右菜单分区各 flex-1 等宽,本元素居中即对齐背景图基座。 */
.header-center-title {
flex: 0 0 auto;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
/* 左右内边距随视口宽度等比缩放,与背景图基座的 background-size:cover 同步,
使两侧菜单在 1080p / 2K / 4K 下都贴齐发光基座边缘。
基准:1920 宽时 155px → 155/1920×100 ≈ 8.07vw。 */
padding: 0 8.07vw;
/* 文字略微上移,贴合基座视觉中心 */
transform: translateY(-6px);
font-family: "Source Han Sans SC", "Noto Sans SC", "Noto Sans S Chinese",
"Microsoft YaHei", sans-serif;
font-size: 26px;
font-weight: 700;
letter-spacing: 4px;
white-space: nowrap;
pointer-events: none;
user-select: none;
/* 白→浅蓝→白 金属质感渐变文字 */
background: linear-gradient(
180deg,
#f9f9fa 0%,
#ffffff 15%,
#d8e5ff 49%,
#ffffff 89%,
#f8fafb 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
filter: drop-shadow(0 0 14px rgba(120, 200, 255, 0.35));
}
/* ── 浅蓝主题:覆盖散落在各处的红色硬编码(CSS 变量管不到的地方)────────── */
html.lightblue .strategy-app-header {
background-image: url("../assets/img/blue-header.png");
}
html.lightblue *::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgb(85 166 254 / 0.82), rgb(0 98 217 / 0.9))
padding-box;
}
html.lightblue .workspace-panel {
border: 1px solid #d6e4f5;
box-shadow:
0 32px 72px -46px rgb(42 70 110 / 0.35),
0 12px 28px -22px rgb(75 120 180 / 0.24);
}
html.lightblue .workspace-user-bubble {
border: 1px solid rgb(255 255 255 / 0.14);
background: linear-gradient(135deg, #55a6fe 0%, #0079fe 58%, #0062d9 100%);
box-shadow:
0 22px 40px -28px rgb(0 98 217 / 0.55),
0 10px 20px -16px rgb(0 54 140 / 0.42);
}
html.lightblue .workspace-assistant-card {
border: 1px solid #d9e6f5;
}
html.lightblue .workspace-assistant-card::before {
background: linear-gradient(180deg, rgb(85 166 254 / 0.92), rgb(0 121 254 / 0.15));
}
html.lightblue .tiptap-writing-editor .ProseMirror ::selection {
background: color-mix(in srgb, #55a6fe 35%, transparent);
}
/* ── 来源上传弹窗:A系统基因库的分段单选条(custom-radio) ─────────────── */