/**
 * CSS Reset
 * 基础重置样式
 */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  overflow: hidden;
  user-select: none;
}

/* 链接重置 */
a {
  color: inherit;
  text-decoration: none;
}

/* 按钮重置 */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 输入框重置 */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* 图片重置 */
img,
svg {
  display: block;
  max-width: 100%;
}

/* 列表重置 */
ul,
ol {
  list-style: none;
}

/* 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 可聚焦元素的焦点环 */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
