@tailwind base;
@tailwind components;
@tailwind utilities;

// 自定义滚动条
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(155, 155, 155, 0.5);
  border-radius: 3px;

  &:hover {
    background: rgba(155, 155, 155, 0.7);
  }
}

// 暗色模式滚动条
.dark {
  ::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.5);

    &:hover {
      background: rgba(100, 100, 100, 0.7);
    }
  }
}

// 全局变量
:root {
  --chat-sidebar-width: 280px;
  --chat-input-height: 140px;
  --header-height: 60px;
}

// 基础样式重置
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// 过渡动画
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease;
}

.slide-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}

.slide-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}