.container { min-height: 100vh; background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%); padding-bottom: 120rpx; } /* 画布容器 */ .canvas-container { position: relative; width: 100%; height: 800rpx; overflow: hidden; } .wish-tree-canvas { width: 100%; height: 100%; } /* 许愿条覆盖层 */ .wishes-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } .wish-tag { position: absolute; padding: 8rpx 16rpx; border-radius: 20rpx; font-size: 20rpx; color: #fff; pointer-events: auto; transform: translate(-50%, -50%); box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.2); max-width: 200rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wish-tag.free { background: linear-gradient(135deg, #FF6B6B, #FF8E8E); } .wish-tag.paid { background: linear-gradient(135deg, #FFD700, #FFA500); } .wish-tag.robot { border: 2rpx dashed #fff; } .wish-text { font-size: 20rpx; } .wish-badge { position: absolute; top: -8rpx; right: -8rpx; background: #FF4500; color: #fff; font-size: 16rpx; padding: 2rpx 8rpx; border-radius: 10rpx; } /* 操作栏 */ .action-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 20rpx 30rpx; background: rgba(255,255,255,0.95); box-shadow: 0 -2rpx 20rpx rgba(0,0,0,0.1); } .btn-wish { display: flex; align-items: center; justify-content: center; gap: 10rpx; background: linear-gradient(135deg, #C41E3A, #E74C3C); color: #fff; font-size: 32rpx; padding: 24rpx; border-radius: 50rpx; border: none; } .btn-wish .icon { font-size: 36rpx; } /* 提示区域 */ .tips-section { padding: 30rpx; margin-top: 20rpx; } .tip-item { display: flex; align-items: center; gap: 16rpx; padding: 20rpx; background: rgba(255,255,255,0.8); border-radius: 16rpx; margin-bottom: 16rpx; } .tip-icon { font-size: 36rpx; } .tip-text { font-size: 26rpx; color: #666; } /* 弹窗 */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; } .modal-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); } .modal-content { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 32rpx 32rpx 0 0; max-height: 80vh; overflow: hidden; } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 30rpx; border-bottom: 1rpx solid #eee; } .modal-title { font-size: 32rpx; font-weight: bold; color: #333; } .modal-close { font-size: 48rpx; color: #999; padding: 10rpx; } .modal-body { padding: 30rpx; max-height: 60vh; overflow-y: auto; } /* 类型选择 */ .type-selector { display: flex; gap: 20rpx; margin-bottom: 30rpx; } .type-item { flex: 1; padding: 24rpx; border: 2rpx solid #eee; border-radius: 16rpx; text-align: center; } .type-item.active { border-color: #C41E3A; background: #FFF5F5; } .type-name { display: block; font-size: 28rpx; font-weight: bold; color: #333; margin-bottom: 8rpx; } .type-desc { font-size: 22rpx; color: #999; } /* 输入框 */ .wish-input { width: 100%; height: 200rpx; padding: 20rpx; border: 2rpx solid #eee; border-radius: 16rpx; font-size: 28rpx; box-sizing: border-box; } .input-count { text-align: right; font-size: 22rpx; color: #999; margin-top: 10rpx; } /* 商品选择 */ .product-section { margin-top: 30rpx; } .section-title { font-size: 28rpx; font-weight: bold; color: #333; margin-bottom: 20rpx; } .product-list { display: flex; flex-direction: column; gap: 16rpx; } .product-item { display: flex; align-items: center; justify-content: space-between; padding: 24rpx; border: 2rpx solid #eee; border-radius: 16rpx; } .product-item.active { border-color: #C41E3A; background: #FFF5F5; } .product-name { font-size: 28rpx; font-weight: bold; color: #333; } .product-desc { font-size: 22rpx; color: #999; margin-top: 8rpx; } .product-price { font-size: 32rpx; font-weight: bold; color: #C41E3A; } /* 底部按钮 */ .modal-footer { display: flex; gap: 20rpx; padding: 30rpx; border-top: 1rpx solid #eee; } .modal-footer button { flex: 1; padding: 24rpx; border-radius: 50rpx; font-size: 28rpx; } .btn-outline { background: #fff; border: 2rpx solid #C41E3A; color: #C41E3A; } .btn-primary { background: linear-gradient(135deg, #C41E3A, #E74C3C); color: #fff; border: none; }