/* ═══════════════════════════════════════════════════════════════
   AI量化助手 — base.css
   §3 CSS 变量 + reset + body 全局基座
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS 变量(§2.1 锁定,不可改值)────────────────────── */
:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f0f23;
  --gold: #c9a96e;
  --gold-light: #d4b87a;
  --gold-dark: #a8894e;
  --bubble-user: #c9a96e;
  --bubble-user-text: #1a1a2e;
  --bubble-ai: #2d1f0e;
  --bubble-ai-text: #e0d6c2;
  --text-primary: #e8e0d0;
  --text-secondary: #a09080;
  --text-muted: #706050;
  --border-color: #3a2a1a;
  --input-bg: #0f0f23;
  --danger: #c0392b;
  --success: #27ae60;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);

  /* §2.2 新增 — 半透明金 */
  --gold-alpha-08: rgba(201, 169, 110, 0.08);
  --gold-alpha-15: rgba(201, 169, 110, 0.15);
  --gold-alpha-30: rgba(201, 169, 110, 0.30);
  --shadow-gold: 0 2px 12px rgba(201, 169, 110, 0.20);
}

/* ── 全局重置 ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  user-select: none;
}

/* ── 动效降级(§5.1)────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
