Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

11.3 KB
Raw Blame
@layer tokens, base, components, app, utilities;
/* 新手引导原型的 token 与动效。颜色、字体、圆角与官网(site/src/styles/tokens.css 深色)一致;
   页面本身大多是内联样式(来自设计稿),这里只放会动的部分,由 js/proto.js 和各页脚本加减 class。 */

@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@layer tokens {
  :root {
    color-scheme: dark;
    --bg: #060706; --bg-raised: #0b0b10; --bg-sunken: #101110;
    --text: #fafaf7; --text-2: #a1a1aa;
    --lime: #d7ff00; --lime-200: #e9ff66; --ink: #161a00; --wash: rgba(215, 255, 0, .14);
    --ok: #6fd99b; --warn: #f2b544;
    --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .18);
    --font-sans: Geist, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.16, 1, .3, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1);
    --z-float: 60;
    --bot-blue-eye: #6dd4fb; --bot-blue-glow: #2a9dff;
    --bot-yellow-eye: #fcfcdc; --bot-yellow-glow: #ffc21a;
    --bot-green-eye: #b5fbd6; --bot-green-glow: #2ee88a;
    --bot-red-eye: #fc9379; --bot-red-glow: #ff3b2a;
    --bot-purple-eye: #fdc1fb; --bot-purple-glow: #c24dff;
    --bot-orange-eye: #fdd77c; --bot-orange-glow: #ff8c1a;
    --bot-blush: #ff7aa8; --bot-glint: rgba(255, 255, 255, .8); --bot-dizzy: #c0a6ff;
    --avatar-aura: 52%; --avatar-shadow: rgba(0, 0, 0, .5);
  }
}

