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.

5.1 KB
Raw Blame
@layer tokens, base, components, app, utilities;

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026, U+2022, U+00B7, U+2190-2193, U+2197, U+2713, U+2717, U+2248, U+2264-2265, U+00D7, U+20AC, U+2122;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026, U+2022, U+00B7, U+2190-2193, U+2197, U+2713, U+2717, U+2248, U+2264-2265, U+00D7, U+20AC, U+2122;
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    line-break: strict; overflow-x: clip;
  }
  /* 深色:同样一层静止的环境光,压得很暗(白 2.5–4.5%,没有颜色、不动)——半透明的舞台卡和玻璃透出一点明暗,页面不是一整片死黑 */
  [data-theme="dark"] body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60vmax 44vmax at 6% 4%, rgba(255, 255, 255, .045), transparent 70%),
      radial-gradient(52vmax 40vmax at 96% 38%, rgba(255, 255, 255, .03), transparent 70%),
      radial-gradient(64vmax 46vmax at 36% 100%, rgba(255, 255, 255, .025), transparent 70%);
  }
  /* 浅色:页面底下一层静止的环境光——几团很大的白光和一点冷灰,没有颜色、不动。
     舞台卡和玻璃浮层是半透明的,透过它们看得到底下深浅的变化,页面才显得通透(固定在视口上,滚动时光不跟着走) */
  [data-theme="light"] body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60vmax 44vmax at 6% 4%, rgba(255, 255, 255, .95), transparent 70%),
      radial-gradient(52vmax 40vmax at 96% 38%, rgba(255, 255, 255, .8), transparent 70%),
      radial-gradient(64vmax 46vmax at 36% 100%, rgba(225, 229, 236, .7), transparent 70%);
  }
  img, svg, video, picture { display: block; max-width: 100%; }
  svg.amb-mark { display: inline-block; }
  img, video { height: auto; }
  h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
  :is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2, h3) { letter-spacing: 0; }
  /* 字重只用 400 / 500 / 600:b、strong 默认的 bolder 在可变字体下会到 700 */
  b, strong { font-weight: 600; }
  p { text-wrap: pretty; }
  a { color: var(--accent-fg); text-decoration: none; text-underline-offset: 3px; }
  a:hover { color: var(--accent-fg-strong); text-decoration: underline; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  code, kbd, pre, samp { font-family: var(--font-mono); font-size: var(--fs-code); }
  ::selection { background: var(--hl-bg); color: var(--accent-ink); }
  :focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; border-radius: 4px; }
  [hidden] { display: none !important; }
  .num, .tnum { font-variant-numeric: tabular-nums; }
}

@layer utilities {
  .container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .prose { max-width: 68ch; }
  :is(:lang(zh), :lang(ja), :lang(ko)) .prose { max-width: 36em; }
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .mono { font-family: var(--font-mono); }
  .muted { color: var(--text-2); }
  .small { font-size: var(--fs-xs); line-height: 1.55; }
  .center { text-align: center; }
  .skip {
    position: fixed; left: 12px; top: -60px; z-index: calc(var(--z-toast) + 1);
    padding: 10px 16px; border-radius: var(--r-btn); background: var(--primary); color: var(--on-primary); font-weight: 600;
  }
  .skip:focus { top: 12px; text-decoration: none; color: var(--on-primary); }
}

/* —— 滚动入场:只播一次;JS 关闭或减少动态效果时直接显示 —— */
@layer utilities {
  html.js .reveal { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}