| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679 |
- <template>
- <div class="home-page">
- <section class="home-section home-hero">
- <!-- 左侧文字 -->
- <div class="home-hero-copy">
- <div class="home-hero-badge">
- <span class="home-hero-badge-dot"></span>
- <span class="home-hero-badge-text">环境专业能力开放平台</span>
- </div>
- <div class="home-hero-title">
- <div class="home-hero-title-main">环评云助手 MCP</div>
- <div class="home-hero-title-sub">让 AI 直接调用环保专业能力</div>
- </div>
- <p class="home-hero-desc">
- 面向标准核查、报告编制、合规咨询、政策问答等场景,为 AI 工具提供专业、可信、可追溯的环境知识服务。
- </p>
- <div class="home-hero-actions">
- <button type="button" class="home-hero-btn home-hero-btn-primary" @click="router.push({ name: 'mcpServer' })">
- <icon-svg name="cut_in_Mcp" size="16px" />
- <span>立即接入 MCP</span>
- </button>
- <button type="button" class="home-hero-btn home-hero-btn-secondary" @click="router.push({ name: 'guide' })">
- <icon-svg name="connection_guide" size="16px" />
- <span>接入指南</span>
- </button>
- <button type="button" class="home-hero-btn home-hero-btn-secondary"
- @click="router.push({ name: 'mcpOnlineTest' })">
- <icon-svg name="effect_experience" size="16px" />
- <span>效果体验</span>
- </button>
- </div>
- </div>
- <!-- 右侧图片 -->
- <div class="home-hero-visual">
- <img src="@/assets/images/home_one_image.png" alt="" class="home-hero-image" />
- </div>
- </section>
- <div class="home-content-stack">
- <section class="home-section home-overview">
- <div class="home-overview-inner">
- <div class="home-overview-block">
- <div class="home-overview-heading">
- <div class="home-overview-title">覆盖环境业务核心知识数据</div>
- <div class="home-overview-subtitle">
- 多年专业数据沉淀,为 AI 提供法规检索、标准核查、政策解释和环境数据调用能力
- </div>
- </div>
- <div class="home-overview-cards home-overview-stats">
- <div class="home-overview-stat-card">
- <div class="home-overview-icon-box">
- <icon-svg name="laws_and_regulations" size="22px" />
- </div>
- <div class="home-overview-card-value">10万+</div>
- <div class="home-overview-card-label">环境法律法规</div>
- </div>
- <div class="home-overview-stat-card">
- <div class="home-overview-icon-box">
- <icon-svg name="report_library" size="22px" />
- </div>
- <div class="home-overview-card-value">50万+</div>
- <div class="home-overview-card-label">行业报告文库</div>
- </div>
- <div class="home-overview-stat-card">
- <div class="home-overview-icon-box">
- <icon-svg name="blocks_of_knowledge" size="22px" />
- </div>
- <div class="home-overview-card-value">500万+</div>
- <div class="home-overview-card-label">专业知识单元</div>
- </div>
- <div class="home-overview-stat-card">
- <div class="home-overview-icon-box">
- <icon-svg name="Mcp_serve" size="22px" />
- </div>
- <div class="home-overview-card-value">4+</div>
- <div class="home-overview-card-label">MCP 服务</div>
- </div>
- </div>
- </div>
- <div class="home-overview-block">
- <div class="home-overview-heading">
- <div class="home-overview-title">MCP 智能服务 — 让环保更智能</div>
- <div class="home-overview-subtitle">
- 基于 MCP 协议,为大模型接入专业环保知识、数据与业务工具,提供智能化环境服务能力
- </div>
- </div>
- <div class="home-overview-cards home-overview-services">
- <div class="home-overview-service-card">
- <div class="home-overview-service-icon">
- <icon-svg name="Intelligent_understanding" size="24px" />
- </div>
- <div class="home-overview-service-title">智能理解</div>
- <div class="home-overview-service-desc">
- 支持自然语言查询,智能识别用户意图,精准检索生态环境政策、法律法规、标准规范及专业知识。
- </div>
- </div>
- <div class="home-overview-service-card">
- <div class="home-overview-service-icon">
- <icon-svg name="seamless_integration" size="24px" />
- </div>
- <div class="home-overview-service-title">无缝集成</div>
- <div class="home-overview-service-desc">
- 支持与 Workbuddy、豆包、Codex 等主流大模型灵活集成,一键接入专业环境知识与数据服务能力。
- </div>
- </div>
- <div class="home-overview-service-card">
- <div class="home-overview-service-icon">
- <icon-svg name="intelligent_inference" size="24px" />
- </div>
- <div class="home-overview-service-title">智能推理</div>
- <div class="home-overview-service-desc">
- 基于上下文理解与知识检索,为环境业务提供法规标准解读、政策分析和信息辅助,提升业务决策效率。
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <section class="home-section home-scenes">
- <div class="home-scenes-upper">
- <div class="home-scenes-heading">
- <div class="home-scenes-title">热门服务速览</div>
- <div class="home-scenes-subtitle">
- 快速接入高价值环保数据与智能能力
- </div>
- </div>
- <div class="home-scenes-cards">
- <div
- v-for="item in hotServerList"
- :key="item.id"
- class="home-scenes-card"
- :style="item.cardBackground ? { background: item.cardBackground } : undefined"
- >
- <div class="home-scenes-card-head">
- <div class="home-scenes-card-icon-box" :style="parseCssStyle(item.iconStyle)">
- <img
- v-if="item.iconUrl"
- :src="item.iconUrl"
- :alt="item.name"
- class="home-scenes-card-icon-img"
- />
- </div>
- <div class="home-scenes-card-title">{{ item.name }}</div>
- </div>
- <div class="home-scenes-card-desc">{{ item.describe }}</div>
- <div class="home-scenes-card-tags">
- <span v-for="tool in item.toolList || []" :key="tool.id">{{ tool.name }}</span>
- </div>
- <div class="home-scenes-card-footer">
- <span class="home-scenes-card-stat">近30天请求 {{ formatHotRequestCount(item.requestCount30d) }}</span>
- <router-link
- class="home-scenes-card-link"
- :to="{ name: 'mcpServer', query: { id: item.id } }"
- >查看详情</router-link>
- </div>
- </div>
- </div>
- </div>
- <div class="home-scenes-lower">
- <div class="home-scenes-demo">
- <div class="home-scenes-demo-copy">
- <div class="home-scenes-demo-badge">真实调用案例</div>
- <div class="home-scenes-demo-title">问一句话,AI自动调用环评云助手</div>
- <div class="home-scenes-demo-desc">
- 点击不同业务问题,查看 MCP 如何把用户意图转成专业检索,并返回可核验的业务结果。
- </div>
- <div class="home-scenes-demo-questions">
- <div v-for="(question, index) in demoQuestions" :key="question" class="home-scenes-demo-question"
- :class="{ 'is-active': activeDemoQuestion === index }" @click="activeDemoQuestion = index">
- <div class="home-scenes-demo-question-label">
- <span class="home-scenes-demo-question-dot"></span>
- <span>测试指令</span>
- </div>
- <div class="home-scenes-demo-question-text">{{ question }}</div>
- </div>
- </div>
- </div>
- <div class="home-scenes-demo-preview">
- <img
- :src="demoCaseImages[activeDemoQuestion]"
- :alt="demoQuestions[activeDemoQuestion]"
- class="home-scenes-demo-preview-img"
- />
- </div>
- </div>
- </div>
- </section>
- <section class="home-section home-guide">
- <div class="home-guide-inner">
- <div class="home-guide-heading">
- <div class="home-guide-title">3 步接入,5 分钟上手</div>
- <div class="home-guide-subtitle">MCP 协议 / CLI 命令行一键接入,共用一套 Token</div>
- </div>
- <div class="home-guide-timeline">
- <div class="home-guide-timeline-item">
- <div class="home-guide-timeline-dot">1</div>
- <div class="home-guide-timeline-name">获取 Token</div>
- <div class="home-guide-timeline-desc">生成访问令牌</div>
- </div>
- <div class="home-guide-timeline-line home-guide-timeline-line-1"></div>
- <div class="home-guide-timeline-item">
- <div class="home-guide-timeline-dot">2</div>
- <div class="home-guide-timeline-name">选择 AI 工具</div>
- <div class="home-guide-timeline-desc">MCP 一键接入/CLI命令行接入</div>
- </div>
- <div class="home-guide-timeline-line home-guide-timeline-line-2"></div>
- <div class="home-guide-timeline-item">
- <div class="home-guide-timeline-dot">3</div>
- <div class="home-guide-timeline-name">验证接入</div>
- <div class="home-guide-timeline-desc">发送问题验证接入是否成功</div>
- </div>
- </div>
- <div class="home-guide-block home-guide-block-token">
- <div class="home-guide-block-head">
- <div class="home-guide-block-num">1</div>
- <div class="home-guide-block-copy">
- <div class="home-guide-block-title">获取 Token</div>
- <div class="home-guide-block-desc">登录平台后生成访问令牌,适用于 MCP 协议与 CLI 接入</div>
- </div>
- <div class="home-guide-token">
- <div v-if="guideToken" class="home-guide-token-bar">
- <span class="home-guide-token-tag">Bearer</span>
- <span class="home-guide-token-value">
- <template v-if="guideTokenVisible">{{ guideToken }}</template>
- <template v-else>
- <span>{{ guideTokenMasked.head }}</span><span class="home-guide-token-mask">{{
- guideTokenMasked.middle }}</span><span>{{ guideTokenMasked.tail }}</span>
- </template>
- </span>
- <div class="home-guide-token-icons">
- <icon-svg :name="guideTokenVisible ? 'eye_not_displayed' : 'eye_show'" size="24px"
- class="home-guide-token-icon" @click="guideTokenVisible = !guideTokenVisible" />
- <icon-svg name="http_copy" size="14px" class="home-guide-token-icon"
- @click="copyText(`Bearer ${guideToken}`)" />
- </div>
- </div>
- <button
- v-else
- type="button"
- class="home-guide-token-btn"
- @click="createToken"
- >
- <icon-svg name="gain_token" size="14px" class="home-guide-token-btn-icon" />
- <span>获取 Token</span>
- </button>
- </div>
- </div>
- <div class="home-guide-features">
- <div class="home-guide-feature">
- <icon-svg name="Mcp_general" size="38px" />
- <div>
- <div class="home-guide-feature-title">MCP 通用配置</div>
- <div class="home-guide-feature-desc">3 个 Server 共用同一套 Token</div>
- </div>
- </div>
- <div class="home-guide-feature">
- <icon-svg name="token_general" size="38px" />
- <div>
- <div class="home-guide-feature-title">一套 Token 通用</div>
- <div class="home-guide-feature-desc">MCP 客户端与 CLI 命令行均使用同一令牌</div>
- </div>
- </div>
- <div class="home-guide-feature">
- <icon-svg name="Core_scenario" size="38px" />
- <div>
- <div class="home-guide-feature-title">覆盖环境知识核心场景</div>
- <div class="home-guide-feature-desc">环境法规检索 / 标准导则查询 / 政策问答</div>
- </div>
- </div>
- </div>
- </div>
- <div class="home-guide-block home-guide-block-tools">
- <div class="home-guide-block-head">
- <div class="home-guide-block-num">2</div>
- <div class="home-guide-block-copy">
- <div class="home-guide-block-title">选择你的 AI 工具并复制配置</div>
- <div class="home-guide-block-desc">推荐使用 WorkBuddy 一键接入</div>
- </div>
- </div>
- <div class="home-guide-access-tabs">
- <button type="button" class="home-guide-access-tab" :class="{ 'is-active': guideAccessTab === 'mcp' }"
- @click="guideAccessTab = 'mcp'">
- MCP 接入
- </button>
- <button type="button" class="home-guide-access-tab" :class="{ 'is-active': guideAccessTab === 'cli' }"
- @click="guideAccessTab = 'cli'">
- CLI 命令行接入
- </button>
- </div>
- <div class="home-guide-tool-panel">
- <template v-if="guideAccessTab === 'mcp'">
- <div class="home-guide-tool-tabs">
- <button v-for="tool in guideTools" :key="tool.key" type="button" class="home-guide-tool-tab"
- :class="{ 'is-active': guideToolTab === tool.key }" @click="guideToolTab = tool.key">
- <icon-svg :name="tool.iconName" size="20px" class="home-guide-tool-tab-icon" />
- <span>{{ tool.label }}</span>
- </button>
- </div>
- <div v-if="guideToolTab === 'workbuddy'" class="home-guide-tool-body">
- <div class="home-guide-tool-steps">
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">1</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">自定义 MCP 配置</div>
- <div class="home-guide-tool-step-desc">
- 复制右侧 JSON → 对话框发送「这是环评云助手的 MCP 服务 JSON,帮我配置自定义的 mcp」并粘贴
- </div>
- </div>
- </div>
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">2</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">验证接入是否成功</div>
- <div class="home-guide-tool-step-desc">
- 按环境法规、标准导则、政策问答分别验证(见下方验证卡片)
- </div>
- </div>
- </div>
- <div class="home-guide-note">
- <div class="home-guide-note-head">
- <div class="home-guide-note-icon-box">
- <icon-svg name="WorkBuddy_attention" size="12px" class="home-guide-note-icon" />
- </div>
- <div class="home-guide-note-title">注意事项</div>
- </div>
- <ul class="home-guide-note-list">
- <li>优先用内置「环评云助手」连接器;仅在需要自定义时用右侧 JSON</li>
- <li>自定义接入时 type 字段为 streamableHttp(H 大写)</li>
- <li>不需要在 URL 末尾添加 /mcp 后缀</li>
- <li>将 YOUR_ACCESS_TOKEN 替换为真实 Token</li>
- <li>若工具未立即出现,完全退出并重新打开 WorkBuddy 后再验证</li>
- </ul>
- </div>
- </div>
- <div class="home-guide-code">
- <div class="home-guide-code-bar">
- <div class="home-guide-code-dots">
- <span></span>
- <span></span>
- <span></span>
- </div>
- <div class="home-guide-code-title">mcp.json</div>
- <button type="button" class="home-guide-code-copy" @click="copyGuideMcpJson">
- <icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
- <span>复制</span>
- </button>
- </div>
- <div class="home-guide-code-body">
- <div class="home-guide-code-lines">
- <span v-for="line in guideMcpLines" :key="line">{{ line }}</span>
- </div>
- <pre class="home-guide-code-pre"><span class="code-punct">{</span>
- <span class="code-key">"mcpServers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"hpyzs-law-keyword"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-keyword"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-law-semantic"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-semantic"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-qa"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/qa"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-emission"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/emission"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span></pre>
- </div>
- </div>
- </div>
- <div v-else-if="guideToolTab === 'doubao'" class="home-guide-tool-body home-guide-doubao-body">
- <div class="home-guide-ima-left">
- <div class="home-guide-ima-alert">
- <icon-svg name="ima_wps_warning" size="16px" class="home-guide-ima-alert-icon" />
- <div class="home-guide-ima-alert-text">
- {{ guideDoubaoContent.alert }}
- </div>
- </div>
- <div class="home-guide-ima-steps">
- <div v-for="step in guideDoubaoContent.steps" :key="step.num" class="home-guide-ima-step">
- <div class="home-guide-ima-step-num">{{ step.num }}</div>
- <div class="home-guide-ima-step-title">{{ step.title }}</div>
- </div>
- </div>
- <div class="home-guide-ima-notes">
- <div class="home-guide-ima-notes-title">注意事项</div>
- <ul class="home-guide-ima-notes-list">
- <li v-for="item in guideDoubaoContent.notes" :key="item">
- {{ item }}
- </li>
- </ul>
- </div>
- </div>
- <div class="home-guide-doubao-right">
- <img
- src="@/assets/images/doubao_img.png"
- alt="豆包自定义连接器示意"
- class="home-guide-doubao-img"
- />
- </div>
- </div>
- <div v-else-if="guideToolTab === 'qianwen'" class="home-guide-tool-body">
- <div class="home-guide-tool-steps">
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">1</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">打开配置入口</div>
- <div class="home-guide-tool-step-desc">
- 左侧「扩展」→「连接器」→ 右上角「+ 添加」→「粘贴 JSON 配置」
- </div>
- </div>
- </div>
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">2</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">粘贴 MCP 配置</div>
- <div class="home-guide-tool-step-desc">
- 在「通过 JSON 导入」对话框粘贴右侧全量 JSON → 点击「导入」
- </div>
- </div>
- </div>
- <div class="home-guide-note">
- <div class="home-guide-note-head">
- <div class="home-guide-note-icon-box">
- <icon-svg name="WorkBuddy_attention" size="12px" class="home-guide-note-icon" />
- </div>
- <div class="home-guide-note-title">注意事项</div>
- </div>
- <ul class="home-guide-note-list">
- <li>将 YOUR_ACCESS_TOKEN 替换为页面「获取 Token」生成的真实 Token</li>
- <li>导入后可在「连接器 → 已安装」查看安装状态</li>
- </ul>
- </div>
- </div>
- <div class="home-guide-code">
- <div class="home-guide-code-bar">
- <div class="home-guide-code-dots">
- <span></span>
- <span></span>
- <span></span>
- </div>
- <div class="home-guide-code-title">mcp.json</div>
- <button type="button" class="home-guide-code-copy" @click="copyGuideMcpJson">
- <icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
- <span>复制</span>
- </button>
- </div>
- <div class="home-guide-code-body">
- <div class="home-guide-code-lines">
- <span v-for="line in guideMcpLines" :key="line">{{ line }}</span>
- </div>
- <pre class="home-guide-code-pre"><span class="code-punct">{</span>
- <span class="code-key">"mcpServers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"hpyzs-law-keyword"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-keyword"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-law-semantic"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-semantic"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-qa"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/qa"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-emission"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/emission"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span></pre>
- </div>
- </div>
- </div>
- <div v-else-if="guideToolTab === 'qoderwork'" class="home-guide-tool-body">
- <div class="home-guide-tool-steps">
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">1</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">打开配置入口</div>
- <div class="home-guide-tool-step-desc">
- 左侧「扩展」→「连接器」→ 右上角「+ 添加」→「粘贴 JSON 配置」→ 在「通过 JSON 导入」对话框粘贴下方全量 JSON → 点击「导入」
- </div>
- </div>
- </div>
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">2</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">粘贴 MCP 配置</div>
- <div class="home-guide-tool-step-desc">
- 将右侧「配置」中的 JSON 粘贴到客户端对应位置并保存
- </div>
- </div>
- </div>
- <div class="home-guide-tool-step">
- <div class="home-guide-tool-step-num">3</div>
- <div class="home-guide-tool-step-copy">
- <div class="home-guide-tool-step-title">配置文件位置</div>
- <div class="home-guide-tool-step-desc">
- macOS:~/.qoderwork/mcp.json Windows:C:\Users\用户名\.qoderwork\mcp.json
- </div>
- </div>
- </div>
- <div class="home-guide-note">
- <div class="home-guide-note-head">
- <div class="home-guide-note-icon-box">
- <icon-svg name="WorkBuddy_attention" size="12px" class="home-guide-note-icon" />
- </div>
- <div class="home-guide-note-title">注意事项</div>
- </div>
- <ul class="home-guide-note-list">
- <li>type 字段为 "streamableHttp"(H 大写),与 WorkBuddy 一致</li>
- <li>不需要在 URL 末尾添加 /mcp 后缀</li>
- <li>将 YOUR_ACCESS_TOKEN 替换为页面「获取 Token」生成的真实 Token</li>
- <li>导入后可在「连接器 → 已安装」查看状态;改配置后需完全退出并重启 QoderWork</li>
- </ul>
- </div>
- </div>
- <div class="home-guide-code">
- <div class="home-guide-code-bar">
- <div class="home-guide-code-dots">
- <span></span>
- <span></span>
- <span></span>
- </div>
- <div class="home-guide-code-title">mcp.json</div>
- <button type="button" class="home-guide-code-copy" @click="copyGuideMcpJson">
- <icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
- <span>复制</span>
- </button>
- </div>
- <div class="home-guide-code-body">
- <div class="home-guide-code-lines">
- <span v-for="line in guideMcpLines" :key="line">{{ line }}</span>
- </div>
- <pre class="home-guide-code-pre"><span class="code-punct">{</span>
- <span class="code-key">"mcpServers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"hpyzs-law-keyword"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-keyword"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-law-semantic"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/law-semantic"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-qa"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/qa"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">},</span>
- <span class="code-key">"hpyzs-emission"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"url"</span><span class="code-punct">:</span> <span class="code-string">"https://mcp.eiacloud.com/emission"</span><span class="code-punct">,</span>
- <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
- <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span>
- <span class="code-punct">}</span></pre>
- </div>
- </div>
- </div>
- <div v-else-if="guideToolTab === 'wps'" class="home-guide-tool-body home-guide-ima-body">
- <div class="home-guide-ima-left">
- <div class="home-guide-ima-alert">
- <icon-svg name="ima_wps_warning" size="16px" class="home-guide-ima-alert-icon" />
- <div class="home-guide-ima-alert-text">
- {{ guideWpsContent.alert }}
- </div>
- </div>
- <div class="home-guide-ima-steps">
- <div v-for="step in guideWpsContent.steps" :key="step.num" class="home-guide-ima-step">
- <div class="home-guide-ima-step-num">{{ step.num }}</div>
- <div class="home-guide-ima-step-title">{{ step.title }}</div>
- </div>
- </div>
- <div class="home-guide-ima-notes">
- <div class="home-guide-ima-notes-title">注意事项</div>
- <ul class="home-guide-ima-notes-list">
- <li v-for="item in guideWpsContent.notes" :key="item">
- {{ item }}
- </li>
- </ul>
- </div>
- </div>
- <div class="home-guide-ima-right">
- <div class="home-guide-ima-panel home-guide-ima-panel--config">
- <div class="home-guide-ima-panel-title">【配置】</div>
- <div v-for="line in guideWpsContent.configLines" :key="line" class="home-guide-ima-panel-line">
- {{ line }}
- </div>
- </div>
- <div class="home-guide-ima-panel home-guide-ima-panel--verify">
- <div class="home-guide-ima-panel-title">【验证】</div>
- <div class="home-guide-ima-panel-hint">
- {{ guideWpsContent.verifyIntro }}
- </div>
- <div class="home-guide-ima-quote">{{ guideWpsContent.verifyQuote }}</div>
- <div class="home-guide-ima-panel-hint">
- {{ guideWpsContent.verifyResult }}
- </div>
- <div class="home-guide-ima-check">
- <span class="home-guide-ima-check-marks">
- <span>√</span>
- <span>√</span>
- </span>
- <span class="home-guide-ima-check-text">{{ guideWpsContent.verifyCheck }}</span>
- </div>
- </div>
- </div>
- </div>
- </template>
- <template v-else>
- <div class="home-guide-cli-body">
- <div class="home-guide-cli-head">
- <icon-svg name="systemLogoCircle" size="38px" class="home-guide-cli-logo-icon" />
- <div class="home-guide-cli-head-copy">
- <div class="home-guide-cli-name">
- <span class="home-guide-cli-pkg">hpyzs-mcp</span>
- <span class="home-guide-cli-sep">·</span>
- <span class="home-guide-cli-alias">环评云助手命令行工具</span>
- </div>
- <div class="home-guide-cli-tip">npm 全局安装 · 纯命令行执行 · 结果为原始 JSON</div>
- </div>
- </div>
- <div class="home-guide-cli-steps-title">接入步骤</div>
- <div class="home-guide-cli-steps">
- <div v-for="step in guideCliSteps" :key="step.num" class="home-guide-cli-step">
- <div class="home-guide-cli-step-num">{{ step.num }}</div>
- <div class="home-guide-cli-step-copy">
- <div class="home-guide-cli-step-title">{{ step.title }}</div>
- <div class="home-guide-cli-step-desc">{{ step.desc }}</div>
- </div>
- </div>
- </div>
- <div class="home-guide-cli-panel">
- <div class="home-guide-cli-list">
- <div v-for="command in guideCliCommands" :key="command.label" class="home-guide-cli-command">
- <div class="home-guide-cli-command-main">
- <div class="home-guide-cli-command-label">
- <span class="home-guide-cli-command-dot"></span>
- <span>{{ command.label }}</span>
- </div>
- <code class="home-guide-cli-command-text">{{ command.text }}</code>
- </div>
- <button type="button" class="home-guide-cli-command-copy" @click="copyText(command.text)">
- <icon-svg name="copy_icon_violet" size="12px" class="home-guide-cli-command-copy-icon" />
- <span>复制</span>
- </button>
- </div>
- </div>
- <div class="home-guide-cli-footer">
- <span class="home-guide-cli-footer-tip">{{ guideCliFooterTip }}</span>
- <button type="button" class="home-guide-cli-copy-all" @click="copyAllCliCommands">
- <icon-svg name="copy_icon_white" size="12px" class="home-guide-cli-copy-all-icon" />
- <span>全部复制</span>
- </button>
- </div>
- </div>
- </div>
- </template>
- </div>
- </div>
- <div class="home-guide-block home-guide-block-verify">
- <div class="home-guide-block-head">
- <div class="home-guide-block-num">3</div>
- <div class="home-guide-block-copy">
- <div class="home-guide-block-title">验证接入</div>
- <div class="home-guide-block-desc">在对话框中分别发送以下指令验证接入是否成功</div>
- </div>
- </div>
- <div class="home-guide-verify">
- <div v-for="card in guideVerifyCards" :key="card.title" class="home-guide-verify-card">
- <div class="home-guide-verify-line"></div>
- <div class="home-guide-verify-head">
- <div class="home-guide-verify-icon-box">
- <icon-svg :name="card.icon" size="16px" />
- </div>
- <div class="home-guide-verify-title">{{ card.title }}</div>
- </div>
- <div class="home-guide-verify-list">
- <div v-for="(question, questionIndex) in card.questions" :key="`${card.title}-${questionIndex}`"
- class="home-guide-verify-item">
- <span>{{ question }}</span>
- <icon-svg name="Connection_Copy" size="13px" class="home-guide-verify-copy"
- @click="copyText(question)" />
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <section class="home-section home-footer">
- <div class="home-guide-inner home-footer-inner">
- <div class="home-footer-left">
- <div class="home-footer-brand">
- <icon-svg name="systemLogoCircle" size="24px" class="home-footer-brand-icon" />
- <span class="home-footer-brand-text">环评云助手 MCP · 智能环境法规标准平台</span>
- </div>
- <p class="home-footer-legal">
- <span>京公网安备 11010802024562号</span>
- <span class="home-footer-legal-sep">|</span>
- <span>Copyright © 2001-2013 Comsenz Inc. All Rights Reserved.</span>
- <span class="home-footer-legal-sep">|</span>
- <span>Powered by Discuz! X3.4( 京ICP备17049511号-1 )</span>
- </p>
- </div>
- <div class="home-footer-right">
- <div class="home-footer-icons">
- <div class="home-footer-icon-item">
- <icon-svg name="footer_WeChat" size="24px" class="home-footer-icon" />
- <div class="home-footer-popover">
- <img src="@/assets/images/service_WeChat.png" alt="云助手客服微信" class="home-footer-popover-img" />
- <div class="home-footer-popover-sub">云助手客服微信</div>
- </div>
- </div>
- <div class="home-footer-icon-item">
- <icon-svg name="footer_phone" size="24px" class="home-footer-icon" />
- <div class="home-footer-popover">
- <div class="home-footer-popover-title">官方应用下载</div>
- <img src="@/assets/images/app_download.png" alt="官方应用下载" class="home-footer-popover-img" />
- <div class="home-footer-popover-sub">环评云助手APP</div>
- </div>
- </div>
- </div>
- <div class="home-footer-links">
- <a
- class="home-footer-link"
- href="https://www.eiacloud.com/lxwmhjzx/550.jhtml"
- target="_blank"
- rel="noopener noreferrer"
- >关于我们</a>
- <a
- class="home-footer-link"
- href="https://www.eiacloud.com/bbs/userAgreement"
- target="_blank"
- rel="noopener noreferrer"
- >用户协议</a>
- <a
- class="home-footer-link"
- href="https://www.eiacloud.com/hpy/lawstandardApp/getDetailYS"
- target="_blank"
- rel="noopener noreferrer"
- >隐私政策</a>
- <a
- class="home-footer-link"
- href="https://www.eiacloud.com/lxwmlxfs/669.jhtml"
- target="_blank"
- rel="noopener noreferrer"
- >联系我们</a>
- </div>
- </div>
- </div>
- </section>
- </div>
- </div>
- </template>
- <script setup>
- import { computed, onMounted, ref } from "vue";
- import { useRouter } from "vue-router";
- import { ElMessage } from "element-plus";
- import { getMcpToken, createMcpToken, getMcpServerHotList } from "@/api/mcp";
- import { requireUserLogin } from "@/utils/auth";
- import globalStore from "@/store/modules/global";
- import demoImgGreen from "@/assets/images/test_instruction_green.jpg";
- import demoImgBlue from "@/assets/images/test_instruction_blue.jpg";
- import demoImgPurple from "@/assets/images/test_instruction_purple.jpg";
- const router = useRouter();
- const global = globalStore();
- const demoQuestions = [
- "「大气污染物综合排放标准 GB16297 相关限值要求?」",
- "「建设项目环境影响评价分类管理名录中化工项目如何分类?」",
- "「地下水质量标准 GB/T14848 中Ⅲ类水质的具体指标限值?」",
- ];
- const demoCaseImages = [demoImgGreen, demoImgBlue, demoImgPurple];
- const activeDemoQuestion = ref(0);
- const hotServerList = ref([]);
- const parseCssStyle = (cssText) => {
- if (!cssText) return {};
- const style = {};
- String(cssText)
- .split(";")
- .forEach((rule) => {
- const colonIndex = rule.indexOf(":");
- if (colonIndex === -1) return;
- const key = rule.slice(0, colonIndex).trim();
- const value = rule.slice(colonIndex + 1).trim();
- if (!key || !value) return;
- const prop = key.replace(/-([a-z])/g, (_, char) => char.toUpperCase());
- style[prop] = value;
- });
- return style;
- };
- const formatHotRequestCount = (value) => {
- if (value == null || value === "") return "-";
- const num = Number(value);
- if (Number.isNaN(num)) return String(value);
- return String(num);
- };
- const fetchHotServerList = async () => {
- try {
- const res = await getMcpServerHotList();
- hotServerList.value = Array.isArray(res?.data) ? res.data : [];
- } catch (error) {
- console.error(error);
- hotServerList.value = [];
- }
- };
- const guideToken = computed(() => global.mcpToken || "");
- const guideTokenVisible = ref(false);
- const guideTokenMasked = computed(() => {
- const token = guideToken.value;
- if (!token || token.length <= 15) {
- return { head: token, middle: "", tail: "" };
- }
- return {
- head: token.slice(0, 9),
- middle: "*".repeat(token.length - 15),
- tail: token.slice(-6),
- };
- });
- const applyToken = (data) => {
- // 兼容 data 为字符串,或 { token, expireTime, status, ... } 对象
- const token =
- typeof data === "string"
- ? data
- : data && typeof data === "object"
- ? data.token
- : "";
- if (token === null || token === undefined || token === "") {
- global.setMcpToken("");
- return;
- }
- global.setMcpToken(String(token));
- };
- const fetchMcpToken = async () => {
- try {
- const res = await getMcpToken();
- applyToken(res?.data);
- } catch (error) {
- console.error(error);
- }
- };
- const createToken = async () => {
- if (!requireUserLogin("请先登录", { redirect: true })) return;
- if (guideToken.value) {
- ElMessage.warning("Token 已存在,无需重复获取");
- return;
- }
- try {
- const res = await createMcpToken();
- applyToken(res?.data);
- } catch (error) {
- console.error(error);
- }
- };
- onMounted(() => {
- fetchMcpToken();
- fetchHotServerList();
- });
- const guideAccessTab = ref("mcp");
- const guideToolTab = ref("workbuddy");
- const guideTools = [
- { key: "workbuddy", label: "WorkBuddy", iconName: "WorkBuddy_icon" },
- { key: "doubao", label: "豆包", iconName: "doubao_icon" },
- { key: "qianwen", label: "千问办公", iconName: "qianwen_icon" },
- { key: "qoderwork", label: "Qoderwork", iconName: "Qoderwork_icon" },
- ];
- const guideDoubaoContent = {
- alert: "豆包只能通过新建自定义连接器接入,不支持直接粘贴 JSON 配置。",
- steps: [
- {
- num: 1,
- title:
- "打开 豆包 → 找到「 技能·连接器·伙伴 」→ 点击「新建」→ 选择「 新建自定义连接器」 ",
- },
- {
- num: 2,
- title: "输入服务器名称、 URL 链接、自定义 Headers → 点击保存完成链接",
- },
- {
- num: 3,
- title:
- "验证是否成功——在对话中发送「用环评云助手MCP检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」",
- },
- ],
- notes: [
- "服务器名称可自行命名",
- "服务器 URL 内填入对应的 server URL ,每个服务对应一个链接",
- "自定义 Headers 内填入 Authorization",
- "自定义 Headers 内需要填写页面「获取 Token」生成的真实 Token",
- ],
- };
- const guideWpsContent = {
- alert:
- "仅支持内置连接:WPS Comate 只能通过内置「环评云助手」连接接入,不支持粘贴 JSON 或自定义 MCP 配置。",
- steps: [
- {
- num: 1,
- title: "打开 WPS Comate → 进入「连接」→ 找到「环评云助手」→ 点击「连接」",
- },
- {
- num: 2,
- title: "按提示完成登录授权并启用连接即可使用,无需粘贴 JSON / Token",
- },
- {
- num: 3,
- title:
- "验证是否成功——在对话中发送「用环评云助手检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」——返回的是权威法规数据,非网络搜索结果。",
- },
- ],
- notes: [
- "仅支持内置连接,无需手动粘贴 JSON 或自定义 MCP 配置",
- "首次使用需完成环评云助手账号登录授权,授权后连接长期有效",
- ],
- configLines: [
- "# 本平台仅支持内置「环评云助手」连接",
- "# 发现 → MCP → 环评云助手 → 一键连接并完成授权即可使用",
- ],
- verifyIntro: "# 在对话框中发一句:",
- verifyQuote:
- "「用环评云助手检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」",
- verifyResult: " # → 看到法规检索工具运行成功 → 返回限值 = 接入成功",
- verifyCheck: "返回的是权威法规数据,非网络搜索",
- };
- const guideAccessToken = computed(
- () => guideToken.value || "YOUR_ACCESS_TOKEN",
- );
- const guideMcpJson = computed(() => {
- const token = guideAccessToken.value;
- return `{
- "mcpServers": {
- "hpyzs-law-keyword": {
- "url": "https://mcp.eiacloud.com/law-keyword",
- "headers": {
- "Authorization": "Bearer ${token}"
- }
- },
- "hpyzs-law-semantic": {
- "url": "https://mcp.eiacloud.com/law-semantic",
- "headers": {
- "Authorization": "Bearer ${token}"
- }
- },
- "hpyzs-qa": {
- "url": "https://mcp.eiacloud.com/qa",
- "headers": {
- "Authorization": "Bearer ${token}"
- }
- },
- "hpyzs-emission": {
- "url": "https://mcp.eiacloud.com/emission",
- "headers": {
- "Authorization": "Bearer ${token}"
- }
- }
- }
- }`;
- });
- const guideMcpLines = computed(() =>
- Array.from({ length: guideMcpJson.value.split("\n").length }, (_, i) => i + 1),
- );
- const copyText = async (text) => {
- if (!text) {
- ElMessage.warning("暂无内容可复制");
- return;
- }
- try {
- if (navigator.clipboard?.writeText) {
- await navigator.clipboard.writeText(text);
- } else {
- const textarea = document.createElement("textarea");
- textarea.value = text;
- textarea.setAttribute("readonly", "");
- textarea.style.position = "fixed";
- textarea.style.left = "-9999px";
- document.body.appendChild(textarea);
- textarea.select();
- const ok = document.execCommand("copy");
- document.body.removeChild(textarea);
- if (!ok) throw new Error("execCommand copy failed");
- }
- ElMessage.success("复制成功");
- } catch (error) {
- console.error(error);
- ElMessage.error("复制失败");
- }
- };
- const copyGuideMcpJson = () => copyText(guideMcpJson.value);
- const guideCliSteps = [
- {
- num: 1,
- title: "控制台获取 Token(与 MCP 共用)",
- desc: "在第一步生成或复制 Token,CLI 与 MCP 使用同一套鉴权。",
- },
- {
- num: 2,
- title: "npm 全局安装环评云助手 CLI",
- desc: "npm install -g hpyzs-mcp",
- },
- {
- num: 3,
- title: "绑定 Token",
- desc: "右侧初始化命令已自动填入真实 Token,复制执行即可",
- },
- {
- num: 4,
- title: "命令行直接查询,返回原始 JSON",
- desc: "不经过 LLM,适合自动化流程与数据验证。",
- },
- ];
- const guideCliCommands = computed(() => {
- const token = guideAccessToken.value;
- return [
- {
- label: "安装 CLI",
- text: "npm install -g hpyzs-mcp",
- },
- {
- label: "绑定 Token",
- text: `hpyzs-mcp init --authorization "Bearer ${token}"`,
- },
- {
- label: "执行查询",
- text: 'hpyzs-mcp law-keyword search_keyword_standard --name "地表水环境治疗标准"',
- },
- ];
- });
- const guideCliFooterTip = computed(() =>
- guideToken.value
- ? "初始化命令已自动填入真实 Token"
- : "将 YOUR_ACCESS_TOKEN 替换为页面「获取 Token」生成的真实 Token",
- );
- const copyAllCliCommands = () =>
- copyText(guideCliCommands.value.map((item) => item.text).join("\n"));
- const guideVerifyCards = [
- {
- icon: "environmental_legislation",
- title: "政策法规",
- questions: [
- "大气污染防治法第118条餐饮油烟怎么罚?",
- "环办政法函〔2017〕40号答复了什么?",
- "大气污染防治法2018修订何时施行?",
- ],
- },
- {
- icon: "Standard_guidelines",
- title: "标准导则",
- questions: [
- "GB16297表2二氧化硫二级浓度?",
- "GB16297排气筒最低高度要求?",
- "GB16297颗粒物无组织监控限值?",
- ],
- },
- {
- icon: "Policy_QA",
- title: "问答检索",
- questions: [
- "重大变动如何重新报批环评?",
- "排污许可证内容变更如何重新办理?",
- "环评批复几年不开工作废?",
- ],
- },
- ];
- </script>
- <style scoped lang="less">
- .home-page {
- width: 100%;
- --home-inline-padding: 70px;
- box-sizing: border-box;
- }
- .home-section {
- width: 100%;
- }
- .home-hero {
- display: flex;
- align-items: stretch;
- justify-content: center;
- gap: 12px;
- padding: 70px var(--home-inline-padding);
- box-sizing: border-box;
- background: url("@/assets/images/home_one_bg.png") center / cover no-repeat;
- }
- .home-hero-copy {
- flex: 0 1 auto;
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- }
- .home-hero-visual {
- flex: 0 1 616px;
- width: 616px;
- position: relative;
- min-width: 0;
- max-width: 616px;
- }
- .home-hero-image {
- position: absolute;
- inset: 0;
- width: 100%;
- height: 100%;
- object-fit: contain;
- object-position: center right;
- }
- .home-hero-badge {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- background: rgba(22, 120, 255, 0.15);
- border-radius: 100px;
- border: 1px solid rgba(22, 120, 255, 0.3);
- padding: 10px 20px;
- }
- .home-hero-badge-dot {
- width: 8px;
- height: 8px;
- flex-shrink: 0;
- background: #10B981;
- box-shadow: 0px 0px 12px 0px #10B981;
- border-radius: 4px;
- }
- .home-hero-badge-text {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 13px;
- color: #60A5FA;
- line-height: 19px;
- text-align: left;
- font-style: normal;
- }
- .home-hero-title {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin-top: 30px;
- }
- .home-hero-title-main {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 52px;
- color: #FFFFFF;
- line-height: 73px;
- text-align: left;
- font-style: normal;
- }
- .home-hero-title-sub {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 40px;
- line-height: 56px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- background: linear-gradient(45deg, #60A5FA 0%, #A78BFA 50%, #22D3EE 100%);
- -webkit-background-clip: text;
- background-clip: text;
- -webkit-text-fill-color: transparent;
- color: transparent;
- }
- .home-hero-desc {
- margin: 60px 0 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 18px;
- color: rgba(255, 255, 255, 0.8);
- line-height: 31px;
- text-align: left;
- font-style: normal;
- }
- .home-hero-actions {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 16px;
- margin-top: 80px;
- }
- .home-hero-btn {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- margin: 0;
- cursor: pointer;
- box-sizing: border-box;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 16px;
- color: #FFFFFF;
- line-height: 22px;
- text-align: left;
- font-style: normal;
- white-space: nowrap;
- }
- .home-hero-btn:hover {
- transform: scale(1.06);
- }
- .home-hero-btn-primary {
- padding: 14px 30px;
- border: none;
- border-radius: 8px;
- background: linear-gradient(135deg, #1678FF 0%, #2563EB 100%);
- box-shadow: 0px 4px 24px 0px rgba(22, 120, 255, 0.4);
- }
- .home-hero-btn-secondary {
- padding: 14px 30px;
- border-radius: 8px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.12);
- }
- .home-content-stack {
- width: 100%;
- box-sizing: border-box;
- }
- .home-content-stack>.home-section {
- width: 100%;
- box-sizing: border-box;
- }
- .home-section-inner-padding() {
- padding-left: var(--home-inline-padding);
- padding-right: var(--home-inline-padding);
- box-sizing: border-box;
- }
- .home-section-content-width() {
- max-width: 1320px;
- margin-left: auto;
- margin-right: auto;
- width: 100%;
- }
- /* 内容限宽 + 左右内边距(与 overview / guide 一致) */
- .home-section-content-box() {
- .home-section-content-width();
- .home-section-inner-padding();
- }
- .home-overview {
- padding: 80px 0;
- background: #F3F4FF;
- }
- .home-overview-inner {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 120px;
- .home-section-content-box();
- }
- .home-overview-block {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 32px;
- }
- .home-overview-block:last-child {
- width: 100%;
- }
- .home-overview-heading {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- }
- .home-overview-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 32px;
- color: #1E293B;
- line-height: 40px;
- text-align: center;
- }
- .home-overview-subtitle {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #64748B;
- line-height: 24px;
- text-align: center;
- }
- .home-overview-cards {
- display: flex;
- justify-content: stretch;
- gap: 16px;
- width: 100%;
- min-width: 0;
- }
- .home-overview-stats {
- display: flex;
- justify-content: stretch;
- gap: 16px;
- width: 100%;
- min-width: 0;
- }
- .home-overview-stat-card {
- flex: 1 1 0;
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 10px;
- padding: 30px 20px;
- background: #FFFFFF;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 16px;
- box-sizing: border-box;
- }
- .home-overview-icon-box {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 15px;
- border-radius: 14px;
- }
- .home-overview-stat-card:nth-child(1) .home-overview-icon-box {
- background: linear-gradient(135deg, #1678FF 0%, #3B82F6 100%);
- box-shadow: 0px 8px 20px 0px rgba(22, 120, 255, 0.25);
- }
- .home-overview-stat-card:nth-child(2) .home-overview-icon-box {
- background: linear-gradient(135deg, #FB923C 0%, #FF9900 100%);
- box-shadow: 0px 8px 20px 0px rgba(245, 158, 11, 0.25);
- }
- .home-overview-stat-card:nth-child(3) .home-overview-icon-box {
- background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
- box-shadow: 0px 8px 20px 0px rgba(124, 58, 237, 0.25);
- }
- .home-overview-stat-card:nth-child(4) .home-overview-icon-box {
- background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
- box-shadow: 0px 8px 20px 0px rgba(14, 165, 233, 0.25);
- }
- .home-overview-stat-card .home-overview-card-value {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 28px;
- line-height: 39px;
- text-align: left;
- }
- .home-overview-stat-card:nth-child(1) .home-overview-card-value {
- color: #1678FF;
- }
- .home-overview-stat-card:nth-child(2) .home-overview-card-value {
- color: #FB923C;
- }
- .home-overview-stat-card:nth-child(3) .home-overview-card-value {
- color: #7C3AED;
- }
- .home-overview-stat-card:nth-child(4) .home-overview-card-value {
- color: #0EA5E9;
- }
- .home-overview-stat-card .home-overview-card-label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #0F172A;
- line-height: 28px;
- text-align: left;
- }
- .home-overview-services {
- width: 100%;
- min-width: 0;
- }
- .home-overview-service-card {
- flex: 1 1 0;
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 16px;
- padding: 28px;
- background: #FFFFFF;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 16px;
- }
- .home-overview-service-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 16px;
- border-radius: 14px;
- }
- .home-overview-service-card:nth-child(1) .home-overview-service-icon {
- background: #F5F3FF;
- }
- .home-overview-service-card:nth-child(2) .home-overview-service-icon {
- background: #EEF4FF;
- }
- .home-overview-service-card:nth-child(3) .home-overview-service-icon {
- background: #ECFDF5;
- }
- .home-overview-service-title {
- width: 100%;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 18px;
- color: #0F172A;
- line-height: 25px;
- text-align: center;
- }
- .home-overview-service-desc {
- width: 100%;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #64748B;
- line-height: 24px;
- text-align: left;
- }
- .home-scenes {
- background: #F3F7FF;
- }
- .home-scenes-upper {
- display: flex;
- flex-direction: column;
- row-gap: 20px;
- width: 100%;
- padding: 80px 0;
- background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FF 100%);
- border-radius: 0;
- }
- .home-scenes-heading {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- .home-section-content-box();
- }
- .home-scenes-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 32px;
- color: #1E293B;
- line-height: 40px;
- text-align: center;
- }
- .home-scenes-subtitle {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #64748B;
- line-height: 24px;
- text-align: center;
- }
- .home-scenes-cards {
- display: flex;
- min-width: 0;
- gap: 16px;
- .home-section-content-box();
- }
- .home-scenes-card {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- padding: 20px;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 14px;
- border: 1px solid #EEF2F7;
- }
- .home-scenes-card-head {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 14px;
- }
- .home-scenes-card-icon-box {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- padding: 10px;
- border-radius: 12px;
- }
- .home-scenes-card-icon-img {
- width: 24px;
- height: 24px;
- object-fit: contain;
- }
- .home-scenes-card-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 18px;
- color: #0F172A;
- line-height: 25px;
- text-align: left;
- }
- .home-scenes-card-desc {
- margin-top: 20px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-scenes-card-tags {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 8px;
- margin-top: 20px;
- }
- .home-scenes-card-tags span {
- background: #F8FAFC;
- border-radius: 4px;
- border: 1px solid #E2E8F0;
- padding: 5px 14px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 12px;
- color: #64748B;
- line-height: 18px;
- text-align: left;
- font-style: normal;
- }
- .home-scenes-card-footer {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- margin-top: auto;
- padding-top: 20px;
- }
- .home-scenes-card-stat {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 11px;
- color: #94A3B8;
- line-height: 14px;
- text-align: left;
- }
- .home-scenes-card-link {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 12px;
- color: #1678FF;
- line-height: 16px;
- text-align: left;
- text-decoration: none;
- cursor: pointer;
- &:link,
- &:visited,
- &:active {
- color: #1678FF;
- text-decoration: none;
- }
- &:hover {
- color: #1678FF;
- opacity: 0.8;
- text-decoration: none;
- }
- }
- .home-scenes-lower {
- width: 100%;
- background: #F3F7FF;
- border-radius: 10px;
- margin: 36px 0 0;
- padding: 36px 0 80px;
- box-sizing: border-box;
- }
- .home-scenes-demo {
- display: grid;
- grid-template-columns: 1fr 1fr;
- align-items: start;
- gap: 40px;
- .home-section-content-box();
- }
- .home-scenes-demo-copy {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 20px;
- min-width: 0;
- }
- .home-scenes-demo-preview {
- align-self: end;
- min-width: 0;
- overflow: hidden;
- border-radius: 10px;
- }
- .home-scenes-demo-preview-img {
- display: block;
- width: 100%;
- height: auto;
- object-fit: contain;
- }
- .home-scenes-demo-badge {
- background: #FFFFFF;
- border-radius: 4px;
- border: 1px solid #D6E8FE;
- padding: 4px 8px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #1678FF;
- line-height: 18px;
- text-align: left;
- }
- .home-scenes-demo-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 32px;
- color: #1E293B;
- line-height: 40px;
- text-align: left;
- }
- .home-scenes-demo-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #64748B;
- line-height: 24px;
- text-align: left;
- }
- .home-scenes-demo-questions {
- display: flex;
- flex-direction: column;
- gap: 20px;
- width: 100%;
- }
- .home-scenes-demo-question {
- background: #FFFFFF;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 8px;
- padding: 12px;
- cursor: pointer;
- }
- .home-scenes-demo-question-label {
- display: flex;
- align-items: center;
- gap: 6px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 11px;
- color: #64748B;
- line-height: 16px;
- text-align: left;
- }
- .home-scenes-demo-question-dot {
- width: 6px;
- height: 6px;
- flex-shrink: 0;
- border-radius: 6px;
- }
- .home-scenes-demo-question:nth-child(1) .home-scenes-demo-question-dot {
- background: #059669;
- }
- .home-scenes-demo-question:nth-child(2) .home-scenes-demo-question-dot {
- background: #3B82F6;
- }
- .home-scenes-demo-question:nth-child(3) .home-scenes-demo-question-dot {
- background: #8B5CF6;
- }
- .home-scenes-demo-question-text {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 13px;
- color: #334155;
- line-height: 20px;
- text-align: left;
- }
- .home-scenes-demo-question.is-active {
- background: linear-gradient(107deg, #3B82F6 0%, #6366F1 100%);
- box-shadow: 0px 4px 14px 0px rgba(59, 130, 246, 0.24);
- }
- .home-scenes-demo-question.is-active .home-scenes-demo-question-dot {
- background: rgba(255, 255, 255, 0.8);
- }
- .home-scenes-demo-question.is-active .home-scenes-demo-question-label {
- color: rgba(255, 255, 255, 0.8);
- }
- .home-scenes-demo-question.is-active .home-scenes-demo-question-text {
- color: #FFFFFF;
- }
- .home-guide {
- padding: 80px 0;
- background: #FFFFFF;
- border-radius: 0;
- }
- .home-guide-inner {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 32px;
- .home-section-content-box();
- }
- .home-guide-heading {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- }
- .home-guide-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 32px;
- color: #1E293B;
- line-height: 40px;
- text-align: center;
- }
- .home-guide-subtitle {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #64748B;
- line-height: 24px;
- text-align: center;
- }
- .home-guide-timeline {
- display: flex;
- align-items: flex-start;
- justify-content: center;
- margin-top: 8px;
- width: 100%;
- max-width: 100%;
- min-width: 0;
- }
- .home-guide-timeline-item {
- flex: 1 1 0;
- min-width: 0;
- max-width: 210px;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .home-guide-timeline-dot {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 52px;
- height: 52px;
- border-radius: 52px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 22px;
- color: #FFFFFF;
- line-height: 30px;
- text-align: center;
- }
- .home-guide-timeline-item:nth-child(1) .home-guide-timeline-dot {
- background: linear-gradient(135deg, #059669 0%, #10B981 100%);
- box-shadow: 0px 8px 24px 0px rgba(5, 150, 105, 0.3);
- }
- .home-guide-timeline-item:nth-child(3) .home-guide-timeline-dot {
- background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
- box-shadow: 0px 8px 24px 0px rgba(59, 130, 246, 0.28);
- }
- .home-guide-timeline-item:nth-child(5) .home-guide-timeline-dot {
- background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
- box-shadow: 0px 8px 24px 0px rgba(139, 92, 246, 0.28);
- }
- .home-guide-timeline-name {
- margin-top: 10px;
- width: 100%;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- line-height: 28px;
- text-align: center;
- }
- .home-guide-timeline-item:nth-child(1) .home-guide-timeline-name {
- color: #059669;
- }
- .home-guide-timeline-item:nth-child(3) .home-guide-timeline-name {
- color: #3B82F6;
- }
- .home-guide-timeline-item:nth-child(5) .home-guide-timeline-name {
- color: #8B5CF6;
- }
- .home-guide-timeline-desc {
- margin-top: 2px;
- width: 100%;
- padding: 0 4px;
- box-sizing: border-box;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: center;
- word-break: break-word;
- }
- .home-guide-timeline-line {
- flex: 1 1 0;
- min-width: 24px;
- max-width: 245px;
- height: 4px;
- margin-top: 24px;
- border-radius: 2px;
- }
- .home-guide-timeline-line-1 {
- background: linear-gradient(270deg, #059669 0%, #3B82F6 100%);
- }
- .home-guide-timeline-line-2 {
- background: linear-gradient(270deg, #3B82F6 0%, #8B5CF6 100%);
- }
- .home-guide-block {
- background: #FFFFFF;
- border-radius: 16px;
- padding: 24px 0;
- }
- .home-guide-block-head {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- }
- .home-guide-block-num {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- flex-shrink: 0;
- border-radius: 50%;
- background: #10B981;
- color: #FFFFFF;
- font-size: 13px;
- font-weight: 600;
- }
- .home-guide-block:nth-child(3) .home-guide-block-num {
- background: #10B981;
- }
- .home-guide-block:nth-child(4) .home-guide-block-num {
- background: #3B82F6;
- }
- .home-guide-block:nth-child(5) .home-guide-block-num {
- background: #A78BFA;
- }
- .home-guide-block-copy {
- flex: 1;
- min-width: 0;
- }
- .home-guide-block-title {
- font-size: 18px;
- font-weight: 600;
- color: #0F172A;
- line-height: 25px;
- }
- .home-guide-block-desc {
- margin-top: 4px;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- }
- .home-guide-token {
- display: flex;
- align-items: center;
- gap: 8px;
- flex-shrink: 0;
- }
- .home-guide-token-value {
- padding: 8px 12px;
- border-radius: 8px;
- background: #0F172A;
- color: #FFFFFF;
- font-size: 12px;
- }
- .home-guide-token-btn {
- padding: 8px 16px;
- border: none;
- border-radius: 8px;
- background: #1678FF;
- color: #FFFFFF;
- font-size: 13px;
- cursor: pointer;
- }
- .home-guide-block-token .home-guide-block-head {
- align-items: center;
- gap: 16px;
- }
- .home-guide-block-token .home-guide-block-num {
- width: 46px;
- height: 46px;
- background: linear-gradient(135deg, #059669 0%, #10B981 100%);
- box-shadow: 0px 8px 20px 0px rgba(5, 150, 105, 0.24);
- border-radius: 14px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #FFFFFF;
- line-height: 26px;
- text-align: center;
- }
- .home-guide-block-token .home-guide-block-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 22px;
- color: #0F172A;
- line-height: 30px;
- text-align: left;
- }
- .home-guide-block-token .home-guide-block-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-block-token .home-guide-token {
- display: flex;
- align-items: center;
- gap: 16px;
- margin-left: auto;
- }
- .home-guide-token-bar {
- box-sizing: border-box;
- display: flex;
- align-items: center;
- flex: 1 1 auto;
- width: auto;
- min-width: 0;
- max-width: 400px;
- height: 44px;
- padding: 12px 14px;
- background: #1E293B;
- border-radius: 6px;
- }
- .home-guide-token-tag {
- flex-shrink: 0;
- background: #1678FF;
- border-radius: 4px;
- padding: 3px 8px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 11px;
- color: #FFFFFF;
- line-height: 14px;
- text-align: center;
- }
- .home-guide-block-token .home-guide-token-value {
- margin-left: 8px;
- padding: 0;
- background: transparent;
- border-radius: 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 13px;
- color: #E5E7EB;
- line-height: 18px;
- text-align: left;
- }
- .home-guide-token-icons {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-left: auto;
- }
- .home-guide-token-icon {
- width: 24px;
- height: 24px;
- color: #FFFFFF;
- cursor: pointer;
- }
- .home-guide-block-token .home-guide-token-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- flex-shrink: 0;
- box-sizing: border-box;
- min-height: 44px;
- padding: 12px 16px;
- border: none;
- border-radius: 8px;
- background: linear-gradient(107deg, #3B82F6 0%, #6366F1 100%);
- box-shadow: 0px 2px 8px 0px rgba(59, 130, 246, 0.25);
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 14px;
- color: #FFFFFF;
- line-height: 20px;
- white-space: nowrap;
- cursor: pointer;
- }
- .home-guide-token-btn-icon {
- width: 14px;
- height: 14px;
- }
- .home-guide-features {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 40px;
- margin-top: 16px;
- padding: 30px 40px;
- background: #F8FAFC;
- border-radius: 12px;
- border: 1px solid #E2E8F0;
- }
- .home-guide-feature {
- flex: 0 1 auto;
- display: flex;
- align-items: flex-start;
- gap: 12px;
- min-width: 0;
- }
- .home-guide-feature > :first-child {
- flex-shrink: 0;
- width: 38px;
- height: 38px;
- }
- .home-guide-feature > div {
- flex: 0 1 auto;
- min-width: 0;
- }
- .home-guide-feature-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 18px;
- color: #0F172A;
- line-height: 26px;
- text-align: left;
- white-space: nowrap;
- }
- .home-guide-feature-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- white-space: nowrap;
- }
- .home-guide-access-tabs {
- display: flex;
- gap: 24px;
- margin-top: 20px;
- }
- .home-guide-access-tab {
- padding: 0;
- border: none;
- background: transparent;
- font-size: 14px;
- color: #64748B;
- cursor: pointer;
- }
- .home-guide-access-tab.is-active {
- color: #1678FF;
- font-weight: 600;
- }
- .home-guide-block-tools .home-guide-block-head {
- align-items: center;
- gap: 16px;
- }
- .home-guide-block-tools .home-guide-block-num {
- width: 46px;
- height: 46px;
- background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
- box-shadow: 0px 8px 20px 0px rgba(59, 130, 246, 0.24);
- border-radius: 14px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #FFFFFF;
- line-height: 26px;
- text-align: center;
- }
- .home-guide-block-tools .home-guide-block-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 22px;
- color: #0F172A;
- line-height: 30px;
- text-align: left;
- }
- .home-guide-block-tools .home-guide-block-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-block-tools .home-guide-access-tabs {
- gap: 32px;
- margin-top: 26px;
- }
- .home-guide-block-tools .home-guide-access-tab {
- position: relative;
- padding: 0 0 13px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 18px;
- color: #0F172A;
- line-height: 25px;
- text-align: center;
- }
- .home-guide-block-tools .home-guide-access-tab.is-active {
- font-weight: 600;
- color: #1678FF;
- }
- .home-guide-block-tools .home-guide-access-tab.is-active::after {
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- height: 3px;
- background: #1678FF;
- }
- .home-guide-tool-panel {
- margin-top: 16px;
- padding: 20px;
- background: #F8FAFC;
- border-radius: 12px;
- border: 1px solid #E2E8F0;
- }
- .home-guide-tool-tabs {
- display: flex;
- justify-content: center;
- gap: 12px;
- }
- .home-guide-tool-tab {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- margin: 0;
- padding: 10px 20px;
- border: 1px solid #E2E8F0;
- border-radius: 12px;
- background: #FFFFFF;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 14px;
- color: #475569;
- line-height: 20px;
- text-align: center;
- cursor: pointer;
- }
- .home-guide-tool-tab-icon {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- }
- .home-guide-tool-tab.is-active {
- border: none;
- background: linear-gradient(107deg, #3B82F6 0%, #6366F1 100%);
- box-shadow: 0px 4px 14px 0px rgba(59, 130, 246, 0.24);
- font-weight: 600;
- color: #FFFFFF;
- }
- .home-guide-tool-body {
- display: flex;
- gap: 20px;
- margin-top: 20px;
- align-items: stretch;
- min-width: 0;
- }
- .home-guide-pending-body {
- min-height: 280px;
- }
- .home-guide-ima-body {
- align-items: stretch;
- }
- .home-guide-doubao-body {
- align-items: flex-start;
- min-width: 0;
- }
- .home-guide-doubao-body .home-guide-ima-left {
- flex: 1 1 0;
- min-width: 0;
- }
- .home-guide-doubao-right {
- flex: 1 1 0;
- min-width: 0;
- max-width: 608px;
- display: flex;
- justify-content: flex-end;
- align-items: flex-start;
- }
- .home-guide-doubao-img {
- display: block;
- width: 100%;
- max-width: 100%;
- height: auto;
- object-fit: contain;
- }
- .home-guide-ima-left,
- .home-guide-ima-right {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- }
- .home-guide-ima-right {
- gap: 16px;
- }
- .home-guide-ima-alert {
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 12px 16px;
- background: #FFF7E6;
- border-radius: 12px;
- border: 1px solid #FFD591;
- }
- .home-guide-ima-alert-icon {
- width: 16px;
- height: 16px;
- flex-shrink: 0;
- color: #F59E0B;
- }
- .home-guide-ima-alert-text {
- flex: 1;
- min-width: 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #78350F;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-ima-steps {
- display: flex;
- flex-direction: column;
- gap: 18px;
- margin-top: 18px;
- }
- .home-guide-ima-step {
- display: flex;
- align-items: center;
- gap: 16px;
- }
- .home-guide-ima-step-num {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- width: 32px;
- height: 32px;
- background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
- box-shadow: 0px 4px 12px 0px rgba(59, 130, 246, 0.3);
- border-radius: 10px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 15px;
- color: #FFFFFF;
- line-height: 20px;
- text-align: center;
- }
- .home-guide-ima-step-title {
- flex: 1;
- min-width: 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #1F2937;
- line-height: 22px;
- text-align: left;
- }
- .home-guide-ima-notes {
- margin-top: 20px;
- }
- .home-guide-ima-notes-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 14px;
- color: #1F2937;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-ima-notes-list {
- display: flex;
- flex-direction: column;
- gap: 8px;
- margin: 8px 0 0;
- padding: 0;
- list-style: none;
- }
- .home-guide-ima-notes-list li {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #6B7280;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-ima-notes-list li::before {
- content: "";
- flex-shrink: 0;
- width: 6px;
- height: 6px;
- margin-top: 7px;
- background: #1678FF;
- border-radius: 6px;
- }
- .home-guide-ima-panel {
- display: flex;
- flex-direction: column;
- padding: 20px;
- background: #1E293B;
- border-radius: 12px;
- }
- .home-guide-ima-panel--config {
- gap: 10px;
- }
- .home-guide-ima-panel--verify {
- gap: 12px;
- }
- .home-guide-ima-panel-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 12px;
- color: #94A3B8;
- line-height: 16px;
- text-align: left;
- }
- .home-guide-ima-panel-line {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #E2E8F0;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-ima-panel-hint {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #94A3B8;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-ima-quote {
- width: fit-content;
- max-width: 100%;
- box-sizing: border-box;
- padding: 6px 16px;
- background: #213040;
- border-radius: 4px;
- border: 1px solid #454E5A;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 12px;
- color: #86EFAC;
- line-height: 16px;
- text-align: center;
- }
- .home-guide-ima-check {
- display: flex;
- align-items: center;
- gap: 9px;
- }
- .home-guide-ima-check-marks {
- display: inline-flex;
- align-items: center;
- gap: 9px;
- flex-shrink: 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #10B981;
- line-height: 20px;
- }
- .home-guide-ima-check-text {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #E2E8F0;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-cli-body {
- display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
- grid-template-areas:
- "head ."
- "title panel"
- "steps panel";
- column-gap: 20px;
- row-gap: 20px;
- }
- .home-guide-cli-head {
- grid-area: head;
- display: flex;
- align-items: center;
- gap: 14px;
- }
- .home-guide-cli-logo-icon {
- width: 38px;
- height: 38px;
- flex-shrink: 0;
- }
- .home-guide-cli-head-copy {
- min-width: 0;
- }
- .home-guide-cli-name {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- }
- .home-guide-cli-pkg {
- font-family: Menlo, Menlo;
- font-weight: 700;
- font-size: 14px;
- color: #0F172A;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-cli-sep {
- margin: 0 8px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- }
- .home-guide-cli-alias {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-cli-tip {
- margin-top: 2px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #94A3B8;
- line-height: 16px;
- text-align: left;
- }
- .home-guide-cli-steps-title {
- grid-area: title;
- margin: 0;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 16px;
- color: #0F172A;
- line-height: 24px;
- text-align: left;
- }
- .home-guide-cli-steps {
- grid-area: steps;
- min-width: 0;
- }
- .home-guide-cli-panel {
- grid-area: panel;
- align-self: stretch;
- min-width: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- border-radius: 12px;
- background: #1E293B;
- }
- .home-guide-cli-step {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- padding: 20px 0;
- border-bottom: 1px solid #E2E8F0;
- }
- .home-guide-cli-step:first-child {
- padding-top: 0;
- }
- .home-guide-cli-step:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .home-guide-cli-step-num {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- width: 32px;
- height: 32px;
- background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
- box-shadow: 0px 4px 12px 0px rgba(139, 92, 246, 0.3);
- border-radius: 10px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 15px;
- color: #FFFFFF;
- line-height: 20px;
- text-align: center;
- }
- .home-guide-cli-step-copy {
- min-width: 0;
- }
- .home-guide-cli-step-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 16px;
- color: #0F172A;
- line-height: 24px;
- text-align: left;
- }
- .home-guide-cli-step-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-cli-list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 14px 16px;
- background: #1E293B;
- }
- .home-guide-cli-command {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: 12px;
- padding: 12px;
- background: #0F172A;
- border-radius: 10px;
- }
- .home-guide-cli-command-main {
- min-width: 0;
- flex: 1;
- }
- .home-guide-cli-command-label {
- display: flex;
- align-items: center;
- gap: 6px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 11px;
- color: #94A3B8;
- line-height: 16px;
- text-align: left;
- white-space: nowrap;
- }
- .home-guide-cli-command-dot {
- width: 6px;
- height: 6px;
- flex-shrink: 0;
- background: #A78BFA;
- border-radius: 6px;
- }
- .home-guide-cli-command-text {
- display: block;
- margin-top: 6px;
- min-width: 0;
- white-space: pre-wrap;
- word-break: break-all;
- font-family: Consolas, Monaco, monospace;
- font-size: 13px;
- color: #7DD3FC;
- line-height: 18px;
- }
- .home-guide-cli-command-copy {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- margin: 0;
- padding: 4px 8px;
- border: none;
- border-radius: 6px;
- background: rgba(139, 92, 246, 0.2);
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 11px;
- color: #A78BFA;
- line-height: 14px;
- text-align: left;
- cursor: pointer;
- white-space: nowrap;
- }
- .home-guide-cli-command-copy-icon {
- width: 12px;
- height: 12px;
- }
- .home-guide-cli-footer {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-top: auto;
- padding: 18px 16px;
- background: #0F172A;
- border: 0 solid #334155;
- }
- .home-guide-cli-footer-tip {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #94A3B8;
- line-height: 16px;
- text-align: left;
- }
- .home-guide-cli-copy-all {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- margin: 0;
- padding: 6px 12px;
- border: none;
- border-radius: 8px;
- background: #1678FF;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 16px;
- text-align: left;
- cursor: pointer;
- }
- .home-guide-cli-copy-all-icon {
- width: 12px;
- height: 12px;
- }
- .home-guide-tool-steps,
- .home-guide-code {
- flex: 1;
- min-width: 0;
- }
- .home-guide-tool-steps {
- display: flex;
- flex-direction: column;
- }
- .home-guide-tool-step+.home-guide-tool-step {
- margin-top: 18px;
- }
- .home-guide-tool-step {
- display: flex;
- align-items: flex-start;
- gap: 16px;
- }
- .home-guide-tool-step-num {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- width: 32px;
- height: 32px;
- background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
- box-shadow: 0px 4px 12px 0px rgba(59, 130, 246, 0.3);
- border-radius: 10px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 15px;
- color: #FFFFFF;
- line-height: 20px;
- text-align: center;
- }
- .home-guide-tool-step-copy {
- flex: 1;
- min-width: 0;
- }
- .home-guide-tool-step-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 16px;
- color: #0F172A;
- line-height: 24px;
- text-align: left;
- }
- .home-guide-tool-step-desc {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-note {
- margin-top: 20px;
- padding: 16px;
- background: linear-gradient(107deg, #FFFBEB 0%, #FEF3C7 100%);
- border-radius: 12px;
- border: 1px solid #FDE68A;
- }
- .home-guide-note-head {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .home-guide-note-icon-box {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- padding: 6px;
- background: #F59E0B;
- border-radius: 6px;
- }
- .home-guide-note-icon {
- width: 12px;
- height: 12px;
- color: #FFFFFF;
- }
- .home-guide-note-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 15px;
- color: #92400E;
- line-height: 22px;
- text-align: left;
- }
- .home-guide-note-list {
- margin: 10px 0 0;
- padding-left: 18px;
- list-style: disc;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #78350F;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-note-list li {
- margin-bottom: 10px;
- }
- .home-guide-note-list li:last-child {
- margin-bottom: 0;
- }
- .home-guide-note-list li::marker {
- color: #D97706;
- }
- .home-guide-code {
- position: relative;
- overflow: hidden;
- border-radius: 12px;
- background: #1E293B;
- box-shadow: 0px 8px 24px 0px rgba(15, 23, 42, 0.18);
- /* 高度由左侧步骤区撑开,代码内容不撑高整块区域 */
- }
- .home-guide-code-bar {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 14px;
- border-bottom: 1px solid rgba(148, 163, 184, 0.16);
- background: #1E293B;
- }
- .home-guide-code-dots {
- display: flex;
- align-items: center;
- gap: 6px;
- width: 72px;
- }
- .home-guide-code-dots span {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- }
- .home-guide-code-dots span:nth-child(1) {
- background: #FF5F57;
- }
- .home-guide-code-dots span:nth-child(2) {
- background: #FEBC2E;
- }
- .home-guide-code-dots span:nth-child(3) {
- background: #28C840;
- }
- .home-guide-code-title {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 13px;
- color: #94A3B8;
- line-height: 18px;
- }
- .home-guide-code-copy {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- margin: 0;
- padding: 6px 10px;
- border: none;
- border-radius: 6px;
- background: #1678FF;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 12px;
- color: #FFFFFF;
- line-height: 16px;
- cursor: pointer;
- }
- .home-guide-code-copy-icon {
- width: 14px;
- height: 14px;
- }
- .home-guide-code-body {
- position: absolute;
- top: 49px;
- right: 0;
- bottom: 0;
- left: 0;
- display: flex;
- gap: 14px;
- padding: 14px 16px 18px;
- overflow: auto;
- }
- .home-guide-code-lines {
- display: flex;
- flex-direction: column;
- flex-shrink: 0;
- font-family: Consolas, Monaco, monospace;
- font-size: 13px;
- color: #64748B;
- line-height: 22px;
- text-align: right;
- user-select: none;
- }
- .home-guide-code-pre {
- margin: 0;
- flex: 1;
- min-width: 0;
- font-family: Consolas, Monaco, monospace;
- font-size: 13px;
- line-height: 22px;
- white-space: pre-wrap;
- word-break: break-all;
- color: #E2E8F0;
- }
- .home-guide-code-pre .code-key {
- color: #7DD3FC;
- }
- .home-guide-code-pre .code-string {
- color: #86EFAC;
- }
- .home-guide-code-pre .code-punct {
- color: #CBD5E1;
- }
- .home-guide-block-verify .home-guide-block-head {
- align-items: center;
- gap: 12px;
- }
- .home-guide-block-verify .home-guide-block-num {
- width: 46px;
- height: 46px;
- background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
- box-shadow: 0px 8px 20px 0px rgba(139, 92, 246, 0.24);
- border-radius: 14px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #FFFFFF;
- line-height: 26px;
- text-align: center;
- }
- .home-guide-block-verify .home-guide-block-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #0F172A;
- line-height: 28px;
- text-align: left;
- }
- .home-guide-block-verify .home-guide-block-desc {
- margin-top: 2px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #64748B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-verify {
- display: flex;
- gap: 16px;
- margin-top: 16px;
- }
- .home-guide-verify-card {
- flex: 1;
- min-width: 0;
- padding: 20px;
- background: #F8FAFC;
- border-radius: 12px;
- border: 1px solid #E2E8F0;
- }
- .home-guide-verify-line {
- height: 4px;
- border-radius: 0;
- }
- .home-guide-verify-card:nth-child(1) .home-guide-verify-line {
- background: linear-gradient(270deg, #059669 0%, #10B981 100%);
- }
- .home-guide-verify-card:nth-child(2) .home-guide-verify-line {
- background: linear-gradient(270deg, #3B82F6 0%, #60A5FA 100%);
- }
- .home-guide-verify-card:nth-child(3) .home-guide-verify-line {
- background: linear-gradient(270deg, #8B5CF6 0%, #A78BFA 100%);
- }
- .home-guide-verify-head {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-top: 10px;
- }
- .home-guide-verify-icon-box {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- padding: 10px;
- border-radius: 10px;
- }
- .home-guide-verify-card:nth-child(1) .home-guide-verify-icon-box {
- background: #ECFDF5;
- }
- .home-guide-verify-card:nth-child(2) .home-guide-verify-icon-box {
- background: #DBEAFE;
- }
- .home-guide-verify-card:nth-child(3) .home-guide-verify-icon-box {
- background: #F3E8FF;
- }
- .home-guide-verify-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 16px;
- color: #0F172A;
- line-height: 24px;
- text-align: left;
- }
- .home-guide-verify-list {
- display: flex;
- flex-direction: column;
- gap: 10px;
- margin-top: 10px;
- }
- .home-guide-verify-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- padding: 12px 10px;
- background: #FFFFFF;
- border-radius: 10px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- font-size: 13px;
- color: #334155;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-verify-item span {
- flex: 1;
- min-width: 0;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .home-guide-verify-copy {
- flex-shrink: 0;
- color: #94A3B8;
- cursor: pointer;
- }
- .home-footer {
- background: #F5F7FA;
- border-radius: 0;
- padding: 70px 0;
- .home-footer-inner {
- box-sizing: border-box;
- flex-direction: row;
- justify-content: space-between;
- align-items: flex-start;
- gap: 24px;
- }
- .home-footer-left {
- flex: 1;
- min-width: 0;
- }
- .home-footer-left,
- .home-footer-right {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .home-footer-right {
- flex-shrink: 0;
- align-items: flex-end;
- }
- .home-footer-brand {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .home-footer-brand-icon {
- width: 24px;
- height: 24px;
- flex-shrink: 0;
- }
- .home-footer-brand-text {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #333333;
- line-height: 24px;
- text-align: left;
- }
- .home-footer-legal {
- margin: 0;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- font-family: PingFang SC, PingFang SC;
- font-weight: 300;
- font-size: 12px;
- color: #666666;
- line-height: 20px;
- text-align: left;
- }
- .home-footer-legal-sep {
- margin: 0 4px;
- }
- .home-footer-icons {
- display: flex;
- align-items: center;
- gap: 16px;
- }
- .home-footer-icon-item {
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- &:hover {
- .home-footer-popover {
- opacity: 1;
- visibility: visible;
- transform: translateX(-50%) translateY(0);
- pointer-events: auto;
- }
- }
- }
- .home-footer-icon {
- cursor: pointer;
- }
- .home-footer-popover {
- box-sizing: border-box;
- position: absolute;
- left: 50%;
- bottom: calc(100% + 10px);
- z-index: 20;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- width: 140px;
- padding: 10px;
- background: #FFFFFF;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
- border-radius: 8px;
- opacity: 0;
- visibility: hidden;
- transform: translateX(-50%) translateY(4px);
- pointer-events: none;
- transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
- }
- .home-footer-popover-img {
- display: block;
- width: 100%;
- height: auto;
- }
- .home-footer-popover-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #333333;
- line-height: 20px;
- text-align: left;
- }
- .home-footer-popover-sub {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #666666;
- line-height: 16px;
- text-align: left;
- }
- .home-footer-links {
- display: flex;
- align-items: center;
- gap: 24px;
- white-space: nowrap;
- }
- .home-footer-link {
- font-family: PingFang SC, PingFang SC;
- font-weight: 300;
- font-size: 14px;
- color: #333333;
- line-height: 20px;
- text-align: left;
- text-decoration: none;
- cursor: pointer;
- &:link,
- &:visited,
- &:active {
- color: #333333;
- text-decoration: none;
- }
- &:hover {
- color: #1678FF;
- text-decoration: none;
- }
- }
- }
- @media (max-width: 1200px) {
- .home-page {
- --home-inline-padding: 40px;
- }
- .home-hero {
- padding-top: 48px;
- padding-bottom: 48px;
- gap: 0;
- }
- .home-hero-visual {
- display: none;
- }
- .home-hero-copy {
- flex: 1 1 auto;
- width: 100%;
- max-width: 100%;
- }
- .home-hero-title-main {
- font-size: 40px;
- line-height: 56px;
- }
- .home-hero-title-sub {
- font-size: 32px;
- line-height: 44px;
- }
- .home-hero-desc {
- margin-top: 40px;
- font-size: 16px;
- line-height: 28px;
- }
- .home-hero-actions {
- margin-top: 48px;
- }
- .home-overview-inner {
- gap: 80px;
- }
- .home-overview-stat-card {
- padding: 24px 12px;
- }
- .home-overview-stat-card .home-overview-card-label {
- font-size: 16px;
- line-height: 22px;
- }
- .home-scenes-lower {
- padding-top: 36px;
- padding-bottom: 36px;
- }
- .home-scenes-demo {
- grid-template-columns: 1fr;
- gap: 32px;
- }
- .home-scenes-demo-preview {
- align-self: stretch;
- width: 100%;
- }
- .home-guide-timeline-item {
- max-width: 160px;
- }
- .home-guide-timeline-dot {
- width: 44px;
- height: 44px;
- font-size: 18px;
- line-height: 26px;
- }
- .home-guide-timeline-name {
- margin-top: 8px;
- font-size: 16px;
- line-height: 22px;
- }
- .home-guide-timeline-desc {
- font-size: 12px;
- line-height: 18px;
- }
- .home-guide-timeline-line {
- max-width: 100px;
- margin-top: 20px;
- }
- .home-guide-doubao-body {
- flex-direction: column;
- align-items: stretch;
- }
- .home-guide-doubao-right {
- max-width: 100%;
- justify-content: center;
- }
- .home-guide-tool-body:not(.home-guide-ima-body) {
- flex-direction: column;
- align-items: stretch;
- }
- .home-guide-tool-body:not(.home-guide-ima-body) .home-guide-tool-steps {
- flex: none;
- width: 100%;
- }
- .home-guide-tool-body:not(.home-guide-ima-body) .home-guide-code {
- flex: none;
- width: 100%;
- min-height: 360px;
- }
- }
- @media (max-width: 768px) {
- .home-page {
- --home-inline-padding: 24px;
- }
- .home-hero {
- padding-top: 32px;
- padding-bottom: 32px;
- }
- .home-hero-title {
- margin-top: 20px;
- }
- .home-hero-title-main {
- font-size: 32px;
- line-height: 44px;
- }
- .home-hero-title-sub {
- font-size: 24px;
- line-height: 34px;
- }
- .home-hero-desc {
- margin-top: 24px;
- font-size: 14px;
- line-height: 24px;
- }
- .home-hero-actions {
- margin-top: 32px;
- gap: 12px;
- }
- .home-hero-btn {
- font-size: 14px;
- }
- .home-hero-btn-primary,
- .home-hero-btn-secondary {
- padding: 12px 20px;
- }
- .home-overview-inner {
- gap: 48px;
- }
- .home-overview,
- .home-scenes-upper,
- .home-guide {
- padding-top: 48px;
- padding-bottom: 48px;
- }
- .home-overview-stats,
- .home-overview-services,
- .home-scenes-cards {
- flex-direction: column;
- }
- .home-overview-stat-card,
- .home-overview-service-card,
- .home-scenes-card {
- width: 100%;
- }
- .home-overview-stat-card {
- padding: 24px 20px;
- }
- .home-scenes-lower {
- margin: 24px 0 48px;
- padding-top: 24px;
- padding-bottom: 24px;
- }
- .home-scenes-demo {
- gap: 24px;
- }
- .home-scenes-demo-title {
- font-size: 24px;
- line-height: 32px;
- }
- .home-guide-timeline-item {
- max-width: 108px;
- }
- .home-guide-timeline-dot {
- width: 40px;
- height: 40px;
- font-size: 16px;
- line-height: 24px;
- }
- .home-guide-timeline-name {
- font-size: 14px;
- line-height: 20px;
- }
- .home-guide-timeline-desc {
- font-size: 11px;
- line-height: 16px;
- }
- .home-guide-timeline-line {
- min-width: 12px;
- max-width: 48px;
- margin-top: 18px;
- height: 3px;
- }
- }
- </style>
|