index.vue 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194
  1. <template>
  2. <div class="home-content-stack">
  3. <section class="home-section home-guide">
  4. <div class="home-guide-inner">
  5. <div class="home-guide-heading">
  6. <div class="home-guide-title">3 步接入,5 分钟上手</div>
  7. <div class="home-guide-subtitle">MCP 协议 + CLI 命令行双栖接入,共用一套 Token</div>
  8. </div>
  9. <div class="home-guide-timeline">
  10. <div class="home-guide-timeline-item">
  11. <div class="home-guide-timeline-dot">1</div>
  12. <div class="home-guide-timeline-name">获取 Token</div>
  13. <div class="home-guide-timeline-desc">生成访问令牌</div>
  14. </div>
  15. <div class="home-guide-timeline-line home-guide-timeline-line-1"></div>
  16. <div class="home-guide-timeline-item">
  17. <div class="home-guide-timeline-dot">2</div>
  18. <div class="home-guide-timeline-name">选择 AI 工具</div>
  19. <div class="home-guide-timeline-desc">MCP 一键接入/CLI命令行接入</div>
  20. </div>
  21. <div class="home-guide-timeline-line home-guide-timeline-line-2"></div>
  22. <div class="home-guide-timeline-item">
  23. <div class="home-guide-timeline-dot">3</div>
  24. <div class="home-guide-timeline-name">验证接入</div>
  25. <div class="home-guide-timeline-desc">发送问题验证接入是否成功</div>
  26. </div>
  27. </div>
  28. <div class="home-guide-block home-guide-block-token">
  29. <div class="home-guide-block-head">
  30. <div class="home-guide-block-num">1</div>
  31. <div class="home-guide-block-copy">
  32. <div class="home-guide-block-title">获取 Token</div>
  33. <div class="home-guide-block-desc">登录平台后生成访问令牌,适用于 MCP 协议与 CLI 接入</div>
  34. </div>
  35. <div class="home-guide-token">
  36. <div v-if="guideToken" class="home-guide-token-bar">
  37. <span class="home-guide-token-tag">Bearer</span>
  38. <span class="home-guide-token-value">
  39. <template v-if="guideTokenVisible">{{ guideToken }}</template>
  40. <template v-else>
  41. <span>{{ guideTokenMasked.head }}</span><span class="home-guide-token-mask">{{
  42. guideTokenMasked.middle }}</span><span>{{ guideTokenMasked.tail }}</span>
  43. </template>
  44. </span>
  45. <div class="home-guide-token-icons">
  46. <icon-svg :name="guideTokenVisible ? 'eye_not_displayed' : 'eye_show'" size="24px"
  47. class="home-guide-token-icon" @click="guideTokenVisible = !guideTokenVisible" />
  48. <icon-svg name="http_copy" size="14px" class="home-guide-token-icon" @click="copyText(guideToken)" />
  49. </div>
  50. </div>
  51. <button type="button" class="home-guide-token-btn" @click="createToken">
  52. <icon-svg name="gain_token" size="14px" class="home-guide-token-btn-icon" />
  53. <span>获取 Token</span>
  54. </button>
  55. </div>
  56. </div>
  57. <div class="home-guide-features">
  58. <div class="home-guide-feature">
  59. <icon-svg name="Mcp_general" size="38px" />
  60. <div>
  61. <div class="home-guide-feature-title">MCP 通用配置</div>
  62. <div class="home-guide-feature-desc">3 个 Server 共用同一套 Token</div>
  63. </div>
  64. </div>
  65. <div class="home-guide-feature">
  66. <icon-svg name="token_general" size="38px" />
  67. <div>
  68. <div class="home-guide-feature-title">一套 Token 通用</div>
  69. <div class="home-guide-feature-desc">MCP 客户端与 CLI 命令行均使用同一令牌</div>
  70. </div>
  71. </div>
  72. <div class="home-guide-feature">
  73. <icon-svg name="Core_scenario" size="38px" />
  74. <div>
  75. <div class="home-guide-feature-title">覆盖环境知识核心场景</div>
  76. <div class="home-guide-feature-desc">环境法规检索 / 标准导则查询 / 政策问答</div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="home-guide-block home-guide-block-tools">
  82. <div class="home-guide-block-head">
  83. <div class="home-guide-block-num">2</div>
  84. <div class="home-guide-block-copy">
  85. <div class="home-guide-block-title">选择你的 AI 工具并复制配置</div>
  86. <div class="home-guide-block-desc">推荐 WorkBuddy 内置连接器一键接入,也支持自定义 JSON 配置</div>
  87. </div>
  88. </div>
  89. <div class="home-guide-access-tabs">
  90. <button type="button" class="home-guide-access-tab" :class="{ 'is-active': guideAccessTab === 'mcp' }"
  91. @click="guideAccessTab = 'mcp'">
  92. MCP 接入
  93. </button>
  94. <button type="button" class="home-guide-access-tab" :class="{ 'is-active': guideAccessTab === 'cli' }"
  95. @click="guideAccessTab = 'cli'">
  96. CLI 命令行接入
  97. </button>
  98. </div>
  99. <div class="home-guide-tool-panel">
  100. <template v-if="guideAccessTab === 'mcp'">
  101. <div class="home-guide-tool-tabs">
  102. <button v-for="tool in guideTools" :key="tool.key" type="button" class="home-guide-tool-tab"
  103. :class="{ 'is-active': guideToolTab === tool.key }" @click="guideToolTab = tool.key">
  104. <icon-svg v-if="tool.icon"
  105. :name="guideToolTab === tool.key ? 'workbuddy_icon' : 'workbuddy_icon_blue'" size="14px" />
  106. <span>{{ tool.label }}</span>
  107. </button>
  108. </div>
  109. <div v-if="guideToolTab === 'workbuddy'" class="home-guide-tool-body">
  110. <div class="home-guide-tool-steps">
  111. <div class="home-guide-tool-step">
  112. <div class="home-guide-tool-step-num">1</div>
  113. <div class="home-guide-tool-step-copy">
  114. <div class="home-guide-tool-step-title">自定义 MCP 配置</div>
  115. <div class="home-guide-tool-step-desc">
  116. 复制右侧 JSON → 对话框发送「这是环评云助手的 MCP 服务 JSON,帮我配置自定义的 mcp」并粘贴
  117. </div>
  118. </div>
  119. </div>
  120. <div class="home-guide-tool-step">
  121. <div class="home-guide-tool-step-num">2</div>
  122. <div class="home-guide-tool-step-copy">
  123. <div class="home-guide-tool-step-title">验证接入是否成功</div>
  124. <div class="home-guide-tool-step-desc">
  125. 按环境法规、标准导则、政策问答分别验证(见下方验证卡片)
  126. </div>
  127. </div>
  128. </div>
  129. <div class="home-guide-note">
  130. <div class="home-guide-note-head">
  131. <div class="home-guide-note-icon-box">
  132. <icon-svg name="WorkBuddy_attention" size="12px" class="home-guide-note-icon" />
  133. </div>
  134. <div class="home-guide-note-title">注意事项</div>
  135. </div>
  136. <ul class="home-guide-note-list">
  137. <li>优先用内置「环评云助手」连接器;仅在需要自定义时用右侧 JSON</li>
  138. <li>自定义接入时 type 字段为 streamableHttp(H 大写)</li>
  139. <li>不需要在 URL 末尾添加 /mcp 后缀</li>
  140. <li>将 YOUR_ACCESS_TOKEN 替换为真实 Token</li>
  141. <li>若工具未立即出现,完全退出并重新打开 WorkBuddy 后再验证</li>
  142. </ul>
  143. </div>
  144. </div>
  145. <div class="home-guide-code">
  146. <div class="home-guide-code-bar">
  147. <div class="home-guide-code-dots">
  148. <span></span>
  149. <span></span>
  150. <span></span>
  151. </div>
  152. <div class="home-guide-code-title">mcp.json</div>
  153. <button type="button" class="home-guide-code-copy" @click="copyGuideMcpJson">
  154. <icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
  155. <span>复制</span>
  156. </button>
  157. </div>
  158. <div class="home-guide-code-body">
  159. <div class="home-guide-code-lines">
  160. <span v-for="line in guideMcpLines" :key="line">{{ line }}</span>
  161. </div>
  162. <pre class="home-guide-code-pre"><span class="code-punct">{</span>
  163. <span class="code-key">"mcpServers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  164. <span class="code-key">"hpyzs-law-keyword"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  165. <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>
  166. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  167. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  168. <span class="code-punct">}</span>
  169. <span class="code-punct">},</span>
  170. <span class="code-key">"hpyzs-law-semantic"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  171. <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>
  172. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  173. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  174. <span class="code-punct">}</span>
  175. <span class="code-punct">},</span>
  176. <span class="code-key">"hpyzs-qa"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  177. <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>
  178. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  179. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  180. <span class="code-punct">}</span>
  181. <span class="code-punct">},</span>
  182. <span class="code-key">"hpyzs-emission"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  183. <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>
  184. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  185. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  186. <span class="code-punct">}</span>
  187. <span class="code-punct">}</span>
  188. <span class="code-punct">}</span>
  189. <span class="code-punct">}</span></pre>
  190. </div>
  191. </div>
  192. </div>
  193. <div v-else-if="guideToolTab === 'doubao'" class="home-guide-tool-body home-guide-doubao-body">
  194. <div class="home-guide-ima-left">
  195. <div class="home-guide-ima-alert">
  196. <icon-svg name="ima_wps_warning" size="16px" class="home-guide-ima-alert-icon" />
  197. <div class="home-guide-ima-alert-text">
  198. {{ guideDoubaoContent.alert }}
  199. </div>
  200. </div>
  201. <div class="home-guide-ima-steps">
  202. <div v-for="step in guideDoubaoContent.steps" :key="step.num" class="home-guide-ima-step">
  203. <div class="home-guide-ima-step-num">{{ step.num }}</div>
  204. <div class="home-guide-ima-step-title">{{ step.title }}</div>
  205. </div>
  206. </div>
  207. <div class="home-guide-ima-notes">
  208. <div class="home-guide-ima-notes-title">注意事项</div>
  209. <ul class="home-guide-ima-notes-list">
  210. <li v-for="item in guideDoubaoContent.notes" :key="item">
  211. {{ item }}
  212. </li>
  213. </ul>
  214. </div>
  215. </div>
  216. <div class="home-guide-doubao-right">
  217. <img
  218. src="@/assets/images/doubao_img.png"
  219. alt="豆包自定义连接器示意"
  220. class="home-guide-doubao-img"
  221. width="608"
  222. height="472"
  223. />
  224. </div>
  225. </div>
  226. <div v-else-if="guideToolTab === 'qoderwork'" class="home-guide-tool-body">
  227. <div class="home-guide-tool-steps">
  228. <div class="home-guide-tool-step">
  229. <div class="home-guide-tool-step-num">1</div>
  230. <div class="home-guide-tool-step-copy">
  231. <div class="home-guide-tool-step-title">打开配置入口</div>
  232. <div class="home-guide-tool-step-desc">
  233. 左侧「扩展」→「连接器」→ 右上角「+ 添加」→「粘贴 JSON 配置」→ 在「通过 JSON 导入」对话框粘贴下方全量 JSON → 点击「导入」2
  234. </div>
  235. </div>
  236. </div>
  237. <div class="home-guide-tool-step">
  238. <div class="home-guide-tool-step-num">2</div>
  239. <div class="home-guide-tool-step-copy">
  240. <div class="home-guide-tool-step-title">粘贴 MCP 配置</div>
  241. <div class="home-guide-tool-step-desc">
  242. 将右侧「配置」中的 JSON 粘贴到客户端对应位置并保存。
  243. </div>
  244. </div>
  245. </div>
  246. <div class="home-guide-tool-step">
  247. <div class="home-guide-tool-step-num">3</div>
  248. <div class="home-guide-tool-step-copy">
  249. <div class="home-guide-tool-step-title">配置文件位置</div>
  250. <div class="home-guide-tool-step-desc">
  251. macOS:~/.qoderwork/mcp.json Windows:C:\Users\用户名\.qoderwork\mcp.json
  252. </div>
  253. </div>
  254. </div>
  255. <div class="home-guide-note">
  256. <div class="home-guide-note-head">
  257. <div class="home-guide-note-icon-box">
  258. <icon-svg name="WorkBuddy_attention" size="12px" class="home-guide-note-icon" />
  259. </div>
  260. <div class="home-guide-note-title">注意事项</div>
  261. </div>
  262. <ul class="home-guide-note-list">
  263. <li>type 字段为 "streamableHttp"(H 大写),与 WorkBuddy 一致</li>
  264. <li>不需要在 URL 末尾添加 /mcp 后缀</li>
  265. <li>将 YOUR_ACCESS_TOKEN 替换为页面「获取 Token」生成的真实 Token</li>
  266. <li>导入后可在「连接器 → 已安装」查看状态;改配置后需完全退出并重启 QoderWork</li>
  267. </ul>
  268. </div>
  269. </div>
  270. <div class="home-guide-code">
  271. <div class="home-guide-code-bar">
  272. <div class="home-guide-code-dots">
  273. <span></span>
  274. <span></span>
  275. <span></span>
  276. </div>
  277. <div class="home-guide-code-title">mcp.json</div>
  278. <button type="button" class="home-guide-code-copy" @click="copyGuideQoderworkJson">
  279. <icon-svg name="copy_icon_white" size="14px" class="home-guide-code-copy-icon" />
  280. <span>复制</span>
  281. </button>
  282. </div>
  283. <div class="home-guide-code-body">
  284. <div class="home-guide-code-lines">
  285. <span v-for="line in guideQoderworkLines" :key="line">{{ line }}</span>
  286. </div>
  287. <pre class="home-guide-code-pre"><span class="code-punct">{</span>
  288. <span class="code-key">"hpyzs-law-keyword"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  289. <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>
  290. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  291. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  292. <span class="code-punct">}</span>
  293. <span class="code-punct">},</span>
  294. <span class="code-key">"hpyzs-law-semantic"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  295. <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>
  296. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  297. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  298. <span class="code-punct">}</span>
  299. <span class="code-punct">},</span>
  300. <span class="code-key">"hpyzs-qa"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  301. <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>
  302. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  303. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  304. <span class="code-punct">}</span>
  305. <span class="code-punct">},</span>
  306. <span class="code-key">"hpyzs-emission"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  307. <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>
  308. <span class="code-key">"headers"</span><span class="code-punct">:</span> <span class="code-punct">{</span>
  309. <span class="code-key">"Authorization"</span><span class="code-punct">:</span> <span class="code-string">"Bearer {{ guideAccessToken }}"</span>
  310. <span class="code-punct">}</span>
  311. <span class="code-punct">}</span>
  312. <span class="code-punct">}</span></pre>
  313. </div>
  314. </div>
  315. </div>
  316. <div v-else-if="guideToolTab === 'wps'" class="home-guide-tool-body home-guide-ima-body">
  317. <div class="home-guide-ima-left">
  318. <div class="home-guide-ima-alert">
  319. <icon-svg name="ima_wps_warning" size="16px" class="home-guide-ima-alert-icon" />
  320. <div class="home-guide-ima-alert-text">
  321. {{ guideWpsContent.alert }}
  322. </div>
  323. </div>
  324. <div class="home-guide-ima-steps">
  325. <div v-for="step in guideWpsContent.steps" :key="step.num" class="home-guide-ima-step">
  326. <div class="home-guide-ima-step-num">{{ step.num }}</div>
  327. <div class="home-guide-ima-step-title">{{ step.title }}</div>
  328. </div>
  329. </div>
  330. <div class="home-guide-ima-notes">
  331. <div class="home-guide-ima-notes-title">注意事项</div>
  332. <ul class="home-guide-ima-notes-list">
  333. <li v-for="item in guideWpsContent.notes" :key="item">
  334. {{ item }}
  335. </li>
  336. </ul>
  337. </div>
  338. </div>
  339. <div class="home-guide-ima-right">
  340. <div class="home-guide-ima-panel home-guide-ima-panel--config">
  341. <div class="home-guide-ima-panel-title">【配置】</div>
  342. <div v-for="line in guideWpsContent.configLines" :key="line" class="home-guide-ima-panel-line">
  343. {{ line }}
  344. </div>
  345. </div>
  346. <div class="home-guide-ima-panel home-guide-ima-panel--verify">
  347. <div class="home-guide-ima-panel-title">【验证】</div>
  348. <div class="home-guide-ima-panel-hint">
  349. {{ guideWpsContent.verifyIntro }}
  350. </div>
  351. <div class="home-guide-ima-quote">{{ guideWpsContent.verifyQuote }}</div>
  352. <div class="home-guide-ima-panel-hint">
  353. {{ guideWpsContent.verifyResult }}
  354. </div>
  355. <div class="home-guide-ima-check">
  356. <span class="home-guide-ima-check-marks">
  357. <span>√</span>
  358. <span>√</span>
  359. </span>
  360. <span class="home-guide-ima-check-text">{{ guideWpsContent.verifyCheck }}</span>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </template>
  366. <template v-else>
  367. <div class="home-guide-cli-body">
  368. <div class="home-guide-cli-head">
  369. <icon-svg name="systemLogoCircle" size="38px" class="home-guide-cli-logo-icon" />
  370. <div class="home-guide-cli-head-copy">
  371. <div class="home-guide-cli-name">
  372. <span class="home-guide-cli-pkg">hpyzs-mcp</span>
  373. <span class="home-guide-cli-sep">·</span>
  374. <span class="home-guide-cli-alias">环评云助手命令行工具</span>
  375. </div>
  376. <div class="home-guide-cli-tip">npm 全局安装 · 纯命令行执行 · 结果为原始 JSON</div>
  377. </div>
  378. </div>
  379. <div class="home-guide-cli-steps-title">接入步骤</div>
  380. <div class="home-guide-cli-steps">
  381. <div v-for="step in guideCliSteps" :key="step.num" class="home-guide-cli-step">
  382. <div class="home-guide-cli-step-num">{{ step.num }}</div>
  383. <div class="home-guide-cli-step-copy">
  384. <div class="home-guide-cli-step-title">{{ step.title }}</div>
  385. <div class="home-guide-cli-step-desc">{{ step.desc }}</div>
  386. </div>
  387. </div>
  388. </div>
  389. <div class="home-guide-cli-panel">
  390. <div class="home-guide-cli-list">
  391. <div v-for="command in guideCliCommands" :key="command.label" class="home-guide-cli-command">
  392. <div class="home-guide-cli-command-main">
  393. <div class="home-guide-cli-command-label">
  394. <span class="home-guide-cli-command-dot"></span>
  395. <span>{{ command.label }}</span>
  396. </div>
  397. <code class="home-guide-cli-command-text">{{ command.text }}</code>
  398. </div>
  399. <button type="button" class="home-guide-cli-command-copy" @click="copyText(command.text)">
  400. <icon-svg name="copy_icon_violet" size="12px" class="home-guide-cli-command-copy-icon" />
  401. <span>复制</span>
  402. </button>
  403. </div>
  404. </div>
  405. <div class="home-guide-cli-footer">
  406. <span class="home-guide-cli-footer-tip">{{ guideCliFooterTip }}</span>
  407. <button type="button" class="home-guide-cli-copy-all" @click="copyAllCliCommands">
  408. <icon-svg name="copy_icon_white" size="12px" class="home-guide-cli-copy-all-icon" />
  409. <span>全部复制</span>
  410. </button>
  411. </div>
  412. </div>
  413. </div>
  414. </template>
  415. </div>
  416. </div>
  417. <div class="home-guide-block home-guide-block-verify">
  418. <div class="home-guide-block-head">
  419. <div class="home-guide-block-num">3</div>
  420. <div class="home-guide-block-copy">
  421. <div class="home-guide-block-title">验证接入</div>
  422. <div class="home-guide-block-desc">在对话框中分别发送以下指令验证接入是否成功</div>
  423. </div>
  424. </div>
  425. <div class="home-guide-verify">
  426. <div v-for="card in guideVerifyCards" :key="card.title" class="home-guide-verify-card">
  427. <div class="home-guide-verify-line"></div>
  428. <div class="home-guide-verify-head">
  429. <div class="home-guide-verify-icon-box">
  430. <icon-svg :name="card.icon" size="16px" />
  431. </div>
  432. <div class="home-guide-verify-title">{{ card.title }}</div>
  433. </div>
  434. <div class="home-guide-verify-list">
  435. <div v-for="(question, questionIndex) in card.questions" :key="`${card.title}-${questionIndex}`"
  436. class="home-guide-verify-item">
  437. <span>{{ question }}</span>
  438. <icon-svg name="Connection_Copy" size="13px" class="home-guide-verify-copy"
  439. @click="copyText(question)" />
  440. </div>
  441. </div>
  442. </div>
  443. </div>
  444. </div>
  445. </div>
  446. </section>
  447. </div>
  448. </template>
  449. <script setup>
  450. import { computed, onMounted, ref } from "vue";
  451. import { ElMessage } from "element-plus";
  452. import { getMcpToken, createMcpToken } from "@/api/mcp";
  453. import { requireUserLogin } from "@/utils/auth";
  454. import globalStore from "@/store/modules/global";
  455. const global = globalStore();
  456. const guideToken = computed(() => global.mcpToken || "");
  457. const guideTokenVisible = ref(false);
  458. const guideTokenMasked = computed(() => {
  459. const token = guideToken.value;
  460. if (!token || token.length <= 15) {
  461. return { head: token, middle: "", tail: "" };
  462. }
  463. return {
  464. head: token.slice(0, 9),
  465. middle: "*".repeat(token.length - 15),
  466. tail: token.slice(-6),
  467. };
  468. });
  469. const applyToken = (data) => {
  470. // 兼容 data 为字符串,或 { token, expireTime, status, ... } 对象
  471. const token =
  472. typeof data === "string"
  473. ? data
  474. : data && typeof data === "object"
  475. ? data.token
  476. : "";
  477. if (token === null || token === undefined || token === "") {
  478. global.setMcpToken("");
  479. return;
  480. }
  481. global.setMcpToken(String(token));
  482. };
  483. const fetchMcpToken = async () => {
  484. try {
  485. const res = await getMcpToken();
  486. applyToken(res?.data);
  487. } catch (error) {
  488. console.error(error);
  489. }
  490. };
  491. const createToken = async () => {
  492. if (!requireUserLogin("请先登录", { redirect: true })) return;
  493. try {
  494. const res = await createMcpToken();
  495. applyToken(res?.data);
  496. } catch (error) {
  497. console.error(error);
  498. }
  499. };
  500. onMounted(() => {
  501. fetchMcpToken();
  502. });
  503. const guideAccessTab = ref("mcp");
  504. const guideToolTab = ref("workbuddy");
  505. const guideTools = [
  506. { key: "workbuddy", label: "WorkBuddy", icon: true },
  507. { key: "doubao", label: "豆包", icon: false },
  508. { key: "qoderwork", label: "Qoderwork", icon: false },
  509. ];
  510. const guideDoubaoContent = {
  511. alert: "豆包只能通过新建自定义连接器接入,不支持直接粘贴 JSON 配置。",
  512. steps: [
  513. {
  514. num: 1,
  515. title:
  516. "打开 豆包 → 找到「 技能·连接器·伙伴 」→ 点击「新建」→ 选择「 新建自定义连接器」 ",
  517. },
  518. {
  519. num: 2,
  520. title: "输入服务器名称、 URL 链接、自定义 Headers → 点击保存完成链接",
  521. },
  522. {
  523. num: 3,
  524. title:
  525. "验证是否成功——在对话中发送「用环评云助手MCP检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」",
  526. },
  527. ],
  528. notes: ["自定义 Headers 内需要填写页面「获取 Token」生成的真实 Token"],
  529. };
  530. const guideWpsContent = {
  531. alert:
  532. "仅支持内置连接:WPS Comate 只能通过内置「环评云助手」连接接入,不支持粘贴 JSON 或自定义 MCP 配置。",
  533. steps: [
  534. {
  535. num: 1,
  536. title: "打开 WPS Comate → 进入「连接」→ 找到「环评云助手」→ 点击「连接」",
  537. },
  538. {
  539. num: 2,
  540. title: "按提示完成登录授权并启用连接即可使用,无需粘贴 JSON / Token",
  541. },
  542. {
  543. num: 3,
  544. title:
  545. "验证是否成功——在对话中发送「用环评云助手检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」——返回的是权威法规数据,非网络搜索结果。",
  546. },
  547. ],
  548. notes: [
  549. "仅支持内置连接,无需手动粘贴 JSON 或自定义 MCP 配置",
  550. "首次使用需完成环评云助手账号登录授权,授权后连接长期有效",
  551. ],
  552. configLines: [
  553. "# 本平台仅支持内置「环评云助手」连接",
  554. "# 发现 → MCP → 环评云助手 → 一键连接并完成授权即可使用",
  555. ],
  556. verifyIntro: "# 在对话框中发一句:",
  557. verifyQuote:
  558. "「用环评云助手检索《大气污染物综合排放标准》中关于 VOCs 排放限值的规定」",
  559. verifyResult: " # → 看到法规检索工具运行成功 → 返回限值 = 接入成功",
  560. verifyCheck: "返回的是权威法规数据,非网络搜索",
  561. };
  562. const guideAccessToken = computed(
  563. () => guideToken.value || "YOUR_ACCESS_TOKEN",
  564. );
  565. const guideMcpJson = computed(() => {
  566. const token = guideAccessToken.value;
  567. return `{
  568. "mcpServers": {
  569. "hpyzs-law-keyword": {
  570. "url": "https://mcp.eiacloud.com/law-keyword",
  571. "headers": {
  572. "Authorization": "Bearer ${token}"
  573. }
  574. },
  575. "hpyzs-law-semantic": {
  576. "url": "https://mcp.eiacloud.com/law-semantic",
  577. "headers": {
  578. "Authorization": "Bearer ${token}"
  579. }
  580. },
  581. "hpyzs-qa": {
  582. "url": "https://mcp.eiacloud.com/qa",
  583. "headers": {
  584. "Authorization": "Bearer ${token}"
  585. }
  586. },
  587. "hpyzs-emission": {
  588. "url": "https://mcp.eiacloud.com/emission",
  589. "headers": {
  590. "Authorization": "Bearer ${token}"
  591. }
  592. }
  593. }
  594. }`;
  595. });
  596. const guideMcpLines = computed(() =>
  597. Array.from({ length: guideMcpJson.value.split("\n").length }, (_, i) => i + 1),
  598. );
  599. const guideQoderworkJson = computed(() => {
  600. const token = guideAccessToken.value;
  601. return `{
  602. "hpyzs-law-keyword": {
  603. "url": "https://mcp.eiacloud.com/law-keyword",
  604. "headers": {
  605. "Authorization": "Bearer ${token}"
  606. }
  607. },
  608. "hpyzs-law-semantic": {
  609. "url": "https://mcp.eiacloud.com/law-semantic",
  610. "headers": {
  611. "Authorization": "Bearer ${token}"
  612. }
  613. },
  614. "hpyzs-qa": {
  615. "url": "https://mcp.eiacloud.com/qa",
  616. "headers": {
  617. "Authorization": "Bearer ${token}"
  618. }
  619. },
  620. "hpyzs-emission": {
  621. "url": "https://mcp.eiacloud.com/emission",
  622. "headers": {
  623. "Authorization": "Bearer ${token}"
  624. }
  625. }
  626. }`;
  627. });
  628. const guideQoderworkLines = computed(() =>
  629. Array.from(
  630. { length: guideQoderworkJson.value.split("\n").length },
  631. (_, i) => i + 1,
  632. ),
  633. );
  634. const copyText = async (text) => {
  635. if (!text) {
  636. ElMessage.warning("暂无内容可复制");
  637. return;
  638. }
  639. try {
  640. if (navigator.clipboard?.writeText) {
  641. await navigator.clipboard.writeText(text);
  642. } else {
  643. const textarea = document.createElement("textarea");
  644. textarea.value = text;
  645. textarea.setAttribute("readonly", "");
  646. textarea.style.position = "fixed";
  647. textarea.style.left = "-9999px";
  648. document.body.appendChild(textarea);
  649. textarea.select();
  650. const ok = document.execCommand("copy");
  651. document.body.removeChild(textarea);
  652. if (!ok) throw new Error("execCommand copy failed");
  653. }
  654. ElMessage.success("复制成功");
  655. } catch (error) {
  656. console.error(error);
  657. ElMessage.error("复制失败");
  658. }
  659. };
  660. const copyGuideMcpJson = () => copyText(guideMcpJson.value);
  661. const copyGuideQoderworkJson = () => copyText(guideQoderworkJson.value);
  662. const guideCliSteps = [
  663. {
  664. num: 1,
  665. title: "控制台获取 Token(与 MCP 共用)",
  666. desc: "在第一步生成或复制 Token,CLI 与 MCP 使用同一套鉴权。",
  667. },
  668. {
  669. num: 2,
  670. title: "npm 全局安装环评云助手 CLI",
  671. desc: "npm install -g hpyzs-mcp",
  672. },
  673. {
  674. num: 3,
  675. title: "绑定 Token",
  676. desc: "右侧初始化命令已自动填入真实 Token,复制执行即可",
  677. },
  678. {
  679. num: 4,
  680. title: "命令行直接查询,返回原始 JSON",
  681. desc: "不经过 LLM,适合自动化流程与数据验证。",
  682. },
  683. ];
  684. const guideCliCommands = computed(() => {
  685. const token = guideAccessToken.value;
  686. return [
  687. {
  688. label: "安装 CLI",
  689. text: "npm install -g hpyzs-mcp",
  690. },
  691. {
  692. label: "绑定 Token",
  693. text: `hpyzs-mcp init --authorization "Bearer ${token}"`,
  694. },
  695. {
  696. label: "标准导则关键词查询",
  697. text: 'hpyzs-mcp law-keyword search_keyword_standard --name "地表水环境治疗标准"',
  698. },
  699. {
  700. label: "法规政策关键词查询",
  701. text: 'hpyzs-mcp law-keyword search_keyword_policy --name "噪声源分类指导目录"',
  702. },
  703. ];
  704. });
  705. const guideCliFooterTip = computed(() =>
  706. guideToken.value
  707. ? "初始化命令已自动填入真实 Token"
  708. : "将 YOUR_ACCESS_TOKEN 替换为页面「获取 Token」生成的真实 Token",
  709. );
  710. const copyAllCliCommands = () =>
  711. copyText(guideCliCommands.value.map((item) => item.text).join("\n"));
  712. const guideVerifyCards = [
  713. {
  714. icon: "environmental_legislation",
  715. title: "政策法规",
  716. questions: [
  717. "大气污染防治法第118条餐饮油烟怎么罚?",
  718. "环办政法函〔2017〕40号答复了什么?",
  719. "大气污染防治法2018修订何时施行?",
  720. ],
  721. },
  722. {
  723. icon: "Standard_guidelines",
  724. title: "标准导则",
  725. questions: [
  726. "GB16297表2二氧化硫二级浓度?",
  727. "GB16297排气筒最低高度要求?",
  728. "GB16297颗粒物无组织监控限值?",
  729. ],
  730. },
  731. {
  732. icon: "Policy_QA",
  733. title: "问答检索",
  734. questions: [
  735. "重大变动如何重新报批环评?",
  736. "排污许可证内容变更如何重新办理?",
  737. "环评批复几年不开工作废?",
  738. ],
  739. },
  740. ];
  741. </script>
  742. <style scoped lang="less">
  743. .home-section {
  744. width: 100%;
  745. }
  746. .home-content-stack {
  747. width: 100%;
  748. box-sizing: border-box;
  749. }
  750. .home-guide {
  751. box-sizing: border-box;
  752. width: 100%;
  753. padding: 60px;
  754. background: #FFFFFF;
  755. box-shadow: 0px 4px 24px 0px rgba(15, 23, 42, 0.06);
  756. border-radius: 8px 8px 8px 8px;
  757. }
  758. .home-guide-inner {
  759. width: 100%;
  760. display: flex;
  761. flex-direction: column;
  762. align-items: stretch;
  763. gap: 32px;
  764. }
  765. .home-guide-heading {
  766. display: flex;
  767. flex-direction: column;
  768. align-items: center;
  769. gap: 8px;
  770. }
  771. .home-guide-title {
  772. font-family: PingFang SC, PingFang SC;
  773. font-weight: 600;
  774. font-size: 32px;
  775. color: #1E293B;
  776. line-height: 40px;
  777. text-align: center;
  778. }
  779. .home-guide-subtitle {
  780. font-family: PingFang SC, PingFang SC;
  781. font-weight: 400;
  782. font-size: 16px;
  783. color: #64748B;
  784. line-height: 24px;
  785. text-align: center;
  786. }
  787. .home-guide-timeline {
  788. display: flex;
  789. align-items: flex-start;
  790. justify-content: center;
  791. margin-top: 8px;
  792. }
  793. .home-guide-timeline-item {
  794. flex: 0 0 210px;
  795. width: 210px;
  796. max-width: 210px;
  797. display: flex;
  798. flex-direction: column;
  799. align-items: center;
  800. }
  801. .home-guide-timeline-dot {
  802. display: flex;
  803. align-items: center;
  804. justify-content: center;
  805. width: 52px;
  806. height: 52px;
  807. border-radius: 52px;
  808. font-family: PingFang SC, PingFang SC;
  809. font-weight: 600;
  810. font-size: 22px;
  811. color: #FFFFFF;
  812. line-height: 30px;
  813. text-align: center;
  814. }
  815. .home-guide-timeline-item:nth-child(1) .home-guide-timeline-dot {
  816. background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  817. box-shadow: 0px 8px 24px 0px rgba(5, 150, 105, 0.3);
  818. }
  819. .home-guide-timeline-item:nth-child(3) .home-guide-timeline-dot {
  820. background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  821. box-shadow: 0px 8px 24px 0px rgba(59, 130, 246, 0.28);
  822. }
  823. .home-guide-timeline-item:nth-child(5) .home-guide-timeline-dot {
  824. background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  825. box-shadow: 0px 8px 24px 0px rgba(139, 92, 246, 0.28);
  826. }
  827. .home-guide-timeline-name {
  828. margin-top: 10px;
  829. width: 100%;
  830. font-family: PingFang SC, PingFang SC;
  831. font-weight: 600;
  832. font-size: 20px;
  833. line-height: 28px;
  834. text-align: center;
  835. }
  836. .home-guide-timeline-item:nth-child(1) .home-guide-timeline-name {
  837. color: #059669;
  838. }
  839. .home-guide-timeline-item:nth-child(3) .home-guide-timeline-name {
  840. color: #3B82F6;
  841. }
  842. .home-guide-timeline-item:nth-child(5) .home-guide-timeline-name {
  843. color: #8B5CF6;
  844. }
  845. .home-guide-timeline-desc {
  846. margin-top: 2px;
  847. width: 100%;
  848. font-family: PingFang SC, PingFang SC;
  849. font-weight: 400;
  850. font-size: 14px;
  851. color: #64748B;
  852. line-height: 20px;
  853. text-align: center;
  854. }
  855. .home-guide-timeline-line {
  856. flex-shrink: 0;
  857. width: 245px;
  858. height: 4px;
  859. margin-top: 24px;
  860. border-radius: 2px;
  861. }
  862. .home-guide-timeline-line-1 {
  863. background: linear-gradient(270deg, #059669 0%, #3B82F6 100%);
  864. }
  865. .home-guide-timeline-line-2 {
  866. background: linear-gradient(270deg, #3B82F6 0%, #8B5CF6 100%);
  867. }
  868. .home-guide-block {
  869. background: #FFFFFF;
  870. border-radius: 16px;
  871. padding: 24px;
  872. }
  873. .home-guide-block-head {
  874. display: flex;
  875. align-items: flex-start;
  876. gap: 12px;
  877. }
  878. .home-guide-block-num {
  879. display: flex;
  880. align-items: center;
  881. justify-content: center;
  882. width: 24px;
  883. height: 24px;
  884. flex-shrink: 0;
  885. border-radius: 50%;
  886. background: #10B981;
  887. color: #FFFFFF;
  888. font-size: 13px;
  889. font-weight: 600;
  890. }
  891. .home-guide-block:nth-child(3) .home-guide-block-num {
  892. background: #10B981;
  893. }
  894. .home-guide-block:nth-child(4) .home-guide-block-num {
  895. background: #3B82F6;
  896. }
  897. .home-guide-block:nth-child(5) .home-guide-block-num {
  898. background: #A78BFA;
  899. }
  900. .home-guide-block-copy {
  901. flex: 1;
  902. min-width: 0;
  903. }
  904. .home-guide-block-title {
  905. font-size: 18px;
  906. font-weight: 600;
  907. color: #0F172A;
  908. line-height: 25px;
  909. }
  910. .home-guide-block-desc {
  911. margin-top: 4px;
  912. font-size: 14px;
  913. color: #64748B;
  914. line-height: 20px;
  915. }
  916. .home-guide-token {
  917. display: flex;
  918. align-items: center;
  919. gap: 8px;
  920. flex-shrink: 0;
  921. }
  922. .home-guide-token-value {
  923. padding: 8px 12px;
  924. border-radius: 8px;
  925. background: #0F172A;
  926. color: #FFFFFF;
  927. font-size: 12px;
  928. }
  929. .home-guide-token-btn {
  930. padding: 8px 16px;
  931. border: none;
  932. border-radius: 8px;
  933. background: #1678FF;
  934. color: #FFFFFF;
  935. font-size: 13px;
  936. cursor: pointer;
  937. }
  938. .home-guide-block-token .home-guide-block-head {
  939. align-items: center;
  940. gap: 16px;
  941. }
  942. .home-guide-block-token .home-guide-block-num {
  943. width: 46px;
  944. height: 46px;
  945. background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  946. box-shadow: 0px 8px 20px 0px rgba(5, 150, 105, 0.24);
  947. border-radius: 14px;
  948. font-family: PingFang SC, PingFang SC;
  949. font-weight: 600;
  950. font-size: 20px;
  951. color: #FFFFFF;
  952. line-height: 26px;
  953. text-align: center;
  954. }
  955. .home-guide-block-token .home-guide-block-title {
  956. font-family: PingFang SC, PingFang SC;
  957. font-weight: 600;
  958. font-size: 22px;
  959. color: #0F172A;
  960. line-height: 30px;
  961. text-align: left;
  962. }
  963. .home-guide-block-token .home-guide-block-desc {
  964. font-family: PingFang SC, PingFang SC;
  965. font-weight: 400;
  966. font-size: 14px;
  967. color: #64748B;
  968. line-height: 20px;
  969. text-align: left;
  970. }
  971. .home-guide-block-token .home-guide-token {
  972. display: flex;
  973. align-items: center;
  974. gap: 16px;
  975. margin-left: auto;
  976. }
  977. .home-guide-token-bar {
  978. box-sizing: border-box;
  979. display: flex;
  980. align-items: center;
  981. width: 400px;
  982. height: 44px;
  983. padding: 12px 14px;
  984. background: #1E293B;
  985. border-radius: 6px;
  986. }
  987. .home-guide-token-tag {
  988. flex-shrink: 0;
  989. background: #1678FF;
  990. border-radius: 4px;
  991. padding: 3px 8px;
  992. font-family: PingFang SC, PingFang SC;
  993. font-weight: 600;
  994. font-size: 11px;
  995. color: #FFFFFF;
  996. line-height: 14px;
  997. text-align: center;
  998. }
  999. .home-guide-block-token .home-guide-token-value {
  1000. margin-left: 8px;
  1001. padding: 0;
  1002. background: transparent;
  1003. border-radius: 0;
  1004. font-family: PingFang SC, PingFang SC;
  1005. font-weight: 500;
  1006. font-size: 13px;
  1007. color: #E5E7EB;
  1008. line-height: 18px;
  1009. text-align: left;
  1010. }
  1011. .home-guide-token-icons {
  1012. display: flex;
  1013. align-items: center;
  1014. gap: 10px;
  1015. margin-left: auto;
  1016. }
  1017. .home-guide-token-icon {
  1018. width: 24px;
  1019. height: 24px;
  1020. color: #FFFFFF;
  1021. }
  1022. .home-guide-block-token .home-guide-token-btn {
  1023. display: inline-flex;
  1024. align-items: center;
  1025. gap: 6px;
  1026. padding: 12px 14px;
  1027. border: none;
  1028. border-radius: 8px;
  1029. background: linear-gradient(107deg, #3B82F6 0%, #6366F1 100%);
  1030. box-shadow: 0px 2px 8px 0px rgba(59, 130, 246, 0.25);
  1031. font-family: PingFang SC, PingFang SC;
  1032. font-weight: 500;
  1033. font-size: 14px;
  1034. color: #FFFFFF;
  1035. line-height: 20px;
  1036. text-align: left;
  1037. cursor: pointer;
  1038. }
  1039. .home-guide-token-btn-icon {
  1040. width: 14px;
  1041. height: 14px;
  1042. }
  1043. .home-guide-features {
  1044. display: flex;
  1045. align-items: center;
  1046. justify-content: space-between;
  1047. gap: 24px;
  1048. margin-top: 16px;
  1049. padding: 30px 24px;
  1050. background: #F8FAFC;
  1051. border-radius: 12px;
  1052. border: 1px solid #E2E8F0;
  1053. }
  1054. .home-guide-feature {
  1055. flex: 1;
  1056. display: flex;
  1057. align-items: center;
  1058. gap: 12px;
  1059. min-width: 0;
  1060. :deep(.svg-icon) {
  1061. width: 38px;
  1062. height: 38px;
  1063. flex-shrink: 0;
  1064. }
  1065. }
  1066. .home-guide-feature-title {
  1067. font-family: PingFang SC, PingFang SC;
  1068. font-weight: 500;
  1069. font-size: 18px;
  1070. color: #0F172A;
  1071. line-height: 26px;
  1072. text-align: left;
  1073. white-space: nowrap;
  1074. }
  1075. .home-guide-feature-desc {
  1076. font-family: PingFang SC, PingFang SC;
  1077. font-weight: 400;
  1078. font-size: 14px;
  1079. color: #64748B;
  1080. line-height: 20px;
  1081. text-align: left;
  1082. white-space: nowrap;
  1083. }
  1084. .home-guide-access-tabs {
  1085. display: flex;
  1086. gap: 24px;
  1087. margin-top: 20px;
  1088. }
  1089. .home-guide-access-tab {
  1090. padding: 0;
  1091. border: none;
  1092. background: transparent;
  1093. font-size: 14px;
  1094. color: #64748B;
  1095. cursor: pointer;
  1096. }
  1097. .home-guide-access-tab.is-active {
  1098. color: #1678FF;
  1099. font-weight: 600;
  1100. }
  1101. .home-guide-block-tools .home-guide-block-head {
  1102. align-items: center;
  1103. gap: 16px;
  1104. }
  1105. .home-guide-block-tools .home-guide-block-num {
  1106. width: 46px;
  1107. height: 46px;
  1108. background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  1109. box-shadow: 0px 8px 20px 0px rgba(59, 130, 246, 0.24);
  1110. border-radius: 14px;
  1111. font-family: PingFang SC, PingFang SC;
  1112. font-weight: 600;
  1113. font-size: 20px;
  1114. color: #FFFFFF;
  1115. line-height: 26px;
  1116. text-align: center;
  1117. }
  1118. .home-guide-block-tools .home-guide-block-title {
  1119. font-family: PingFang SC, PingFang SC;
  1120. font-weight: 600;
  1121. font-size: 22px;
  1122. color: #0F172A;
  1123. line-height: 30px;
  1124. text-align: left;
  1125. }
  1126. .home-guide-block-tools .home-guide-block-desc {
  1127. font-family: PingFang SC, PingFang SC;
  1128. font-weight: 400;
  1129. font-size: 14px;
  1130. color: #64748B;
  1131. line-height: 20px;
  1132. text-align: left;
  1133. }
  1134. .home-guide-block-tools .home-guide-access-tabs {
  1135. gap: 32px;
  1136. margin-top: 26px;
  1137. }
  1138. .home-guide-block-tools .home-guide-access-tab {
  1139. position: relative;
  1140. padding: 0 0 13px;
  1141. font-family: PingFang SC, PingFang SC;
  1142. font-weight: 400;
  1143. font-size: 18px;
  1144. color: #0F172A;
  1145. line-height: 25px;
  1146. text-align: center;
  1147. }
  1148. .home-guide-block-tools .home-guide-access-tab.is-active {
  1149. font-weight: 600;
  1150. color: #1678FF;
  1151. }
  1152. .home-guide-block-tools .home-guide-access-tab.is-active::after {
  1153. content: "";
  1154. position: absolute;
  1155. left: 0;
  1156. right: 0;
  1157. bottom: 0;
  1158. height: 3px;
  1159. background: #1678FF;
  1160. }
  1161. .home-guide-tool-panel {
  1162. margin-top: 16px;
  1163. padding: 20px;
  1164. background: #F8FAFC;
  1165. border-radius: 12px;
  1166. border: 1px solid #E2E8F0;
  1167. }
  1168. .home-guide-tool-tabs {
  1169. display: flex;
  1170. justify-content: center;
  1171. gap: 12px;
  1172. }
  1173. .home-guide-tool-tab {
  1174. display: inline-flex;
  1175. align-items: center;
  1176. gap: 8px;
  1177. margin: 0;
  1178. padding: 10px 20px;
  1179. border: 1px solid #E2E8F0;
  1180. border-radius: 12px;
  1181. background: #FFFFFF;
  1182. font-family: PingFang SC, PingFang SC;
  1183. font-weight: 500;
  1184. font-size: 14px;
  1185. color: #475569;
  1186. line-height: 20px;
  1187. text-align: left;
  1188. cursor: pointer;
  1189. }
  1190. .home-guide-tool-tab.is-active {
  1191. border: none;
  1192. background: linear-gradient(107deg, #3B82F6 0%, #6366F1 100%);
  1193. box-shadow: 0px 4px 14px 0px rgba(59, 130, 246, 0.24);
  1194. font-weight: 600;
  1195. color: #FFFFFF;
  1196. }
  1197. .home-guide-tool-body {
  1198. display: flex;
  1199. gap: 20px;
  1200. margin-top: 20px;
  1201. align-items: stretch;
  1202. }
  1203. .home-guide-ima-body {
  1204. align-items: stretch;
  1205. }
  1206. .home-guide-ima-left,
  1207. .home-guide-ima-right {
  1208. flex: 1;
  1209. min-width: 0;
  1210. display: flex;
  1211. flex-direction: column;
  1212. }
  1213. .home-guide-doubao-body {
  1214. align-items: flex-start;
  1215. }
  1216. .home-guide-doubao-body .home-guide-ima-left {
  1217. flex: 1;
  1218. min-width: 0;
  1219. }
  1220. .home-guide-doubao-right {
  1221. flex: 0 0 auto;
  1222. }
  1223. .home-guide-doubao-img {
  1224. display: block;
  1225. width: 608px;
  1226. height: 472px;
  1227. max-width: 100%;
  1228. object-fit: contain;
  1229. }
  1230. .home-guide-ima-right {
  1231. gap: 16px;
  1232. }
  1233. .home-guide-ima-alert {
  1234. display: flex;
  1235. align-items: center;
  1236. gap: 10px;
  1237. padding: 12px 16px;
  1238. background: #FFF7E6;
  1239. border-radius: 12px;
  1240. border: 1px solid #FFD591;
  1241. }
  1242. .home-guide-ima-alert-icon {
  1243. width: 16px;
  1244. height: 16px;
  1245. flex-shrink: 0;
  1246. color: #F59E0B;
  1247. }
  1248. .home-guide-ima-alert-text {
  1249. flex: 1;
  1250. min-width: 0;
  1251. font-family: PingFang SC, PingFang SC;
  1252. font-weight: 400;
  1253. font-size: 13px;
  1254. color: #78350F;
  1255. line-height: 20px;
  1256. text-align: left;
  1257. }
  1258. .home-guide-ima-steps {
  1259. display: flex;
  1260. flex-direction: column;
  1261. gap: 18px;
  1262. margin-top: 18px;
  1263. }
  1264. .home-guide-ima-step {
  1265. display: flex;
  1266. align-items: center;
  1267. gap: 16px;
  1268. }
  1269. .home-guide-ima-step-num {
  1270. display: flex;
  1271. align-items: center;
  1272. justify-content: center;
  1273. flex-shrink: 0;
  1274. width: 32px;
  1275. height: 32px;
  1276. background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  1277. box-shadow: 0px 4px 12px 0px rgba(59, 130, 246, 0.3);
  1278. border-radius: 10px;
  1279. font-family: PingFang SC, PingFang SC;
  1280. font-weight: 600;
  1281. font-size: 15px;
  1282. color: #FFFFFF;
  1283. line-height: 20px;
  1284. text-align: center;
  1285. }
  1286. .home-guide-ima-step-title {
  1287. flex: 1;
  1288. min-width: 0;
  1289. font-family: PingFang SC, PingFang SC;
  1290. font-weight: 400;
  1291. font-size: 14px;
  1292. color: #1F2937;
  1293. line-height: 22px;
  1294. text-align: left;
  1295. }
  1296. .home-guide-ima-notes {
  1297. margin-top: 20px;
  1298. }
  1299. .home-guide-ima-notes-title {
  1300. font-family: PingFang SC, PingFang SC;
  1301. font-weight: 600;
  1302. font-size: 14px;
  1303. color: #1F2937;
  1304. line-height: 20px;
  1305. text-align: left;
  1306. }
  1307. .home-guide-ima-notes-list {
  1308. display: flex;
  1309. flex-direction: column;
  1310. gap: 8px;
  1311. margin: 8px 0 0;
  1312. padding: 0;
  1313. list-style: none;
  1314. }
  1315. .home-guide-ima-notes-list li {
  1316. display: flex;
  1317. align-items: flex-start;
  1318. gap: 8px;
  1319. font-family: PingFang SC, PingFang SC;
  1320. font-weight: 400;
  1321. font-size: 13px;
  1322. color: #6B7280;
  1323. line-height: 20px;
  1324. text-align: left;
  1325. }
  1326. .home-guide-ima-notes-list li::before {
  1327. content: "";
  1328. flex-shrink: 0;
  1329. width: 6px;
  1330. height: 6px;
  1331. margin-top: 7px;
  1332. background: #1678FF;
  1333. border-radius: 6px;
  1334. }
  1335. .home-guide-ima-panel {
  1336. display: flex;
  1337. flex-direction: column;
  1338. padding: 20px;
  1339. background: #1E293B;
  1340. border-radius: 12px;
  1341. }
  1342. .home-guide-ima-panel--config {
  1343. gap: 10px;
  1344. }
  1345. .home-guide-ima-panel--verify {
  1346. gap: 12px;
  1347. }
  1348. .home-guide-ima-panel-title {
  1349. font-family: PingFang SC, PingFang SC;
  1350. font-weight: 600;
  1351. font-size: 12px;
  1352. color: #94A3B8;
  1353. line-height: 16px;
  1354. text-align: left;
  1355. }
  1356. .home-guide-ima-panel-line {
  1357. font-family: PingFang SC, PingFang SC;
  1358. font-weight: 400;
  1359. font-size: 13px;
  1360. color: #E2E8F0;
  1361. line-height: 20px;
  1362. text-align: left;
  1363. }
  1364. .home-guide-ima-panel-hint {
  1365. font-family: PingFang SC, PingFang SC;
  1366. font-weight: 400;
  1367. font-size: 13px;
  1368. color: #94A3B8;
  1369. line-height: 20px;
  1370. text-align: left;
  1371. }
  1372. .home-guide-ima-quote {
  1373. width: fit-content;
  1374. max-width: 100%;
  1375. box-sizing: border-box;
  1376. padding: 6px 16px;
  1377. background: #213040;
  1378. border-radius: 4px;
  1379. border: 1px solid #454E5A;
  1380. font-family: PingFang SC, PingFang SC;
  1381. font-weight: 600;
  1382. font-size: 12px;
  1383. color: #86EFAC;
  1384. line-height: 16px;
  1385. text-align: center;
  1386. }
  1387. .home-guide-ima-check {
  1388. display: flex;
  1389. align-items: center;
  1390. gap: 9px;
  1391. }
  1392. .home-guide-ima-check-marks {
  1393. display: inline-flex;
  1394. align-items: center;
  1395. gap: 9px;
  1396. flex-shrink: 0;
  1397. font-family: PingFang SC, PingFang SC;
  1398. font-weight: 400;
  1399. font-size: 13px;
  1400. color: #10B981;
  1401. line-height: 20px;
  1402. }
  1403. .home-guide-ima-check-text {
  1404. font-family: PingFang SC, PingFang SC;
  1405. font-weight: 400;
  1406. font-size: 13px;
  1407. color: #E2E8F0;
  1408. line-height: 20px;
  1409. text-align: left;
  1410. }
  1411. .home-guide-cli-body {
  1412. display: grid;
  1413. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  1414. grid-template-areas:
  1415. "head ."
  1416. "title panel"
  1417. "steps panel";
  1418. column-gap: 20px;
  1419. row-gap: 20px;
  1420. }
  1421. .home-guide-cli-head {
  1422. grid-area: head;
  1423. display: flex;
  1424. align-items: center;
  1425. gap: 14px;
  1426. }
  1427. .home-guide-cli-logo-icon {
  1428. width: 38px;
  1429. height: 38px;
  1430. flex-shrink: 0;
  1431. }
  1432. .home-guide-cli-head-copy {
  1433. min-width: 0;
  1434. }
  1435. .home-guide-cli-name {
  1436. display: flex;
  1437. align-items: center;
  1438. flex-wrap: wrap;
  1439. }
  1440. .home-guide-cli-pkg {
  1441. font-family: Menlo, Menlo;
  1442. font-weight: 700;
  1443. font-size: 14px;
  1444. color: #0F172A;
  1445. line-height: 20px;
  1446. text-align: left;
  1447. }
  1448. .home-guide-cli-sep {
  1449. margin: 0 8px;
  1450. font-family: PingFang SC, PingFang SC;
  1451. font-weight: 400;
  1452. font-size: 14px;
  1453. color: #64748B;
  1454. line-height: 20px;
  1455. }
  1456. .home-guide-cli-alias {
  1457. font-family: PingFang SC, PingFang SC;
  1458. font-weight: 400;
  1459. font-size: 14px;
  1460. color: #64748B;
  1461. line-height: 20px;
  1462. text-align: left;
  1463. }
  1464. .home-guide-cli-tip {
  1465. margin-top: 2px;
  1466. font-family: PingFang SC, PingFang SC;
  1467. font-weight: 400;
  1468. font-size: 12px;
  1469. color: #94A3B8;
  1470. line-height: 16px;
  1471. text-align: left;
  1472. }
  1473. .home-guide-cli-steps-title {
  1474. grid-area: title;
  1475. margin: 0;
  1476. font-family: PingFang SC, PingFang SC;
  1477. font-weight: 500;
  1478. font-size: 16px;
  1479. color: #0F172A;
  1480. line-height: 24px;
  1481. text-align: left;
  1482. }
  1483. .home-guide-cli-steps {
  1484. grid-area: steps;
  1485. min-width: 0;
  1486. }
  1487. .home-guide-cli-panel {
  1488. grid-area: panel;
  1489. align-self: stretch;
  1490. min-width: 0;
  1491. display: flex;
  1492. flex-direction: column;
  1493. overflow: hidden;
  1494. border-radius: 12px;
  1495. background: #1E293B;
  1496. }
  1497. .home-guide-cli-step {
  1498. display: flex;
  1499. align-items: flex-start;
  1500. gap: 12px;
  1501. padding: 20px 0;
  1502. border-bottom: 1px solid #E2E8F0;
  1503. }
  1504. .home-guide-cli-step:first-child {
  1505. padding-top: 0;
  1506. }
  1507. .home-guide-cli-step:last-child {
  1508. border-bottom: none;
  1509. padding-bottom: 0;
  1510. }
  1511. .home-guide-cli-step-num {
  1512. display: flex;
  1513. align-items: center;
  1514. justify-content: center;
  1515. flex-shrink: 0;
  1516. width: 32px;
  1517. height: 32px;
  1518. background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  1519. box-shadow: 0px 4px 12px 0px rgba(139, 92, 246, 0.3);
  1520. border-radius: 10px;
  1521. font-family: PingFang SC, PingFang SC;
  1522. font-weight: 600;
  1523. font-size: 15px;
  1524. color: #FFFFFF;
  1525. line-height: 20px;
  1526. text-align: center;
  1527. }
  1528. .home-guide-cli-step-copy {
  1529. min-width: 0;
  1530. }
  1531. .home-guide-cli-step-title {
  1532. font-family: PingFang SC, PingFang SC;
  1533. font-weight: 500;
  1534. font-size: 16px;
  1535. color: #0F172A;
  1536. line-height: 24px;
  1537. text-align: left;
  1538. }
  1539. .home-guide-cli-step-desc {
  1540. font-family: PingFang SC, PingFang SC;
  1541. font-weight: 400;
  1542. font-size: 14px;
  1543. color: #64748B;
  1544. line-height: 20px;
  1545. text-align: left;
  1546. }
  1547. .home-guide-cli-list {
  1548. display: flex;
  1549. flex-direction: column;
  1550. gap: 10px;
  1551. padding: 14px 16px;
  1552. background: #1E293B;
  1553. }
  1554. .home-guide-cli-command {
  1555. display: flex;
  1556. align-items: flex-start;
  1557. justify-content: space-between;
  1558. gap: 12px;
  1559. padding: 12px;
  1560. background: #0F172A;
  1561. border-radius: 10px;
  1562. }
  1563. .home-guide-cli-command-main {
  1564. min-width: 0;
  1565. flex: 1;
  1566. }
  1567. .home-guide-cli-command-label {
  1568. display: flex;
  1569. align-items: center;
  1570. gap: 6px;
  1571. font-family: PingFang SC, PingFang SC;
  1572. font-weight: 600;
  1573. font-size: 11px;
  1574. color: #94A3B8;
  1575. line-height: 16px;
  1576. text-align: left;
  1577. white-space: nowrap;
  1578. }
  1579. .home-guide-cli-command-dot {
  1580. width: 6px;
  1581. height: 6px;
  1582. flex-shrink: 0;
  1583. background: #A78BFA;
  1584. border-radius: 6px;
  1585. }
  1586. .home-guide-cli-command-text {
  1587. display: block;
  1588. margin-top: 6px;
  1589. min-width: 0;
  1590. overflow: hidden;
  1591. text-overflow: ellipsis;
  1592. white-space: nowrap;
  1593. font-family: Consolas, Monaco, monospace;
  1594. font-size: 13px;
  1595. color: #7DD3FC;
  1596. line-height: 18px;
  1597. }
  1598. .home-guide-cli-command-copy {
  1599. display: inline-flex;
  1600. align-items: center;
  1601. gap: 4px;
  1602. margin: 0;
  1603. padding: 4px 8px;
  1604. border: none;
  1605. border-radius: 6px;
  1606. background: rgba(139, 92, 246, 0.2);
  1607. font-family: PingFang SC, PingFang SC;
  1608. font-weight: 600;
  1609. font-size: 11px;
  1610. color: #A78BFA;
  1611. line-height: 14px;
  1612. text-align: left;
  1613. cursor: pointer;
  1614. white-space: nowrap;
  1615. }
  1616. .home-guide-cli-command-copy-icon {
  1617. width: 12px;
  1618. height: 12px;
  1619. }
  1620. .home-guide-cli-footer {
  1621. display: flex;
  1622. align-items: center;
  1623. justify-content: space-between;
  1624. gap: 12px;
  1625. margin-top: auto;
  1626. padding: 18px 16px;
  1627. background: #0F172A;
  1628. border: 0 solid #334155;
  1629. }
  1630. .home-guide-cli-footer-tip {
  1631. font-family: PingFang SC, PingFang SC;
  1632. font-weight: 400;
  1633. font-size: 12px;
  1634. color: #94A3B8;
  1635. line-height: 16px;
  1636. text-align: left;
  1637. }
  1638. .home-guide-cli-copy-all {
  1639. display: inline-flex;
  1640. align-items: center;
  1641. gap: 6px;
  1642. margin: 0;
  1643. padding: 6px 12px;
  1644. border: none;
  1645. border-radius: 8px;
  1646. background: #1678FF;
  1647. font-family: PingFang SC, PingFang SC;
  1648. font-weight: 600;
  1649. font-size: 12px;
  1650. color: #FFFFFF;
  1651. line-height: 16px;
  1652. text-align: left;
  1653. cursor: pointer;
  1654. }
  1655. .home-guide-cli-copy-all-icon {
  1656. width: 12px;
  1657. height: 12px;
  1658. }
  1659. .home-guide-tool-steps,
  1660. .home-guide-code {
  1661. flex: 1;
  1662. min-width: 0;
  1663. }
  1664. .home-guide-tool-steps {
  1665. display: flex;
  1666. flex-direction: column;
  1667. }
  1668. .home-guide-tool-step+.home-guide-tool-step {
  1669. margin-top: 18px;
  1670. }
  1671. .home-guide-tool-step {
  1672. display: flex;
  1673. align-items: flex-start;
  1674. gap: 16px;
  1675. }
  1676. .home-guide-tool-step-num {
  1677. display: flex;
  1678. align-items: center;
  1679. justify-content: center;
  1680. flex-shrink: 0;
  1681. width: 32px;
  1682. height: 32px;
  1683. background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  1684. box-shadow: 0px 4px 12px 0px rgba(59, 130, 246, 0.3);
  1685. border-radius: 10px;
  1686. font-family: PingFang SC, PingFang SC;
  1687. font-weight: 600;
  1688. font-size: 15px;
  1689. color: #FFFFFF;
  1690. line-height: 20px;
  1691. text-align: center;
  1692. }
  1693. .home-guide-tool-step-copy {
  1694. flex: 1;
  1695. min-width: 0;
  1696. }
  1697. .home-guide-tool-step-title {
  1698. font-family: PingFang SC, PingFang SC;
  1699. font-weight: 500;
  1700. font-size: 16px;
  1701. color: #0F172A;
  1702. line-height: 24px;
  1703. text-align: left;
  1704. }
  1705. .home-guide-tool-step-desc {
  1706. font-family: PingFang SC, PingFang SC;
  1707. font-weight: 400;
  1708. font-size: 14px;
  1709. color: #64748B;
  1710. line-height: 20px;
  1711. text-align: left;
  1712. }
  1713. .home-guide-note {
  1714. margin-top: 20px;
  1715. padding: 16px;
  1716. background: linear-gradient(107deg, #FFFBEB 0%, #FEF3C7 100%);
  1717. border-radius: 12px;
  1718. border: 1px solid #FDE68A;
  1719. }
  1720. .home-guide-note-head {
  1721. display: flex;
  1722. align-items: center;
  1723. gap: 8px;
  1724. }
  1725. .home-guide-note-icon-box {
  1726. display: flex;
  1727. align-items: center;
  1728. justify-content: center;
  1729. flex-shrink: 0;
  1730. padding: 6px;
  1731. background: #F59E0B;
  1732. border-radius: 6px;
  1733. }
  1734. .home-guide-note-icon {
  1735. width: 12px;
  1736. height: 12px;
  1737. color: #FFFFFF;
  1738. }
  1739. .home-guide-note-title {
  1740. font-family: PingFang SC, PingFang SC;
  1741. font-weight: 500;
  1742. font-size: 15px;
  1743. color: #92400E;
  1744. line-height: 22px;
  1745. text-align: left;
  1746. }
  1747. .home-guide-note-list {
  1748. margin: 10px 0 0;
  1749. padding-left: 18px;
  1750. list-style: disc;
  1751. font-family: PingFang SC, PingFang SC;
  1752. font-weight: 400;
  1753. font-size: 13px;
  1754. color: #78350F;
  1755. line-height: 20px;
  1756. text-align: left;
  1757. }
  1758. .home-guide-note-list li {
  1759. margin-bottom: 10px;
  1760. }
  1761. .home-guide-note-list li:last-child {
  1762. margin-bottom: 0;
  1763. }
  1764. .home-guide-note-list li::marker {
  1765. color: #D97706;
  1766. }
  1767. .home-guide-code {
  1768. position: relative;
  1769. overflow: hidden;
  1770. border-radius: 12px;
  1771. background: #1E293B;
  1772. box-shadow: 0px 8px 24px 0px rgba(15, 23, 42, 0.18);
  1773. /* 高度由左侧步骤区撑开,代码内容不撑高整块区域 */
  1774. }
  1775. .home-guide-code-bar {
  1776. position: absolute;
  1777. top: 0;
  1778. left: 0;
  1779. right: 0;
  1780. z-index: 1;
  1781. display: flex;
  1782. align-items: center;
  1783. justify-content: space-between;
  1784. padding: 12px 14px;
  1785. border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  1786. background: #1E293B;
  1787. }
  1788. .home-guide-code-dots {
  1789. display: flex;
  1790. align-items: center;
  1791. gap: 6px;
  1792. width: 72px;
  1793. }
  1794. .home-guide-code-dots span {
  1795. width: 10px;
  1796. height: 10px;
  1797. border-radius: 50%;
  1798. }
  1799. .home-guide-code-dots span:nth-child(1) {
  1800. background: #FF5F57;
  1801. }
  1802. .home-guide-code-dots span:nth-child(2) {
  1803. background: #FEBC2E;
  1804. }
  1805. .home-guide-code-dots span:nth-child(3) {
  1806. background: #28C840;
  1807. }
  1808. .home-guide-code-title {
  1809. position: absolute;
  1810. left: 50%;
  1811. transform: translateX(-50%);
  1812. font-family: PingFang SC, PingFang SC;
  1813. font-weight: 500;
  1814. font-size: 13px;
  1815. color: #94A3B8;
  1816. line-height: 18px;
  1817. }
  1818. .home-guide-code-copy {
  1819. display: inline-flex;
  1820. align-items: center;
  1821. gap: 4px;
  1822. margin: 0;
  1823. padding: 6px 10px;
  1824. border: none;
  1825. border-radius: 6px;
  1826. background: #1678FF;
  1827. font-family: PingFang SC, PingFang SC;
  1828. font-weight: 500;
  1829. font-size: 12px;
  1830. color: #FFFFFF;
  1831. line-height: 16px;
  1832. cursor: pointer;
  1833. }
  1834. .home-guide-code-copy-icon {
  1835. width: 14px;
  1836. height: 14px;
  1837. }
  1838. .home-guide-code-body {
  1839. position: absolute;
  1840. top: 49px;
  1841. right: 0;
  1842. bottom: 0;
  1843. left: 0;
  1844. display: flex;
  1845. gap: 14px;
  1846. padding: 14px 16px 18px;
  1847. overflow: auto;
  1848. }
  1849. .home-guide-code-lines {
  1850. display: flex;
  1851. flex-direction: column;
  1852. flex-shrink: 0;
  1853. font-family: Consolas, Monaco, monospace;
  1854. font-size: 13px;
  1855. color: #64748B;
  1856. line-height: 22px;
  1857. text-align: right;
  1858. user-select: none;
  1859. }
  1860. .home-guide-code-pre {
  1861. margin: 0;
  1862. flex: 1;
  1863. min-width: 0;
  1864. font-family: Consolas, Monaco, monospace;
  1865. font-size: 13px;
  1866. line-height: 22px;
  1867. white-space: pre;
  1868. color: #E2E8F0;
  1869. }
  1870. .home-guide-code-pre .code-key {
  1871. color: #7DD3FC;
  1872. }
  1873. .home-guide-code-pre .code-string {
  1874. color: #86EFAC;
  1875. }
  1876. .home-guide-code-pre .code-punct {
  1877. color: #CBD5E1;
  1878. }
  1879. .home-guide-block-verify .home-guide-block-head {
  1880. align-items: center;
  1881. gap: 12px;
  1882. }
  1883. .home-guide-block-verify .home-guide-block-num {
  1884. width: 46px;
  1885. height: 46px;
  1886. background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  1887. box-shadow: 0px 8px 20px 0px rgba(139, 92, 246, 0.24);
  1888. border-radius: 14px;
  1889. font-family: PingFang SC, PingFang SC;
  1890. font-weight: 600;
  1891. font-size: 20px;
  1892. color: #FFFFFF;
  1893. line-height: 26px;
  1894. text-align: center;
  1895. }
  1896. .home-guide-block-verify .home-guide-block-title {
  1897. font-family: PingFang SC, PingFang SC;
  1898. font-weight: 600;
  1899. font-size: 20px;
  1900. color: #0F172A;
  1901. line-height: 28px;
  1902. text-align: left;
  1903. }
  1904. .home-guide-block-verify .home-guide-block-desc {
  1905. margin-top: 2px;
  1906. font-family: PingFang SC, PingFang SC;
  1907. font-weight: 400;
  1908. font-size: 14px;
  1909. color: #64748B;
  1910. line-height: 20px;
  1911. text-align: left;
  1912. }
  1913. .home-guide-verify {
  1914. display: flex;
  1915. gap: 16px;
  1916. margin-top: 16px;
  1917. }
  1918. .home-guide-verify-card {
  1919. flex: 1;
  1920. min-width: 0;
  1921. padding: 20px;
  1922. background: #F8FAFC;
  1923. border-radius: 12px;
  1924. border: 1px solid #E2E8F0;
  1925. }
  1926. .home-guide-verify-line {
  1927. height: 4px;
  1928. border-radius: 0;
  1929. }
  1930. .home-guide-verify-card:nth-child(1) .home-guide-verify-line {
  1931. background: linear-gradient(270deg, #059669 0%, #10B981 100%);
  1932. }
  1933. .home-guide-verify-card:nth-child(2) .home-guide-verify-line {
  1934. background: linear-gradient(270deg, #3B82F6 0%, #60A5FA 100%);
  1935. }
  1936. .home-guide-verify-card:nth-child(3) .home-guide-verify-line {
  1937. background: linear-gradient(270deg, #8B5CF6 0%, #A78BFA 100%);
  1938. }
  1939. .home-guide-verify-head {
  1940. display: flex;
  1941. align-items: center;
  1942. gap: 10px;
  1943. margin-top: 10px;
  1944. }
  1945. .home-guide-verify-icon-box {
  1946. display: flex;
  1947. align-items: center;
  1948. justify-content: center;
  1949. flex-shrink: 0;
  1950. padding: 10px;
  1951. border-radius: 10px;
  1952. }
  1953. .home-guide-verify-card:nth-child(1) .home-guide-verify-icon-box {
  1954. background: #ECFDF5;
  1955. }
  1956. .home-guide-verify-card:nth-child(2) .home-guide-verify-icon-box {
  1957. background: #DBEAFE;
  1958. }
  1959. .home-guide-verify-card:nth-child(3) .home-guide-verify-icon-box {
  1960. background: #F3E8FF;
  1961. }
  1962. .home-guide-verify-title {
  1963. font-family: PingFang SC, PingFang SC;
  1964. font-weight: 600;
  1965. font-size: 16px;
  1966. color: #0F172A;
  1967. line-height: 24px;
  1968. text-align: left;
  1969. }
  1970. .home-guide-verify-list {
  1971. display: flex;
  1972. flex-direction: column;
  1973. gap: 10px;
  1974. margin-top: 10px;
  1975. }
  1976. .home-guide-verify-item {
  1977. display: flex;
  1978. align-items: center;
  1979. justify-content: space-between;
  1980. gap: 8px;
  1981. padding: 12px 10px;
  1982. background: #FFFFFF;
  1983. border-radius: 10px;
  1984. font-family: PingFang SC, PingFang SC;
  1985. font-weight: 500;
  1986. font-size: 13px;
  1987. color: #334155;
  1988. line-height: 20px;
  1989. text-align: left;
  1990. }
  1991. .home-guide-verify-item span {
  1992. flex: 1;
  1993. min-width: 0;
  1994. white-space: nowrap;
  1995. overflow: hidden;
  1996. text-overflow: ellipsis;
  1997. }
  1998. .home-guide-verify-copy {
  1999. flex-shrink: 0;
  2000. color: #94A3B8;
  2001. cursor: pointer;
  2002. }
  2003. </style>