/* ============================================
   Reset / Normalize
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text-primary);
  background: var(--c-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: var(--lh-tight); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-500); }

img, svg, video, canvas { max-width: 100%; display: block; }
svg { fill: currentColor; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; opacity: 0.5; }

input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--c-primary-500); color: var(--c-white); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-gray-50); }
::-webkit-scrollbar-thumb { background: var(--c-gray-300); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-gray-400); }
