bcf4d4e621
W1-W14 全部完成: - W1: 消息搜索 (ILIKE全文检索 + SearchModal) - W2: 对话导出 (JSON/Markdown/TXT三格式) - W3: 记忆时间线 DevTools 可视化 - W4: 通知推送系统 (WebSocket + Browser Notification API) - W5: 定时提醒 (30s轮询 + 重复提醒 + WebSocket推送) - W6: 每日简报 (08:00自动生成: 天气+新闻+提醒+AI摘要) - W7: IoT场景自动化 (规则引擎 10s轮询 + 条件评估 + 场景执行) - W8: 语音输入 (浏览器 Speech Recognition API) - W9: STT服务 (voice-service + whisper.cpp) - W10: TTS服务 (浏览器 Speech Synthesis + edge-tts三档回退) - W11: 文件管理 (上传/下载/缩略图/纯Go bilinear缩放) - W12: 知识库RAG (PostgreSQL tsvector + 文档分块 + 检索) - W13: 多模态 (图片上传+分析: Vision API + 本地Go分析回退) - W14: PWA (Service Worker + 离线页 + install prompt) 总计: 6个Go微服务 + 10+前端组件 + 10+ PostgreSQL表 + 4个后台调度器
184 lines
3.3 KiB
CSS
184 lines
3.3 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* ===== 昔涟主题全局样式 ===== */
|
|
|
|
@layer base {
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family:
|
|
'Noto Sans SC',
|
|
-apple-system,
|
|
BlinkMacSystemFont,
|
|
'Segoe UI',
|
|
Roboto,
|
|
sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
background: #FFFAF5;
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(244, 114, 182, 0.3);
|
|
color: #9d174d;
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(244, 114, 182, 0.3);
|
|
border-radius: 3px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(244, 114, 182, 0.5);
|
|
}
|
|
}
|
|
|
|
/* ===== 动画 ===== */
|
|
@layer utilities {
|
|
.animate-bounce {
|
|
animation: bounce 0.8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-4px);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* ===== 流式渲染动画 ===== */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes cursorBlink {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
}
|
|
|
|
/* 流式消息容器:轻微淡入效果 */
|
|
.message-streaming {
|
|
animation: fadeInUp 0.3s ease-out;
|
|
}
|
|
|
|
/* 独立的闪烁光标工具类,可用于显式 span 元素 */
|
|
.animate-streaming-cursor {
|
|
display: inline;
|
|
}
|
|
|
|
.animate-streaming-cursor::after {
|
|
content: '▊';
|
|
animation: cursorBlink 1s step-end infinite;
|
|
color: #7c3aed;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* ===== 聊天背景 ===== */
|
|
.chat-background {
|
|
position: relative;
|
|
isolation: isolate;
|
|
background-image: url('/images/Cyrene_ChatBackground/Vertical/2nd_Form/1.png');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
/* 半透明遮罩:避免背景色彩过于鲜艳影响阅读 */
|
|
.chat-background::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* 横屏时使用 Landscape 背景 */
|
|
@media (orientation: landscape) {
|
|
.chat-background {
|
|
background-image: url('/images/Cyrene_ChatBackground/Landscape/3rd_Form/1.png');
|
|
}
|
|
}
|
|
|
|
/* 深色模式 */
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(244, 114, 182, 0.2);
|
|
color: #fbcfe8;
|
|
}
|
|
|
|
.chat-background::before {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
/* ===== 语音识别动画 ===== */
|
|
@keyframes voice-pulse {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
|
|
50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
|
|
}
|
|
|
|
.voice-btn-active {
|
|
animation: voice-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* 实时识别文本淡入效果 */
|
|
@keyframes interim-fade {
|
|
from { opacity: 0.5; }
|
|
to { opacity: 0.9; }
|
|
}
|
|
|
|
.interim-text {
|
|
animation: interim-fade 0.3s ease-in-out;
|
|
}
|
|
|
|
/* ===== TTS 文字转语音动画 ===== */
|
|
@keyframes tts-wave {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
transform: scale(1.05);
|
|
opacity: 0.85;
|
|
}
|
|
}
|
|
|
|
.tts-playing {
|
|
animation: tts-wave 1s ease-in-out infinite;
|
|
}
|