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

/* 自定义滚动条（圆角、细滚动条） */
.custom-scroll {
  scrollbar-width: none;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.custom-scroll::-webkit-scrollbar {
  width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

:root {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html,
body,
#root {
  margin: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background-color: #f8fafc;
}

/* 优化下拉选项样式 */
select option {
  padding: 8px 12px;
  background-color: white;
  color: #374151;
  font-size: 0.75rem;
}

select option:hover {
  background-color: #3b82f6;
  color: white;
}

select option:checked {
  background-color: #3b82f6;
  color: white;
}