123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- .container {
- min-height: 100vh;
- background: linear-gradient(180deg, #f0f7ff 0%, #fff1f9 100%);
- padding: 30rpx 30rpx 0 0;
- }
- .header {
- padding-left: 30rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 40rpx;
- .title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- }
- .currency-area {
- display: flex;
- gap: 20rpx;
- .coin-box,
- .gold-box {
- display: flex;
- align-items: center;
- padding: 10rpx 20rpx;
- background: #fff;
- border-radius: 30rpx;
- box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
- image {
- width: 40rpx;
- height: 40rpx;
- margin-right: 10rpx;
- }
- }
- .coin-box {
- background: #90d369;
- .coin-count {
- color: #478C2A;
- }
- }
- .gold-box {
- background: #FFD700;
- .gold-count {
- color: #B8860B;
- }
- }
- }
- }
- // 添加点击动画的混入
- @mixin click-animation {
- transition: transform 0.2s ease;
-
- &:active {
- transform: scale(0.95);
- }
- }
- .card-grid {
- padding-left: 30rpx;
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- grid-template-areas:
- "character music"
- "character cube";
- gap: 20rpx;
- margin-bottom: 40rpx;
- .card {
- @include click-animation; // 添加点击动画
- border-radius: 20rpx;
- position: relative;
- overflow: hidden;
- &.blue {
- grid-area: character;
- background: linear-gradient(to right, #59C2FF, #1B84FF);
- height: 320rpx;
- }
- &.pink {
- grid-area: music;
- background: linear-gradient(to right, #FF88D1, #FF3B9A);
- height: 150rpx;
- }
- &.purple {
- grid-area: cube;
- background: linear-gradient(to right, #9D8BFF, #6E54EC);
- height: 150rpx;
- }
- &.gray {
- background: #4B5563;
- height: 160rpx;
- padding: 30rpx;
- }
- &.card-large {
- padding: 40rpx;
- }
- &.card-medium {
- padding: 30rpx;
- }
- .card-content {
- height: 100%;
- position: relative;
- .text-area {
- z-index: 1;
- position: relative;
- }
- .card-title {
- font-size: 40rpx;
- color: #fff;
- font-weight: bold;
- margin-bottom: 16rpx;
- }
- .card-desc {
- font-size: 26rpx;
- color: rgba(255, 255, 255, 0.9);
- }
- }
- // AI创角卡片的特殊样式
- &.blue .card-content {
- .card-image {
- position: absolute;
- right: -20rpx;
- bottom: -40rpx;
- width: 280rpx;
- height: 280rpx;
- z-index: 0;
- }
- .star-icon {
- position: absolute;
- width: 40rpx;
- height: 40rpx;
- &.star-1 {
- top: 20rpx;
- right: 100rpx;
- }
- &.star-2 {
- top: 80rpx;
- right: 180rpx;
- }
- }
- }
- // AI灵感写歌卡片的特殊样式
- &.pink .card-content {
- .card-image {
- position: absolute;
- right: -10rpx;
- bottom: -20rpx;
- width: 160rpx;
- height: 160rpx;
- z-index: 0;
- }
- }
- // 萌萌智绘魔方卡片的特殊样式
- &.purple .card-content {
- .card-image {
- position: absolute;
- right: -10rpx;
- bottom: -20rpx;
- width: 160rpx;
- height: 160rpx;
- z-index: 0;
- }
- }
- }
- }
- .tutorial {
- margin-left: 30rpx;
- margin-bottom: 20rpx;
- .tutorial-block {
- @include click-animation; // 添加点击动画
- background: #fff;
- border-radius: 20rpx;
- padding: 30rpx;
- margin-bottom: 20rpx;
- .tutorial-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- margin-bottom: 20rpx;
- }
- .tutorial-content {
- min-height: 200rpx;
- }
- }
- }
|