/* ==============================================
   Base — 重置 + 基础排版
   ============================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-deep);
  color: var(--text-primary);
  transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

input { font-family: inherit; }

ul { list-style: none; }

/* 选中高亮 */
::selection {
  background: rgba(124, 92, 255, 0.3);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border-hover);
}

/* SVG Icon Base */
.icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }
