index.scss 5.8 KB

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