/* ============================================================
   724.fund · 小游戏平台统一设计系统 (Design System)
   所有页面与游戏共用。改这里 = 改全站风格。
   ============================================================ */

:root {
  /* ---- 品牌色 ---- */
  --bg-0:     #0b0e20;   /* 最深背景 */
  --bg-1:     #121634;
  --bg-2:     #1b2150;
  --surface:  rgba(255,255,255,0.06);
  --surface-2:rgba(255,255,255,0.10);
  --border:   rgba(255,255,255,0.12);

  --text:     #eef1fa;
  --text-dim: #9aa3c4;
  --text-mute:#646c93;

  --accent:   #ff8c42;   /* 主色 · 活力橙 */
  --accent-2: #ff5d8f;   /* 辅 · 粉 */
  --ai:       #57e6c9;   /* AI 青绿 —— 全站凡是 AI 能力都用这个色 */
  --ai-2:     #8b7bff;   /* AI 紫 */
  --ok:       #4ade80;
  --warn:     #fbbf24;
  --danger:   #f87171;

  /* ---- 渐变 ---- */
  --grad-bg:  radial-gradient(1200px 700px at 50% -10%, #2a2f63 0%, #141833 45%, #0b0e20 100%);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-ai:  linear-gradient(135deg, var(--ai), var(--ai-2));

  /* ---- 形状 / 间距 ---- */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --r-xl: 26px;
  --sp-1: 6px;  --sp-2: 10px;  --sp-3: 16px;  --sp-4: 24px;  --sp-5: 36px;

  --shadow-1: 0 4px 16px rgba(0,0,0,0.30);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.45);
  --glow-ai:  0 0 0 1px rgba(87,230,201,0.4), 0 0 24px rgba(87,230,201,0.25);

  /* ---- 字体 ---- */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", Roboto, system-ui, sans-serif;

  --t-fast: .12s; --t-mid: .25s; --t-slow: .5s;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--grad-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad-accent);
  color: #1a1230;
  border: none; border-radius: var(--r-md);
  padding: 10px 16px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), filter var(--t-mid), box-shadow var(--t-mid);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.95); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.ai { background: var(--grad-ai); color: #07251f; box-shadow: var(--glow-ai); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.icon { padding: 9px; width: 38px; height: 38px; justify-content: center; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(255,255,255,0.22); }

/* ---------------- 标签 chip ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border);
}
.chip.ai { color: var(--ai); border-color: rgba(87,230,201,0.4); background: rgba(87,230,201,0.08); }
.chip.soon { color: var(--text-mute); }

/* ---------------- 面板 ---------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
}

/* ---------------- 顶部品牌条（全站统一） ---------------- */
.brandbar {
  display: flex; align-items: center; gap: 10px;
}
.brand-logo {
  font-weight: 900; font-size: 20px; letter-spacing: -0.5px;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-logo .dot { color: var(--ai); -webkit-text-fill-color: var(--ai); }
.brand-tag { font-size: 11px; color: var(--text-mute); letter-spacing: 2px; }

/* ---------------- 工具 ---------------- */
.row { display: flex; align-items: center; gap: var(--sp-2); }
.spacer { flex: 1; }
.dim { color: var(--text-dim); }
.center { display: flex; align-items: center; justify-content: center; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }

/* toast */
#toast-root {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none;
}
.toast {
  background: rgba(20,24,52,0.95); border: 1px solid var(--border);
  color: var(--text); padding: 10px 16px; border-radius: var(--r-md);
  box-shadow: var(--shadow-2); font-size: 14px; max-width: 80vw;
  animation: toast-in .25s ease;
}
.toast.ai { border-color: rgba(87,230,201,0.5); box-shadow: var(--glow-ai); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
