index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. <!--
  2. * @Author: LiZhiWei
  3. * @LastEditors: LiZhiWei
  4. * @LastEditTime: 2026-01-15 11:03:00
  5. * @Description:
  6. -->
  7. <template>
  8. <div class="landing">
  9. <section class="hero">
  10. <div class="flex items-center pb-48px px-240px pt-200px">
  11. <div class="text-left">
  12. <div class="font-s-48px font-semibold text-#000000">智慧社区整体解决方案</div>
  13. <p class="font-s-18px text-#091221/70">
  14. 绘家科技助力物业管理数字化转型,提升服务品质与业主满意度。
  15. </p>
  16. <div class="mt-35px flex items-center gap-48px">
  17. <div class="metric">
  18. <div class="metric-value">300+</div>
  19. <div class="metric-label">设备接入</div>
  20. </div>
  21. <div class="metric">
  22. <div class="metric-value">800+</div>
  23. <div class="metric-label">业务流程</div>
  24. </div>
  25. <div class="metric">
  26. <div class="metric-value">60w+</div>
  27. <div class="metric-label">服务人群</div>
  28. </div>
  29. </div>
  30. <div class="mt-35px flex flex-wrap items-center gap-12px">
  31. <button
  32. class="btn-primary w-127px h-56px! rounded-8px text-white font-s-18px pf-sc-semibold"
  33. >
  34. 查看方案
  35. </button>
  36. <button
  37. class="btn-outline w-127px h-56px! border-[1px] border-#0F67F8! font-s-18px font-semibold text-#0F67F8! bg-white rounded-8px hover:opacity-80"
  38. @click="openConsultation"
  39. >
  40. 立即咨询
  41. </button>
  42. </div>
  43. </div>
  44. </div>
  45. </section>
  46. <section
  47. id="solution"
  48. ref="solutionRef"
  49. class="h-744px px-240px pt-120px transition-all duration-1000 ease-out"
  50. :class="[isSolutionVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  51. >
  52. <div class="text-center mb-45px">
  53. <div class="font-s-36px font-semibold text-#000000 mb-4px">物业管理正面临这些挑战</div>
  54. <div class="font-s-16px text-#091221/70">
  55. 传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型
  56. </div>
  57. </div>
  58. <div class="flex h-365px w-full gap-24px">
  59. <div
  60. v-for="(solution, index) in solutions"
  61. :key="solution.id"
  62. class="relative flex h-full cursor-pointer overflow-hidden rounded-16px transition-[flex,background-color] duration-500 ease-in-out"
  63. :class="[
  64. index === activeIndex
  65. ? 'flex-[1_1_0%] bg-[linear-gradient(0deg,#E5E9F5_0%,#EFF2FB_100%)]'
  66. : 'flex-[0_0_220px] bg-[linear-gradient(180deg,#E8F6FD_50.48%,#A5D7FD_100%)]',
  67. ]"
  68. @mouseenter="activeIndex = index"
  69. >
  70. <Transition
  71. mode="out-in"
  72. enter-active-class="transition-opacity duration-500 ease-in-out"
  73. enter-from-class="opacity-0"
  74. enter-to-class="opacity-100"
  75. leave-active-class="transition-opacity duration-200 ease-in-out"
  76. leave-from-class="opacity-100"
  77. leave-to-class="opacity-0"
  78. >
  79. <div v-if="index === activeIndex" class="wh-full pt-40px px-48px">
  80. <div class="font-s-18px text-#000000 pf-sc-semibold">
  81. {{ solution.hoverTitle }}
  82. </div>
  83. <div
  84. class="font-s-14px lh-24px mt-8px text-#091221/70 pf-sc-regular whitespace-nowrap"
  85. >
  86. {{ solution.hoverDesc }}
  87. </div>
  88. <div class="mt-24px flex flex-col gap-8px">
  89. <div v-for="item in solution.hoverItems" :key="item.title" class="flex flex-col">
  90. <div class="flex gap-8px items-center font-s-14px">
  91. <i class="i-custom-check-one wh-18px"></i>
  92. <span class="text-#091221 pf-sc-semibold">
  93. {{ item.title }}
  94. </span>
  95. <span class="text-#091221/70 pf-sc-regular">
  96. {{ item.itemDesc }}
  97. </span>
  98. </div>
  99. </div>
  100. </div>
  101. <button
  102. class="mt-56px h-48px! w-268px! bg-#0F67F8 text-white pf-sc-regular rounded-8px px-16px flex items-center justify-between hover:opacity-80"
  103. @click="openConsultation"
  104. >
  105. <span class="font-s-16px">立即咨询</span>
  106. <i class="i-custom-arrow-right wh-18px"></i>
  107. </button>
  108. <img
  109. :src="solution.hoverImg"
  110. alt=""
  111. class="wh-280px position-absolute bottom--37px right-0"
  112. />
  113. </div>
  114. <div v-else class="wh-full pt-40px px-24px">
  115. <div class="wh-40px ml-2px bg-white rounded-10px flex-center">
  116. <img :src="solution.img" alt="" class="wh-35px" />
  117. </div>
  118. <div class="mt-18px font-s-18px text-#091221 pf-sc-semibold">
  119. {{ solution.title }}
  120. </div>
  121. <div class="mt-8px font-s-14px lh-24px text-#091221/70 pf-sc-regular w-172px">
  122. {{ solution.desc }}
  123. </div>
  124. <i
  125. class="i-custom-circle-right-up wh-48px position-absolute bottom-24px left-24px"
  126. ></i>
  127. </div>
  128. </Transition>
  129. </div>
  130. </div>
  131. </section>
  132. <section id="ability" class="ability">
  133. <div class="font-s-36px text-#000000 pf-sc-semibold flex-center lh-60px">
  134. 一体化智慧解决方案
  135. </div>
  136. <div class="font-s-16px text-#091221/70 pf-sc-regular lh-30px flex-center mt-4px">
  137. 我们的一体化智慧解决方案整合了智能收费、智能运维、智能监控等多个功能模块,实现了物业管理的全流程数字化管理。
  138. </div>
  139. <div class="mt-24px flex-center flex-col">
  140. <div class="relative flex items-center rounded-14px border border-#ECEFF6 bg-#F6F8FD p-6px">
  141. <!-- 滑块背景 -->
  142. <div
  143. class="absolute w-136px h-[calc(100%-12px)] transition-all duration-300 ease-out rounded-8px bg-#0F67F8"
  144. :style="{
  145. transform: `translateX(${abilityTabs.findIndex((tab) => tab.id === activeAbilityTab.id) * 136}px)`,
  146. }"
  147. ></div>
  148. <div
  149. v-for="tab in abilityTabs"
  150. :key="tab.title"
  151. class="relative z-1 cursor-pointer py-14px px-20px text-center font-s-16px transition-colors duration-300 pf-sc-regular"
  152. :class="[
  153. activeAbilityTab.id === tab.id ? 'text-white' : 'text-#091221 hover:text-#0F67F8',
  154. ]"
  155. @click="handleAbilityTabClick(tab)"
  156. >
  157. {{ tab.title }}
  158. </div>
  159. </div>
  160. <div class="tab-content pt-45px">
  161. <Transition name="tab-fade" mode="out-in">
  162. <div :key="activeAbilityTab.id" class="grid grid-cols-3 gap-24px">
  163. <div
  164. v-for="ability in abilities[activeAbilityTab.id]"
  165. :key="ability.title"
  166. class="group relative flex flex-col rounded-16px border border-#ECEFF6 bg-[linear-gradient(0deg,_#FFFFFF_0%,_rgba(255,255,255,0.6)_100%)] p-24px transition-all duration-300 hover:border-#0F67F8/30 hover:shadow-[0_8px_24px_rgba(15,103,248,0.08)]"
  167. >
  168. <i :class="ability.icon" class="wh-48px"></i>
  169. <div class="mt-16px font-s-18px font-semibold text-#091221 pf-sc-semibold">
  170. {{ ability.title }}
  171. </div>
  172. <div class="mt-8px flex-1 font-s-14px text-#091221/70 pf-sc-regular">
  173. {{ ability.desc }}
  174. </div>
  175. <div
  176. class="mt-24px flex items-center gap-8px font-s-16px pf-sc-regular text-#0F67F8 transition-colors hover:text-#0A50FF cursor-pointer"
  177. >
  178. 查看详情
  179. <i
  180. class="i-custom-arrow-right-c color-#0F67F8 wh-18px transition-transform group-hover:translate-x-4px"
  181. ></i>
  182. </div>
  183. </div>
  184. </div>
  185. </Transition>
  186. </div>
  187. </div>
  188. </section>
  189. <section
  190. id="cases"
  191. ref="casesRef"
  192. class="px-240px pt-120px pb-46px transition-all duration-1000 ease-out"
  193. :class="[isCasesVisible ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-100px']"
  194. >
  195. <div class="text-center mb-60px">
  196. <div class="font-s-36px font-semibold text-#000000 pf-sc-semibold mb-12px">
  197. 知识产权和案例
  198. </div>
  199. <div class="font-s-16px text-#091221/70 pf-sc-regular">
  200. 绘家科技凭借强大的技术实力和丰富的实践经验,为客户提供卓越的智慧社区解决方案
  201. </div>
  202. </div>
  203. <div class="flex gap-24px">
  204. <div
  205. v-for="caseItem in cases"
  206. :key="caseItem.title"
  207. class="group flex-1 overflow-hidden rounded-16px bg-#F6F8FD p-32px transition-all duration-300"
  208. >
  209. <div class="flex flex-col">
  210. <img :src="caseItem.img" class="w-full h-218px rounded-12px" alt="" />
  211. <div class="font-s-18px font-semibold text-#091221 pf-sc-semibold mt-24px">
  212. {{ caseItem.title }}
  213. </div>
  214. <div class="mt-8px font-s-14px lh-24px text-#091221/70 pf-sc-regular">
  215. {{ caseItem.desc }}
  216. </div>
  217. <div class="mt-24px flex flex-col gap-8px">
  218. <div
  219. v-for="point in caseItem.points"
  220. :key="point.title"
  221. class="flex items-center gap-8px"
  222. >
  223. <i class="i-custom-check-one wh-20px mt-2px"></i>
  224. <div class="font-s-14px font-semibold text-#091221 pf-sc-semibold">
  225. {{ point.title }}
  226. </div>
  227. <div class="font-s-14px text-#091221/70 pf-sc-regular">
  228. {{ point.itemDesc }}
  229. </div>
  230. </div>
  231. </div>
  232. <button
  233. class="mt-56px flex items-center justify-between gap-8px rounded-8px bg-white px-16px py-15px font-s-16px text-#0F67F8 transition-all hover:bg-#0F67F8 hover:text-white"
  234. >
  235. {{ caseItem.btnText }}
  236. <i class="i-custom-arrow-right-c wh-18px"></i>
  237. </button>
  238. </div>
  239. </div>
  240. </div>
  241. </section>
  242. <section id="partnership" class="px-200px py-60px overflow-hidden">
  243. <div class="flex-center gap-32px mb-40px">
  244. <div class="h-2px w-320px bg-[linear-gradient(90deg,transparent_0%,#E5E9F5_100%)]"></div>
  245. <div class="text-center font-s-18px lh-21px text-#9CA0A7 pf-sc-regular whitespace-nowrap">
  246. 与合作伙伴携手,深入产业共创价值
  247. </div>
  248. <div class="h-2px w-320px bg-[linear-gradient(90deg,#E5E9F5_0%,transparent_100%)]"></div>
  249. </div>
  250. <div class="relative flex flex-col gap-0px -mt-24px">
  251. <!-- 第一行 -->
  252. <InspiraMarquee class="[--duration:80s] [--gap:24px] mb--31px">
  253. <div
  254. v-for="partner in partnersRow1"
  255. :key="partner"
  256. class="flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px"
  257. >
  258. <img :src="partner" alt="" class="wh-full object-contain" />
  259. </div>
  260. </InspiraMarquee>
  261. <!-- 第二行 -->
  262. <InspiraMarquee reverse class="[--duration:80s] [--delay:-20s] [--gap:24px]">
  263. <div
  264. v-for="partner in partnersRow2"
  265. :key="partner"
  266. class="flex-center h-80px w-200px bg-white rounded-8px shadow-[0_2px_8px_2px_rgba(0,0,0,0.06)] px-24px"
  267. >
  268. <img :src="partner" alt="" class="wh-full object-contain" />
  269. </div>
  270. </InspiraMarquee>
  271. <!-- 左右渐变遮罩 -->
  272. <div
  273. class="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-[linear-gradient(to_right,#fff,transparent)]"
  274. ></div>
  275. <div
  276. class="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-[linear-gradient(to_left,#fff,transparent)]"
  277. ></div>
  278. </div>
  279. </section>
  280. <section id="history" ref="timelineRef" class="history">
  281. <div
  282. class="flex flex-col items-center transition-all duration-1000"
  283. :class="[isTimelineVisible ? 'translate-y-0 opacity-100' : 'translate-y-40px opacity-0']"
  284. >
  285. <div
  286. class="pf-sc-semibold font-semibold font-s-36px text-#000000 lh-60px text-center mb-12px"
  287. >
  288. 发展历程
  289. </div>
  290. <div class="font-s-16px text-#091221/70 pf-sc-regular text-center lh-30px mb-80px">
  291. 从探索到引领,绘家科技每一步都坚实有力
  292. </div>
  293. <!-- 上部内容区 -->
  294. <div class="w-full h-255px flex py-50px items-center">
  295. <!-- 左侧大年份 -->
  296. <div v-if="currentYearData" class="relative pl-127px w-600px shrink-0">
  297. <span
  298. class="text-170px font-bold text-#0F67F8 pf-sc-bold select-none"
  299. style="-webkit-text-stroke: 1px #2563eb; text-shadow: 0 0 20px rgba(37, 99, 235, 0.1)"
  300. >
  301. {{ currentYearData.year }}
  302. </span>
  303. </div>
  304. <!-- 右侧事件描述 -->
  305. <div v-if="currentEventData" class="flex-1 h-full flex flex-col justify-start pt-14px">
  306. <div class="flex justify-between items-center">
  307. <span class="text-22px font-semibold lh-30.8px text-#091221 pf-sc-semibold flex-1">
  308. {{ currentEventData.month }}
  309. </span>
  310. <!-- 右上方小切换 -->
  311. <div class="flex gap-12px">
  312. <i
  313. class="i-custom-arrow-circle-left wh-32px cursor-pointer hover:i-custom-arrow-circle-left-active"
  314. @click="prevEvent"
  315. ></i>
  316. <i
  317. class="i-custom-arrow-circle-right wh-32px cursor-pointer hover:i-custom-arrow-circle-right-active"
  318. @click="nextEvent"
  319. ></i>
  320. </div>
  321. </div>
  322. <div class="h-2px w-34px bg-#0F67F8 mt-12px"></div>
  323. <div class="flex-1 text-20px lh-35px text-#091221/70 pf-sc-regular mt-26px pr-114px">
  324. {{ currentEventData.content }}
  325. </div>
  326. </div>
  327. </div>
  328. <!-- 时间轴 -->
  329. <div class="w-full relative pt-47px pb-60px">
  330. <!-- 轨道容器 -->
  331. <div class="relative h-16px w-full bg-white rounded-full px-60px">
  332. <!-- 进度条:从轨道最左侧开始到当前点 -->
  333. <div
  334. class="absolute left-0 top-0 h-full bg-gradient-to-r from-[#60A5FA] to-[#2563EB] rounded-full transition-all duration-500 ease-out z-1"
  335. :style="progressStyle"
  336. ></div>
  337. <!-- 内部轨道(用于定位时间点) -->
  338. <div class="relative h-full w-full">
  339. <!-- 时间点列表 -->
  340. <div
  341. v-for="(item, index) in historyYears"
  342. :key="item.year"
  343. class="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 flex flex-col items-center cursor-pointer group z-2"
  344. :style="{ left: `${(index / (historyYears.length - 1)) * 100}%` }"
  345. @click="selectYear(index)"
  346. >
  347. <!-- 圆点 -->
  348. <div
  349. class="w-16px h-16px rounded-full transition-all duration-300 relative bg-white"
  350. :class="[
  351. index < currentYearIndex
  352. ? 'hidden'
  353. : 'border-#0F67F8 group-hover:border-[#2563EB] border-1',
  354. index === currentYearIndex
  355. ? 'scale-150 outline-6px outline-#CEE0FF outline-solid border-none'
  356. : '',
  357. ]"
  358. :style="
  359. index <= currentYearIndex
  360. ? { background: 'linear-gradient(90deg, #779EFF 0%, #0A50FF 100%)' }
  361. : {}
  362. "
  363. ></div>
  364. <!-- 年份文字 -->
  365. <span
  366. class="absolute top-24px text-16px transition-all duration-300 whitespace-nowrap"
  367. :class="[
  368. index === currentYearIndex
  369. ? 'text-#2563EB font-bold pf-sc-bold scale-110'
  370. : 'text-#94A3B8 group-hover:text-[#64748B]',
  371. ]"
  372. >
  373. {{ item.year }}
  374. </span>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <!-- 底部大切换 -->
  380. <div class="flex gap-24px mt-40px">
  381. <i
  382. class="wh-56px i-custom-button-previous hover:i-custom-button-previous-active flex-center cursor-pointer"
  383. :class="{
  384. 'opacity-30 cursor-not-allowed hover:i-custom-button-previous!':
  385. currentYearIndex === 0,
  386. }"
  387. @click="prevYear"
  388. ></i>
  389. <i
  390. class="wh-56px i-custom-button-next hover:i-custom-button-next-active flex-center cursor-pointer"
  391. :class="{
  392. 'opacity-30 cursor-not-allowed hover:i-custom-button-next!':
  393. currentYearIndex === historyYears.length - 1,
  394. }"
  395. @click="nextYear"
  396. ></i>
  397. </div>
  398. </div>
  399. </section>
  400. <section class="cta py-60px flex-center flex-col">
  401. <div class="pf-sc-semibold font-s-40px lh-56px text-center">开启您的智慧社区转型之旅</div>
  402. <div class="font-s-18px text-#232325 pf-sc-light">
  403. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  404. </div>
  405. <button
  406. class="h-52px! mt-22px w-268px! bg-#0F67F8 text-white pf-sc-regular rounded-8px px-16px flex items-center justify-between hover:opacity-80"
  407. @click="openConsultation"
  408. >
  409. <span class="font-s-16px">立即咨询</span>
  410. <i class="i-custom-arrow-right wh-18px"></i>
  411. </button>
  412. </section>
  413. </div>
  414. </template>
  415. <script setup lang="ts">
  416. import {
  417. abilityTabs,
  418. solutions,
  419. abilities,
  420. cases,
  421. partnersRow1,
  422. partnersRow2,
  423. historyYears,
  424. } from '@/constants/common'
  425. const { openConsultation } = useConsultation()
  426. const activeIndex = ref(0)
  427. const solutionRef = ref<HTMLElement | null>(null)
  428. const casesRef = ref<HTMLElement | null>(null)
  429. const timelineRef = ref<HTMLElement | null>(null)
  430. const isSolutionVisible = ref(false)
  431. const isCasesVisible = ref(false)
  432. const isTimelineVisible = ref(false)
  433. // 发展历程状态
  434. const currentYearIndex = ref(0)
  435. const currentEventIndex = ref(0)
  436. const currentYearData = computed(() => {
  437. const data = historyYears[currentYearIndex.value]
  438. return data || historyYears[0]
  439. })
  440. const currentEventData = computed(() => {
  441. const events = currentYearData.value?.events || []
  442. return events[currentEventIndex.value] || events[0]
  443. })
  444. const progressStyle = computed(() => {
  445. const totalSteps = Math.max(historyYears.length - 1, 1)
  446. if (currentYearIndex.value === totalSteps) {
  447. return {
  448. width: '100%',
  449. }
  450. }
  451. const percentage = currentYearIndex.value / totalSteps
  452. return {
  453. width: `calc(60px + ${percentage} * (100% - 120px))`,
  454. }
  455. })
  456. const nextYear = () => {
  457. if (currentYearIndex.value < historyYears.length - 1) {
  458. currentYearIndex.value++
  459. currentEventIndex.value = 0
  460. }
  461. }
  462. const prevYear = () => {
  463. if (currentYearIndex.value > 0) {
  464. currentYearIndex.value--
  465. currentEventIndex.value = 0
  466. }
  467. }
  468. const nextEvent = () => {
  469. const events = currentYearData.value?.events || []
  470. if (currentEventIndex.value < events.length - 1) {
  471. currentEventIndex.value++
  472. } else if (currentYearIndex.value < historyYears.length - 1) {
  473. currentYearIndex.value++
  474. currentEventIndex.value = 0
  475. }
  476. }
  477. const prevEvent = () => {
  478. if (currentEventIndex.value > 0) {
  479. currentEventIndex.value--
  480. } else if (currentYearIndex.value > 0) {
  481. currentYearIndex.value--
  482. const prevYearEvents = historyYears[currentYearIndex.value]?.events || []
  483. currentEventIndex.value = prevYearEvents.length - 1
  484. }
  485. }
  486. const selectYear = (index: number) => {
  487. currentYearIndex.value = index
  488. currentEventIndex.value = 0
  489. }
  490. const activeAbilityTab = ref<AbilityTab>(abilityTabs[0] as AbilityTab)
  491. const handleAbilityTabClick = (tab: AbilityTab) => {
  492. activeAbilityTab.value = tab
  493. }
  494. onMounted(() => {
  495. const observer = new IntersectionObserver(
  496. (entries) => {
  497. entries.forEach((entry) => {
  498. if (entry.isIntersecting) {
  499. if (entry.target === solutionRef.value) {
  500. isSolutionVisible.value = true
  501. }
  502. if (entry.target === casesRef.value) {
  503. isCasesVisible.value = true
  504. }
  505. if (entry.target === timelineRef.value) {
  506. isTimelineVisible.value = true
  507. }
  508. observer.unobserve(entry.target)
  509. }
  510. })
  511. },
  512. { threshold: 0.1 }
  513. )
  514. if (solutionRef.value) {
  515. observer.observe(solutionRef.value)
  516. }
  517. if (casesRef.value) {
  518. observer.observe(casesRef.value)
  519. }
  520. if (timelineRef.value) {
  521. observer.observe(timelineRef.value)
  522. }
  523. })
  524. </script>
  525. <style scoped lang="scss">
  526. .landing {
  527. color: var(--hj-text);
  528. background: var(--hj-bg);
  529. }
  530. .hero {
  531. @apply h-680px relative overflow-hidden;
  532. background-size: 100% 100%;
  533. background-image: url('@/assets/images/banner.png');
  534. .metric {
  535. @apply flex items-start flex-col;
  536. .metric-value {
  537. @apply font-s-32px font-semibold text-#0F67F8;
  538. }
  539. .metric-label {
  540. @apply font-s-14px text-#384146;
  541. }
  542. }
  543. }
  544. .ability {
  545. @apply px-240px py-120px;
  546. background-size: 100% 100%;
  547. background-image: url('@/assets/images/bg-ability.png');
  548. }
  549. .tab-fade-enter-active {
  550. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  551. }
  552. .tab-fade-leave-active {
  553. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  554. }
  555. .tab-fade-enter-from {
  556. opacity: 0;
  557. transform: translateX(30px);
  558. }
  559. .tab-fade-leave-to {
  560. opacity: 0;
  561. transform: translateX(-30px);
  562. }
  563. /* 卡片级联动画 */
  564. .grid > div {
  565. animation: card-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  566. }
  567. @for $i from 1 through 10 {
  568. .grid > div:nth-child(#{$i}) {
  569. animation-delay: #{$i * 0.05}s;
  570. }
  571. }
  572. @keyframes card-slide-up {
  573. from {
  574. opacity: 0;
  575. transform: translateY(20px);
  576. }
  577. to {
  578. opacity: 1;
  579. transform: translateY(0);
  580. }
  581. }
  582. .btn-primary {
  583. @apply bg-gradient-to-r from-[#779EFF] to-[#0A50FF];
  584. border: none;
  585. outline: none;
  586. //hover 背景颜色
  587. &:hover {
  588. opacity: 0.8;
  589. }
  590. }
  591. .history {
  592. @apply overflow-hidden relative py-60px px-260px;
  593. background-size: 100% 100%;
  594. background-image: url('@/assets/images/history-bg.png');
  595. }
  596. .cta {
  597. @apply w-full h-276px;
  598. background-size: 100% 100%;
  599. background-image: url('@/assets/images/bg-3.png');
  600. }
  601. </style>