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.

fix(site): 第 2 节退回工牌设计,只调字段;修掉第 6 节光晕被切

dyk980fe2a4cb7b00
diff --git a/site/README.md b/site/README.md
index 4514ff1..c61c082 100644
--- a/site/README.md
+++ b/site/README.md
@@ -6,9 +6,9 @@ Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模
- **首页**(`src/views/Home.astro`)八块,每块讲清一件事,细节交给附属页:
1. Hero:圆角大卡片里放标题、一句说明、下载 / 演示、一行小字要点,底下一台桌面窗口 + 一部手机循环演示(宽屏两侧有流动卡片)
- 2. 由你定义(一排人设示例 + 挂在挂绳上的名牌 + 手机 mock;名牌上的"花费"是月估算,链到 /pricing 的计算器)
- - **机器人没有固定岗位。** 和 App 一样,一个机器人 = 选一个角色 + 起名字 + 写人设 + 挑模型,能力不分角色。不要给某个角色写固定的岗位或擅长的事,也不要让台词提工作;页面上的对话都来自 i18n 的 `bots.personas`(示例,和角色不配对),首屏、"在哪都能用"、演示导览也从这里取。
- - **角色的名字**:中文叠字、英文一个词,都取自它最显眼的那件配饰——天天 Ping(天线)、闪闪 Twinkle(星星)、芽芽 Sprout(嫩芽)、哒哒 Beat(耳机)、晶晶 Crystal(水晶)、飞飞 Pilot(飞行护目镜)。文案在 i18n 的 `bots.looks`:`name` 本语言名、`alias` 另一种语言的名字(只有中文页写英文名;英文页留空,不出现中文名)、`motto` 讲名字的由来。名牌上名字旁边写 alias。代码里的键仍是颜色(blue / yellow / green / red / purple / orange)。
+ 2. 认识你的机器人(一排角色 + 挂在挂绳上的工牌 + 手机 mock;工牌上的"月薪"是月估算,链到 /pricing 的计算器)
+ - **岗位由用户定。** 和 App 一样,机器人做什么由用户写的人设决定,能力不分角色。工牌上写"岗位:你来定";人设、模型和手机里的对话都是示例(`bots.personas`,对应关系在 `lib/bots.ts` 的 `CHAR_PERSONA`),首屏、"在哪都能用"、演示导览也从这里取。不要给角色写固定的岗位或擅长的事,台词也不提工作;工牌的版式不要改。
+ - **角色的名字**:中文叠字、英文一个词,都取自它最显眼的那件配饰——天天 Ping(天线)、闪闪 Twinkle(星星)、芽芽 Sprout(嫩芽)、哒哒 Beat(耳机)、晶晶 Crystal(水晶)、飞飞 Pilot(飞行护目镜)。文案在 i18n 的 `bots.looks`:`name` 本语言名、`alias` 另一种语言的名字(只有中文页写英文名;英文页留空,不出现中文名)、`tag` 配饰(一排角色里名字下面那行小字)、`motto` 讲名字的由来。工牌上名字旁边写 alias;证件照上不加标注(指向配饰的小标签已去掉,没有意义)。代码里的键仍是颜色(blue / yellow / green / red / purple / orange)。
3. 能动手、会记住:两章边滚边讲(左边文字依次滚过,右边吸顶的舞台卡跟着换场)
4. 任意模型:居中章节头两侧散落一片毛玻璃厂商图标砖(有标志的厂商、不放快手;标志用官方彩色版;砖越大、越靠近标题,这家的模型越多;每块很轻地上下浮动,悬停显示厂商名,窄屏少放、手机不放),标题下一颗公式胶囊「1 个 Key → N 个模型 · M 家厂商」(`components/ModelsHeadArt.astro`,数字取自价格快照)→ "换脑"舞台(模型环绕晶晶转 + 对话演示)→ 一行模型名跑马灯 → 三栏价格面板(完整价格表、计算器在 /pricing)
5. 数据去向图(长版在 /security)
@@ -100,7 +100,7 @@ Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模
|---|---|---|---|---|---|---|
| display | `.hero__h1` | 42–76 | 38–72 | 1.02 / 1.16 | -.045em / -.02em | 只给 Hero;行尾的天天 1.12em(手机 .86em) |
| h2 | `.h2` | 32–56 | 26–48 | 1.06 / 1.25 | -.035em / 0 | 章节标题、收尾横幅、附属页 H1 |
-| title | `.subhead` | 26–36 | 24–32 | 1.12 / 1.3 | -.025em / 0 | 章节里的块标题:功能卡、价格概览、名牌上的名字 |
+| title | `.subhead` | 26–36 | 24–32 | 1.12 / 1.3 | -.025em / 0 | 章节里的块标题:功能卡、价格概览、工牌上的名字 |
| h3 | `.h3` | 22(手机 20) | 同英文 | 1.3 | — | 卡片、弹窗标题 |
中文字面比拉丁字母满,所以中文标题小一档:字距不收,行高放开 .15–.2。
@@ -117,7 +117,7 @@ Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模
手机、小窗口、演示导览这些 mock 照 App 的界面尺寸来,不受上面这张表约束,但不小于 11px。
-**小标签只有一种:`.eyebrow`。** 英文用等宽大写,中文用无衬线、不大写。价格卡标签、章节头的"编号 / 名称"、名牌上的"你好,我叫"都用它。
+**小标签只有一种:`.eyebrow`。** 英文用等宽大写,中文用无衬线、不大写。价格卡标签、章节头的"编号 / 名称"、工牌上的职位都用它。
**章节头(`.shead`)。**
- 一列、同一条左边线:细线 → 编号 / 名称 → 两段式标题 → 说明。说明紧跟在标题下面,不另起一栏。
@@ -142,8 +142,8 @@ Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模
- **第三个例外**:Hero 背景里的模型厂商标志(`components/HeroLogos.astro` + `styles/hero-logos.css`,用户 2026-10-31 明确要求"logo 做微弱浮动、尽量淡化")——标题两侧各五枚单色标志,最清楚的一枚是正文色的 12%(浅色 11%;压到 7% 时用户说看不到,更早的版本又嫌明显),远的更小更淡、略虚;各自轻轻漂(上下 8px、左右 3px、转 ±1.5°),5–8.5 秒一个来回、起点错开;只在文字两侧的空白里,不压标题、按钮和舞台;中等宽度只留外侧几枚,窄屏不放;"减少动态效果"时静止。不要加量、不要加颜色、不要扩展到 Hero 以外。
- 说不出含义、只是"让画面动起来"的效果,一律不加。App 端同一条规矩,见 `ui/design/README.md` 的「动效」。
-**舞台卡(`.stage`)。** 视觉母版是"由你定义"那张 `.crew`:深底、一圈细线、32px 圆角,底光用这一块主角机器人的颜色。
-- 颜色写在标签的 `--stage-glow` 上:动手和记忆同橙(两章是同一个机器人,能力不分角色)、模型紫、数据去向绿。
+**舞台卡(`.stage`)。** 视觉母版是"认识机器人"那张 `.crew`:深底、一圈细线、32px 圆角,底光用这一块主角机器人的颜色。
+- 颜色写在标签的 `--stage-glow` 上:动手橙、记忆绿、模型紫、数据去向绿。
- UI 强调色仍是品牌黄绿。
**滚动联动(`scripts/scroll-fx.ts`)。**
@@ -157,17 +157,17 @@ Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模
- **Hero**(`sections/Hero.astro`,样式在 `home.css` 的"1 Hero"):
- 四周留 8px 的圆角大卡片(手机 6px)。背景要克制、除顶部天空外全部静止,颜色只有很弱的变化(舞台换机器人时跟着微微变色,`--hero-hue` / `--hz-glow`),不用品牌黄绿、不加装饰图形:底色渐变(深色下顶上偏一点点夜空蓝)→ 一层很淡的中性顶光(顶上 160px 淡入,不在卡片顶边切出亮带)+ 顶部的天空(`Hero.astro` 里伪随机生成,标题背后稀一些,往下渐隐):深色是星空——约 340 颗冷白小星(少数偏蓝 / 偏暖,几颗亮星带一圈光),约五分之一慢慢闪,偶尔划过一颗流星;浅色是晴空——顶上一片清透的浅天蓝(往下渐淡,到说明文字附近回到卡片的白;这是浅色"只用中性白灰"的例外,用户 2026-11-01 要的)+ 三朵很软的白云(纯 CSS,底下压一层极淡的中性灰影子,极慢地飘)+ 四十来个四角形的细小闪光(颜色跟着当前机器人的色调),约六成偶尔亮起、转一下再隐去,不放流星(见上面的例外)→ 舞台后面一层极淡的机器人色 → 一道巨大的弧形地平线托住窗口(整圈一线淡亮边、正中稍亮),上方一层很淡的光晕 → App 同款磨砂颗粒。不画线框、网格、点阵、放射光束。
- 舞台的遮罩只负责把底边淡进地面;遮罩会裁掉盒子外的一切,所以 `.hstage` 往上多留了 `--bleed`(220px),窗口四周的光晕不会在舞台顶边被切平。倾斜的滚动进度挂在 `.hstage__devices` 上。
- - 文字居中一列:小胶囊(六个角色头像 + 一句话,链到"由你定义"那一节)→ 标题 → 一句说明(两行以内)→ 下载 / 演示 → 三条要点(每条前面一个勾,颜色跟着当前机器人)。
+ - 文字居中一列:小胶囊(六个角色头像 + 一句话,链到"认识你的机器人")→ 标题 → 一句说明(两行以内)→ 下载 / 演示 → 三条要点(每条前面一个勾,颜色跟着当前机器人)。
- 标题在 Hero 里放大一档(英 46–88、中 42–84)。中文逐字、英文逐词由虚变实升起;第一行是渐隐的渐变字,行尾蹲着会看指针、能戳的天天;关键词深色下是黄绿渐变字,浅色下改用当前机器人的颜色(深一档,跟着换幕渐变;黄绿在浅底上发脏),底下垫一团同色的光,字出齐后一道亮光从左到右扫过。不铺荧光底、不加下划线。
- 间距只取 4px 尺度:胶囊 → 标题 24、标题 → 说明 24、说明 → 按钮 32、按钮 → 要点 24(手机 16 / 16 / 24 / 16)。
- 舞台是一台照 App 原生界面(`ui/design`、`ui/css/shell.css`、`chat.css`)做的窗口:环境光 + 毛玻璃侧栏(红绿灯、搜索、机器人行、账户)+ 浮起的主面板(顶栏、气泡、"思考中 → 用时"、代码块、审批卡、文件卡)+ 玻璃输入框(权限、模型、发送)。App 的语义 token 抄在 `.hstage` 的 `--a-*` 上,深浅两套,字体也用 App 的系统字体。
- 循环 18 秒三幕,每幕换一个机器人(只是示例,不是它们的职责):天天聊天改代码 → 飞飞动手整理文件(要你批准)→ 芽芽回聊天软件里来的消息(右下角的手机同步)。侧栏选中行、顶栏、对话、输入框里的模型和窗口环境光(`--aura-hue`)跟着切换;机器人干活时侧栏亮绿点、发送钮变成停止。时间线和演示导览同一套(`scripts/tour.ts`:`data-steps` 切幕,`data-at` / `data-type` 出消息)。窗口往后仰,随滚动摆正。
- 宽屏(≥1280px)两侧有流动卡片:左边的模型、任务、消息流进窗口,右边的结果、文件、记忆从窗口后面流出来(`data-flow` 写进度 `--k`)。
- 按钮:指针移上去从底下升起一团高光,演示按钮再放大一点;下载按钮底下垫一层品牌色的光。
- - 文案求短:舞台里的字尽量复用演示导览、"能动手"、示例人设的文案,新增的在 `hero.stage`。
+ - 文案求短:舞台里的字尽量复用演示导览、"能动手"、角色的文案,新增的在 `hero.stage`。
- 入场(纯 CSS):地平线升起、光晕亮起 → 胶囊 → 标题一块块出来 → 天天弹出 → 说明、按钮、要点 → 窗口、手机升上来 → 两侧卡片淡入 → 关键词扫光。减少动态效果时舞台停在完成态(第三幕)、不放流动卡片;窄屏只留主面板。
- **章节头**:第一次进视口时细线从左画出,编号、标题、说明依次升起。
-- **由你定义**(`sections/Bots.astro`、`scripts/sections.ts`):角色和人设是两根互不相干的轴。换人设:名牌翻面,人设逐字写出,手机里再按它回话;换角色:只换脸和名字,人设一个字不动。名牌翻面前后高度不变(所有人设叠在同一格)。
+- **认识机器人**:样式不变,只随滚动升起来。
- **第 3–8 节的通用规矩**:版式照第 2 节——章节头 + 一张主持机器人底光的舞台卡;叙事照 bevel.health——短标题 + 一句话,然后一块会动的大示意。品牌黄绿只给主操作(下载、获取 Key),其余强调用机器人的颜色、压得很淡。
- **能动手 / 会记住**(`scripts/sections.ts` 的 story):
- 桌面(≥1024、高 ≥700):左边两章各占大半屏依次滚过,当前那章亮、另一章淡;右边舞台卡吸顶换场(旧幕往上退、糊掉,新幕升上来),底光从飞飞的橙渐变到芽芽的绿;卡顶两个小标签能点。
diff --git a/site/src/components/SectionHead.astro b/site/src/components/SectionHead.astro
index 8ba0e0a..8d6c08f 100644
--- a/site/src/components/SectionHead.astro
+++ b/site/src/components/SectionHead.astro
@@ -1,7 +1,7 @@
---
// 首页章节头(样式在 components.css 的 .shead):一列左对齐——细线 → "编号 / 名称"(.eyebrow)→ 两段式标题 → 说明。
// 可选一个"主持"机器人,蹲在细线右端:跟着指针看、能戳,第一次滚到这一节时打个招呼(scripts/sections.ts)。
-// 本节内容里已经有大机器人的(由你定义、常见问题)不放主持人。
+// 本节内容里已经有大机器人的(认识机器人、常见问题)不放主持人。
// 第一次滚进视口时(data-inview → .is-in):细线从左往右画出来,编号、两句标题、说明依次升起(home.css)。
import BotFace from "./BotFace.astro";
import type { CharKey } from "../lib/bots";
diff --git a/site/src/data/pricing.config.ts b/site/src/data/pricing.config.ts
index 85c128b..e631a16 100644
--- a/site/src/data/pricing.config.ts
+++ b/site/src/data/pricing.config.ts
@@ -6,7 +6,7 @@ export const pricingConfig: PricingConfig = {
sampleUsage: { days: 30, msgs: 50, inTok: 3000, outTok: 600 },
};
-/** 示例人设配的模型(§6.9,可在 App 里随时更换);白纸(blank)不配模型 */
+/** 示例人设配的模型(§6.9,可在 App 里随时更换) */
export const personaModels = {
pair: "claude-sonnet-5-5",
expenses: "gpt-5.6-sol",
diff --git a/site/src/i18n/en.ts b/site/src/i18n/en.ts
index 50968e2..218c8f2 100644
--- a/site/src/i18n/en.ts
+++ b/site/src/i18n/en.ts
@@ -260,7 +260,7 @@ export const en: Dict = {
},
},
kicker: {
- bots: "Make it yours",
+ bots: "Meet the crew",
features: "What it does",
models: "Models & pricing",
data: "Your data",
@@ -316,20 +316,19 @@ export const en: Dict = {
},
bots: {
h2: "It's whoever you say it is.",
- h2dim: "No fixed jobs, only the persona you write.",
- lead: "The same Ping can be your pair programmer or your German tutor. Write a few lines on what to do and how to talk, and it follows them. Change your mind? Edit a line, and it applies from the next message.",
- tabsLabel: "For example",
- looksLabel: "Pick a character",
- looksNote: "Switch characters and the persona stays word for word. You can rename it, too.",
+ h2dim: "Pick one — or keep the whole crew.",
+ lead: "Six plush characters that differ only in name and looks. What each one does and how it talks comes from the persona you write. Go on, poke one — it talks back.",
+ tabsLabel: "Choose a character",
cost: "≈ {amount} / mo",
- card: { org: "AnyModelBot", tag: "Yours to fill in", hello: "Hello, my name is", persona: "Persona", model: "Model", spend: "Cost", spendNote: "everyday use, estimated", blankModel: "Pick from {modelCount} models", blankSpend: "Pay per use, no monthly fee" },
+ badge: { org: "AnyModelBot", staff: "Staff", no: "ID", job: "Job: your call", persona: "Persona", model: "Model", salary: "Salary", salaryNote: "everyday use, estimated", onDuty: "On duty" },
+ personaNote: "Example: write anything you like",
modelNote: "Example model — change it any time",
- phoneNote: "These are only examples; your persona can be completely different. Illustrative: chatting in Slack, Telegram or Discord",
+ phoneNote: "Illustrative: chatting in Slack, Telegram or Discord",
phoneInput: "Message…",
phoneStatus: "Online · running on your computer",
phoneDay: "Today 21:08",
- swipeHint: "swipe to switch persona",
- where: { pc: "Lives on your computer", phone: "Answers like this on your phone" },
+ swipeHint: "swipe to switch",
+ where: { pc: "Lives on your computer", phone: "Reach it from your phone" },
link: "Slack, Telegram & more",
perks: [
{ title: "A persona is just text", body: "No flows to configure: write it in your own words. Templates are only a starting point, and every word can change." },
@@ -337,21 +336,20 @@ export const en: Dict = {
{ title: "As many as you like", body: "One writes code, one runs the household, one helps you practice a language. They stay out of each other's way." },
],
looks: {
- blue: { name: "Ping", alias: "", motto: "Its antenna pings the moment a message lands." },
- yellow: { name: "Twinkle", alias: "", motto: "A little star on top that twinkles when it smiles. It blushes, too." },
- green: { name: "Sprout", alias: "", motto: "A sprout on top that grows a little every day." },
- red: { name: "Beat", alias: "", motto: "Headset on, it moves to the beat." },
- purple: { name: "Crystal", alias: "", motto: "A crystal on top that catches the light." },
- orange: { name: "Pilot", alias: "", motto: "Goggles down, ready for takeoff." },
+ blue: { name: "Ping", alias: "", tag: "Antenna", motto: "Its antenna pings the moment a message lands." },
+ yellow: { name: "Twinkle", alias: "", tag: "Star", motto: "A little star on top that twinkles when it smiles. It blushes, too." },
+ green: { name: "Sprout", alias: "", tag: "Sprout", motto: "A sprout on top that grows a little every day." },
+ red: { name: "Beat", alias: "", tag: "Headset", motto: "Headset on, it moves to the beat." },
+ purple: { name: "Crystal", alias: "", tag: "Crystal", motto: "A crystal on top that catches the light." },
+ orange: { name: "Pilot", alias: "", tag: "Goggles", motto: "Goggles down, ready for takeoff." },
},
personas: {
- pair: { tab: "Coding partner", persona: "You're my pair programmer. Read the code before you touch it, and tell me how to verify your changes. Skip the compliments; if something's wrong, say so.", user: "Run the tests.", bot: "All passing in 12 seconds. But the check on line 48 is always true. Want me to fix it?" },
- expenses: { tab: "Expense keeper", persona: "You look after my expenses. File invoices by month in the Expenses folder. If an amount doesn't add up, ask me instead of guessing.", user: "Are last month's expenses done?", bot: "Filed 9 invoices, $482 in total. One has the wrong company name, so it's in To Check." },
- secretary: { tab: "Work secretary", persona: "You're my work secretary. Turn the day's discussions into a digest at 5 pm, remember my habits, and don't ask what I've already told you.", user: "Is today's digest ready?", bot: "Yes: 3 decisions, 2 to-dos — saved to memory." },
- german: { tab: "German tutor", persona: "You're my German conversation partner. Only speak German with me. If I make a mistake, correct one thing at the end, in English.", user: "Gestern ich bin ins Kino gegangen.", bot: "Schön! Welchen Film hast du gesehen? (Word order: Gestern bin ich…)" },
- editor: { tab: "Blunt editor", persona: "You're my editor, and you don't sugarcoat. Cross out empty phrases and explain why. No encouragement, just fixes.", user: "Check this line: We strive to deliver a world-class user experience.", bot: "Cut it. Any company could say that. What did you actually build? Write that." },
- home: { tab: "Household helper", persona: "You help run our home. Remember birthdays and food allergies, remind me to buy groceries on Fridays, and keep it light.", user: "What should we cook this weekend?", bot: "Mom skips cilantro and Sam wants fish this week. Steamed bass with tomato and egg? I can write the list~" },
- blank: { tab: "Your turn", persona: "Write who you want it to be…", user: "", bot: "I don't have a persona yet. Who do you want me to be?" },
+ pair: { persona: "You're my pair programmer. Skip the compliments; flag what's wrong.", user: "Run the tests.", bot: "All passing in 12 seconds. But the check on line 48 is always true. Want me to fix it?" },
+ editor: { persona: "You're my blunt editor. Cross out empty phrases and say why.", user: "Check this line: We strive to deliver a world-class user experience.", bot: "Cut it. Any company could say that. What did you actually build? Write that." },
+ secretary: { persona: "You're my work secretary. Turn the day's talk into a digest at 5 pm.", user: "Is today's digest ready?", bot: "Yes: 3 decisions, 2 to-dos — saved to memory." },
+ german: { persona: "You're my German tutor. Only speak German with me.", user: "Gestern ich bin ins Kino gegangen.", bot: "Schön! Welchen Film hast du gesehen? (Word order: Gestern bin ich…)" },
+ home: { persona: "You help run our home. Remember birthdays and allergies.", user: "What should we cook this weekend?", bot: "Mom skips cilantro and Sam wants fish this week. Steamed bass with tomato and egg? I can write the list~" },
+ expenses: { persona: "You look after my expenses. If an amount's off, ask; don't guess.", user: "Are last month's expenses done?", bot: "Filed 9 invoices, $482 in total. One has the wrong company name, so it's in To Check." },
},
},
quips: {
diff --git a/site/src/i18n/zh.ts b/site/src/i18n/zh.ts
index 3698c17..7290920 100644
--- a/site/src/i18n/zh.ts
+++ b/site/src/i18n/zh.ts
@@ -49,7 +49,7 @@ export const zh = {
demo: "看演示",
trust: ["App 免费开源", "模型按量付费", "Windows / macOS / Linux"],
appUiNote: "",
- // 标题上方的小胶囊(链到"由你定义"那一节)
+ // 标题上方的小胶囊(链到"认识你的机器人")
eyebrow: "它是谁,由你来写",
// 首屏底下那台 App 窗口、手机和两侧流动卡片里的字;其余对话复用 tour.ui、handson、bots、window 的文案
stage: {
@@ -262,7 +262,7 @@ export const zh = {
},
},
kicker: {
- bots: "由你定义",
+ bots: "认识它们",
features: "能做什么",
models: "模型与价格",
data: "数据去向",
@@ -318,44 +318,42 @@ export const zh = {
},
bots: {
h2: "它是谁,你说了算。",
- h2dim: "没有固定的岗位,只有你写的人设。",
- lead: "同一个天天,可以是结对程序员,也可以是德语陪练。写几句话告诉它做什么、怎么说话,它就照着来;想法变了,改一句,下一条消息就生效。",
- tabsLabel: "比如这样写",
- looksLabel: "挑个角色",
- looksNote: "换个角色,人设一个字不变;名字也能改成你喜欢的。",
+ h2dim: "挑一个,或者全都养着。",
+ lead: "六个毛绒角色,只有名字和长相不同。它做什么、怎么说话,都由你写的人设决定。戳一下试试——它们会回嘴。",
+ tabsLabel: "选择角色",
cost: "≈ {amount} / 月",
- card: { org: "AnyModelBot", tag: "由你填写", hello: "你好,我叫", persona: "人设", model: "模型", spend: "花费", spendNote: "日常用量估算", blankModel: "从 {modelCount} 个模型里挑一个", blankSpend: "按量付费,没有月费" },
+ badge: { org: "AnyModelBot", staff: "正式员工", no: "工号", job: "岗位:你来定", persona: "人设", model: "模型", salary: "月薪", salaryNote: "日常用量估算", onDuty: "在岗" },
+ personaNote: "示例,可以写成任何样子",
modelNote: "示例模型,可随时更换",
- phoneNote: "以上都是示例,你的人设可以完全不一样。手机画面为示意:在微信或飞书里就是这样聊",
+ phoneNote: "示意:在微信或飞书里就是这样聊",
phoneInput: "发消息…",
phoneStatus: "在线 · 运行在你的电脑上",
phoneDay: "今天 21:08",
- swipeHint: "左右滑动换人设",
- where: { pc: "住在你的电脑里", phone: "在手机上,它就这样回你" },
+ swipeHint: "左右滑动换角色",
+ where: { pc: "住在你的电脑里", phone: "在手机上找它" },
link: "微信 / 飞书",
perks: [
{ title: "人设就是一段话", body: "不用配流程,用你自己的话写。模板只是起点,每个字都能改。" },
{ title: "各用各的模型和工作区", body: "每个机器人有自己的模型、文件夹和记忆,预算也能分开设。" },
{ title: "想建几个建几个", body: "一个写代码,一个管家务,一个陪你练外语,互不打扰。" },
],
- // 六个角色:名字取自最显眼的配饰,只有名字和长相不同。介绍只讲配饰,不写岗位:机器人做什么由人设决定
+ // 六个角色:名字取自最显眼的配饰(tag),只有名字和长相不同。介绍只讲配饰,不写岗位:机器人做什么由人设决定
looks: {
- blue: { name: "天天", alias: "Ping", motto: "头顶的天线天天在线,消息一到就接住。" },
- yellow: { name: "闪闪", alias: "Twinkle", motto: "头顶一颗小星星,一笑就闪闪发亮,还会脸红。" },
- green: { name: "芽芽", alias: "Sprout", motto: "头顶一株嫩芽,每天都长高一点。" },
- red: { name: "哒哒", alias: "Beat", motto: "耳机一戴,节拍就哒哒哒响个不停。" },
- purple: { name: "晶晶", alias: "Crystal", motto: "头顶结着一颗水晶,转起来亮晶晶。" },
- orange: { name: "飞飞", alias: "Pilot", motto: "飞行护目镜一戴,随时准备起飞。" },
+ blue: { name: "天天", alias: "Ping", tag: "天线", motto: "头顶的天线天天在线,消息一到就接住。" },
+ yellow: { name: "闪闪", alias: "Twinkle", tag: "星星", motto: "头顶一颗小星星,一笑就闪闪发亮,还会脸红。" },
+ green: { name: "芽芽", alias: "Sprout", tag: "嫩芽", motto: "头顶一株嫩芽,每天都长高一点。" },
+ red: { name: "哒哒", alias: "Beat", tag: "耳机", motto: "耳机一戴,节拍就哒哒哒响个不停。" },
+ purple: { name: "晶晶", alias: "Crystal", tag: "水晶", motto: "头顶结着一颗水晶,转起来亮晶晶。" },
+ orange: { name: "飞飞", alias: "Pilot", tag: "护目镜", motto: "飞行护目镜一戴,随时准备起飞。" },
},
- // 示例人设,和角色不做配对:tab 是这段人设的用途。首屏、"在哪都能用"、演示导览的界面示意也用这些对话
+ // 示例人设,不是角色的职责(对应关系在 lib/bots.ts 的 CHAR_PERSONA)。工牌、手机、首屏、"在哪都能用"、演示导览的对话都从这里取
personas: {
- pair: { tab: "写代码的搭档", persona: "你是我的结对程序员。先读代码再动手,改完告诉我怎么验证。别夸我,有问题直说。", user: "跑一下测试。", bot: "全部通过,用时 12 秒。不过第 48 行的判断永远为真,要我顺手改掉吗?" },
- expenses: { tab: "管报销", persona: "你帮我管报销。发票按月份归档到「报销」文件夹,金额对不上就问我,别自己猜。", user: "上个月的报销弄完了吗?", bot: "归档了 9 张,合计 ¥3,280。有一张抬头不对,放在「待确认」里了。" },
- secretary: { tab: "工作秘书", persona: "你是我的工作秘书。每天 17:00 把讨论整理成日报,记住我的习惯,说过的事别再问。", user: "今天的日报好了吗?", bot: "好了:3 个决定、2 个待办,已存入记忆。" },
- german: { tab: "德语陪练", persona: "你是我的德语陪练,只用德语和我聊。我说错了,在句末用中文纠正一处就好。", user: "Gestern ich bin ins Kino gegangen.", bot: "Schön! Welchen Film hast du gesehen?(语序:Gestern bin ich…)" },
- editor: { tab: "毒舌编辑", persona: "你是我的编辑,说话直接。看到空话就划掉,说清为什么。不要鼓励,只要改法。", user: "看看这句:我们致力于打造卓越的用户体验。", bot: "划掉。这句放在哪家公司都成立。你们到底做了什么?写那件事。" },
- home: { tab: "家里的小管家", persona: "你是我家的小管家。记住家人的生日和忌口,每周五提醒我买菜,语气轻松点。", user: "周末做点什么吃?", bot: "妈妈不吃香菜,小宇这周想吃鱼。清蒸鲈鱼配番茄炒蛋?要的话我列个菜单~" },
- blank: { tab: "你来写", persona: "写下你想让它成为的样子……", user: "", bot: "我还没有人设。你想让我成为谁?" },
+ pair: { persona: "你是我的结对程序员。别夸我,有问题直说。", user: "跑一下测试。", bot: "全部通过,用时 12 秒。不过第 48 行的判断永远为真,要我顺手改掉吗?" },
+ editor: { persona: "你是我的编辑,说话直接。看到空话就划掉。", user: "看看这句:我们致力于打造卓越的用户体验。", bot: "划掉。这句放在哪家公司都成立。你们到底做了什么?写那件事。" },
+ secretary: { persona: "你是我的工作秘书。每天 17:00 整理日报。", user: "今天的日报好了吗?", bot: "好了:3 个决定、2 个待办,已存入记忆。" },
+ german: { persona: "你是我的德语陪练,只用德语和我聊。", user: "Gestern ich bin ins Kino gegangen.", bot: "Schön! Welchen Film hast du gesehen?(语序:Gestern bin ich…)" },
+ home: { persona: "你是我家的小管家。记住生日和忌口。", user: "周末做点什么吃?", bot: "妈妈不吃香菜,小宇这周想吃鱼。清蒸鲈鱼配番茄炒蛋?要的话我列个菜单~" },
+ expenses: { persona: "你帮我管报销。金额对不上就问我,别猜。", user: "上个月的报销弄完了吗?", bot: "归档了 9 张,合计 ¥3,280。有一张抬头不对,放在「待确认」里了。" },
},
},
// 戳一戳、撸一撸、打瞌睡被吵醒时说的话(lib/eyes.ts);poke 按顺序轮流说。只逗长相和配饰,不提任何工作:机器人做什么由人设决定
diff --git a/site/src/lib/bots.ts b/site/src/lib/bots.ts
index 541dc8b..069b8e0 100644
--- a/site/src/lib/bots.ts
+++ b/site/src/lib/bots.ts
@@ -16,7 +16,7 @@ export const BOT_CHARS: Record<CharKey, CharGeo> = {
},
};
export const CHAR_KEYS = Object.keys(BOT_CHARS) as CharKey[];
-// 官网示例用的人设(文案在 i18n 的 bots.personas)。角色和人设互不绑定:产品里机器人的名字、人设、模型都是用户自己定的。
-export const PERSONA_KEYS = ["pair", "expenses", "secretary", "german", "editor", "home", "blank"] as const;
-export type PersonaKey = (typeof PERSONA_KEYS)[number];
+// 官网给每个角色配的示例人设(文案在 i18n 的 bots.personas)。只是示例,不是角色的职责:产品里机器人的名字、人设、模型都是用户自己定的。
+export const CHAR_PERSONA = { blue: "pair", yellow: "editor", green: "secretary", red: "german", purple: "home", orange: "expenses" } as const satisfies Record<CharKey, string>;
+export type PersonaKey = (typeof CHAR_PERSONA)[CharKey];
export const BOT_CHARS_HASH = "8d055ed19deb2468";
diff --git a/site/src/scripts/sections.ts b/site/src/scripts/sections.ts
index bfe1af1..0b3948f 100644
--- a/site/src/scripts/sections.ts
+++ b/site/src/scripts/sections.ts
@@ -175,25 +175,22 @@ const track = (n: string, p?: object) => { try { (window as any).umami?.track(n,
chips.forEach((c) => c.addEventListener("click", () => $$("[role=option]", demo).find((o) => o.dataset.model === c.dataset.orbitModel)?.click()));
})();
-// —— 由你定义:人设是 WAI-ARIA tabs,角色是单选,两根轴互不相干 ——
-// 换人设:名牌绕竖轴翻面、挂绳晃一下,人设逐字写出来,手机里再按这段人设回话;脸和名字不变。
-// 换角色:名牌上、手机里的脸和名字一起换,打个招呼,其余几张脸转头看它;人设一个字不动。
-// 鼠标拨过名牌它会晃(阻尼弹簧,转轴在挂绳顶端,写 --swing)。窄屏上一排人设可横滑,选中的滚到中间;舞台上左右滑动也能换人设。
+// —— 认识你的机器人:一排角色是 WAI-ARIA tabs ——
+// 换角色:工牌绕竖轴翻面换人、挂绳往换人的方向晃一下,证件照打招呼;在岗的那个低头看工牌,其余几个转头看它;
+// 手机里的回复先"正在输入"再逐字打出。鼠标拨过工牌它会晃(阻尼弹簧,转轴在挂绳顶端,写 --swing)。
+// 窄屏上一排角色可横滑,选中的滚到中间;舞台上左右滑动也能换角色。
(() => {
- const tabs = $$<HTMLButtonElement>("[data-persona-tabs] [role=tab]");
+ const tabs = $$<HTMLButtonElement>("[data-bot-tabs] [role=tab]");
const crew = $("[data-crew]");
if (!tabs.length || !crew) return;
const list = tabs[0].parentElement!;
const stage = $("[data-bot-stage]", crew);
const hang = $("[data-badge]", crew);
const card = $("[data-badge-card]", crew);
- const photo = $(".badge-card__photo", crew);
- const looks = $$<HTMLButtonElement>("[data-looks] [role=radio]", crew);
- const log = $(".phone__log", crew);
const faceOf = (el: Element | null | undefined) => el?.querySelector<HTMLElement>(".bot-face") ?? null;
- const bigFace = (k: string) => faceOf($(`.badge-card__photo [data-for-look="${k}"]`, crew));
+ const tabOf = (k: string) => tabs.find((t) => t.dataset.bot === k)!;
- // 名牌的摆:角度 a(度)、角速度 v(度/秒);劲度 70、阻尼 5,|a| ≤ 7°
+ // 工牌的摆:角度 a(度)、角速度 v(度/秒);劲度 70、阻尼 5,|a| ≤ 7°
let a = 0, v = 0, last = 0, raf = 0;
const step = (now: number) => {
const dt = Math.min(0.032, (now - last) / 1000);
@@ -211,7 +208,7 @@ const track = (n: string, p?: object) => { try { (window as any).umami?.track(n,
};
if (hang && !reduce) {
let lx = NaN;
- // 指针往右推,名牌下沿往右荡(CSS 里顺时针为正,所以取反)
+ // 指针往右推,工牌下沿往右荡(CSS 里顺时针为正,所以取反)
hang.addEventListener("pointermove", (e) => {
if (e.pointerType === "mouse" && !Number.isNaN(lx)) kick(Math.max(-24, Math.min(24, (lx - e.clientX) * 0.9)));
lx = e.clientX;
@@ -219,101 +216,78 @@ const track = (n: string, p?: object) => { try { (window as any).umami?.track(n,
hang.addEventListener("pointerleave", () => (lx = NaN));
}
- // 先写人设(总长约 0.9 秒),手机里显示"正在输入"的三个点,人设写完再逐字打出回答;连续切换时上一段直接补全
+ // 先显示"正在输入"的三个点,再逐字打出;连续切换时上一段直接补全
let token = 0;
- const fullText = (el: HTMLElement) => el.dataset.text || (el.dataset.text = el.textContent ?? "");
- const settle = () => $$<HTMLElement>("[data-text]", crew).forEach((el) => { el.textContent = el.dataset.text!; el.classList.remove("is-typing"); });
- const typeOut = async (el: HTMLElement, ms: number, me: number) => {
- const text = fullText(el);
+ const typeReply = async (view: HTMLElement) => {
+ const reply = $<HTMLElement>(".msg--bot", view);
+ if (!reply || reduce) return;
+ const me = ++token;
+ const text = reply.dataset.text || (reply.dataset.text = reply.textContent ?? "");
+ const done = () => { reply.textContent = text; reply.classList.remove("is-typing"); };
+ reply.textContent = "";
+ reply.classList.add("is-typing");
+ await wait(620);
for (let i = 1; i <= text.length; i++) {
- if (me !== token) return false;
- el.textContent = text.slice(0, i);
- await wait(ms);
+ if (me !== token) return done();
+ reply.textContent = text.slice(0, i);
+ await wait(26);
}
- el.classList.remove("is-typing");
- return me === token;
- };
- const write = async (p: string) => {
- const me = ++token;
- settle();
- if (reduce) return;
- const persona = $<HTMLElement>(`[data-panel="${p}"] [data-persona-text]`, crew);
- const reply = $<HTMLElement>(`.msg--bot[data-view="${p}"]`, crew);
- if (!persona || !reply) return;
- const words = fullText(persona).length;
- fullText(reply);
- persona.textContent = ""; persona.classList.add("is-typing");
- reply.textContent = ""; reply.classList.add("is-typing");
- if (!(await typeOut(persona, Math.max(8, Math.min(22, 900 / words)), me))) return;
- await wait(320);
- if (me === token) await typeOut(reply, 26, me);
+ done();
};
let flip = 0;
- const select = (p: string, focus = false, quiet = false) => {
- const prev = crew.dataset.persona ?? p;
+ const select = (k: string, focus = false, quiet = false) => {
+ const prev = crew.dataset.char ?? k;
tabs.forEach((t) => {
- const on = t.dataset.personaTab === p;
+ const on = t.dataset.bot === k;
t.setAttribute("aria-selected", String(on)); t.tabIndex = on ? 0 : -1;
if (on && focus) t.focus({ preventScroll: true });
if (on && list.scrollWidth > list.clientWidth) list.scrollTo({ left: t.offsetLeft - (list.clientWidth - t.offsetWidth) / 2, behavior: reduce ? "auto" : "smooth" });
});
- crew.dataset.persona = p;
+ crew.dataset.char = k;
- // 名牌翻面:转到侧面(看不见的那一刻)换内容,再转回来。脸和名字不换:人设和角色无关
+ // 工牌翻面:转到侧面(看不见的那一刻)换人,再转回来
const swap = () => {
- $$("[data-panel]", crew).forEach((el) => el.classList.toggle("is-off", el.dataset.panel !== p));
- $$("[data-view]", crew).forEach((el) => (el.hidden = el.dataset.view !== p));
- if (log && !reduce) { log.classList.remove("is-swap"); void log.offsetWidth; log.classList.add("is-swap"); }
- const f = bigFace(crew.dataset.char ?? "");
+ $$("[data-panel]", crew).forEach((p) => (p.hidden = p.dataset.panel !== k));
+ const f = faceOf($(`[data-panel="${k}"] .badge-card__photo`, crew));
if (f) playShot(f, "hello");
- write(p);
};
const me = ++flip;
- if (reduce || !card || prev === p) swap();
+ if (reduce || !card || prev === k) swap();
else {
card.classList.add("is-out");
setTimeout(() => { if (me === flip) { swap(); card.classList.remove("is-out"); } }, 170);
- const order = tabs.map((t) => t.dataset.personaTab);
- kick((order.indexOf(p) > order.indexOf(prev) ? -1 : 1) * 46);
+ kick((tabs.indexOf(tabOf(k)) > tabs.indexOf(tabOf(prev)) ? -1 : 1) * 46);
}
- if (!quiet) track("persona_select", { persona_id: p });
- };
- // 选中的那张脸看大头像,其余几张转头看它
- const gazeLooks = (k: string) => {
- const sel = faceOf(looks.find((b) => b.dataset.look === k));
- looks.forEach((b) => { const f = faceOf(b); if (f) gazeAt(f, b.dataset.look === k ? photo : sel); });
- };
- const pick = (k: string, focus = false) => {
- looks.forEach((b) => {
- const on = b.dataset.look === k;
- b.setAttribute("aria-checked", String(on)); b.tabIndex = on ? 0 : -1;
- if (on && focus) b.focus({ preventScroll: true });
+ // 在岗的低头看工牌,其余几个转头看它
+ const sel = faceOf(tabOf(k));
+ tabs.forEach((t) => { const f = faceOf(t); if (f) gazeAt(f, t.dataset.bot === k ? card : sel); });
+
+ $$("[data-phone]", crew).forEach((p) => {
+ if (p.hidden && p.dataset.phone !== k) return;
+ const reply = $<HTMLElement>(".msg--bot", p);
+ if (reply?.dataset.text) { reply.textContent = reply.dataset.text; reply.classList.remove("is-typing"); }
+ p.hidden = p.dataset.phone !== k;
+ if (p.hidden || reduce) return;
+ const log = $(".phone__log", p)!; log.classList.remove("is-swap"); void log.offsetWidth; log.classList.add("is-swap");
+ typeReply(p);
});
- crew.dataset.char = k;
- $$("[data-for-look]", crew).forEach((el) => (el.hidden = el.dataset.forLook !== k));
- $$("[data-look-id]", crew).forEach((el) => el.classList.toggle("is-off", el.dataset.lookId !== k));
- const f = bigFace(k);
- if (f) playShot(f, "hello");
- gazeLooks(k);
- track("look_select", { look_id: k });
+ if (!quiet) track("bot_select", { bot_id: k });
};
-
const current = () => Math.max(0, tabs.findIndex((t) => t.getAttribute("aria-selected") === "true"));
- // 第一次滚到名牌:打个招呼,把人设和回答写一遍(看名牌而不是整张舞台卡:窄屏上舞台卡比一屏高,永远到不了阈值)
+ // 第一次滚到工牌:当前角色打个招呼、把回复打一遍(看工牌而不是整张舞台卡:窄屏上舞台卡比一屏高,永远到不了阈值)
const intro = $(".crew__badge", crew);
if (intro) {
const io = new IntersectionObserver((es) => {
if (!es[0].isIntersecting) return;
io.disconnect();
- gazeLooks(crew.dataset.char ?? "");
- select(tabs[current()].dataset.personaTab!, false, true);
+ select(tabs[current()].dataset.bot!, false, true);
}, { threshold: 0.4 });
io.observe(intro);
}
- // 触屏横向滑过舞台换人设;纵向滚动交给浏览器(CSS 里 touch-action: pan-y)
+ // 触屏横向滑过舞台换角色;纵向滚动交给浏览器(CSS 里 touch-action: pan-y)
if (stage) {
let x0 = 0, y0 = 0, id = -1;
stage.addEventListener("pointerdown", (e) => { if (e.pointerType === "touch") { x0 = e.clientX; y0 = e.clientY; id = e.pointerId; } });
@@ -323,25 +297,16 @@ const track = (n: string, p?: object) => { try { (window as any).umami?.track(n,
id = -1;
const dx = e.clientX - x0, dy = e.clientY - y0;
if (Math.abs(dx) < 48 || Math.abs(dx) < Math.abs(dy) * 1.5) return;
- select(tabs[(current() + (dx < 0 ? 1 : -1) + tabs.length) % tabs.length].dataset.personaTab!);
+ select(tabs[(current() + (dx < 0 ? 1 : -1) + tabs.length) % tabs.length].dataset.bot!);
});
}
tabs.forEach((t, i) => {
- t.addEventListener("click", () => select(t.dataset.personaTab!));
+ t.addEventListener("click", () => select(t.dataset.bot!));
t.addEventListener("keydown", (e) => {
const k = { ArrowRight: i + 1, ArrowLeft: i - 1, Home: 0, End: tabs.length - 1 }[e.key];
if (k == null) return;
e.preventDefault();
- select(tabs[(k + tabs.length) % tabs.length].dataset.personaTab!, true);
- });
- });
- looks.forEach((b, i) => {
- b.addEventListener("click", () => pick(b.dataset.look!));
- b.addEventListener("keydown", (e) => {
- const k = { ArrowRight: i + 1, ArrowDown: i + 1, ArrowLeft: i - 1, ArrowUp: i - 1 }[e.key];
- if (k == null) return;
- e.preventDefault();
- pick(looks[(k + looks.length) % looks.length].dataset.look!, true);
+ select(tabs[(k + tabs.length) % tabs.length].dataset.bot!, true);
});
});
})();
diff --git a/site/src/sections/Bots.astro b/site/src/sections/Bots.astro
index fe07336..ce32b6e 100644
--- a/site/src/sections/Bots.astro
+++ b/site/src/sections/Bots.astro
@@ -1,49 +1,64 @@
---
-// 由你定义(§6.9):机器人没有固定的岗位。六个角色只有名字和长相不同,它做什么由你写的人设决定(和 App 的新建页 ui/screens/new-bot.js 一致)。
-// 章节头 → 一张大舞台卡:最上面一排人设示例(WAI-ARIA tabs);细线下垂下一根挂绳,挂着一张"你好,我叫……"的名牌:
-// 脸 → 六个角色 → 名字和一句介绍 → 人设 → 模型 → 花费;右边是手机,它按这段人设回话;中间一条电脑 ↔ 手机的连线(微信 / 飞书)。
-// 这一节要讲的就是"角色和人设是两根互不相干的轴":换人设,名牌翻面、手机里的回答跟着变,脸和名字不变;换角色,脸和名字变,人设一个字不动。
-// 示例人设(i18n 的 bots.personas)和角色不做配对;最后一个是白纸(blank),留给读者。
-// 不要再给某个角色写固定的岗位或擅长的事(用户 2026-11-01 明确纠正过);名字可以留,介绍只讲名字的由来和配饰(bots.looks)。
-// 名字:每个角色的中英文名都取自它最显眼的那件配饰。中文页名字旁边写着英文名(alias);英文页不写中文名(alias 留空,页面上不出现中文)。
-// 交互在 scripts/sections.ts。花费 = 计算器"日常"预设 × 默认线路价;点开去 /pricing 的计算器,并带上这个模型(计算器读 ?m=)。
+// 认识你的机器人(§6.9):给它们发工牌,但岗位由你定。六个角色只有名字和长相不同,它做什么由你写的人设决定(和 App 的新建页一致)。
+// 工牌上的人设、模型和手机里的对话都是示例(i18n 的 bots.personas,对应关系在 lib/bots.ts 的 CHAR_PERSONA)。
+// 不要给角色写固定的岗位或擅长的事(用户 2026-11-01 纠正过);这版工牌的版式也不要改(用户同一天要求退回这版,只调字段)。
+// 章节头 → 一张大舞台卡:最上面一排六个角色(WAI-ARIA tabs,选中的那个"在岗",其余几个转头看它);
+// 细线下垂下一根挂绳,挂着当前角色的工牌(证件照是会动、能戳的大头像,月薪 = 日常用量的月估算);
+// 右边是手机里的对话,中间一条电脑 ↔ 手机的连线(微信 / 飞书)。卡片下面三条手机端的好处。
+// 交互在 scripts/sections.ts:换角色时工牌翻面、挂绳晃一晃,鼠标拨一下工牌也会晃;手机里的回复逐字打出;
+// 舞台卡底光和挂绳随角色换色;窄屏上纵向排列,左右滑动舞台也能换角色。
+// 月薪 = 计算器"日常"预设 × 默认线路价;点开去 /pricing 的计算器,并带上这个模型(计算器读 ?m=)。
+// 名字:每个角色的中英文名都取自它最显眼的那件配饰(天天 Ping ← 天线、闪闪 Twinkle ← 星星、芽芽 Sprout ← 嫩芽、
+// 哒哒 Beat ← 耳机、晶晶 Crystal ← 水晶、飞飞 Pilot ← 飞行护目镜)。中文页工牌上名字旁边写着英文名(alias);英文页不写中文名(alias 留空,页面上不出现中文),
+// 座右铭讲名字的由来。证件照上不加任何标注(以前有一个指向配饰的小标签,用户 2026-10-31 要求去掉:没有意义)。
import BotFace from "../components/BotFace.astro";
import EyesMark from "../components/EyesMark.astro";
import Icon from "../components/Icon.astro";
import SectionHead from "../components/SectionHead.astro";
-import { buildVars, dict, fmt, href, type Lang } from "../i18n";
-import { CHAR_KEYS, PERSONA_KEYS, type CharKey, type PersonaKey } from "../lib/bots";
+import { dict, fmt, href, type Lang } from "../i18n";
+import { CHAR_KEYS, CHAR_PERSONA, type CharKey } from "../lib/bots";
import { personaModels } from "../data/pricing.config";
import { rowOf } from "../lib/site";
import { estimate, fmtMoney, PRESETS } from "../lib/calc";
interface Props { lang: Lang }
const { lang } = Astro.props;
const t = dict(lang);
-const v = buildVars(lang);
const b = t.bots;
-const c = b.card;
const L = b.looks;
+const talk = (k: CharKey) => b.personas[CHAR_PERSONA[k]];
+const modelOf = (k: CharKey) => personaModels[CHAR_PERSONA[k]];
const pricingPage = href(lang, "/pricing");
-const FIRST_LOOK: CharKey = "blue";
-const FIRST_PERSONA: PersonaKey = PERSONA_KEYS[0];
-const cost = (model: string) => {
- const r = rowOf(model);
+const cost = (k: CharKey) => {
+ const r = rowOf(modelOf(k));
return r ? fmtMoney(estimate(r, { group: r.defaultGroup, ...PRESETS.everyday }).monthly) : "—";
};
+// 工牌底部的条形码:按角色名算出来的伪随机竖条,纯装饰
+const barcode = (k: string) => {
+ let h = [...k].reduce((a, c) => (a * 31 + c.charCodeAt(0)) >>> 0, 7);
+ const bars: [number, number][] = [];
+ for (let x = 0; x < 118;) {
+ h = (Math.imul(h, 1103515245) + 12345) >>> 0;
+ const w = 1 + ((h >>> 16) % 3);
+ bars.push([x, w]);
+ x += w + 1 + ((h >>> 8) % 3);
+ }
+ return bars;
+};
const perkIcons = ["doc", "layers", "plus"] as const;
---
<section class="section" id="bots" aria-labelledby="bots-h2">
<div class="container">
<SectionHead n={2} label={t.kicker.bots} id="bots-h2" title={b.h2} dim={b.h2dim} lead={b.lead} />
- <div class="crew fx-rise" data-crew data-char={FIRST_LOOK} data-persona={FIRST_PERSONA} data-doze data-fx>
- <div class="personas">
- <span class="personas__label" id="personas-label">{b.tabsLabel}</span>
- <div class="personas__list" role="tablist" aria-labelledby="personas-label" data-persona-tabs>
- {PERSONA_KEYS.map((p) => (
- <button type="button" role="tab" class:list={["chip", { "chip--blank": p === "blank" }]} id={`pt-${p}`} aria-selected={p === FIRST_PERSONA ? "true" : "false"} aria-controls={`pp-${p}`} tabindex={p === FIRST_PERSONA ? 0 : -1} data-persona-tab={p}>{b.personas[p].tab}</button>
- ))}
- </div>
+ <div class="crew fx-rise" data-crew data-char={CHAR_KEYS[0]} data-doze data-fx>
+ <div class="lineup" role="tablist" aria-label={b.tabsLabel} data-bot-tabs>
+ {CHAR_KEYS.map((k, i) => (
+ <button type="button" role="tab" class="lineup__bot bot-hover" id={`bt-${k}`} aria-selected={i === 0 ? "true" : "false"} aria-controls={`bp-${k}`} tabindex={i === 0 ? 0 : -1} data-bot={k} style={`--c:var(--bot-${k}-glow)`}>
+ <BotFace char={k} size={64} lively />
+ <span class="lineup__name">{L[k].name}</span>
+ <span class="lineup__job" aria-hidden="true"><span>{L[k].tag}</span><span class="lineup__duty">{b.badge.onDuty}</span></span>
+ </button>
+ ))}
</div>
<div class="crew__stage" data-bot-stage>
@@ -53,52 +68,33 @@ const perkIcons = ["doc", "layers", "plus"] as const;
<span class="badge-hang__clip" aria-hidden="true"></span>
<div class="badge-card" data-badge-card>
<div class="badge-card__top" aria-hidden="true">
- <span class="badge-card__org"><EyesMark size={16} />{c.org}</span>
- <span class="badge-card__tag">{c.tag}</span>
- </div>
- <div class="badge-card__photo">
- {CHAR_KEYS.map((k) => <div data-for-look={k} hidden={k !== FIRST_LOOK}><BotFace char={k} size={128} lively pokeable /></div>)}
- </div>
- <div class="looks" role="radiogroup" aria-label={b.looksLabel} data-looks>
- {CHAR_KEYS.map((k) => (
- <button type="button" role="radio" class="looks__opt bot-hover" aria-checked={k === FIRST_LOOK ? "true" : "false"} aria-label={L[k].name} title={`${L[k].name} · ${L[k].motto}`} tabindex={k === FIRST_LOOK ? 0 : -1} data-look={k} style={`--c:var(--bot-${k}-glow)`}>
- <BotFace char={k} size={36} lively />
- </button>
- ))}
+ <span class="badge-card__org"><EyesMark size={16} />{b.badge.org}</span>
+ <span class="badge-card__staff">{b.badge.staff}</span>
</div>
- <p class="looks__note">{b.looksNote}</p>
- <div class="badge-card__ids">
- {CHAR_KEYS.map((k) => (
- <div class:list={["badge-card__id", { "is-off": k !== FIRST_LOOK }]} data-look-id={k}>
- <p class="eyebrow">{c.hello}</p>
+ {CHAR_KEYS.map((k, i) => (
+ <div class="badge-card__panel" role="tabpanel" id={`bp-${k}`} aria-labelledby={`bt-${k}`} hidden={i !== 0} data-panel={k} style={`--c:var(--bot-${k}-glow)`}>
+ <div class="badge-card__photo">
+ <BotFace char={k} size={176} lively pokeable />
+ </div>
+ <div class="badge-card__id">
+ <p class="badge-card__job eyebrow">{b.badge.job}</p>
<h3 class="badge-card__name subhead">{L[k].name}{L[k].alias && <> <span class="badge-card__alias" lang="en">{L[k].alias}</span></>}</h3>
<p class="badge-card__motto">{L[k].motto}</p>
</div>
- ))}
- </div>
- <div class="badge-card__panels">
- {PERSONA_KEYS.map((p) => {
- const blank = p === "blank";
- const model = p === "blank" ? "" : personaModels[p];
- return (
- <div class:list={["badge-card__panel", { "is-off": p !== FIRST_PERSONA, "is-blank": blank }]} role="tabpanel" id={`pp-${p}`} aria-labelledby={`pt-${p}`} data-panel={p}>
- <div class="badge-card__persona">
- <span>{c.persona}</span>
- <p data-persona-text>{b.personas[p].persona}</p>
- </div>
- <dl class="badge-card__fields">
- <div><dt>{c.model}</dt><dd>{blank ? fmt(c.blankModel, v) : <><span class="mono">{model}</span><small>{b.modelNote}</small></>}</dd></div>
- <div><dt>{c.spend}</dt><dd>
- {blank ? c.blankSpend : <>
- <a class="mono" href={`${pricingPage}?m=${model}#calc`} data-track="bot_cost_click" data-track-persona_id={p} data-track-model_id={model}>{fmt(b.cost, { amount: cost(model) })}<Icon name="arrow" size={14} /></a>
- <small>{c.spendNote}</small>
- </>}
- </dd></div>
- </dl>
- </div>
- );
- })}
- </div>
+ <dl class="badge-card__fields">
+ <div><dt>{b.badge.persona}</dt><dd><span>{talk(k).persona}</span><small>{b.personaNote}</small></dd></div>
+ <div><dt>{b.badge.model}</dt><dd><span class="mono">{modelOf(k)}</span><small>{b.modelNote}</small></dd></div>
+ <div><dt>{b.badge.salary}</dt><dd>
+ <a class="mono" href={`${pricingPage}?m=${modelOf(k)}#calc`} data-track="bot_cost_click" data-track-bot_id={k} data-track-model_id={modelOf(k)}>{fmt(b.cost, { amount: cost(k) })}<Icon name="arrow" size={14} /></a>
+ <small>{b.badge.salaryNote}</small>
+ </dd></div>
+ </dl>
+ <div class="badge-card__foot" aria-hidden="true">
+ <svg viewBox="0 0 120 22" preserveAspectRatio="none">{barcode(k).map(([x, w]) => <rect x={x} y="0" width={w} height="22" />)}</svg>
+ <span class="mono">{b.badge.no} · AMB-{String(i + 1).padStart(3, "0")}</span>
+ </div>
+ </div>
+ ))}
</div>
</div>
<p class="crew__where"><Icon name="devices" size={16} />{b.where.pc}</p>
@@ -120,22 +116,20 @@ const perkIcons = ["doc", "layers", "plus"] as const;
<rect x="40.5" y="1" width="19" height="10" rx="3" fill="none" stroke="currentColor" stroke-width="1" opacity=".45" /><rect x="42.5" y="3" width="13" height="6" rx="1.5" /><rect x="60.5" y="4" width="1.5" height="4" rx=".75" opacity=".45" />
</svg>
</div>
- <div class="phone__head">
- <Icon name="chevron" class="phone__back" size={18} />
- <div class="look-stack">{CHAR_KEYS.map((k) => <div data-for-look={k} hidden={k !== FIRST_LOOK}><BotFace char={k} size={36} /></div>)}</div>
- <span class="phone__who">
- {CHAR_KEYS.map((k) => <b data-for-look={k} hidden={k !== FIRST_LOOK}>{L[k].name}</b>)}
- <small>{b.phoneStatus}</small>
- </span>
- </div>
- <div class="phone__log">
- <span class="phone__day">{b.phoneDay}</span>
- {PERSONA_KEYS.map((p) => b.personas[p].user && <p class="msg msg--user" data-view={p} hidden={p !== FIRST_PERSONA}>{b.personas[p].user}</p>)}
- <div class="phone__reply">
- <div class="look-stack">{CHAR_KEYS.map((k) => <div data-for-look={k} hidden={k !== FIRST_LOOK}><BotFace char={k} size={26} /></div>)}</div>
- {PERSONA_KEYS.map((p) => <p class="msg msg--bot" data-view={p} hidden={p !== FIRST_PERSONA}>{b.personas[p].bot}</p>)}
+ {CHAR_KEYS.map((k, i) => (
+ <div class="phone__view" data-phone={k} hidden={i !== 0}>
+ <div class="phone__head">
+ <Icon name="chevron" class="phone__back" size={18} />
+ <BotFace char={k} size={36} />
+ <span class="phone__who"><b>{L[k].name}</b><small>{b.phoneStatus}</small></span>
+ </div>
+ <div class="phone__log">
+ <span class="phone__day">{b.phoneDay}</span>
+ <p class="msg msg--user">{talk(k).user}</p>
+ <div class="phone__reply"><BotFace char={k} size={26} /><p class="msg msg--bot">{talk(k).bot}</p></div>
+ </div>
</div>
- </div>
+ ))}
<div class="phone__input"><i class="phone__plus"></i><span>{b.phoneInput}</span><i class="phone__send"></i></div>
<i class="phone__home"></i>
</div>
diff --git a/site/src/sections/Devices.astro b/site/src/sections/Devices.astro
index efa1280..847197b 100644
--- a/site/src/sections/Devices.astro
+++ b/site/src/sections/Devices.astro
@@ -1,7 +1,7 @@
---
// 在哪都找得到它(§6.6):章节头 → 一幅产品合成图 → 一行四栏的入口 → 一个按需打开的"接入指南"。样式见 sections.css 的"6 在哪都找得到它"。
// 首页这一节只讲一件事:"同一个机器人、同一份记忆,在哪都能找到它"——不在页面上摆命令、令牌、步骤和二维码:
-// 合成图:浏览器(左后)、桌面 App(正中、最大)、手机里的聊天软件(右前)三块磨砂玻璃屏幕错落叠放,显示同一段和芽芽的对话,
+// 合成图:浏览器(左后)、桌面 App(正中、最大)、手机里的聊天软件(右前)三块磨砂玻璃屏幕错落叠放,显示同一段和天天的对话,
// 回答下面挂着同一条"记忆"标签(三处一模一样,用画面说"一份记忆")。屏幕照真实界面画:浏览器有标签页和地址栏,
// App 有侧栏(搜索、机器人列表)、浮起的主面板和玻璃输入框,手机有状态栏、聊天软件的顶栏和输入栏。整幅是示意,对读屏隐藏。
// 入口行:一条磨砂玻璃底座,桌面 / Docker / 浏览器 / 聊天软件四栏,每栏一句话 + 一个链接,栏与栏之间一根细线。
@@ -15,6 +15,7 @@ import Icon from "../components/Icon.astro";
import SectionHead from "../components/SectionHead.astro";
import { CHANNELS, type ChannelIcon } from "../data/channels";
import { dict, fmt, href, type Lang } from "../i18n";
+import { CHAR_PERSONA } from "../lib/bots";
import { releases } from "../lib/site";
interface Props { lang: Lang }
const { lang } = Astro.props;
@@ -22,9 +23,7 @@ const t = dict(lang);
const d = t.devices;
const it = d.items;
const th = d.thread;
-const P = t.bots.personas;
-const L = t.bots.looks;
-const main = L.green; // 这段对话的主角,和首屏第三幕是同一个机器人
+const blue = t.bots.looks.blue;
const chats = CHANNELS[lang];
// 入口行的小字只列已经能用的渠道;标着 soon 的(还没上线)只在接入指南里出现
const chatNames = chats.filter((c) => !c.soon).map((c) => c.title).join(" · ");
@@ -32,7 +31,7 @@ const chatNames = chats.filter((c) => !c.soon).map((c) => c.title).join(" · ");
const liveChat = chats.find((c) => !c.soon) ?? chats[0];
// 合成图里 App 窗口的数据:侧栏三行(时间是示意)、搜索与输入框的占位(借用 Hero 舞台的文案)、输入框里的模型
const st = t.hero.stage;
-const rows = [{ k: "green", p: "secretary", when: "17:02" }, { k: "blue", p: "pair", when: "16:40" }, { k: "orange", p: "expenses", when: "09:15" }] as const;
+const rows = [{ k: "blue", when: "17:02" }, { k: "orange", when: "16:40" }, { k: "green", when: "09:15" }] as const;
const MODEL = "claude-sonnet-5-5";
// 接入指南的标签:Docker、浏览器、各聊天渠道
type Guide = { id: string; kind: "docker" | "browser" | "chat"; icon: "server" | "browser" | ChannelIcon; title: string; soon?: string };
@@ -77,10 +76,10 @@ for (let y = 0; y < 29; y++) for (let x = 0; x < 29; x++) {
<span class="rs__url"><Icon name="lock" size={10} /><span>127.0.0.1<span class="rs__port">:3600</span></span></span>
</div>
<div class="rs__page">
- <span class="rs__rail">{(["green", "blue", "orange"] as const).map((k, i) => <span class:list={["rs__dot", { "is-on": i === 0 }]}><BotFace char={k} size={20} /></span>)}</span>
+ <span class="rs__rail">{(["blue", "orange", "green"] as const).map((k, i) => <span class:list={["rs__dot", { "is-on": i === 0 }]}><BotFace char={k} size={20} /></span>)}</span>
<div class="rs__thread">
<p class="rs__msg rs__msg--me">{th.user}</p>
- <div class="rs__reply"><BotFace char="green" size={22} /><p class="rs__msg">{th.bot}</p></div>
+ <div class="rs__reply"><BotFace char="blue" size={22} /><p class="rs__msg">{th.bot}</p></div>
<p class="rs__memo"><Icon name="layers" size={11} />{th.memoLabel} · {th.memo}</p>
</div>
</div>
@@ -95,19 +94,19 @@ for (let y = 0; y < 29; y++) for (let x = 0; x < 29; x++) {
{rows.map((r, i) => (
<span class:list={["rs__row", { "is-on": i === 0 }]}>
<BotFace char={r.k} size={28} />
- <span class="rs__row-body"><span class="rs__row-line"><b>{L[r.k].name}</b><small>{r.when}</small></span><span class="rs__snip">{P[r.p].bot}</span></span>
+ <span class="rs__row-body"><span class="rs__row-line"><b>{t.bots.looks[r.k].name}</b><small>{r.when}</small></span><span class="rs__snip">{t.bots.personas[CHAR_PERSONA[r.k]].bot}</span></span>
</span>
))}
</div>
<div class="rs__main">
- <div class="rs__head"><BotFace char="green" size={22} /><b>{main.name}</b><span class="rs__grow"></span><span class="rs__ib"><Icon name="layers" size={13} /></span></div>
+ <div class="rs__head"><BotFace char="blue" size={22} /><b>{blue.name}</b><span class="rs__grow"></span><span class="rs__ib"><Icon name="layers" size={13} /></span></div>
<div class="rs__thread">
<p class="rs__msg rs__msg--me">{th.user}</p>
- <div class="rs__reply"><BotFace char="green" size={26} /><p class="rs__msg">{th.bot}</p></div>
+ <div class="rs__reply"><BotFace char="blue" size={26} /><p class="rs__msg">{th.bot}</p></div>
<p class="rs__memo"><Icon name="layers" size={11} />{th.memoLabel} · {th.memo}</p>
</div>
<div class="rs__composer">
- <span class="rs__ph">{fmt(st.input, { name: main.name })}</span>
+ <span class="rs__ph">{fmt(st.input, { name: blue.name })}</span>
<span class="rs__tools"><span class="rs__ib rs__ib--ring"><Icon name="plus" size={11} /></span><span class="rs__chip mono">{MODEL}<Icon name="chevron" size={9} /></span><span class="rs__send"><Icon name="arrow" size={11} /></span></span>
</div>
</div>
@@ -117,7 +116,7 @@ for (let y = 0; y < 29; y++) for (let x = 0; x < 29; x++) {
<!-- 手机(右前):聊天软件里的同一段对话 -->
<div class="rs rs--phone">
<div class="rs__status"><b>9:41</b><span class="rs__sig"><i></i><i></i><i></i><i></i></span><span class="rs__bat"><i></i></span></div>
- <div class="rs__phone-head"><Icon name="chevron" size={14} class="rs__back" /><BotFace char="green" size={26} /><span><b>{main.name}</b><small>{liveChat?.title}</small></span></div>
+ <div class="rs__phone-head"><Icon name="chevron" size={14} class="rs__back" /><BotFace char="blue" size={26} /><span><b>{blue.name}</b><small>{liveChat?.title}</small></span></div>
<div class="rs__thread">
<span class="rs__day">{t.bots.phoneDay}</span>
<p class="rs__msg rs__msg--me">{th.user}</p>
diff --git a/site/src/sections/Handson.astro b/site/src/sections/Handson.astro
index 877a326..c6df919 100644
--- a/site/src/sections/Handson.astro
+++ b/site/src/sections/Handson.astro
@@ -1,9 +1,8 @@
---
// 能动手、会记住(§6.7、§6.8):章节头 → 一段"边滚边讲"的两章故事(参考 bevel.health 的分章叙事,版式和第 2 节的舞台卡同一套)。
// 桌面(≥1024 且屏幕够高、有 JS):左边两章文字依次滚过,右边一张吸顶的舞台卡跟着换场——
-// 第 1 章 动手:机器人骑在光标上干活,要你批准时冒"!";
-// 第 2 章 记忆:同一个机器人一行行往 MEMORY.md 里记,有人想塞密码就眼睛一叉、划掉。
-// 两章是同一张脸:能力不分角色,不要让某种长相看起来专管某件事。舞台底光跟着这张脸的颜色。
+// 第 1 章 动手:飞飞骑在光标上干活,要你批准时冒"!",舞台底光是飞飞的橙;
+// 第 2 章 记忆:芽芽一行行往 MEMORY.md 里记,有人想塞密码就眼睛一叉、划掉,底光换成芽芽的绿。
// 当前那章文字亮着、另一章淡下去;舞台卡顶上的两个小标签能点,点了滚到那一章(scripts/sections.ts 的 story)。
// 窄屏 / 无 JS:舞台卡拆开(display: contents),每章文字下面紧跟它自己的场景卡,从上往下读。
// 两个场景都是循环示意(时间线见 scripts/tour.ts 的 mountLoop),对读屏另有一句文字版。
@@ -27,7 +26,7 @@ const lineAt = (i: number) => String(500 + i * 650);
const secretAt = 500 + m.lines.length * 650 + 300;
const chapters = [
{ label: h.badge, tint: "var(--bot-orange-glow)" },
- { label: m.tag, tint: "var(--bot-orange-glow)" },
+ { label: m.tag, tint: "var(--bot-green-glow)" },
];
---
<section class="section" id="features" aria-labelledby="features-h2">
@@ -44,7 +43,7 @@ const chapters = [
<p class="story__note">{h.caveat}</p>
</article>
- <article class="story__ch" data-ch="1" aria-labelledby="memory-h2" style="--tint:var(--bot-orange-glow)">
+ <article class="story__ch" data-ch="1" aria-labelledby="memory-h2" style="--tint:var(--bot-green-glow)">
<p class="story__no"><span class="story__n mono">02</span><span class="badge badge--neutral">{m.tag}</span></p>
<h3 class="subhead" id="memory-h2">{m.h2}</h3>
<p class="story__lead">{m.layersLine}</p>
@@ -81,9 +80,9 @@ const chapters = [
: `${h.demoSteps.join(",")},${w.approvalTitle}:${h.approvalBody},${w.allow},${h.file}`}</p>
</div>
- <div class="story__scene" data-scene="1" style="--tint:var(--bot-orange-glow)">
+ <div class="story__scene" data-scene="1" style="--tint:var(--bot-green-glow)">
<figure class="memfile" data-loop="12000">
- <BotFace char="orange" size={64} lively class="memfile__bot"
+ <BotFace char="green" size={64} lively class="memfile__bot"
data-states={JSON.stringify([[0, "working"], [secretAt - 200, "idle"]])}
data-shots={JSON.stringify([[secretAt + 700, "error"], [secretAt + 3600, "done"]])}
data-say-at={String(secretAt + 900)} data-say={m.nope} />
@@ -97,7 +96,7 @@ const chapters = [
</div>
</div>
- <!-- 还有这些:上面两章没讲到的能力,版式沿用"由你定义"下面那排好处(home.css 的 crew-perks),三列两行 -->
+ <!-- 还有这些:上面两章没讲到的能力,版式沿用"认识它们"下面那排好处(home.css 的 crew-perks),三列两行 -->
<div class="caps" aria-labelledby="caps-h3">
<h3 class="subhead" id="caps-h3">{more.h3}</h3>
<ul class="crew-perks" role="list">
diff --git a/site/src/sections/Hero.astro b/site/src/sections/Hero.astro
index 03e6206..6b2d5cf 100644
--- a/site/src/sections/Hero.astro
+++ b/site/src/sections/Hero.astro
@@ -1,6 +1,6 @@
---
// 首页第一屏(动效参考 bevel.health,窗口照 App 的原生界面 ui/design 来)。四周留 8px 的圆角大卡片,从上到下——
-// 小胶囊(六个角色头像 + 一句话,链到"由你定义"那一节)→ 标题(逐字由虚变实升起;第一行渐变字,行尾蹲着会看你、能戳的天天;
+// 小胶囊(六个角色头像 + 一句话,链到"认识你的机器人")→ 标题(逐字由虚变实升起;第一行渐变字,行尾蹲着会看你、能戳的天天;
// 关键词品牌色 + 光晕,入场后一道亮光从左到右扫过)→ 一句说明 → 下载 / 演示 → 三条要点 → 舞台。
// 背景克制、全部静止:一层很淡的中性顶光(顶边淡入,不切出硬边)+ 顶部一层极淡的星空(小星点往下渐隐,少数几颗慢慢闪,偶尔划过一颗流星)→ 舞台后面一层极淡的机器人色 →
// 托住窗口的弧形"地平线"(一线淡亮边、正中稍亮)→ App 同款磨砂颗粒。颜色只在舞台换机器人时微微变(--hero-hue / --hz-glow),不用品牌黄绿。
diff --git a/site/src/styles/components.css b/site/src/styles/components.css
index 2e6813f..edf6d5f 100644
--- a/site/src/styles/components.css
+++ b/site/src/styles/components.css
@@ -97,7 +97,7 @@
[data-theme="light"] .card { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); }
[data-theme="light"] :is(.card--hover:hover, .card--hover:focus-within) { box-shadow: var(--glass-ring), inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 60%), var(--card-shadow); }
@media (max-width: 767px) { .card { padding: 20px; } }
- /* 小标签(价格卡标签、章节头的"编号 / 名称"、名牌上的"你好,我叫")全站只有这一种:英文等宽大写,中文无衬线、不大写 */
+ /* 小标签(价格卡标签、章节头的"编号 / 名称"、工牌上的"岗位:你来定")全站只有这一种:英文等宽大写,中文无衬线、不大写 */
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
:lang(zh) .eyebrow { font-family: var(--font-sans); font-size: var(--fs-eyebrow-zh); letter-spacing: .04em; text-transform: none; }
@@ -115,7 +115,7 @@
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
:lang(zh) .h2 { font-size: var(--fs-h2-zh); line-height: 1.25; letter-spacing: 0; }
.h2__dim { color: var(--text-2); }
- /* 块标题:章节里的一块内容(功能卡、价格概览、名牌上的名字) */
+ /* 块标题:章节里的一块内容(功能卡、价格概览、工牌上的名字) */
.subhead { font-size: var(--fs-title); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }
:lang(zh) .subhead { font-size: var(--fs-title-zh); line-height: 1.3; letter-spacing: 0; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
diff --git a/site/src/styles/home.css b/site/src/styles/home.css
index a75286e..91ffd57 100644
--- a/site/src/styles/home.css
+++ b/site/src/styles/home.css
@@ -2,7 +2,7 @@
/* 首页(views/Home.astro)的版式,按页面从上到下排列。演示导览(tour.css)也只在首页,复用这里的窗口、聊天和手机 mock。
断点:sm <768 / md 768–1023 / lg ≥1024 */
-/* "由你定义"舞台的底光、挂绳颜色:注册成 <color> 才能在换角色时渐变过去 */
+/* "认识你的机器人"舞台的底光、挂绳颜色:注册成 <color> 才能在换角色时渐变过去 */
@property --stage-glow { syntax: "<color>"; inherits: true; initial-value: transparent; }
/* Hero:地平线上方光晕的颜色、App 窗口环境光的色相、背景整体的色相(极光、眼睛、光点、浅色下的关键词),换幕时渐变过去 */
@property --hz-glow { syntax: "<color>"; inherits: true; initial-value: #2a9dff; }
@@ -15,7 +15,7 @@
/* 中文页面里,等宽字只留给模型 ID、命令、路径、文件名和数字;下面这些写的是中文句子,英文版才用等宽 */
:lang(zh) :is(.steps-card, .desk__step, .crew__wire-label, .flow__wire-label, .memfile__refused) { font-family: var(--font-sans); }
- /* 舞台卡:和"由你定义"的 .crew 同一套——深底、一圈细线、大圆角,底光用这一块主角机器人的颜色
+ /* 舞台卡:和"认识机器人"的 .crew 同一套——深底、一圈细线、大圆角,底光用这一块主角机器人的颜色
(--stage-glow 写在标签上:动手橙、记忆绿、模型紫、数据去向绿)。UI 强调色仍是品牌黄绿。 */
.stage {
--stage-glow: transparent; --glow-at: 78% 100%; --glow-mix: 14%;
@@ -201,7 +201,7 @@
[data-theme="light"] .hero__horizon::before { box-shadow: inset 0 1px 0 var(--hero-rim), inset 0 4px 12px -4px color-mix(in srgb, var(--hz-glow) 14%, transparent); }
.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
- /* 小胶囊:六个角色叠成一排 + 一句话 + 箭头,链到"由你定义";悬停时角色散开、箭头往前探 */
+ /* 小胶囊:六个角色叠成一排 + 一句话 + 箭头,链到"认识你的机器人";悬停时角色散开、箭头往前探 */
.hero__eyebrow {
display: inline-flex; align-items: center; gap: 10px; height: 36px; margin-bottom: var(--space-6); padding: 0 14px 0 5px;
border-radius: var(--r-btn); background: var(--grain), var(--glass); color: var(--text); box-shadow: var(--glass-ring);
@@ -602,9 +602,9 @@
.composer i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--signal-bg); }
.composer i::before { content: ""; width: 10px; height: 10px; border-left: 2px solid var(--signal-fg); border-top: 2px solid var(--signal-fg); transform: translateY(2px) rotate(45deg); }
- /* —— 手机 mock(由你定义、演示导览) ——
+ /* —— 手机 mock(认识机器人、演示导览) ——
外框是一圈带金属光泽的边(深浅主题各一套),屏幕从上到下:状态栏 → 对话顶栏 → 消息 → 输入框 → 底部横条。
- 状态栏、侧键、头像回复、加号 / 发送键和底部横条只在 .phone--full(由你定义)里有;演示导览的手机只有顶栏、消息和输入框。 */
+ 状态栏、侧键、头像回复、加号 / 发送键和底部横条只在 .phone--full(认识机器人)里有;演示导览的手机只有顶栏、消息和输入框。 */
.phone {
--phone-frame: linear-gradient(150deg, #3a3c3f, #161717 36%, #0f1010 64%, #2c2d30);
--phone-key: #26272a; --phone-bg: #0b0c0b; --phone-bubble: #1a1b1a; --phone-bar: rgba(11, 12, 11, .8);
@@ -623,6 +623,8 @@
.phone--full::before { left: -3px; top: 21%; height: 10%; border-radius: 2px 0 0 2px; }
.phone--full::after { right: -3px; top: 28%; height: 15%; border-radius: 0 2px 2px 0; }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 38px; background: var(--phone-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
+ .phone__view { display: contents; }
+ .phone__view[hidden] { display: none; }
.phone__status { position: relative; display: flex; flex: none; align-items: center; justify-content: space-between; height: 46px; padding: 4px 24px 0 32px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone__island { position: absolute; left: 50%; top: 11px; width: 92px; height: 26px; border-radius: 13px; background: #000; translate: -50% 0; }
.phone__sys { width: 58px; height: 11px; }
@@ -658,13 +660,14 @@
html.js .phone__log.is-swap { animation: fade-swap var(--dur-base) var(--ease-out); }
@keyframes fade-swap { from { opacity: 0; transform: translateY(6px); } }
- /* —— 2 由你定义:机器人没有预设的岗位,名牌上都是你填的 ——
- 舞台卡从上到下:一排人设示例 → 细线 → 细线上垂下挂绳,挂着名牌(脸 → 六个角色 → 名字和介绍 → 人设 → 模型 · 花费)| 连线 | 手机。
- 挂绳、底光都用当前角色的颜色(--stage-glow 在文件开头注册成 <color>,换角色时渐变过去);UI 强调色仍是品牌黄绿。
- 名牌的晃动角度 --swing 由 scripts/sections.ts 的弹簧写入,转轴在挂绳顶端。 */
+ /* —— 2 认识你的机器人:发工牌,但岗位由你定 ——
+ 舞台卡从上到下:一排六个角色(选中的头顶打一束角色色的光、名字下面写"在岗",其余几个转头看它)→ 细线 →
+ 细线上垂下挂绳,挂着工牌(证件照 → "岗位:你来定" / 名字 / 一句介绍 → 人设 · 模型 · 月薪 → 条形码和工号)| 连线 | 手机。
+ 挂绳、底光、聚光灯都用角色色(--stage-glow 在文件开头注册成 <color>,换角色时渐变过去);UI 强调色仍是品牌黄绿。
+ 工牌的晃动角度 --swing 由 scripts/sections.ts 的弹簧写入,转轴在挂绳顶端。 */
.crew {
--stage-glow: var(--bot-blue-glow); --strap-h: clamp(52px, 6vw, 84px);
- --photo-mix: 34%; /* 脸背后的底光:浅色下收一档 */
+ --beam-mix: 30%; --photo-mix: 34%; --dot-glow: 70%; /* 角色色的聚光灯、证件照底光、职位圆点的光晕:浅色下都收一档 */
--badge-bg: #121412; --badge-photo: #0d0e0d; --badge-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 70px -34px rgba(0, 0, 0, .85), 0 16px 30px -18px rgba(0, 0, 0, .6);
position: relative; isolation: isolate; overflow: clip;
display: grid; padding: 0 var(--card-pad) clamp(24px, 3vw, 36px); border-radius: var(--r-banner);
@@ -676,10 +679,10 @@
transition: --stage-glow .7s var(--ease-out);
}
[data-theme="light"] .crew {
- /* 角色色(尤其芽芽 #2ee88a、闪闪 #ffc21a)在浅底上饱和度太高:底光减淡 */
- --photo-mix: 20%;
+ /* 角色色(尤其芽芽 #2ee88a、闪闪 #ffc21a)在浅底上饱和度太高:光束、底光减淡,圆点不再发光 */
+ --beam-mix: 18%; --photo-mix: 20%; --dot-glow: 0%;
--badge-bg: #ffffff; --badge-photo: #f4f5f7; --badge-shadow: 0 0 0 1px rgba(17, 24, 39, .07), 0 36px 64px -36px rgba(17, 24, 39, .22), 0 12px 24px -16px rgba(17, 24, 39, .1);
- /* 舞台底不铺角色色(当前角色由挂绳和脸背后的底光表示),和其他舞台卡一样是半透明的白 */
+ /* 舞台底不铺角色色(选中谁由头顶那束光和挂绳的颜色表示),和其他舞台卡一样是半透明的白 */
background: var(--grain), radial-gradient(46% 42% at 27% 60%, rgba(255, 255, 255, .9), transparent 76%), linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));
box-shadow: var(--glass-ring), var(--card-shadow);
}
@@ -689,15 +692,32 @@
.crew[data-char="purple"] { --stage-glow: var(--bot-purple-glow); }
.crew[data-char="orange"] { --stage-glow: var(--bot-orange-glow); }
- /* 一排人设示例:站在细线上,挂绳从这条线垂下去;白纸那一个用虚线框 */
- .personas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-inline: calc(-1 * var(--card-pad)); padding: clamp(18px, 2.2vw, 26px) var(--card-pad); border-bottom: 1px solid var(--line); }
- .personas__label { flex: none; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
- .personas__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
- .chip--blank { padding-inline: 13px; border: 1px dashed var(--line-strong); background: none; box-shadow: none; }
- .chip--blank:hover { background: var(--hover); }
- .chip--blank[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent-fg), transparent 40%); background: var(--chip-on-bg); }
+ /* 一排角色:等宽六列,站在细线上;选中的往上一跳、头顶一束光、线上一道黄绿短线 */
+ .lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-inline: calc(-1 * var(--card-pad)); padding: clamp(20px, 2.4vw, 28px) var(--card-pad) 0; border-bottom: 1px solid var(--line); }
+ .lineup__bot { position: relative; display: grid; justify-items: center; padding: 4px 4px 18px; border-radius: 18px 18px 0 0; text-align: center; color: var(--text-2); }
+ .lineup__bot::before {
+ content: ""; position: absolute; inset: -40px 6% 0; z-index: -1; pointer-events: none; opacity: 0;
+ clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
+ background: linear-gradient(color-mix(in srgb, var(--c) var(--beam-mix), transparent), color-mix(in srgb, var(--c) 6%, transparent) 70%, transparent);
+ transition: opacity var(--dur-slow) var(--ease-out);
+ }
+ .lineup__bot::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 28px; height: 2px; border-radius: 1px; background: var(--accent-fg); translate: -50% 0; scale: 0 1; transition: scale var(--dur-base) var(--ease-out); }
+ .lineup__bot .bot-face { margin-bottom: 10px; transition: translate .45s var(--ease-out); }
+ .lineup__name { font-size: var(--fs-body-sm); font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap; }
+ .lineup__job { display: grid; margin-top: 4px; font-size: var(--fs-eyebrow); line-height: 1.4; }
+ .lineup__job > span { grid-area: 1 / 1; transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
+ .lineup__duty { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--accent-fg); font-weight: 500; opacity: 0; translate: 0 4px; }
+ .lineup__duty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--accent-wash); }
+ .lineup__bot:hover .lineup__name { color: var(--text); }
+ .lineup__bot:hover .bot-face { translate: 0 -3px; }
+ .lineup__bot[aria-selected="true"]::before { opacity: 1; }
+ .lineup__bot[aria-selected="true"]::after { scale: 1 1; }
+ .lineup__bot[aria-selected="true"] .bot-face { translate: 0 -8px; }
+ .lineup__bot[aria-selected="true"] .lineup__job > :first-child { opacity: 0; translate: 0 -4px; }
+ .lineup__bot[aria-selected="true"] .lineup__duty { opacity: 1; translate: 0 0; }
+ .lineup__bot:focus-visible { outline-offset: -2px; border-radius: 18px; }
- /* 舞台:名牌 | 连线 | 手机 */
+ /* 舞台:工牌 | 连线 | 手机 */
.crew__stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 10vw, 140px) minmax(0, 1fr); align-items: start; touch-action: pan-y pinch-zoom; }
.crew__badge, .crew__phone { display: grid; justify-items: center; }
.crew__phone { padding-top: calc(var(--strap-h) - 6px); }
@@ -706,7 +726,7 @@
.crew__note { margin-top: 20px; text-align: center; }
.crew__swipe { display: none; }
- /* 挂绳 + 夹子 + 名牌;整串绕挂绳顶端转(--swing),名牌本身换人设时绕竖轴翻面 */
+ /* 挂绳 + 夹子 + 工牌;整串绕挂绳顶端转(--swing),工牌本身换人时绕竖轴翻面 */
.badge-hang { --swing: 0deg; position: relative; display: grid; width: min(340px, 100%); padding-top: var(--strap-h); transform-origin: 50% 0; rotate: var(--swing); perspective: 1600px; }
.badge-hang__strap {
position: absolute; top: 0; left: 50%; z-index: 1; width: 18px; height: calc(var(--strap-h) + 4px); translate: -50% 0;
@@ -722,7 +742,6 @@
}
.badge-hang__clip::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 4px; margin-left: -6px; border-radius: 2px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3); }
.badge-card {
- --c: var(--stage-glow);
position: relative; display: grid; border-radius: 22px; background: var(--badge-bg); box-shadow: var(--badge-shadow);
transition: transform .22s var(--ease-out);
}
@@ -730,11 +749,12 @@
.badge-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-2); }
.badge-card__top::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 7px; margin-left: -22px; border-radius: 4px; background: var(--bg-feature); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--text) 22%, transparent); }
.badge-card__org { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
- .badge-card__tag { padding: 3px 9px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); text-transform: uppercase; }
- :lang(zh) .badge-card__tag { font-family: var(--font-sans); letter-spacing: .04em; }
- /* 脸:当前角色色的底光 + 一层细横纹,头像落在下沿 */
+ .badge-card__staff { padding: 3px 9px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--c, var(--stage-glow)) 16%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage-glow) 40%, transparent); text-transform: uppercase; }
+ :lang(zh) .badge-card__staff { font-family: var(--font-sans); letter-spacing: .04em; }
+ .badge-card__panel { display: grid; }
+ /* 证件照:角色色的底光 + 一层细横纹,头像落在下沿 */
.badge-card__photo {
- position: relative; display: grid; place-items: end center; height: 150px; margin: 0 14px; border-radius: 14px;
+ position: relative; display: grid; place-items: end center; height: 200px; margin: 0 14px; border-radius: 14px;
background:
radial-gradient(64% 70% at 50% 100%, color-mix(in srgb, var(--c) var(--photo-mix), transparent), transparent 72%),
repeating-linear-gradient(180deg, transparent 0 7px, color-mix(in srgb, var(--text) 3.5%, transparent) 7px 8px),
@@ -742,34 +762,17 @@
box-shadow: inset 0 0 0 1px var(--line);
}
.badge-card__photo .bot-face { margin-bottom: 4px; }
- /* 六个角色:和 App 新建页的头像选择器一样,一排单选 */
- .looks { display: flex; justify-content: center; gap: 2px; padding: 10px 14px 0; }
- .looks__opt { flex: 0 1 44px; display: grid; place-items: center; min-width: 0; height: 44px; border-radius: 12px; transition: background var(--dur-fast), box-shadow var(--dur-fast); }
- .looks__opt:hover { background: var(--hover); }
- .looks__opt[aria-checked="true"] { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
- .looks__note { padding: 6px 20px 0; color: var(--text-2); font-size: 12px; line-height: 1.45; text-align: center; }
- /* 所有人设叠在同一格里,名牌按最长的那段定高,换人设时不跳 */
- .badge-card__panels { display: grid; }
- .badge-card__panel { grid-area: 1 / 1; display: grid; align-content: start; }
- .badge-card__panel.is-off { visibility: hidden; }
- /* 名字和介绍跟着角色走,同样叠在一格里:介绍有长有短,换角色时下面的人设不跳 */
- .badge-card__ids { display: grid; }
- .badge-card__id { grid-area: 1 / 1; display: grid; align-content: start; gap: 2px; padding: 12px 22px 0; }
- .badge-card__id.is-off { visibility: hidden; }
+ .badge-card__id { display: grid; gap: 6px; padding: 20px 22px 0; }
+ /* 职位用全站统一的 .eyebrow,名字用块标题(.subhead)那一档 */
+ .badge-card__job { display: inline-flex; align-items: center; gap: 8px; }
+ .badge-card__job::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) var(--dot-glow), transparent); }
.badge-card__name { line-height: 1.1; }
:lang(zh) .badge-card__name { line-height: 1.2; }
- /* 中文页名字旁边写着英文名:小一号、次要色,和名字同一种无衬线 */
+ .badge-card__motto { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.55; }
+ /* 名字旁边写着另一种语言的名字(中文页是英文名、英文页是中文名):小一号、次要色,和名字同一种无衬线 */
.badge-card__alias { margin-left: .2em; color: var(--text-2); font-size: .5em; font-weight: 500; letter-spacing: .02em; vertical-align: .22em; }
- .badge-card__motto { margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
- /* 人设:一块像输入框的底,里面是你写的那段话 */
- .badge-card__persona { display: grid; gap: 3px; margin: 10px 22px 0; padding: 9px 12px 10px; border-radius: 10px; background: var(--badge-photo); box-shadow: inset 0 0 0 1px var(--line); }
- .badge-card__persona > span { color: var(--text-2); font-size: 11.5px; }
- .badge-card__persona p { font-size: 13.5px; line-height: 1.55; }
- .badge-card__persona p.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: bot-caret 1s steps(1) infinite; }
- .is-blank .badge-card__persona p { color: var(--text-2); }
- .badge-card__fields { display: grid; margin: 8px 22px 16px; }
- .badge-card__fields > div { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 14px; line-height: 1.45; }
- .badge-card__fields > div + div { border-top: 1px dashed var(--line); }
+ .badge-card__fields { display: grid; margin: 16px 22px 0; border-top: 1px solid var(--line); }
+ .badge-card__fields > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.45; }
.badge-card__fields dt { color: var(--text-2); font-size: 12.5px; padding-top: 1px; }
.badge-card__fields dd { display: grid; justify-items: start; gap: 1px; margin: 0; min-width: 0; }
.badge-card__fields dd .mono { font-size: 13px; overflow-wrap: anywhere; }
@@ -777,9 +780,11 @@
.badge-card__fields a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.badge-card__fields a .icon { transition: translate var(--dur-fast) var(--ease-out); }
.badge-card__fields a:hover .icon { translate: 3px 0; }
- html.js .badge-card__id:not(.is-off) > * { animation: badge-in .5s var(--ease-out) both; }
- html.js .badge-card__id:not(.is-off) > :nth-child(2) { animation-delay: 60ms; }
- html.js .badge-card__id:not(.is-off) > :nth-child(3) { animation-delay: 120ms; }
+ .badge-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 20px; color: var(--text-2); font-size: 11px; letter-spacing: .06em; }
+ .badge-card__foot svg { width: 110px; height: 22px; fill: currentColor; opacity: .75; }
+ html.js .badge-card__panel:not([hidden]) .badge-card__id > * { animation: badge-in .5s var(--ease-out) both; }
+ html.js .badge-card__panel:not([hidden]) .badge-card__id > :nth-child(2) { animation-delay: 60ms; }
+ html.js .badge-card__panel:not([hidden]) .badge-card__id > :nth-child(3) { animation-delay: 120ms; }
@keyframes badge-in { from { opacity: 0; translate: 0 6px; } }
/* 电脑 ↔ 手机:一条虚线,一个光点来回跑,下面写走哪个渠道 */
@@ -801,9 +806,8 @@
.phone__log .msg--bot.is-typing:not(:empty)::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: bot-caret 1s steps(1) infinite; }
@keyframes bot-typing { 50% { opacity: .35; } }
@keyframes bot-caret { 50% { opacity: 0; } }
- .look-stack { flex: none; display: grid; }
- /* 卡片下面三条好处("还有这些"也用这个版式):细线起头,图标 → 短标题 → 一行说明 */
+ /* 卡片下面三条手机端的好处:细线起头,图标 → 短标题 → 一行说明 */
.crew-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--grid-gap); margin-top: var(--stack-head); }
.crew-perks li { display: grid; align-content: start; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.crew-perks__ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-fg); }
@@ -833,16 +837,17 @@
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .crew__wire i { left: 50%; top: 50%; } }
@media (max-width: 767px) {
.crew { --strap-h: 44px; padding: 0 16px 22px; border-radius: var(--r-feature); }
- .personas { flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin-inline: -16px; padding: 16px 0; }
- .personas__label { padding-inline: 16px; }
- .personas__list { flex-wrap: nowrap; justify-content: flex-start; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
- .personas__list::-webkit-scrollbar { display: none; }
- .personas__list .chip { flex: none; }
- .badge-card__photo { height: 136px; }
- .badge-card__photo .bot-face { --s: 112px !important; }
- .badge-card__id { padding: 12px 18px 0; }
- .badge-card__persona { margin-inline: 18px; }
+ .lineup { grid-template-columns: repeat(6, minmax(52px, 1fr)); margin-inline: -16px; padding: 18px 10px 0; overflow-x: auto; scrollbar-width: none; }
+ .lineup::-webkit-scrollbar { display: none; }
+ .lineup__bot { padding: 2px 2px 14px; }
+ .lineup__bot .bot-face { --s: 44px !important; margin-bottom: 8px; }
+ .lineup__name { font-size: var(--fs-xs); }
+ .lineup__job { display: none; }
+ .badge-card__photo { height: 176px; }
+ .badge-card__photo .bot-face { --s: 152px !important; }
+ .badge-card__id { padding: 18px 18px 0; }
.badge-card__fields { margin-inline: 18px; }
+ .badge-card__foot { padding: 14px 18px 18px; }
.phone--full { width: min(300px, 100%); }
}
diff --git a/site/src/styles/sections.css b/site/src/styles/sections.css
index 7ef2c8b..b3bc4af 100644
--- a/site/src/styles/sections.css
+++ b/site/src/styles/sections.css
@@ -1,6 +1,6 @@
@layer tokens, base, components, app, utilities;
/* 首页第 3–8 节的版式与动效:能动手 / 会记住、模型与价格、数据去向、在哪都能用、常见问题、收尾(views/Home.astro 引入)。
- 视觉语言和第 2 节"由你定义"同一套:深底舞台卡(.stage,在 home.css)+ 一圈细线 + 大圆角,底光用这一节主持机器人的颜色
+ 视觉语言和第 2 节"认识你的机器人"同一套:深底舞台卡(.stage,在 home.css)+ 一圈细线 + 大圆角,底光用这一节主持机器人的颜色
(--stage-glow / --tint:动手橙、记忆绿、模型紫、数据去向绿、多端蓝、问答黄)。
叙事参考 bevel.health:短标题 + 一句话,然后一块会动的大示意——分章边滚边讲、设备上叠浮层、收尾和首屏呼应。
品牌黄绿只留给主操作(下载、获取 Key);其余强调用机器人的颜色,而且压得很淡。
@@ -343,7 +343,7 @@
玻璃才磨得出层次。屏幕里面再分层:App 的主面板、标签页、地址栏、输入框是更实一点的 --glass-strong。
底下一团静止的中性落影把三块屏幕放在同一张"桌面"上。不铺角色色的大面,只有记忆标签染一点天天的蓝。
界面照真实的样子画:浏览器有标签页(App 标志 + 名称)、前进后退和本机地址栏、左边一列机器人头像;
- App 有毛玻璃侧栏(红绿灯、新建、搜索、三行机器人:头像 + 名称 + 时间 + 岗位)、浮起的主面板(顶栏、对话、玻璃输入框:
+ App 有毛玻璃侧栏(红绿灯、新建、搜索、三行机器人:头像 + 名称 + 时间 + 最近一条消息)、浮起的主面板(顶栏、对话、玻璃输入框:
加号、模型胶囊、发送);手机有灵动岛、状态栏(时间、信号、电量)、聊天软件的顶栏(返回、头像、名称 + 渠道)、日期、输入栏和底部横条。
"我"的气泡是实心深色(浅色下是中性深灰,不用偏绿的墨色),发送键同色;黄绿不出现。
第一次滚进视口时三块屏幕依次升起,随后回答出现,最后三处的记忆标签同时亮起(内容的出现,不循环)。
@@ -357,18 +357,20 @@
--span: calc(100% - var(--phone-w) + var(--overlap)); /* 浏览器左边到 App 右边 */
position: relative; isolation: isolate; height: clamp(480px, 42vw, 520px);
}
+ /* 每团光都要在盒子里收完(圆心 ± 半径 × 70% 不能超出 0–100%),否则盒子边会把它切出一条直线。
+ 顶上那团白光的圆心放在舞台顶边以下:既不被切,也不会盖到章节头的说明文字。 */
.reach__lights {
position: absolute; inset: -80px -60px -40px; z-index: -1; pointer-events: none;
background:
radial-gradient(36% 46% at 34% 44%, color-mix(in srgb, var(--bot-blue-glow) calc(34% * var(--glow-k)), transparent), transparent 70%),
radial-gradient(30% 42% at 74% 58%, color-mix(in srgb, var(--bot-purple-glow) calc(24% * var(--glow-k)), transparent), transparent 70%),
- radial-gradient(28% 32% at 56% 12%, rgba(255, 255, 255, .07), transparent 70%);
+ radial-gradient(28% 30% at 56% 22%, rgba(255, 255, 255, .07), transparent 70%);
}
[data-theme="light"] .reach__lights {
background:
radial-gradient(38% 48% at 34% 44%, rgba(100, 116, 139, .18), transparent 70%),
radial-gradient(32% 44% at 74% 58%, rgba(148, 163, 184, .22), transparent 70%),
- radial-gradient(30% 34% at 56% 12%, rgba(255, 255, 255, .95), transparent 70%);
+ radial-gradient(30% 31% at 56% 22%, rgba(255, 255, 255, .95), transparent 70%);
}
.reach__stage::after {
content: ""; position: absolute; left: 8%; right: 8%; bottom: -12px; z-index: -1; height: 48px; border-radius: 50%; pointer-events: none;
diff --git a/site/src/views/Home.astro b/site/src/views/Home.astro
index a401f66..700aa95 100644
--- a/site/src/views/Home.astro
+++ b/site/src/views/Home.astro
@@ -1,5 +1,5 @@
---
-// 首页八块,按"它是谁(由你定义)→ 能做什么 → 用什么模型、花多少 → 数据去哪 → 在哪用 → 疑问 → 下载"排列。
+// 首页八块,按"它是谁 → 能做什么 → 用什么模型、花多少 → 数据去哪 → 在哪用 → 疑问 → 下载"排列。
// 细节交给附属页:完整价格与计算器在 /pricing,安全长版在 /security,安装包与校验在 /download。
import Base from "../layouts/Base.astro";
import Hero from "../sections/Hero.astro";