/* ═══════════════════════════════
   Base - 重置 & CSS 变量 & 暗色主题
   ═══════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 暗色背景 */
  --bg-primary: #0d0d12;
  --bg-secondary: #16161e;
  --bg-card: #1a1a26;
  --bg-card-hover: #22222f;

  /* 文字 */
  --text-primary: #f0e6dc;
  --text-secondary: #a89a88;
  --text-muted: #6b5e50;

  /* 强调色 */
  --accent: #c8a96e;
  --accent-glow: rgba(200, 169, 110, 0.25);

  /* 边框 */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* 间距 */
  --gap: 16px;
  --radius: 12px;

  /* 字体 */
  --font-cjk: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cjk);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
