index.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. @font-face {
  2. font-family: "CustomFont";
  3. src: url("@/static/fonts/alibaba.otf") format("opentype");
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. .page-top {
  8. background: url("/static/home/home-top.png") 518rpx
  9. calc(-10rpx + var(--status-bar-height)) / 212rpx 296rpx no-repeat,
  10. url("/static/home/home-t.png") top center/100% auto no-repeat,
  11. linear-gradient(to top, #d0ffa5, #acff5f);
  12. }
  13. .tab-nav {
  14. display: flex;
  15. justify-content: flex-start;
  16. padding: 20rpx 20rpx;
  17. box-sizing: border-box;
  18. background: #ffffff;
  19. .tab-item {
  20. padding: 10rpx 38rpx;
  21. color: #1f1f1f;
  22. font-size: 28rpx;
  23. background: #f2f6f2;
  24. margin-right: 20rpx;
  25. border-radius: 30rpx;
  26. position: relative;
  27. left: 0;
  28. top: 0;
  29. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  30. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  31. &:active {
  32. transform: scale(0.95);
  33. box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  34. }
  35. .indicator-triangle {
  36. position: absolute;
  37. bottom: -10rpx;
  38. left: 50%;
  39. transform: translateX(-50%);
  40. width: 0;
  41. height: 0;
  42. border-left: 10rpx solid transparent;
  43. border-right: 10rpx solid transparent;
  44. border-top: 10rpx solid #acf934;
  45. display: none;
  46. transition: all 0.3s ease;
  47. }
  48. &.active {
  49. background: #acf934;
  50. font-family: "CustomFont" !important;
  51. box-shadow: 0 4rpx 12rpx rgba(172, 249, 52, 0.3);
  52. .indicator-triangle {
  53. display: block;
  54. transform: translateX(-50%) scale(1.2);
  55. }
  56. }
  57. }
  58. }
  59. .hot-topics {
  60. padding: 20rpx;
  61. // background: #fff;
  62. margin: 20rpx;
  63. border-radius: 16rpx;
  64. border: #000000 solid 2rpx;
  65. background: url("../../static/home/hot-topice-bg.png") center/100% 99%
  66. no-repeat;
  67. .hot-topics-header {
  68. margin-bottom: 20rpx;
  69. .hot-topics-title {
  70. width: 140rpx;
  71. height: 34rpx;
  72. }
  73. }
  74. .hot-topics-swiper {
  75. height: 220rpx;
  76. box-sizing: border-box;
  77. }
  78. .hot-topics-list {
  79. padding: 0 26rpx;
  80. padding-bottom: 0;
  81. height: 100%;
  82. display: flex;
  83. flex-direction: column;
  84. justify-content: flex-start;
  85. min-height: 220rpx;
  86. }
  87. .topic-item {
  88. display: flex;
  89. align-items: center;
  90. padding: 10rpx 0;
  91. justify-content: space-between;
  92. width: 100%;
  93. min-height: 50rpx;
  94. margin-bottom: 10rpx;
  95. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  96. &:active {
  97. transform: scale(0.98);
  98. }
  99. &:last-child {
  100. margin-bottom: 0;
  101. }
  102. .hot-topics-left {
  103. display: flex;
  104. transition: all 0.3s ease;
  105. .topic-index {
  106. width: 30rpx;
  107. height: 30rpx;
  108. font-weight: 700;
  109. font-size: 24rpx;
  110. display: inline-flex;
  111. align-items: center;
  112. justify-content: center;
  113. color: #fff;
  114. border-radius: 5rpx;
  115. margin-right: 18rpx;
  116. background: #cecece;
  117. transition: all 0.3s ease;
  118. &.topic-index-img {
  119. background: transparent;
  120. color: transparent;
  121. width: 36rpx;
  122. height: 36rpx;
  123. position: relative;
  124. left: -2rpx;
  125. top: 0;
  126. }
  127. }
  128. .topic-content {
  129. font-size: 24rpx;
  130. max-width: 330rpx;
  131. overflow: hidden;
  132. text-overflow: ellipsis;
  133. white-space: nowrap;
  134. transition: all 0.3s ease;
  135. }
  136. }
  137. .topic-participants {
  138. font-size: 20rpx;
  139. color: #999;
  140. transition: all 0.3s ease;
  141. }
  142. .hot-tag {
  143. width: 46rpx;
  144. height: 22rpx;
  145. margin: auto;
  146. margin-left: 10rpx;
  147. transition: all 0.3s ease;
  148. }
  149. }
  150. .indicator-dots {
  151. display: flex;
  152. justify-content: center;
  153. margin-top: 20rpx;
  154. .dot {
  155. width: 12rpx;
  156. height: 12rpx;
  157. border-radius: 50%;
  158. background: #ffffff;
  159. margin: 0 6rpx;
  160. &.active {
  161. background: #808080;
  162. }
  163. }
  164. }
  165. }
  166. .follow-list {
  167. padding: 20rpx;
  168. background: #fff;
  169. margin: 0rpx;
  170. border-radius: 0rpx;
  171. .works-list {
  172. display: flex;
  173. flex-wrap: wrap;
  174. padding: 10rpx;
  175. .work-item {
  176. width: 48%;
  177. margin: 1%;
  178. margin-bottom: 20rpx;
  179. .work-image {
  180. width: 100%;
  181. aspect-ratio: 1;
  182. border-radius: 12rpx;
  183. }
  184. .work-title {
  185. font-size: 28rpx;
  186. color: #ffffff;
  187. margin-top: 10rpx;
  188. padding: 0 10rpx;
  189. white-space: nowrap;
  190. overflow: hidden;
  191. text-overflow: ellipsis;
  192. }
  193. }
  194. }
  195. .no-data {
  196. display: flex;
  197. flex-direction: column;
  198. align-items: center;
  199. justify-content: center;
  200. padding: 60rpx 0;
  201. background-color: #fff;
  202. text {
  203. color: #808080;
  204. font-size: 28rpx;
  205. }
  206. }
  207. }
  208. .no-data {
  209. text-align: center;
  210. padding: 40rpx 0;
  211. color: #808080;
  212. font-size: 28rpx;
  213. }
  214. .news-list {
  215. padding: 20rpx;
  216. background: #fff;
  217. .news-grid {
  218. display: flex;
  219. flex-wrap: wrap;
  220. justify-content: space-between;
  221. .news-item {
  222. width: 48%;
  223. margin-bottom: 30rpx;
  224. background: #28292d;
  225. border-radius: 12rpx;
  226. overflow: hidden;
  227. .news-image {
  228. width: 100%;
  229. aspect-ratio: 1;
  230. height: auto;
  231. border-radius: 12rpx 12rpx 0 0;
  232. }
  233. .news-title {
  234. font-size: 28rpx;
  235. color: #ffffff;
  236. padding: 15rpx;
  237. white-space: nowrap;
  238. overflow: hidden;
  239. text-overflow: ellipsis;
  240. height: 60rpx;
  241. line-height: 60rpx;
  242. }
  243. .news-footer {
  244. display: flex;
  245. justify-content: space-between;
  246. align-items: center;
  247. padding: 0 15rpx 15rpx;
  248. .news-author {
  249. font-size: 24rpx;
  250. color: #808080;
  251. max-width: 60%;
  252. white-space: nowrap;
  253. overflow: hidden;
  254. text-overflow: ellipsis;
  255. }
  256. .news-views {
  257. display: flex;
  258. align-items: center;
  259. font-size: 24rpx;
  260. color: #808080;
  261. .view-icon {
  262. width: 26rpx;
  263. height: 18rpx;
  264. margin-right: 6rpx;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. }
  271. .float-btn {
  272. position: fixed;
  273. right: 30rpx;
  274. bottom: 145rpx;
  275. width: 120rpx;
  276. height: 120rpx;
  277. border-radius: 50%;
  278. display: flex;
  279. justify-content: center;
  280. align-items: center;
  281. z-index: 999;
  282. .float-btn-icon {
  283. width: 100%;
  284. height: 100%;
  285. }
  286. }
  287. .blankHeight {
  288. // width: 500rpx;
  289. // height: 500rpx;
  290. width: 100%;
  291. height: 144rpx;
  292. }
  293. .benner-box {
  294. box-sizing: border-box;
  295. padding: 20rpx;
  296. background: #fff;
  297. border-top-left-radius: 40rpx;
  298. border-top-right-radius: 40rpx;
  299. ::v-deep.uv-swiper {
  300. border-radius: 20rpx !important;
  301. overflow: hidden;
  302. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  303. &:active {
  304. transform: scale(0.98);
  305. }
  306. }
  307. .classModel {
  308. display: flex;
  309. justify-content: space-between;
  310. align-items: center;
  311. position: relative;
  312. left: 0;
  313. right: 0;
  314. .benner-iconBom {
  315. height: 18rpx;
  316. width: 50rpx;
  317. position: absolute;
  318. top: calc(55% + 18rpx);
  319. left: 50%;
  320. transform: translateX(-50%);
  321. z-index: 99;
  322. }
  323. .benner-icontop {
  324. width: 45rpx;
  325. height: 20rpx;
  326. position: absolute;
  327. top: 55%;
  328. left: 50%;
  329. transform: translateX(-50%);
  330. }
  331. .benner-box {
  332. height: 256rpx;
  333. width: 344rpx;
  334. position: relative;
  335. }
  336. .benner-left-box {
  337. background: url("../../static/home/benner-left.-bg.png") center/100% 99%
  338. no-repeat;
  339. .text1 {
  340. color: rgba(255, 255, 255, 0.8);
  341. color: 28rpx;
  342. position: absolute;
  343. left: 26rpx;
  344. top: 88rpx;
  345. }
  346. .btn {
  347. font-size: 24rpx;
  348. background: #1f1f1f;
  349. color: #acf934;
  350. display: inline-block;
  351. border-radius: 390rpx;
  352. padding: 8rpx 24rpx;
  353. padding-bottom: 10rpx;
  354. position: absolute;
  355. bottom: 38rpx;
  356. left: 26rpx;
  357. }
  358. }
  359. .benner-right-box {
  360. background: url("../../static/home/benner-right-bg.png") center/100% 99%
  361. no-repeat;
  362. display: flex;
  363. flex-direction: column;
  364. justify-content: space-evenly;
  365. align-items: center;
  366. height: 256rpx;
  367. .text {
  368. color: #999;
  369. font-size: 20rpx;
  370. position: absolute;
  371. top: 56rpx;
  372. left: 26rpx;
  373. }
  374. .guard {
  375. position: relative;
  376. left: 0;
  377. top: 0;
  378. width: 312rpx;
  379. height: 104rpx;
  380. background: url("../../static/home/benner-right-btnTop.png") center/100%
  381. no-repeat;
  382. margin-bottom: 10rpx;
  383. }
  384. .match {
  385. position: relative;
  386. left: 0;
  387. top: 0;
  388. width: 312rpx;
  389. height: 104rpx;
  390. background: url("../../static/home/benner-right-btnBom.png") center/100%
  391. no-repeat;
  392. }
  393. }
  394. }
  395. }
  396. .waterfall-list-container {
  397. background: #fff;
  398. }
  399. .navCenter {
  400. .topBox {
  401. display: flex;
  402. flex-direction: row;
  403. justify-content: center;
  404. align-items: center;
  405. }
  406. }
  407. .lhSelectCity {
  408. background-color: #fff;
  409. position: fixed;
  410. left: 0;
  411. right: 0;
  412. width: 100%;
  413. height: 100vh;
  414. padding: 0 25rpx;
  415. padding-top: var(--status-bar-height);
  416. }
  417. .homePage {
  418. ::v-deep.zp-scroll-view-super {
  419. // padding-top: 22rpx;
  420. border-top-left-radius: 40rpx;
  421. border-top-right-radius: 40rpx;
  422. background-color: #fff;
  423. }
  424. }