| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017 |
- <template>
- <div class="home-content-stack">
- <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">
- 在对话中发送「用环评云助手MCP检索《陶瓷工业大气污染物排放标准》对氮氧化物的分级控制要求」
- </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 大写)</li>
- <li>不需要在 URL 末尾添加 /mcp 后缀</li>
- <li>{{ guideToken ? "JSON 配置文件已自动填入真实 Token" : "将 YOUR_ACCESS_TOKEN 替换为真实 Token" }}</li>
- <li>若工具未立即出现,完全退出并重新打开 WorkBuddy 后再验证</li>
- </ul>
- </div>
- </div>
- <div class="home-guide-workbuddy-right">
- <div class="home-guide-workbuddy-carousel">
- <div
- class="home-guide-workbuddy-track"
- :style="{ transform: `translateX(-${workbuddySlideIndex * 100}%)` }"
- >
- <div class="home-guide-workbuddy-slide home-guide-workbuddy-slide--code">
- <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.prompt</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 guideWorkbuddyMcpLines" :key="line">{{ line }}</span>
- </div>
- <pre class="home-guide-code-pre" v-html="guideWorkbuddyMcpJsonHtml"></pre>
- </div>
- </div>
- </div>
- <div class="home-guide-workbuddy-slide home-guide-workbuddy-slide--img">
- <img
- src="@/assets/images/WorkBuddy_img.png"
- alt="WorkBuddy 配置示意"
- class="home-guide-workbuddy-img"
- />
- </div>
- </div>
- <button
- type="button"
- class="home-guide-workbuddy-arrow is-prev"
- aria-label="上一张"
- @click="setWorkbuddySlide(workbuddySlideIndex - 1)"
- >
- ‹
- </button>
- <button
- type="button"
- class="home-guide-workbuddy-arrow is-next"
- aria-label="下一张"
- @click="setWorkbuddySlide(workbuddySlideIndex + 1)"
- >
- ›
- </button>
- <div class="home-guide-workbuddy-indicators">
- <button
- v-for="(_, index) in 2"
- :key="index"
- type="button"
- class="home-guide-workbuddy-dot"
- :class="{ 'is-active': workbuddySlideIndex === index }"
- :aria-label="`切换到第 ${index + 1} 张`"
- @click="setWorkbuddySlide(index)"
- />
- </div>
- </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, index) in guideDoubaoNotes" :key="index">
- {{ item }}
- </li>
- </ul>
- </div>
- </div>
- <div class="home-guide-doubao-right">
- <div class="home-guide-doubao-form">
- <div class="home-guide-doubao-form-head">
- <div class="home-guide-doubao-form-title">编辑自定义连接器</div>
- <div class="home-guide-doubao-form-sub">自定义连接器仅支持在本地电脑中使用</div>
- </div>
- <div class="home-guide-doubao-form-row">
- <div class="home-guide-doubao-form-field">
- <div class="home-guide-doubao-form-label">
- 服务器名称 <span class="is-required">*</span>
- </div>
- <div class="home-guide-doubao-form-select" @click.stop>
- <div
- class="home-guide-doubao-form-input"
- :class="{ 'is-open': doubaoSelectOpen }"
- @click="toggleDoubaoSelect"
- >
- <span>{{ doubaoServerName }}</span>
- <div class="home-guide-doubao-form-icons">
- <button
- type="button"
- class="home-guide-doubao-form-copy"
- @click.stop="copyText(doubaoServerName)"
- >
- <icon-svg name="http_copy" size="16px" />
- </button>
- <icon-svg name="icon_arrow_server" size="12px" class="home-guide-doubao-form-arrow" />
- </div>
- </div>
- <Transition name="home-guide-doubao-dropdown">
- <div v-if="doubaoSelectOpen" class="home-guide-doubao-form-dropdown">
- <button
- v-for="item in doubaoServerList"
- :key="item.id"
- type="button"
- class="home-guide-doubao-form-option"
- :class="{ 'is-active': String(item.id) === doubaoSelectedId }"
- @click="selectDoubaoServer(item)"
- >
- {{ item.name }}
- </button>
- </div>
- </Transition>
- </div>
- </div>
- <div class="home-guide-doubao-form-field home-guide-doubao-form-field--type">
- <div class="home-guide-doubao-form-label">传输类型</div>
- <div class="home-guide-doubao-form-input">HTTP</div>
- </div>
- </div>
- <div class="home-guide-doubao-form-field">
- <div class="home-guide-doubao-form-label">
- 服务器 URL <span class="is-required">*</span>
- </div>
- <div class="home-guide-doubao-form-input">
- <span>{{ doubaoServerUrl }}</span>
- <button
- type="button"
- class="home-guide-doubao-form-copy"
- @click="copyText(doubaoServerUrl)"
- >
- <icon-svg name="http_copy" size="16px" />
- </button>
- </div>
- </div>
- <div class="home-guide-doubao-form-field">
- <div class="home-guide-doubao-form-label">自定义 Headers</div>
- <div class="home-guide-doubao-form-headers">
- <div class="home-guide-doubao-form-input">
- <span>Authorization</span>
- <button
- type="button"
- class="home-guide-doubao-form-copy"
- @click="copyText('Authorization')"
- >
- <icon-svg name="http_copy" size="16px" />
- </button>
- </div>
- <button
- v-if="!guideToken"
- type="button"
- class="home-guide-doubao-form-token"
- @click="createToken"
- >
- 点击获取token
- </button>
- <div v-else class="home-guide-doubao-form-input home-guide-doubao-form-token-value">
- <span>
- <template v-if="guideTokenVisible">{{ guideToken }}</template>
- <template v-else>{{ guideTokenMasked.head }}{{ guideTokenMasked.middle }}{{ guideTokenMasked.tail }}</template>
- </span>
- <button
- type="button"
- class="home-guide-doubao-form-copy"
- @click="guideTokenVisible = !guideTokenVisible"
- >
- <icon-svg
- :name="guideTokenVisible ? 'eye_not_displayed' : 'eye_show'"
- size="24px"
- />
- </button>
- <button
- type="button"
- class="home-guide-doubao-form-copy"
- @click="copyText(`Bearer ${guideToken}`)"
- >
- <icon-svg name="http_copy" size="16px" />
- </button>
- </div>
- </div>
- </div>
- </div>
- </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>{{ guideToken ? "JSON 配置文件已自动填入真实 Token" : "将 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" v-html="guideMcpJsonHtml"></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>{{ guideToken ? "JSON 配置文件已自动填入真实 Token" : "将 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" v-html="guideMcpJsonHtml"></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>
- </div>
- </template>
- <script setup>
- import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
- import { ElMessage } from "element-plus";
- import { getMcpToken, createMcpToken, getMcpServerList } from "@/api/mcp";
- import { requireUserLogin } from "@/utils/auth";
- import globalStore from "@/store/modules/global";
- const global = globalStore();
- 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();
- fetchDoubaoServerList();
- document.addEventListener("click", closeDoubaoSelect);
- });
- onBeforeUnmount(() => {
- document.removeEventListener("click", closeDoubaoSelect);
- stopWorkbuddyAutoScroll();
- });
- const guideAccessTab = ref("mcp");
- const guideToolTab = ref("qianwen");
- const workbuddySlideIndex = ref(0);
- let workbuddyAutoScrollTimer = null;
- const setWorkbuddySlide = (index) => {
- const total = 2;
- workbuddySlideIndex.value = ((index % total) + total) % total;
- };
- const stopWorkbuddyAutoScroll = () => {
- if (workbuddyAutoScrollTimer != null) {
- clearTimeout(workbuddyAutoScrollTimer);
- workbuddyAutoScrollTimer = null;
- }
- };
- const startWorkbuddyAutoScroll = () => {
- stopWorkbuddyAutoScroll();
- workbuddySlideIndex.value = 0;
- workbuddyAutoScrollTimer = setTimeout(() => {
- workbuddyAutoScrollTimer = null;
- workbuddySlideIndex.value = 1;
- }, 3000);
- };
- watch(
- [guideAccessTab, guideToolTab],
- ([accessTab, toolTab]) => {
- if (accessTab === "mcp" && toolTab === "workbuddy") {
- startWorkbuddyAutoScroll();
- return;
- }
- stopWorkbuddyAutoScroll();
- },
- { immediate: true },
- );
- const guideTools = [
- { key: "qianwen", label: "千问办公", iconName: "qianwen_icon" },
- { key: "workbuddy", label: "WorkBuddy", iconName: "WorkBuddy_icon" },
- { key: "doubao", label: "豆包", iconName: "doubao_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检索《陶瓷工业大气污染物排放标准》对氮氧化物的分级控制要求」",
- },
- ],
- notes: [
- "请参照右图依次填入参数,每个服务对应一个URL",
- "请在豆包-工作-连接器中选择对应的MCP进行检索",
- "自定义 Headers 内需要填写页面「获取 Token」生成的真实 Token",
- ],
- };
- const guideDoubaoNotes = computed(() => {
- const notes = [...guideDoubaoContent.notes];
- if (guideToken.value) {
- notes[2] = "右侧输入框内已自动填入真实 Token ,请复制到豆包内使用";
- }
- return notes;
- });
- const doubaoServerList = ref([]);
- const doubaoSelectedId = ref("");
- const doubaoSelectOpen = ref(false);
- const doubaoSelectedServer = computed(
- () =>
- doubaoServerList.value.find((item) => String(item.id) === doubaoSelectedId.value) ||
- doubaoServerList.value[0] ||
- null,
- );
- const doubaoServerName = computed(() => {
- const name = doubaoSelectedServer.value?.name || "法规导则-关键词检索";
- return `环评云助手MCP(${name})`;
- });
- const doubaoServerUrl = computed(
- () => doubaoSelectedServer.value?.url || "https://mcp.eiacloud.com/law-keyword",
- );
- const fetchDoubaoServerList = async () => {
- try {
- let list = Array.isArray(global.mcpServerList) ? global.mcpServerList : [];
- if (!list.length) {
- const res = await getMcpServerList();
- list = Array.isArray(res?.data) ? res.data : [];
- if (list.length) global.setMcpServerList(list);
- }
- const openList = list.filter(
- (item) => item.openStatus == null || Number(item.openStatus) === 1,
- );
- doubaoServerList.value = openList;
- const exists = openList.some((item) => String(item.id) === doubaoSelectedId.value);
- if (!exists && openList[0]) {
- doubaoSelectedId.value = String(openList[0].id || "");
- }
- } catch (error) {
- console.error(error);
- }
- };
- const toggleDoubaoSelect = () => {
- if (!doubaoServerList.value.length) return;
- doubaoSelectOpen.value = !doubaoSelectOpen.value;
- };
- const selectDoubaoServer = (item) => {
- doubaoSelectedId.value = String(item?.id || "");
- doubaoSelectOpen.value = false;
- };
- const closeDoubaoSelect = () => {
- doubaoSelectOpen.value = false;
- };
- 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 buildGuideServerKey = (code) => {
- const value = String(code || "mcp-server");
- return value.startsWith("hpyzs-") ? value : `hpyzs-${value}`;
- };
- const guideMcpJson = computed(() => {
- const token = guideAccessToken.value;
- const list = Array.isArray(global.mcpServerList) ? global.mcpServerList : [];
- const mcpServers = {};
- list.forEach((item) => {
- const serverKey = buildGuideServerKey(item?.code);
- mcpServers[serverKey] = {
- url: item?.url || "",
- headers: {
- Authorization: `Bearer ${token}`,
- },
- };
- });
- return JSON.stringify({ mcpServers }, null, 2);
- });
- const escapeGuideHtml = (str) =>
- String(str)
- .replace(/&/g, "&")
- .replace(/</g, "<")
- .replace(/>/g, ">")
- .replace(/"/g, """);
- const highlightGuideJson = (jsonText) => {
- const text = String(jsonText ?? "");
- const re =
- /("(?:\\.|[^"\\])*")\s*:|"((?:\\.|[^"\\])*)"|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|\b(true|false|null)\b|([{}[\],:])/g;
- let last = 0;
- let html = "";
- let match;
- while ((match = re.exec(text)) !== null) {
- if (match.index > last) {
- html += `<span class="code-punct">${escapeGuideHtml(text.slice(last, match.index))}</span>`;
- }
- if (match[1] !== undefined) {
- html += `<span class="code-key">${escapeGuideHtml(match[1])}</span><span class="code-punct">:</span>`;
- } else if (match[2] !== undefined) {
- html += `<span class="code-string">"${escapeGuideHtml(match[2])}"</span>`;
- } else if (match[3] !== undefined || match[4] !== undefined) {
- html += `<span class="code-string">${escapeGuideHtml(match[0])}</span>`;
- } else {
- html += `<span class="code-punct">${escapeGuideHtml(match[0])}</span>`;
- }
- last = re.lastIndex;
- }
- if (last < text.length) {
- html += `<span class="code-punct">${escapeGuideHtml(text.slice(last))}</span>`;
- }
- return html;
- };
- const guideMcpJsonHtml = computed(() => highlightGuideJson(guideMcpJson.value));
- const guideWorkbuddyMcpJsonHtml = computed(
- () =>
- `<span class="code-string">这是环评云助手的MCP服务JSON,帮我配置自定义的mcp</span>\n${guideMcpJsonHtml.value}`,
- );
- const guideMcpLines = computed(() =>
- Array.from({ length: guideMcpJson.value.split("\n").length }, (_, i) => i + 1),
- );
- const guideWorkbuddyMcpLines = computed(() => guideMcpLines.value.length + 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-section {
- width: 100%;
- }
- .home-content-stack {
- width: 100%;
- box-sizing: border-box;
- min-width: 0;
- --guide-inline-padding: 40px;
- }
- .home-guide {
- box-sizing: border-box;
- width: 100%;
- min-width: 0;
- padding: var(--guide-inline-padding);
- background: #FFFFFF;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 8px 8px 8px 8px;
- overflow-x: hidden;
- }
- .home-guide-inner {
- width: 100%;
- min-width: 0;
- display: flex;
- flex-direction: column;
- align-items: stretch;
- gap: 32px;
- }
- .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;
- }
- .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: 0 0 auto;
- width: auto;
- max-width: none;
- min-width: 0;
- height: 44px;
- padding: 12px 14px;
- background: #1E293B;
- border-radius: 6px;
- white-space: nowrap;
- }
- .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;
- white-space: nowrap;
- flex: 0 0 auto;
- }
- .home-guide-token-icons {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-left: 20px;
- flex-shrink: 0;
- }
- .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: flex-start;
- justify-content: space-between;
- gap: 40px;
- margin-top: 16px;
- padding: 30px 24px;
- 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;
- :deep(.svg-icon) {
- width: 38px;
- height: 38px;
- flex-shrink: 0;
- }
- > 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-ima-body {
- align-items: stretch;
- }
- .home-guide-ima-left,
- .home-guide-ima-right {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- }
- .home-guide-doubao-body {
- align-items: stretch;
- 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;
- }
- .home-guide-doubao-form {
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- gap: 16px;
- width: 100%;
- height: 100%;
- padding: 16px;
- background: #FFFFFF;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- border-radius: 8px;
- }
- .home-guide-doubao-form-head {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .home-guide-doubao-form-title {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 18px;
- color: #1E293B;
- line-height: 26px;
- text-align: left;
- font-style: normal;
- }
- .home-guide-doubao-form-sub {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #6B7280;
- line-height: 20px;
- text-align: left;
- font-style: normal;
- }
- .home-guide-doubao-form-row {
- display: flex;
- gap: 24px;
- min-width: 0;
- }
- .home-guide-doubao-form-field {
- min-width: 0;
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .home-guide-doubao-form-row .home-guide-doubao-form-field:not(.home-guide-doubao-form-field--type) {
- flex: 2 1 0;
- }
- .home-guide-doubao-form-field--type {
- flex: 1 1 0;
- }
- .home-guide-doubao-form-label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 14px;
- color: #1E293B;
- line-height: 20px;
- text-align: left;
- }
- .home-guide-doubao-form-label .is-required {
- color: #EF4444;
- }
- .home-guide-doubao-form-input {
- display: flex;
- align-items: center;
- gap: 8px;
- box-sizing: border-box;
- padding: 10px 12px;
- background: #FFFFFF;
- border-radius: 8px;
- border: 1px solid #E5E7EB;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #1F2937;
- line-height: 20px;
- text-align: left;
- font-style: normal;
- word-break: break-all;
- }
- .home-guide-doubao-form-input span {
- flex: 1;
- min-width: 0;
- }
- .home-guide-doubao-form-copy {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- margin: 0;
- padding: 0;
- border: none;
- background: transparent;
- color: #94A3B8;
- cursor: pointer;
- }
- .home-guide-doubao-form-icons {
- display: inline-flex;
- align-items: center;
- gap: 14px;
- flex-shrink: 0;
- }
- .home-guide-doubao-form-arrow {
- flex-shrink: 0;
- color: #94A3B8;
- pointer-events: none;
- transition: transform 0.2s ease;
- }
- .home-guide-doubao-form-input.is-open .home-guide-doubao-form-arrow {
- transform: rotate(180deg);
- }
- .home-guide-doubao-form-select {
- position: relative;
- min-width: 0;
- }
- .home-guide-doubao-form-select .home-guide-doubao-form-input {
- cursor: pointer;
- }
- .home-guide-doubao-form-dropdown {
- position: absolute;
- top: calc(100% + 4px);
- left: 0;
- right: 0;
- z-index: 20;
- box-sizing: border-box;
- max-height: 220px;
- overflow-y: auto;
- padding: 6px;
- background: #FFFFFF;
- border: 1px solid #E5E7EB;
- border-radius: 8px;
- box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
- }
- .home-guide-doubao-dropdown-enter-active,
- .home-guide-doubao-dropdown-leave-active {
- transition: opacity 0.2s ease, transform 0.2s ease;
- }
- .home-guide-doubao-dropdown-enter-from,
- .home-guide-doubao-dropdown-leave-to {
- opacity: 0;
- transform: translateY(-6px);
- }
- .home-guide-doubao-form-option {
- display: block;
- width: 100%;
- margin: 0;
- padding: 8px 12px;
- border: none;
- border-radius: 6px;
- background: transparent;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #1F2937;
- line-height: 20px;
- text-align: left;
- cursor: pointer;
- }
- .home-guide-doubao-form-option:hover,
- .home-guide-doubao-form-option.is-active {
- background: #EEF4FF;
- color: #1678FF;
- }
- .home-guide-doubao-form-headers {
- display: flex;
- gap: 8px;
- min-width: 0;
- }
- .home-guide-doubao-form-headers .home-guide-doubao-form-input:first-child {
- flex: 0 0 auto;
- }
- .home-guide-doubao-form-headers .home-guide-doubao-form-input:first-child span {
- flex: none;
- white-space: nowrap;
- }
- .home-guide-doubao-form-token,
- .home-guide-doubao-form-token-value {
- flex: 1 1 0;
- min-width: 0;
- }
- .home-guide-doubao-form-token {
- min-width: 0;
- margin: 0;
- padding: 10px 12px;
- background: #FFFFFF;
- border-radius: 8px;
- border: 1px solid #E5E7EB;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #1678FF;
- line-height: 20px;
- text-align: left;
- font-style: normal;
- cursor: pointer;
- }
- .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,
- .home-guide-workbuddy-right {
- flex: 1;
- min-width: 0;
- }
- .home-guide-workbuddy-right {
- display: flex;
- flex-direction: column;
- min-height: 0;
- }
- .home-guide-workbuddy-carousel {
- position: relative;
- flex: 1;
- min-width: 0;
- min-height: 0;
- overflow: hidden;
- border-radius: 12px;
- }
- .home-guide-workbuddy-track {
- display: flex;
- height: 100%;
- transition: transform 0.35s ease;
- }
- .home-guide-workbuddy-slide {
- flex: 0 0 100%;
- width: 100%;
- min-width: 100%;
- min-height: 0;
- }
- .home-guide-workbuddy-slide--code {
- display: flex;
- }
- .home-guide-workbuddy-slide--code .home-guide-code {
- flex: 1;
- min-width: 0;
- min-height: 0;
- height: 100%;
- }
- .home-guide-workbuddy-slide--img {
- display: flex;
- align-items: stretch;
- overflow: hidden;
- background: #FFFFFF;
- border: 1px solid #E2E8F0;
- border-radius: 12px;
- box-sizing: border-box;
- }
- .home-guide-workbuddy-img {
- display: block;
- width: 100%;
- height: 100%;
- object-fit: contain;
- object-position: center;
- background: #F8FAFC;
- }
- .home-guide-workbuddy-arrow {
- position: absolute;
- top: 50%;
- z-index: 2;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 28px;
- height: 28px;
- margin: 0;
- padding: 0;
- border: none;
- border-radius: 50%;
- background: rgba(15, 23, 42, 0.55);
- color: #FFFFFF;
- font-size: 20px;
- line-height: 1;
- cursor: pointer;
- opacity: 0;
- pointer-events: none;
- transform: translateY(-50%);
- transition: opacity 0.2s ease;
- }
- .home-guide-workbuddy-arrow.is-prev {
- left: 10px;
- }
- .home-guide-workbuddy-arrow.is-next {
- right: 10px;
- }
- .home-guide-workbuddy-carousel:hover .home-guide-workbuddy-arrow {
- opacity: 1;
- pointer-events: auto;
- }
- .home-guide-workbuddy-indicators {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 10px;
- z-index: 2;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- pointer-events: none;
- }
- .home-guide-workbuddy-dot {
- width: 7px;
- height: 7px;
- margin: 0;
- padding: 0;
- border: none;
- border-radius: 50%;
- background: rgba(148, 163, 184, 0.7);
- cursor: pointer;
- pointer-events: auto;
- }
- .home-guide-workbuddy-dot.is-active {
- background: #1678FF;
- }
- .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;
- color: #E2E8F0;
- }
- .home-guide-code-pre :deep(.code-key) {
- color: #7DD3FC;
- }
- .home-guide-code-pre :deep(.code-string) {
- color: #86EFAC;
- }
- .home-guide-code-pre :deep(.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;
- }
- @media (max-width: 1200px) {
- .home-content-stack {
- --guide-inline-padding: 24px;
- }
- .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-block-token .home-guide-block-head {
- flex-wrap: wrap;
- row-gap: 16px;
- }
- .home-guide-block-token .home-guide-block-copy {
- flex: 1 1 0;
- min-width: 0;
- }
- .home-guide-block-token .home-guide-token {
- flex: 1 1 100%;
- width: 100%;
- margin-left: 0;
- flex-wrap: nowrap;
- min-width: 0;
- }
- .home-guide-token-bar {
- flex: 0 0 auto;
- width: auto;
- max-width: none;
- }
- .home-guide-block-token .home-guide-token-btn {
- flex-shrink: 0;
- }
- .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-workbuddy-right {
- flex: none;
- width: 100%;
- }
- .home-guide-tool-body:not(.home-guide-ima-body) .home-guide-code {
- flex: none;
- width: 100%;
- min-height: 360px;
- }
- .home-guide-ima-body {
- flex-direction: column;
- align-items: stretch;
- }
- .home-guide-cli-body {
- grid-template-columns: 1fr;
- grid-template-areas:
- "head"
- "title"
- "steps"
- "panel";
- }
- }
- @media (max-width: 768px) {
- .home-content-stack {
- --guide-inline-padding: 16px;
- }
- .home-guide-inner {
- gap: 24px;
- }
- .home-guide-title {
- font-size: 24px;
- line-height: 32px;
- }
- .home-guide-subtitle {
- font-size: 14px;
- line-height: 22px;
- }
- .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;
- }
- .home-guide-features {
- flex-direction: column;
- gap: 16px;
- padding: 20px 16px;
- }
- .home-guide-feature {
- width: 100%;
- }
- .home-guide-tool-tabs {
- flex-wrap: wrap;
- }
- .home-guide-verify {
- flex-direction: column;
- }
- .home-guide-block {
- padding: 16px;
- }
- .home-guide-block-token .home-guide-token {
- flex-direction: column;
- align-items: stretch;
- }
- .home-guide-token-bar {
- width: 100%;
- }
- .home-guide-block-token .home-guide-token-btn {
- width: 100%;
- justify-content: center;
- }
- }
- </style>
|