diff --git a/src/views/channel/purchase.vue b/src/views/channel/purchase.vue index f4850e7..fff2270 100644 --- a/src/views/channel/purchase.vue +++ b/src/views/channel/purchase.vue @@ -33,13 +33,6 @@
-
-
-

Kraljic Matrix Analysis

-

卡拉杰克模型分析

-
-
-

卡拉杰克模型是由彼得·卡拉杰克于1983年提出的一种采购管理工具,旨在帮助企业更好地管理供应链和采购策略。该模型从供应风险和利润影响两个维度出发,把物品分为四个象限:

@@ -656,32 +649,6 @@ onMounted(() => { 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); diff --git a/src/views/demand/business-feasibility.vue b/src/views/demand/business-feasibility.vue index 0b85d43..a28cc29 100644 --- a/src/views/demand/business-feasibility.vue +++ b/src/views/demand/business-feasibility.vue @@ -245,11 +245,6 @@
-
@@ -284,11 +279,6 @@
-
@@ -340,9 +330,6 @@
-
返回第 3 步 + +
+
+ + +
+
+ Step {{ String(currentStep).padStart(2, "0") }} / {{ String(trainingSteps.length).padStart(2, "0") }} + +
+
@@ -926,11 +936,112 @@ td:last-child { font-size: 13px; } -.step-actions { +/* ===== 底部导航:工具栏式 ===== */ +.step-navigation { + position: relative; display: flex; - justify-content: center; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; gap: 10px; - margin-top: 24px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.step-nav-left, +.step-nav-right { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; +} + +.step-nav-right { + margin-left: auto; +} + +.btn-nav { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border-radius: 8px; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 14px; + } +} + +.btn-primary { + border: 1px solid var(--student-accent); + color: #ffffff; + background: var(--student-accent); + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } +} + +.btn-ghost { + border: 1px solid rgba(37, 99, 235, 0.35); + color: var(--student-accent); + background: #ffffff; + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } +} + +.btn-save { + border: 1px solid #e5e7eb; + color: #4b5563; + background: #f9fafb; + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } +} + +.btn-primary:disabled, +.btn-ghost:disabled, +.btn-save:disabled, +.btn-nav:disabled { + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; +} + +.step-progress { + color: var(--student-text-secondary); + font-size: var(--student-fs-caption); + font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; } /* placeholder */ @@ -1374,7 +1485,7 @@ td:last-child { display: none; } - .step-actions { + .step-navigation { flex-wrap: wrap; } } diff --git a/src/views/demand/competitive-environment-analysis.vue b/src/views/demand/competitive-environment-analysis.vue index f3057c6..a3eec85 100644 --- a/src/views/demand/competitive-environment-analysis.vue +++ b/src/views/demand/competitive-environment-analysis.vue @@ -1,284 +1,304 @@ - - - - - - - +/* workbench 层:透明容器 */ +.analysis-workbench { + margin: 0; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + display: grid; + gap: 10px; +} + +/* step-card 层:透明容器 */ +.step-card { + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + display: grid; + gap: 10px; +} + +.step-title-row { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 12px; +} + +.step-title-row p { margin: 0; } + +.step-title-row h2 { + margin: 4px 0 0; + color: var(--student-text); + font-size: var(--student-fs-h1); + font-weight: 700; + line-height: 1.35; +} + +.step-title-row > span { + border: 1px solid var(--student-panel-border); + border-radius: 6px; + padding: 3px 10px; + color: var(--student-text-secondary); + font-size: 11px; + font-weight: 600; + white-space: nowrap; +} + +.step-desc { + margin: 14px 0; + color: var(--student-text-secondary); + font-size: var(--student-fs-body); + line-height: 1.6; +} + +.research-guide { + margin: 14px 0 12px; + padding: 12px 14px; + border-left: 3px solid var(--student-accent); + background: var(--student-accent-soft); + border-radius: 0 8px 8px 0; + color: var(--student-text-secondary); + font-size: var(--student-fs-body); + line-height: 1.6; +} + +.research-guide p { margin: 0 0 6px; } +.research-guide ol { margin: 0 0 6px; padding-left: 20px; } +.research-guide li + li { margin-top: 4px; } + +.step-warning { + margin: 10px 0; + color: #b45309; + font-size: var(--student-fs-body-sm); +} + +/* ===== 表格 ===== */ +.swot-table-wrap, +.strategy-table-wrap, +.priority-table-wrap { overflow-x: auto; } + +.swot-table, +.strategy-table, +.priority-table { + width: 100%; + border-collapse: collapse; +} + +.swot-table { min-width: 720px; } +.strategy-table { min-width: 980px; } +.priority-table { min-width: 820px; } + +.swot-table th, +.swot-table td, +.strategy-table th, +.strategy-table td, +.priority-table th, +.priority-table td { + border: 1px solid var(--student-panel-border); +} + +.swot-table th, +.strategy-table th, +.priority-table th { + padding: 10px 12px; + color: var(--student-text); + background: #fafbfc; + font-size: var(--student-fs-body-sm); + font-weight: 800; + text-align: left; +} + +.swot-table th:first-child, +.swot-table td:first-child { + width: 8%; + text-align: center; +} + +.swot-table th:nth-child(2), +.dimension-cell { + width: 18%; + text-align: center; + font-weight: 700; +} + +.strategy-table th:first-child, +.strategy-table .strategy-type { + width: 18%; + text-align: center; + font-weight: 700; +} + +.strategy-table th:nth-child(2) { width: 28%; } + +.strategy-table .logic-cell { + padding: 10px 12px; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.55; +} + +.strategy-table .logic-cell p { margin: 0 0 6px; } +.strategy-table .logic-cell p:last-child { margin-bottom: 0; } + +.strategy-table .logic-cell strong { + color: var(--student-text); + font-size: var(--student-fs-body-sm); +} + +.priority-table th:first-child, +.priority-table td:first-child { + width: 16%; + text-align: center; +} + +.priority-table th:nth-child(2) { width: 42%; } + +.swot-table textarea, +.strategy-table textarea, +.priority-table textarea, +.risk-grid textarea, +.conclusion-textarea { + box-sizing: border-box; + display: block; + width: 100%; + min-height: 112px; + resize: vertical; + border: 0; + padding: 8px 10px; + color: var(--student-text); + background: transparent; + font: inherit; + font-size: var(--student-fs-body); + line-height: 1.55; +} + +.swot-table textarea:focus, +.strategy-table textarea:focus, +.priority-table textarea:focus, +.risk-grid textarea:focus, +.conclusion-textarea:focus { + outline: 2px solid rgba(37, 99, 235, 0.15); + outline-offset: -2px; +} + +.swot-table textarea:disabled, +.strategy-table textarea:disabled, +.priority-table textarea:disabled, +.risk-grid textarea:disabled, +.conclusion-textarea:disabled { + cursor: not-allowed; + color: var(--student-text-secondary); + background: var(--student-accent-soft); +} + +/* ===== 决策区 ===== */ +.decision-section { + margin-top: 20px; + padding: 14px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.decision-section h3 { + margin: 0; + color: var(--student-text); + font-size: var(--student-fs-h2); + font-weight: 700; +} + +.decision-section > p { + margin: 6px 0 10px; + color: var(--student-text-secondary); + font-size: var(--student-fs-body); + line-height: 1.55; +} + +.section-tip { + color: var(--student-accent) !important; + font-size: var(--student-fs-body-sm) !important; +} + +.priority-table select { + min-width: 90px; + border: 1px solid var(--student-panel-border); + border-radius: 6px; + padding: 6px 8px; + color: var(--student-text); + background: #ffffff; + font: inherit; + font-size: var(--student-fs-body-sm); +} + +.priority-strategy { + padding: 10px 12px; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.55; +} + +.priority-strategy strong { + color: var(--student-text); + font-weight: 600; +} + +.priority-strategy p { + margin: 4px 0 0; + white-space: pre-line; +} + +.priority-table textarea { min-height: 96px; } + +.risk-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 12px; +} + +.risk-grid label { + display: grid; + gap: 6px; + color: var(--student-text); + font-weight: 600; + font-size: var(--student-fs-body-sm); +} + +.risk-grid textarea { + min-height: 120px; + border: 1px solid var(--student-panel-border); + border-radius: 6px; + background: #ffffff; +} + +.conclusion-textarea { + min-height: 160px; + border: 1px solid var(--student-panel-border); + border-radius: 6px; + background: #ffffff; +} + +/* ===== 底部导航:工具栏式 ===== */ +.step-navigation { + position: relative; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.step-nav-left, +.step-nav-right { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; +} + +.step-nav-right { + margin-left: auto; +} + +.btn-nav { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border-radius: 8px; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 14px; + } +} + +.btn-primary { + border: 1px solid var(--student-accent); + color: #ffffff; + background: var(--student-accent); + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } +} + +.btn-ghost { + border: 1px solid rgba(37, 99, 235, 0.35); + color: var(--student-accent); + background: #ffffff; + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } +} + +.btn-save { + border: 1px solid #e5e7eb; + color: #4b5563; + background: #f9fafb; + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } +} + +.btn-primary:disabled, +.btn-ghost:disabled, +.btn-save:disabled, +.btn-nav:disabled { + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; +} + +.step-progress { + color: var(--student-text-secondary); + font-size: var(--student-fs-caption); + font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; +} + +.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.35); + border-radius: 8px; + color: var(--student-text); + background: #ffffff; + font-size: var(--student-fs-button); + font-weight: 700; + cursor: pointer; + text-shadow: none; + transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; +} + +.btn:hover { + border-color: var(--student-accent); + background: var(--student-accent-soft); + color: var(--student-accent); + transform: translateY(-1px); + box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12); +} + +.btn.btn-primary { + border-color: var(--student-accent); + color: #ffffff; + background: var(--student-accent); + font-weight: 700; + box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28); +} + +.btn.btn-primary:hover { + background: var(--student-accent-deep); + border-color: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32); +} + +.btn:disabled { + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; +} + +.outline-action { + 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.35); + border-radius: 8px; + color: var(--student-accent); + background: #ffffff; + font-size: 13px; + font-weight: 700; + cursor: pointer; + text-shadow: none; + transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease; +} + +.outline-action:hover { + border-color: var(--student-accent); + background: var(--student-accent-soft); + color: var(--student-accent); +} + +.step-placeholder { + padding: 60px 20px; + text-align: center; + color: var(--student-text-secondary); +} + +.step-placeholder p { + color: var(--student-text); + font-size: var(--student-fs-h2); + font-weight: 600; +} + +/* ===== 响应式 ===== */ +@media (max-width: 720px) { + .task-header { flex-direction: column; align-items: flex-start; } + .workbench-head { justify-content: flex-start; flex-wrap: wrap; } + .step-title-row > span { display: none; } + .risk-grid { grid-template-columns: 1fr; } +} + + + diff --git a/src/views/demand/consumer-behavior.vue b/src/views/demand/consumer-behavior.vue index 2d082f0..0ac78b1 100644 --- a/src/views/demand/consumer-behavior.vue +++ b/src/views/demand/consumer-behavior.vue @@ -244,19 +244,24 @@
-
- - - 上一步 - - - - 保存当前进度 - - - 下一步 - - +
+
+ + +
+
+ Step {{ String(form.activeStep + 1).padStart(2, "0") }} / {{ String(flowSteps.length).padStart(2, "0") }} + +
@@ -1704,21 +1709,146 @@ function downloadSurveyReportTemplate() { .file-input { display: none; } -.step-actions { +/* ============ 底部步骤导航 ============ */ +.step-navigation { + position: relative; display: flex; flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.step-nav-left, +.step-nav-right { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; +} + +.step-nav-right { + margin-left: auto; +} + +.btn-primary { + display: inline-flex; + align-items: center; justify-content: center; - gap: 14px; - margin-top: 22px; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid var(--student-accent); + border-radius: 8px; + color: #ffffff; + background: var(--student-accent); + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } +} + +.btn-ghost { + 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.35); + border-radius: 8px; + color: var(--student-accent); + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } } -.nav-action { +.btn-save { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; min-height: 36px; height: 36px; padding: 0 14px; + border: 1px solid #e5e7eb; border-radius: 8px; + color: #4b5563; + background: #f9fafb; + font-family: inherit; font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } +} + +.btn-primary:disabled, +.btn-ghost:disabled, +.btn-save:disabled, +.btn-nav:disabled { + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; +} + +.step-progress { + color: var(--student-text-secondary); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; } .training-actions { @@ -1740,12 +1870,18 @@ function downloadSurveyReportTemplate() { .workbench-actions, .step-title-row, - .step-actions, + .step-navigation, .training-actions { flex-direction: column; align-items: stretch; } + .step-nav-left, + .step-nav-right, + .btn-nav { + width: 100%; + } + .hypothesis-head { grid-template-columns: 1fr; } .training-eight-action { @@ -1973,63 +2109,7 @@ function downloadSurveyReportTemplate() { box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important; } -/* === nav-action (step-actions) === */ -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action { - min-height: 34px !important; - height: 34px !important; - padding: 0 14px !important; - border: 1px solid rgba(37, 99, 235, 0.35) !important; - border-radius: 8px !important; - color: var(--student-accent) !important; - background: #ffffff !important; - font-size: 13px !important; - font-weight: 700 !important; - box-shadow: none !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(.consumer-behavior-page) .step-actions .el-button.nav-action:hover:not(.is-disabled) { - transform: translateY(-1px) !important; - border-color: var(--student-accent) !important; - background: var(--student-accent-soft) !important; - color: var(--student-accent) !important; - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12) !important; -} - -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action:disabled, -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action.is-disabled { - opacity: 0.45 !important; - cursor: not-allowed !important; - transform: none !important; -} - -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action--next { - border-color: var(--student-accent) !important; - color: #ffffff !important; - background: var(--student-accent) !important; - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important; -} - -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action--next:hover:not(.is-disabled) { - border-color: var(--student-accent-deep) !important; - background: var(--student-accent-deep) !important; - color: #ffffff !important; - box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important; -} - -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action--save { - border-color: #e5e7eb !important; - color: #374151 !important; - background: #f3f4f6 !important; - font-weight: 700 !important; -} - -#app .studentLayout section.app-main:has(.consumer-behavior-page) .step-actions .el-button.nav-action--save:hover:not(.is-disabled) { - border-color: #d1d5db !important; - background: #e5e7eb !important; - color: var(--student-accent) !important; - box-shadow: none !important; -} +/* === nav-action (step-navigation):原生 button,样式见 scoped 块 === */ /* ============================================================ * 顶部工具栏:TrainingMaterialButton 资料按钮 → 教育蓝 diff --git a/src/views/demand/consumer-scenario.vue b/src/views/demand/consumer-scenario.vue index 5988ebd..e51ff24 100644 --- a/src/views/demand/consumer-scenario.vue +++ b/src/views/demand/consumer-scenario.vue @@ -217,19 +217,24 @@

{{ journeyOptimizationMessage }}

-
- - - +
+
+ + +
+
+ Step {{ String(form.activeStep).padStart(2, "0") }} / {{ String(trainingSteps.length).padStart(2, "0") }} + +
@@ -1568,64 +1573,184 @@ function exportOutcome() { } } -/* ===== 底部按钮 ===== */ -.step-actions { +/* ===== 底部步骤导航按钮 ===== */ +.step-navigation { + position: relative; display: flex; - justify-content: center; - gap: 14px; - margin-top: 20px; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.step-nav-left, +.step-nav-right { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; +} + +.step-nav-right { + margin-left: auto; } -.nav-action { +.btn-nav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; - min-width: 112px; min-height: 36px; - padding: 0 18px; + height: 36px; + padding: 0 14px; border: 1px solid rgba(37, 99, 235, 0.35); - border-radius: 10px; - color: var(--student-text); + border-radius: 8px; + color: var(--student-accent); background: #ffffff; font-family: inherit; font-size: var(--student-fs-button); font-weight: 600; cursor: pointer; - text-shadow: none; - transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } &:hover:not(:disabled) { border-color: var(--student-accent); background: var(--student-accent-soft); - color: var(--student-accent); transform: translateY(-1px); - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); } &:disabled { cursor: not-allowed; - opacity: 0.5; + opacity: 0.45; transform: none; box-shadow: none; } } -.nav-action--next, -.nav-action--save { - border-color: var(--student-accent); +.btn-primary { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid var(--student-accent); + border-radius: 8px; color: #ffffff; background: var(--student-accent); - font-weight: 700; - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28); + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } } -.nav-action--next:hover:not(:disabled), -.nav-action--save:hover:not(:disabled) { - background: var(--student-accent-deep); - border-color: var(--student-accent-deep); - color: #ffffff; - box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32); +.btn-ghost { + 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.35); + border-radius: 8px; + color: var(--student-accent); + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } +} + +.btn-save { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid #e5e7eb; + border-radius: 8px; + color: #4b5563; + background: #f9fafb; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } +} + +.btn-primary:disabled, +.btn-ghost:disabled, +.btn-save:disabled, +.btn-nav:disabled { + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; +} + +.step-progress { + color: var(--student-text-secondary); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; } /* training-actions 容器:el-button 由全局样式接管 */ @@ -1641,12 +1766,28 @@ function exportOutcome() { @media (max-width: 900px) { .workbench-head--actions-only, .step-title-row, - .step-actions, .training-actions { flex-direction: column; align-items: stretch; } + .step-navigation { + flex-direction: column; + align-items: stretch; + } + + .step-nav-left, + .step-nav-right { + justify-content: center; + } + + .btn-nav, + .btn-primary, + .btn-ghost, + .btn-save { + width: 100%; + } + .journey-sort-head { flex-direction: column; } @@ -1675,10 +1816,6 @@ function exportOutcome() { .journey-map-helper .el-button { width: 100%; } - - .nav-action { - width: 100%; - } } diff --git a/src/views/demand/feature-conversion.vue b/src/views/demand/feature-conversion.vue index 6f48820..a7bb891 100644 --- a/src/views/demand/feature-conversion.vue +++ b/src/views/demand/feature-conversion.vue @@ -188,18 +188,23 @@
- - - +
+ + +
+
+ Step {{ String(form.activeStep).padStart(2, '0') }} / {{ String(flowSteps.length).padStart(2, '0') }} + +
@@ -1281,67 +1286,168 @@ function exportOutcome() { /* ===== 底部步骤导航按钮 ===== */ .step-navigation { + position: relative; display: flex; - justify-content: center; - gap: 14px; - margin-top: 20px; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; +} + +.step-nav-left, +.step-nav-right { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; +} + +.step-nav-right { + margin-left: auto; } .btn-nav { display: inline-flex; align-items: center; justify-content: center; - gap: 8px; + gap: 6px; min-height: 36px; height: 36px; padding: 0 14px; border: 1px solid rgba(37, 99, 235, 0.35); border-radius: 8px; - color: var(--student-text); + color: var(--student-accent); background: #ffffff; + font-family: inherit; font-size: var(--student-fs-button); - font-weight: 700; + font-weight: 600; cursor: pointer; - text-shadow: none; - transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; -} + transition: all 0.16s ease; + white-space: nowrap; -.btn-nav:hover:not(:disabled) { - border-color: var(--student-accent); - background: var(--student-accent-soft); - color: var(--student-accent); - transform: translateY(-1px); - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12); + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } + + &:disabled { + cursor: not-allowed; + opacity: 0.45; + transform: none; + box-shadow: none; + } } -.btn-nav.btn-primary { - border-color: var(--student-accent); +.btn-primary { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid var(--student-accent); + border-radius: 8px; color: #ffffff; background: var(--student-accent); - font-weight: 700; - box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28); -} + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; -.btn-nav.btn-primary:hover:not(:disabled) { - background: var(--student-accent-deep); - border-color: var(--student-accent-deep); - box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32); -} + .el-icon { + font-size: 16px; + } -.btn-nav.btn-save { - border-color: #e5e7eb; - color: var(--student-accent-light); - background: var(--student-accent-soft); - box-shadow: none; + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } } -.btn-nav.btn-save:hover:not(:disabled) { - border-color: var(--student-accent); - background: #e9ecef; +.btn-ghost { + 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.35); + border-radius: 8px; color: var(--student-accent); - box-shadow: none; + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } } +.btn-save { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid #e5e7eb; + border-radius: 8px; + color: #4b5563; + background: #f9fafb; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } +} + +.btn-primary:disabled, +.btn-ghost:disabled, +.btn-save:disabled, .btn-nav:disabled { cursor: not-allowed; opacity: 0.5; @@ -1349,6 +1455,15 @@ function exportOutcome() { box-shadow: none; } +.step-progress { + color: var(--student-text-secondary); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; +} + /* training-actions 容器:保留,el-button 由全局样式接管 */ .training-actions { display: flex; @@ -1368,12 +1483,21 @@ function exportOutcome() { .outline-action, .step-navigation, - .btn-nav { + .btn-nav, + .btn-primary, + .btn-ghost, + .btn-save { width: 100%; } .step-navigation { flex-direction: column; + align-items: stretch; + } + + .step-nav-left, + .step-nav-right { + justify-content: center; } .conversion-intro, diff --git a/src/views/demand/industry-demand-analysis.vue b/src/views/demand/industry-demand-analysis.vue index 925ba65..40933c1 100644 --- a/src/views/demand/industry-demand-analysis.vue +++ b/src/views/demand/industry-demand-analysis.vue @@ -83,9 +83,23 @@

第 {{ currentStep }} 步内容待配置

前序步骤已保存,可从上方步骤栏返回查看。
- - - +
+ + +
+
+ Step {{ String(currentStep).padStart(2, "0") }} / {{ String(trainingSteps.length).padStart(2, "0") }} + +
@@ -95,7 +109,7 @@ @@ -896,86 +921,86 @@ function exportOutcome() { * ============================================================ */ .new-product-value-page { - /* 主色:教育蓝 */ - --student-accent: #2563eb; - --student-accent-deep: #1d4ed8; - --student-accent-light: #3b82f6; - --student-accent-soft: #eff6ff; - /* 语义色 */ - --student-danger: #ef4444; - --student-success: #2ba471; - /* 三层次标识色:深蓝 / 中蓝 / 浅蓝 */ - --student-layer-1: #1d4ed8; - --student-layer-2: #3b82f6; - --student-layer-3: #93c5fd; - /* 结构色 */ - --student-panel-border: #e5e7eb; - --student-card-bg: #ffffff; - --student-panel-bg: #fafbfc; - --student-text: #1f2937; - --student-text-secondary: #6b7280; - /* Element Plus 主色:教育蓝(覆盖全局 shell 写死的墨黑值) */ - --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); - --el-textarea-hover-border-color: #3b82f6; - --el-textarea-focus-border-color: #2563eb; - /* 紧凑字号梯度:整体下调一档(11→17px) */ - --student-fs-display: 17px; - --student-fs-h1: 15px; - --student-fs-h2: 14px; - --student-fs-h3: 13px; - --student-fs-body: 13px; - --student-fs-body-sm: 12px; - --student-fs-caption: 11px; - --student-fs-button: 13px; - --student-fs-button-lg: 13px; - --student-fs-data: 14px; - min-width: 0; - color: var(--student-text); + /* 主色:教育蓝 */ + --student-accent: #2563eb; + --student-accent-deep: #1d4ed8; + --student-accent-light: #3b82f6; + --student-accent-soft: #eff6ff; + /* 语义色 */ + --student-danger: #ef4444; + --student-success: #2ba471; + /* 三层次标识色:深蓝 / 中蓝 / 浅蓝 */ + --student-layer-1: #1d4ed8; + --student-layer-2: #3b82f6; + --student-layer-3: #93c5fd; + /* 结构色 */ + --student-panel-border: #e5e7eb; + --student-card-bg: #ffffff; + --student-panel-bg: #fafbfc; + --student-text: #1f2937; + --student-text-secondary: #6b7280; + /* Element Plus 主色:教育蓝(覆盖全局 shell 写死的墨黑值) */ + --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); + --el-textarea-hover-border-color: #3b82f6; + --el-textarea-focus-border-color: #2563eb; + /* 紧凑字号梯度:整体下调一档(11→17px),在此基准上全局 +2px */ + --student-fs-display: 19px; + --student-fs-h1: 17px; + --student-fs-h2: 16px; + --student-fs-h3: 15px; + --student-fs-body: 15px; + --student-fs-body-sm: 14px; + --student-fs-caption: 13px; + --student-fs-button: 15px; + --student-fs-button-lg: 15px; + --student-fs-data: 16px; + min-width: 0; + color: var(--student-text); } .training-core { - display: grid; - gap: 12px; - align-content: start; + display: grid; + gap: 12px; + align-content: start; } /* ============================================================ * 任务头:白卡 + 左侧教育蓝竖条 + 标题 + 简介 * ============================================================ */ .task-header { - position: relative; - 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); - } + position: relative; + 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; + display: grid; + justify-items: start; + gap: 8px; + min-width: 0; } @@ -983,158 +1008,165 @@ function exportOutcome() { .task-title { - margin: 0; - color: var(--student-text); - font-size: var(--student-fs-display); - line-height: 1.4; - font-weight: 700; - letter-spacing: -0.01em; + margin: 0; + color: var(--student-text); + font-size: var(--student-fs-display); + line-height: 1.4; + font-weight: 700; + letter-spacing: -0.01em; } .task-brief { - margin: 0; - color: var(--student-text-secondary); - font-size: var(--student-fs-body-sm); - line-height: 1.65; - max-width: 100%; + margin: 0; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.65; + max-width: 100%; } .task-brief-text { - display: -webkit-box; - overflow: hidden; - -webkit-box-orient: vertical; - -webkit-line-clamp: 1; + display: -webkit-box; + overflow: hidden; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; } .task-brief-toggle { - margin-left: 6px; - padding: 0; - border: 0; - color: var(--student-accent); - background: transparent; - font: inherit; - font-weight: 600; - cursor: pointer; - white-space: nowrap; - - &:hover { - color: var(--student-accent-deep); - text-decoration: underline; - } + margin-left: 6px; + padding: 0; + border: 0; + color: var(--student-accent); + background: transparent; + font: inherit; + font-weight: 600; + cursor: pointer; + white-space: nowrap; + + &:hover { + color: var(--student-accent-deep); + text-decoration: underline; + } } .task-brief-more { - display: grid; - gap: 6px; - margin-top: 8px; - padding-top: 8px; - border-top: 1px dashed #e5e7eb; - - b { - color: var(--student-text); - font-size: var(--student-fs-body-sm); - } - - ul { display: grid; - gap: 3px; - margin: 0; - padding-left: 18px; - color: var(--student-text-secondary); - font-size: var(--student-fs-body-sm); - line-height: 1.6; - } + gap: 6px; + margin-top: 8px; + padding-top: 8px; + border-top: 1px dashed #e5e7eb; + + b { + color: var(--student-text); + font-size: var(--student-fs-body-sm); + } - p { - margin: 0; - color: var(--student-text-secondary); - font-size: var(--student-fs-body-sm); - line-height: 1.6; - } + ul { + display: grid; + gap: 3px; + margin: 0; + padding-left: 18px; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.6; + } + + p { + margin: 0; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.6; + } } /* ============================================================ * 步骤卡容器 * ============================================================ */ .task-card { - border: 0; - background: transparent; + border: 0; + background: transparent; } /* ============================================================ * 步骤标题行:三段式(eyebrow + title + chip) * ============================================================ */ .step-title-row { - display: flex; - justify-content: space-between; - align-items: flex-start; - gap: 12px; - margin-bottom: 10px; + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 12px; + margin-bottom: 10px; } .step-title-main { - display: grid; - gap: 3px; - min-width: 0; - - h3 { - margin: 0; - color: var(--student-text); - font-size: var(--student-fs-h1); - line-height: 1.4; - font-weight: 700; - letter-spacing: -0.01em; - } + display: grid; + gap: 3px; + min-width: 0; + + h3 { + margin: 0; + color: var(--student-text); + font-size: var(--student-fs-h1); + line-height: 1.4; + font-weight: 700; + letter-spacing: -0.01em; + } } .section-eyebrow { - display: inline-flex; - align-items: center; - margin: 0; - padding: 0; - color: var(--student-accent); - font-family: var(--student-font-data); - font-size: var(--student-fs-caption); - font-weight: 700; - line-height: 1.3; - letter-spacing: 0.1em; - text-transform: uppercase; + display: inline-flex; + align-items: center; + margin: 0; + padding: 0; + color: var(--student-accent); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; + line-height: 1.3; + letter-spacing: 0.1em; + text-transform: uppercase; } .step-chip { - flex: 0 0 auto; - padding: 4px 10px; - border: 1px solid #bfdbfe; - border-radius: 999px; - color: var(--student-accent); - background: var(--student-accent-soft); - font-size: var(--student-fs-caption); - font-weight: 600; - white-space: nowrap; + flex: 0 0 auto; + padding: 4px 10px; + border: 1px solid #bfdbfe; + border-radius: 999px; + color: var(--student-accent); + background: var(--student-accent-soft); + font-size: var(--student-fs-caption); + font-weight: 600; + white-space: nowrap; } .step-desc { - margin: 0 0 16px; - color: #4b5563; - font-size: var(--student-fs-body); - line-height: 1.7; + margin: 0 0 16px; + color: #4b5563; + font-size: var(--student-fs-body); + line-height: 1.7; } .step-content { - animation: fadeIn 0.2s ease; + animation: fadeIn 0.2s ease; } @keyframes fadeIn { - from { opacity: 0; transform: translateY(4px); } - to { opacity: 1; transform: translateY(0); } + from { + opacity: 0; + transform: translateY(4px); + } + + to { + opacity: 1; + transform: translateY(0); + } } .step-card { - margin-bottom: 0; - padding: 18px 20px; - border: 1px solid var(--student-panel-border); - border-radius: 12px; - background: var(--student-card-bg); + margin-bottom: 0; + padding: 18px 20px; + border: 1px solid var(--student-panel-border); + border-radius: 12px; + background: var(--student-card-bg); } /* ============================================================ @@ -1142,40 +1174,40 @@ function exportOutcome() { * ============================================================ */ .outline-action, .btn-nav { - 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.35); - border-radius: 8px; - color: var(--student-accent); - background: #ffffff; - font-family: inherit; - font-size: var(--student-fs-button); - font-weight: 600; - cursor: pointer; - transition: all 0.16s ease; - - .el-icon { - font-size: 14px; - } - - &:hover:not(:disabled) { - border-color: var(--student-accent); - background: var(--student-accent-soft); - transform: translateY(-1px); - box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); - } + 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.35); + border-radius: 8px; + color: var(--student-accent); + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; - &:disabled { - cursor: not-allowed; - opacity: 0.45; - transform: none; - box-shadow: none; - } + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } + + &:disabled { + cursor: not-allowed; + opacity: 0.45; + transform: none; + box-shadow: none; + } } /* ============================================================ @@ -1185,849 +1217,867 @@ function exportOutcome() { .input-single, .cell-input, .cell-textarea { - width: 100%; - border: 1px solid #d1d5db; - border-radius: 8px; - color: var(--student-text); - background: #ffffff; - font-family: inherit; - font-size: var(--student-fs-body); - outline: none; - transition: border-color 0.18s ease, box-shadow 0.18s ease; - - &::placeholder { - color: #9ca3af; - } - - &:focus { - border-color: var(--student-accent); - box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); - } + width: 100%; + border: 1px solid #d1d5db; + border-radius: 8px; + color: var(--student-text); + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-body); + outline: none; + transition: border-color 0.18s ease, box-shadow 0.18s ease; + + &::placeholder { + color: #9ca3af; + } + + &:focus { + border-color: var(--student-accent); + box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); + } } .input-field { - min-height: 100px; - padding: 10px 12px; - resize: vertical; - line-height: 1.65; + min-height: 100px; + padding: 10px 12px; + resize: vertical; + line-height: 1.65; } .step4-input { - min-height: 150px; + min-height: 150px; } .input-single { - min-height: 38px; - padding: 0 12px; - line-height: 1.5; + min-height: 38px; + padding: 0 12px; + line-height: 1.5; } /* ============================================================ * Step 02: 调研表单 - 文档式字段组 * ============================================================ */ .survey-form { - display: grid; - gap: 12px; + display: grid; + gap: 12px; } .survey-field-group { - padding: 14px 16px; - border: 1px solid var(--student-panel-border); - border-radius: 10px; - background: #fafbfc; + padding: 14px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #fafbfc; } .survey-field-title { - display: flex; - align-items: center; - gap: 8px; - margin: 0 0 10px; - color: var(--student-text); - font-size: var(--student-fs-h2); - font-weight: 700; - - b { - display: inline-grid; - width: 22px; - height: 22px; - place-items: center; - border-radius: 6px; - color: #ffffff; - background: var(--student-accent); - font-family: var(--student-font-data); - font-size: var(--student-fs-caption); + display: flex; + align-items: center; + gap: 8px; + margin: 0 0 10px; + color: var(--student-text); + font-size: var(--student-fs-h2); font-weight: 700; - } + + b { + display: inline-grid; + width: 22px; + height: 22px; + place-items: center; + border-radius: 6px; + color: #ffffff; + background: var(--student-accent); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; + } } .survey-field-hint { - margin: -2px 0 10px 30px; - color: var(--student-text-secondary); - font-size: var(--student-fs-body-sm); - line-height: 1.6; + margin: -2px 0 10px 30px; + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.6; } .survey-options { - display: grid; - gap: 8px; + display: grid; + gap: 8px; } .step-two-survey { - .survey-options { - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 8px; - } + .survey-options { + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 8px; + } - :deep(.survey-option.el-radio) { - padding: 8px 10px; + :deep(.survey-option.el-radio) { + padding: 8px 10px; - .el-radio__label { - gap: 2px; - padding-left: 7px; - } + .el-radio__label { + gap: 2px; + padding-left: 7px; + } - span { - font-size: var(--student-fs-caption); - line-height: 1.4; + span { + font-size: var(--student-fs-caption); + line-height: 1.4; + } } - } } :deep(.survey-option.el-radio) { - display: grid; - grid-template-columns: auto 1fr; - align-items: start; - height: auto; - margin-right: 0; - padding: 10px 12px; - border: 1px solid var(--student-panel-border); - border-radius: 8px; - color: #374151; - background: #ffffff; - transition: all 0.18s ease; - - .el-radio__label { display: grid; - gap: 3px; - padding-left: 8px; - white-space: normal; - } + grid-template-columns: auto 1fr; + align-items: start; + height: auto; + margin-right: 0; + padding: 10px 12px; + border: 1px solid var(--student-panel-border); + border-radius: 8px; + color: #374151; + background: #ffffff; + transition: all 0.18s ease; - strong { - color: var(--student-text); - font-weight: 700; - font-size: var(--student-fs-body); - } + .el-radio__label { + display: grid; + gap: 3px; + padding-left: 8px; + white-space: normal; + } - span { - color: var(--student-text-secondary); - font-size: var(--student-fs-body-sm); - line-height: 1.5; - } + strong { + color: var(--student-text); + font-weight: 700; + font-size: var(--student-fs-body); + } - &.is-checked { - border-color: var(--student-accent); - background: var(--student-accent-soft); - } + span { + color: var(--student-text-secondary); + font-size: var(--student-fs-body-sm); + line-height: 1.5; + } + + &.is-checked { + border-color: var(--student-accent); + background: var(--student-accent-soft); + } } :deep(.survey-option.el-radio .el-radio__input.is-checked .el-radio__inner) { - border-color: var(--student-accent); - background: var(--student-accent); + border-color: var(--student-accent); + background: var(--student-accent); } :deep(.survey-option.el-radio .el-radio__input.is-checked .el-radio__inner::after) { - background: #ffffff; + background: #ffffff; } :deep(.survey-option.el-radio .el-radio__input .el-radio__inner) { - border-color: #9ca3af; + border-color: #9ca3af; } /* 全页单选统一教育蓝 */ .new-product-value-page :deep(.el-radio__input.is-checked .el-radio__inner) { - border-color: var(--student-accent); - background: var(--student-accent); + border-color: var(--student-accent); + background: var(--student-accent); } .new-product-value-page :deep(.el-radio__input.is-checked .el-radio__inner::after) { - background: #ffffff; + background: #ffffff; } .new-product-value-page :deep(.el-radio.is-checked) { - border-color: var(--student-accent); - color: var(--student-accent); + border-color: var(--student-accent); + color: var(--student-accent); } .new-product-value-page :deep(.el-radio.is-checked .el-radio__label) { - color: var(--student-accent); + color: var(--student-accent); } .custom-scene-input { - margin-top: 10px; + margin-top: 10px; } .product-name-field { - display: grid; - grid-template-columns: 72px minmax(0, 1fr); - align-items: center; - gap: 10px; - margin-bottom: 10px; - color: var(--student-text); - font-size: var(--student-fs-body-sm); - font-weight: 600; + display: grid; + grid-template-columns: 72px minmax(0, 1fr); + align-items: center; + gap: 10px; + margin-bottom: 10px; + color: var(--student-text); + font-size: var(--student-fs-body-sm); + font-weight: 600; } .image-upload-trigger { - display: inline-flex; - min-height: 38px; - align-items: center; - justify-content: center; - padding: 0 16px; - border: 1px dashed #9ca3af; - border-radius: 8px; - color: var(--student-text); - background: #fafbfc; - font-size: var(--student-fs-button); - font-weight: 600; - cursor: pointer; - transition: all 0.18s ease; - - input { - position: absolute; - width: 1px; - height: 1px; - overflow: hidden; - clip: rect(0 0 0 0); - } + display: inline-flex; + min-height: 38px; + align-items: center; + justify-content: center; + padding: 0 16px; + border: 1px dashed #9ca3af; + border-radius: 8px; + color: var(--student-text); + background: #fafbfc; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.18s ease; + + input { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip: rect(0 0 0 0); + } - &:hover:not(.disabled) { - border-color: var(--student-accent); - background: var(--student-accent-soft); - color: var(--student-accent); - transform: translateY(-1px); - } + &:hover:not(.disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + color: var(--student-accent); + transform: translateY(-1px); + } - &.disabled { - cursor: not-allowed; - opacity: 0.5; - } + &.disabled { + cursor: not-allowed; + opacity: 0.5; + } } .product-image-list { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); - gap: 10px; - margin-top: 12px; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); + gap: 10px; + margin-top: 12px; } .product-image-card { - display: grid; - gap: 6px; - min-width: 0; - margin: 0; - padding: 6px; - border: 1px solid var(--student-panel-border); - border-radius: 8px; - background: #ffffff; - - figcaption { - overflow: hidden; - color: var(--student-text-secondary); - font-size: var(--student-fs-caption); - text-overflow: ellipsis; - white-space: nowrap; - padding: 0 2px; - } + display: grid; + gap: 6px; + min-width: 0; + margin: 0; + padding: 6px; + border: 1px solid var(--student-panel-border); + border-radius: 8px; + background: #ffffff; + + figcaption { + overflow: hidden; + color: var(--student-text-secondary); + font-size: var(--student-fs-caption); + text-overflow: ellipsis; + white-space: nowrap; + padding: 0 2px; + } } .product-image-preview { - aspect-ratio: 1.2; - overflow: hidden; - padding: 0; - border: 0; - border-radius: 6px; - background: #f9fafb; - cursor: zoom-in; - - img { - display: block; - width: 100%; - height: 100%; - object-fit: cover; - transition: transform 0.2s ease; - } + aspect-ratio: 1.2; + overflow: hidden; + padding: 0; + border: 0; + border-radius: 6px; + background: #f9fafb; + cursor: zoom-in; + + img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + transition: transform 0.2s ease; + } - &:hover img { - transform: scale(1.05); - } + &:hover img { + transform: scale(1.05); + } } .remove-image-button { - justify-self: start; - padding: 0; - border: 0; - color: var(--student-danger); - background: transparent; - font: inherit; - font-size: var(--student-fs-caption); - font-weight: 600; - cursor: pointer; - transition: color 0.16s ease; - - &:hover { - color: #b0443d; - text-decoration: underline; - } + justify-self: start; + padding: 0; + border: 0; + color: var(--student-danger); + background: transparent; + font: inherit; + font-size: var(--student-fs-caption); + font-weight: 600; + cursor: pointer; + transition: color 0.16s ease; + + &:hover { + color: #b0443d; + text-decoration: underline; + } } .product-image-full { - display: block; - width: 100%; - max-height: 72vh; - object-fit: contain; + display: block; + width: 100%; + max-height: 72vh; + object-fit: contain; } /* ============================================================ * 数据表格:卡片行式 + 序号徽章 * ============================================================ */ .training-table-wrap { - overflow-x: auto; - border: 1px solid var(--student-panel-border); - border-radius: 10px; - background: #ffffff; + overflow-x: auto; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; } .training-data-table { - width: 100%; - min-width: 920px; - border-collapse: collapse; - - th, - td { - border: none; - border-bottom: 1px solid #f0f1f3; - padding: 10px 14px; - vertical-align: top; - } - - th { - color: var(--student-text-secondary); - background: #f9fafb; - font-size: var(--student-fs-body-sm); - font-weight: 700; - text-align: left; - letter-spacing: 0.02em; - white-space: nowrap; - } - - td { - color: #374151; - font-size: var(--student-fs-body-sm); - line-height: 1.6; - } + width: 100%; + min-width: 920px; + border-collapse: collapse; + + th, + td { + border: none; + border-bottom: 1px solid #f0f1f3; + padding: 10px 14px; + vertical-align: top; + } - tbody tr { - transition: background 0.16s ease; + th { + color: var(--student-text-secondary); + background: #f9fafb; + font-size: var(--student-fs-body-sm); + font-weight: 700; + text-align: left; + letter-spacing: 0.02em; + white-space: nowrap; + } - &:hover { - background: #f9fafb; + td { + color: #374151; + font-size: var(--student-fs-body-sm); + line-height: 1.6; } - &:last-child td { - border-bottom: none; + tbody tr { + transition: background 0.16s ease; + + &:hover { + background: #f9fafb; + } + + &:last-child td { + border-bottom: none; + } } - } } .cell-input { - min-height: 36px; - padding: 0 10px; + min-height: 36px; + padding: 0 10px; } .cell-textarea { - min-height: 110px; - padding: 8px 10px; - resize: vertical; - line-height: 1.6; + min-height: 110px; + padding: 8px 10px; + resize: vertical; + line-height: 1.6; } .dimension-cell { - min-width: 160px; - color: var(--student-text); - text-align: left; + min-width: 160px; + color: var(--student-text); + text-align: left; - strong, - span { - display: block; - } + strong, + span { + display: block; + } - strong { - margin-bottom: 6px; - font-size: var(--student-fs-body); - font-weight: 700; - } + strong { + margin-bottom: 6px; + font-size: var(--student-fs-body); + font-weight: 700; + } - span { - color: var(--student-text-secondary); - font-size: var(--student-fs-caption); - font-weight: 500; - line-height: 1.5; - } + span { + color: var(--student-text-secondary); + font-size: var(--student-fs-caption); + font-weight: 500; + line-height: 1.5; + } } .requirement-cell, .example-cell { - min-width: 160px; - color: #6b7280; - line-height: 1.65; + min-width: 160px; + color: #6b7280; + line-height: 1.65; } .example-cell { - color: #92400e; + color: #92400e; } .reference-points { - display: grid; - gap: 6px; - margin: 0; - padding-left: 18px; - font-size: var(--student-fs-body-sm); - line-height: 1.6; + display: grid; + gap: 6px; + margin: 0; + padding-left: 18px; + font-size: var(--student-fs-body-sm); + line-height: 1.6; } .analysis-input-cell { - min-width: 260px; + min-width: 260px; } .analysis-count { - margin: 6px 2px 0; - color: var(--student-danger); - font-size: var(--student-fs-caption); - font-weight: 600; + margin: 6px 2px 0; + color: var(--student-danger); + font-size: var(--student-fs-caption); + font-weight: 600; - &.is-ready { - color: var(--student-success); - } + &.is-ready { + color: var(--student-success); + } } /* ============================================================ * 底部导航:工具栏式 * ============================================================ */ .step-navigation { - position: relative; - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 10px; - margin-top: 16px; - padding: 12px 16px; - border: 1px solid var(--student-panel-border); - border-radius: 10px; - background: #ffffff; + position: relative; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: 16px; + padding: 12px 16px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; } .step-nav-left, .step-nav-right { - display: flex; - align-items: center; - gap: 8px; - flex-wrap: nowrap; + display: flex; + align-items: center; + gap: 8px; + flex-wrap: nowrap; } .step-nav-right { - margin-left: auto; + margin-left: auto; } .btn-primary { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 6px; - min-height: 36px; - height: 36px; - padding: 0 14px; - border: 1px solid var(--student-accent); - border-radius: 8px; - color: #ffffff; - background: var(--student-accent); - font-family: inherit; - font-size: var(--student-fs-button); - font-weight: 600; - box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); - cursor: pointer; - transition: all 0.16s ease; - white-space: nowrap; - - .el-icon { - font-size: 14px; - } - - &:hover:not(:disabled) { - border-color: var(--student-accent-deep); - background: var(--student-accent-deep); - transform: translateY(-1px); - box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); - } - - &:active:not(:disabled) { - transform: translateY(0); - } + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid var(--student-accent); + border-radius: 8px; + color: #ffffff; + background: var(--student-accent); + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15); + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent-deep); + background: var(--student-accent-deep); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22); + } + + &:active:not(:disabled) { + transform: translateY(0); + } } .btn-ghost { - 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.35); - border-radius: 8px; - color: var(--student-accent); - background: #ffffff; - font-family: inherit; - font-size: var(--student-fs-button); - font-weight: 600; - cursor: pointer; - transition: all 0.16s ease; - white-space: nowrap; - - .el-icon { - font-size: 14px; - } - - &:hover:not(:disabled) { - border-color: var(--student-accent); - background: var(--student-accent-soft); - transform: translateY(-1px); - box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); - } + 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.35); + border-radius: 8px; + color: var(--student-accent); + background: #ffffff; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: var(--student-accent); + background: var(--student-accent-soft); + transform: translateY(-1px); + box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); + } } .btn-save { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 6px; - min-height: 36px; - height: 36px; - padding: 0 14px; - border: 1px solid #e5e7eb; - border-radius: 8px; - color: #4b5563; - background: #f9fafb; - font-family: inherit; - font-size: var(--student-fs-button); - font-weight: 600; - cursor: pointer; - transition: all 0.16s ease; - white-space: nowrap; - - .el-icon { - font-size: 14px; - } - - &:hover:not(:disabled) { - border-color: #d1d5db; - background: #f3f4f6; - } + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: 36px; + height: 36px; + padding: 0 14px; + border: 1px solid #e5e7eb; + border-radius: 8px; + color: #4b5563; + background: #f9fafb; + font-family: inherit; + font-size: var(--student-fs-button); + font-weight: 600; + cursor: pointer; + transition: all 0.16s ease; + white-space: nowrap; + + .el-icon { + font-size: 16px; + } + + &:hover:not(:disabled) { + border-color: #d1d5db; + background: #f3f4f6; + } } .btn-primary:disabled, .btn-ghost:disabled, .btn-save:disabled, .btn-nav:disabled { - cursor: not-allowed; - opacity: 0.5; - transform: none; - box-shadow: none; + cursor: not-allowed; + opacity: 0.5; + transform: none; + box-shadow: none; } .step-progress { - color: var(--student-text-secondary); - font-family: var(--student-font-data); - font-size: var(--student-fs-caption); - font-weight: 700; - letter-spacing: 0.05em; - white-space: nowrap; + color: var(--student-text-secondary); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; + letter-spacing: 0.05em; + white-space: nowrap; } /* ============================================================ * Step 01: 三层次分类表格 * ============================================================ */ .classification-table-wrap { - margin-top: 14px; - border: 1px solid var(--student-panel-border); - border-radius: 10px; - background: #ffffff; - overflow: hidden; + margin-top: 14px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; + overflow: hidden; } .classification-table { - th, - td { - border: none; - border-bottom: 1px solid #f0f1f3; - } - - th { - padding: 10px 14px; - color: var(--student-text-secondary); - background: #f9fafb; - font-size: var(--student-fs-body-sm); - font-weight: 700; - text-align: left; - white-space: nowrap; - } - td { - padding: 8px 14px; - color: #374151; - background: #ffffff; - font-size: var(--student-fs-body-sm); - } + th, + td { + border: none; + border-bottom: 1px solid #f0f1f3; + } - tbody tr { - transition: background 0.16s ease; + th { + padding: 10px 14px; + color: var(--student-text-secondary); + background: #f9fafb; + font-size: var(--student-fs-body-sm); + font-weight: 700; + text-align: left; + white-space: nowrap; + } - &:hover { - background: #f9fafb; + td { + padding: 8px 14px; + color: #374151; + background: #ffffff; + font-size: var(--student-fs-body-sm); } - &:last-child td { - border-bottom: none; + tbody tr { + transition: background 0.16s ease; + + &:hover { + background: #f9fafb; + } + + &:last-child td { + border-bottom: none; + } } - } - th:first-child, - td:first-child { - width: 56px; - text-align: center; - } + th:first-child, + td:first-child { + width: 56px; + text-align: center; + } - th:last-child, - td:last-child { - width: 220px; - } + th:last-child, + td:last-child { + width: 220px; + } } .layer-legend { - display: inline-flex; - gap: 3px; - margin-left: 6px; - vertical-align: 2px; - - i { - width: 10px; - height: 3px; - border-radius: 2px; - background: var(--dot); - } + display: inline-flex; + gap: 3px; + margin-left: 6px; + vertical-align: 2px; + + i { + width: 10px; + height: 3px; + border-radius: 2px; + background: var(--dot); + } } .classification-number { - display: inline-flex; - align-items: center; - justify-content: center; - min-width: 22px; - height: 22px; - border-radius: 6px; - color: var(--student-accent-deep); - background: var(--student-accent-soft); - font-family: var(--student-font-data); - font-size: var(--student-fs-caption); - font-weight: 700; + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 22px; + height: 22px; + border-radius: 6px; + color: var(--student-accent-deep); + background: var(--student-accent-soft); + font-family: var(--student-font-data); + font-size: var(--student-fs-caption); + font-weight: 700; } .classification-selling-point { - color: #1f2937; - font-weight: 500; - line-height: 1.6; + color: #1f2937; + font-weight: 500; + line-height: 1.6; } .classification-select-cell :deep(.el-select) { - width: 100%; + width: 100%; } .classification-select-cell { - :deep(.el-select__selected-item), - :deep(.el-select__placeholder), - :deep(.el-input__inner) { - color: var(--student-text) !important; - -webkit-text-fill-color: var(--student-text) !important; - font-weight: 600; - } - :deep(.el-select.is-disabled .el-select__selected-item), - :deep(.el-input.is-disabled .el-input__inner) { - color: #565e6b !important; - -webkit-text-fill-color: #565e6b !important; - } + :deep(.el-select__selected-item), + :deep(.el-select__placeholder), + :deep(.el-input__inner) { + color: var(--student-text) !important; + -webkit-text-fill-color: var(--student-text) !important; + font-weight: 600; + } + + :deep(.el-select.is-disabled .el-select__selected-item), + :deep(.el-input.is-disabled .el-input__inner) { + color: #565e6b !important; + -webkit-text-fill-color: #565e6b !important; + } - :deep(.el-select__caret) { - color: var(--student-text-secondary); - } + :deep(.el-select__caret) { + color: var(--student-text-secondary); + } } .classification-table tbody td { - background: #ffffff !important; - box-shadow: none !important; + background: #ffffff !important; + box-shadow: none !important; } .classification-feedback, .classification-summary { - margin: 6px 0 0; - color: var(--student-danger); - font-size: var(--student-fs-caption); - line-height: 1.5; - font-weight: 600; + margin: 6px 0 0; + color: var(--student-danger); + font-size: var(--student-fs-caption); + line-height: 1.5; + font-weight: 600; } .classification-row--correct .classification-feedback, .classification-summary.is-success { - color: var(--student-success); + color: var(--student-success); } .classification-summary { - display: flex; - align-items: center; - gap: 8px; - margin-top: 12px; - padding: 8px 12px; - border-radius: 8px; - color: var(--student-danger); - background: rgba(239, 68, 68, 0.08); - font-size: var(--student-fs-body-sm); - font-weight: 600; + display: flex; + align-items: center; + gap: 8px; + margin-top: 12px; + padding: 8px 12px; + border-radius: 8px; + color: var(--student-danger); + background: rgba(239, 68, 68, 0.08); + font-size: var(--student-fs-body-sm); + font-weight: 600; } .classification-summary.is-success { - background: rgba(43, 164, 113, 0.1); + background: rgba(43, 164, 113, 0.1); } /* ============================================================ * 三层次彩色标识条 * ============================================================ */ .dimension-cell::before { - content: ""; - display: block; - width: 24px; - height: 3px; - margin-bottom: 6px; - border-radius: 2px; - background: var(--student-accent); + content: ""; + display: block; + width: 24px; + height: 3px; + margin-bottom: 6px; + border-radius: 2px; + background: var(--student-accent); +} + +.layer-table tr:nth-child(1) .dimension-cell::before { + background: var(--student-layer-1); } -.layer-table tr:nth-child(1) .dimension-cell::before { background: var(--student-layer-1); } -.layer-table tr:nth-child(2) .dimension-cell::before { background: var(--student-layer-2); } -.layer-table tr:nth-child(3) .dimension-cell::before { background: var(--student-layer-3); } +.layer-table tr:nth-child(2) .dimension-cell::before { + background: var(--student-layer-2); +} + +.layer-table tr:nth-child(3) .dimension-cell::before { + background: var(--student-layer-3); +} /* ============================================================ * Step 04: 三层次字段卡 * ============================================================ */ .field-block { - display: grid; - gap: 8px; - margin-bottom: 10px; - color: #374151; - font-size: var(--student-fs-body); - font-weight: 600; - - > span { - line-height: 1.6; - } + display: grid; + gap: 8px; + margin-bottom: 10px; + color: #374151; + font-size: var(--student-fs-body); + font-weight: 600; + + >span { + line-height: 1.6; + } } .field-block.is-layer { - position: relative; - margin-bottom: 12px; - padding: 14px 16px 14px 20px; - border: 1px solid var(--student-panel-border); - border-radius: 10px; - background: #ffffff; - overflow: hidden; - - &::before { - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 4px; - background: var(--bar, var(--student-accent)); - } + position: relative; + margin-bottom: 12px; + padding: 14px 16px 14px 20px; + border: 1px solid var(--student-panel-border); + border-radius: 10px; + background: #ffffff; + overflow: hidden; + + &::before { + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 4px; + background: var(--bar, var(--student-accent)); + } } -.field-block.layer-core { --bar: var(--student-layer-1); } -.field-block.layer-tangible { --bar: var(--student-layer-2); } -.field-block.layer-extended { --bar: var(--student-layer-3); } +.field-block.layer-core { + --bar: var(--student-layer-1); +} + +.field-block.layer-tangible { + --bar: var(--student-layer-2); +} + +.field-block.layer-extended { + --bar: var(--student-layer-3); +} /* ============================================================ * 操作工具栏横条:内联布局,去掉悬浮和边框 * ============================================================ */ .task-action-strip { - margin: 0; - padding: 10px 16px; - - // 让 TrainingTaskToolbar 内部按钮在横条内右对齐 - :deep(.training-task-toolbar) { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: flex-end; - gap: 8px; - } + margin: 0; + padding: 10px 16px; + + // 让 TrainingTaskToolbar 内部按钮在横条内右对齐 + :deep(.training-task-toolbar) { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: flex-end; + gap: 8px; + } } /* ============================================================ * 响应式 * ============================================================ */ @media (max-width: 1100px) { - .step-nav-right { - margin-left: 0; - } + .step-nav-right { + margin-left: 0; + } } @media (max-width: 900px) { - .step-navigation { - flex-direction: column; - align-items: stretch; - } + .step-navigation { + flex-direction: column; + align-items: stretch; + } - .step-nav-left, - .step-nav-right { - justify-content: center; - } + .step-nav-left, + .step-nav-right { + justify-content: center; + } - .btn-nav, - .btn-primary, - .btn-ghost, - .btn-save { - width: 100%; - } + .btn-nav, + .btn-primary, + .btn-ghost, + .btn-save { + width: 100%; + } - .classification-table { - min-width: 720px; - } + .classification-table { + min-width: 720px; + } - :deep(.training-task-toolbar) { - justify-content: stretch; - } + :deep(.training-task-toolbar) { + justify-content: stretch; + } - :deep(.training-task-toolbar > *) { - flex: 1 1 auto; - } + :deep(.training-task-toolbar > *) { + flex: 1 1 auto; + } } @media (max-width: 720px) { - .step-two-survey { - .survey-options { - grid-template-columns: 1fr; + .step-two-survey { + .survey-options { + grid-template-columns: 1fr; + } } - } } @@ -2044,131 +2094,149 @@ function exportOutcome() { * 覆盖全局 !important 规则 * ============================================================ */ #app .studentLayout section.app-main:has(.new-product-value-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; + flex-wrap: nowrap !important; + align-items: stretch !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; + gap: 0 !important; + width: 100% !important; + margin: 0 0 20px !important; + padding: 0 !important; + border: none !important; border-radius: 0 !important; - background: #ffffff !important; + background: transparent !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 { - 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-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 { + 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: 14px !important; + font-weight: 700 !important; + line-height: 1 !important; + transition: all 0.16s ease !important; + + &::after { + display: none !important; + } + } + + .step-name { + color: inherit !important; + } + + &:hover:not(.active):not(.complete) { + border-color: #2563eb !important; + background: #eff6ff !important; + color: #2563eb !important; + z-index: 1 !important; + + .step-no { + background: #2563eb !important; + color: #ffffff !important; + } + } + + &.complete:not(.active) { + border-color: #e5e7eb !important; + color: #374151 !important; + + .step-no { + 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 { + 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 { + background: #ffffff !important; + color: #2563eb !important; + } + + &:hover { + background: #1d4ed8 !important; + border-color: #1d4ed8 !important; + } + } } - - .step-name { color: inherit !important; } - - &:hover:not(.active):not(.complete) { - border-color: #2563eb !important; - background: #eff6ff !important; - color: #2563eb !important; - z-index: 1 !important; - - .step-no { background: #2563eb !important; color: #ffffff !important; } - } - - &.complete:not(.active) { - border-color: #e5e7eb !important; - color: #374151 !important; - - .step-no { 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 { 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 { background: #ffffff !important; color: #2563eb !important; } - - &:hover { - background: #1d4ed8 !important; - border-color: #1d4ed8 !important; - } - } - } } @media (max-width: 900px) { - #app .studentLayout section.app-main:has(.new-product-value-page) .step-indicator { - justify-content: flex-start !important; - overflow-x: auto !important; - } + #app .studentLayout section.app-main:has(.new-product-value-page) .step-indicator { + justify-content: flex-start !important; + overflow-x: auto !important; + } - #app .studentLayout section.app-main:has(.new-product-value-page) .step-indicator .step-tab { - flex: 0 0 140px !important; - max-width: none !important; - } + #app .studentLayout section.app-main:has(.new-product-value-page) .step-indicator .step-tab { + flex: 0 0 140px !important; + max-width: none !important; + } } /* ============================================================ @@ -2176,103 +2244,103 @@ function exportOutcome() { * 覆盖 TrainingTaskToolbar.vue 和 TrainingMaterialButton.vue 的 scoped 样式 * ============================================================ */ .new-product-value-page .training-task-toolbar { - gap: 8px !important; + gap: 8px !important; } /* TaskToolbar 自己的按钮(提交/重新实训/导出) */ .new-product-value-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.35) !important; - border-radius: 8px !important; - color: #2563eb !important; - background: #ffffff !important; - box-shadow: none !important; - text-shadow: none !important; - font-size: 13px !important; - font-weight: 600 !important; - transition: all 0.16s ease !important; + 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.35) !important; + border-radius: 8px !important; + color: #2563eb !important; + background: #ffffff !important; + box-shadow: none !important; + text-shadow: none !important; + font-size: 15px !important; + font-weight: 600 !important; + transition: all 0.16s ease !important; } .new-product-value-page .task-toolbar-button.el-button .el-icon { - font-size: 14px !important; - color: inherit !important; + font-size: 16px !important; + color: inherit !important; } .new-product-value-page .task-toolbar-button.el-button:hover, .new-product-value-page .task-toolbar-button.el-button:focus { - 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; + 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; } .new-product-value-page .task-toolbar-button--submit.el-button { - border-color: #2563eb !important; - color: #ffffff !important; - background: #2563eb !important; - box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15) !important; + border-color: #2563eb !important; + color: #ffffff !important; + background: #2563eb !important; + box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15) !important; } .new-product-value-page .task-toolbar-button--submit.el-button:hover, .new-product-value-page .task-toolbar-button--submit.el-button:focus { - border-color: #1d4ed8 !important; - color: #ffffff !important; - background: #1d4ed8 !important; - box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22) !important; + border-color: #1d4ed8 !important; + color: #ffffff !important; + background: #1d4ed8 !important; + box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(29, 78, 216, 0.22) !important; } .new-product-value-page .task-toolbar-button.el-button.is-loading { - border-color: rgba(37, 99, 235, 0.35) !important; - color: #2563eb !important; - background: #ffffff !important; + border-color: rgba(37, 99, 235, 0.35) !important; + color: #2563eb !important; + background: #ffffff !important; } /* TrainingMaterialButton 组件(案例资料/实训数据/指导手册等) */ .new-product-value-page .training-task-toolbar .material-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.35) !important; - border-radius: 8px !important; - color: #2563eb !important; - background: #ffffff !important; - font-size: 13px !important; - font-weight: 600 !important; - transition: all 0.16s ease !important; + 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.35) !important; + border-radius: 8px !important; + color: #2563eb !important; + background: #ffffff !important; + font-size: 15px !important; + font-weight: 600 !important; + transition: all 0.16s ease !important; } .new-product-value-page .training-task-toolbar .material-button.el-button .el-icon { - font-size: 14px !important; - color: inherit !important; + font-size: 16px !important; + color: inherit !important; } .new-product-value-page .training-task-toolbar .material-button.el-button:hover, .new-product-value-page .training-task-toolbar .material-button.el-button:focus { - 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; + 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; } .new-product-value-page .training-task-toolbar .material-button.el-button.is-plain, .new-product-value-page .training-task-toolbar .material-button.el-button.is-plain:hover, .new-product-value-page .training-task-toolbar .material-button.el-button.is-plain:focus { - border-color: #e5e7eb !important; - color: #9ca3af !important; - background: #ffffff !important; - transform: none !important; - box-shadow: none !important; + border-color: #e5e7eb !important; + color: #9ca3af !important; + background: #ffffff !important; + transform: none !important; + box-shadow: none !important; } diff --git a/src/views/foundation/product-development-factors.vue b/src/views/foundation/product-development-factors.vue index 88f156c..3dbf772 100644 --- a/src/views/foundation/product-development-factors.vue +++ b/src/views/foundation/product-development-factors.vue @@ -1,4 +1,4 @@ -