/** * 医疗语音助手样式文件 */ /* 语音按钮样式 */ #medical-voice-btn { position: fixed; bottom: 100px; right: 30px; z-index: 10000; padding: 15px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 50px; cursor: pointer; font-size: 16px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.3s ease; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } #medical-voice-btn:hover { background-color: #45a049; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); } #medical-voice-btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* 录音中的按钮样式 */ #medical-voice-btn.recording { background-color: #f44336; animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); } 50% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); } } /* 消息提示框样式 */ #medical-voice-message { position: fixed; top: 20px; right: 20px; background: #333; color: white; padding: 15px 25px; border-radius: 5px; z-index: 10001; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; max-width: 300px; word-wrap: break-word; } /* 消息提示框动画 */ #medical-voice-message.show { animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* 成功消息样式 */ #medical-voice-message.success { background: #4CAF50; } /* 错误消息样式 */ #medical-voice-message.error { background: #f44336; } /* 警告消息样式 */ #medical-voice-message.warning { background: #ff9800; } /* 高亮填写的字段 */ .medical-voice-highlight { background-color: #fff3cd !important; border: 2px solid #ffc107 !important; animation: highlightFade 3s ease-out forwards; } @keyframes highlightFade { 0% { background-color: #fff3cd; border: 2px solid #ffc107; } 100% { background-color: transparent; border: 1px solid #ccc; } }