- marked.js 라이브러리 추가, AI 답변 마크다운 렌더링 - AI 답변 prose 스타일 적용 (제목, 목록, 굵은글씨, 인용) - health 응답 파싱 개선 (이중 중첩 구조 fallback 추가) - JS/CSS 버전 캐시 무효화 (v=20260307) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
177 lines
4.1 KiB
CSS
177 lines
4.1 KiB
CSS
/* ai-assistant.css — AI 어시스턴트 페이지 전용 스타일 */
|
|
|
|
/* 페이드인 애니메이션 */
|
|
.fade-in { opacity: 0; animation: fadeIn 0.5s ease-in forwards; }
|
|
@keyframes fadeIn { to { opacity: 1; } }
|
|
|
|
.header-fade-in { opacity: 0; animation: headerFadeIn 0.6s ease-out forwards; }
|
|
@keyframes headerFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(-10px); } }
|
|
|
|
.content-fade-in { opacity: 0; animation: contentFadeIn 0.7s ease-out 0.2s forwards; }
|
|
@keyframes contentFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(20px); } }
|
|
|
|
/* 채팅 컨테이너 */
|
|
.chat-container {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.chat-container::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.chat-container::-webkit-scrollbar-track {
|
|
background: #f1f5f9;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chat-container::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chat-container::-webkit-scrollbar-thumb:hover {
|
|
background: #94a3b8;
|
|
}
|
|
|
|
/* 채팅 말풍선 */
|
|
.chat-bubble {
|
|
max-width: 85%;
|
|
animation: bubbleIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes bubbleIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.chat-bubble-user {
|
|
background: #7c3aed;
|
|
color: white;
|
|
border-radius: 18px 18px 4px 18px;
|
|
padding: 10px 16px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.chat-bubble-ai {
|
|
background: #f1f5f9;
|
|
color: #1e293b;
|
|
border-radius: 18px 18px 18px 4px;
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
/* AI 답변 마크다운 스타일 */
|
|
.chat-bubble-ai .prose { color: #1e293b; }
|
|
.chat-bubble-ai .prose h1,
|
|
.chat-bubble-ai .prose h2,
|
|
.chat-bubble-ai .prose h3 { font-size: 0.95em; font-weight: 700; margin: 0.8em 0 0.3em; color: #334155; }
|
|
.chat-bubble-ai .prose p { margin: 0.4em 0; }
|
|
.chat-bubble-ai .prose ul,
|
|
.chat-bubble-ai .prose ol { margin: 0.3em 0; padding-left: 1.4em; }
|
|
.chat-bubble-ai .prose li { margin: 0.15em 0; }
|
|
.chat-bubble-ai .prose strong { color: #7c3aed; }
|
|
.chat-bubble-ai .prose code { background: #e2e8f0; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em; }
|
|
.chat-bubble-ai .prose blockquote { border-left: 3px solid #7c3aed; padding-left: 0.8em; margin: 0.5em 0; color: #64748b; }
|
|
.chat-bubble-ai .prose hr { border-color: #e2e8f0; margin: 0.6em 0; }
|
|
|
|
.chat-bubble-ai .source-link {
|
|
color: #7c3aed;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
text-decoration-style: dotted;
|
|
}
|
|
|
|
.chat-bubble-ai .source-link:hover {
|
|
color: #6d28d9;
|
|
text-decoration-style: solid;
|
|
}
|
|
|
|
/* 로딩 도트 애니메이션 */
|
|
.typing-indicator {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.typing-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #94a3b8;
|
|
border-radius: 50%;
|
|
animation: typingBounce 1.4s infinite ease-in-out;
|
|
}
|
|
|
|
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
|
|
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
|
|
|
|
@keyframes typingBounce {
|
|
0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
|
|
40% { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
/* 빠른 질문 버튼 */
|
|
.quick-question-btn {
|
|
transition: all 0.2s ease;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.quick-question-btn:hover {
|
|
border-color: #7c3aed;
|
|
background: #faf5ff;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
|
|
}
|
|
|
|
/* 상태 카드 */
|
|
.status-card {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.status-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
/* 섹션 카드 */
|
|
.section-card {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* 결과 아이템 */
|
|
.result-item {
|
|
transition: all 0.15s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.result-item:hover {
|
|
background: #f8fafc;
|
|
border-color: #7c3aed;
|
|
}
|
|
|
|
/* 모바일 반응형 */
|
|
@media (max-width: 768px) {
|
|
.chat-container {
|
|
max-height: 400px;
|
|
}
|
|
|
|
.chat-bubble {
|
|
max-width: 92%;
|
|
}
|
|
|
|
button, a, [onclick], select {
|
|
min-height: 44px;
|
|
min-width: 44px;
|
|
}
|
|
|
|
body {
|
|
padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
|
|
}
|
|
}
|