page { } .container { min-height: 100vh; background: linear-gradient(180deg, #f0f7ff 0%, #fff1f9 100%); padding: 0; background: url("../../static/make/wd_bg_bianjiziliao.png") center top/100% auto no-repeat,#f2f6f2; } .header-box { padding: calc(44rpx + var(--status-bar-height)) 20rpx 12rpx 36rpx; display: flex; align-items: center; justify-content: space-between; .title { font-size: 40rpx; font-weight: bold; color: #333; font-family: "CustomFont" !important; } .currency-area { display: flex; gap: 20rpx; align-items: center; min-width: 400rpx; // width: 260rpx; .coin-box, .gold-box { display: flex; align-items: center; background: #fff; border-radius: 30rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); padding: 4rpx 12rpx 8rpx 8rpx; text{ display: inline-block; } image { width: 40rpx; height: 40rpx; margin-right: 12rpx; } } } } // 添加点击动画的混入 @mixin click-animation { transition: transform 0.2s ease; &:active { transform: scale(0.95); } } .card-grid { padding-left: 20rpx; padding-right: 20rpx; 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; &.character { position: relative; left: 0; top: 0; grid-area: character; // background: linear-gradient(to right, #59c2ff, #1b84ff); background: url("../../static/make/cz_btn_chuangjue.png") center/100% auto no-repeat; height: 268rpx; width: 346rpx; padding: 34rpx 0 0 28rpx !important; .text-area { display: flex; flex-direction: column; .card-title { margin-bottom: 4rpx; } .card-desc { width: 150rpx; font-weight: 400; font-size: 20rpx; color: rgba(255, 255, 255, 0.8); } } .btn-box { font-weight: 400; font-size: 22rpx; color: #1966ed; background: #ffffff; border-radius: 24rpx; padding: 8rpx 14rpx 6rpx 16rpx; display: inline-block; position: absolute; left: 0rpx; bottom: 32rpx; } } &.music { grid-area: music; // background: linear-gradient(to right, #ff88d1, #ff3b9a); background: url("../../static/make/cz_btn_lingganxiege.png") center/100% auto no-repeat; height: 124rpx; } &.cube { grid-area: cube; // background: linear-gradient(to right, #9d8bff, #6e54ec); background: url("../../static/make/cz_btn_zhihuimofang.png") center/100% auto no-repeat; height: 124rpx; } &.gray { background: #4b5563; height: 160rpx; padding: 30rpx; } &.card-large { padding: 40rpx; } &.card-medium { padding:18rpx 30rpx; } .card-content { height: 100%; position: relative; .text-area { z-index: 1; position: relative; } .card-title { font-size: 32rpx; color: #fff; font-weight: bold; margin-bottom: 4rpx; } .card-desc { font-size: 22rpx; 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; } } } } .guide-title { font-size: 16px; color: #1f1f1f; font-family: "PingFang SC-Bold"; padding-left: 36rpx; padding-bottom: 12rpx; } .tutorial { padding: 0 20rpx; .tutorial-block { @include click-animation; // 添加点击动画 width: 100%; min-height: 212rpx; background: #fff; border-radius: 20rpx; padding: 30rpx; margin-bottom: 20rpx; display: flex; flex-direction: column; &:nth-child(1) { background: url("../../static/make/cz_bg_jiaocheng01.png") center/100% auto no-repeat; } &:nth-child(2) { background: url("../../static/make/cz_bg_jiaocheng02.png") center/100% auto no-repeat; } &:nth-child(3) { background: url("../../static/make/cz_bg_jiaocheng03.png") center/100% auto no-repeat; } .tutorial-btn { image { width: 24rpx; height: 24rpx; } display: inline-flex; align-items: center; justify-content: space-between; font-family: "PingFang SC-Bold"; font-weight: 400; font-size: 24rpx; color: #ffffff; background: #1f1f1f; padding: 0 6rpx; border-radius: 8rpx; line-height: 1.5; } .tutorial-title { font-weight: 400; font-size: 34rpx; color: #1f1f1f; margin-top: 10rpx; margin-bottom: 10rpx; font-family: "PingFang SC-Bold"; } .tutorial-content { font-weight: 400; font-size: 11px; color: #1f1f1f; } } }