@ -13,6 +13,13 @@
< div class = "swot-table-wrap" > < table class = "swot-table" > < thead > < tr > < th > 序号 < / th > < th > SWOT维度 < / th > < th > 关键信息要点 < / th > < / tr > < / thead > < tbody > < tr v-for ="(row, index) in swotRows" :key="row.key"><td>{{ index + 1 }}</td><td class="dimension-cell" > {{ row.label }} < / td > < td > < textarea v -model .trim = " form [ row.key ] " :placeholder ="row.placeholder" / > < / td > < / tr > < / tbody > < / table > < / div >
< div class = "task-actions" > < button type = "button" class = "btn btn-primary" :disabled ="saving" @click ="saveAndGoToStepTwo" > 保 存 并 进 入 第 2 步 < / button > < button type = "button" class = "btn" :disabled ="saving" @click ="resetTraining" > < el -icon > < RefreshLeft / > < / e l - i c o n > 清 空 填 写 < / b u t t o n > < / d i v >
< / template >
< template v -else -if = " currentStep = = = 2 " >
< div class = "step-title-row" > < div > < p > Step 02 < / p > < h2 > { { trainingSteps [ 1 ] } } < / h2 > < / div > < span > 资料补充 < / span > < / div >
< div class = "research-guide" > < p > 请自行收集资料 , 补充完善 SWOT 信息 , 每个维度至少补充 1 条 。 信息收集可参考以下方法 : < / p > < ol > < li > 自行通过互联网平台收集 ; 可在电商平台 ( 京东 / 天猫 ) 搜索 “ 智能健身镜 ” , 浏览竞品用户评价 , 从中发现竞品的优劣势和用户未满足的需求 。 < / li > < li > 使用 AI 大模型智能搜索功能进行信息收集 , 参考提示词见实训任务案例文档 。 < / li > < / ol > < p > 请把补充的 SWOT 信息资讯填入下表 : < / p > < / div >
< p v-if ="!stepOnePassed" class="step-warning" > 请 先 完 成 并 保 存 第 1 步 的 SWOT 信 息 归 类 , 再 填 写 本 步 骤 。 < / p >
< div class = "swot-table-wrap" > < table class = "swot-table" > < thead > < tr > < th > 序号 < / th > < th > SWOT维度 < / th > < th > 补充信息要点 < / th > < / tr > < / thead > < tbody > < tr v-for ="(row, index) in swotRows" :key="row.key"><td>{{ index + 1 }}</td><td class="dimension-cell" > {{ row.label }} < / td > < td > < textarea v -model .trim = " supplementForm [ row.key ] " :disabled ="!stepOnePassed" :placeholder ="row.placeholder" / > < / td > < / tr > < / tbody > < / table > < / div >
< div class = "task-actions" > < button type = "button" class = "btn btn-primary" : disabled = "saving || !stepOnePassed" @click ="saveAndGoToStepThree" > 保 存 并 进 入 第 3 步 < / button > < button type = "button" class = "btn" : disabled = "saving || !stepOnePassed" @click ="resetStepTwo" > < el -icon > < RefreshLeft / > < / e l - i c o n > 清 空 填 写 < / b u t t o n > < / d i v >
< / template >
< div v -else class = "step-placeholder" > < p > 第 { { currentStep } } 步内容待配置 < / p > < span > 第 1 步 SWOT 分类已保存 , 可从上方步骤栏返回查看 。 < / span > < / div >
< / section >
< / section >
@ -23,7 +30,7 @@
< script setup >
import { Download , RefreshLeft , TrendCharts } from "@element-plus/icons-vue" ;
import { checkCompetitiveEnvironmentAnalysisStepOne , getStudentTrainingAnswer, saveStudentTrainingAnswer } from "@/api/studentTrainingAnswer" ;
import { checkCompetitiveEnvironmentAnalysisStepOne , checkCompetitiveEnvironmentAnalysisStepTwo, getStudentTrainingAnswer, saveStudentTrainingAnswer } from "@/api/studentTrainingAnswer" ;
import { getTrainingTaskByKey } from "@/api/trainingTask" ;
import useUserStore from "@/store/modules/user" ;
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue" ;
@ -41,21 +48,23 @@ const swotRows = [
{ key : "threats" , label : "威胁( T) " , placeholder : "填写案例中的竞争、替代、成本、政策或需求风险" } ,
] ;
const defaultTask = { title : "竞争环境分析" , background : "通过 SWOT 模型归类案例资料中的竞争环境信息,为后续竞品比较与竞争策略判断提供依据。" , goals : [ "掌握 SWOT 四维度的分类方法" , "提炼案例中的竞争环境关键信息" , "形成竞争分析的基础材料" ] , requirement : "请阅读案例资料,将相关信息归类为优势、劣势、机会和威胁。" } ;
const taskConfig = ref ( null ) ; const currentStep = ref ( 1 ) ; const saving = ref ( false ) ; const draftReady = ref ( false ) ; const form = ref ( createForm ( ) ) ;
const taskTitle = computed ( ( ) => taskConfig . value ? . taskName || defaultTask . title ) ; const taskBackground = computed ( ( ) => taskConfig . value ? . background || defaultTask . background ) ; const taskGoals = computed ( ( ) => parseArray ( taskConfig . value ? . objectives , defaultTask . goals ) ) ; const taskRequirement = computed ( ( ) => taskConfig . value ? . requirements || defaultTask . requirement ) ; const trainingSteps = computed ( ( ) => parseArray ( taskConfig . value ? . steps , DEFAULT _STEPS ) ) ; const progressItems = computed ( ( ) => swotRows . map ( ( row ) => ( { text : ` ${ form. value [ row . key ] ? "已 填写 " : "待填写" } : ${ row . label } ` , status : form . value [ row . key ] ? "done" : "" } ) ) ) ;
const taskConfig = ref ( null ) ; const currentStep = ref ( 1 ) ; const saving = ref ( false ) ; const draftReady = ref ( false ) ; const stepOnePassed = re f( false ) ; const form = ref ( createForm ( ) ) ; const supplementF orm = ref ( createForm ( ) ) ;
const taskTitle = computed ( ( ) => taskConfig . value ? . taskName || defaultTask . title ) ; const taskBackground = computed ( ( ) => taskConfig . value ? . background || defaultTask . background ) ; const taskGoals = computed ( ( ) => parseArray ( taskConfig . value ? . objectives , defaultTask . goals ) ) ; const taskRequirement = computed ( ( ) => taskConfig . value ? . requirements || defaultTask . requirement ) ; const trainingSteps = computed ( ( ) => parseArray ( taskConfig . value ? . steps , DEFAULT _STEPS ) ) ; const progressItems = computed ( ( ) => swotRows . map ( ( row ) => ( { text : ` ${ supplementForm. value [ row . key ] ? "已补充" : form. value [ row . key ] ? "已 归类 " : "待填写" } : ${ row . label } ` , status : supplementForm . value [ row . key ] || form . value [ row . key ] ? "done" : "" } ) ) ) ;
onMounted ( async ( ) => { await loadTaskConfig ( ) ; loadDraft ( ) ; await loadSavedAnswer ( ) ; draftReady . value = true ; } ) ; watch ( ( ) => JSON . stringify ( buildDraft ( ) ) , persistDraft ) ;
function createForm ( ) { return { strengths : "" , weaknesses : "" , opportunities : "" , threats : "" } ; }
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 . map ( ( item ) => String ( item ? . name ? ? item ) . trim ( ) ) . filter ( Boolean ) : fallback ; } catch ( error ) { const list = String ( value ) . split ( /[, ,|]/ ) . map ( ( item ) => item . trim ( ) ) . filter ( Boolean ) ; return list . length ? list : fallback ; } }
async function loadTaskConfig ( ) { try { taskConfig . value = ( await getTrainingTaskByKey ( TASK _KEY ) ) ? . data || null ; } catch ( error ) { taskConfig . value = null ; } }
async function loadSavedAnswer ( ) { try { const answer = ( await getStudentTrainingAnswer ( TASK _KEY ) ) ? . data ; if ( answer ? . step1Answer ) { restoreOutcome ( answer . step1Answer ) ; clearDraft ( ) ; } if ( Number ( answer ? . currentStep ) > 0 ) currentStep . value = Number ( answer . currentStep ) ; } catch ( error ) { /* Keep local draft when unavailable. */ } }
function restoreOutcome ( value ) { try { const parsed = typeof value === "string" ? JSON . parse ( value ) : value ; form . value = { ... createForm ( ) , ... ( parsed ? . swot || parsed || { } ) } ; } catch ( error ) { form . value = createForm ( ) ; } }
function buildOutcome ( ) { return { title : taskTitle . value , swot : { ... form . value } } ; } function buildDraft ( ) { return { step1 : buildOutcome ( ) , currentStep : currentStep . value } ; } function getLocalDraftKey ( ) { const info = userStore . userInfo || { } ; return ` ${ TASK _KEY } :draft: ${ info . userId || info . user _id || info . username || info . userName || "anonymous" } ` ; } function persistDraft ( ) { if ( ! draftReady . value ) return ; try { localStorage . setItem ( getLocalDraftKey ( ) , JSON . stringify ( buildDraft ( ) ) ) ; } catch ( error ) { /* Optional browser draft. */ } } function loadDraft ( ) { try { const raw = localStorage . getItem ( getLocalDraftKey ( ) ) ; if ( raw ) { const draft = JSON . parse ( raw ) ; restoreOutcome ( draft ? . step1 || draft ) ; if ( Number ( draft ? . currentStep ) > 0 ) currentStep . value = Number ( draft . currentStep ) ; } } catch ( error ) { clearDraft ( ) ; } } function clearDraft ( ) { try { localStorage . removeItem ( getLocalDraftKey ( ) ) ; } catch ( error ) { /* Ignore storage failures. */ } }
function switchStep ( step ) { currentStep . value = step ; }
async function saveAndGoToStepTwo ( ) { if ( saving . value ) return ; saving . value = true ; try { await checkCompetitiveEnvironmentAnalysisStepOne ( form . value ) ; await saveStudentTrainingAnswer ( TASK _KEY , { step1Answer : JSON . stringify ( buildOutcome ( ) ) , currentStep : 2 , submitted : false , saveAction : "SAVE" } ) ; clearDraft ( ) ; currentStep . value = 2 ; proxy ? . $modal ? . msgSuccess ( "已保存,已进入第 2 步" ) ; } catch ( error ) { proxy ? . $modal ? . msgError ? . ( error ? . message || "请完整填写 SWOT 四类信息" ) ; } finally { saving . value = false ; } }
async function resetTraining ( ) { form . value = createForm ( ) ; currentStep . value = 1 ; clearDraft ( ) ; try { saving . value = true ; await saveStudentTrainingAnswer ( TASK _KEY , { step1Answer : JSON . stringify ( buildOutcome ( ) ) , currentStep : 1 , submitted : false , saveAction : "RESET" } ) ; } catch ( error ) { /* Local clearing still succeeds. */ } finally { saving . value = false ; } proxy ? . $modal ? . msgSuccess ( "已清空填写内容" ) ; }
async function loadSavedAnswer ( ) { try { const answer = ( await getStudentTrainingAnswer ( TASK _KEY ) ) ? . data ; if ( answer ? . step1Answer ) { restoreOutcome ( answer . step1Answer , form ) ; stepOnePassed . value = true ; clearDraft ( ) ; } if ( answer ? . step2Answer ) restoreOutcome ( answer . step2Answer , supplementForm , "supplements" ) ; if ( Number ( answer ? . currentStep ) > 0 ) currentStep . value = Number ( answer . currentStep ) ; } catch ( error ) { /* Keep local draft when unavailable. */ } }
function restoreOutcome ( value , target , field = "swot" ) { try { const parsed = typeof value === "string" ? JSON . parse ( value ) : value ; target . value = { ... createForm ( ) , ... ( parsed ? . [ field ] || parsed || { } ) } ; } catch ( error ) { target . value = createForm ( ) ; } }
function buildStepOneOutcome ( ) { return { title : taskTitle . value , swot : { ... form . value } } ; } function buildStepTwoOutcome ( ) { return { title : taskTitle . value , supplements : { ... supplementForm . value } } ; } function buildDraft ( ) { return { step1 : buildStepOneOutcome ( ) , step2 : buildStepTwoOutcome ( ) , currentStep : currentStep . value } ; } function getLocalDraftKey ( ) { const info = userStore . userInfo || { } ; return ` ${ TASK _KEY } :draft: ${ info . userId || info . user _id || info . username || info . userName || "anonymous" } ` ; } function persistDraft ( ) { if ( ! draftReady . value ) return ; try { localStorage . setItem ( getLocalDraftKey ( ) , JSON . stringify ( buildDraft ( ) ) ) ; } catch ( error ) { /* Optional browser draft. */ } } function loadDraft ( ) { try { const raw = localStorage . getItem ( getLocalDraftKey ( ) ) ; if ( raw ) { const draft = JSON . parse ( raw ) ; restoreOutcome ( draft ? . step1 || draft , form ) ; restoreOutcome ( draft ? . step2 , supplementForm , "supplements" ) ; if ( Number ( draft ? . currentStep ) > 0 ) currentStep . value = Number ( draft . currentStep ) ; } } catch ( error ) { clearDraft ( ) ; } } function clearDraft ( ) { try { localStorage . removeItem ( getLocalDraftKey ( ) ) ; } catch ( error ) { /* Ignore storage failures. */ } }
function switchStep ( step ) { if ( step === 2 && ! stepOnePassed . value ) { proxy ? . $modal ? . msgWarning ( "请先完成并保存第 1 步" ) ; return ; } currentStep . value = step ; }
async function saveAndGoToStepTwo ( ) { if ( saving . value ) return ; saving . value = true ; try { await checkCompetitiveEnvironmentAnalysisStepOne ( form . value ) ; await saveStudentTrainingAnswer ( TASK _KEY , { step1Answer : JSON . stringify ( buildStepOneOutcome ( ) ) , currentStep : 2 , submitted : false , saveAction : "SAVE" } ) ; stepOnePassed . value = true ; clearDraft ( ) ; currentStep . value = 2 ; proxy ? . $modal ? . msgSuccess ( "已保存,已进入第 2 步" ) ; } catch ( error ) { proxy ? . $modal ? . msgError ? . ( error ? . message || "请完整填写 SWOT 四类信息" ) ; } finally { saving . value = false ; } }
async function saveAndGoToStepThree ( ) { if ( saving . value || ! stepOnePassed . value ) return ; saving . value = true ; try { await checkCompetitiveEnvironmentAnalysisStepTwo ( supplementForm . value ) ; await saveStudentTrainingAnswer ( TASK _KEY , { step2Answer : JSON . stringify ( buildStepTwoOutcome ( ) ) , currentStep : 3 , submitted : false , saveAction : "SAVE" } ) ; clearDraft ( ) ; currentStep . value = 3 ; proxy ? . $modal ? . msgSuccess ( "已保存,已进入第 3 步" ) ; } catch ( error ) { proxy ? . $modal ? . msgError ? . ( error ? . message || "请为每个 SWOT 维度至少补充 1 条信息" ) ; } finally { saving . value = false ; } }
async function resetTraining ( ) { form . value = createForm ( ) ; supplementForm . value = createForm ( ) ; stepOnePassed . value = false ; currentStep . value = 1 ; clearDraft ( ) ; try { saving . value = true ; await saveStudentTrainingAnswer ( TASK _KEY , { step1Answer : JSON . stringify ( buildStepOneOutcome ( ) ) , currentStep : 1 , submitted : false , saveAction : "RESET" } ) ; } catch ( error ) { /* Local clearing still succeeds. */ } finally { saving . value = false ; } proxy ? . $modal ? . msgSuccess ( "已清空填写内容" ) ; }
function resetStepTwo ( ) { supplementForm . value = createForm ( ) ; proxy ? . $modal ? . msgSuccess ( "已清空第 2 步填写内容" ) ; }
function exportOutcome ( ) { const blob = new Blob ( [ JSON . stringify ( buildDraft ( ) , null , 2 ) ] , { type : "application/json;charset=utf-8" } ) ; const url = URL . createObjectURL ( blob ) ; const link = document . createElement ( "a" ) ; link . href = url ; link . download = "竞争环境分析-实训成果.json" ; document . body . appendChild ( link ) ; link . click ( ) ; document . body . removeChild ( link ) ; URL . revokeObjectURL ( url ) ; proxy ? . $modal ? . msgSuccess ( "导出成功" ) ; }
< / script >
< style lang = "scss" scoped >
. competitive - analysis - page { display : grid ; grid - template - columns : minmax ( 720 px , 1 fr ) 340 px ; gap : 24 px ; min - height : calc ( 100 vh - 106 px ) ; padding : 24 px ; color : # e8f7ff ; background : # 06111 d ; } . analysis - core { min - width : 0 ; border : 1 px solid rgba ( 0 , 180 , 255 , .25 ) ; background : rgba ( 8 , 18 , 28 , .6 ) ; box - shadow : 0 22 px 48 px rgba ( 0 , 0 , 0 , .22 ) ; } . task - header { padding : 22 px 28 px 4 px ; } . task - badge , . step - title - row p { color : # 65 dcff ; font - weight : 700 ; } . task - header h1 { margin : 10 px 0 0 ; color : # fff ; font - size : 28 px ; } . analysis - workbench { margin : 24 px ; padding : 22 px ; border : 1 px solid rgba ( 33 , 194 , 255 , .35 ) ; border - radius : 20 px ; background : rgba ( 1 , 24 , 39 , .72 ) ; } . workbench - head { display : flex ; justify - content : flex - end ; gap : 12 px ; } . outline - action , . btn { display : inline - flex ; align - items : center ; justify - content : center ; gap : 6 px ; border : 1 px solid # 2 cc9ff ; border - radius : 999 px ; padding : 10 px 18 px ; color : # dff8ff ; background : rgba ( 8 , 87 , 121 , .55 ) ; cursor : pointer ; } . step - indicator { display : flex ; align - items : center ; gap : 12 px ; margin : 28 px 0 ; padding : 12 px ; border : 1 px solid rgba ( 30 , 190 , 255 , .28 ) ; border - radius : 22 px ; } . step - tab { display : flex ; align - items : center ; flex : 1 ; gap : 10 px ; min - width : 0 ; padding : 10 px ; border : 0 ; border - radius : 16 px ; color : # 96 c6d8 ; background : transparent ; text - align : left ; cursor : pointer ; } . step - tab . active { color : # fff ; background : linear - gradient ( 110 deg , # 148 fc6 , # 0879 aa ) ; } . step - marker { display : grid ; place - items : center ; flex : 0 0 42 px ; width : 42 px ; height : 42 px ; border : 1 px solid # 4 ed7ff ; border - radius : 50 % ; font - weight : 800 ; } . step - copy { display : grid ; gap : 4 px ; min - width : 0 ; } . step - copy strong { overflow : hidden ; text - overflow : ellipsis ; white - space : nowrap ; } . step - copy small { color : # 5 ec9ed ; } . step - connector { flex : 0 0 25 px ; height : 2 px ; background : rgba ( 83 , 204 , 255 , .4 ) ; } . step - card { padding : 24 px ; border : 1 px solid rgba ( 31 , 185 , 249 , .32 ) ; border - radius : 18 px ; background : rgba ( 1 , 21 , 34 , .65 ) ; } . step - title - row { display : flex ; justify - content : space - between ; align - items : flex - start ; } . step - title - row p { margin : 0 ; } . step - title - row h2 { margin : 5 px 0 0 ; color : # fff ; font - size : 24 px ; } . step - title - row > span { border : 1 px solid # 38 caff ; border - radius : 999 px ; padding : 7 px 12 px ; color : # 9 aeaff ; } . step - desc { margin : 24 px 0 ; color : # c5e4ef ; font - size : 16 px ; line - height : 1.8 ; } . swot- table - wrap { overflow - x : auto ; } . swot - table { width : 100 % ; min - width : 720 px ; border - collapse : collapse ; } . swot - table th , . swot - table td { border : 1 px solid rgba ( 139 , 213 , 241 , .45 ) ; } . swot - table th { padding : 14 px ; color : # fff ; background : # 079 ed9 ; font - size : 16 px ; } . 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 ; } . swot - table textarea { box - sizing : border - box ; display : block ; width : 100 % ; min - height : 136 px ; resize : vertical ; border : 0 ; padding : 16 px ; color : # e9faff ; background : transparent ; font : inherit ; line - height : 1.7 ; } . swot - table textarea : focus { outline : 2 px solid rgba ( 57 , 207 , 255 , .4 ) ; outline - offset : - 2 px ; } . task - actions { display : flex ; justify - content : center ; gap : 12 px ; margin - top : 26 px ; } . btn - primary { border - color : # 36 d9ff ; background : linear - gradient ( 110 deg , # 0 eaae4 , # 0572 ac ) ; font - weight : 700 ; } . btn : disabled { cursor : not - allowed ; opacity : .6 ; } . step - placeholder { padding : 90 px 20 px ; text - align : center ; color : # a8cfdd ; } . step - placeholder p { color : # fff ; font - size : 20 px ; } @ media ( max - width : 1280 px ) { . competitive - analysis - page { grid - template - columns : 1 fr ; } . step - indicator { overflow - x : auto ; } . step - tab { min - width : 190 px ; } } @ media ( max - width : 720 px ) { . competitive - analysis - page { padding : 12 px ; } . analysis - workbench { margin : 12 px ; padding : 14 px ; } . task - header { padding : 18 px ; } . workbench - head { justify - content : flex - start ; flex - wrap : wrap ; } . step - title - row > span { display : none ; } }
. competitive - analysis - page { display : grid ; grid - template - columns : minmax ( 720 px , 1 fr ) 340 px ; gap : 24 px ; min - height : calc ( 100 vh - 106 px ) ; padding : 24 px ; color : # e8f7ff ; background : # 06111 d ; } . analysis - core { min - width : 0 ; border : 1 px solid rgba ( 0 , 180 , 255 , .25 ) ; background : rgba ( 8 , 18 , 28 , .6 ) ; box - shadow : 0 22 px 48 px rgba ( 0 , 0 , 0 , .22 ) ; } . task - header { padding : 22 px 28 px 4 px ; } . task - badge , . step - title - row p { color : # 65 dcff ; font - weight : 700 ; } . task - header h1 { margin : 10 px 0 0 ; color : # fff ; font - size : 28 px ; } . analysis - workbench { margin : 24 px ; padding : 22 px ; border : 1 px solid rgba ( 33 , 194 , 255 , .35 ) ; border - radius : 20 px ; background : rgba ( 1 , 24 , 39 , .72 ) ; } . workbench - head { display : flex ; justify - content : flex - end ; gap : 12 px ; } . outline - action , . btn { display : inline - flex ; align - items : center ; justify - content : center ; gap : 6 px ; border : 1 px solid # 2 cc9ff ; border - radius : 999 px ; padding : 10 px 18 px ; color : # dff8ff ; background : rgba ( 8 , 87 , 121 , .55 ) ; cursor : pointer ; } . step - indicator { display : flex ; align - items : center ; gap : 12 px ; margin : 28 px 0 ; padding : 12 px ; border : 1 px solid rgba ( 30 , 190 , 255 , .28 ) ; border - radius : 22 px ; } . step - tab { display : flex ; align - items : center ; flex : 1 ; gap : 10 px ; min - width : 0 ; padding : 10 px ; border : 0 ; border - radius : 16 px ; color : # 96 c6d8 ; background : transparent ; text - align : left ; cursor : pointer ; } . step - tab . active { color : # fff ; background : linear - gradient ( 110 deg , # 148 fc6 , # 0879 aa ) ; } . step - marker { display : grid ; place - items : center ; flex : 0 0 42 px ; width : 42 px ; height : 42 px ; border : 1 px solid # 4 ed7ff ; border - radius : 50 % ; font - weight : 800 ; } . step - copy { display : grid ; gap : 4 px ; min - width : 0 ; } . step - copy strong { overflow : hidden ; text - overflow : ellipsis ; white - space : nowrap ; } . step - copy small { color : # 5 ec9ed ; } . step - connector { flex : 0 0 25 px ; height : 2 px ; background : rgba ( 83 , 204 , 255 , .4 ) ; } . step - card { padding : 24 px ; border : 1 px solid rgba ( 31 , 185 , 249 , .32 ) ; border - radius : 18 px ; background : rgba ( 1 , 21 , 34 , .65 ) ; } . step - title - row { display : flex ; justify - content : space - between ; align - items : flex - start ; } . step - title - row p { margin : 0 ; } . step - title - row h2 { margin : 5 px 0 0 ; color : # fff ; font - size : 24 px ; } . step - title - row > span { border : 1 px solid # 38 caff ; border - radius : 999 px ; padding : 7 px 12 px ; color : # 9 aeaff ; } . step - desc { margin : 24 px 0 ; color : # c5e4ef ; font - size : 16 px ; line - height : 1.8 ; } . research- guide { margin : 22 px 0 18 px ; padding : 16 px 18 px ; border - left : 3 px solid # 35 cfff ; color : # c5e4ef ; background : rgba ( 13 , 95 , 129 , .16 ) ; line - height : 1.8 ; } . research - guide p { margin : 0 0 8 px ; } . research - guide ol { margin : 0 0 8 px ; padding - left : 24 px ; } . research - guide li + li { margin - top : 6 px ; } . step - warning { margin : 12 px 0 ; color : # ffd58e ; } . swot- table - wrap { overflow - x : auto ; } . swot - table { width : 100 % ; min - width : 720 px ; border - collapse : collapse ; } . swot - table th , . swot - table td { border : 1 px solid rgba ( 139 , 213 , 241 , .45 ) ; } . swot - table th { padding : 14 px ; color : # fff ; background : # 079 ed9 ; font - size : 16 px ; } . 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 ; } . swot - table textarea { box - sizing : border - box ; display : block ; width : 100 % ; min - height : 136 px ; resize : vertical ; border : 0 ; padding : 16 px ; color : # e9faff ; background : transparent ; font : inherit ; line - height : 1.7 ; } . swot - table textarea : focus { outline : 2 px solid rgba ( 57 , 207 , 255 , .4 ) ; outline - offset : - 2 px ; } . swot - table textarea : disabled { cursor : not - allowed ; color : # 8 aa8b5 ; background : rgba ( 255 , 255 , 255 , .03 ) ; } . task - actions { display : flex ; justify - content : center ; gap : 12 px ; margin - top : 26 px ; } . btn - primary { border - color : # 36 d9ff ; background : linear - gradient ( 110 deg , # 0 eaae4 , # 0572 ac ) ; font - weight : 700 ; } . btn : disabled { cursor : not - allowed ; opacity : .6 ; } . step - placeholder { padding : 90 px 20 px ; text - align : center ; color : # a8cfdd ; } . step - placeholder p { color : # fff ; font - size : 20 px ; } @ media ( max - width : 1280 px ) { . competitive - analysis - page { grid - template - columns : 1 fr ; } . step - indicator { overflow - x : auto ; } . step - tab { min - width : 190 px ; } } @ media ( max - width : 720 px ) { . competitive - analysis - page { padding : 12 px ; } . analysis - workbench { margin : 12 px ; padding : 14 px ; } . task - header { padding : 18 px ; } . workbench - head { justify - content : flex - start ; flex - wrap : wrap ; } . step - title - row > span { display : none ; } }
< / style >