index copy.scss 6.2 KB

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