/* Violet C语言教程 - 基础重置与变量 */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}
img { max-width: 100%; height: auto; }
a { color: #5c3d8a; text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: #e9ecef;
  color: #333;
}
pre { margin: 0; }
pre code {
  padding: 1em;
  display: block;
  background: #2d2d2d;
  color: #e0e0e0;
  border-radius: 6px;
  overflow-x: auto;
}
/* CSS 变量 */
:root {
  --color-primary: #5c3d8a;
  --color-primary-light: #7c5da8;
  --color-text: #333;
  --color-text-muted: #666;
  --color-bg: #f8f9fa;
  --color-bg-content: #fff;
  --color-border: #dee2e6;
  --color-code-bg: #2d2d2d;
  --color-code-fg: #e0e0e0;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "Consolas", "Monaco", "Courier New", monospace;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --content-max-width: 720px;
}
