/* 弹窗样式 */
.voice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.voice-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voice-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.voice-modal-overlay.active .voice-modal {
    transform: translateY(0);
}

.voice-modal-header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

.voice-modal-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.voice-modal-content {
    padding: 25px;
    text-align: center;
}

.voice-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.voice-modal-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-modal-btn.enable {
    background: #4CAF50;
    color: white;
}

.voice-modal-btn.disable {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.voice-modal-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.voice-modal-option {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.voice-modal-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

/* 音频状态提示 */
.voice-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-status.show {
    opacity: 1;
}
