@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg-gradient);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#app {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
}

img {
  display: block;
  max-width: 100%;
}

// 滚动条样式（深色主题适配）
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 4px;
  
  &:hover {
    background: var(--color-text-secondary);
  }
}

// 选中文本样式
::selection {
  background: var(--color-accent-light);
  color: var(--color-accent-strong);
}
