/* Base Styles - 重置、字体、全局排版 */

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

html, body {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

body {
  font-family: var(--font-cn-body);
  background: var(--bg-void);
  color: var(--silver-200);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

input, textarea {
  user-select: auto;
}

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

/* Font utility classes */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-label {
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.font-cn-title {
  font-family: var(--font-cn-title);
}

/* Highlight classes */
.highlight-cyan {
  color: var(--cyan-glow);
}

.highlight-gold {
  color: var(--gold);
}

.highlight-warn {
  color: var(--error);
}

.highlight-purple {
  color: var(--purple-glow);
}

/* Canvas layers */
.canvas-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#canvas-bg {
  z-index: 1;
}

#canvas-fx {
  z-index: 2;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Selection color */
::selection {
  background: rgba(125, 211, 252, 0.3);
  color: var(--silver-100);
}
