style: 更新多个页面为教育蓝主题,调整样式以提升视觉一致性

将多个页面的主题色从墨黑改为教育蓝,涉及的页面包括诊断、优化、渠道、采购、供应商、产品开发等。调整了按钮样式、任务头、步骤导航等元素,确保整体风格统一,优化用户体验。
fix/exam-question-access-material-excel-delete-draft
qinzhenpen 2 months ago
parent 19328ebd81
commit 8986dceb18

File diff suppressed because it is too large Load Diff

@ -348,15 +348,15 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
<style scoped lang="scss"> <style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(墨黑极简主题) ===== */
.diagnosis-page { .diagnosis-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
@ -553,7 +553,7 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
min-height: 36px; min-height: 36px;
height: 36px; height: 36px;
padding: 0 14px; padding: 0 14px;
border: 1px solid rgba(31, 41, 55, 0.4); border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px; border-radius: 8px;
color: var(--student-text); color: var(--student-text);
background: #ffffff; background: #ffffff;
@ -569,7 +569,7 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
background: var(--student-accent-soft); background: var(--student-accent-soft);
color: var(--student-accent); color: var(--student-accent);
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.12); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
} }
} }
@ -578,19 +578,19 @@ onMounted(async () => { try { taskConfig.value = (await getTrainingTaskByKey(TAS
color: #ffffff; color: #ffffff;
background: var(--student-accent); background: var(--student-accent);
font-weight: 700; font-weight: 700;
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
&:hover:not(:disabled) { &:hover:not(:disabled) {
border-color: var(--student-accent-deep); border-color: var(--student-accent-deep);
background: var(--student-accent-deep); background: var(--student-accent-deep);
color: #ffffff; color: #ffffff;
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32); box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
} }
} }
.table-button.ghost { .table-button.ghost {
border-color: rgba(31, 41, 55, 0.3); border-color: rgba(37, 99, 235, 0.45);
color: var(--student-text-secondary); color: var(--student-text-secondary);
background: #ffffff; background: #ffffff;
font-weight: 600; font-weight: 600;
@ -1040,7 +1040,7 @@ button.is-disabled {
:deep(.el-input__wrapper.is-focus), :deep(.el-input__wrapper.is-focus),
:deep(.el-textarea__inner:focus) { :deep(.el-textarea__inner:focus) {
box-shadow: 0 0 0 1px var(--student-accent) inset, 0 0 0 2px rgba(31, 41, 55, 0.15) !important; box-shadow: 0 0 0 1px var(--student-accent) inset, 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
} }
} }
@ -1166,36 +1166,36 @@ button.is-disabled {
.step-action { display: none !important; } .step-action { display: none !important; }
/* 未到达项 hover */ /* 未到达项 hover:教育蓝边浅底 */
&:hover:not(.active):not(.complete) { &:hover:not(.active):not(.complete) {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f9fafb !important; background: #eff6ff !important;
color: #1f2937 !important; color: #2563eb !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; } .step-marker { background: #2563eb !important; color: #ffffff !important; }
} }
/* 已完成 */ /* 已完成:绿色编号徽章 */
&.complete:not(.active) { &.complete:not(.active) {
border-color: #dce9e2 !important; border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } .step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; } .step-marker { background: #2ba471 !important; color: #ffffff !important; }
} }
} }
/* 当前步骤 */ /* 当前步骤:教育蓝实底 */
&.active { &.active {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; } .step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover { &:hover {
background: #111827 !important; background: #1d4ed8 !important;
border-color: #111827 !important; border-color: #1d4ed8 !important;
} }
} }
} }
@ -1225,9 +1225,9 @@ button.is-disabled {
min-height: 36px; min-height: 36px;
height: 36px; height: 36px;
padding: 0 14px; padding: 0 14px;
border: 1px solid #d1d5db; border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px; border-radius: 8px;
color: #374151; color: #2563eb;
background: #ffffff; background: #ffffff;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
@ -1241,30 +1241,30 @@ button.is-disabled {
} }
&:hover, &:focus { &:hover, &:focus {
border-color: #1f2937; border-color: #2563eb;
color: #1f2937; color: #2563eb;
background: #f9fafb; background: #eff6ff;
box-shadow: 0 2px 6px rgba(17, 24, 39, 0.1); box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
} }
} }
.diagnosis-page .task-toolbar-button--submit.el-button { .diagnosis-page .task-toolbar-button--submit.el-button {
border-color: #1f2937; border-color: #2563eb;
color: #ffffff; color: #ffffff;
background: #1f2937; background: #2563eb;
box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22); box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35), 0 3px 10px rgba(37, 99, 235, 0.22);
&:hover, &:focus { &:hover, &:focus {
border-color: #111827; border-color: #1d4ed8;
color: #ffffff; color: #ffffff;
background: #111827; background: #1d4ed8;
box-shadow: 0 4px 12px rgba(17, 24, 39, 0.28); box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4), 0 5px 14px rgba(29, 78, 216, 0.28);
} }
} }
.diagnosis-page .task-toolbar-button.el-button.is-loading { .diagnosis-page .task-toolbar-button.el-button.is-loading {
border-color: #d1d5db; border-color: rgba(37, 99, 235, 0.45);
color: #374151; color: #2563eb;
background: #ffffff; background: #ffffff;
} }
</style> </style>

