/* 基础重置与 Typography 规范 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-size: var(--font-size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, .page-title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

h2, h3, .section-title {
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--text-main);
}

h4, .sub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

p, span, div {
  font-size: var(--font-size-body);
}

.text-sub, .text-muted {
  font-size: var(--font-size-sub);
  color: var(--text-muted);
}

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

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* 优雅滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}
