|
|
<template>
|
|
|
<div class="market-selection-page student-training-shell">
|
|
|
<main class="training-core">
|
|
|
<section class="task-header">
|
|
|
<div class="task-head-main">
|
|
|
<h1 class="task-title">{{ taskTitle }}</h1>
|
|
|
<p class="task-brief">
|
|
|
<span class="task-brief-text">{{ taskBackground }}</span>
|
|
|
<button type="button" class="task-brief-toggle" @click="briefOpen = !briefOpen">
|
|
|
{{ briefOpen ? "收起" : "展开目标与要求" }}
|
|
|
</button>
|
|
|
<span v-if="briefOpen" class="task-brief-more">
|
|
|
<b>实训目标</b>
|
|
|
<ul><li v-for="goal in taskGoals" :key="goal">{{ goal }}</li></ul>
|
|
|
<b>实训要求</b>
|
|
|
<p>{{ taskRequirement }}</p>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="market-selection-toolbar">
|
|
|
<TrainingMaterialButton
|
|
|
:material-name="taskConfig?.materialName"
|
|
|
:material-url="taskConfig?.materialUrl"
|
|
|
:training-data-name="taskConfig?.trainingDataName"
|
|
|
:training-data-url="taskConfig?.trainingDataUrl"
|
|
|
:guide-manual-name="taskConfig?.guideManualName"
|
|
|
:guide-manual-url="taskConfig?.guideManualUrl"
|
|
|
:ai-manual-name="taskConfig?.aiManualName"
|
|
|
:ai-manual-url="taskConfig?.aiManualUrl"
|
|
|
/>
|
|
|
<button type="button" class="outline-action" @click="exportOutcome">
|
|
|
<el-icon><Download /></el-icon>
|
|
|
导出实训成果
|
|
|
</button>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
<section class="task-card">
|
|
|
<nav v-if="steps.length" class="step-indicator" aria-label="市场机会识别与选品步骤">
|
|
|
<button
|
|
|
v-for="step in steps"
|
|
|
:key="step.no"
|
|
|
type="button"
|
|
|
:class="['step-tab', { active: currentStep === step.no, complete: currentStep > step.no }]"
|
|
|
:aria-label="`切换至第 ${step.no} 步:${step.name}`"
|
|
|
:aria-current="currentStep === step.no ? 'step' : undefined"
|
|
|
@click="changeStep(step.no)"
|
|
|
>
|
|
|
<span class="step-bar" aria-hidden="true"></span>
|
|
|
<span class="step-no" aria-hidden="true">{{ String(step.no).padStart(2, "0") }}</span>
|
|
|
<span class="step-name">{{ step.name }}</span>
|
|
|
</button>
|
|
|
</nav>
|
|
|
|
|
|
<section class="step-card market-selection-step-card">
|
|
|
<div v-if="activeStepName" class="step-title-row">
|
|
|
<div>
|
|
|
<p class="section-eyebrow">Step {{ String(currentStep).padStart(2, '0') }}</p>
|
|
|
<h3>{{ activeStepName }}</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<section v-show="currentStep === 1" class="step-content">
|
|
|
<p class="task-desc">聚焦“智能空气监测仪/空气质量检测仪”品类,完成以下 PEST 分析表。</p>
|
|
|
|
|
|
<div class="pest-table-wrap">
|
|
|
<div class="table-title">PEST分析表</div>
|
|
|
<div class="pest-table">
|
|
|
<div class="pest-row pest-head">
|
|
|
<div>分析维度</div>
|
|
|
<div>具体影响因素与现象</div>
|
|
|
<div>初步识别的市场机会与风险</div>
|
|
|
</div>
|
|
|
<div v-for="row in pestRows" :key="row.key" class="pest-row">
|
|
|
<div class="dimension-cell">{{ row.label }}</div>
|
|
|
<textarea v-model="form.pest[row.key].factor" :placeholder="row.factorPlaceholder" />
|
|
|
<textarea v-model="form.pest[row.key].opportunity" :placeholder="row.opportunityPlaceholder" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
<section v-show="currentStep === 2" class="step-content">
|
|
|
<p class="task-desc">访问天猫或京东平台,选择“小米(米家)”“青萍”等作为主要竞品分析对象,完成下表。</p>
|
|
|
<div class="competitor-fields">
|
|
|
<label>
|
|
|
<span>竞争对手A:</span>
|
|
|
<input v-model="form.competitor.competitorA" />
|
|
|
</label>
|
|
|
<label>
|
|
|
<span>竞争对手B:</span>
|
|
|
<input v-model="form.competitor.competitorB" />
|
|
|
</label>
|
|
|
</div>
|
|
|
<div class="training-table-wrap">
|
|
|
<div class="table-title">竞争对手分析与需求挖掘表</div>
|
|
|
<table class="training-data-table">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>分析项目</th>
|
|
|
<th>竞争对手A:{{ form.competitor.competitorA }}</th>
|
|
|
<th>竞争对手B:{{ form.competitor.competitorB }}</th>
|
|
|
<th>发现的市场缺口与核心痛点</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="row in form.competitor.rows" :key="row.key">
|
|
|
<td class="dimension-cell">{{ row.name }}</td>
|
|
|
<td><textarea v-model="row.competitorA" class="cell-textarea" /></td>
|
|
|
<td><textarea v-model="row.competitorB" class="cell-textarea" /></td>
|
|
|
<td><textarea v-model="row.gap" class="cell-textarea" /></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<label class="field-block">
|
|
|
<span>我们的初步对策:</span>
|
|
|
<textarea v-model="form.competitor.strategy" class="input-field" rows="5" placeholder="针对上述痛点,我们计划:" />
|
|
|
</label>
|
|
|
</section>
|
|
|
|
|
|
<section v-show="currentStep === 3" class="step-content">
|
|
|
<p class="task-desc">根据销量、市场增长率和相对市场份额,完成数据化选品判断。</p>
|
|
|
<div class="training-table-wrap">
|
|
|
<div class="table-title">汇总计算结果</div>
|
|
|
<table class="training-data-table compact-table">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>产品类别</th>
|
|
|
<th>市场增长率(%)</th>
|
|
|
<th>市场增长率行业均值</th>
|
|
|
<th>相对市场份额(%)</th>
|
|
|
<th>相对市场份额均值</th>
|
|
|
<th>产品分类</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="row in form.dataSelection.rows" :key="row.category">
|
|
|
<td>{{ row.category }}</td>
|
|
|
<td><input v-model="row.growthRate" class="cell-input small-input" /></td>
|
|
|
<td>10%</td>
|
|
|
<td><input v-model="row.relativeShare" class="cell-input small-input" /></td>
|
|
|
<td>100%</td>
|
|
|
<td>
|
|
|
<select v-model="row.classification" class="cell-select">
|
|
|
<option value="">请选择</option>
|
|
|
<option>明星产品</option>
|
|
|
<option>现金牛产品</option>
|
|
|
<option>问题产品</option>
|
|
|
<option>瘦狗产品</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<label class="field-block">
|
|
|
<span>请结合百度指数分析波士顿矩阵模型在数据化选品中的优缺点:</span>
|
|
|
<textarea v-model="form.dataSelection.reflection" class="input-field" rows="5" />
|
|
|
</label>
|
|
|
</section>
|
|
|
|
|
|
<section v-show="currentStep === 4" class="step-content">
|
|
|
<p class="task-desc">基于以上分析,运用 SWOT 思路进行综合判断,并得出初步决策。</p>
|
|
|
<label class="field-block">
|
|
|
<span>我们的优势:</span>
|
|
|
<textarea v-model="form.swot.strengths" class="input-field" rows="4" placeholder="团队在____方面有专长;可以采用____策略降低成本等。" />
|
|
|
</label>
|
|
|
<label class="field-block">
|
|
|
<span>我们的劣势:</span>
|
|
|
<textarea v-model="form.swot.weaknesses" class="input-field" rows="4" placeholder="已提取交互____;应避免与巨头在____方面直接竞争等。" />
|
|
|
</label>
|
|
|
<label class="field-block">
|
|
|
<span>我们的机会:</span>
|
|
|
<textarea v-model="form.swot.opportunities" class="input-field" rows="4" placeholder="宏观环境中的____趋势;竞争对手普遍存在的____短板。" />
|
|
|
</label>
|
|
|
<label class="field-block">
|
|
|
<span>我们的威胁:</span>
|
|
|
<textarea v-model="form.swot.threats" class="input-field" rows="4" placeholder="巨头的可能模仿;技术快速迭代等。" />
|
|
|
</label>
|
|
|
<label class="field-block">
|
|
|
<span>结论:基于以上分析,给出具体结论,是否继续开发相关产品,开发什么样的产品</span>
|
|
|
<textarea v-model="form.swot.conclusion" class="input-field" rows="6" />
|
|
|
</label>
|
|
|
</section>
|
|
|
|
|
|
<div v-if="steps.length" class="step-actions">
|
|
|
<el-button class="step-action-btn step-action-btn--previous" :disabled="currentStep === 1" @click="previousStep">
|
|
|
<el-icon><ArrowLeft /></el-icon>
|
|
|
上一步
|
|
|
</el-button>
|
|
|
<el-button class="step-action-btn step-action-btn--save" :loading="saving" @click="saveCurrentProgress">
|
|
|
<el-icon><CircleCheck /></el-icon>
|
|
|
保存当前进度
|
|
|
</el-button>
|
|
|
<el-button class="step-action-btn step-action-btn--next" :disabled="currentStep === steps.length" @click="nextStep">
|
|
|
下一步
|
|
|
<el-icon><ArrowRight /></el-icon>
|
|
|
</el-button>
|
|
|
</div>
|
|
|
|
|
|
<div class="training-actions">
|
|
|
<el-button class="training-action training-action--submit" :loading="saving" @click="submitTask">
|
|
|
提交任务
|
|
|
</el-button>
|
|
|
<el-button class="training-action training-action--reset" @click="resetTraining">
|
|
|
重新实训
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</section>
|
|
|
</section>
|
|
|
</main>
|
|
|
|
|
|
<TrainingAiSidebar
|
|
|
study-tip="当前步骤建议:先从政策、经济、社会、技术四类因素中提取关键现象,再判断对应的机会与风险。"
|
|
|
reference-title="选品机会判断参考"
|
|
|
reference-text="· 政治:政策补贴、标准认证、合规门槛<br />· 经济:价格带、采购成本、市场规模<br />· 社会:健康意识、家庭场景、消费偏好<br />· 技术:传感器、联网能力、数据分析能力"
|
|
|
assist-text="可以把每个维度先写成“现象 -> 机会/风险”的句式,最后再汇总判断是否适合作为选品方向。"
|
|
|
:progress-items="progressItems"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { ArrowLeft, ArrowRight, CircleCheck, DataLine, Download } from "@element-plus/icons-vue";
|
|
|
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
|
|
|
import TrainingMaterialButton from "@/views/components/TrainingMaterialButton.vue";
|
|
|
import { getTrainingTaskByKey } from "@/api/trainingTask";
|
|
|
import { parseTrainingArray } from "@/views/training/taskKeyMap";
|
|
|
import { getStudentTrainingAnswer, saveStudentTrainingAnswer } from "@/api/studentTrainingAnswer";
|
|
|
|
|
|
const TASK_KEY = "market-opportunity-selection";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
const taskConfig = ref(null);
|
|
|
const saving = ref(false);
|
|
|
const currentStep = ref(1);
|
|
|
const briefOpen = ref(false);
|
|
|
|
|
|
const defaultRequirement = "市场机会识别与选品需要把宏观环境、竞争态势、需求数据和品类适配度结合起来,判断产品是否具备进入价值。";
|
|
|
const defaultBackground =
|
|
|
"以智能空气监测仪/空气质量检测仪为例,学生需要从 PEST 四个维度识别外部环境中的机会与风险,并形成后续选品判断依据。";
|
|
|
const defaultGoals = [
|
|
|
"掌握从宏观环境中识别产品机会的方法。",
|
|
|
"能够使用 PEST 模型拆解品类机会与风险。",
|
|
|
"能够为后续数据化选品和综合判断提供结构化依据。",
|
|
|
];
|
|
|
|
|
|
const pestRows = [
|
|
|
{
|
|
|
key: "political",
|
|
|
label: "政治",
|
|
|
factorPlaceholder: "填写政策、标准、认证、监管等因素",
|
|
|
opportunityPlaceholder: "填写可能带来的机会或合规风险",
|
|
|
},
|
|
|
{
|
|
|
key: "economic",
|
|
|
label: "经济",
|
|
|
factorPlaceholder: "填写价格带、市场规模、采购成本、消费能力等因素",
|
|
|
opportunityPlaceholder: "填写市场容量、成本优势或价格风险",
|
|
|
},
|
|
|
{
|
|
|
key: "social",
|
|
|
label: "社会",
|
|
|
factorPlaceholder: "填写健康意识、家庭场景、用户偏好等因素",
|
|
|
opportunityPlaceholder: "填写用户需求、场景增长或接受度风险",
|
|
|
},
|
|
|
{
|
|
|
key: "technology",
|
|
|
label: "技术",
|
|
|
factorPlaceholder: "填写传感器、联网、数据分析、产品稳定性等因素",
|
|
|
opportunityPlaceholder: "填写技术差异化机会或落地风险",
|
|
|
},
|
|
|
];
|
|
|
|
|
|
function createForm() {
|
|
|
return {
|
|
|
pest: {
|
|
|
political: { factor: "", opportunity: "" },
|
|
|
economic: { factor: "", opportunity: "" },
|
|
|
social: { factor: "", opportunity: "" },
|
|
|
technology: { factor: "", opportunity: "" },
|
|
|
},
|
|
|
competitor: {
|
|
|
competitorA: "",
|
|
|
competitorB: "",
|
|
|
rows: [
|
|
|
{ key: "price", name: "核心产品与定价", competitorA: "", competitorB: "", gap: "" },
|
|
|
{ key: "selling", name: "核心卖点", competitorA: "", competitorB: "", gap: "" },
|
|
|
{ key: "review", name: "用户评价分析(聚焦中差评)", competitorA: "", competitorB: "", gap: "" },
|
|
|
],
|
|
|
strategy: "",
|
|
|
},
|
|
|
dataSelection: {
|
|
|
rows: [
|
|
|
{ category: "电饭煲", growthRate: "5.17%", relativeShare: "101.75%", classification: "现金牛产品" },
|
|
|
{ category: "扫地机器人", growthRate: "24.41%", relativeShare: "143.95%", classification: "明星产品" },
|
|
|
{ category: "咖啡机", growthRate: "18.67%", relativeShare: "37.64%", classification: "问题产品" },
|
|
|
{ category: "电动牙刷", growthRate: "2.36%", relativeShare: "41.74%", classification: "瘦狗产品" },
|
|
|
],
|
|
|
reflection: "",
|
|
|
},
|
|
|
swot: {
|
|
|
strengths: "",
|
|
|
weaknesses: "",
|
|
|
opportunities: "",
|
|
|
threats: "",
|
|
|
conclusion: "",
|
|
|
},
|
|
|
};
|
|
|
}
|
|
|
|
|
|
const form = ref(createForm());
|
|
|
|
|
|
const taskTitle = computed(() => taskConfig.value?.taskName || "市场机会识别与选品");
|
|
|
const taskBackground = computed(() => taskConfig.value?.background || defaultBackground);
|
|
|
const taskGoals = computed(() => parseArray(taskConfig.value?.objectives, defaultGoals));
|
|
|
const taskRequirement = computed(() => taskConfig.value?.requirements || defaultRequirement);
|
|
|
const flowSteps = computed(() => parseTrainingArray(taskConfig.value?.steps, []));
|
|
|
const steps = computed(() =>
|
|
|
flowSteps.value.map((name, index) => ({
|
|
|
no: index + 1,
|
|
|
name,
|
|
|
}))
|
|
|
);
|
|
|
const activeStepName = computed(() => steps.value[currentStep.value - 1]?.name || "");
|
|
|
|
|
|
watch(steps, (items) => {
|
|
|
if (items.length && currentStep.value > items.length) {
|
|
|
currentStep.value = items.length;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
const progressItems = computed(() => [
|
|
|
{ text: "进行中:PEST 四维度分析", status: "doing" },
|
|
|
{
|
|
|
text: isPestStarted.value ? "已填写:市场机会与风险" : "待完成:市场机会与风险",
|
|
|
status: isPestStarted.value ? "done" : "",
|
|
|
},
|
|
|
{ text: "待完成:导出实训结果", status: "" },
|
|
|
]);
|
|
|
|
|
|
const isPestStarted = computed(() =>
|
|
|
Object.values(form.value.pest).some((item) => item.factor?.trim() || item.opportunity?.trim())
|
|
|
);
|
|
|
|
|
|
onMounted(async () => {
|
|
|
await loadTaskConfig();
|
|
|
await loadSavedAnswer();
|
|
|
});
|
|
|
|
|
|
async function loadTaskConfig() {
|
|
|
try {
|
|
|
const res = await getTrainingTaskByKey(TASK_KEY);
|
|
|
taskConfig.value = res?.data || null;
|
|
|
} catch (error) {
|
|
|
taskConfig.value = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
async function loadSavedAnswer() {
|
|
|
try {
|
|
|
const res = await getStudentTrainingAnswer(TASK_KEY);
|
|
|
const answer = res?.data;
|
|
|
if (answer?.step1Answer) {
|
|
|
applySavedAnswer(answer.step1Answer);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
// 保持页面可用,后端异常时不阻断学生填写。
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function parseArray(value, fallback) {
|
|
|
if (Array.isArray(value)) {
|
|
|
return value.length ? value : fallback;
|
|
|
}
|
|
|
if (!value) {
|
|
|
return fallback;
|
|
|
}
|
|
|
try {
|
|
|
const parsed = JSON.parse(value);
|
|
|
return Array.isArray(parsed) && parsed.length ? parsed : fallback;
|
|
|
} catch (error) {
|
|
|
const list = String(value)
|
|
|
.split(/[;;|]/)
|
|
|
.map((item) => item.trim())
|
|
|
.filter(Boolean);
|
|
|
return list.length ? list : fallback;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function applySavedAnswer(value) {
|
|
|
try {
|
|
|
const parsed = JSON.parse(value);
|
|
|
if (!parsed || typeof parsed !== "object") return;
|
|
|
const base = createForm();
|
|
|
form.value = {
|
|
|
...base,
|
|
|
...parsed,
|
|
|
pest: {
|
|
|
...base.pest,
|
|
|
...(parsed.pest || {}),
|
|
|
},
|
|
|
competitor: {
|
|
|
...base.competitor,
|
|
|
...(parsed.competitor || {}),
|
|
|
},
|
|
|
dataSelection: {
|
|
|
...base.dataSelection,
|
|
|
...(parsed.dataSelection || {}),
|
|
|
},
|
|
|
swot: {
|
|
|
...base.swot,
|
|
|
...(parsed.swot || {}),
|
|
|
},
|
|
|
};
|
|
|
currentStep.value = Math.min(Math.max(Number(parsed.currentStep || 1), 1), 4);
|
|
|
} catch (error) {
|
|
|
// 忽略历史异常数据。
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function buildAnswerPayload(status) {
|
|
|
const saveAction = status === "SUBMITTED" ? "SUBMIT" : status === "RESET" ? "RESET" : "SAVE";
|
|
|
return {
|
|
|
saveAction,
|
|
|
currentStep: currentStep.value,
|
|
|
step1Answer: JSON.stringify({
|
|
|
taskKey: TASK_KEY,
|
|
|
taskName: taskTitle.value,
|
|
|
taskId: taskConfig.value?.id || "",
|
|
|
currentStep: currentStep.value,
|
|
|
flowSteps: flowSteps.value,
|
|
|
...form.value,
|
|
|
}),
|
|
|
};
|
|
|
}
|
|
|
|
|
|
async function persist(status = "IN_PROGRESS", silent = false) {
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
await saveStudentTrainingAnswer(TASK_KEY, buildAnswerPayload(status));
|
|
|
if (!silent) {
|
|
|
proxy?.$modal?.msgSuccess(status === "SUBMITTED" ? "提交成功" : "保存成功");
|
|
|
}
|
|
|
} catch (error) {
|
|
|
if (!silent) {
|
|
|
proxy?.$modal?.msgError?.(status === "SUBMITTED" ? "提交失败" : "保存失败");
|
|
|
}
|
|
|
} finally {
|
|
|
saving.value = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function saveCurrentProgress() {
|
|
|
return persist("IN_PROGRESS");
|
|
|
}
|
|
|
|
|
|
function changeStep(targetStep) {
|
|
|
const maxStep = steps.value.length;
|
|
|
if (!maxStep) return;
|
|
|
const next = Math.min(Math.max(Number(targetStep) || 1, 1), maxStep);
|
|
|
if (next === currentStep.value) return;
|
|
|
currentStep.value = next;
|
|
|
void persist("IN_PROGRESS", true);
|
|
|
}
|
|
|
|
|
|
function previousStep() {
|
|
|
changeStep(currentStep.value - 1);
|
|
|
}
|
|
|
|
|
|
function nextStep() {
|
|
|
changeStep(currentStep.value + 1);
|
|
|
}
|
|
|
|
|
|
function submitTask() {
|
|
|
return persist("SUBMITTED");
|
|
|
}
|
|
|
|
|
|
async function resetTraining() {
|
|
|
form.value = createForm();
|
|
|
currentStep.value = 1;
|
|
|
await persist("RESET");
|
|
|
}
|
|
|
|
|
|
function exportOutcome() {
|
|
|
const content = {
|
|
|
taskName: taskTitle.value,
|
|
|
flowSteps: flowSteps.value,
|
|
|
currentStep: currentStep.value,
|
|
|
...form.value,
|
|
|
};
|
|
|
const blob = new Blob([JSON.stringify(content, null, 2)], { type: "application/json;charset=utf-8" });
|
|
|
const url = URL.createObjectURL(blob);
|
|
|
const link = document.createElement("a");
|
|
|
link.href = url;
|
|
|
link.download = `${taskTitle.value || "市场机会识别与选品"}-实训结果.json`;
|
|
|
link.click();
|
|
|
URL.revokeObjectURL(url);
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
/* ============================================================
|
|
|
* 市场机会识别与选品 · 教育蓝极简风格
|
|
|
* ============================================================ */
|
|
|
.market-selection-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;
|
|
|
/* 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-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);
|
|
|
}
|
|
|
|
|
|
.training-core {
|
|
|
display: grid;
|
|
|
gap: 12px;
|
|
|
align-content: start;
|
|
|
}
|
|
|
|
|
|
/* ===== task-header ===== */
|
|
|
.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-title {
|
|
|
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%;
|
|
|
}
|
|
|
|
|
|
.task-brief-text {
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
}
|
|
|
|
|
|
p {
|
|
|
margin: 0;
|
|
|
color: var(--student-text-secondary);
|
|
|
font-size: var(--student-fs-body-sm);
|
|
|
line-height: 1.6;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.market-selection-toolbar {
|
|
|
flex: 0 0 auto;
|
|
|
display: flex;
|
|
|
gap: 8px;
|
|
|
justify-content: flex-end;
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
|
|
|
.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-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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ===== task-card ===== */
|
|
|
.task-card {
|
|
|
border: 0;
|
|
|
background: transparent;
|
|
|
display: grid;
|
|
|
gap: 12px;
|
|
|
}
|
|
|
|
|
|
/* ===== step-title-row ===== */
|
|
|
.step-title-row {
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
}
|
|
|
|
|
|
.step-desc {
|
|
|
margin: 0 0 16px;
|
|
|
color: #4b5563;
|
|
|
font-size: var(--student-fs-body);
|
|
|
line-height: 1.7;
|
|
|
}
|
|
|
|
|
|
.step-content {
|
|
|
animation: fadeIn 0.2s ease;
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
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);
|
|
|
}
|
|
|
|
|
|
/* ===== PEST 表格 ===== */
|
|
|
.pest-table-wrap {
|
|
|
margin-top: 14px;
|
|
|
}
|
|
|
|
|
|
.table-title {
|
|
|
margin-bottom: 12px;
|
|
|
color: #2c4a6a;
|
|
|
font-size: var(--student-fs-body);
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
|
|
|
.pest-table {
|
|
|
overflow: hidden;
|
|
|
border: 1px solid var(--student-panel-border);
|
|
|
border-radius: 10px;
|
|
|
background: #ffffff;
|
|
|
}
|
|
|
|
|
|
.pest-row {
|
|
|
display: grid;
|
|
|
grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
|
|
|
border-top: 1px solid #f0f1f3;
|
|
|
|
|
|
> div,
|
|
|
> textarea {
|
|
|
min-height: 132px;
|
|
|
border: 0;
|
|
|
border-right: 1px solid #f0f1f3;
|
|
|
}
|
|
|
|
|
|
> :last-child {
|
|
|
border-right: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.pest-row:first-child {
|
|
|
border-top: 0;
|
|
|
}
|
|
|
|
|
|
.pest-head {
|
|
|
background: #f9fafb;
|
|
|
|
|
|
> div {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
min-height: 46px;
|
|
|
padding: 10px 12px;
|
|
|
color: var(--student-text);
|
|
|
font-weight: 700;
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.dimension-cell {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
padding: 14px;
|
|
|
color: var(--student-text);
|
|
|
font-weight: 700;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
.pest-row textarea {
|
|
|
width: 100%;
|
|
|
padding: 14px 16px;
|
|
|
outline: none;
|
|
|
resize: vertical;
|
|
|
color: var(--student-text);
|
|
|
background: #ffffff;
|
|
|
font-size: var(--student-fs-body);
|
|
|
line-height: 1.65;
|
|
|
border: 0;
|
|
|
transition: background 0.16s ease, box-shadow 0.16s ease;
|
|
|
|
|
|
&::placeholder {
|
|
|
color: #9ca3af;
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
background: #ffffff;
|
|
|
box-shadow: inset 0 0 0 2px var(--student-accent);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ===== 竞品字段 ===== */
|
|
|
.competitor-fields {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
gap: 40px;
|
|
|
margin-bottom: 18px;
|
|
|
|
|
|
label {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
gap: 8px;
|
|
|
color: var(--student-text);
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.competitor-field {
|
|
|
display: grid;
|
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
|
align-items: center;
|
|
|
gap: 10px;
|
|
|
}
|
|
|
|
|
|
.input-single {
|
|
|
width: 180px;
|
|
|
min-height: 38px;
|
|
|
padding: 0 12px;
|
|
|
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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ===== 数据表格 ===== */
|
|
|
.training-table-wrap {
|
|
|
overflow-x: auto;
|
|
|
border: 1px solid var(--student-panel-border);
|
|
|
border-radius: 10px;
|
|
|
background: #ffffff;
|
|
|
}
|
|
|
|
|
|
.training-data-table {
|
|
|
width: 100%;
|
|
|
min-width: 820px;
|
|
|
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;
|
|
|
background: #ffffff;
|
|
|
}
|
|
|
|
|
|
tbody tr {
|
|
|
transition: background 0.16s ease;
|
|
|
|
|
|
&:hover {
|
|
|
background: #f9fafb;
|
|
|
}
|
|
|
|
|
|
&:last-child td {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.compact-table {
|
|
|
min-width: 720px;
|
|
|
}
|
|
|
|
|
|
.serial-cell {
|
|
|
color: var(--student-text);
|
|
|
font-weight: 600;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
/* ===== 字段块 ===== */
|
|
|
.field-block {
|
|
|
display: grid;
|
|
|
gap: 8px;
|
|
|
margin-top: 12px;
|
|
|
color: #374151;
|
|
|
font-size: var(--student-fs-body);
|
|
|
font-weight: 600;
|
|
|
|
|
|
> span {
|
|
|
line-height: 1.6;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.input-field,
|
|
|
.cell-input,
|
|
|
.cell-textarea,
|
|
|
.cell-select {
|
|
|
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: 110px;
|
|
|
padding: 12px 16px;
|
|
|
line-height: 1.8;
|
|
|
resize: vertical;
|
|
|
}
|
|
|
|
|
|
.cell-input,
|
|
|
.cell-select {
|
|
|
min-height: 36px;
|
|
|
padding: 8px 10px;
|
|
|
}
|
|
|
|
|
|
.small-input {
|
|
|
max-width: 110px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
.cell-textarea {
|
|
|
min-height: 96px;
|
|
|
padding: 10px;
|
|
|
line-height: 1.7;
|
|
|
resize: vertical;
|
|
|
}
|
|
|
|
|
|
/* ===== 按钮 ===== */
|
|
|
.btn-nav,
|
|
|
.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-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);
|
|
|
}
|
|
|
|
|
|
&:disabled {
|
|
|
cursor: not-allowed;
|
|
|
opacity: 0.45;
|
|
|
transform: none;
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.btn-submit {
|
|
|
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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ===== 底部导航 ===== */
|
|
|
.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;
|
|
|
}
|
|
|
|
|
|
.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 {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
justify-content: center;
|
|
|
gap: 14px;
|
|
|
margin-top: 24px;
|
|
|
}
|
|
|
|
|
|
/* ===== 响应式 ===== */
|
|
|
@media (max-width: 1100px) {
|
|
|
.step-nav-right {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
.task-header {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.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,
|
|
|
.btn-submit {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
.pest-table {
|
|
|
overflow-x: auto;
|
|
|
}
|
|
|
|
|
|
.pest-row {
|
|
|
grid-template-columns: 110px repeat(2, minmax(220px, 1fr));
|
|
|
min-width: 650px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
<style lang="scss">
|
|
|
/* ============================================================
|
|
|
* 步骤导航:分段连接胶囊(教育蓝主题)
|
|
|
* ============================================================ */
|
|
|
#app .studentLayout section.app-main:has(.market-selection-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 {
|
|
|
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; }
|
|
|
|
|
|
&: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(.market-selection-page) .step-indicator {
|
|
|
justify-content: flex-start !important;
|
|
|
overflow-x: auto !important;
|
|
|
}
|
|
|
|
|
|
#app .studentLayout section.app-main:has(.market-selection-page) .step-indicator .step-tab {
|
|
|
flex: 0 0 140px !important;
|
|
|
max-width: none !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ============================================================
|
|
|
* 共用组件换肤:TrainingMaterialButton 资料按钮
|
|
|
* ============================================================ */
|
|
|
.market-selection-page .market-selection-toolbar .material-button.el-button {
|
|
|
height: 34px !important;
|
|
|
min-height: 34px !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:
|
|
|
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)
|
|
|
* ============================================================ */
|
|
|
.market-selection-page .market-selection-toolbar > button.outline-action {
|
|
|
display: inline-flex !important;
|
|
|
align-items: center !important;
|
|
|
justify-content: center !important;
|
|
|
gap: 6px !important;
|
|
|
height: 34px !important;
|
|
|
min-height: 34px !important;
|
|
|
padding: 0 14px !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;
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* ============================================================
|
|
|
* 底部步骤按钮(step-actions)
|
|
|
* ============================================================ */
|
|
|
.market-selection-page .step-actions {
|
|
|
display: flex !important;
|
|
|
flex-wrap: wrap !important;
|
|
|
align-items: center !important;
|
|
|
gap: 14px !important;
|
|
|
margin-top: 20px !important;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .step-actions .step-action-btn {
|
|
|
display: inline-flex !important;
|
|
|
align-items: center !important;
|
|
|
justify-content: center !important;
|
|
|
gap: 8px !important;
|
|
|
height: 34px !important;
|
|
|
min-height: 34px !important;
|
|
|
padding: 0 14px !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: 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;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .step-actions .step-action-btn: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;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .step-actions .step-action-btn--next,
|
|
|
.market-selection-page .step-actions .step-action-btn--previous {
|
|
|
border-color: rgba(37, 99, 235, 0.35) !important;
|
|
|
color: #2563eb !important;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .step-actions .step-action-btn--save {
|
|
|
border: 1px solid #e5e7eb !important;
|
|
|
background: #f3f4f6 !important;
|
|
|
color: #374151 !important;
|
|
|
}
|
|
|
|
|
|
/* ============================================================
|
|
|
* 底部提交/重置按钮(training-actions)
|
|
|
* ============================================================ */
|
|
|
.market-selection-page .training-actions .el-button {
|
|
|
min-width: 112px !important;
|
|
|
height: 34px !important;
|
|
|
padding: 0 14px !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: 700 !important;
|
|
|
transition:
|
|
|
border-color 0.16s ease,
|
|
|
background 0.16s ease,
|
|
|
color 0.16s ease,
|
|
|
box-shadow 0.16s ease !important;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .training-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;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .training-actions .training-action--submit {
|
|
|
border-color: #2563eb !important;
|
|
|
color: #ffffff !important;
|
|
|
background: #2563eb !important;
|
|
|
box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .training-actions .training-action--submit:hover:not(.is-disabled) {
|
|
|
border-color: #1d4ed8 !important;
|
|
|
background: #1d4ed8 !important;
|
|
|
box-shadow: 0 5px 14px rgba(29, 78, 216, 0.32) !important;
|
|
|
}
|
|
|
|
|
|
.market-selection-page .training-actions .training-action--reset {
|
|
|
border: 1px solid #e5e7eb !important;
|
|
|
background: #f3f4f6 !important;
|
|
|
color: #374151 !important;
|
|
|
}
|
|
|
</style>
|