#assist-widget { position: fixed; bottom: 24px; left: 24px; z-index: 10000; } .assist-trigger { width: 60px; height: 60px; background: linear-gradient(135deg, #28a745, #218838); border-radius: 50%; cursor: pointer; box-shadow: 0 8px 32px rgba(40, 167, 69, 0.4); position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .assist-trigger:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(40, 167, 69, 0.6); } .assist-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: rgba(40, 167, 69, 0.4); animation: assistPulse 2s infinite; } @keyframes assistPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } } .assist-avatar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; } .assist-face { position: relative; width: 100%; height: 100%; } .assist-eyes { display: flex; gap: 8px; margin-bottom: 6px; justify-content: center; } .assist-eye { width: 8px; height: 8px; background: white; border-radius: 50%; animation: assistBlink 4s infinite; } .assist-mouth { width: 16px; height: 4px; background: white; border-radius: 0 0 8px 8px; margin: 0 auto; transition: all 0.3s ease; } .assist-panel { position: absolute; bottom: 70px; left: 0; width: 380px; height: 500px; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(20px); } #assist-widget.active .assist-panel { display: flex; } .assist-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, #28a745, #218838); color: white; } .assist-status { display: flex; align-items: center; gap: 12px; } .assist-avatar-mini { width: 32px; height: 32px; position: relative; } .assist-face-mini { width: 100%; height: 100%; } .assist-eyes-mini { display: flex; gap: 6px; margin-bottom: 4px; justify-content: center; } .assist-eye-mini { width: 6px; height: 6px; background: white; border-radius: 50%; } .assist-mouth-mini { width: 12px; height: 3px; background: white; border-radius: 0 0 6px 6px; margin: 0 auto; } .assist-info { display: flex; flex-direction: column; gap: 2px; } .assist-name { font-size: 14px; font-weight: 600; } .assist-online { display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: 0.8; } .assist-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: assistOnline 2s infinite; } @keyframes assistOnline { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .assist-controls { display: flex; gap: 8px; } .assist-voice-btn, .assist-speak-btn, .assist-close { width: 32px; height: 32px; border: none; border-radius: 8px; background: rgba(255, 255, 255, 0.2); color: white; cursor: pointer; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .assist-voice-btn:hover, .assist-speak-btn:hover, .assist-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); } .assist-voice-btn.listening { background: #ef4444; animation: assistListening 1s infinite; } @keyframes assistListening { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } } .assist-speak-btn.speaking { background: #facc15; animation: assistSpeaking 1s infinite; } .assist-speak-btn.speaking svg { opacity: 1 !important; visibility: visible !important; filter: none !important; } @keyframes assistSpeaking { 0% { background-color: #facc15; } 50% { background-color: #fde047; } 100% { background-color: #facc15; } } .assist-suggestions { display: flex; gap: 8px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; overflow-x: auto; scrollbar-width: thin; } .assist-suggestion { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; font-size: 14px; color: #475569; } .assist-suggestion:hover { border-color: #28a745; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1); } .assist-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; } .assist-message { display: flex; flex-direction: column; max-width: 85%; } .assist-message-bot { align-self: flex-start; } .assist-message-user { align-self: flex-end; } .assist-message-content { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4; } .assist-message-bot .assist-message-content { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; } .assist-message-user .assist-message-content { background: #28a745; color: white; border-bottom-right-radius: 4px; } .assist-message-time { font-size: 11px; color: #94a3b8; margin-top: 4px; } .assist-input { padding: 16px; border-top: 1px solid #e2e8f0; } .assist-input-wrapper { display: flex; gap: 8px; margin-bottom: 8px; } .assist-input input { flex: 1; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; outline: none; transition: border-color 0.2s ease; } .assist-input input:focus { border-color: #28a745; } .assist-input input:disabled { background: #f8fafc; color: #94a3b8; } .assist-send-btn { width: 44px; height: 44px; background: #28a745; border: none; border-radius: 12px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .assist-send-btn:not(:disabled):hover { background: #23923d; transform: scale(1.05); } .assist-send-btn:disabled { background: #cbd5e1; cursor: not-allowed; } .assist-hint { font-size: 12px; color: #94a3b8; text-align: center; } @keyframes assistBlink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } } .assist-speaking .assist-mouth { animation: assistSpeak 0.5s infinite alternate; } @keyframes assistSpeak { 0% { height: 3px; } 100% { height: 6px; } } .assist-thinking .assist-eye { animation: assistThinking 1.5s infinite; } @keyframes assistThinking { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.7; } } .assist-typing { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; align-self: flex-start; max-width: 120px; } .assist-typing-dots { display: flex; gap: 3px; } .assist-typing-dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: assistTyping 1.4s infinite; } .assist-typing-dot:nth-child(2) { animation-delay: 0.2s; } .assist-typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes assistTyping { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } } @media (max-width: 480px) { #assist-widget { bottom: 16px; left: 16px; } .assist-panel { width: calc(100vw - 32px); height: 70vh; left: 0; } } .assist-countdown { text-align: center; font-size: 18px; font-weight: bold; color: #28a745; padding: 10px; animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .assist-controls button svg { display: block; transition: transform 0.2s ease, opacity 0.2s ease; } .assist-controls button:hover svg { transform: scale(1.15); opacity: 0.85; } .assist-controls button:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; border-radius: 10px; } .assist-voice-btn.listening svg { animation: micPulse 1.5s infinite; } @keyframes micPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.08); } } @media (pointer: coarse) { .assist-controls button { width: 36px; height: 36px; } } .assist-suggestion svg { flex-shrink: 0; transition: transform 0.2s ease; } .assist-suggestion:hover svg { transform: scale(1.15); } .assist-hint svg { vertical-align: middle; opacity: 0.8; transition: opacity 0.2s ease; } .assist-hint:hover svg { opacity: 1; } .assist-message-content svg { vertical-align: middle; flex-shrink: 0; opacity: 0.9; transition: opacity 0.2s ease; } .assist-message-content:hover svg { opacity: 1; } @media (max-width: 768px) { .assist-panel { height: 70vh; max-height: 70vh; } .assist-suggestions { padding: 8px 12px; } .assist-messages { max-height: calc(70vh - 140px); overflow-y: auto; } .assist-input-row { padding: 8px 12px; } .assist-input { min-height: 36px; } } .assist-voice-btn.is-disabled { opacity: 0.5; cursor: not-allowed; } .assist-speak-btn.autoplay-blocked { animation: pulse 2s infinite; } .assist-opera-play { margin-left: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 14px; line-height: 1; cursor: pointer; } .assist-opera-play:hover { background: #f1f5f9; } .assist-speak-btn.tts-on { background: #ffd54d !important; }