@ -410,15 +410,15 @@ onMounted(async () => {
<style scoped lang="scss"> <style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(墨黑极简主题) ===== */
.optimization-page { .optimization-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
@ -589,7 +589,7 @@ onMounted(async () => {
min-height: 36px; min-height: 36px;
height: 36px; height: 36px;
padding: 0 14px; padding: 0 14px;
border: 1px solid rgba(31, 41, 55, 0.4); border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px; border-radius: 8px;
color: var(--student-text); color: var(--student-text);
background: #ffffff; background: #ffffff;
@ -610,7 +610,7 @@ onMounted(async () => {
background: var(--student-accent-soft); background: var(--student-accent-soft);
color: var(--student-accent); color: var(--student-accent);
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.12); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
} }
.outline-action:disabled, .outline-action:disabled,
@ -629,14 +629,14 @@ button:disabled {
border-color: var(--student-accent); border-color: var(--student-accent);
color: #ffffff; color: #ffffff;
background: var(--student-accent); background: var(--student-accent);
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
} }
.action-button--primary:hover:not(:disabled), .action-button--primary:hover:not(:disabled),
.nav-button--primary:hover:not(:disabled) { .nav-button--primary:hover:not(:disabled) {
border-color: var(--student-accent-deep); border-color: var(--student-accent-deep);
background: var(--student-accent-deep); background: var(--student-accent-deep);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32); box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
} }
/* 保存按钮(浅灰底) */ /* 保存按钮(浅灰底) */
@ -815,13 +815,13 @@ button:disabled {
background: var(--student-accent); background: var(--student-accent);
font-size: var(--student-fs-button); font-size: var(--student-fs-button);
font-weight: 700; font-weight: 700;
box-shadow: 0 3px 10px rgba(31, 41, 55, 0.28); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
} }
.training-actions :deep(.training-action:hover) { .training-actions :deep(.training-action:hover) {
border-color: var(--student-accent-deep); border-color: var(--student-accent-deep);
background: var(--student-accent-deep); background: var(--student-accent-deep);
box-shadow: 0 5px 14px rgba(17, 24, 39, 0.32); box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
} }
/* ===== Pareto 上传 ===== */ /* ===== Pareto 上传 ===== */
@ -1065,7 +1065,7 @@ button:disabled {
} }
:deep(.el-input__wrapper.is-focus) { :deep(.el-input__wrapper.is-focus) {
box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.2) inset; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) inset;
} }
:deep(.el-input__inner) { :deep(.el-input__inner) {
@ -1171,36 +1171,36 @@ button:disabled {
transition: background-color 0.16s ease, color 0.16s ease !important; transition: background-color 0.16s ease, color 0.16s ease !important;
} }
/* 未到达项 hover */ /* 未到达项 hover:教育蓝边浅底,编号徽章转教育蓝 */
&:hover:not(.active):not(.complete) { &:hover:not(.active):not(.complete) {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f9fafb !important; background: #eff6ff !important;
color: #1f2937 !important; color: #2563eb !important;
span { background: #1f2937 !important; color: #ffffff !important; } span { background: #2563eb !important; color: #ffffff !important; }
} }
/* 已完成 */ /* 已完成:绿色编号徽章 */
&.complete:not(.active) { &.complete:not(.active) {
border-color: #dce9e2 !important; border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
span { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } span { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
span { background: #4a9d6e !important; color: #ffffff !important; } span { background: #2ba471 !important; color: #ffffff !important; }
} }
} }
/* 当前步骤 */ /* 当前步骤:教育蓝实底 */
&.active { &.active {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
span { background: #ffffff !important; color: #1f2937 !important; } span { background: #ffffff !important; color: #2563eb !important; }
&:hover { &:hover {
background: #111827 !important; background: #1d4ed8 !important;
border-color: #111827 !important; border-color: #1d4ed8 !important;
} }
} }
} }

@ -3,7 +3,10 @@
<main class="training-core"> <main class="training-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><TrendCharts /></el-icon> 产品开发与测试验证</span> <span class="task-badge"><el-icon><TrendCharts /></el-icon> 产品开发与测试验证</span>
<span class="task-status">进行中 · Step {{ String(activeStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -829,21 +832,40 @@ onMounted(async () => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/* ============================================================
* 教育蓝极简 · 采购需求预测页面
* ============================================================ */
.channel { .channel {
--student-accent: #1f2937; /* 主色:教育蓝 */
--student-accent-deep: #111827; --student-accent: #2563eb;
--student-accent-light: #4b5563; --student-accent-deep: #1d4ed8;
--student-accent-soft: #f3f4f6; --student-accent-light: #3b82f6;
--student-danger: #d9554c; --student-accent-soft: #eff6ff;
--student-success: #4a9d6e; /* 语义色 */
--student-layer-1: #374151; --student-danger: #ef4444;
--student-layer-2: #43a294; --student-success: #2ba471;
--student-layer-3: #8b6fc0; /* 三层次标识 */
--student-layer-1: #1d4ed8;
--student-layer-2: #3b82f6;
--student-layer-3: #93c5fd;
/* 结构色 */
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
--student-text: #1f2937; --student-text: #1f2937;
--student-text-secondary: #6b7280; --student-text-secondary: #6b7280;
/* Element Plus 主色 */
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
/* 紧凑字号梯度 */
--student-fs-display: 17px; --student-fs-display: 17px;
--student-fs-h1: 15px; --student-fs-h1: 15px;
--student-fs-h2: 14px; --student-fs-h2: 14px;
@ -851,24 +873,19 @@ onMounted(async () => {
--student-fs-body: 13px; --student-fs-body: 13px;
--student-fs-body-sm: 12px; --student-fs-body-sm: 12px;
--student-fs-caption: 11px; --student-fs-caption: 11px;
--student-fs-button: 13px;
--student-fs-button-lg: 13px;
--student-fs-data: 14px;
min-height: calc(100vh - 84px); min-width: 0;
padding: 0 0 32px;
color: var(--student-text); color: var(--student-text);
background: var(--student-panel-bg); background: var(--student-card-bg);
:deep(.training-step-area) {
margin-top: 0 !important;
border-color: var(--student-panel-border) !important;
background: var(--student-panel-bg) !important;
box-shadow: inset 0 1px 0 rgba(31, 41, 55, 0.06), 0 12px 28px rgba(0, 0, 0, 0.06) !important;
}
:deep(.el-table) { :deep(.el-table) {
--el-table-border-color: var(--student-panel-border); --el-table-border-color: var(--student-panel-border);
--el-table-header-bg-color: #fafbfc; --el-table-header-bg-color: #fafbfc;
--el-table-header-text-color: var(--student-text); --el-table-header-text-color: var(--student-text);
--el-table-row-hover-bg-color: rgba(31, 41, 55, 0.05); --el-table-row-hover-bg-color: rgba(59, 130, 246, 0.05);
--el-table-bg-color: transparent; --el-table-bg-color: transparent;
--el-table-tr-bg-color: transparent; --el-table-tr-bg-color: transparent;
--el-table-text-color: var(--student-text); --el-table-text-color: var(--student-text);
@ -879,27 +896,12 @@ onMounted(async () => {
background: var(--student-card-bg); background: var(--student-card-bg);
} }
:deep(.el-table::before),
:deep(.el-table__inner-wrapper::before) {
background-color: transparent;
}
:deep(.el-table th.el-table__cell) { :deep(.el-table th.el-table__cell) {
color: var(--student-text) !important; color: var(--student-text) !important;
background: #fafbfc !important; background: #fafbfc !important;
font-weight: 800; font-weight: 800;
} }
:deep(.el-table td.el-table__cell),
:deep(.el-table tr) {
color: var(--student-text) !important;
background: transparent !important;
}
:deep(.el-table .cell) {
line-height: 1.65;
}
:deep(.el-input__wrapper) { :deep(.el-input__wrapper) {
min-height: 36px; min-height: 36px;
border: 1px solid var(--student-panel-border); border: 1px solid var(--student-panel-border);
@ -918,7 +920,7 @@ onMounted(async () => {
:deep(.el-input__wrapper.is-focus) { :deep(.el-input__wrapper.is-focus) {
border-color: var(--student-accent); border-color: var(--student-accent);
box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.08) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
} }
:deep(.el-button:not(.material-button)) { :deep(.el-button:not(.material-button)) {
@ -928,9 +930,9 @@ onMounted(async () => {
} }
:deep(.el-button:not(.material-button):hover) { :deep(.el-button:not(.material-button):hover) {
border-color: var(--student-accent-light) !important; border-color: var(--student-accent-deep) !important;
color: #ffffff !important; color: #ffffff !important;
background: var(--student-accent-light) !important; background: var(--student-accent-deep) !important;
} }
.online { .online {
@ -971,9 +973,12 @@ onMounted(async () => {
.channel { .channel {
display: grid; gap: 24px; min-height: calc(100vh - 76px); padding: 24px 24px 32px; color: var(--student-text); background: var(--student-card-bg); display: grid; gap: 24px; min-height: calc(100vh - 76px); padding: 24px 24px 32px; color: var(--student-text); background: var(--student-card-bg);
.training-core { min-width: 0; padding: 28px; border: 1px solid var(--student-panel-border); border-radius: 36px; background: var(--student-card-bg); box-shadow: 0 6px 18px rgba(0,0,0,.06); } .training-core { min-width: 0; padding: 28px; border: 1px solid var(--student-panel-border); border-radius: 36px; background: var(--student-card-bg); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.task-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--student-panel-border); border-radius: 16px; background: var(--student-card-bg); } .task-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; padding: 18px 20px 18px 24px; border: 1px solid var(--student-panel-border); border-radius: 12px; background: var(--student-card-bg); overflow: hidden; &::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--student-accent); } }
.task-head-main { display: grid; justify-items: start; gap: 8px; min-width: 0; flex: 1 1 auto; } .task-head-main { display: grid; justify-items: start; gap: 8px; min-width: 0; flex: 1 1 auto; }
.task-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-bottom: 8px; }
.task-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--student-panel-border); border-radius: 999px; color: var(--student-accent-deep); background: var(--student-accent-soft); font-size: 12px; font-weight: 700; } .task-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid var(--student-panel-border); border-radius: 999px; color: var(--student-accent-deep); background: var(--student-accent-soft); font-size: 12px; font-weight: 700; }
.task-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; color: var(--student-text-secondary); background: #f3f4f6; font-family: var(--student-font-data); font-size: var(--student-fs-caption); font-weight: 600; white-space: nowrap; &::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--student-accent-light); animation: pulse 1.8s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.task-title { margin: 0; color: var(--student-text); font-size: var(--student-fs-display); font-weight: 700; line-height: 1.35; } .task-title { margin: 0; color: var(--student-text); font-size: var(--student-fs-display); font-weight: 700; line-height: 1.35; }
.task-brief { margin: 0; color: var(--student-text-secondary); font-size: 12px; line-height: 1.6; } .task-brief { margin: 0; color: var(--student-text-secondary); font-size: 12px; line-height: 1.6; }
.task-brief-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; } .task-brief-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
@ -1300,20 +1305,412 @@ onMounted(async () => {
</style> </style>
<style lang="scss"> <style lang="scss">
/* ============================================================
* 教育蓝极简换肤 · channel/index.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.channel) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.channel) { :has(.channel) {
.el-table { .el-table {
--el-table-bg-color: #ffffff !important; --el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important; --el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important; --el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(31, 41, 55, 0.04) !important; --el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55; line-height: 1.55;
} }
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.channel) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 0 !important;
width: 100% !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
.step-indicator {
button,
.step-tab { .step-tab {
transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
min-width: 22px !important;
height: 22px !important;
padding: 0 5px !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
}
.step-name {
color: inherit !important;
}
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
&:hover:not(.active):not(.complete) {
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important;
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
&.active {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.channel .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.channel .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部步骤按钮(task-actions > button)
* ============================================================ */
.channel .task-actions {
gap: 14px !important;
margin-top: 20px !important;
}
.channel .task-actions > button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.channel .task-actions > button:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(btn-primary / btn-submit) */
.channel .task-actions > button.btn-primary,
.channel .task-actions > button.btn-submit {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.channel .task-actions > button.btn-primary:hover:not(:disabled),
.channel .task-actions > button.btn-submit:hover:not(:disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 步骤导航按钮(step-navigation)
* ============================================================ */
.channel .step-navigation {
display: flex !important;
flex-wrap: wrap !important;
justify-content: center !important;
align-items: center !important;
gap: 14px !important;
margin-top: 20px !important;
}
.channel .step-navigation .btn-nav {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.channel .step-navigation .btn-nav:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
.channel .step-navigation .btn-nav.btn-primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.channel .step-navigation .btn-nav.btn-primary:hover:not(:disabled) {
border-color: #1d4ed8 !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
.channel .step-navigation .btn-nav.btn-save {
border: 1px solid #e5e7eb !important;
background: #f3f4f6 !important;
color: #374151 !important;
}
/* ============================================================
* 顶部任务工具栏(el-button)
* ============================================================ */
.channel .task-toolbar-button.el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
min-height: 34px !important;
height: 34px !important;
padding: 0 12px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(.is-disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
transform: translateY(-1px) !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
}
.channel .task-toolbar-button--submit {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
box-shadow:
0 1px 2px rgba(37, 99, 235, 0.35),
0 3px 10px rgba(37, 99, 235, 0.22) !important;
&:hover:not(.is-disabled) {
background: #1d4ed8 !important;
box-shadow:
0 2px 4px rgba(37, 99, 235, 0.4),
0 5px 14px rgba(29, 78, 216, 0.28) !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.channel) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
} }
#app .studentLayout .app-main:has(.channel) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
} }
} }
</style> </style>

@ -7,186 +7,148 @@
* @Description: 卡拉杰克模型分析页面,展示采购品类矩阵 * @Description: 卡拉杰克模型分析页面,展示采购品类矩阵
--> -->
<template> <template>
<div class="purchase app-container student-training-shell legacy-training-page"> <div class="purchase-page student-training-shell">
<TrainingIntro title="卡拉杰克模型"> <main class="purchase-core">
<template #background> <section class="task-header">
<p> <div class="task-head-main">
采购定位在电商企业中具有极其重要的战略意义。它决定了企业将要采购哪些商品、从哪些供应商采购以及采购的数量和价格等关键要素。一个准确的采购定位能够确保企业采购到符合市场需求、具有竞争力的商品,从而提高企业的市场竞争力。 <div class="task-head-top">
<br /> <span class="task-badge"><el-icon><Goods /></el-icon> 核心实训 · 采购需求预测</span>
<br /> <span class="task-status">进行中 · Step 01</span>
</div>
采购定位的关键因素 <h1 class="task-title">卡拉杰克模型分析</h1>
<br /> <p class="task-brief">
<span class="task-brief-text">采购定位在电商企业中具有极其重要的战略意义。使用卡拉杰克模型,根据生鲜电商平台运营模式及主要品类,分析采购产品定位,给出品类采购管理措施。</span>
‌目标市场与消费群体‌: <button type="button" class="task-brief-toggle" @click="briefOpen = !briefOpen">
<br /> {{ briefOpen ? "收起" : "展开目标与要求" }}
</button>
企业需要明确自己的目标市场和消费群体,了解他们的需求、偏好和消费能力。 <span v-if="briefOpen" class="task-brief-more">
<br /> <b>实训目标</b>
<ul>
根据目标市场和消费群体的特点,选择适合的商品类型和品牌。 <li>掌握卡拉杰克模型的四个象限分类</li>
<br /> <li>能够根据案例背景进行商品分类矩阵构建</li>
<li>给出差异化采购策略实施建议</li>
‌商品品类与差异化特点‌: </ul>
<br /> <b>实训要求</b>
<p>请根据案例背景信息利用卡拉杰克模型进行该生鲜电商平台的商品分类矩阵构建。</p>
企业需要确定采购的商品品类,考虑这些品类在市场上的竞争情况和潜在增长机会。 </span>
<br /> </p>
</div>
强调商品的差异化特点,如功能、设计、价格、质量等,以便与竞争对手区分开来。 </section>
<br />
‌供应商选择与合作关系‌:
<br />
选择信誉良好、实力雄厚的供应商,确保商品的品质和供应的稳定性。
<br />
与供应商建立长期稳定的合作关系,实现互利共赢。 <section class="purchase-workbench">
<br /> <div class="workbench-head">
<div>
<p class="section-eyebrow">Kraljic Matrix Analysis</p>
<h2>卡拉杰克模型分析</h2>
</div>
</div>
‌成本效益分析‌: <p class="step-intro">
<br /> 卡拉杰克模型是由彼得·卡拉杰克于1983年提出的一种采购管理工具,旨在帮助企业更好地管理供应链和采购策略。该模型从供应风险和利润影响两个维度出发,把物品分为四个象限:
</p>
考虑采购成本和效益的平衡,确保采购的商品具有合理的性价比。 <div class="kraljic-legend">
<br /> <div class="legend-item">
<span class="legend-color" style="background: #90EE90"></span>
<div><strong>战略物品</strong>:高供应风险和高利润影响,通常具有技术专利或高技术含量</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #FFA500"></span>
<div><strong>杠杆物品</strong>:低供应风险和高利润影响,市场上供应商众多</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #ADD8E6"></span>
<div><strong>瓶颈物品</strong>:高供应风险和低利润影响,由特定的少数供应商提供</div>
</div>
<div class="legend-item">
<span class="legend-color" style="background: #98FB98"></span>
<div><strong>一般物品</strong>:低供应风险和低利润影响,多为日常消耗品</div>
</div>
</div>
通过谈判、招标等方式争取最优惠的采购价格和服务条件。 <div class="case-section">
</p> <h3>案例背景:「优鲜到家」社区化生鲜零售平台</h3>
</template> <p>成立于2023年的「优鲜到家」定位为社区化生鲜零售平台,聚焦一二线城市中高端家庭消费群体,覆盖水果、蔬菜、肉类、水产、乳制品、预制菜六大核心品类。平台采用「前置仓+社区团长」双轨运营模式,目前已布局全国15个城市,日均订单量突破30万单,SKU超2000个。</p>
<template #goal>
<p>
使用卡拉杰克模型,根据生鲜电商平台运营模式及主要品类,分析采购产品定位,给出品类采购管理措施。
</p>
</template>
</TrainingIntro>
<div class="training-step-area">
<p style="font-size: 16px">卡拉杰克模型是由彼得·卡拉杰克于1983年提出的一种采购管理工具,旨在帮助企业更好地管理供应链和采购策略。该模型从供应风险和利润影响两个维度出发,把物品分为四个象限:战略物品、杠杆物品、瓶颈物品和一般物品。</p>
<p>
战略物品:高供应风险和高利润影响。这些物品通常具有技术专利或高技术含量,对企业战略实现具有重要影响力。
<br />
杠杆物品:低供应风险和高利润影响。这些物品市场上供应商众多,标准化程度高,能够为企业降低成本。
<br />
瓶颈物品:高供应风险和低利润影响。这些物品通常由特定的少数供应商提供,存在供应垄断和运输风险。
<br />
一般物品:低供应风险和低利润影响。这些物品多为日常消耗品,市场上供应商众多,采购工作较为简单。
<br />
</p>
<img src="@/assets/images/u1933.jpg" alt="" style="width: 477px; height: 392px" />
<div class="caseBacktitle">
<img src="@/assets/images/步骤.png" alt="" />
<span>实验实训</span>
</div> </div>
<p>成立于2023年的「优鲜到家」定位为‌社区化生鲜零售平台‌,聚焦一二线城市中高端家庭消费群体,覆盖水果、蔬菜、肉类、水产、乳制品、预制菜六大核心品类‌14。平台采用「‌前置仓+社区团长‌」双轨运营模式,目前已布局全国15个城市,日均订单量突破30万单,SKU超2000个,其中60%为产地直采商品‌。</p>
<p>商品品类与供应链:</p> <div class="table-panel">
<el-table <h4>商品品类与供应链</h4>
:data="tableData" <div class="table-wrap">
border <el-table :data="tableData" border>
style="width: 80%"
:header-cell-style="{
color: '#fff',
fontSize: '14px',
backgroundColor: '#1e88e5!important',
}"
>
<el-table-column prop="category" label="品类" align="center"></el-table-column> <el-table-column prop="category" label="品类" align="center"></el-table-column>
<el-table-column prop="featuredProduct" label="特色商品" align="center"></el-table-column> <el-table-column prop="featuredProduct" label="特色商品" align="center"></el-table-column>
<el-table-column prop="procurementMode" label="采购模式" align="center"></el-table-column> <el-table-column prop="procurementMode" label="采购模式" align="center"></el-table-column>
</el-table> </el-table>
<p> </div>
三、核心运营模式‌ </div>
<br />
‌1.仓储物流体系‌ <div class="case-section">
<br /> <h3>核心运营模式</h3>
建立‌三级仓储网络‌: <div class="operation-mode">
<br /> <h4>1. 仓储物流体系</h4>
▶ 产地仓(云南、山东等6大农业产区)负责分拣初加工‌ <p>建立三级仓储网络:产地仓(云南、山东等6大农业产区)负责分拣初加工;城市中心仓(每省1-2个)实现跨区域调拨;社区前置仓(半径3公里)支持30分钟达服务。投入AI分拣机器人,分拣效率达6000件/小时,损耗率降至0.8%。</p>
<br /> <h4>2. 社区化销售网络</h4>
▶ 城市中心仓(每省1-2个)实现跨区域调拨‌ <p>发展团长合伙人制度,招募社区宝妈、便利店店主作为团长,提供15%销售分成。推行「拼团预售+到店自提」模式,爆款商品提前24小时发起拼团,满20单触发产地直发。</p>
<br /> </div>
▶ 社区前置仓(半径3公里)支持30分钟达服务‌ </div>
<br />
投入‌AI分拣机器人‌,分拣效率达6000件/小时,损耗率降至0.8%‌ <div class="task-section">
<br /> <h3>实训任务:卡拉杰克模型分类矩阵</h3>
‌2.社区化销售网络‌ <p>请根据案例背景信息选择各品类的定位类型:</p>
<br /> <div class="table-wrap">
发展‌团长合伙人‌制度: <el-table :data="procurementCategoryData" border>
<br /> <el-table-column prop="categoryType" label="品类分类" align="center" width="120"></el-table-column>
▶ 招募社区宝妈、便利店店主作为团长,提供15%销售分成‌ <el-table-column prop="value" label="典型采购品项" align="center">
<br />
▶ 开发「团长作战室」系统,实时显示商品动销数据与佣金收益‌
<br />
推行「‌拼团预售+到店自提‌」模式:
<br />
▶ 爆款商品提前24小时发起拼团,满20单触发产地直发‌
<br />
▶ 在社区驿站设置智能冷柜,支持人脸识别取货‌
<br />
</p>
<p>请根据案例背景信息利用卡拉杰克模型进行该生鲜电商平台的商品分类矩阵构建。</p>
<el-table
:data="procurementCategoryData"
border
style="width: 80%"
:header-cell-style="{
color: '#fff',
fontSize: '14px',
backgroundColor: '#1e88e5!important',
}"
>
<el-table-column prop="categoryType" label="品类分类‌" align="center"></el-table-column>
<el-table-column prop="value" label="典型采购品项‌" align="center">
<template #default="scope"> <template #default="scope">
<el-select v-model="scope.row.value" placeholder="" @change="handleChange(scope.row.value, scope.$index)"> <el-select v-model="scope.row.value" placeholder="请选择" @change="handleChange(scope.row.value, scope.$index)">
<el-option v-for="item in options" :key="item.label" :label="item.label" :value="item.label" /> <el-option v-for="item in options" :key="item.label" :label="item.label" :value="item.label" />
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="longitudinalAxis" label="‌核心特征‌" align="center"></el-table-column> <el-table-column prop="longitudinalAxis" label="核心特征" align="center"></el-table-column>
<el-table-column prop="basedOn" label="‌模型定位依据‌" align="center"></el-table-column> <el-table-column prop="basedOn" label="模型定位依据" align="center"></el-table-column>
</el-table> </el-table>
<el-button type="primary" @click="handleClick" style="margin-top: 20px">生成可视化图形</el-button> </div>
<div class="main" ref="mainref" style="width: 80%; height: 400px" v-if="showChat"></div> <div class="task-actions">
<p>请简要分析差异化采购策略实施:</p> <button type="button" class="outline-action" @click="handleClick"><el-icon><DataLine /></el-icon>生成可视化图形</button>
<el-table </div>
:data="list" <div class="chart-container" ref="mainref" v-if="showChat"></div>
border </div>
style="width: 80%"
:header-cell-style="{ <div class="task-section">
color: '#fff', <h3>差异化采购策略实施</h3>
fontSize: '14px', <div class="table-wrap">
backgroundColor: '#1e88e5!important', <el-table :data="list" border>
}" <el-table-column prop="classification" label="品类分类" align="center" width="120"></el-table-column>
> <el-table-column prop="value" label="管理措施" align="center">
<el-table-column prop="classification" label="品类分类‌" align="center" width="120"></el-table-column>
<el-table-column prop="value" label="管理措施" align="center" style="height: 40px">
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.value" placeholder="" :rows="2" type="textarea"></el-input> <el-input v-model="scope.row.value" placeholder="请填写管理措施" type="textarea" :rows="3"></el-input>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="taskfooter">
<el-button @click="submitTask">提交任务</el-button>
<el-button @click="resetTask">重新实训</el-button>
</div> </div>
</div> </div>
<TrainingLegacyActions />
<div class="task-actions">
<button type="button" class="btn primary" @click="submitTask"><el-icon><Check /></el-icon>提交任务</button>
<button type="button" class="btn" @click="resetTask"><el-icon><RefreshLeft /></el-icon>重新实训</button>
</div>
</section>
</main>
<TrainingAiSidebar /> <TrainingAiSidebar />
</div> </div>
</template> </template>
<script setup> <script setup>
import TrainingLegacyActions from "@/views/components/TrainingLegacyActions.vue"; import { Check, DataLine, Goods, RefreshLeft } from "@element-plus/icons-vue";
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue"; import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
import TrainingIntro from '@/views/components/TrainingIntro.vue';
import popModel from "@/views/components/popModal.vue";
import * as analysisAPI from "@/api/market-demand-mining.js"; import * as analysisAPI from "@/api/market-demand-mining.js";
import * as echarts from "echarts"; import * as echarts from "echarts";
import useUserStore from "@/store/modules/user"; import useUserStore from "@/store/modules/user";
const userStore = useUserStore(); const userStore = useUserStore();
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const briefOpen = ref(false);
// 图形展示状态 // 图形展示状态
const showChat = ref(false); const showChat = ref(false);
const dialogVisible = ref(false); const dialogVisible = ref(false);
@ -574,25 +536,684 @@ onMounted(() => {
echo(); echo();
}); });
</script> </script>
<style lang="scss" scoped> /* ============================================================
.purchase { * 教育蓝极简 · 卡拉杰克模型分析页
background: #ffffff; * ============================================================ */
.purchase-page {
--student-accent: #2563eb;
--student-accent-deep: #1d4ed8;
--student-accent-light: #3b82f6;
--student-accent-soft: #eff6ff;
--student-danger: #ef4444;
--student-success: #2ba471;
--student-panel-border: #e5e7eb;
--student-card-bg: #ffffff;
--student-panel-bg: #fafbfc;
--student-text: #1f2937;
--student-text-secondary: #6b7280;
--student-font-data: "DM Mono", ui-monospace, monospace;
--student-fs-display: 26px;
--student-fs-h1: 20px;
--student-fs-h2: 16px;
--student-fs-h3: 15px;
--student-fs-body: 14px;
--student-fs-body-sm: 13px;
--student-fs-caption: 12px;
--student-fs-button: 13px;
}
.purchase-core {
display: grid;
gap: 0;
max-width: 960px;
margin: 0 auto;
padding: 28px 32px 48px;
}
.task-header {
position: relative;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin: 0;
padding: 18px 20px 18px 24px;
border: 1px solid var(--student-panel-border);
border-radius: 12px;
background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
} }
.caseBacktitle { }
.task-head-main {
display: grid;
justify-items: start;
gap: 8px;
min-width: 0;
flex: 1 1 auto;
}
.task-head-top {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 15px; gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 4px 12px;
border: 1px solid var(--student-panel-border);
border-radius: 999px;
color: var(--student-accent-deep);
background: var(--student-accent-soft);
font-size: 12px;
font-weight: 700;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title {
margin: 0;
color: var(--student-text);
font-size: var(--student-fs-display);
font-weight: 700;
line-height: 1.35;
}
.task-brief {
margin: 0;
color: var(--student-text-secondary);
font-size: 12px;
line-height: 1.6;
}
.task-brief-text {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.task-brief-toggle {
padding: 0;
border: 0;
color: var(--student-accent-deep);
background: transparent;
font: inherit;
font-weight: 700;
cursor: pointer;
&:hover { text-decoration: underline; color: var(--student-accent-deep); }
}
img { .task-brief-more {
width: 24px; display: grid;
height: 24px; gap: 6px;
margin-right: 8px; margin-top: 8px;
padding-top: 8px;
border-top: 1px dashed var(--student-panel-border);
b { color: var(--student-text); font-size: 12px; }
ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
p { margin: 0; }
}
.purchase-workbench {
display: grid;
gap: 20px;
}
.workbench-head {
display: flex;
align-items: flex-start;
gap: 16px;
margin: 0;
padding: 0;
border-bottom: 0;
}
.section-eyebrow {
margin: 0;
color: var(--student-accent);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.workbench-head h2 {
margin: 4px 0 0;
color: var(--student-text);
font-size: var(--student-fs-h1);
font-weight: 700;
line-height: 1.35;
}
.step-intro {
margin: 0;
color: var(--student-text-secondary);
font-size: var(--student-fs-body);
line-height: 1.6;
} }
span { .kraljic-legend {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
padding: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
background: var(--student-panel-bg);
}
.legend-item {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: var(--student-fs-body-sm);
color: var(--student-text-secondary);
line-height: 1.5;
strong { color: var(--student-text); }
}
.legend-color {
flex-shrink: 0;
width: 16px;
height: 16px;
border-radius: 4px;
margin-top: 2px;
}
.case-section,
.task-section {
h3 {
margin: 0 0 12px;
font-size: var(--student-fs-h2); font-size: var(--student-fs-h2);
font-weight: bold; font-weight: 700;
color: var(--text-color); color: var(--student-text);
}
h4 {
margin: 12px 0 8px;
font-size: var(--student-fs-body);
font-weight: 600;
color: var(--student-text);
}
p {
margin: 0;
color: var(--student-text-secondary);
font-size: var(--student-fs-body);
line-height: 1.7;
}
}
.operation-mode {
padding: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
background: var(--student-panel-bg);
}
.table-panel {
h4 {
margin: 0 0 10px;
font-size: var(--student-fs-h3);
font-weight: 600;
color: var(--student-text);
}
}
.table-wrap {
overflow-x: auto;
:deep(.el-table) {
font-size: var(--student-fs-body-sm);
th.el-table__cell {
background: var(--student-accent) !important;
color: #ffffff;
font-weight: 600;
}
}
}
.chart-container {
width: 100%;
height: 400px;
margin-top: 16px;
border: 1px solid var(--student-panel-border);
border-radius: 8px;
}
.task-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 16px;
}
.outline-action,
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 36px;
height: 36px;
padding: 0 14px;
border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px;
color: var(--student-accent);
background: #ffffff;
font-size: var(--student-fs-button);
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: border-color 0.16s ease, background 0.16s ease,
color 0.16s ease, transform 0.16s ease,
box-shadow 0.16s ease;
&:hover:not(:disabled) {
border-color: var(--student-accent);
background: var(--student-accent-soft);
color: var(--student-accent);
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
}
.btn.primary {
border-color: var(--student-accent);
color: #ffffff;
background: var(--student-accent);
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
&:hover:not(:disabled) {
border-color: var(--student-accent-deep);
background: var(--student-accent-deep);
color: #ffffff;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32);
}
}
</style>
<style lang="scss">
/* ============================================================
* 教育蓝极简换肤 · channel/purchase.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.purchase-page) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.purchase-page) {
.el-table {
--el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55;
}
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.purchase-page) .step-indicator {
display: flex !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
justify-content: center !important;
gap: 0 !important;
width: 100% !important;
margin: 0 0 20px !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
.step-tab {
flex: 1 1 0 !important;
max-width: 240px !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-width: 0 !important;
height: auto !important;
min-height: 40px !important;
margin: 0 !important;
padding: 8px 14px !important;
border: 1px solid #e5e7eb !important;
border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important;
box-shadow: none !important;
color: #6b7280 !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1.3 !important;
white-space: normal !important;
text-align: center !important;
cursor: pointer;
transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
min-width: 22px !important;
height: 22px !important;
padding: 0 5px !important;
border-radius: 6px !important;
background: #f3f4f6 !important;
color: #6b7280 !important;
font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition: all 0.16s ease !important;
&::after {
display: none !important;
}
}
.step-name {
color: inherit !important;
}
.step-copy {
margin-left: 0 !important;
gap: 4px !important;
}
&:hover:not(.active):not(.complete) {
border-color: #2563eb !important;
background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important;
.step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover {
border-color: #2ba471 !important;
background: #f0fdf6 !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
}
}
&.active {
border-color: #2563eb !important;
background: #2563eb !important;
color: #ffffff !important;
font-weight: 700 !important;
z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.purchase-page .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.purchase-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部步骤按钮(task-actions > button)
* ============================================================ */
.purchase-page .task-actions {
gap: 14px !important;
margin-top: 20px !important;
}
.purchase-page .task-actions > button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
}
.purchase-page .task-actions > button:hover:not(:disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}
/* 主按钮(primary) */
.purchase-page .task-actions > button.primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}
.purchase-page .task-actions > button.primary:hover:not(:disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 顶部任务工具栏(el-button)
* ============================================================ */
.purchase-page .task-toolbar-button.el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
min-height: 34px !important;
height: 34px !important;
padding: 0 12px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(.is-disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
transform: translateY(-1px) !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.purchase-page) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
}
#app .studentLayout .app-main:has(.purchase-page) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
} }
} }
</style> </style>

@ -3,7 +3,10 @@
<main class="supplier-core"> <main class="supplier-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 供应渠道评估</span> <span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 供应渠道评估</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -535,22 +538,32 @@ onMounted(async () => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(教育蓝极简主题) ===== */
.supplier-page { .supplier-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
--student-text: #1f2937; --student-text: #1f2937;
--student-text-secondary: #6b7280; --student-text-secondary: #6b7280;
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
--student-fs-display: 17px; --student-fs-display: 17px;
--student-fs-h1: 15px; --student-fs-h1: 15px;
--student-fs-h2: 14px; --student-fs-h2: 14px;
@ -583,15 +596,27 @@ onMounted(async () => {
/* ===== task-header(独立白卡片) ===== */ /* ===== task-header(独立白卡片) ===== */
.task-header { .task-header {
position: relative;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 16px;
margin: 0; margin: 0;
padding: 16px; padding: 18px 20px 18px 24px;
border: 1px solid #e7e9ed; border: 1px solid var(--student-panel-border);
border-radius: 16px; border-radius: 12px;
background: #ffffff; background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
}
} }
.task-head-main { .task-head-main {
@ -602,6 +627,14 @@ onMounted(async () => {
flex: 1 1 auto; flex: 1 1 auto;
} }
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge { .task-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -616,6 +649,34 @@ onMounted(async () => {
white-space: nowrap; white-space: nowrap;
} }
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title { .task-title {
margin: 0; margin: 0;
color: var(--student-text); color: var(--student-text);
@ -956,15 +1017,37 @@ onMounted(async () => {
</style> </style>
<style lang="scss"> <style lang="scss">
/* ===== 步骤导航:按钮切换风 ===== */ /* ============================================================
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator { * 教育蓝极简换肤 · channel/supplier.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.supplier-page) {
background: #ffffff !important;
}
/* el-table 基础换肤 */
:has(.supplier-page) {
.el-table {
--el-table-bg-color: #ffffff !important;
--el-table-tr-bg-color: transparent !important;
--el-table-header-bg-color: #fafbfc !important;
--el-table-row-hover-bg-color: rgba(37, 99, 235, 0.04) !important;
line-height: 1.55;
}
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.supplier-page) .step-indicator {
display: flex !important; display: flex !important;
flex-wrap: nowrap !important; flex-wrap: nowrap !important;
align-items: stretch !important; align-items: stretch !important;
justify-content: center !important; justify-content: center !important;
gap: 10px !important; gap: 0 !important;
width: 100% !important; width: 100% !important;
margin: 4px 0 16px !important; margin: 0 0 20px !important;
padding: 0 !important; padding: 0 !important;
border: none !important; border: none !important;
border-radius: 0 !important; border-radius: 0 !important;
@ -972,111 +1055,260 @@ onMounted(async () => {
box-shadow: none !important; box-shadow: none !important;
.step-tab { .step-tab {
flex: 0 0 auto !important; flex: 1 1 0 !important;
min-width: auto !important; max-width: 240px !important;
max-width: none !important;
display: flex !important; display: flex !important;
flex-direction: row !important; flex-direction: row !important;
align-items: center !important; align-items: center !important;
justify-content: center !important; justify-content: center !important;
gap: 8px !important; gap: 8px !important;
min-width: 0 !important;
height: auto !important; height: auto !important;
min-height: 42px !important; min-height: 40px !important;
margin: 0 !important; margin: 0 !important;
padding: 8px 14px !important; padding: 8px 14px !important;
border: 1px solid #e5e7eb !important; border: 1px solid #e5e7eb !important;
border-radius: 8px !important; border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important; background: #ffffff !important;
box-shadow: none !important; box-shadow: none !important;
color: #6b7280 !important; color: #6b7280 !important;
font-size: 13px !important; font-size: 13px !important;
font-weight: 600 !important; font-weight: 600 !important;
line-height: 1.3 !important; line-height: 1.3 !important;
letter-spacing: 0 !important; white-space: normal !important;
white-space: nowrap !important;
text-align: center !important; text-align: center !important;
cursor: pointer; cursor: pointer;
transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important; transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
} }
.step-no,
.step-marker { .step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important; display: inline-flex !important;
align-items: center !important; align-items: center !important;
justify-content: center !important; justify-content: center !important;
flex: 0 0 auto !important;
min-width: 22px !important; min-width: 22px !important;
width: auto !important;
height: 22px !important; height: 22px !important;
padding: 0 5px !important; padding: 0 5px !important;
border: none !important;
border-radius: 6px !important; border-radius: 6px !important;
background: #f3f4f6 !important; background: #f3f4f6 !important;
color: #6b7280 !important; color: #6b7280 !important;
font-family: ui-monospace, "SF Mono", Consolas, monospace !important; font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important; font-size: 12px !important;
font-weight: 700 !important; font-weight: 700 !important;
line-height: 1 !important; line-height: 1 !important;
transition: background-color 0.16s ease, color 0.16s ease !important; transition: all 0.16s ease !important;
&::after {
display: none !important;
} }
.step-copy {
display: flex !important;
flex-direction: column !important;
gap: 0 !important;
min-width: 0 !important;
} }
.step-name { .step-name {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: normal !important;
line-height: 1.3 !important;
color: inherit !important; color: inherit !important;
} }
/* 未到达项 hover */ .step-copy {
.step-tab:hover:not(.active):not(.complete) { margin-left: 0 !important;
border-color: #1f2937 !important; gap: 4px !important;
background: #f9fafb !important;
color: #1f2937 !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; }
} }
/* 已完成 */ &:hover:not(.active):not(.complete) {
.step-tab.complete:not(.active) { border-color: #2563eb !important;
border-color: #dce9e2 !important; background: #eff6ff !important;
color: #2563eb !important;
z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
}
&.complete:not(.active) {
border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } .step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; } z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
} }
} }
/* 当前步骤 */ &.active {
.step-tab.active { border-color: #2563eb !important;
border-color: #1f2937 !important; background: #2563eb !important;
background: #1f2937 !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; } z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover {
background: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
}
}
.step-connector {
display: none !important;
}
}
/* ============================================================
* 共用组件换肤:TrainingMaterialButton 资料按钮
* ============================================================ */
.supplier-page .workbench-actions .material-button.el-button,
.supplier-page .supplier-toolbar .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.supplier-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover { &:hover {
background: #111827 !important; border-color: #2563eb !important;
border-color: #111827 !important; color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部步骤按钮(el-button)
* ============================================================ */
.supplier-page .page-actions .el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
} }
.supplier-page .page-actions .el-button:hover:not(.is-disabled) {
transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
} }
/* 主按钮(el-button--primary) */
.supplier-page .page-actions .el-button--primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
} }
/* ===== 窄屏:900px 横向滑动 ===== */ .supplier-page .page-actions .el-button--primary:hover:not(.is-disabled) {
border-color: #1d4ed8 !important;
color: #ffffff !important;
background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) { @media (max-width: 900px) {
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator { #app .studentLayout .app-main:has(.supplier-page) .step-indicator {
justify-content: flex-start !important; justify-content: flex-start !important;
gap: 8px !important;
overflow-x: auto !important; overflow-x: auto !important;
} }
#app .studentLayout section.app-main:has(.supplier-page) .step-indicator .step-tab { #app .studentLayout .app-main:has(.supplier-page) .step-indicator .step-tab {
flex: 0 0 auto !important; flex: 0 0 140px !important;
max-width: none !important; max-width: none !important;
} }
} }

@ -3,10 +3,13 @@
<main class="factors-core"> <main class="factors-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"> <span class="task-badge">
<el-icon><Operation /></el-icon> <el-icon><Operation /></el-icon>
核心实训 · 互联网产品开发基础 核心实训 · 互联网产品开发基础
</span> </span>
<span class="task-status">进行中 · Step {{ String(currentStep + 1).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -581,6 +584,41 @@ function exportOutcome() {
min-width: 0; min-width: 0;
} }
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-accent);
background: var(--student-accent-soft);
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge { .task-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -719,8 +757,8 @@ function exportOutcome() {
/* Step 编号小标签:教育蓝引导文字 */ /* Step 编号小标签:教育蓝引导文字 */
.section-eyebrow { .section-eyebrow {
margin: 0; margin: 0;
color: #2563eb; color: var(--student-accent);
font-size: 11px; font-size: var(--student-fs-caption);
font-weight: 800; font-weight: 800;
line-height: 1.3; line-height: 1.3;
letter-spacing: 0.12em; letter-spacing: 0.12em;

@ -3,7 +3,10 @@
<main class="process-core"> <main class="process-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><Operation /></el-icon>核心实训 · 产品开发基础</span> <span class="task-badge"><el-icon><Operation /></el-icon>核心实训 · 产品开发基础</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -20,9 +23,6 @@
</span> </span>
</p> </p>
</div> </div>
</section>
<section class="process-workbench">
<div class="workbench-head workbench-head--actions-only"> <div class="workbench-head workbench-head--actions-only">
<div class="workbench-actions"> <div class="workbench-actions">
<TrainingMaterialButton <TrainingMaterialButton
@ -38,6 +38,7 @@
<button type="button" class="outline-action" @click="exportOutcome"><el-icon><Download /></el-icon>导出实训成果</button> <button type="button" class="outline-action" @click="exportOutcome"><el-icon><Download /></el-icon>导出实训成果</button>
</div> </div>
</div> </div>
</section>
<nav v-if="trainingSteps.length" class="step-indicator" aria-label="产品开发主要流程步骤"> <nav v-if="trainingSteps.length" class="step-indicator" aria-label="产品开发主要流程步骤">
<button <button
@ -714,6 +715,41 @@ function exportOutcome() {
min-width: 0; min-width: 0;
} }
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-accent);
background: var(--student-accent-soft);
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge { .task-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -814,7 +850,7 @@ function exportOutcome() {
gap: 8px; gap: 8px;
} }
/* 顶部"导出实训成果"按钮:白底灰描边次按钮 */ /* 顶部"导出实训成果"按钮:白底教育蓝描边次按钮 */
.outline-action { .outline-action {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -822,9 +858,9 @@ function exportOutcome() {
gap: 7px; gap: 7px;
min-height: 36px; min-height: 36px;
padding: 0 14px; padding: 0 14px;
border: 1px solid #d1d5db; border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px; border-radius: 8px;
color: #374151; color: #2563eb;
background: #ffffff; background: #ffffff;
font-family: inherit; font-family: inherit;
font-size: 13px; font-size: 13px;
@ -896,24 +932,25 @@ function exportOutcome() {
border-radius: 8px; border-radius: 8px;
} }
/* Step 编号小标签:灰色宽字距引导文字 */ /* Step 编号小标签:教育蓝引导文字 */
.section-eyebrow { .section-eyebrow {
margin: 0; margin: 0;
color: var(--student-text-secondary); color: var(--student-accent);
font-size: 11px; font-size: var(--student-fs-caption);
font-weight: 800; font-weight: 800;
line-height: 1.3; line-height: 1.3;
letter-spacing: 0.12em; letter-spacing: 0.12em;
} }
/* 步骤小徽章:中性灰白 */ /* 步骤小徽章:教育蓝浅底 */
.step-chip { .step-chip {
padding: 3px 10px; flex: 0 0 auto;
border: 1px solid #e5e7eb; padding: 4px 10px;
border: 1px solid #bfdbfe;
border-radius: 999px; border-radius: 999px;
color: #6b7280; color: var(--student-accent);
background: #ffffff; background: var(--student-accent-soft);
font-size: 11px; font-size: var(--student-fs-caption);
font-weight: 600; font-weight: 600;
white-space: nowrap; white-space: nowrap;
} }

File diff suppressed because one or more lines are too long

@ -3,9 +3,12 @@
<main class="product-positioning-core"> <main class="product-positioning-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-badge"> <div class="task-head-top">
<span class="task-badge">
<el-icon><Operation /></el-icon> <el-icon><Operation /></el-icon>
市场洞察与需求分析 市场洞察与需求分析
</span>
<span class="task-status">进行中 · Step {{ String(form.activeStep).padStart(2, "0") }}</span>
</div> </div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
@ -771,6 +774,41 @@ async function handleValueCanvasUpload(event) {
flex: 1 1 auto; flex: 1 1 auto;
} }
/* task-head-top:badge + 脉动状态横排 */
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-badge { .task-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;

File diff suppressed because it is too large Load Diff

@ -3,7 +3,10 @@
<main class="opportunity-core"> <main class="opportunity-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 市场洞察与需求分析</span> <span class="task-badge"><el-icon><DataAnalysis /></el-icon> 核心实训 · 市场洞察与需求分析</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -340,6 +343,41 @@ function exportOutcome() { const blob = new Blob([JSON.stringify({ taskName: tas
flex: 1 1 auto; flex: 1 1 auto;
} }
/* task-head-top:badge + 脉动状态横排 */
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.task-status {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-brief { .task-brief {
margin: 0; margin: 0;
color: var(--student-text-secondary); color: var(--student-text-secondary);

@ -3,7 +3,10 @@
<main class="price-core"> <main class="price-core">
<section class="task-header"> <section class="task-header">
<div class="task-head-main"> <div class="task-head-main">
<div class="task-head-top">
<span class="task-badge">核心实训 · 新产品定价</span> <span class="task-badge">核心实训 · 新产品定价</span>
<span class="task-status">进行中 · Step {{ String(currentStep).padStart(2, "0") }}</span>
</div>
<h1 class="task-title">{{ taskTitle }}</h1> <h1 class="task-title">{{ taskTitle }}</h1>
<p class="task-brief"> <p class="task-brief">
<span class="task-brief-text">{{ taskBackground }}</span> <span class="task-brief-text">{{ taskBackground }}</span>
@ -1548,22 +1551,32 @@ onMounted(async () => {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(教育蓝极简主题) ===== */
.price-page { .price-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
--student-text: #1f2937; --student-text: #1f2937;
--student-text-secondary: #6b7280; --student-text-secondary: #6b7280;
--el-color-primary: #2563eb;
--el-color-primary-light-3: #60a5fa;
--el-color-primary-light-5: #93c5fd;
--el-color-primary-light-7: #bfdbfe;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff6ff;
--el-color-primary-dark-2: #1d4ed8;
--el-input-hover-border-color: #3b82f6;
--el-input-focus-border-color: #2563eb;
--el-input-focus-ring-color: rgba(59, 130, 246, 0.15);
--student-fs-display: 17px; --student-fs-display: 17px;
--student-fs-h1: 15px; --student-fs-h1: 15px;
--student-fs-h2: 14px; --student-fs-h2: 14px;
@ -1594,15 +1607,27 @@ onMounted(async () => {
/* 任务头:独立白卡片(对齐 foundation 的 .task-header) */ /* 任务头:独立白卡片(对齐 foundation 的 .task-header) */
.task-header { .task-header {
position: relative;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 16px;
margin: 0; margin: 0;
padding: 16px; padding: 18px 20px 18px 24px;
border: 1px solid #e7e9ed; border: 1px solid var(--student-panel-border);
border-radius: 16px; border-radius: 12px;
background: #ffffff; background: var(--student-card-bg);
overflow: hidden;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--student-accent);
}
} }
/* task-header 内部主列(对齐 foundation 的 .task-head-main) */ /* task-header 内部主列(对齐 foundation 的 .task-head-main) */
@ -1614,6 +1639,14 @@ onMounted(async () => {
flex: 1 1 auto; flex: 1 1 auto;
} }
.task-head-top {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.task-badge { .task-badge {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -1627,6 +1660,34 @@ onMounted(async () => {
font-weight: 700; font-weight: 700;
} }
.task-status {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px;
border-radius: 999px;
color: var(--student-text-secondary);
background: #f3f4f6;
font-family: var(--student-font-data);
font-size: var(--student-fs-caption);
font-weight: 600;
white-space: nowrap;
&::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--student-accent-light);
animation: pulse 1.8s ease-in-out infinite;
}
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.task-title { .task-title {
margin: 0; margin: 0;
color: var(--student-text); color: var(--student-text);
@ -2328,161 +2389,347 @@ onMounted(async () => {
</style> </style>
<style lang="scss"> <style lang="scss">
/* ===== 步骤导航:按钮切换风 ===== */ /* ============================================================
#app .studentLayout section.app-main:has(.price-page) .step-indicator { * 教育蓝极简换肤 · product/price.vue
* ============================================================ */
/* 画布背景 */
#app .studentLayout .app-main:has(.price-page) {
background: #ffffff !important;
}
/* ============================================================
* 步骤导航:分段连接胶囊(教育蓝极简)
* ============================================================ */
#app .studentLayout .app-main:has(.price-page) .step-indicator {
display: flex !important; display: flex !important;
flex-wrap: nowrap !important; flex-wrap: nowrap !important;
align-items: stretch !important; align-items: stretch !important;
justify-content: center !important; justify-content: center !important;
gap: 10px !important; gap: 0 !important;
width: 100% !important; width: 100% !important;
margin: 4px 0 16px !important; margin: 0 0 20px !important;
padding: 0 !important; padding: 0 !important;
border: none !important; border: none !important;
border-radius: 0 !important; border-radius: 0 !important;
background: transparent !important; background: transparent !important;
box-shadow: none !important; box-shadow: none !important;
.step-connector { display: none !important; } .step-connector {
display: none !important;
}
.step-tab { .step-tab {
flex: 0 0 auto !important; flex: 1 1 0 !important;
min-width: auto !important; max-width: 240px !important;
max-width: none !important;
display: flex !important; display: flex !important;
flex-direction: row !important; flex-direction: row !important;
align-items: center !important; align-items: center !important;
justify-content: center !important; justify-content: center !important;
gap: 8px !important; gap: 8px !important;
min-width: 0 !important;
height: auto !important; height: auto !important;
min-height: 42px !important; min-height: 40px !important;
margin: 0 !important; margin: 0 !important;
padding: 8px 14px !important; padding: 8px 14px !important;
border: 1px solid #e5e7eb !important; border: 1px solid #e5e7eb !important;
border-radius: 8px !important; border-right: none !important;
border-radius: 0 !important;
background: #ffffff !important; background: #ffffff !important;
box-shadow: none !important; box-shadow: none !important;
color: #6b7280 !important; color: #6b7280 !important;
font-size: 13px !important; font-size: 13px !important;
font-weight: 600 !important; font-weight: 600 !important;
line-height: 1.3 !important; line-height: 1.3 !important;
letter-spacing: 0 !important; white-space: normal !important;
white-space: nowrap !important;
text-align: center !important; text-align: center !important;
cursor: pointer; cursor: pointer;
transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important; transition: all 0.16s ease !important;
&:first-child {
border-radius: 8px 0 0 8px !important;
}
&:last-child {
border-radius: 0 8px 8px 0 !important;
border-right: 1px solid #e5e7eb !important;
}
.step-bar {
display: none !important;
}
.step-no,
.step-marker { .step-marker {
position: static !important;
flex: 0 0 auto !important;
display: inline-flex !important; display: inline-flex !important;
align-items: center !important; align-items: center !important;
justify-content: center !important; justify-content: center !important;
flex: 0 0 auto !important;
min-width: 22px !important; min-width: 22px !important;
width: auto !important;
height: 22px !important; height: 22px !important;
padding: 0 5px !important; padding: 0 5px !important;
border: none !important;
border-radius: 6px !important; border-radius: 6px !important;
background: #f3f4f6 !important; background: #f3f4f6 !important;
color: #6b7280 !important; color: #6b7280 !important;
font-family: ui-monospace, "SF Mono", Consolas, monospace !important; font-family: var(--student-font-data), ui-monospace, "SF Mono", Consolas, monospace !important;
font-size: 12px !important; font-size: 12px !important;
font-weight: 700 !important; font-weight: 700 !important;
line-height: 1 !important; line-height: 1 !important;
transition: background-color 0.16s ease, color 0.16s ease !important; transition: all 0.16s ease !important;
box-shadow: none !important; &::after {
display: none !important;
}
} }
.step-copy { .step-name {
display: flex !important;
flex-direction: column !important;
gap: 0 !important;
min-width: 0 !important;
margin-left: 0 !important;
strong {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: normal !important;
line-height: 1.3 !important;
color: inherit !important; color: inherit !important;
font-size: 13px !important;
font-weight: inherit !important;
} }
span { display: none !important; } .step-copy {
margin-left: 0 !important;
gap: 4px !important;
} }
/* 未到达项 hover */
&:hover:not(.active):not(.complete) { &:hover:not(.active):not(.complete) {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f9fafb !important; background: #eff6ff !important;
color: #1f2937 !important; color: #2563eb !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; } z-index: 1 !important;
.step-no,
.step-marker {
background: #2563eb !important;
color: #ffffff !important;
}
} }
/* 已完成 */
&.complete:not(.active) { &.complete:not(.active) {
border-color: #dce9e2 !important; border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } .step-no,
.step-marker {
background: rgba(43, 164, 113, 0.12) !important;
color: #16915f !important;
}
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; } z-index: 1 !important;
.step-no,
.step-marker {
background: #2ba471 !important;
color: #ffffff !important;
}
} }
} }
/* 当前步骤 */
&.active { &.active {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; } z-index: 2 !important;
.step-no,
.step-marker {
background: #ffffff !important;
color: #2563eb !important;
}
&:hover { &:hover {
background: #111827 !important; background: #1d4ed8 !important;
border-color: #111827 !important; border-color: #1d4ed8 !important;
} }
} }
} }
} }
/* ===== 窄屏 ===== */ /* ============================================================
@media (max-width: 900px) { * 共用组件换肤:TrainingMaterialButton 资料按钮
#app .studentLayout section.app-main:has(.price-page) .step-indicator { * ============================================================ */
justify-content: flex-start !important; .price-page .price-toolbar .material-button.el-button,
.price-page .workbench-actions .material-button.el-button {
height: 36px !important;
min-height: 36px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
&.is-plain {
border-color: #e5e7eb !important;
color: #9ca3af !important;
&:hover {
border-color: #e5e7eb !important;
color: #9ca3af !important;
background: #ffffff !important;
box-shadow: none !important;
}
}
}
/* ============================================================
* 顶部导出按钮(outline-action)
* ============================================================ */
.price-page .price-toolbar > button.outline-action,
.price-page .workbench-actions > button.outline-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
line-height: 1 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: none !important;
}
}
/* ============================================================
* 底部操作按钮(el-button)
* ============================================================ */
.price-page .workbench-footer .el-button {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important; gap: 8px !important;
overflow-x: auto !important; height: 40px !important;
min-height: 40px !important;
padding: 0 18px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 10px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 700 !important;
transition:
transform 0.16s ease,
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease !important;
} }
#app .studentLayout section.app-main:has(.price-page) .step-indicator .step-tab {
flex: 0 0 auto !important; .price-page .workbench-footer .el-button:hover:not(.is-disabled) {
max-width: none !important; transform: translateY(-1px) !important;
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important;
} }
/* 主按钮(el-button--primary) */
.price-page .workbench-footer .el-button--primary {
border-color: #2563eb !important;
color: #ffffff !important;
background: #2563eb !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
} }
/* ===== 工具栏换肤 ===== */ .price-page .workbench-footer .el-button--primary:hover:not(.is-disabled) {
.price-page .outline-action { border-color: #1d4ed8 !important;
display: inline-flex; color: #ffffff !important;
align-items: center; background: #1d4ed8 !important;
justify-content: center; box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
gap: 6px; }
min-height: 36px;
height: 36px; /* ============================================================
padding: 0 14px; * 步骤内按钮(primary-button, secondary-button)
border: 1px solid #d1d5db; * ============================================================ */
border-radius: 8px; .price-page .primary-button {
color: #374151; display: inline-flex !important;
background: #ffffff; align-items: center !important;
box-shadow: none; justify-content: center !important;
text-shadow: none; gap: 6px !important;
font-size: 13px; height: 36px !important;
font-weight: 600; min-height: 36px !important;
transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease; padding: 0 14px !important;
border: 1px solid rgba(37, 99, 235, 0.45) !important;
border-radius: 8px !important;
color: #2563eb !important;
background: #ffffff !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(:disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
transform: translateY(-1px) !important;
}
} }
.price-page .outline-action .el-icon { .price-page .secondary-button {
font-size: 14px; display: inline-flex !important;
color: inherit; align-items: center !important;
justify-content: center !important;
gap: 6px !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 14px !important;
border: 1px solid #e5e7eb !important;
border-radius: 8px !important;
color: #374151 !important;
background: #f3f4f6 !important;
font-size: 13px !important;
font-weight: 600 !important;
transition:
border-color 0.16s ease,
background 0.16s ease,
color 0.16s ease,
box-shadow 0.16s ease !important;
&:hover:not(:disabled) {
border-color: #2563eb !important;
color: #2563eb !important;
background: #eff6ff !important;
}
}
/* ============================================================
* 窄屏:横向滑动
* ============================================================ */
@media (max-width: 900px) {
#app .studentLayout .app-main:has(.price-page) .step-indicator {
justify-content: flex-start !important;
overflow-x: auto !important;
}
#app .studentLayout .app-main:has(.price-page) .step-indicator .step-tab {
flex: 0 0 140px !important;
max-width: none !important;
}
} }
</style> </style>

@ -283,15 +283,15 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
<style scoped lang="scss"> <style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(墨黑极简主题) ===== */
.release-channel-page { .release-channel-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
@ -649,7 +649,7 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.table-wrap :deep(.el-textarea__inner:focus), .table-wrap :deep(.el-textarea__inner:focus),
.analysis-field :deep(.el-textarea__inner:focus), .analysis-field :deep(.el-textarea__inner:focus),
.table-wrap :deep(.el-input__wrapper.is-focus) { .table-wrap :deep(.el-input__wrapper.is-focus) {
outline: 2px solid rgba(31, 41, 55, 0.2); outline: 2px solid rgba(37, 99, 235, 0.2);
outline-offset: -2px; outline-offset: -2px;
box-shadow: none; box-shadow: none;
} }
@ -766,33 +766,33 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.step-copy small { display: none !important; } .step-copy small { display: none !important; }
&:hover:not(.active):not(.complete) { &:hover:not(.active):not(.complete) {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f9fafb !important; background: #eff6ff !important;
color: #1f2937 !important; color: #2563eb !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; } .step-marker { background: #2563eb !important; color: #ffffff !important; }
} }
&.complete:not(.active) { &.complete:not(.active) {
border-color: #dce9e2 !important; border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } .step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; } .step-marker { background: #2ba471 !important; color: #ffffff !important; }
} }
} }
&.active { &.active {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
box-shadow: none !important; box-shadow: none !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; } .step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover { &:hover {
background: #111827 !important; background: #1d4ed8 !important;
border-color: #111827 !important; border-color: #1d4ed8 !important;
} }
} }
} }
@ -820,22 +820,24 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
} }
.release-channel-page .table-actions .el-button--primary, .release-channel-page .table-actions .el-button--primary,
.release-channel-page .footer-actions .el-button--primary { .release-channel-page .footer-actions .el-button--primary {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
} }
.release-channel-page .table-actions .el-button--primary:hover, .release-channel-page .table-actions .el-button--primary:hover,
.release-channel-page .footer-actions .el-button--primary:hover { .release-channel-page .footer-actions .el-button--primary:hover {
border-color: #111827 !important; border-color: #1d4ed8 !important;
background: #111827 !important; background: #1d4ed8 !important;
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
} }
.release-channel-page .footer-actions .el-button:not(.el-button--primary) { .release-channel-page .footer-actions .el-button:not(.el-button--primary) {
border-color: rgba(31, 41, 55, 0.4) !important; border-color: rgba(37, 99, 235, 0.45) !important;
background: #ffffff !important; background: #ffffff !important;
color: #1f2937 !important; color: #2563eb !important;
} }
.release-channel-page .footer-actions .el-button:not(.el-button--primary):hover { .release-channel-page .footer-actions .el-button:not(.el-button--primary):hover {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f3f4f6 !important; background: #eff6ff !important;
} }
</style> </style>

