/* css/base.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 文本选择颜色 */
::selection {
  background-color: var(--blue-200);
  color: var(--blue-900);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

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

/* 布局共享类 */
.container {
  max-width: var(--max-w-7xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 通用隐藏类 */
.hidden {
  display: none !important;
}

/* 渐变文本 */
.text-gradient {
  background: linear-gradient(to right, var(--blue-600), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
