style: 全局 UI 主题皮肤重构与样式模块化

引入 Element Plus 主题定制和主题皮肤 composable,将全局
样式拆分为组件级独立 CSS 文件(侧边栏、顶栏、工作台等),
统一色彩变量和间距规范,重构所有视图和组件样式以适配新
主题系统,优化图表和知识图谱组件视觉表现,提取审计和差
旅报销相关子组件。
This commit is contained in:
caoxiaozhu
2026-05-27 09:17:57 +08:00
parent df49103f23
commit 2dcc72102d
112 changed files with 10983 additions and 8996 deletions

View File

@@ -10,7 +10,7 @@
display: grid;
grid-template-columns: 240px minmax(0, 1fr);
overflow: hidden;
border-radius: 24px;
border-radius: 4px;
background: #ffffff;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.03);
@@ -35,7 +35,7 @@
}
.nav-kicker {
color: #10b981;
color: var(--primary);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.08em;
@@ -70,7 +70,7 @@
display: block;
padding: 10px 14px;
border: 1px solid transparent;
border-radius: 12px;
border-radius: 4px;
background: transparent;
color: #334155;
text-align: left;
@@ -84,9 +84,9 @@
}
.settings-nav-item.active {
background: #ecfdf5;
color: #059669;
border-color: rgba(16, 185, 129, 0.12);
background: var(--primary-soft);
color: var(--primary-active);
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22);
}
.nav-item-copy {
@@ -109,7 +109,7 @@
}
.settings-nav-item.active .nav-item-copy small {
color: #059669;
color: var(--primary-active);
opacity: 0.8;
}
@@ -144,9 +144,9 @@
align-items: center;
min-height: 24px;
padding: 0 10px;
border-radius: 99px;
background: #ecfdf5;
color: #059669;
border-radius: 4px;
background: var(--primary-soft);
color: var(--primary-active);
font-size: 12px;
font-weight: 700;
}
@@ -181,20 +181,20 @@
gap: 8px;
padding: 0 20px;
border: 0;
border-radius: 12px;
background: #10b981;
border-radius: 4px;
background: var(--primary);
color: #ffffff;
font-size: 13px;
font-weight: 700;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.16);
transition: all 0.2s ease;
cursor: pointer;
}
.save-button:hover {
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
background: #059669;
box-shadow: 0 6px 20px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22);
background: var(--primary-hover);
}
.settings-content {
@@ -219,10 +219,10 @@
justify-content: center;
gap: 6px;
padding: 0 12px;
border: 1px solid rgba(16, 185, 129, 0.2);
border-radius: 10px;
background: #ecfdf5;
color: #059669;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22);
border-radius: 4px;
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
font-size: 12.5px;
font-weight: 700;
transition: all 0.2s ease;
@@ -231,10 +231,10 @@
.test-button:hover:not(:disabled) {
transform: translateY(-1px);
border-color: #10b981;
background: #10b981;
border-color: var(--theme-primary);
background: var(--theme-primary);
color: #ffffff;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
box-shadow: 0 4px 12px rgba(58, 124, 165, 0.15);
}
.test-button:disabled {
@@ -259,7 +259,7 @@
gap: 10px;
padding: 0 40px 0 14px;
border: 1px solid #cbd5e1;
border-radius: 12px;
border-radius: 4px;
background: #ffffff;
color: #0f172a;
font-size: 13px;
@@ -287,18 +287,18 @@
.session-picker-trigger:hover,
.session-picker-filter.open .session-picker-trigger {
border-color: #10b981;
border-color: var(--theme-primary);
background: #ffffff;
color: #059669;
color: var(--theme-primary-active);
}
.session-picker-filter.open .session-picker-trigger {
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
box-shadow: 0 0 0 3px var(--theme-focus-ring);
}
.session-picker-filter.open .session-picker-trigger .mdi,
.session-picker-trigger:hover .mdi {
color: #059669;
color: var(--theme-primary-active);
}
.session-picker-popover {
@@ -311,7 +311,7 @@
gap: 12px;
padding: 16px;
border: 1px solid #cbd5e1;
border-radius: 12px;
border-radius: 4px;
background: #ffffff;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
@@ -335,7 +335,7 @@
display: grid;
place-items: center;
border: 0;
border-radius: 8px;
border-radius: 4px;
background: transparent;
color: #64748b;
cursor: pointer;
@@ -360,7 +360,7 @@
align-items: center;
padding: 0 12px;
border: 1px solid #cbd5e1;
border-radius: 8px;
border-radius: 4px;
background: #ffffff;
color: #334155;
font-size: 13px;
@@ -372,9 +372,123 @@
.session-picker-option:hover,
.session-picker-option.active {
border-color: #10b981;
background: #ecfdf5;
color: #059669;
border-color: var(--theme-primary);
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
}
.skin-option-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 12px;
}
.skin-option {
min-height: 104px;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
padding: 16px;
border: 1px solid #d8dee8;
border-radius: 4px;
background: #ffffff;
color: #334155;
text-align: left;
transition:
border-color 160ms var(--ease),
background 160ms var(--ease),
box-shadow 160ms var(--ease);
}
.skin-option:hover,
.skin-option.active {
border-color: var(--primary);
background: var(--theme-primary-light-9);
box-shadow: 0 0 0 3px var(--theme-focus-ring);
}
.skin-swatch {
width: 64px;
height: 38px;
display: grid;
grid-template-columns: 1.3fr 1fr 1fr 1fr;
grid-template-rows: 1fr;
border: 1px solid #d8dee8;
border-radius: 4px;
overflow: hidden;
background: #ffffff;
}
.skin-swatch i + i {
border-left: 1px solid rgba(255, 255, 255, 0.72);
}
.skin-copy {
display: grid;
gap: 4px;
}
.skin-copy strong {
color: #111827;
font-size: 14px;
font-weight: 700;
}
.skin-copy small {
color: #64748b;
font-size: 12px;
line-height: 1.45;
}
.skin-current {
min-height: 24px;
display: inline-flex;
align-items: center;
padding: 0 8px;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.26);
border-radius: 4px;
background: var(--primary-soft);
color: var(--primary-active);
font-size: 12px;
font-weight: 700;
}
.skin-preview-panel {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px;
border: 1px solid #d8dee8;
border-radius: 4px;
background: linear-gradient(180deg, #ffffff 0%, var(--theme-primary-light-9) 100%);
}
.skin-preview-panel div {
display: grid;
gap: 4px;
}
.skin-preview-panel strong {
color: #111827;
font-size: 14px;
}
.skin-preview-panel span {
color: #64748b;
font-size: 12px;
}
.skin-preview-action {
min-height: 34px;
padding: 0 14px;
border: 1px solid var(--primary);
border-radius: 4px;
background: var(--theme-gradient-primary);
color: #fff;
font-size: 13px;
font-weight: 700;
}
.secret-bound-state {
@@ -382,7 +496,7 @@
display: inline-flex;
align-items: center;
gap: 6px;
color: #059669;
color: var(--theme-primary-active);
font-size: 12px;
font-weight: 600;
line-height: 1.45;
@@ -398,7 +512,7 @@
gap: 8px;
margin-top: 16px;
padding: 12px 14px;
border-radius: 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
line-height: 1.6;
@@ -410,13 +524,13 @@
}
.test-feedback.is-success {
background: #ecfdf5;
color: #059669;
background: var(--success-soft);
color: var(--success-hover);
}
.test-feedback.is-error {
background: #fef2f2;
color: #b91c1c;
background: var(--danger-soft);
color: var(--danger-active);
}
.test-feedback.is-testing {
@@ -434,13 +548,13 @@
display: grid;
place-items: center;
border: 1px dashed #cbd5e1;
border-radius: 20px;
border-radius: 8px;
background:
linear-gradient(45deg, #f8fafc 25%, transparent 25%, transparent 75%, #f8fafc 75%, #f8fafc),
linear-gradient(45deg, #f8fafc 25%, transparent 25%, transparent 75%, #f8fafc 75%, #f8fafc);
background-position: 0 0, 9px 9px;
background-size: 18px 18px;
color: #10b981;
color: var(--theme-primary);
font-size: 32px;
}
@@ -450,9 +564,9 @@
align-items: center;
gap: 18px;
padding: 24px;
border: 1px solid rgba(16, 185, 129, 0.15);
border-radius: 20px;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(59, 130, 246, 0.02) 100%);
border: 1px solid rgba(58, 124, 165, 0.15);
border-radius: 8px;
background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.06) 0%, rgba(var(--theme-secondary-rgb, 37, 99, 235), 0.03) 100%);
}
.preview-icon {
@@ -460,11 +574,11 @@
height: 64px;
display: grid;
place-items: center;
border-radius: 16px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border-radius: 8px;
background: var(--theme-gradient-primary);
color: #ffffff;
font-size: 28px;
box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
box-shadow: 0 8px 20px var(--theme-primary-shadow);
}
.preview-copy strong {
@@ -495,9 +609,9 @@
align-items: center;
justify-content: center;
padding: 0 10px;
border-radius: 999px;
background: #ecfdf5;
color: #059669;
border-radius: 4px;
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
font-size: 11px;
font-weight: 700;
white-space: nowrap;
@@ -515,7 +629,7 @@
min-height: 34px;
padding: 0 16px;
border: 1px solid #cbd5e1;
border-radius: 999px;
border-radius: 4px;
background: #ffffff;
color: #64748b;
font-size: 12px;
@@ -525,16 +639,16 @@
}
.level-chip:hover {
border-color: #10b981;
color: #10b981;
background: #ecfdf5;
border-color: var(--theme-primary);
color: var(--theme-primary);
background: var(--theme-primary-soft);
}
.level-chip.active {
border-color: #10b981;
background: #10b981;
border-color: var(--theme-primary);
background: var(--theme-primary);
color: #ffffff;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
box-shadow: 0 4px 12px var(--theme-primary-shadow);
}
.range-shell {
@@ -544,13 +658,13 @@
gap: 14px;
padding: 0 14px;
border: 1px solid #cbd5e1;
border-radius: 12px;
border-radius: 4px;
background: #ffffff;
}
.range-shell input[type='range'] {
flex: 1 1 auto;
accent-color: #10b981;
accent-color: var(--theme-primary);
cursor: pointer;
}
@@ -566,7 +680,7 @@
margin-bottom: 20px;
}
/* 大语言模型配置卡片特定图标与标题排版 */
/* 大语言模型配置卡片图标与标题排版 */
.card-title-with-icon {
display: flex;
align-items: center;
@@ -578,7 +692,7 @@
height: 40px;
display: grid;
place-items: center;
border-radius: 10px;
border-radius: 6px;
font-size: 18px;
flex: 0 0 auto;
background: #f8fafc;
@@ -681,7 +795,7 @@
.settings-card {
padding: 20px 16px;
border-radius: 16px;
border-radius: 6px;
}
.settings-nav {