@layer app {
  [hidden] { display: none !important; }
  /* 脚本跑起来之前先不画:否则会先闪一下静态页,再跳到出场动画的第一帧。脚本出错时 2.5 秒后照样显示 */
  body[data-page]:not(.ready) { opacity: 0; animation: show-anyway 0s 2.5s forwards; }
  @keyframes show-anyway { to { opacity: 1; } }
  textarea.input { display: block; width: 100%; resize: none; border: 0; outline: none; background: none; color: var(--text); font: 14px/1.6 var(--font-sans); padding: 14px 16px 6px; }
  textarea.input::placeholder { color: var(--text-2); opacity: 1; }

  /* —— 聚光:要用户点的地方,一圈往外扩散的黄绿光 ——
     设计稿里静态写死的光圈(inline box-shadow: 0 0 0 2px #d7ff00 …)也一起动起来 */
  .spot, [style*="0 0 0 2px #d7ff00"] { animation: spot 1.9s var(--ease-out) infinite; }
  @keyframes spot {
    0% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 0 rgba(215, 255, 0, .42); }
    70%, 100% { box-shadow: 0 0 0 2px var(--lime), 0 0 0 14px rgba(215, 255, 0, 0); }
  }
  /* 输入框:内圈 + 柔光呼吸 */
  .spot-soft { animation: spot-soft 2.2s ease-in-out infinite; }
  @keyframes spot-soft {
    0%, 100% { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(215, 255, 0, .10); }
    50% { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 9px rgba(215, 255, 0, .04); }
  }
  .send-ready { opacity: 1 !important; background: var(--lime) !important; color: var(--ink) !important; animation: send-beat 1.6s var(--ease-out) infinite; }
  @keyframes send-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }

  /* —— 出场 —— */
  .rise { animation: rise .62s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .pop { animation: pop .5s var(--ease-back) both; animation-delay: var(--d, 0ms); }
  @keyframes pop { from { opacity: 0; transform: scale(.86); } }
  .bubble-in { transform-origin: 100% 100%; animation: bubble-in .42s var(--ease-spring) both; }
  @keyframes bubble-in { from { opacity: 0; transform: translate(14px, 10px) scale(.92); } }
  .fade-in { animation: fade-in .4s var(--ease-out) both; animation-delay: var(--d, 0ms); }
  @keyframes fade-in { from { opacity: 0; } }

  /* 引导卡片:弹出时整体上浮;卡片上的主持机器人用它自己的入场动画(hello,从无到有弹出来),见 js/proto.js 的 coach() */
  .coach-in { animation: coach-in .6s var(--ease-spring) both; }
  @keyframes coach-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
  .coach-out { animation: coach-out .22s var(--ease-out) both; }
  @keyframes coach-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
  .swap { animation: swap .45s var(--ease-spring) both; }
  @keyframes swap { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }

  /* 进度格:点亮时弹一下 */
  .seg-on { animation: seg-on .7s var(--ease-back) both; }
  @keyframes seg-on { 0% { transform: scaleY(.2); background: #fff; } 60% { transform: scaleY(1.5); } }
  .bump { animation: bump .6s var(--ease-back); }
  @keyframes bump { 30% { transform: scale(1.05); box-shadow: inset 0 0 0 1px var(--lime), 0 0 0 8px rgba(215, 255, 0, .16); } }
  .roll { display: inline-block; animation: roll .45s var(--ease-spring) both; }
  @keyframes roll { from { opacity: 0; transform: translateY(70%); } }
  .flash { animation: flash 1.6s var(--ease-out) both; }
  @keyframes flash { 0%, 30% { background-color: rgba(215, 255, 0, .22); } }

  /* 正在打字:光标、思考中的三个点 */
  .caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--lime); animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
  .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.1s ease-in-out infinite; }
  .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

  /* 打勾:描一笔 */
  .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .5s var(--ease-out) .1s forwards; }
  @keyframes tick { to { stroke-dashoffset: 0; } }

  /* 骨架闪光、二维码扫描线、生成进度 */
  .shimmer { position: relative; overflow: hidden; }
  .shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }
  @keyframes shimmer { to { transform: translateX(100%); } }
  .scan { position: absolute; left: 8px; right: 8px; height: 2px; top: 10px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 12px 2px rgba(215, 255, 0, .6); animation: scan 1.8s ease-in-out infinite alternate; }
  @keyframes scan { to { top: calc(100% - 12px); } }
  .reveal-img { animation: reveal-img 1.1s var(--ease-out) both; }
  @keyframes reveal-img { from { filter: blur(18px) saturate(.4); transform: scale(1.04); opacity: .2; } }
  .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .bar > i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .4s var(--ease-out); }

  /* 滚动到才出现(小提示页) */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-spring); transition-delay: var(--d, 0ms); }
  .reveal.is-in { opacity: 1; transform: none; }

  /* —— 吐司:顶部居中,完成一步时出现 —— */
  .toasts { position: fixed; left: 50%; top: 58px; z-index: 1100; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; }
  .toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font: 500 13.5px/1.3 var(--font-sans); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); animation: toast-in .5s var(--ease-back) both; }
  .toast.is-out { animation: toast-out .25s var(--ease-out) both; }
  .toast__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); flex: none; }
  .toast__sub { color: #52525b; font-weight: 400; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.9); } }
  @keyframes toast-out { to { opacity: 0; transform: translateY(-6px) scale(.96); } }

  /* —— 彩带 —— */
  .confetti { position: fixed; inset: 0; z-index: 1200; pointer-events: none; overflow: hidden; }
  .confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; }

  /* —— 清单浮层:点左下角「上手清单」打开 —— */
  .cl-pop { position: fixed; z-index: 1050; width: 320px; padding: 16px; border-radius: 20px; background: var(--bg-raised); color: var(--text); font: 14px/1.5 var(--font-sans); box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px -20px rgba(0, 0, 0, .75); transform-origin: 20% 100%; animation: pop .4s var(--ease-back) both; }
  .cl-pop.is-out { animation: coach-out .2s var(--ease-out) both; }
  .cl-pop h3 { margin: 0; font-size: 15px; font-weight: 600; }
  .cl-pop ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
  .cl-pop a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; border-radius: 12px; color: var(--text); text-decoration: none; }
  .cl-pop a:hover { background: rgba(255, 255, 255, .05); }
  .cl-pop .n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); font: 11.5px var(--font-mono); }
  .cl-pop .done .n { background: var(--lime); color: var(--ink); box-shadow: none; }
  .cl-pop .done .t { color: var(--text-2); }
  .cl-pop .cur { background: rgba(215, 255, 0, .08); box-shadow: inset 0 0 0 1px rgba(215, 255, 0, .3); }
  .cl-pop .cur .n { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }
  .cl-pop .go { margin-left: auto; color: var(--lime); font-size: 12.5px; }

  /* —— 预览翻页条 —— */
  .pv-nav { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 6px; border-radius: 999px; background: rgba(11, 11, 16, .92); box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px -10px rgba(0, 0, 0, .6); font: 12.5px/1 var(--font-sans); color: var(--text-2); backdrop-filter: blur(8px); }
  .pv-nav a, .pv-nav button { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--text); text-decoration: none; }
  .pv-nav a:hover, .pv-nav button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
  .pv-nav .num { font-family: var(--font-mono); color: var(--lime); padding: 0 4px; }

  @media (prefers-reduced-motion: reduce) {
    .spot, [style*="0 0 0 2px #d7ff00"], .spot-soft, .send-ready, .rise, .pop, .bubble-in, .fade-in, .coach-in, .swap,
    .seg-on, .bump, .roll, .flash, .caret::after, .dots i, .shimmer::after, .scan, .reveal-img, .toast, .cl-pop { animation: none !important; }
    .tick path { animation: none; stroke-dashoffset: 0; }
    .reveal { opacity: 1; transform: none; transition: none; }
  }
}