.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; } } }