File size: 11,544 Bytes
037b7fa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | /* ββ Voice page styles β all classes prefixed with voice- to avoid collisions ββ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
/* ββ Background ββ */
.voice-bg-particles {
position: fixed; inset: 0;
pointer-events: none; z-index: 0;
}
.voice-bg-particles::before {
content: '';
position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
background:
radial-gradient(ellipse at 20% 50%, rgba(108,92,231,0.08) 0%, transparent 50%),
radial-gradient(ellipse at 80% 20%, rgba(116,185,255,0.06) 0%, transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(162,155,254,0.05) 0%, transparent 50%);
animation: voiceBgShift 20s ease-in-out infinite alternate;
}
@keyframes voiceBgShift {
0% { transform: translate(0,0) rotate(0deg); }
100% { transform: translate(-5%,3%) rotate(3deg); }
}
/* ββ App container ββ */
.voice-app-container {
position: relative; z-index: 1;
display: flex; flex-direction: column;
height: 100vh; max-width: 1440px; margin: 0 auto;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
color: #f0f0f5;
}
/* ββ Header ββ */
.voice-app-header {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 28px;
border-bottom: 1px solid rgba(255,255,255,0.06);
background: rgba(10,10,15,0.85);
backdrop-filter: blur(20px);
z-index: 10;
}
.voice-header-left { display: flex; align-items: center; gap: 14px; }
.voice-header-right { display: flex; align-items: center; gap: 10px; }
.voice-back-btn {
display: flex; align-items: center; gap: 6px;
padding: 6px 12px; border-radius: 8px;
border: 1px solid rgba(255,255,255,0.06);
background: transparent; color: #9a9ab0;
font-size: 0.8rem; font-weight: 500; cursor: pointer;
text-decoration: none;
transition: 200ms cubic-bezier(0.4,0,0.2,1);
}
.voice-back-btn:hover { background: #1c1c28; color: #f0f0f5; border-color: rgba(108,92,231,0.3); }
.voice-logo-icon {
display: flex; align-items: center; justify-content: center;
width: 38px; height: 38px; border-radius: 10px;
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
color: #fff;
box-shadow: 0 0 40px rgba(108,92,231,0.35);
flex-shrink: 0;
}
.voice-header-text h1 {
font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.voice-subtitle { font-size: 0.72rem; color: #5c5c7a; letter-spacing: 0.02em; }
/* Status badge */
.voice-status-badge {
display: flex; align-items: center; gap: 8px;
padding: 5px 13px; border-radius: 9999px;
font-size: 0.75rem; font-weight: 500;
background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.voice-status-badge.voice-status-connected { background: rgba(0,206,201,0.1); border-color: rgba(0,206,201,0.3); }
.voice-status-badge.voice-status-connecting { background: rgba(253,203,110,0.1); border-color: rgba(253,203,110,0.3); }
.voice-status-badge.voice-status-error { background: rgba(255,118,117,0.1); border-color: rgba(255,118,117,0.3); }
.voice-status-dot {
width: 8px; height: 8px; border-radius: 50%;
background: #00cec9; box-shadow: 0 0 8px #00cec9;
animation: voicePulse 2s ease-in-out infinite;
}
.voice-status-badge.voice-status-connecting .voice-status-dot { background: #fdcb6e; box-shadow: 0 0 8px #fdcb6e; }
.voice-status-badge.voice-status-error .voice-status-dot { background: #ff7675; box-shadow: 0 0 8px #ff7675; }
.voice-status-badge.voice-status-disconnected .voice-status-dot { background: #5c5c7a; box-shadow: none; animation: none; }
@keyframes voicePulse {
0%,100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.8); }
}
.voice-btn-icon {
display: flex; align-items: center; justify-content: center;
width: 36px; height: 36px; border-radius: 8px;
border: 1px solid rgba(255,255,255,0.06); background: transparent;
color: #9a9ab0; cursor: pointer;
transition: 200ms cubic-bezier(0.4,0,0.2,1);
}
.voice-btn-icon:hover { background: #1c1c28; color: #f0f0f5; border-color: rgba(108,92,231,0.3); }
/* ββ Main layout ββ */
.voice-main-content {
display: flex; flex: 1; overflow: hidden;
}
/* ββ Avatar panel ββ */
.voice-avatar-panel {
width: 300px; flex-shrink: 0;
display: flex; flex-direction: column; align-items: center;
padding: 28px 20px; gap: 24px;
border-right: 1px solid rgba(255,255,255,0.06);
background: #12121a;
}
.voice-avatar-container {
position: relative; width: 180px; height: 180px; border-radius: 50%;
background: #16161f; border: 2px solid rgba(108,92,231,0.3);
display: flex; flex-direction: column; align-items: center; justify-content: center;
box-shadow: 0 0 40px rgba(108,92,231,0.35); overflow: visible;
}
.voice-avatar-glow {
position: absolute; inset: -20px; border-radius: 50%;
background: radial-gradient(circle, rgba(108,92,231,0.35) 0%, transparent 70%);
animation: voiceGlowPulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes voiceGlowPulse {
0%,100% { opacity: 0.5; }
50% { opacity: 1; }
}
.voice-avatar-icon { color: #a29bfe; opacity: 0.9; }
.voice-avatar-name { margin-top: 8px; font-size: 0.8rem; font-weight: 500; color: #9a9ab0; letter-spacing: 0.03em; }
.voice-speaking-indicator {
position: absolute; bottom: -20px;
display: flex; align-items: flex-end; gap: 3px; height: 24px;
}
.voice-wave-bar {
width: 4px; border-radius: 2px; background: #6c5ce7;
animation: voiceWave 0.8s ease-in-out infinite alternate;
}
.voice-wave-bar:nth-child(1) { height: 8px; }
.voice-wave-bar:nth-child(2) { height: 16px; }
.voice-wave-bar:nth-child(3) { height: 24px; }
.voice-wave-bar:nth-child(4) { height: 16px; }
.voice-wave-bar:nth-child(5) { height: 8px; }
@keyframes voiceWave {
from { transform: scaleY(0.4); opacity: 0.6; }
to { transform: scaleY(1); opacity: 1; }
}
.voice-avatar-stats {
display: flex; gap: 16px; width: 100%; justify-content: center;
padding: 14px 0;
border-top: 1px solid rgba(255,255,255,0.06);
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.voice-stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.voice-stat-value {
font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums;
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.voice-stat-value.voice-conn-connected { color: #00cec9; -webkit-text-fill-color: #00cec9; background: none; }
.voice-stat-value.voice-conn-disconnected { color: #5c5c7a; -webkit-text-fill-color: #5c5c7a; background: none; }
.voice-stat-value.voice-conn-connecting { color: #fdcb6e; -webkit-text-fill-color: #fdcb6e; background: none; }
.voice-stat-value.voice-conn-error { color: #ff7675; -webkit-text-fill-color: #ff7675; background: none; }
.voice-stat-label { font-size: 0.7rem; color: #5c5c7a; letter-spacing: 0.04em; text-transform: uppercase; }
.voice-connect-area { width: 100%; }
.voice-btn-connect, .voice-btn-disconnect {
width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
padding: 12px 20px; border: none; border-radius: 12px;
font-size: 0.95rem; font-weight: 600; cursor: pointer;
transition: 200ms cubic-bezier(0.4,0,0.2,1);
}
.voice-btn-connect {
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
color: #fff; box-shadow: 0 4px 20px rgba(108,92,231,0.35);
}
.voice-btn-connect:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(108,92,231,0.35); }
.voice-btn-connect:disabled { background: #1c1c28; color: #5c5c7a; box-shadow: none; cursor: not-allowed; transform: none; }
.voice-btn-disconnect {
background: rgba(255,118,117,0.1); border: 1px solid rgba(255,118,117,0.3); color: #ff7675;
}
.voice-btn-disconnect:hover { background: rgba(255,118,117,0.2); }
.voice-spinner-sm {
width: 14px; height: 14px; border-radius: 50%;
border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
animation: voiceSpin 0.7s linear infinite; display: inline-block;
}
@keyframes voiceSpin { to { transform: rotate(360deg); } }
/* ββ Chat panel ββ */
.voice-chat-panel {
flex: 1; display: flex; flex-direction: column; overflow: hidden;
background: #0a0a0f;
}
.voice-chat-messages {
flex: 1; overflow-y: auto; padding: 20px 24px;
display: flex; flex-direction: column; gap: 16px;
scrollbar-width: thin; scrollbar-color: #1c1c28 transparent;
}
.voice-chat-messages::-webkit-scrollbar { width: 4px; }
.voice-chat-messages::-webkit-scrollbar-thumb { background: #1c1c28; border-radius: 2px; }
.voice-message { display: flex; gap: 12px; animation: voiceFadeIn 0.2s ease-out; }
@keyframes voiceFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voice-user-message { flex-direction: row-reverse; }
.voice-system-message { justify-content: center; }
.voice-assistant-message { flex-direction: row; }
.voice-message-avatar {
width: 34px; height: 34px; border-radius: 50%;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voice-assistant-message .voice-message-avatar {
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
color: #fff; box-shadow: 0 2px 10px rgba(108,92,231,0.35);
}
.voice-user-message .voice-message-avatar {
background: #1c1c28; color: #9a9ab0; border: 1px solid rgba(255,255,255,0.06);
}
.voice-message-content { max-width: 68%; display: flex; flex-direction: column; gap: 4px; }
.voice-user-message .voice-message-content { align-items: flex-end; }
.voice-message-header { display: flex; align-items: baseline; gap: 8px; }
.voice-message-name { font-size: 0.8rem; font-weight: 600; color: #9a9ab0; }
.voice-message-time { font-size: 0.7rem; color: #5c5c7a; }
.voice-message-text {
padding: 10px 14px; border-radius: 12px;
font-size: 0.9rem; line-height: 1.55;
}
.voice-assistant-message .voice-message-text {
background: #16161f; border: 1px solid rgba(255,255,255,0.06);
border-bottom-left-radius: 4px; color: #f0f0f5;
}
.voice-user-message .voice-message-text {
background: #6c5ce7; color: #fff; border-bottom-right-radius: 4px;
}
.voice-message-text code {
background: #1c1c28; padding: 1px 5px; border-radius: 4px;
font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.82em;
}
.voice-system-message .voice-message-content {
background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
border-radius: 9999px; padding: 5px 14px; max-width: none;
}
.voice-system-message .voice-message-text {
font-size: 0.78rem; color: #5c5c7a; background: none; border: none; padding: 0;
}
/* ββ Input hint ββ */
.voice-input-area {
padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06);
background: #12121a;
}
.voice-hint {
display: flex; align-items: center; gap: 10px; justify-content: center;
font-size: 0.85rem; color: #5c5c7a; padding: 10px;
border: 1px dashed rgba(255,255,255,0.06); border-radius: 12px;
}
.voice-mic-pulse {
display: inline-block; width: 8px; height: 8px; border-radius: 50%;
background: #00cec9; box-shadow: 0 0 8px #00cec9;
animation: voicePulse 1.5s ease-in-out infinite;
}
|