body.no-select,
body.no-select * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.voice-overlay {
    display: none;
    position: relative;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    bottom: env(safe-area-inset-bottom); /* iOS刘海屏适配 */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.voice-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.mic-circle {
    width: 60px;
    height: 60px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    margin-bottom: 15px;
}

.volume-bars {
    display: flex;
    gap: 3px;
    height: 25px;
    margin-bottom: 10px;
}

.volume-bars span {
    width: 4px;
    background: #4caf50;
    border-radius: 2px;
    animation: volumeAnim 0.6s infinite ease-in-out;
}

.volume-bars span:nth-child(1) { animation-delay: 0s; }
.volume-bars span:nth-child(2) { animation-delay: 0.1s; }
.volume-bars span:nth-child(3) { animation-delay: 0.2s; }
.volume-bars span:nth-child(4) { animation-delay: 0.3s; }
.volume-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes volumeAnim {
    0% { height: 6px; }
    50% { height: 20px; }
    100% { height: 6px; }
}

.voice-tip {
    color: #ccc;
    font-size: 14px;
}

.voice-overlay.cancel .voice-box {
    background: rgba(255, 0, 0, 0.8);
}

.voice-overlay.cancel .mic-circle {
    background: #ff5555;
}

.voice-overlay.cancel .volume-bars span {
    background: #ffbbbb;
}

.voice-overlay.cancel .voice-tip {
    color: #fff;
}
