@tailwind base; @tailwind components; @tailwind utilities; @layer base { html { font-family: 'Inter', system-ui, sans-serif; } body { @apply bg-gray-50 text-gray-900; } } @layer components { .btn-primary { @apply bg-primary-600 hover:bg-primary-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200; } .btn-secondary { @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-4 rounded-lg transition-colors duration-200; } .input-field { @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent; } .message-bubble { @apply max-w-xs lg:max-w-md px-4 py-2 rounded-lg break-words; } .message-own { @apply bg-primary-600 text-white ml-auto; } .message-other { @apply bg-white text-gray-800 border border-gray-200; } } /* 自定义滚动条 */ .custom-scrollbar::-webkit-scrollbar { width: 6px; } .custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; } .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }