/**
 * 软萌拼豆记 (Bead Workshop) · 全局设计令牌 (Design Tokens)
 * ------------------------------------------------------------------
 * 供「方案二：静态 HTML 原型画板」全量页面共享。
 * 若要通过外部 AI 或人工统一改版视觉风格（换肤 / 调整圆角 / 调整字阶），
 * 可优先修改此文件中的 CSS 变量，全站 16 个页面将同步生效。
 * ------------------------------------------------------------------
 */
:root {
  /* 品牌主色与功能色 */
  --brand-pink: #ec4899;
  --brand-pink-soft: #fdf2f8;
  --brand-xhs: #ff2442;
  --brand-blue: #1e82f6;
  --brand-blue-deep: #2563eb;
  --brand-blue-soft: #eff6ff;
  --brand-amber: #f59e0b;
  --brand-ruler: #facc15;
  --brand-ruler-text: #713f12;
  --brand-green: #10b981;
  --brand-violet: #7c3aed;

  /* 渐变色 */
  --grad-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --grad-blue: linear-gradient(135deg, #2593ff 0%, #1e82f6 100%);
  --grad-warm-header: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 45%, #eef2ff 100%);
  --grad-points-hero: linear-gradient(135deg, #ec4899 0%, #be185d 100%);

  /* 中性背景与表面 */
  --bg-page: #f8fafc;
  --bg-warm: #faf7f0;
  --bg-canvas-stage: #f3efe6;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #f4f5f7;
  --bg-dark: #0f172a;

  /* 文字色阶 */
  --text-primary: #0f172a;
  --text-strong: #1e293b;
  --text-body: #334155;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-placeholder: #94a3b8;

  /* 边框与分割线 */
  --border-light: #f1f5f9;
  --border-base: #e2e8f0;
  --border-strong: #cbd5e1;

  /* 圆角规范 */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* 阴影规范 */
  --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 6px 18px rgba(30, 130, 246, 0.28);
  --shadow-pink: 0 6px 18px rgba(236, 72, 153, 0.28);

  /* 字体栈 (100% 离线安全，无外部 CDN) */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 微信小程序系统级安全尺寸 (按 390×844 标准真机) */
  --phone-w: 390px;
  --phone-h: 844px;
  --wx-status-h: 44px;
  --wx-nav-h: 44px;
  --wx-capsule-w: 87px;
  --wx-capsule-h: 32px;
  --wx-capsule-right: 7px;
  --wx-capsule-safe-right: 102px;
  --wx-tabbar-h: 56px;
  --wx-home-bar-h: 20px;
}
