index.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. page {
  2. background: #f2f6f2;
  3. }
  4. .container {
  5. min-height: 100vh;
  6. background: linear-gradient(180deg, #f0f7ff 0%, #fff1f9 100%);
  7. padding: 0;
  8. background: #f2f6f2;
  9. }
  10. .header-box {
  11. padding: calc(44rpx + var(--status-bar-height)) 20rpx 12rpx 36rpx;
  12. display: flex;
  13. align-items: center;
  14. justify-content: space-between;
  15. background: url("../../static/make/wd_bg_bianjiziliao.png") center/100% auto
  16. no-repeat;
  17. .title {
  18. font-size: 40rpx;
  19. font-weight: bold;
  20. color: #333;
  21. font-family: "CustomFont" !important;
  22. }
  23. .currency-area {
  24. display: flex;
  25. gap: 20rpx;
  26. .coin-box,
  27. .gold-box {
  28. display: flex;
  29. align-items: center;
  30. background: #fff;
  31. border-radius: 30rpx;
  32. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  33. padding: 4rpx 12rpx 8rpx 8rpx;
  34. image {
  35. width: 40rpx;
  36. height: 40rpx;
  37. margin-right: 12rpx;
  38. }
  39. }
  40. }
  41. }
  42. // 添加点击动画的混入
  43. @mixin click-animation {
  44. transition: transform 0.2s ease;
  45. &:active {
  46. transform: scale(0.95);
  47. }
  48. }
  49. .card-grid {
  50. padding-left: 30rpx;
  51. display: grid;
  52. grid-template-columns: repeat(2, 1fr);
  53. grid-template-areas:
  54. "character music"
  55. "character cube";
  56. gap: 20rpx;
  57. margin-bottom: 40rpx;
  58. .card {
  59. @include click-animation; // 添加点击动画
  60. border-radius: 20rpx;
  61. position: relative;
  62. overflow: hidden;
  63. &.character {
  64. position: relative;
  65. left: 0;
  66. top: 0;
  67. grid-area: character;
  68. // background: linear-gradient(to right, #59c2ff, #1b84ff);
  69. background: url("../../static/make/cz_btn_chuangjue.png") center/100% auto
  70. no-repeat;
  71. height: 268rpx;
  72. width: 346rpx;
  73. padding: 34rpx 0 0 28rpx !important;
  74. .text-area {
  75. display: flex;
  76. flex-direction: column;
  77. .card-title {
  78. margin-bottom: 4rpx;
  79. }
  80. .card-desc {
  81. width: 150rpx;
  82. font-weight: 400;
  83. font-size: 20rpx;
  84. color: rgba(255, 255, 255, 0.8);
  85. }
  86. }
  87. .btn-box {
  88. font-weight: 400;
  89. font-size: 22rpx;
  90. color: #1966ed;
  91. background: #ffffff;
  92. border-radius: 24rpx;
  93. padding: 8rpx 14rpx 6rpx 16rpx;
  94. display: inline-block;
  95. position: absolute;
  96. left: 0rpx;
  97. bottom: 32rpx;
  98. }
  99. }
  100. &.music {
  101. grid-area: music;
  102. // background: linear-gradient(to right, #ff88d1, #ff3b9a);
  103. background: url("../../static/make/cz_btn_lingganxiege.png") center/100%
  104. auto no-repeat;
  105. height: 124rpx;
  106. }
  107. &.cube {
  108. grid-area: cube;
  109. // background: linear-gradient(to right, #9d8bff, #6e54ec);
  110. background: url("../../static/make/cz_btn_zhihuimofang.png") center/100%
  111. auto no-repeat;
  112. height: 124rpx;
  113. }
  114. &.gray {
  115. background: #4b5563;
  116. height: 160rpx;
  117. padding: 30rpx;
  118. }
  119. &.card-large {
  120. padding: 40rpx;
  121. }
  122. &.card-medium {
  123. padding: 30rpx;
  124. }
  125. .card-content {
  126. height: 100%;
  127. position: relative;
  128. .text-area {
  129. z-index: 1;
  130. position: relative;
  131. }
  132. .card-title {
  133. font-size: 36rpx;
  134. color: #fff;
  135. font-weight: bold;
  136. margin-bottom: 8rpx;
  137. }
  138. .card-desc {
  139. font-size: 26rpx;
  140. color: rgba(255, 255, 255, 0.9);
  141. }
  142. }
  143. // AI创角卡片的特殊样式
  144. &.blue .card-content {
  145. .card-image {
  146. position: absolute;
  147. right: -20rpx;
  148. bottom: -40rpx;
  149. width: 280rpx;
  150. height: 280rpx;
  151. z-index: 0;
  152. }
  153. .star-icon {
  154. position: absolute;
  155. width: 40rpx;
  156. height: 40rpx;
  157. &.star-1 {
  158. top: 20rpx;
  159. right: 100rpx;
  160. }
  161. &.star-2 {
  162. top: 80rpx;
  163. right: 180rpx;
  164. }
  165. }
  166. }
  167. // AI灵感写歌卡片的特殊样式
  168. &.pink .card-content {
  169. .card-image {
  170. position: absolute;
  171. right: -10rpx;
  172. bottom: -20rpx;
  173. width: 160rpx;
  174. height: 160rpx;
  175. z-index: 0;
  176. }
  177. }
  178. // 萌萌智绘魔方卡片的特殊样式
  179. &.purple .card-content {
  180. .card-image {
  181. position: absolute;
  182. right: -10rpx;
  183. bottom: -20rpx;
  184. width: 160rpx;
  185. height: 160rpx;
  186. z-index: 0;
  187. }
  188. }
  189. }
  190. }
  191. .guide-title {
  192. font-size: 16px;
  193. color: #1f1f1f;
  194. font-family: "PingFang SC-Bold";
  195. padding-left: 36rpx;
  196. padding-bottom: 12rpx;
  197. }
  198. .tutorial {
  199. padding: 0 20rpx;
  200. .tutorial-block {
  201. @include click-animation; // 添加点击动画
  202. width: 100%;
  203. min-height: 212rpx;
  204. background: #fff;
  205. border-radius: 20rpx;
  206. padding: 30rpx;
  207. margin-bottom: 20rpx;
  208. display: flex;
  209. flex-direction: column;
  210. &:nth-child(1) {
  211. background: url("../../static/make/cz_bg_jiaocheng01.png") center/100%
  212. auto no-repeat;
  213. }
  214. &:nth-child(2) {
  215. background: url("../../static/make/cz_bg_jiaocheng02.png") center/100%
  216. auto no-repeat;
  217. }
  218. &:nth-child(3) {
  219. background: url("../../static/make/cz_bg_jiaocheng03.png") center/100%
  220. auto no-repeat;
  221. }
  222. .tutorial-btn {
  223. image {
  224. width: 24rpx;
  225. height: 24rpx;
  226. }
  227. display: inline-flex;
  228. align-items: center;
  229. justify-content: space-between;
  230. font-family: "PingFang SC-Bold";
  231. font-weight: 400;
  232. font-size: 24rpx;
  233. color: #ffffff;
  234. background: #1f1f1f;
  235. padding: 0 6rpx;
  236. border-radius: 8rpx;
  237. line-height: 1.5;
  238. }
  239. .tutorial-title {
  240. font-weight: 400;
  241. font-size: 34rpx;
  242. color: #1f1f1f;
  243. margin-top: 10rpx;
  244. margin-bottom: 10rpx;
  245. font-family: "PingFang SC-Bold";
  246. }
  247. .tutorial-content {
  248. font-weight: 400;
  249. font-size: 11px;
  250. color: #1f1f1f;
  251. }
  252. }
  253. }