index.scss 5.9 KB

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