🤖 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.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
fix(site): 首屏和触达舞台的尺寸跟着内容宽度走,导览对话框放大
dyk98c017b7679e94
diff --git a/site/src/styles/home.css b/site/src/styles/home.cssindex b282102..85e669b 100644--- a/site/src/styles/home.css+++ b/site/src/styles/home.css@@ -61,7 +61,13 @@文字间距取自 4px 尺度:胶囊 → 标题 24 · 标题 → 说明 24 · 说明 → 按钮 32 · 按钮 → 要点 24(手机 16 / 16 / 24 / 16)。 */.hero {--hero-top: clamp(40px, 7vw, 104px);- --stage-h: 640px;+ /* 舞台的尺寸从内容宽度算(--hero-frame 和 .container 同一个算法):窗口居中,手机的外沿正好落在内容右边线上,高度跟着宽度走 */+ --hero-frame: min(var(--container), 100vw - 2 * var(--gutter));+ --win-out: .11; /* 手机探出窗口右边多少(窗口宽度的比例) */+ --win-w: calc(var(--hero-frame) / (1 + 2 * var(--win-out)));+ --win-h: max(440px, var(--win-w) * .59);+ --win-x: 0px;+ --stage-h: calc(var(--win-h) + 130px);--hz-y: 210px; /* 地平线顶沿在舞台里的高度 */--hz-w: max(2600px, 190%);--hz-glow: var(--bot-blue-glow);@@ -259,7 +265,7 @@App 的语义 token 抄到 --a-* 上(ui/design/tokens/semantic.css,深浅两套),窗口、流动卡片都只用这一层,质感和 App 一致:环境光 + 毛玻璃 + 半透明填充 + 细描边 + 磨砂颗粒;字体也用 App 的系统字体。 */.hstage {- --tilt: 0deg; --win-w: 880px; --win-h: 520px; --side-w: 232px;+ --tilt: 0deg; --side-w: 232px;--a-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;--a-code: ui-monospace, "SF Mono", Menlo, Consolas, "Microsoft YaHei UI", monospace;--a-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");@@ -321,7 +327,7 @@.hstage__lane { position: absolute; top: var(--bleed); bottom: calc(var(--stage-h) * .18); width: 50%; overflow: clip; display: none; container-type: size; }.hstage__lane--in { left: 0; }.hstage__lane--out { right: 0; }- @media (min-width: 1280px) and (prefers-reduced-motion: no-preference) { html.js .hstage__lane { display: block; } }+ @media (min-width: 1360px) and (prefers-reduced-motion: no-preference) { html.js .hstage__lane { display: block; } }.hs-flow {--k: 0;position: absolute; left: 50%; top: 50%; display: grid; width: max-content; pointer-events: none;@@ -350,7 +356,7 @@.hs-card--code ins, .acode ins { color: var(--a-green); text-decoration: none; }.aic { flex: none; stroke-width: 1.6; }- .hstage__devices { position: relative; z-index: 1; width: min(var(--win-w), 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto; perspective: 2000px; }+ .hstage__devices { position: relative; left: var(--win-x); z-index: 1; width: var(--win-w); height: 100%; margin-inline: auto; perspective: 2000px; }/* —— App 窗口(ui/css/shell.css):环境光(--bg + 左上品牌黄绿 + 左下机器人色相光 + 右上邻近色)上盖毛玻璃侧栏,主区是浮在环境光上的圆角面板。色相(--aura-hue)跟着当前机器人慢慢过渡,和 App 换机器人时一样。 —— */@@ -478,9 +484,10 @@html.js .hs-item:not(.hs-item--static, .on) { grid-template-rows: 0fr; opacity: 0; }.hs-log .phone__day { justify-self: center; margin-bottom: 0; }- /* 手机:压在窗口右下角,跟着窗口一起仰,自己再歪一点 */- .hstage__phone {- position: absolute; right: -11%; top: 150px; z-index: 2; width: 196px; padding: 7px; border-radius: 34px;+ /* 手机:压在窗口右下角,跟着窗口一起仰,自己再歪一点。选择器写两个类:.phone 在这个文件后面,同优先级会盖掉这里的定位和尺寸 */+ .phone.hstage__phone {+ --phone-w: clamp(176px, var(--win-w) * .222, 216px);+ position: absolute; right: calc(var(--win-w) * var(--win-out) * -1); top: calc(var(--win-h) + 20px - var(--phone-w) * 2); z-index: 2; width: var(--phone-w); padding: 7px; border-radius: 34px;transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt) * .6)) rotate(3deg);}.hstage__phone .phone__screen { border-radius: 28px; }@@ -489,14 +496,16 @@.hstage__phone .phone__log .msg { max-width: 88%; padding: 7px 11px; font-size: 12px; }.hstage__phone .phone__input { height: 32px; margin: 0 8px 8px; padding: 0 12px; font-size: 11.5px; }- @media (min-width: 1024px) and (max-width: 1439px) { .hstage { --win-w: 820px; } .hs-card { max-width: 210px; } }+ @media (min-width: 1024px) and (max-width: 1439px) { .hs-card { max-width: 210px; } }+ /* 两侧有流动卡片的宽度:窗口给右道留出至少 100px(右边还要减去手机探出的部分) */+ @media (min-width: 1360px) { .hero { --win-w: calc(min(var(--hero-frame), 100vw - 216px) / (1 + 2 * var(--win-out))); } }+ /* 平板:没有流动卡片,窗口 + 手机这一组正好占满内容宽度(窗口贴左边线,手机贴右边线) */@media (max-width: 1023px) {+ .hero { --win-out: .07; --win-w: calc(var(--hero-frame) / (1 + var(--win-out))); --win-x: calc(var(--win-w) * var(--win-out) / -2); }.hstage { --side-w: 200px; }- .hstage__phone { right: -7%; }}@media (max-width: 767px) {- .hero { --stage-h: 470px; --hz-y: 130px; --hz-w: 1500px; }- .hstage { --win-h: 390px; }+ .hero { --win-w: var(--hero-frame); --win-h: 390px; --win-x: 0px; --stage-h: 470px; --hz-y: 130px; --hz-w: 1500px; }.hero__bg { inset: 6px 6px 0; border-radius: var(--r-card); }.hero__eyebrow { margin-bottom: var(--space-4); font-size: var(--fs-xs); }.hero__crew .bot-face:nth-child(n + 4) { display: none; }diff --git a/site/src/styles/sections.css b/site/src/styles/sections.cssindex b064778..febc06c 100644--- a/site/src/styles/sections.css+++ b/site/src/styles/sections.css@@ -97,6 +97,17 @@transition: opacity .5s var(--ease-out), transform .8s var(--ease-out), filter .5s var(--ease-out), visibility 0s linear .8s;}html.js .story__scene[data-scene="1"] { padding-top: 44px; }+ /* 动手这一幕铺满舞台卡:左边窗口、右边操作记录,两块等宽等高;文件排成 3 列 4 行,跟着窗口高度伸缩 */+ html.js .story__scene[data-scene="0"] { align-content: stretch; }+ html.js .desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }+ html.js .desk__win { display: flex; flex-direction: column; }+ html.js .desk__files { flex: 1; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }+ html.js .desk__file { aspect-ratio: auto; }+ html.js .desk__log {+ padding: 14px; border-radius: var(--r-pop); background: var(--grain), var(--glass);+ box-shadow: var(--glass-ring), 0 0 0 1px var(--line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ }+ html.js[data-theme="light"] .desk__log { box-shadow: var(--glass-ring), var(--card-shadow); }html.js .story__scene.is-past { transform: translateY(-48px) scale(.96); }html.js .story__scene.is-on {opacity: 1; visibility: visible; transform: none; filter: none;@@ -327,7 +338,7 @@合成图:浏览器(左后)、桌面 App(正中、最大)、手机里的聊天软件(右前)三块屏幕错落叠放,显示同一段和天天的对话,回答下面挂着同一条"记忆"标签——三处一模一样,就是"一份记忆"。材质:屏幕是真正的磨砂玻璃——半透明(--glass)+ 背景模糊(--glass-blur-lg)+ 颗粒 + 顶边高光 + 一道斜向的反光;- 三块屏幕叠得较深(App 压住浏览器的右三分之一、手机压住 App 的输入框),透过前面的玻璃能看到后面屏幕被磨砂的内容;+ 三块屏幕叠得较深(App 压住浏览器的右三分之一、手机压住 App 右边一条),透过前面的玻璃能看到后面屏幕被磨砂的内容,文字都让开被压住的那一条;背后垫一层静止的柔光(.reach__lights:深色是天天的蓝和紫钻的紫两团很淡的光 + 一点白;浅色只用中性的冷灰和白),玻璃才磨得出层次。屏幕里面再分层:App 的主面板、标签页、地址栏、输入框是更实一点的 --glass-strong。底下一团静止的中性落影把三块屏幕放在同一张"桌面"上。不铺角色色的大面,只有记忆标签染一点天天的蓝。@@ -339,7 +350,13 @@入口:一条磨砂玻璃底座,四栏、栏与栏之间一根细线;悬停的那一栏铺一层淡底、图标片浮起一点、箭头往前走。接入指南:对话框(--glass-strong),顶上一排标签,下面是命令或步骤;无 JS 时直接展开在页面里。窄屏:合成图去掉浏览器,只留桌面 + 手机;手机上只留手机。底座两列 → 一列。 */- .reach__stage { position: relative; isolation: isolate; height: 480px; max-width: 1100px; margin-inline: auto; }+ /* 合成图和下面的底座同宽:浏览器贴内容左边线,手机贴右边线,App 夹在中间 */+ .reach__stage {+ --phone-w: clamp(212px, 19vw, 240px);+ --overlap: 76px; /* 手机压住 App 的宽度 */+ --span: calc(100% - var(--phone-w) + var(--overlap)); /* 浏览器左边到 App 右边 */+ position: relative; isolation: isolate; height: clamp(480px, 42vw, 520px);+ }.reach__lights {position: absolute; inset: -80px -60px -40px; z-index: -1; pointer-events: none;background:@@ -367,9 +384,9 @@/* 一道斜向的反光:玻璃的边角比中间亮一点 */.rs::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 34%); }[data-theme="light"] .rs::after { background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 36%); }- .rs--browser { --av: 30px; left: 0; top: 96px; width: 40%; height: 304px; border-radius: 14px; }- .rs--app { --av: 34px; left: 21%; top: 0; z-index: 2; width: 55%; height: 420px; border-radius: 18px; }- .rs--phone { left: calc(76% - 76px); top: 64px; z-index: 3; width: 226px; height: 412px; padding: 0 6px 6px; border-radius: 42px; }+ .rs--browser { --av: 30px; left: 0; top: 96px; bottom: 80px; width: calc(var(--span) * .48); border-radius: 14px; }+ .rs--app { --av: 34px; left: calc(var(--span) * .32); top: 0; bottom: 60px; z-index: 2; width: calc(var(--span) * .68); border-radius: 18px; }+ .rs--phone { right: 0; bottom: 4px; z-index: 3; width: var(--phone-w); height: calc(var(--phone-w) * 1.82); padding: 0 6px 6px; border-radius: 42px; }/* 灵动岛:深色下比屏幕更黑,浅色下是中性的深灰(不用偏绿的墨色) */.rs--phone::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 6; width: 72px; height: 22px; border-radius: 12px; translate: -50% 0; background: #050505; }[data-theme="light"] .rs--phone::before { background: rgba(17, 24, 39, .9); }@@ -444,6 +461,10 @@/* 同一段对话:你的问题(实心深色气泡)→ 天天的回答 → 挂在回答下面的记忆标签(三块屏幕上一模一样) */.rs__thread { flex: 1; min-height: 0; display: grid; align-content: end; gap: 9px; padding: 14px 14px 12px; }.rs--phone .rs__thread { padding: 12px 10px 12px; }+ /* 对话和输入框让开被前一块屏幕压住的那一条。浏览器:百分比相对对话这一列(比窗口少一列头像),所以多加 14 补回来 */+ .rs--browser .rs__thread { padding-right: calc(33.33% + 28px); }+ .rs--app .rs__thread { padding-right: calc(var(--overlap) + 14px); }+ .rs--app .rs__composer { margin-right: calc(var(--overlap) + 10px); }.rs__msg { max-width: 86%; margin: 0; padding: 8px 11px; border-radius: 14px; font-size: 12px; line-height: 1.45; }.rs--phone .rs__msg, .rs--browser .rs__msg { font-size: 11.5px; }.rs__msg--me { justify-self: end; border-bottom-right-radius: 4px; background: var(--text); color: var(--bg); }@@ -528,10 +549,9 @@html:not(.js) .reach-guide .icon-btn { display: none; }@media (max-width: 1023px) {- .reach__stage { height: 440px; }+ .reach__stage { --phone-w: 212px; height: 440px; }.rs--browser { display: none; }- .rs--app { left: 0; width: 74%; }- .rs--phone { left: auto; right: 0; }+ .rs--app { left: 0; bottom: 20px; width: var(--span); }.reach__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }.reach__way:nth-child(3)::before { display: none; }.reach__way:nth-child(n + 3) { box-shadow: inset 0 1px 0 var(--line); border-radius: 0 0 18px 18px; }@@ -539,7 +559,7 @@@media (max-width: 767px) {.reach__stage { height: auto; display: grid; justify-items: center; padding-bottom: 8px; }.rs--app { display: none; }- .rs--phone { position: relative; left: auto; right: auto; top: auto; width: min(270px, 82%); height: 420px; }+ .rs--phone { position: relative; right: auto; bottom: auto; width: min(270px, 82%); height: 420px; }.reach__ways { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }.reach__way + .reach__way::before { display: none; }.reach__way + .reach__way { box-shadow: inset 0 1px 0 var(--line); border-radius: 0 0 18px 18px; }diff --git a/site/src/styles/tour.css b/site/src/styles/tour.cssindex 0c40433..caa8aa9 100644--- a/site/src/styles/tour.css+++ b/site/src/styles/tour.css@@ -4,7 +4,8 @@字体也用 App 的系统字体;组件的尺寸、圆角、层次对照 ui/css/shell.css、chat.css、settings.css 和 ui/design/components。.on-fade / .on-rise 在 home.css(和"它能动手"的循环示意共用)。 */@layer app {- dialog.tour { width: min(920px, 100% - 32px); }+ /* 导览比普通对话框宽、也更高:舞台跟着屏幕高度伸缩,整个对话框一屏放得下(252 是舞台以外的标题、步骤、字幕和边距) */+ dialog.tour { width: min(1120px, 100% - 32px); max-height: min(92vh, 860px); }/* —— 舞台:一块"桌面",App 窗口浮在上面(四周留 16) —— */.tour__viewport { position: relative; margin: 16px 24px 0; }@@ -32,7 +33,7 @@--a-shadow-lg: 0 4px 14px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .6);--a-shadow-pane: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 30px rgba(0, 0, 0, .35);--a-win-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -30px #000, 0 18px 40px -20px rgba(0, 0, 0, .7);- position: relative; height: 452px; overflow: hidden; border-radius: 18px; isolation: isolate;+ position: relative; height: clamp(452px, 92vh - 252px, 600px); overflow: hidden; border-radius: 18px; isolation: isolate;background: var(--a-desk); box-shadow: inset 0 0 0 1px var(--line);color: var(--a-fg); font-family: var(--a-font); font-size: 13px; line-height: 1.5; letter-spacing: 0; text-align: left;}@@ -303,7 +304,8 @@.tim__card small { color: var(--a-muted); font-size: 12px; line-height: 1.5; }.tim__bot { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; width: 100%; border-top: 1px solid var(--a-line2); font-size: 12.5px; font-weight: 500; }.tim__bot .tw-dot { margin-left: auto; }- .tour__phone { flex: none; width: 200px; aspect-ratio: 300 / 600; padding: 8px; border-radius: 30px; }+ /* 选择器写两个类:.phone 在 home.css 里,打包后排在这里后面,同优先级会盖掉这里的尺寸 */+ .phone.tour__phone { flex: none; width: 200px; aspect-ratio: 300 / 600; padding: 8px; border-radius: 30px; }.tour__phone .phone__screen { border-radius: 24px; }.tour__phone .phone__head { gap: 8px; padding: 10px 12px; }.tim__who { display: grid; line-height: 1.25; }