/* components/speechRecognition/speechRecognition.wxss */ .voicePop { position: fixed; top: 0; left: 0; z-index: 999; width: 100%; height: 100%; } .voice-container { padding: 30rpx; position: fixed; top: 180rpx; left: 10rpx; width: calc(100% - 20rpx); height: calc(100vh - 200rpx); border-radius: 30rpx; background: rgba(240, 248, 255, 0.97); box-sizing: border-box; } .title { padding-top: 100rpx; width: 100%; height: 100rpx; font-size: 40rpx; color: #000000; font-family: "苹方M"; } .title1 { padding-top: 20rpx; width: 100%; height: 100rpx; font-size: 34rpx; color: #000000; font-family: "苹方M"; } .exp { padding-top: 30rpx; width: 100%; height: 140rpx; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; } .exp-name { padding: 0 20rpx; margin: 20rpx 0 0 20rpx; height: 50rpx; line-height: 50rpx; font-size: 26rpx; color: #313131; font-family: "苹方R"; background: #ffffff; border-radius: 25rpx; box-sizing: border-box; } .result { position: relative; margin-top: 50rpx; width: 100%; height: calc(100% - 800rpx); } .voicing-box { position: absolute; bottom: 0; left: calc(50% - 100rpx); height: 100rpx; width: 200rpx; display: flex; align-items: center; justify-content: space-evenly; } .voiceing { width: 12rpx; height: 100rpx; border-radius: 6rpx; animation: voiceing 1s var(--time) infinite; } .voiceing:nth-child(1) { --time: -0.1s; background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); } .voiceing:nth-child(2) { --time: -0.2s; background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); } .voiceing:nth-child(3) { --time: -0.3s; background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%); } .voiceing:nth-child(4) { --time: -0.4s; background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%); } .voiceing:nth-child(5) { --time: -0.5s; background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%); } .voiceing:nth-child(6) { --time: -0.4s; background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); } .voiceing:nth-child(7) { --time: -0.3s; background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); } .voiceing:nth-child(8) { --time: -0.2s; background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); } .voiceing:nth-child(9) { --time: -0.1s; background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); } .voiceing:nth-child(10) { --time: 0s; background-image: linear-gradient(to top, #9890e3 0%, #b1f4cf 100%); } @keyframes voiceing { 0% { height: 100rpx; } 50% { height: 50rpx; } 100% { height: 100rpx; } } .tip { width: 100%; height: 80rpx; line-height: 80rpx; text-align: center; font-size: 26rpx; color: #707070; font-family: "苹方R"; } .voice { width: 100%; height: 120rpx; display: flex; align-items: center; justify-content: center; } .voice-button { position: relative; width: 120rpx; height: 120rpx; border-radius: 50%; background: #4686f6; box-shadow: 0 0 20rpx rgba(70, 134, 246, 0.5); display: flex; align-items: center; justify-content: center; } .voice-hover { background: #3666b9; } .voice-button-icon { width: 60rpx; height: auto; } .close { width: 100%; height: 60rpx; } .close-button { position: relative; width: 60rpx; height: 60rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: flex; align-items: center; justify-content: center; } .close-button::before, .close-button::after { position: absolute; content: ""; width: 40rpx; height: 4rpx; border-radius: 2rpx; background: #999999; rotate: -45deg; } .close-button::after { rotate: 45deg; }