@ -293,15 +293,15 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
<style scoped lang="scss"> <style scoped lang="scss">
/* ===== 页面级令牌(墨黑极简主题) ===== */ /* ===== 页面级令牌(墨黑极简主题) ===== */
.promotion-page { .promotion-page {
--student-accent: #1f2937; --student-accent: #2563eb;
--student-accent-deep: #111827; --student-accent-deep: #1d4ed8;
--student-accent-light: #4b5563; --student-accent-light: #3b82f6;
--student-accent-soft: #f3f4f6; --student-accent-soft: #eff6ff;
--student-danger: #d9554c; --student-danger: #ef4444;
--student-success: #4a9d6e; --student-success: #2ba471;
--student-layer-1: #374151; --student-layer-1: #1d4ed8;
--student-layer-2: #43a294; --student-layer-2: #3b82f6;
--student-layer-3: #8b6fc0; --student-layer-3: #93c5fd;
--student-panel-border: #e5e7eb; --student-panel-border: #e5e7eb;
--student-card-bg: #ffffff; --student-card-bg: #ffffff;
--student-panel-bg: #fafbfc; --student-panel-bg: #fafbfc;
@ -795,36 +795,36 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.step-action { display: none !important; } .step-action { display: none !important; }
/* 未到达项 hover */ /* 未到达项 hover:教育蓝边浅底 */
&:hover:not(.active):not(.complete) { &:hover:not(.active):not(.complete) {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #f9fafb !important; background: #eff6ff !important;
color: #1f2937 !important; color: #2563eb !important;
.step-marker { background: #1f2937 !important; color: #ffffff !important; } .step-marker { background: #2563eb !important; color: #ffffff !important; }
} }
/* 已完成 */ /* 已完成:绿色编号徽章 */
&.complete:not(.active) { &.complete:not(.active) {
border-color: #dce9e2 !important; border-color: #e5e7eb !important;
color: #374151 !important; color: #374151 !important;
.step-marker { background: rgba(74, 157, 110, 0.12) !important; color: #3f8a5f !important; } .step-marker { background: rgba(43, 164, 113, 0.12) !important; color: #16915f !important; }
&:hover { &:hover {
border-color: #4a9d6e !important; border-color: #2ba471 !important;
background: #f9fafb !important; background: #f0fdf6 !important;
.step-marker { background: #4a9d6e !important; color: #ffffff !important; } .step-marker { background: #2ba471 !important; color: #ffffff !important; }
} }
} }
/* 当前步骤 */ /* 当前步骤:教育蓝实底 */
&.active { &.active {
border-color: #1f2937 !important; border-color: #2563eb !important;
background: #1f2937 !important; background: #2563eb !important;
color: #ffffff !important; color: #ffffff !important;
font-weight: 700 !important; font-weight: 700 !important;
.step-marker { background: #ffffff !important; color: #1f2937 !important; } .step-marker { background: #ffffff !important; color: #2563eb !important; }
&:hover { &:hover {
background: #111827 !important; background: #1d4ed8 !important;
border-color: #111827 !important; border-color: #1d4ed8 !important;
} }
} }
} }
@ -854,9 +854,9 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
min-height: 36px; min-height: 36px;
height: 36px; height: 36px;
padding: 0 14px; padding: 0 14px;
border: 1px solid #d1d5db; border: 1px solid rgba(37, 99, 235, 0.45);
border-radius: 8px; border-radius: 8px;
color: #374151; color: #2563eb;
background: #ffffff; background: #ffffff;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
@ -872,30 +872,30 @@ onMounted(async () => { try { const result = await getTrainingTaskByKey(TASK_KEY
.promotion-page .task-toolbar-button.el-button:hover, .promotion-page .task-toolbar-button.el-button:hover,
.promotion-page .task-toolbar-button.el-button:focus { .promotion-page .task-toolbar-button.el-button:focus {
border-color: #1f2937; border-color: #2563eb;
color: #1f2937; color: #2563eb;
background: #f9fafb; background: #eff6ff;
box-shadow: 0 2px 6px rgba(17, 24, 39, 0.1); box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
} }
.promotion-page .task-toolbar-button--submit.el-button { .promotion-page .task-toolbar-button--submit.el-button {
border-color: #1f2937; border-color: #2563eb;
color: #ffffff; color: #ffffff;
background: #1f2937; background: #2563eb;
box-shadow: 0 2px 8px rgba(17, 24, 39, 0.22); box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35), 0 3px 10px rgba(37, 99, 235, 0.22);
} }
.promotion-page .task-toolbar-button--submit.el-button:hover, .promotion-page .task-toolbar-button--submit.el-button:hover,
.promotion-page .task-toolbar-button--submit.el-button:focus { .promotion-page .task-toolbar-button--submit.el-button:focus {
border-color: #111827; border-color: #1d4ed8;
color: #ffffff; color: #ffffff;
background: #111827; background: #1d4ed8;
box-shadow: 0 4px 12px rgba(17, 24, 39, 0.28); box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4), 0 5px 14px rgba(29, 78, 216, 0.28);
} }
.promotion-page .task-toolbar-button.el-button.is-loading { .promotion-page .task-toolbar-button.el-button.is-loading {
border-color: #d1d5db; border-color: rgba(37, 99, 235, 0.45);
color: #374151; color: #2563eb;
background: #ffffff; background: #ffffff;
} }
</style> </style>

Loading…
Cancel
Save