/* ============================================================
   基础重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "palt";
}

h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--ink); text-decoration: none; }
button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0;
}

em { font-style: italic; color: var(--seal-deep); }

::selection { background: var(--seal); color: var(--paper-light); }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border: 2px solid var(--paper-deep);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* 字体工具类 */
.font-display { font-family: var(--font-display); }
.font-serif   { font-family: var(--font-serif); }
.font-mono    { font-family: var(--font-mono); letter-spacing: 0.02em; }
