.scan-page { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: #000; } .scan-camera { width: 100%; height: 100%; } .scan-top { position: absolute; left: 0; top: 0; right: 0; padding: calc(24rpx + env(safe-area-inset-top)) 32rpx 40rpx; background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); } .scan-overlay-title { color: #ffffff; font-size: 32rpx; font-weight: 600; text-align: center; } .scan-overlay-sub { margin-top: 8rpx; color: rgba(255, 255, 255, 0.75); font-size: 24rpx; text-align: center; } .scan-aim { position: absolute; left: 50%; top: 42%; width: 480rpx; height: 300rpx; margin-left: -240rpx; margin-top: -150rpx; border: 4rpx solid rgba(16, 185, 129, 0.9); border-radius: 16rpx; } .scan-banner { position: absolute; left: 60rpx; right: 60rpx; bottom: 220rpx; padding: 22rpx 28rpx; border-radius: 16rpx; font-size: 30rpx; font-weight: 600; text-align: center; color: #ffffff; } .scan-banner--ok { background: rgba(5, 150, 105, 0.92); } .scan-banner--err { background: rgba(220, 38, 38, 0.92); } .scan-close { position: absolute; left: 60rpx; right: 60rpx; bottom: calc(48rpx + env(safe-area-inset-bottom)); padding: 26rpx 0; border-radius: 8rpx; background: rgba(255, 255, 255, 0.92); } .scan-close-text { color: #065f46; font-size: 32rpx; font-weight: 600; text-align: center; }