index.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. .container {
  2. min-height: 100vh;
  3. background: linear-gradient(180deg, #f0f7ff 0%, #fff1f9 100%);
  4. padding: 30rpx 30rpx 0 0;
  5. }
  6. .header {
  7. padding-left: 30rpx;
  8. display: flex;
  9. justify-content: space-between;
  10. align-items: center;
  11. margin-bottom: 40rpx;
  12. .title {
  13. font-size: 36rpx;
  14. font-weight: bold;
  15. color: #333;
  16. }
  17. .currency-area {
  18. display: flex;
  19. gap: 20rpx;
  20. .coin-box,
  21. .gold-box {
  22. display: flex;
  23. align-items: center;
  24. padding: 10rpx 20rpx;
  25. background: #fff;
  26. border-radius: 30rpx;
  27. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  28. image {
  29. width: 40rpx;
  30. height: 40rpx;
  31. margin-right: 10rpx;
  32. }
  33. }
  34. .coin-box {
  35. background: #90d369;
  36. .coin-count {
  37. color: #478C2A;
  38. }
  39. }
  40. .gold-box {
  41. background: #FFD700;
  42. .gold-count {
  43. color: #B8860B;
  44. }
  45. }
  46. }
  47. }
  48. // 添加点击动画的混入
  49. @mixin click-animation {
  50. transition: transform 0.2s ease;
  51. &:active {
  52. transform: scale(0.95);
  53. }
  54. }
  55. .card-grid {
  56. padding-left: 30rpx;
  57. display: grid;
  58. grid-template-columns: repeat(2, 1fr);
  59. grid-template-areas:
  60. "character music"
  61. "character cube";
  62. gap: 20rpx;
  63. margin-bottom: 40rpx;
  64. .card {
  65. @include click-animation; // 添加点击动画
  66. border-radius: 20rpx;
  67. position: relative;
  68. overflow: hidden;
  69. &.blue {
  70. grid-area: character;
  71. background: linear-gradient(to right, #59C2FF, #1B84FF);
  72. height: 320rpx;
  73. }
  74. &.pink {
  75. grid-area: music;
  76. background: linear-gradient(to right, #FF88D1, #FF3B9A);
  77. height: 150rpx;
  78. }
  79. &.purple {
  80. grid-area: cube;
  81. background: linear-gradient(to right, #9D8BFF, #6E54EC);
  82. height: 150rpx;
  83. }
  84. &.gray {
  85. background: #4B5563;
  86. height: 160rpx;
  87. padding: 30rpx;
  88. }
  89. &.card-large {
  90. padding: 40rpx;
  91. }
  92. &.card-medium {
  93. padding: 30rpx;
  94. }
  95. .card-content {
  96. height: 100%;
  97. position: relative;
  98. .text-area {
  99. z-index: 1;
  100. position: relative;
  101. }
  102. .card-title {
  103. font-size: 40rpx;
  104. color: #fff;
  105. font-weight: bold;
  106. margin-bottom: 16rpx;
  107. }
  108. .card-desc {
  109. font-size: 26rpx;
  110. color: rgba(255, 255, 255, 0.9);
  111. }
  112. }
  113. // AI创角卡片的特殊样式
  114. &.blue .card-content {
  115. .card-image {
  116. position: absolute;
  117. right: -20rpx;
  118. bottom: -40rpx;
  119. width: 280rpx;
  120. height: 280rpx;
  121. z-index: 0;
  122. }
  123. .star-icon {
  124. position: absolute;
  125. width: 40rpx;
  126. height: 40rpx;
  127. &.star-1 {
  128. top: 20rpx;
  129. right: 100rpx;
  130. }
  131. &.star-2 {
  132. top: 80rpx;
  133. right: 180rpx;
  134. }
  135. }
  136. }
  137. // AI灵感写歌卡片的特殊样式
  138. &.pink .card-content {
  139. .card-image {
  140. position: absolute;
  141. right: -10rpx;
  142. bottom: -20rpx;
  143. width: 160rpx;
  144. height: 160rpx;
  145. z-index: 0;
  146. }
  147. }
  148. // 萌萌智绘魔方卡片的特殊样式
  149. &.purple .card-content {
  150. .card-image {
  151. position: absolute;
  152. right: -10rpx;
  153. bottom: -20rpx;
  154. width: 160rpx;
  155. height: 160rpx;
  156. z-index: 0;
  157. }
  158. }
  159. }
  160. }
  161. .tutorial {
  162. margin-left: 30rpx;
  163. margin-bottom: 20rpx;
  164. .tutorial-block {
  165. @include click-animation; // 添加点击动画
  166. background: #fff;
  167. border-radius: 20rpx;
  168. padding: 30rpx;
  169. margin-bottom: 20rpx;
  170. .tutorial-title {
  171. font-size: 32rpx;
  172. font-weight: bold;
  173. color: #333;
  174. margin-bottom: 20rpx;
  175. }
  176. .tutorial-content {
  177. min-height: 200rpx;
  178. }
  179. }
  180. }