/* 导入变量和重置样式 */

/* 全局样式 */
:root {
  font-family: $font-family;
  font-size: $font-size-base;
  line-height: $line-height-base;
  font-weight: 400;

  color-scheme: light dark;
  color: $text-color;
  background-color: $bg-color;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a {
  font-weight: 500;
  color: $primary-color;
  text-decoration: inherit;
  
  &:hover {
    color: $primary-hover-color;
  }
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: $border-radius;
  border: 1px solid $border-color;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color $transition-duration;
  
  &:hover {
    border-color: $primary-color;
  }
  
  &:focus,
  &:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
  }
}

.card {
  padding: 2em;
}

#app {
  text-align: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: $light-text-color;
    background-color: $light-bg-color;
  }
  
  a:hover {
    color: #747bff;
  }
  
  button {
    background-color: #f9f9f9;
  }
} 