/* base.css — 重置 / 主题变量 / 通用工具类 */
:root {
  --color-primary: #2f6bff;
  --color-primary-light: #4a8bff;
  --color-primary-dark: #1d4fd7;
  --bg-dark: #0b0f1a;
  --bg-dark-soft: #111827;
  --bg-dark-card: #161d2e;
  --color-accent: #ff7d00;
  --color-accent-light: #ff9a2d;
  --color-success: #00b42a;
  --color-danger: #f53f3f;
  --text-primary: #1d2129;
  --text-secondary: #86909c;
  --text-on-dark: #f2f3f5;
  --border-color: #e5e6eb;
  --bg-page: #0b0f1a;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --container-width: 1200px;
  --header-height: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--text-on-dark);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--color-primary-light); }
.text-blue { color: var(--color-primary-light); }
.hidden { display: none !important; }
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-10px);
  background: var(--bg-dark-card); color: var(--text-on-dark);
  padding: 10px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  opacity: 0; transition: all .25s; z-index: 99; border: 1px solid var(--border-color);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
