@ -6,18 +6,15 @@
< h1 class = "task-title" > { { taskTitle } } < / h1 >
< h1 class = "task-title" > { { taskTitle } } < / h1 >
< / section >
< / section >
< TrainingTaskBrief :background ="taskBackground" :goals ="taskGoals" :requirements ="taskRequirement" :show-material ="false" / >
< TrainingTaskBrief :background ="taskBackground" :goals ="taskGoals" :requirements ="taskRequirement" :show-material ="false" :show-toolbar ="false" / >
< section class = "task-card" >
< section class = "task-card" >
< div class = "workbench-head" >
< div class = "workbench-head" >
< div >
< div >
< p class = "section-eyebrow" > { { currentStep === 3 ? 'PRD document delivery' : currentStep === 2 ? 'PRD detailed specification' : 'PRD module matching' } } < / p >
< p class = "section-eyebrow" > { { currentStep === 3 ? 'PRD document delivery' : currentStep === 2 ? 'PRD detailed specification' : 'PRD module matching' } } < / p >
< h2 > { { currentStep === 3 ? '生成并提交产品需求文档' : currentStep === 2 ? '填写 PRD 七大模块详细信息' : '认识 PRD 的核心模块' } } < / h2 >
< h2 > { { trainingSteps [ currentStep - 1 ] || '产品需求说明书' } } < / h2 >
< / div >
< div class = "workbench-actions" >
< TrainingMaterialButton :material-name ="taskConfig?.materialName" :material-url ="taskConfig?.materialUrl" / >
< button type = "button" class = "outline-action" @click ="exportOutcome" > < el -icon > < Download / > < / e l - i c o n > { { c u r r e n t S t e p = = = 3 ? ' 预 览 产 品 需 求 说 明 书 ' : ' 导 出 实 训 成 果 ' } } < / b u t t o n >
< / div >
< / div >
< TrainingTaskToolbar class = "requirements-doc-toolbar" :task-key ="TASK_KEY" :on-submit ="submitTask" :on-export ="exportOutcome" / >
< / div >
< / div >
< nav class = "step-indicator" aria -label = " 产 品 需 求 文 档 撰 写 步 骤 " >
< nav class = "step-indicator" aria -label = " 产 品 需 求 文 档 撰 写 步 骤 " >
@ -35,13 +32,6 @@
< / nav >
< / nav >
< section v-if ="currentStep === 1" class="step-card" >
< section v-if ="currentStep === 1" class="step-card" >
< div class = "step-title-row" >
< div >
< p class = "section-eyebrow" > Step 01 < / p >
< h3 > { { trainingSteps [ 0 ] } } < / h3 >
< / div >
< span class = "step-chip" > 拖拽匹配判题 < / span >
< / div >
< p class = "step-desc" > PRD 是产品开发的纲领性文件 , 通常包含文档说明 、 产品概述 、 用户需求与场景 、 核心功能需求 、 非功能需求 、 硬件规格与设计需求 、 测试需求 、 项目规划和需求变更管理等模块 。 请把右侧被打乱的 “ 核心作用 ” 卡片拖入左侧对应模块 ; 全部匹配正确后才能进入第 2 步 。 < / p >
< p class = "step-desc" > PRD 是产品开发的纲领性文件 , 通常包含文档说明 、 产品概述 、 用户需求与场景 、 核心功能需求 、 非功能需求 、 硬件规格与设计需求 、 测试需求 、 项目规划和需求变更管理等模块 。 请把右侧被打乱的 “ 核心作用 ” 卡片拖入左侧对应模块 ; 全部匹配正确后才能进入第 2 步 。 < / p >
< div class = "matching-tip" role = "status" >
< div class = "matching-tip" role = "status" >
@ -88,22 +78,9 @@
< / div >
< / div >
< p v-if ="checkResult" class="result-message" :class="{ success: checkResult.allCorrect }" > {{ checkResult.message }} < / p >
< p v-if ="checkResult" class="result-message" :class="{ success: checkResult.allCorrect }" > {{ checkResult.message }} < / p >
< div class = "task-actions" >
< button type = "button" class = "btn-nav" :disabled ="saving" @click ="saveCurrentMatching" > 保 存 当 前 匹 配 < / button >
< button type = "button" class = "btn-nav btn-submit" : disabled = "checking || !allAssigned" @click ="checkAndSave" > {{ checking ? ' 判 题 中 … ' : ' 检 查 匹 配 并 保 存 ' }} < / button >
< button type = "button" class = "btn-nav" : disabled = "checking || saving" @click ="resetMatching" > < el -icon > < RefreshLeft / > < / e l - i c o n > 重 新 打 乱 < / b u t t o n >
< button type = "button" class = "btn-nav btn-primary" :disabled ="!stepOnePassed" @click ="goNextStep" > 进 入 第 2 步 < el -icon > < ArrowRight / > < / e l - i c o n > < / b u t t o n >
< / div >
< / section >
< / section >
< section v -else -if = " currentStep = = = 2 " class = "step-card prd-detail-card" >
< section v -else -if = " currentStep = = = 2 " class = "step-card prd-detail-card" >
< div class = "step-title-row" >
< div >
< p class = "section-eyebrow" > Step 02 < / p >
< h3 > { { trainingSteps [ 1 ] } } < / h3 >
< / div >
< span class = "step-chip" > 可编辑 PRD 架构表 < / span >
< / div >
< p class = "step-desc" > PRD 的每一个模块都需要言之有物 、 数据支撑 。 请基于案例资料和前期实训成果 , 完成以下七大模块的详细信息 。 < / p >
< p class = "step-desc" > PRD 的每一个模块都需要言之有物 、 数据支撑 。 请基于案例资料和前期实训成果 , 完成以下七大模块的详细信息 。 < / p >
< div class = "prd-note" > < el -icon > < InfoFilled / > < / e l - i c o n > < s p a n > 灰 色 文 字 为 参 考 示 例 , 可 点 击 “ 填 入 示 例 ” 后 再 修 改 。 导 出 表 格 会 同 时 包 含 示 例 内 容 和 你 的 填 写 内 容 。 < / s p a n > < / d i v >
< div class = "prd-note" > < el -icon > < InfoFilled / > < / e l - i c o n > < s p a n > 灰 色 文 字 为 参 考 示 例 , 可 点 击 “ 填 入 示 例 ” 后 再 修 改 。 导 出 表 格 会 同 时 包 含 示 例 内 容 和 你 的 填 写 内 容 。 < / s p a n > < / d i v >
@ -125,21 +102,9 @@
< / tbody >
< / tbody >
< / table >
< / table >
< / div >
< / div >
< div class = "task-actions" >
< button type = "button" class = "btn-nav" :disabled ="saving" @click ="saveStepTwo" > {{ saving ? ' 保 存 中 … ' : ' 保 存 详 细 信 息 ' }} < / button >
< button type = "button" class = "btn-nav btn-submit" @click ="exportStepTwoTable" > < el -icon > < Download / > < / e l - i c o n > 导 出 P R D 表 格 < / b u t t o n >
< button type = "button" class = "btn-nav btn-primary" :disabled ="saving" @click ="goToStepThree" > 进 入 第 3 步 < el -icon > < ArrowRight / > < / e l - i c o n > < / b u t t o n >
< / div >
< / section >
< / section >
< section v -else -if = " currentStep = = = 3 " class = "step-card prd-upload-card" >
< section v -else -if = " currentStep = = = 3 " class = "step-card prd-upload-card" >
< div class = "step-title-row" >
< div >
< p class = "section-eyebrow" > Step 03 < / p >
< h3 > { { trainingSteps [ 2 ] || '生成产品需求文档' } } < / h3 >
< / div >
< span class = "step-chip" > Word / PDF 在线预览 < / span >
< / div >
< p class = "step-desc" > PRD 是跨团队协作的基准文档 。 请基于第 2 步的核心模块信息 , 结合案例资料中的完整数据 , 生成一份完整的产品需求文档后上传 。 < / p >
< p class = "step-desc" > PRD 是跨团队协作的基准文档 。 请基于第 2 步的核心模块信息 , 结合案例资料中的完整数据 , 生成一份完整的产品需求文档后上传 。 < / p >
< div class = "prd-delivery-guide" >
< div class = "prd-delivery-guide" >
@ -170,11 +135,6 @@
< / div >
< / div >
< / article >
< / article >
< div class = "task-actions" >
< button type = "button" class = "btn-nav" : disabled = "!isDocumentReady || saving || submitting || documentUploading" @click ="saveStepThree" > {{ saving ? ' 保 存 中 … ' : ' 保 存 文 档 ' }} < / button >
< button type = "button" class = "btn-nav btn-submit" : disabled = "!isDocumentReady || documentUploading" @ click = "showDocumentPreview = true" > < el -icon > < View / > < / e l - i c o n > 预 览 文 档 < / b u t t o n >
< button type = "button" class = "btn-nav btn-primary" : disabled = "!canSubmitTask || saving || submitting || documentUploading" @click ="submitTask" > {{ submitting ? ' 提 交 中 … ' : ' 提 交 任 务 ' }} < / button >
< / div >
< / section >
< / section >
< section v -else class = "step-card upcoming-card" >
< section v -else class = "step-card upcoming-card" >
@ -183,6 +143,11 @@
< p > 该步骤将在对应实训页面继续完成 。 < / p >
< p > 该步骤将在对应实训页面继续完成 。 < / p >
< button type = "button" class = "btn-nav" @click ="switchStep(2)" > 返 回 第 2 步 < / button >
< button type = "button" class = "btn-nav" @click ="switchStep(2)" > 返 回 第 2 步 < / button >
< / section >
< / section >
< footer class = "step-navigation" >
< button v-if ="currentStep > 1" type="button" class="btn-nav" :disabled="saving || checking || documentUploading" @click="previousStep" > 上 一 步 < / button >
< button type = "button" class = "btn-nav btn-primary" : disabled = "saving || checking || documentUploading" @click ="saveCurrentProgress" > 保 存 当 前 进 度 < / button >
< button v-if ="currentStep < 3" type="button" class="btn-nav btn-primary" :disabled="saving || checking || documentUploading" @click="nextStep" > 下 一 步 < / button >
< / footer >
< / section >
< / section >
< el -dialog v -model = " showDocumentPreview " : title = "stepThreeDocument.name || '产品需求文档预览'" width = "min(1040px, 94vw)" class = "prd-preview-dialog" append -to -body >
< el -dialog v -model = " showDocumentPreview " : title = "stepThreeDocument.name || '产品需求文档预览'" width = "min(1040px, 94vw)" class = "prd-preview-dialog" append -to -body >
@ -207,7 +172,7 @@
import { computed , getCurrentInstance , onMounted , ref } from "vue" ;
import { computed , getCurrentInstance , onMounted , ref } from "vue" ;
import { ArrowRight , Close , Delete , Document , Download , InfoFilled , RefreshLeft , UploadFilled , View } from "@element-plus/icons-vue" ;
import { ArrowRight , Close , Delete , Document , Download , InfoFilled , RefreshLeft , UploadFilled , View } from "@element-plus/icons-vue" ;
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue" ;
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue" ;
import Training MaterialButton from "@/views/components/TrainingMaterialButton .vue";
import Training TaskToolbar from "@/views/components/TrainingTaskToolbar .vue";
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue" ;
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue" ;
import { checkRequirementsDocumentStepOne , getStudentTrainingAnswer , previewRequirementsDocumentFile , saveStudentTrainingAnswer , uploadStudentTrainingFile } from "@/api/studentTrainingAnswer" ;
import { checkRequirementsDocumentStepOne , getStudentTrainingAnswer , previewRequirementsDocumentFile , saveStudentTrainingAnswer , uploadStudentTrainingFile } from "@/api/studentTrainingAnswer" ;
import { getTrainingTaskByKey } from "@/api/trainingTask" ;
import { getTrainingTaskByKey } from "@/api/trainingTask" ;
@ -518,21 +483,36 @@ function switchStep(step) {
proxy ? . $modal ? . msgInfo ( "请先完成当前步骤后再进入后续实训。" ) ;
proxy ? . $modal ? . msgInfo ( "请先完成当前步骤后再进入后续实训。" ) ;
}
}
function goNextStep ( ) { switchStep ( 2 ) ; }
function goNextStep ( ) { switchStep ( 2 ) ; }
function previousStep ( ) { if ( currentStep . value > 1 ) currentStep . value -= 1 ; }
async function saveCurrentProgress ( ) {
if ( currentStep . value === 1 ) return saveCurrentMatching ( ) ;
if ( currentStep . value === 2 ) return saveStepTwo ( ) ;
return saveStepThree ( ) ;
}
async function nextStep ( ) {
if ( currentStep . value === 1 ) {
await checkAndSave ( ) ;
if ( stepOnePassed . value ) currentStep . value = 2 ;
return ;
}
if ( currentStep . value === 2 ) return goToStepThree ( ) ;
}
function exportOutcome ( ) { if ( currentStep . value === 2 ) { exportStepTwoTable ( ) ; } else if ( currentStep . value === 3 && isDocumentReady . value ) { showDocumentPreview . value = true ; } else { proxy ? . $modal ? . msgInfo ( "请进入第 2 步导出 PRD 详细信息表。" ) ; } }
function exportOutcome ( ) { if ( currentStep . value === 2 ) { exportStepTwoTable ( ) ; } else if ( currentStep . value === 3 && isDocumentReady . value ) { showDocumentPreview . value = true ; } else { proxy ? . $modal ? . msgInfo ( "请进入第 2 步导出 PRD 详细信息表。" ) ; } }
< / script >
< / script >
< style scoped >
< style scoped >
. requirements - doc - page { min - height : 100 vh ; color : # dcebf8 ; background : radial - gradient ( circle at 15 % - 10 % , rgba ( 23 , 134 , 205 , .22 ) , transparent 36 % ) , # 071521 ; }
. requirements - doc - page { min - height : 100 vh ; color : # dcebf8 ; background : radial - gradient ( circle at 15 % - 10 % , rgba ( 23 , 134 , 205 , .22 ) , transparent 36 % ) , # 071521 ; }
. training - core { width : min ( 1480 px , calc ( 100 % - 48 px ) ) ; margin : 0 auto ; padding : 30 px 0 60 px ; }
/* 该页处于带 AI 侧栏的双栏工作区,不能再用居中最大宽度,否则两侧会出现大面积空白。 */
. training - core { width : 100 % ; max - width : none ; min - height : 0 ; margin : 0 ; padding : 0 ; }
. task - header { display : flex ; align - items : center ; gap : 14 px ; margin - bottom : 18 px ; } . task - badge , . step - chip { display : inline - flex ; align - items : center ; gap : 7 px ; padding : 7 px 12 px ; border : 1 px solid rgba ( 68 , 203 , 255 , .42 ) ; border - radius : 999 px ; color : # 8 ee7ff ; background : rgba ( 6 , 86 , 129 , .28 ) ; font - size : 13 px ; } . task - title { margin : 0 ; color : # f1f8ff ; font - size : 26 px ; letter - spacing : .02 em ; }
. task - header { display : flex ; align - items : center ; gap : 14 px ; margin - bottom : 18 px ; } . task - badge , . step - chip { display : inline - flex ; align - items : center ; gap : 7 px ; padding : 7 px 12 px ; border : 1 px solid rgba ( 68 , 203 , 255 , .42 ) ; border - radius : 999 px ; color : # 8 ee7ff ; background : rgba ( 6 , 86 , 129 , .28 ) ; font - size : 13 px ; } . task - title { margin : 0 ; color : # f1f8ff ; font - size : 26 px ; letter - spacing : .02 em ; }
. task - card { padding : 26 px ; border : 1 px solid rgba ( 66 , 181 , 237 , .42 ) ; border - radius : 24 px ; background : rgba ( 4 , 24 , 39 , .78 ) ; box - shadow : 0 18 px 42 px rgba ( 0 , 0 , 0 , .2 ) ; } . workbench - head , . step - title - row , . purpose - bank _ _head , . task - actions { display : flex ; align - items : center ; justify - content : space - between ; gap : 16 px ; } . workbench - head h2 , . step - title - row h3 , . purpose - bank h4 { margin : 4 px 0 0 ; color : # f2f9ff ; } . section - eyebrow { margin : 0 ; color : # 55 d8ff ; font - size : 12 px ; font - weight : 700 ; letter - spacing : .09 em ; text - transform : uppercase ; }
. task - card { padding : 26 px ; border : 1 px solid rgba ( 66 , 181 , 237 , .42 ) ; border - radius : 24 px ; background : rgba ( 4 , 24 , 39 , .78 ) ; box - shadow : 0 18 px 42 px rgba ( 0 , 0 , 0 , .2 ) ; } . workbench - head , . step - title - row , . purpose - bank _ _head , . task - actions { display : flex ; align - items : center ; justify - content : space - between ; gap : 16 px ; } . workbench - head { padding - bottom : 18 px ; border - bottom : 1 px solid rgba ( 0 , 180 , 255 , .2 ) ; } . workbench - head h2 , . step - title - row h3 , . purpose - bank h4 { margin : 4 px 0 0 ; color : # f2f9ff ; } . workbench - head h2 { font - size : 24 px ; } . requirements - doc - toolbar { align - self : center ; justify - content : flex - end ; max - width : 100 % ; } . section - eyebrow { margin : 0 ; color : # 55 d8ff ; font - size : 12 px ; font - weight : 700 ; letter - spacing : .09 em ; text - transform : uppercase ; }
. workbench - actions , . task - actions { display : flex ; flex - wrap : wrap ; } . outline - action , . btn - nav { display : inline - flex ; align - items : center ; justify - content : center ; gap : 7 px ; min - height : 38 px ; padding : 0 15 px ; border : 1 px solid rgba ( 98 , 208 , 255 , .48 ) ; border - radius : 9 px ; color : # dff6ff ; background : rgba ( 10 , 87 , 126 , .35 ) ; cursor : pointer ; transition : .2 s ease ; } . outline - action : hover , . btn - nav : hover : not ( : disabled ) { border - color : # 56 dcff ; background : rgba ( 18 , 137 , 190 , .48 ) ; transform : translateY ( - 1 px ) ; } . btn - submit { border - color : # 26 c9ed ; color : # fff ; background : linear - gradient ( 135 deg , # 087 baa , # 18 b7df ) ; } . btn - primary { border - color : # 8 a72ff ; background : linear - gradient ( 135 deg , # 5 a4fc9 , # 8 c6ef1 ) ; } . btn - nav : disabled { cursor : not - allowed ; opacity : .48 ; }
. workbench - actions , . task - actions { display : flex ; flex - wrap : wrap ; } . outline - action , . btn - nav { display : inline - flex ; align - items : center ; justify - content : center ; gap : 7 px ; min - height : 38 px ; padding : 0 15 px ; border : 1 px solid rgba ( 98 , 208 , 255 , .48 ) ; border - radius : 9 px ; color : # dff6ff ; background : rgba ( 10 , 87 , 126 , .35 ) ; cursor : pointer ; transition : .2 s ease ; } . outline - action : hover , . btn - nav : hover : not ( : disabled ) { border - color : # 56 dcff ; background : rgba ( 18 , 137 , 190 , .48 ) ; transform : translateY ( - 1 px ) ; } . btn - submit { border - color : # 26 c9ed ; color : # fff ; background : linear - gradient ( 135 deg , # 087 baa , # 18 b7df ) ; } . btn - primary { border - color : # 8 a72ff ; background : linear - gradient ( 135 deg , # 5 a4fc9 , # 8 c6ef1 ) ; } . btn - nav : disabled { cursor : not - allowed ; opacity : .48 ; }
. step - indicator { display : flex ; align - items : stretch ; margin : 26 px 0 ; padding : 10 px ; overflow - x : auto ; border : 1 px solid rgba ( 58 , 170 , 220 , .35 ) ; border - radius : 18 px ; background : rgba ( 0 , 15 , 28 , .45 ) ; } . step - tab { display : flex ; min - width : 185 px ; flex : 1 ; align - items : center ; gap : 10 px ; padding : 10 px 12 px ; border : 0 ; border - radius : 12 px ; color : # 8 baabd ; background : transparent ; text - align : left ; cursor : pointer ; } . step - tab . active { color : # fff ; background : linear - gradient ( 90 deg , # 087 eb3 , # 12 a7d5 ) ; box - shadow : inset 0 0 0 1 px rgba ( 157 , 239 , 255 , .55 ) ; } . step - tab . complete . step - marker { border - color : # 53 f1d5 ; color : # 53 f1d5 ; } . step - marker { display : inline - grid ; width : 33 px ; height : 33 px ; flex : 0 0 33 px ; place - items : center ; border : 1 px solid # 4 c91b5 ; border - radius : 50 % ; font - weight : 700 ; } . step - copy { display : grid ; gap : 3 px ; } . step - copy small { font - size : 11 px ; } . step - connector { width : 22 px ; min - width : 22 px ; align - self : center ; height : 1 px ; background : # 287596 ; }
. step - indicator { display : flex ; align - items : stretch ; margin : 26 px 0 ; padding : 10 px ; overflow - x : auto ; border : 1 px solid rgba ( 58 , 170 , 220 , .35 ) ; border - radius : 18 px ; background : rgba ( 0 , 15 , 28 , .45 ) ; } . step - tab { display : flex ; min - width : 185 px ; flex : 1 ; align - items : center ; gap : 10 px ; padding : 10 px 12 px ; border : 0 ; border - radius : 12 px ; color : # 8 baabd ; background : transparent ; text - align : left ; cursor : pointer ; } . step - tab . active { color : # fff ; background : linear - gradient ( 90 deg , # 087 eb3 , # 12 a7d5 ) ; box - shadow : inset 0 0 0 1 px rgba ( 157 , 239 , 255 , .55 ) ; } . step - tab . complete . step - marker { border - color : # 53 f1d5 ; color : # 53 f1d5 ; } . step - marker { display : inline - grid ; width : 33 px ; height : 33 px ; flex : 0 0 33 px ; place - items : center ; border : 1 px solid # 4 c91b5 ; border - radius : 50 % ; font - weight : 700 ; } . step - copy { display : grid ; gap : 3 px ; } . step - copy small { font - size : 11 px ; } . step - connector { width : 22 px ; min - width : 22 px ; align - self : center ; height : 1 px ; background : # 287596 ; }
. step - card { padding : 25 px ; border : 1 px solid rgba ( 50 , 162 , 208 , .42 ) ; border - radius : 18 px ; background : rgba ( 2 , 18 , 30 , .58 ) ; } . step - desc { margin : 18 px 0 ; color : # c0d2df ; line - height : 1.8 ; } . matching - tip , . prd - note { display : flex ; align - items : flex - start ; gap : 8 px ; margin - bottom : 20 px ; padding : 10 px 13 px ; border - left : 3 px solid # 2 ed4f0 ; border - radius : 5 px ; color : # a9ddeb ; background : rgba ( 28 , 122 , 157 , .15 ) ; font - size : 14 px ; line - height : 1.65 ; }
. step - card { padding : 25 px ; border : 1 px solid rgba ( 50 , 162 , 208 , .42 ) ; border - radius : 18 px ; background : rgba ( 2 , 18 , 30 , .58 ) ; } . step - desc { margin : 18 px 0 ; color : # c0d2df ; line - height : 1.8 ; } . matching - tip , . prd - note { display : flex ; align - items : flex - start ; gap : 8 px ; margin - bottom : 20 px ; padding : 10 px 13 px ; border - left : 3 px solid # 2 ed4f0 ; border - radius : 5 px ; color : # a9ddeb ; background : rgba ( 28 , 122 , 157 , .15 ) ; font - size : 14 px ; line - height : 1.65 ; }
. matching - workspace { display : grid ; grid - template - columns : minmax ( 0 , 1.22 fr ) minmax ( 350 px , .78 fr ) ; gap : 24 px ; align - items : start ; } . module - list { display : grid ; gap : 10 px ; } . module - row { display : grid ; grid - template - columns : minmax ( 185 px , .31 fr ) minmax ( 0 , .69 fr ) ; min - height : 84 px ; overflow : hidden ; border : 1 px solid rgba ( 124 , 166 , 189 , .45 ) ; border - radius : 10 px ; background : rgba ( 11 , 39 , 56 , .48 ) ; transition : .18 s ease ; cursor : pointer ; } . module - row -- over { border - color : # 48 e3ff ; box - shadow : 0 0 0 3 px rgba ( 55 , 215 , 248 , .16 ) ; } . module - row -- filled { border - color : rgba ( 74 , 220 , 182 , .56 ) ; } . module - label { display : flex ; align - items : center ; gap : 12 px ; padding : 16 px ; border - right : 1 px solid rgba ( 124 , 166 , 189 , .35 ) ; color : # eef9ff ; background : rgba ( 13 , 81 , 113 , .28 ) ; } . module - label span { display : grid ; width : 27 px ; height : 27 px ; place - items : center ; border - radius : 50 % ; color : # 7 ee6ff ; background : rgba ( 11 , 172 , 214 , .16 ) ; font - size : 12 px ; } . module - drop - zone { display : flex ; align - items : center ; padding : 10 px 12 px ; } . drop - placeholder { color : # 7696 a8 ; font - size : 14 px ; }
. matching - workspace { display : grid ; grid - template - columns : minmax ( 0 , 1.22 fr ) minmax ( 350 px , .78 fr ) ; gap : 24 px ; align - items : start ; } . module - list { display : grid ; gap : 10 px ; } . module - row { display : grid ; grid - template - columns : minmax ( 185 px , .31 fr ) minmax ( 0 , .69 fr ) ; min - height : 84 px ; overflow : hidden ; border : 1 px solid rgba ( 124 , 166 , 189 , .45 ) ; border - radius : 10 px ; background : rgba ( 11 , 39 , 56 , .48 ) ; transition : .18 s ease ; cursor : pointer ; } . module - row -- over { border - color : # 48 e3ff ; box - shadow : 0 0 0 3 px rgba ( 55 , 215 , 248 , .16 ) ; } . module - row -- filled { border - color : rgba ( 74 , 220 , 182 , .56 ) ; } . module - label { display : flex ; align - items : center ; gap : 12 px ; padding : 16 px ; border - right : 1 px solid rgba ( 124 , 166 , 189 , .35 ) ; color : # eef9ff ; background : rgba ( 13 , 81 , 113 , .28 ) ; } . module - label span { display : grid ; width : 27 px ; height : 27 px ; place - items : center ; border - radius : 50 % ; color : # 7 ee6ff ; background : rgba ( 11 , 172 , 214 , .16 ) ; font - size : 12 px ; } . module - drop - zone { display : flex ; align - items : center ; padding : 10 px 12 px ; } . drop - placeholder { color : # 7696 a8 ; font - size : 14 px ; }
. purpose - bank { position : sticky ; top : 22 px ; padding : 18 px ; border : 1 px solid rgba ( 66 , 178 , 226 , .45 ) ; border - radius : 14 px ; background : linear - gradient ( 180 deg , rgba ( 10 , 71 , 100 , .38 ) , rgba ( 7 , 29 , 45 , .72 ) ) ; transition : .18 s ease ; } . purpose - bank -- over { border - color : # ffba67 ; box - shadow : 0 0 0 3 px rgba ( 255 , 186 , 103 , .16 ) ; } . purpose - bank _ _head strong { display : grid ; width : 34 px ; height : 34 px ; place - items : center ; border : 1 px solid rgba ( 97 , 222 , 255 , .58 ) ; border - radius : 50 % ; color : # 8 eeaff ; } . purpose - bank > p { margin : 12 px 0 15 px ; color : # 9 cb8c7 ; font - size : 13 px ; line - height : 1.65 ; } . purpose - card - list { display : grid ; gap : 9 px ; max - height : 570 px ; overflow : auto ; padding - right : 3 px ; } . purpose - card { display : flex ; align - items : center ; width : 100 % ; gap : 8 px ; padding : 11 px 12 px ; border : 1 px solid rgba ( 111 , 158 , 179 , .5 ) ; border - radius : 8 px ; color : # e4f4fb ; background : rgba ( 7 , 31 , 47 , .72 ) ; text - align : left ; line - height : 1.55 ; cursor : grab ; transition : .18 s ease ; } . purpose - card : hover , . purpose - card . selected { border - color : # 53 ddfb ; background : rgba ( 14 , 116 , 153 , .43 ) ; } . purpose - card . dragging { opacity : .5 ; } . purpose - card -- assigned { cursor : grab ; } . purpose - card -- assigned span { flex : 1 ; } . purpose - card -- assigned button { display : inline - grid ; width : 26 px ; height : 26 px ; flex : 0 0 26 px ; place - items : center ; border : 0 ; border - radius : 50 % ; color : # b9ebfa ; background : rgba ( 104 , 196 , 224 , .17 ) ; cursor : pointer ; } . purpose - card -- assigned button : hover { color : # fff ; background : # bd5068 ; } . drag - grip { color : # 5 fd5ed ; letter - spacing : - 3 px ; } . purpose - bank _ _empty { padding : 22 px 8 px ; color : # 82 b3c8 ; text - align : center ; } . result - message { margin : 20 px 0 0 ; padding : 11 px 14 px ; border : 1 px solid rgba ( 255 , 168 , 112 , .52 ) ; border - radius : 8 px ; color : # ffd5ad ; background : rgba ( 157 , 77 , 35 , .14 ) ; } . result - message . success { border - color : rgba ( 84 , 230 , 187 , .56 ) ; color : # a6f4d8 ; background : rgba ( 16 , 134 , 99 , .16 ) ; } . task - actions { justify - content : flex - end ; margin - top : 21 px ; }
. purpose - bank { position : sticky ; top : 22 px ; padding : 18 px ; border : 1 px solid rgba ( 66 , 178 , 226 , .45 ) ; border - radius : 14 px ; background : linear - gradient ( 180 deg , rgba ( 10 , 71 , 100 , .38 ) , rgba ( 7 , 29 , 45 , .72 ) ) ; transition : .18 s ease ; } . purpose - bank -- over { border - color : # ffba67 ; box - shadow : 0 0 0 3 px rgba ( 255 , 186 , 103 , .16 ) ; } . purpose - bank _ _head strong { display : grid ; width : 34 px ; height : 34 px ; place - items : center ; border : 1 px solid rgba ( 97 , 222 , 255 , .58 ) ; border - radius : 50 % ; color : # 8 eeaff ; } . purpose - bank > p { margin : 12 px 0 15 px ; color : # 9 cb8c7 ; font - size : 13 px ; line - height : 1.65 ; } . purpose - card - list { display : grid ; gap : 9 px ; max - height : 570 px ; overflow : auto ; padding - right : 3 px ; } . purpose - card { display : flex ; align - items : center ; width : 100 % ; gap : 8 px ; padding : 11 px 12 px ; border : 1 px solid rgba ( 111 , 158 , 179 , .5 ) ; border - radius : 8 px ; color : # e4f4fb ; background : rgba ( 7 , 31 , 47 , .72 ) ; text - align : left ; line - height : 1.55 ; cursor : grab ; transition : .18 s ease ; } . purpose - card : hover , . purpose - card . selected { border - color : # 53 ddfb ; background : rgba ( 14 , 116 , 153 , .43 ) ; } . purpose - card . dragging { opacity : .5 ; } . purpose - card -- assigned { cursor : grab ; } . purpose - card -- assigned span { flex : 1 ; } . purpose - card -- assigned button { display : inline - grid ; width : 26 px ; height : 26 px ; flex : 0 0 26 px ; place - items : center ; border : 0 ; border - radius : 50 % ; color : # b9ebfa ; background : rgba ( 104 , 196 , 224 , .17 ) ; cursor : pointer ; } . purpose - card -- assigned button : hover { color : # fff ; background : # bd5068 ; } . drag - grip { color : # 5 fd5ed ; letter - spacing : - 3 px ; } . purpose - bank _ _empty { padding : 22 px 8 px ; color : # 82 b3c8 ; text - align : center ; } . result - message { margin : 20 px 0 0 ; padding : 11 px 14 px ; border : 1 px solid rgba ( 255 , 168 , 112 , .52 ) ; border - radius : 8 px ; color : # ffd5ad ; background : rgba ( 157 , 77 , 35 , .14 ) ; } . result - message . success { border - color : rgba ( 84 , 230 , 187 , .56 ) ; color : # a6f4d8 ; background : rgba ( 16 , 134 , 99 , .16 ) ; } . task - actions { justify - content : flex - end ; margin - top : 21 px ; } . step - navigation { display : flex ; justify - content : center ; gap : 12 px ; margin - top : 24 px ; }
. prd - detail - card { overflow : hidden ; } . prd - table - wrap { overflow : auto ; border : 1 px solid rgba ( 102 , 184 , 223 , .5 ) ; border - radius : 12 px ; } . prd - detail - table { width : 100 % ; min - width : 1000 px ; border - collapse : separate ; border - spacing : 0 ; table - layout : fixed ; } . prd - detail - table th { padding : 13 px ; color : # effbff ; background : linear - gradient ( 90 deg , # 087 da9 , # 0 b9bca ) ; font - weight : 700 ; } . prd - detail - table td { padding : 12 px ; border - top : 1 px solid rgba ( 115 , 165 , 188 , .38 ) ; border - right : 1 px solid rgba ( 115 , 165 , 188 , .38 ) ; vertical - align : top ; background : rgba ( 9 , 38 , 57 , .44 ) ; } . prd - detail - table th : not ( : last - child ) { border - right : 1 px solid rgba ( 212 , 246 , 255 , .25 ) ; } . prd - detail - table td : last - child { border - right : 0 ; } . prd - detail - table th : nth - child ( 1 ) , . module - number { width : 72 px ; text - align : center ; } . prd - detail - table th : nth - child ( 2 ) , . module - name { width : 155 px ; } . prd - detail - table th : nth - child ( 3 ) , . submodule - name { width : 245 px ; } . module - number , . module - name , . submodule - name { color : # dff6ff ; vertical - align : middle ! important ; } . module - name { background : rgba ( 10 , 90 , 122 , .28 ) ! important ; font - weight : 700 ; } . submodule - name { background : rgba ( 20 , 69 , 92 , .28 ) ! important ; } . detail - editor - cell { min - width : 480 px ; } . example - bar { display : flex ; align - items : flex - start ; justify - content : space - between ; gap : 12 px ; margin - bottom : 9 px ; color : # 7 fa6ba ; font - size : 13 px ; line - height : 1.6 ; } . example - bar button { flex : 0 0 auto ; padding : 4 px 8 px ; border : 1 px solid rgba ( 96 , 201 , 237 , .5 ) ; border - radius : 6 px ; color : # 9 deaff ; background : rgba ( 5 , 86 , 124 , .24 ) ; cursor : pointer ; } . example - bar button : hover { color : # fff ; background : rgba ( 12 , 139 , 182 , .6 ) ; } . detail - editor - cell textarea { display : block ; width : 100 % ; min - height : 92 px ; resize : vertical ; box - sizing : border - box ; padding : 10 px ; border : 1 px solid rgba ( 108 , 182 , 215 , .36 ) ; border - radius : 8 px ; outline : none ; color : # eaf8ff ; background : rgba ( 1 , 18 , 29 , .62 ) ; font : inherit ; line - height : 1.65 ; } . detail - editor - cell textarea : focus { border - color : # 3 ddff9 ; box - shadow : 0 0 0 3 px rgba ( 55 , 215 , 248 , .12 ) ; } . detail - editor - cell textarea : : placeholder { color : # 66899 c ; } . upcoming - card { text - align : center ; } . upcoming - card h3 { margin : 8 px 0 ; } . upcoming - card p : not ( . section - eyebrow ) { color : # a6c2d2 ; }
. prd - detail - card { overflow : hidden ; } . prd - table - wrap { overflow : auto ; border : 1 px solid rgba ( 102 , 184 , 223 , .5 ) ; border - radius : 12 px ; } . prd - detail - table { width : 100 % ; min - width : 1000 px ; border - collapse : separate ; border - spacing : 0 ; table - layout : fixed ; } . prd - detail - table th { padding : 13 px ; color : # effbff ; background : linear - gradient ( 90 deg , # 087 da9 , # 0 b9bca ) ; font - weight : 700 ; } . prd - detail - table td { padding : 12 px ; border - top : 1 px solid rgba ( 115 , 165 , 188 , .38 ) ; border - right : 1 px solid rgba ( 115 , 165 , 188 , .38 ) ; vertical - align : top ; background : rgba ( 9 , 38 , 57 , .44 ) ; } . prd - detail - table th : not ( : last - child ) { border - right : 1 px solid rgba ( 212 , 246 , 255 , .25 ) ; } . prd - detail - table td : last - child { border - right : 0 ; } . prd - detail - table th : nth - child ( 1 ) , . module - number { width : 72 px ; text - align : center ; } . prd - detail - table th : nth - child ( 2 ) , . module - name { width : 155 px ; } . prd - detail - table th : nth - child ( 3 ) , . submodule - name { width : 245 px ; } . module - number , . module - name , . submodule - name { color : # dff6ff ; vertical - align : middle ! important ; } . module - name { background : rgba ( 10 , 90 , 122 , .28 ) ! important ; font - weight : 700 ; } . submodule - name { background : rgba ( 20 , 69 , 92 , .28 ) ! important ; } . detail - editor - cell { min - width : 480 px ; } . example - bar { display : flex ; align - items : flex - start ; justify - content : space - between ; gap : 12 px ; margin - bottom : 9 px ; color : # 7 fa6ba ; font - size : 13 px ; line - height : 1.6 ; } . example - bar button { flex : 0 0 auto ; padding : 4 px 8 px ; border : 1 px solid rgba ( 96 , 201 , 237 , .5 ) ; border - radius : 6 px ; color : # 9 deaff ; background : rgba ( 5 , 86 , 124 , .24 ) ; cursor : pointer ; } . example - bar button : hover { color : # fff ; background : rgba ( 12 , 139 , 182 , .6 ) ; } . detail - editor - cell textarea { display : block ; width : 100 % ; min - height : 92 px ; resize : vertical ; box - sizing : border - box ; padding : 10 px ; border : 1 px solid rgba ( 108 , 182 , 215 , .36 ) ; border - radius : 8 px ; outline : none ; color : # eaf8ff ; background : rgba ( 1 , 18 , 29 , .62 ) ; font : inherit ; line - height : 1.65 ; } . detail - editor - cell textarea : focus { border - color : # 3 ddff9 ; box - shadow : 0 0 0 3 px rgba ( 55 , 215 , 248 , .12 ) ; } . detail - editor - cell textarea : : placeholder { color : # 66899 c ; } . upcoming - card { text - align : center ; } . upcoming - card h3 { margin : 8 px 0 ; } . upcoming - card p : not ( . section - eyebrow ) { color : # a6c2d2 ; }
. file - input - hidden { display : none ; } . prd - upload - card { overflow : hidden ; } . prd - delivery - guide { display : grid ; grid - template - columns : minmax ( 0 , 1 fr ) auto ; gap : 22 px ; align - items : center ; padding : 20 px 22 px ; border : 1 px solid rgba ( 72 , 201 , 255 , .2 ) ; border - radius : 16 px ; background : linear - gradient ( 135 deg , rgba ( 20 , 86 , 127 , .28 ) , rgba ( 8 , 32 , 54 , .2 ) ) ; } . prd - delivery - guide h3 { margin : 0 0 10 px ; font - size : 18 px ; color : # eef9ff ; } . prd - delivery - guide ol { margin : 0 ; padding - left : 20 px ; color : # b8d3e2 ; line - height : 1.8 ; } . document - drop - zone { display : grid ; min - height : 270 px ; place - content : center ; justify - items : center ; gap : 14 px ; padding : 30 px ; margin - top : 20 px ; border : 1 px dashed rgba ( 81 , 207 , 255 , .5 ) ; border - radius : 18 px ; background : radial - gradient ( circle at 50 % 0 , rgba ( 41 , 180 , 235 , .16 ) , transparent 52 % ) , rgba ( 8 , 33 , 52 , .56 ) ; text - align : center ; transition : .2 s ease ; } . document - drop - zone : hover { border - color : # 4 ad4ff ; background - color : rgba ( 14 , 65 , 95 , .66 ) ; transform : translateY ( - 2 px ) ; } . document - upload - icon { font - size : 42 px ; color : # 42 d8ff ; } . document - drop - zone h3 { margin : 0 ; color : # eefaff ; font - size : 21 px ; } . document - drop - zone p { max - width : 560 px ; margin : 0 ; color : # a6c2d2 ; line - height : 1.7 ; } . uploaded - document - card { display : flex ; align - items : center ; gap : 16 px ; padding : 18 px 20 px ; margin - top : 20 px ; border : 1 px solid rgba ( 69 , 206 , 255 , .3 ) ; border - radius : 16 px ; background : rgba ( 9 , 45 , 70 , .72 ) ; } . document - file - icon { flex : 0 0 auto ; font - size : 32 px ; color : # 55 dcff ; } . uploaded - document - main { min - width : 0 ; flex : 1 ; } . uploaded - document - main h3 { overflow : hidden ; margin : 0 0 5 px ; color : # f0fbff ; font - size : 17 px ; text - overflow : ellipsis ; white - space : nowrap ; } . uploaded - document - main p { margin : 0 ; color : # 9 cc1d4 ; font - size : 13 px ; } . uploaded - document - actions { display : flex ; flex : 0 0 auto ; flex - wrap : wrap ; gap : 9 px ; } . btn - danger { border : 1 px solid rgba ( 255 , 115 , 127 , .45 ) ; color : # ffacb3 ; background : rgba ( 116 , 32 , 48 , .25 ) ; } . btn - danger : hover { border - color : # ff7884 ; background : rgba ( 150 , 38 , 55 , .38 ) ; color : # fff ; } . prd - pdf - preview { height : min ( 68 vh , 780 px ) ; overflow : hidden ; border : 1 px solid # d8e4ea ; border - radius : 10 px ; background : # fff ; } . prd - pdf - preview iframe { width : 100 % ; height : 100 % ; border : 0 ; } . prd - text - preview { max - height : min ( 68 vh , 780 px ) ; overflow : auto ; padding : 20 px ; border : 1 px solid # d8e4ea ; border - radius : 10 px ; color : # 263849 ; background : # f8fbfd ; font - family : "Microsoft YaHei" , sans - serif ; line - height : 1.8 ; white - space : pre - wrap ; word - break : break - word ; }
. file - input - hidden { display : none ; } . prd - upload - card { overflow : hidden ; } . prd - delivery - guide { display : grid ; grid - template - columns : minmax ( 0 , 1 fr ) auto ; gap : 22 px ; align - items : center ; padding : 20 px 22 px ; border : 1 px solid rgba ( 72 , 201 , 255 , .2 ) ; border - radius : 16 px ; background : linear - gradient ( 135 deg , rgba ( 20 , 86 , 127 , .28 ) , rgba ( 8 , 32 , 54 , .2 ) ) ; } . prd - delivery - guide h3 { margin : 0 0 10 px ; font - size : 18 px ; color : # eef9ff ; } . prd - delivery - guide ol { margin : 0 ; padding - left : 20 px ; color : # b8d3e2 ; line - height : 1.8 ; } . document - drop - zone { display : grid ; min - height : 270 px ; place - content : center ; justify - items : center ; gap : 14 px ; padding : 30 px ; margin - top : 20 px ; border : 1 px dashed rgba ( 81 , 207 , 255 , .5 ) ; border - radius : 18 px ; background : radial - gradient ( circle at 50 % 0 , rgba ( 41 , 180 , 235 , .16 ) , transparent 52 % ) , rgba ( 8 , 33 , 52 , .56 ) ; text - align : center ; transition : .2 s ease ; } . document - drop - zone : hover { border - color : # 4 ad4ff ; background - color : rgba ( 14 , 65 , 95 , .66 ) ; transform : translateY ( - 2 px ) ; } . document - upload - icon { font - size : 42 px ; color : # 42 d8ff ; } . document - drop - zone h3 { margin : 0 ; color : # eefaff ; font - size : 21 px ; } . document - drop - zone p { max - width : 560 px ; margin : 0 ; color : # a6c2d2 ; line - height : 1.7 ; } . uploaded - document - card { display : flex ; align - items : center ; gap : 16 px ; padding : 18 px 20 px ; margin - top : 20 px ; border : 1 px solid rgba ( 69 , 206 , 255 , .3 ) ; border - radius : 16 px ; background : rgba ( 9 , 45 , 70 , .72 ) ; } . document - file - icon { flex : 0 0 auto ; font - size : 32 px ; color : # 55 dcff ; } . uploaded - document - main { min - width : 0 ; flex : 1 ; } . uploaded - document - main h3 { overflow : hidden ; margin : 0 0 5 px ; color : # f0fbff ; font - size : 17 px ; text - overflow : ellipsis ; white - space : nowrap ; } . uploaded - document - main p { margin : 0 ; color : # 9 cc1d4 ; font - size : 13 px ; } . uploaded - document - actions { display : flex ; flex : 0 0 auto ; flex - wrap : wrap ; gap : 9 px ; } . btn - danger { border : 1 px solid rgba ( 255 , 115 , 127 , .45 ) ; color : # ffacb3 ; background : rgba ( 116 , 32 , 48 , .25 ) ; } . btn - danger : hover { border - color : # ff7884 ; background : rgba ( 150 , 38 , 55 , .38 ) ; color : # fff ; } . prd - pdf - preview { height : min ( 68 vh , 780 px ) ; overflow : hidden ; border : 1 px solid # d8e4ea ; border - radius : 10 px ; background : # fff ; } . prd - pdf - preview iframe { width : 100 % ; height : 100 % ; border : 0 ; } . prd - text - preview { max - height : min ( 68 vh , 780 px ) ; overflow : auto ; padding : 20 px ; border : 1 px solid # d8e4ea ; border - radius : 10 px ; color : # 263849 ; background : # f8fbfd ; font - family : "Microsoft YaHei" , sans - serif ; line - height : 1.8 ; white - space : pre - wrap ; word - break : break - word ; }
@ media ( max - width : 1020 px ) { . matching - workspace { grid - template - columns : 1 fr ; } . purpose - bank { position : static ; } . purpose - card - list { max - height : 360 px ; } . workbench - head { align - items : flex - start ; flex - direction : column ; } }
@ media ( max - width : 1020 px ) { . matching - workspace { grid - template - columns : 1 fr ; } . purpose - bank { position : static ; } . purpose - card - list { max - height : 360 px ; } . workbench - head { align - items : flex - start ; flex - direction : column ; } . requirements - doc - toolbar { width : 100 % ; justify - content : flex - start ; } }
@ media ( max - width : 680 px ) { . training - core { width : min ( 100 % - 24 px , 1480 px ) ; padding - top : 16px ; } . task - card , . step - card { padding : 15 px ; } . module - row { grid - template - columns : 1 fr ; } . module - label { border - right : 0 ; border - bottom : 1 px solid rgba ( 124 , 166 , 189 , .35 ) ; } . task - header { align - items : flex - start ; flex - direction : column ; } . task - title { font - size : 22 px ; } . step - indicator { margin : 18 px 0 ; } . step - tab { min - width : 165 px ; } . workbench - actions , . task - actions { width : 100 % ; } . outline - action , . btn - nav { flex : 1 ; } . purpose - bank { padding : 14 px ; } . example - bar { flex - direction : column ; } }
@ media ( max - width : 680 px ) { . training - core { width : 100 % ; padding - top : 0 ; } . task - card , . step - card { padding : 15 px ; } . module - row { grid - template - columns : 1 fr ; } . module - label { border - right : 0 ; border - bottom : 1 px solid rgba ( 124 , 166 , 189 , .35 ) ; } . task - header { align - items : flex - start ; flex - direction : column ; } . task - title { font - size : 22 px ; } . step - indicator { margin : 18 px 0 ; } . step - tab { min - width : 165 px ; } . workbench - actions , . task - actions { width : 100 % ; } . outline - action , . btn - nav { flex : 1 ; } . purpose - bank { padding : 14 px ; } . example - bar { flex - direction : column ; } }
< / style >
< / style >