跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

3D 花园种植玩具是一个全屏种植玩具,围绕一小片精心雕琢的草地构建。访客从四种花朵形态中选一种,然后点击或轻触空草地,就能种下一簇花。花茎先升起,花瓣稍后绽开,所以每次种植都有可见的反馈。草地初始是一片原创的种子布局,再加上花朵计数器、可调风力、镜头控制和带确认的重置,让这个玩具无需教程墙也能轻松上手。

视觉方向是阳光下的植物微缩景观:纸感花瓣、不对称的土岛、柔和阴影,以及紧凑的野外工具包界面。所有地形、草、花和界面图标都用代码绘制。共享几何体、实例化网格和自适应像素密度,让数百朵动画花朵同时存在,而不必让每朵花都变成一次独立的绘制调用。拖拽可环绕视角,滚动或双指捏合可缩放,偏好减少动态效果的访客会看到静止的植物和简短的界面淡入淡出。

这个模板适合设计师、创作者、教育工作者和开发者,他们想要一个小型互动体验,而不是常规落地页。通过更改品牌、花园名称、标题和有序花朵列表,它可以变成季节性花园、草原一角,或品牌化的宁静时刻。因为内容集中管理,改编这个玩具不需要重写渲染器;同样的四个几何家族和交互模型始终保留。快照按钮只在访客设备上把花园导出为 PNG;不会上传任何内容。成品网站是单个静态页面,使用本地字体和图标,没有后端、没有账号,也没有外部资源请求。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# 3D Flower Garden Toy

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
Build [BRAND], a single-page interactive 3D flower garden set in [GARDEN_NAME]. The opening headline is [HEADLINE]. A visitor picks one of four flowers from [FLOWER_SET], clicks or taps open ground to plant a six-flower clump, adjusts one shared wind field, drags to orbit, pinches or scrolls to zoom, downloads a clean garden snapshot, and can reset to the original seeded meadow. The four names map in order to radial, cup, bell, and star procedural flower geometries. This is a playable full-viewport toy, not a marketing landing page.

- Audience: Designers, creators, educators, and developers looking for a calming interactive web toy, a botanical demonstration, or a small procedural-art experience that works with mouse, touch, and keyboard.
- Goal: Let a first-time visitor plant a recognizable clump within five seconds, understand every visible control without opening help, and leave with a PNG garden postcard if they wish. Maintain smooth interaction with hundreds of flowers on desktop and mobile.
- Tone: Quietly joyful and observant, like a one-page field notebook. Use short, plain instructions and gentle feedback; no scores, streaks, currency, competitive mechanics, or exaggerated claims.

## Stack
- Framework: Vite 5 + TypeScript 5
- Styling: Vanilla CSS
- Libraries: three (MIT), lucide (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/dm-sans (OFL-1.1), vite (MIT), typescript (Apache-2.0), @types/three (MIT)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Create package.json with scripts dev = vite, build = tsc --noEmit && vite build, and preview = vite preview. Pin three 0.170.0 and lucide 0.468.0; use Vite 5.4, TypeScript 5.6, @types/three 0.170.0, and current Fontsource variable packages. Use one index.html with src/main.ts as its entry.
  - vite.config.ts: base './', build.outDir 'dist', build.sourcemap false, build.target 'es2020', assetsInlineLimit 0. Do not copy src/ into dist/. All runtime files must resolve locally through relative URLs.
  - File layout: src/content.ts (all variable values, copy, ordered flower names and botanical colors), src/main.ts (composition and lifecycle), src/style.css, src/garden/Garden.ts (renderer and animation loop), src/garden/geometry.ts (terrain and four flower geometries), src/garden/instances.ts (instanced pools and wind shader), src/garden/interactions.ts (raycast, pointer and keyboard planting), src/garden/snapshot.ts, and src/ui.ts (dock, help, reset, toasts and accessibility). Do not add React or a state framework.
  - Import '@fontsource-variable/fraunces' and '@fontsource-variable/dm-sans' in src/fonts.ts and import that module from main.ts. index.html: lang en, theme-color #DDEDE6, local favicon.svg, and title '[BRAND] — an interactive flower garden'.
  - Use a fixed mulberry32 PRNG seeded with 1207 for the initial arrangement and clump offsets so reset restores exactly the same meadow. Keep application state in one GardenState object: selectedFlower 0–3, wind 0–100 default 35, clumps, camera state, helpOpen, resetOpen and toast. Do not persist or transmit garden data.
  - Renderer: THREE.WebGLRenderer with antialias true, alpha false, powerPreference 'high-performance', outputColorSpace SRGB, ACESFilmicToneMapping, exposure 1.05, and PCFSoftShadowMap. Set clear color to Sky. Use a HemisphereLight plus one warm DirectionalLight with a 1024 shadow map on mobile and 2048 on desktop. No HDR, image textures, or remote environment maps.
  - Camera: PerspectiveCamera at 38 degrees, near 0.1, far 120, initial position (10, 8.5, 12), looking at (0, 0.7, 0). Use OrbitControls imported from three/addons with target (0, 0.7, 0), damping 0.08, minDistance 10, maxDistance 25, minPolarAngle 0.45, maxPolarAngle 1.25, pan disabled and autoRotate disabled. Fit the complete island on narrow screens by increasing distance, not by cropping it.
  - Geometry: construct one original asymmetric bean-shaped grass island about 14 by 10 world units from radial segments, with a softly scalloped outline, gentle heightAt(x,z) undulation, and a 0.75-unit soil edge with two darker cut-earth bands. Place every plant with the same heightAt function. Add a broad matte ground plane below the island for soft contact shadow and a few code-built angular stones outside the main planting area. No terrain silhouette or object placement from the reference.
  - Botany: each flower type gets reusable stem, leaf, petal and center geometry. Type 0 is a radial daisy-like head with 10 narrow ivory petals; type 1 is a six-petal open coral cup; type 2 is a drooping cluster of five lavender bells; type 3 is a star-like head with eight blue petals. Use two small leaf meshes per stem. Flower heights vary from 0.65 to 1.2 units through the PRNG. When FLOWER_SET changes, rename the four buttons and adjust their natural botanical colors in content.ts while preserving these four distinct geometry families.
  - Performance: use InstancedMesh pools grouped by flower type and plant part, plus one instanced grass pool; never allocate one Mesh per flower. Preallocate for 120 clumps of six flowers (720 blooms) and hide unused instances with zero scale. Use 1800 grass blades on desktop and 900 on mobile. Store per-instance birth time, phase, height and growth data as InstancedBufferAttributes. The wind shader bends vertices according to local height, world position, shared time and wind uniforms; update uniforms and instance matrices only when needed, without per-frame geometry creation.
  - Adaptive quality: cap devicePixelRatio at 1.75 on desktop and 1.35 on mobile. After the first 120 visible frames, if average frame rate is below 45 fps, reduce pixel ratio in 0.25 steps to a minimum of 1 and reduce visible grass instances by one third. Pause the animation loop while document.hidden. Resize through ResizeObserver and update camera aspect and renderer size without recreating the scene.
  - Planting: raycast pointer coordinates against the grass top mesh. Accept only ground inside the planting boundary and at least 0.42 units from an existing clump center. A valid planting adds exactly six flowers: one at the hit point and five around it at radius 0.32–0.48 with seeded angular jitter. Initial state contains 18 distributed clumps (108 blooms); capacity is 120 clumps. Pointer up counts as planting only when movement is under 6 CSS pixels, duration under 350ms and the gesture was not a pinch; otherwise OrbitControls handles the drag.
  - Growth: each clump rises over 480ms with easeOutCubic, then petals scale and rotate open over 360ms with easeOutBack capped at scale 1. Stagger the six flowers by 55ms. Existing flowers remain planted. Idle wind is a shared vertex-shader effect, not hundreds of JavaScript animations.
  - Reduced motion: when prefers-reduced-motion is reduce, render grown flowers immediately, freeze wind at a slight static lean, omit camera interpolation and floating pollen, and use opacity-only 100ms UI transitions. Listen for preference changes. The wind slider still updates its label and static lean. All planting and export functions remain available.
  - Keyboard: the canvas is focusable with a visible planting ring. Arrow keys move that ring over valid ground, Enter or Space plants, and number keys 1–4 select flower types. Do not intercept arrows, Space or number keys while a button, slider, dialog or other form control has focus. Help, reset, snapshot and wind remain ordinary keyboard-accessible DOM controls.
  - Snapshot: render once explicitly, then use renderer.domElement.toBlob to export a PNG without preserveDrawingBuffer. Export only the 3D scene, never DOM controls or dialogs. Name the file by slugifying BRAND plus '-garden.png'. Cap the longest side at 2048 pixels, preserve the current camera and garden state, restore the previous render size afterwards, and show a success or failure toast.
  - Write ASSETS.md at the project root covering the original procedural scene and glyphs, Fontsource font packages and licenses, lucide and its ISC license, and Three.js and its MIT license. public/favicon.svg is an original four-petal geometric mark drawn in code. Keep dist/ under 20 MB.

## Variables
- [BRAND] — Garden brand (default: "Meadowmint"). An invented one- or two-word name used in the wordmark, page title, help copy and snapshot filename. Never a real brand or VibeFather.
- [GARDEN_NAME] — Garden name (default: "Wanderlight Meadow"). A short invented place name used as the intro eyebrow and in the reset copy.
- [HEADLINE] — Welcome headline (default: "Plant a little joy."). A calm sentence of three to seven words. Rewrite supporting copy if its meaning changes.
- [FLOWER_SET] — Four flower names (default: "Daisy, tulip, bluebell, cosmos"). Exactly four comma-separated US English common names, in radial, cup, bell and star geometry order. Update button labels, botanical colors, help copy and accessible names together.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/3d-flower-garden-toy in the footer (default: yes; delete this line to remove it)

The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.

## Design
### Colors
- Sky `#DDEDE6` — Page and renderer clear color; pale eucalyptus daylight.
- Cream `#FFFDF4` — Control panels, dialogs, primary text fields and daisy petals.
- Ink `#1F342B` — Headings, body text, icons and dark UI details.
- Moss `#526C59` — Secondary copy, inactive icons, stems and muted labels.
- Meadow `#84A96B` — Main grass top with subtle procedural value variation.
- Soil `#8A6A4F` — Cut-earth side of the floating garden island.
- Sun `#F2C14E` — Selected flower background, focus rings and flower centers; always pair with Ink text.
- Coral `#E78072` — Default cup-flower petals and its selector swatch.
- Lavender `#9B8AC4` — Default bell-flower petals and its selector swatch.
- Petal Blue `#82B6C9` — Default star-flower petals and its selector swatch.

### Typography
- Display: wordmark, welcome headline and dialog title; use Fraunces Variable with soft optical character, not italics: Fraunces (OFL), weights 600/700
- Interface and instructions: buttons, wind values, flower names, help and toasts; use DM Sans Variable with tabular numerals for the bloom count: DM Sans (OFL), weights 400/500/600/700

### Layout & motion
- Spacing: Use an 8px base unit. Desktop top bar is 72px high with 32px horizontal padding; intro sits 28px below it at left 32px and is at most 350px wide. Bottom dock is centered 24px above the viewport edge, maximum width 880px, 16px padding and 12px gaps. At 390px, top bar is 60px with 16px padding, intro is left/right 16px and at most 300px wide, and the dock is 12px above the safe-area-aware bottom edge with two compact rows. Headline uses clamp(36px, 4.4vw, 62px) at 0.98 line height; wordmark 22px; intro body 15px/1.55; controls 13–14px; mobile headline 36px. Every interactive target is at least 44 by 44px.
- Radius: 18px on the dock and dialogs, 12px on flower buttons and the reset popover, 10px on small icon buttons, and 999px on the bloom counter and toast. Use 1px Ink at 12% opacity borders and broad soft shadows; avoid glassmorphism-heavy blur stacks.
- Motion: Initial meadow is already present on first render; do not hide it behind a loading screen or long intro. UI panels fade in over 180ms without translating the 3D scene.
- Motion: Plant growth follows the two-stage 480ms stem and 360ms petal sequence with 55ms per-flower stagger defined in Setup.
- Motion: Wind is continuous but subtle: at 35% the tips lean and recover by roughly 0.08–0.16 world units using two sine frequencies and per-instance phase, never a synchronized side-to-side rocking of the whole island.
- Motion: Selected flower buttons fill Sun and their tiny SVG bloom turns 6 degrees over 140ms; hover raises buttons at most 1px.
- Motion: The planting cursor is a thin Cream-and-Ink ring projected onto the ground; valid placement shows a small six-dot clump preview, invalid placement dims the ring without planting.
- Motion: Dialogs fade with a 120ms scrim and 160ms scale from 0.98 to 1; toasts fade and rise 4px for 160ms, remain for 2.4 seconds, then fade.
- Motion: Camera damping is limited to OrbitControls; there is no autoplay rotation, scroll-jacking, parallax page, confetti or celebratory particle burst.
- Motion: Reduced motion freezes idle sway and makes growth immediate as defined in Setup; functionality and visible state feedback remain intact.
- Imagery: No photographs, raster textures, downloaded models or generated-image files. The high-craft first-screen anchor is the interactive Three.js botanical diorama itself: asymmetric cut-earth island, four original procedural flower families, instanced grass, soft shadows and a warm sky. Use original inline SVG for the four selector glyphs and favicon, and locally bundled Lucide for utility icons. No people, characters, landmarks or branded objects.

## Pages & Sections
### Garden (`index.html`)
1. **Content model and exact default copy** — Put all visible strings in src/content.ts and render them from BRAND, GARDEN_NAME, HEADLINE and FLOWER_SET. Default intro: eyebrow '[GARDEN_NAME]', H1 '[HEADLINE]', body 'Pick a flower, then click or tap the grass to grow your own little corner of [GARDEN_NAME].' Utility labels: 'How to play', 'Reset meadow', 'Snapshot', 'Wind', and '{count} blooms'. Wind value text is 'Still' at 0, 'Light' at 1–34, 'Breezy' at 35–69 and 'Gusty' at 70–100; default reads 'Breezy · 35%'. Flower buttons use the four names in FLOWER_SET in order. Toasts: 'Six new blooms, just for you.', 'Plant on an open patch of grass.', 'Your meadow is full. Reset to begin again.', 'Garden saved as a PNG.', 'The snapshot could not be saved. Try again.', and 'A fresh meadow is ready.' Do not leave any hard-coded default flower name when FLOWER_SET changes. Rewrite natural supporting copy for alternate values, keep it in US English, and derive the snapshot filename from BRAND.
   Layout: Content-only section; no separate visible panel. One-page state drives the stage and all overlays.
   Motion: Toast updates use an aria-live polite region. Do not announce animation frames or wind changes continuously.
2. **Full-viewport garden stage and top bar** — The first screen is the playable meadow, pre-seeded with 18 clumps so it never starts empty. Top-left wordmark is an original four-petal SVG followed by [BRAND]. Top-right controls are the bloom counter, HelpCircle icon button labeled 'How to play', and RotateCcw icon button labeled 'Reset meadow'. Below the wordmark show the eyebrow, H1 and instruction from the content model. On desktop the island composition favors the center-right so the intro remains readable; on mobile place the intro in a compact top block and fit the whole island between it and the bottom dock. Use a soft Cream radial wash behind only the intro text if needed for contrast, never a full-screen overlay.
   Layout: Canvas is fixed inset 0 with width and height 100%; DOM overlays sit above it. Top bar spans the viewport. Intro is non-interactive except for its text selection and does not block planting elsewhere. Desktop intro width 350px; mobile intro width min(300px, calc(100vw - 32px)). The 3D island remains the largest visual element at both 1440×900 and 390×844.
   Motion: Meadow and initial flowers are visible immediately. Wind begins only after the first frame; no intro camera flight.
3. **Procedural flowers, grass and weather** — Render the four geometry families and botanical colors defined in Setup, with visible differences in silhouette rather than recolors of one model. The default daisy has an ivory radial head and gold center, tulip a coral open cup, bluebell a hanging lavender cluster, and cosmos a blue eight-point star form. Add varied stem height, leaf angle and head rotation within each clump. Meadow grass shares the same wind direction and strength as flowers. Wind 0 stops dynamic sway; 100 produces stronger bending but never uproots or detaches heads. The current flower choice affects new clumps only, never recolors existing ones.
   Layout: Flowers sit on the grass top with no floating stems or detached petals. Keep stones and the outer 0.6-unit rim free of new planting. Flower heads must remain legible from the initial camera at desktop and mobile sizes.
   Motion: Use the shared shader wind field and growth timing from Setup. Reduced-motion mode replaces continuous sway with a static lean.
4. **Planting and camera interaction** — A click or short tap on valid open grass plants six flowers of the selected type. Show the six-dot ground preview on pointer hover and the keyboard planting ring when the canvas has focus. Dragging rotates the camera, wheel zooms, one-finger drag orbits on touch, and two-finger pinch zooms; these gestures must not accidentally plant. Invalid ground produces the open-patch toast and no state change. At capacity, further valid clicks produce the full-meadow toast. Arrow keys move the keyboard ring, Enter or Space plants, and 1–4 choose flower types.
   Layout: All interaction stays inside the single stage; no scrolling page, route change or separate game screen. Set touch-action none only on the canvas, not on dock controls. Canvas fallback text says 'This garden needs WebGL. Try a current browser with hardware acceleration enabled.'
   Motion: Planting feedback starts within 50ms of pointer up. Orbit damping is gentle and stops on reset. No motion is required to understand the current selection.
5. **Flower and wind dock** — The bottom dock contains four flower selector buttons in FLOWER_SET order, a Wind range input from 0 to 100 default 35, and a Camera icon button with visible text 'Snapshot'. Each selector has an original SVG silhouette, its full common name and a number-key hint on desktop only. Selected state uses Sun fill, Ink text and a 2px Ink border; unselected state is Cream with a subtle border. The wind control shows 'Wind', the current word and percentage, and updates continuously while dragged. Snapshot remains enabled after the first render.
   Layout: Desktop: one horizontal 880px-max row with four equal flower buttons, a 170px wind group and a 122px snapshot button. Mobile: first row is four equal selector buttons with 11–12px labels allowed to wrap to two lines; second row is a flexible wind slider plus a 48px snapshot icon button with accessible label. Dock respects safe-area insets and never covers the top intro. All controls have 44px minimum targets and 2px Sun focus outlines with 2px Ink outer contrast.
   Motion: Selection and hover use the restrained 140ms feedback in Design. Slider movement updates shader uniforms without animating the DOM panel.
6. **Help, reset confirmation and feedback** — How to play opens a dialog titled 'A field guide' with four numbered items: 'Choose a bloom' / 'Pick one of the four flowers in the garden dock.'; 'Plant a clump' / 'Click or tap open grass. Drag to orbit; scroll or pinch to zoom.'; 'Change the weather' / 'Move Wind from Still to Gusty. Your flowers lean together.'; 'Keep a postcard' / 'Snapshot downloads only the garden, without the controls.' Add 'Keyboard: 1–4 choose flowers, arrow keys move the planting ring, Enter plants.' Close button is 'Back to the meadow'. Reset opens a confirmation titled 'Start this meadow over?' with 'Your planted clumps will be replaced by the original [GARDEN_NAME]. Downloaded snapshots stay on your device.' Buttons are 'Keep gardening' and 'Reset meadow'. Confirming restores seed 1207, 18 clumps, first flower, wind 35 and initial camera, then shows the fresh-meadow toast.
   Layout: Centered Cream dialog, maximum width 460px and margin 16px, above a translucent Ink scrim. Reset uses the same dialog component. Trap focus, return focus to the opener, close on Escape and scrim click only for help; reset closes on Escape or Keep gardening, never by an accidental scrim tap. Toasts sit above the dock without covering flower selectors.
   Motion: Use 120–160ms opacity and tiny scale transitions, or 100ms opacity only under reduced motion. No auto-opening dialog.
7. **Quiet credit** — Render [CREDIT] as one quiet 12px text link in the bottom-left corner on wide screens and inside the help dialog footer on mobile. It is the only mention of VibeFather in the site. There are no other footer links, dates, social counts, prices or promotional messages.
   Layout: Desktop credit sits 18px from the left and bottom edges and must not overlap the centered dock. Mobile credit appears only inside the help dialog so it cannot crowd the controls.
   Motion: None beyond the standard text-link hover underline.

## Assets
- image: No raster images, image downloads, generated-image files, external textures or 3D model files. Draw the terrain, grass, four flower families, stones, shadows, selector glyphs and favicon procedurally with Three.js, CSS and inline SVG. In ASSETS.md identify these as original code-drawn assets.
- icon: Install and bundle lucide 0.468.0 (ISC) for HelpCircle, RotateCcw, Camera, X, Check, MousePointer2 and Wind; use 18–20px icons, 1.75 stroke width and currentColor. Flower-selector silhouettes and the four-petal favicon are original inline SVG, not reference or brand icons. Record Lucide in ASSETS.md.
- font: Self-host Fraunces Variable and DM Sans Variable through @fontsource-variable/fraunces and @fontsource-variable/dm-sans (OFL-1.1), imported in src/fonts.ts so Vite emits local woff2 files. Record both packages and licenses in ASSETS.md. No font CDN.

## Don'ts
- Do not copy the reference's code, prompt text, Chinese copy, screenshots, terrain silhouette, plant distribution, flower models, camera composition, control layout, palette, typography, icons or other identifiable media. Do not use the source product's name, wordmark or identity anywhere in the rendered garden.
- No real brands, logos, mascots, anime or game characters, recognizable people's likenesses, landmark objects, commercial fonts, restricted UI-library source or third-party visual assets outside the explicitly listed packages.
- No photographs, raster textures, downloaded models, placeholder-image services, remote HDRIs or generated-image URLs; the entire visual scene and all flower glyphs must be original code-drawn work.
- No backend, server code, API routes, database, authentication, forms that submit, analytics, external APIs, runtime fetch calls, uploads or sharing to a service. Garden state stays in memory and snapshots download locally.
- No individual Mesh objects per flower, per-frame geometry allocation or JavaScript animation loop per plant. Use the specified instanced pools, shared shader wind, capacity limit and adaptive pixel ratio so hundreds of flowers remain practical on phones.
- No autoplay sound, scroll-jacking, auto-rotating camera, gamified scores, currencies, accounts, pop-up ads or forced tutorial. The garden is visible and playable on the first screen.
- Exactly one page at ./index.html with no router or bare-directory links. Do not add marketing sections, pricing, SEO blocks, JSON-LD, Open Graph work, sitemaps, dates or unsupported visitor counts.
- Self-host every font, icon, script and style. No CDN script or link tags, Google Fonts, third-party CSS or remote assets. Use Vite base './' and relative asset paths.
- Production build must be minified with no source maps and no src/ copied into dist/. npm run build must produce static dist/ under 20 MB with zero console errors at 1440×900 and 390×844.
- Respect prefers-reduced-motion in both CSS and WebGL: no idle sway, growth stagger or camera interpolation, while retaining immediate planting feedback and every control. Pause rendering when the document is hidden.
- All controls must work with touch and keyboard as specified, have visible focus and accessible names, and avoid accidental planting after orbit or pinch gestures. Dialogs trap and restore focus; color is never the only selected-state indicator.
- Never expose unresolved [VARIABLE] placeholders. All labels, help text, botanical colors, page title and snapshot filename must follow the current variable values; do not hard-code Meadowmint or the default flower names outside src/content.ts.
- Never mention VibeFather inside the garden except the single optional [CREDIT] link specified in Quiet credit.

---
Inspired by 3D Flower Garden Toy — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/3d-flower-garden-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 3D 花园玩具

完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
构建 [BRAND],一个位于 [GARDEN_NAME] 的单页交互式 3D 花园。开场标题为 [HEADLINE]。访客从 [FLOWER_SET] 中选择四种花之一,点击或轻触空地种下一丛六株花,调节一个共享的风场,拖动以环绕观察,捏合或滚动以缩放,下载一张干净的花园快照,并可重置为最初的种子草甸。四个名称按顺序对应径向、杯状、钟形和星形程序化花朵几何体。这是一个可玩的全视口玩具,而非营销落地页。

- 受众:设计师、创作者、教育工作者和开发者,他们正在寻找一个平静的交互式网页玩具、一个植物学演示,或一个支持鼠标、触摸和键盘的小型程序化艺术体验。
- 目标:让首次访客在五秒内种下一丛可辨认的花,无需打开帮助即可理解每个可见控件,并可在愿意时带走一张 PNG 花园明信片。在桌面端和移动端保持数百朵花的流畅交互。
- 基调:安静愉悦且善于观察,像一页田野笔记。使用简短、平实的说明和温和的反馈;没有分数、连续记录、货币、竞争机制或夸大宣传。

## 技术栈
- 框架:Vite 5 + TypeScript 5
- 样式:原生 CSS(Vanilla CSS)
- 库:three(MIT)、lucide(ISC)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/dm-sans(OFL-1.1)、vite(MIT)、typescript(Apache-2.0)、@types/three(MIT)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
  - 创建 package.json,脚本为 dev = vite、build = tsc --noEmit && vite build、preview = vite preview。锁定 three 0.170.0 和 lucide 0.468.0;使用 Vite 5.4、TypeScript 5.6、@types/three 0.170.0 以及当前的 Fontsource 可变字体包。使用一个 index.html,以 src/main.ts 作为入口。
  - vite.config.ts:base './'、build.outDir 'dist'、build.sourcemap false、build.target 'es2020'、assetsInlineLimit 0。不要将 src/ 复制到 dist/。所有运行时文件必须通过相对 URL 在本地解析。
  - 文件布局:src/content.ts(所有变量值、文案、有序的花名和植物颜色)、src/main.ts(组合与生命周期)、src/style.css、src/garden/Garden.ts(渲染器和动画循环)、src/garden/geometry.ts(地形和四种花的几何体)、src/garden/instances.ts(实例化池和风着色器)、src/garden/interactions.ts(射线检测、指针和键盘种植)、src/garden/snapshot.ts 以及 src/ui.ts(停靠栏、帮助、重置、提示和可访问性)。不要添加 React 或状态框架。
  - 在 src/fonts.ts 中导入 '@fontsource-variable/fraunces' 和 '@fontsource-variable/dm-sans',并从 main.ts 导入该模块。index.html:lang en、theme-color #DDEDE6、本地 favicon.svg,以及标题 '[BRAND] — an interactive flower garden'。
  - 使用固定的 mulberry32 PRNG,种子为 1207,用于初始排列和丛偏移,以便重置时精确恢复同一片草地。将应用状态保存在一个 GardenState 对象中:selectedFlower 0–3、wind 0–100 默认 35、clumps、camera state、helpOpen、resetOpen 和 toast。不要持久化或传输花园数据。
  - 渲染器:THREE.WebGLRenderer,antialias true、alpha false、powerPreference 'high-performance'、outputColorSpace SRGB、ACESFilmicToneMapping、exposure 1.05 和 PCFSoftShadowMap。将清除颜色设置为 Sky。使用 HemisphereLight 加一个暖色 DirectionalLight,移动端使用 1024 阴影贴图,桌面端使用 2048。不使用 HDR、图像纹理或远程环境贴图。
  - 相机:PerspectiveCamera 38 度、near 0.1、far 120、初始位置 (10, 8.5, 12),看向 (0, 0.7, 0)。使用从 three/addons 导入的 OrbitControls,target 为 (0, 0.7, 0)、damping 0.08、minDistance 10、maxDistance 25、minPolarAngle 0.45、maxPolarAngle 1.25,禁用平移并禁用自动旋转。在窄屏上通过增加距离来适配完整岛屿,而不是裁剪它。
  - 几何体:从径向分段构建一个原创的非对称豆形草岛,约 14 × 10 世界单位,具有柔和的扇贝状轮廓、平缓的 heightAt(x,z) 起伏,以及 0.75 单位的土壤边缘和两条更深的切土带。使用相同的 heightAt 函数放置每一株植物。在岛屿下方添加一个宽大的哑光地面平面,用于柔和的接触阴影,并在主要种植区域外添加几块代码构建的棱角石头。不参考任何地形轮廓或物体放置。
  - 植物学:每种花型都有可复用的茎、叶、花瓣和花心几何体。类型 0 是径向雏菊状花头,有 10 片窄象牙色花瓣;类型 1 是六瓣开放的珊瑚色杯状花;类型 2 是五朵下垂的薰衣草色铃铛组成的花簇;类型 3 是星状花头,有八片蓝色花瓣。每根茎使用两个小叶片网格。花朵高度通过 PRNG 在 0.65 到 1.2 单位之间变化。当 FLOWER_SET 变化时,重命名四个按钮并在 content.ts 中调整它们的自然植物颜色,同时保留这四个不同的几何体家族。
  - 性能:使用按花型和植物部位分组的 InstancedMesh 池,外加一个实例化草池;绝不为每朵花分配一个 Mesh。为 120 丛、每丛六朵花(720 朵花)预分配,并用零缩放隐藏未使用的实例。桌面端使用 1800 片草叶,移动端使用 900 片。将每个实例的出生时间、相位、高度和生长数据存储为 InstancedBufferAttributes。风着色器根据局部高度、世界位置、共享时间和风 uniform 弯曲顶点;仅在需要时更新 uniform 和实例矩阵,不逐帧创建几何体。
  - 自适应质量:桌面端将 devicePixelRatio 上限设为 1.75,移动端设为 1.35。在首批 120 个可见帧之后,如果平均帧率低于 45 fps,则以 0.25 为步长降低像素比,最低至 1,并将可见草实例减少三分之一。当 document.hidden 时暂停动画循环。通过 ResizeObserver 调整大小,并更新相机宽高比和渲染器尺寸,而不重建场景。
  - 种植:将指针坐标对草顶网格进行射线检测。仅接受种植边界内且距离现有丛中心至少 0.42 单位的地面。有效种植会精确添加六朵花:一朵在命中点,五朵围绕它,半径 0.32–0.48,并带有种子化的角度抖动。初始状态包含 18 个分布式的丛(108 朵花);容量为 120 丛。指针抬起仅在移动小于 6 CSS 像素、持续时间小于 350ms 且手势不是捏合时计为种植;否则由 OrbitControls 处理拖拽。
  - 生长:每个丛在 480ms 内以 easeOutCubic 升起,然后花瓣在 360ms 内以 easeOutBack 缩放并旋转打开,缩放上限为 1。六朵花错开 55ms。现有花朵保持种植状态。空闲风是共享的顶点着色器效果,而不是数百个 JavaScript 动画。
  - 减少动态效果:当 prefers-reduced-motion 为 reduce 时,立即渲染已生长的花朵,将风冻结为轻微的静态倾斜,省略相机插值和漂浮花粉,并使用仅透明度的 100ms UI 过渡。监听偏好变化。风滑块仍会更新其标签和静态倾斜。所有种植和导出功能仍然可用。
  - 键盘:画布可聚焦,并带有可见的种植环。方向键在有效地面上移动该环,Enter 或 Space 种植,数字键 1–4 选择花型。当按钮、滑块、对话框或其他表单控件具有焦点时,不要拦截方向键、Space 或数字键。帮助、重置、快照和风仍为普通的键盘可访问 DOM 控件。
  - 快照:显式渲染一次,然后使用 renderer.domElement.toBlob 导出 PNG,不使用 preserveDrawingBuffer。仅导出 3D 场景,绝不导出 DOM 控件或对话框。文件名通过将 BRAND 转换为 slug 并加上 '-garden.png' 来命名。最长边限制为 2048 像素,保留当前相机和花园状态,之后恢复之前的渲染尺寸,并显示成功或失败提示。
  - 在项目根目录编写 ASSETS.md,涵盖原创程序化场景和字形、Fontsource 字体包及其许可证、lucide 及其 ISC 许可证,以及 Three.js 及其 MIT 许可证。public/favicon.svg 是一个用代码绘制的原创四瓣几何标志。将 dist/ 保持在 20 MB 以下。

## 变量
- [BRAND] — 花园品牌(默认:“Meadowmint”)。一个虚构的一到两个单词的名称,用于字标、页面标题、帮助文案和快照文件名。绝不使用真实品牌或 VibeFather。
- [GARDEN_NAME] — 花园名称(默认:“Wanderlight Meadow”)。一个简短的虚构地名,用作介绍眉题和重置文案中。
- [HEADLINE] — 欢迎标题(默认:“Plant a little joy.”)。一句平静的三到七个单词的句子。如果其含义发生变化,请重写辅助文案。
- [FLOWER_SET] — 四个花名(默认:“Daisy, tulip, bluebell, cosmos”)。恰好四个逗号分隔的美式英语常用名称,按放射形、杯形、钟形和星形几何顺序排列。同时更新按钮标签、植物颜色、帮助文案和无障碍名称。
- [CREDIT] — 在页脚保留一个小的“Template by VibeFather”链接指向 https://vibefather.ai/t/3d-flower-garden-toy(默认:是;删除此行以移除它)

页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图像——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图像路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块键控,以便以后无需修改组件即可替换内容。

## 设计
### 颜色
- 天空(Sky)`#DDEDE6` — 页面和渲染器的清除色;淡雅的桉树日光色。
- 奶油色(Cream)`#FFFDF4` — 控制面板、对话框、主文本字段和雏菊花瓣。
- 墨色(Ink)`#1F342B` — 标题、正文、图标和深色 UI 细节。
- 苔藓色(Moss)`#526C59` — 次要文案、非活动图标、茎和弱化标签。
- 草甸色(Meadow)`#84A96B` — 主草地顶部,带有细微的程序化明度变化。
- 土壤色(Soil)`#8A6A4F` — 漂浮花园岛的切土侧面。
- 阳光色(Sun)`#F2C14E` — 选中花朵的背景、焦点环和花心;始终与 Ink 文本搭配。
- 珊瑚色(Coral)`#E78072` — 默认杯状花的花瓣及其选择器色块。
- 薰衣草色(Lavender)`#9B8AC4` — 默认铃铛花的花瓣及其选择器色块。
- 花瓣蓝(Petal Blue)`#82B6C9` — 默认星形花的花瓣及其选择器色块。

### 字体排印
- 展示字体:字标、欢迎标题和对话框标题;使用 Fraunces Variable,采用柔和的光学字符,不使用斜体:Fraunces (OFL),字重 600/700
- 界面和说明:按钮、风力值、花朵名称、帮助和提示条;使用 DM Sans Variable,花朵计数使用表格数字:DM Sans (OFL),字重 400/500/600/700

### 布局与动效
- 间距:使用 8px 基准单位。桌面端顶栏高 72px,水平内边距 32px;介绍文字位于其下方 28px、左侧 32px 处,最大宽度 350px。底部停靠栏居中,距视口边缘上方 24px,最大宽度 880px,内边距 16px,间隙 12px。在 390px 宽度下,顶栏高 60px,内边距 16px,介绍文字左右各 16px,最大宽度 300px,停靠栏距安全区域感知的底部边缘上方 12px,采用两行紧凑布局。标题使用 clamp(36px, 4.4vw, 62px),行高 0.98;字标 22px;介绍正文 15px/1.55;控件 13–14px;移动端标题 36px。每个交互目标至少为 44 x 44px。
- 圆角:停靠栏和对话框为 18px,花朵按钮和重置弹出框为 12px,小图标按钮为 10px,花朵计数器和提示条为 999px。使用 1px Ink、12% 不透明度的边框和宽而柔和的阴影;避免重度玻璃拟态的模糊堆叠。
- 动效:初始草甸在首次渲染时即已呈现;不要将其隐藏在加载屏幕或冗长介绍之后。UI 面板在 180ms 内淡入,不移动 3D 场景。
- 动效:植物生长遵循 Setup 中定义的两阶段 480ms 茎和 360ms 花瓣序列,每朵花错开 55ms。
- 动效:风是连续但细微的:在 35% 时,尖端倾斜并恢复约 0.08–0.16 世界单位,使用两个正弦频率和逐实例相位,绝不是整个岛屿同步的左右摇摆。
- 动效:选中的花朵按钮填充 Sun 色,其微小的 SVG 花朵在 140ms 内旋转 6 度;悬停时按钮最多上浮 1px。
- 动效:种植光标是一个投射到地面上的细 Cream-and-Ink 圆环;有效放置显示一个小的六点丛预览,无效放置使圆环变暗但不种植。
- 动效:对话框以 120ms 的遮罩和 160ms 的从 0.98 到 1 的缩放淡入;提示条在 160ms 内淡入并上升 4px,保持 2.4 秒,然后淡出。
- 动效:相机阻尼仅限于 OrbitControls;没有自动播放旋转、滚动劫持、视差页面、彩纸或庆祝粒子爆发。
- 动效:减少动效会冻结空闲摇摆,并使生长立即完成,如 Setup 中所定义;功能和可见状态反馈保持完整。
- 图像:不使用照片、栅格纹理、下载的模型或生成图像文件。高工艺首屏锚点是交互式 Three.js 植物立体模型本身:不对称的切土岛屿、四个原创程序化花朵家族、实例化草地、柔和阴影和温暖的天空。四个选择器字形和 favicon 使用原创内联 SVG,实用图标使用本地打包的 Lucide。不出现人物、角色、地标或品牌物体。

## 页面与区块
### 花园(`index.html`)
1. **内容模型与精确默认文案** — 将所有可见字符串放入 src/content.ts,并从 BRAND、GARDEN_NAME、HEADLINE 和 FLOWER_SET 渲染。默认介绍:眉题 '[GARDEN_NAME]',H1 '[HEADLINE]',正文 'Pick a flower, then click or tap the grass to grow your own little corner of [GARDEN_NAME].' 工具标签:'How to play'、'Reset meadow'、'Snapshot'、'Wind' 和 '{count} blooms'。风力值文本在 0 时为 'Still',1–34 时为 'Light',35–69 时为 'Breezy',70–100 时为 'Gusty';默认显示 'Breezy · 35%'。花朵按钮按顺序使用 FLOWER_SET 中的四个名称。提示消息:'Six new blooms, just for you.'、'Plant on an open patch of grass.'、'Your meadow is full. Reset to begin again.'、'Garden saved as a PNG.'、'The snapshot could not be saved. Try again.' 和 'A fresh meadow is ready.' 当 FLOWER_SET 变化时,不要留下任何硬编码的默认花朵名称。为替代值重写自然的辅助文案,保持美式英语,并从 BRAND 派生快照文件名。
   布局:仅内容区块;没有单独可见的面板。单页状态驱动舞台和所有覆盖层。
   动效:提示消息更新使用 aria-live polite 区域。不要连续播报动画帧或风力变化。
2. **全视口花园舞台与顶栏** — 首屏是可玩的草地,预置 18 丛,因此永远不会以空状态开始。左上角字标是一个原创四瓣 SVG,后跟 [BRAND]。右上角控件是花朵计数器、标有 'How to play' 的 HelpCircle 图标按钮,以及标有 'Reset meadow' 的 RotateCcw 图标按钮。在字标下方显示内容模型中的眉题、H1 和说明。在桌面上,岛屿构图偏向中右侧,以便介绍文字保持可读;在移动端,将介绍放在紧凑的顶部区块中,并让整个岛屿适配在介绍与底部停靠栏之间。如有需要,仅在介绍文字后方使用柔和的 Cream 径向渐变以增强对比度,绝不要使用全屏覆盖层。
   布局:Canvas 固定 inset 0,宽度和高度为 100%;DOM 覆盖层位于其上方。顶栏横跨视口。介绍除文本选择外不可交互,且不会阻止在其他位置种植。桌面介绍宽度 350px;移动介绍宽度 min(300px, calc(100vw - 32px))。在 1440×900 和 390×844 下,3D 岛屿仍是最大的视觉元素。
   动效:草地和初始花朵立即可见。风力仅在首帧后开始;没有介绍镜头飞行。
3. **程序化花朵、草地与天气** — 渲染 Setup 中定义的四个几何家族和植物颜色,在轮廓上有可见差异,而不是同一模型的重新着色。默认雏菊有象牙色径向花头和金色花心,郁金香是珊瑚色开口杯状,蓝铃花是下垂的薰衣草色花簇,波斯菊是蓝色八角星形。在每个花丛内添加不同的茎高、叶角和花头旋转。草地与花朵共享相同的风向和强度。风力 0 停止动态摇摆;100 产生更强的弯曲,但绝不会连根拔起或使花头脱落。当前花朵选择仅影响新花丛,绝不会重新着色现有花丛。
   布局:花朵位于草地顶部,没有漂浮的茎或脱落的花瓣。保持石头和外侧 0.6 单位边缘不进行新种植。在桌面和移动尺寸下,从初始相机看花朵必须保持清晰可辨。
   动效:使用 Setup 中共享的着色器风场和生长时序。减少动态效果模式将连续摇摆替换为静态倾斜。
4. **种植与相机交互** — 在有效开阔草地上单击或短按会种植六朵所选类型的花。在指针悬停时显示六点地面预览,在画布获得焦点时显示键盘种植环。拖动旋转相机,滚轮缩放,触摸时单指拖动环绕,双指捏合缩放;这些手势不得意外种植。无效地面会产生开阔地提示且无状态变化。达到容量时,进一步的有效点击会产生草地已满提示。方向键移动键盘环,Enter 或 Space 种植,1–4 选择花朵类型。
   布局:所有交互都保持在单一舞台内;没有滚动页面、路由变化或单独的游戏屏幕。仅在画布上设置 touch-action none,不要在停靠栏控件上设置。画布回退文本为 'This garden needs WebGL. Try a current browser with hardware acceleration enabled.'
   动效:种植反馈在指针抬起后 50ms 内开始。环绕阻尼轻柔,并在重置时停止。理解当前选择不需要任何动效。
5. **花朵与风力停靠栏** — 底部停靠栏包含四个按 FLOWER_SET 顺序排列的花朵选择按钮、一个 0 到 100 默认 35 的 Wind 范围输入,以及一个带有可见文本 'Snapshot' 的 Camera 图标按钮。每个选择器都有一个原创 SVG 轮廓、其完整常用名,以及仅在桌面端显示的数字键提示。选中状态使用 Sun 填充、Ink 文本和 2px Ink 边框;未选中状态为 Cream 并带有细微边框。风力控件显示 'Wind'、当前词语和百分比,并在拖动时持续更新。首次渲染后 Snapshot 保持启用。
   布局:桌面:一个水平 880px 最大行,包含四个等宽花朵按钮、一个 170px 风力组和一个 122px 快照按钮。移动:第一行是四个等宽选择按钮,允许 11–12px 标签换行到两行;第二行是灵活的风力滑块加上一个 48px 快照图标按钮,带有可访问标签。停靠栏遵循安全区域内边距,且绝不覆盖顶部介绍。所有控件都有 44px 最小目标,以及 2px Sun 焦点轮廓和 2px Ink 外部对比。
   动效:选择和悬停使用 Design 中克制的 140ms 反馈。滑块移动更新着色器 uniform,而不对 DOM 面板做动画。
6. **帮助、重置确认与反馈** — How to play 打开一个标题为 'A field guide' 的对话框,包含四个编号项:'Choose a bloom' / 'Pick one of the four flowers in the garden dock.';'Plant a clump' / 'Click or tap open grass. Drag to orbit; scroll or pinch to zoom.';'Change the weather' / 'Move Wind from Still to Gusty. Your flowers lean together.';'Keep a postcard' / 'Snapshot downloads only the garden, without the controls.' 添加 'Keyboard: 1–4 choose flowers, arrow keys move the planting ring, Enter plants.' 关闭按钮为 'Back to the meadow'。重置打开一个标题为 'Start this meadow over?' 的确认框,内容为 'Your planted clumps will be replaced by the original [GARDEN_NAME]. Downloaded snapshots stay on your device.' 按钮为 'Keep gardening' 和 'Reset meadow'。确认后恢复种子 1207、18 丛、第一种花、风力 35 和初始相机,然后显示新草地提示。
   布局:居中的 Cream 对话框,最大宽度 460px,边距 16px,位于半透明 Ink 遮罩之上。重置使用相同的对话框组件。捕获焦点,将焦点返回打开者,按 Escape 关闭,且仅帮助对话框可通过点击遮罩关闭;重置通过 Escape 或 Keep gardening 关闭,绝不因意外点击遮罩而关闭。提示消息位于停靠栏上方,不覆盖花朵选择器。
   动效:使用 120–160ms 不透明度和微小缩放过渡,或在减少动态效果下仅使用 100ms 不透明度。没有自动打开的对话框。
7. **低调署名** — 在宽屏上,将 [CREDIT] 渲染为左下角一个低调的 12px 文本链接;在移动端,渲染在帮助对话框页脚内。这是站点中唯一提及 VibeFather 的地方。没有其他页脚链接、日期、社交计数、价格或促销消息。
   布局:桌面署名距左边缘和底边缘 18px,且不得与居中的停靠栏重叠。移动端署名仅出现在帮助对话框内,因此不会挤占控件。
   动效:除标准文本链接悬停下划线外无其他动效。

## 资产
- 图像:不使用任何栅格图像、图像下载、生成图像文件、外部纹理或 3D 模型文件。地形、草地、四类花卉、石块、阴影、选择器图标和 favicon 均使用 Three.js、CSS 和内联 SVG 以程序化方式绘制。在 ASSETS.md 中将这些标注为原创代码绘制资产。
- 图标:安装并打包 lucide 0.468.0(ISC),用于 HelpCircle、RotateCcw、Camera、X、Check、MousePointer2 和 Wind;图标尺寸为 18–20px,描边宽度为 1.75,颜色使用 currentColor。花卉选择器剪影和四瓣 favicon 为原创内联 SVG,并非参考图标或品牌图标。在 ASSETS.md 中记录 Lucide。
- 字体:通过 @fontsource-variable/fraunces 和 @fontsource-variable/dm-sans(OFL-1.1)自托管 Fraunces Variable 和 DM Sans Variable,并在 src/fonts.ts 中导入,以便 Vite 输出本地 woff2 文件。在 ASSETS.md 中记录这两个包及其许可证。不使用字体 CDN。

## 禁止事项
- 不得复制参考对象的代码、提示词文本、中文文案、截图、地形轮廓、植物分布、花朵模型、相机构图、控件布局、调色板、字体排印、图标或其他可识别的媒体素材。在渲染出的花园中,任何位置都不得使用源产品的名称、字标或品牌标识。
- 不得使用真实品牌、徽标、吉祥物、动漫或游戏角色、可识别的人物肖像、地标物体、商业字体、受限的 UI 库源码,或明确列出的包之外的第三方视觉素材。
- 不得使用照片、位图纹理、下载的模型、占位图服务、远程 HDRI 或生成图片 URL;整个视觉场景和所有花朵图形都必须是原创的代码绘制作品。
- 不得包含后端、服务端代码、API 路由、数据库、身份验证、会提交的表单、分析统计、外部 API、运行时 fetch 调用、上传或向服务分享。花园状态保留在内存中,快照在本地下载。
- 不得为每朵花创建单独的 Mesh 对象,不得逐帧分配几何体,也不得为每株植物运行 JavaScript 动画循环。使用指定的实例化池、共享着色器风效、容量上限和自适应像素比,使数百朵花在手机上仍然实用。
- 不得自动播放声音、劫持滚动、自动旋转相机、游戏化分数、货币、账户、弹窗广告或强制教程。花园在首屏即可见并可操作。
- 在 ./index.html 处只能有一个页面,不得有路由器或裸目录链接。不得添加营销区块、定价、SEO 区块、JSON-LD、Open Graph 相关工作、站点地图、日期或不受支持的访客计数。
- 所有字体、图标、脚本和样式都必须自托管。不得使用 CDN 脚本或 link 标签、Google Fonts、第三方 CSS 或远程素材。使用 Vite base './' 和相对素材路径。
- 生产构建必须压缩,不得有 source map,也不得将 src/ 复制到 dist/。npm run build 必须生成小于 20 MB 的静态 dist/,并在 1440×900 和 390×844 下零控制台错误。
- 在 CSS 和 WebGL 中都尊重 prefers-reduced-motion:不得有闲置摇曳、生长错峰或相机插值,同时保留即时的种植反馈和所有控件。文档隐藏时暂停渲染。
- 所有控件必须按规范支持触摸和键盘,具有可见焦点和可访问名称,并避免在轨道或捏合手势后意外种植。对话框要捕获并恢复焦点;颜色绝不能是唯一的选择状态指示。
- 绝不能暴露未解析的 [VARIABLE] 占位符。所有标签、帮助文本、植物颜色、页面标题和快照文件名都必须遵循当前变量值;不得在 src/content.ts 之外硬编码 Meadowmint 或默认花朵名称。
- 除 Quiet credit 中指定的单个可选 [CREDIT] 链接外,绝不在花园内提及 VibeFather。

---
Inspired by 3D Flower Garden Toy — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/3d-flower-garden-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "3D Flower Garden Toy"
colors:
  sky: "#DDEDE6"
  cream: "#FFFDF4"
  ink: "#1F342B"
  moss: "#526C59"
  meadow: "#84A96B"
  soil: "#8A6A4F"
  sun: "#F2C14E"
  coral: "#E78072"
  lavender: "#9B8AC4"
  petal_blue: "#82B6C9"
typography:
  display_wordmark_welcome_headline_and_dialog_title_use_fraunces_variable_with_soft_optical_character_not_italics: { family: "Fraunces", weights: [600, 700] }
  interface_and_instructions_buttons_wind_values_flower_names_help_and_toasts_use_dm_sans_variable_with_tabular_numerals_for_the_bloom_count: { family: "DM Sans", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base unit. Desktop top bar is 72px high with 32px horizontal padding; intro sits 28px below it at left 32px and is at most 350px wide. Bottom dock is centered 24px above the viewport edge, maximum width 880px, 16px padding and 12px gaps. At 390px, top bar is 60px with 16px padding, intro is left/right 16px and at most 300px wide, and the dock is 12px above the safe-area-aware bottom edge with two compact rows. Headline uses clamp(36px, 4.4vw, 62px) at 0.98 line height; wordmark 22px; intro body 15px/1.55; controls 13–14px; mobile headline 36px. Every interactive target is at least 44 by 44px."
radius: "18px on the dock and dialogs, 12px on flower buttons and the reset popover, 10px on small icon buttons, and 999px on the bloom counter and toast. Use 1px Ink at 12% opacity borders and broad soft shadows; avoid glassmorphism-heavy blur stacks."
---

# 3D Flower Garden Toy — Design System

Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.

## Colors
- **Sky** `#DDEDE6` — Page and renderer clear color; pale eucalyptus daylight.
- **Cream** `#FFFDF4` — Control panels, dialogs, primary text fields and daisy petals.
- **Ink** `#1F342B` — Headings, body text, icons and dark UI details.
- **Moss** `#526C59` — Secondary copy, inactive icons, stems and muted labels.
- **Meadow** `#84A96B` — Main grass top with subtle procedural value variation.
- **Soil** `#8A6A4F` — Cut-earth side of the floating garden island.
- **Sun** `#F2C14E` — Selected flower background, focus rings and flower centers; always pair with Ink text.
- **Coral** `#E78072` — Default cup-flower petals and its selector swatch.
- **Lavender** `#9B8AC4` — Default bell-flower petals and its selector swatch.
- **Petal Blue** `#82B6C9` — Default star-flower petals and its selector swatch.

## Typography
- **Display: wordmark, welcome headline and dialog title; use Fraunces Variable with soft optical character, not italics** — Fraunces (OFL), weights 600/700. Self-host the font files.
- **Interface and instructions: buttons, wind values, flower names, help and toasts; use DM Sans Variable with tabular numerals for the bloom count** — DM Sans (OFL), weights 400/500/600/700. Self-host the font files.

## Spacing & shape
- Spacing: Use an 8px base unit. Desktop top bar is 72px high with 32px horizontal padding; intro sits 28px below it at left 32px and is at most 350px wide. Bottom dock is centered 24px above the viewport edge, maximum width 880px, 16px padding and 12px gaps. At 390px, top bar is 60px with 16px padding, intro is left/right 16px and at most 300px wide, and the dock is 12px above the safe-area-aware bottom edge with two compact rows. Headline uses clamp(36px, 4.4vw, 62px) at 0.98 line height; wordmark 22px; intro body 15px/1.55; controls 13–14px; mobile headline 36px. Every interactive target is at least 44 by 44px.
- Radius: 18px on the dock and dialogs, 12px on flower buttons and the reset popover, 10px on small icon buttons, and 999px on the bloom counter and toast. Use 1px Ink at 12% opacity borders and broad soft shadows; avoid glassmorphism-heavy blur stacks.

## Motion
- Initial meadow is already present on first render; do not hide it behind a loading screen or long intro. UI panels fade in over 180ms without translating the 3D scene.
- Plant growth follows the two-stage 480ms stem and 360ms petal sequence with 55ms per-flower stagger defined in Setup.
- Wind is continuous but subtle: at 35% the tips lean and recover by roughly 0.08–0.16 world units using two sine frequencies and per-instance phase, never a synchronized side-to-side rocking of the whole island.
- Selected flower buttons fill Sun and their tiny SVG bloom turns 6 degrees over 140ms; hover raises buttons at most 1px.
- The planting cursor is a thin Cream-and-Ink ring projected onto the ground; valid placement shows a small six-dot clump preview, invalid placement dims the ring without planting.
- Dialogs fade with a 120ms scrim and 160ms scale from 0.98 to 1; toasts fade and rise 4px for 160ms, remain for 2.4 seconds, then fade.
- Camera damping is limited to OrbitControls; there is no autoplay rotation, scroll-jacking, parallax page, confetti or celebratory particle burst.
- Reduced motion freezes idle sway and makes growth immediate as defined in Setup; functionality and visible state feedback remain intact.

## Imagery
No photographs, raster textures, downloaded models or generated-image files. The high-craft first-screen anchor is the interactive Three.js botanical diorama itself: asymmetric cut-earth island, four original procedural flower families, instanced grass, soft shadows and a warm sky. Use original inline SVG for the four selector glyphs and favicon, and locally bundled Lucide for utility icons. No people, characters, landmarks or branded objects.

## Tone
Quietly joyful and observant, like a one-page field notebook. Use short, plain instructions and gentle feedback; no scores, streaks, currency, competitive mechanics, or exaggerated claims.

---
Inspired by 3D Flower Garden Toy — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/3d-flower-garden-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 植物园或花店:把 BRAND 和 GARDEN_NAME 设为你的场所,把 FLOWER_SET 重命名成你出售的品种,并把快照用作可分享的明信片。
  • 课堂或自然教育者:把 HEADLINE 设为一句关于种一片草地的简短提示,保留全部四种花朵形态,让学生比较花簇和风力设置。
  • 季节性品牌活动:把 BRAND 设为你的活动名称,把 FLOWER_SET 改名为当季花卉,并用一句平静的邀请替换标题。
  • 健康或冥想网站:把 GARDEN_NAME 设为一个安静的地名,让标题更柔和,并把种植玩具呈现为一段短暂的宁静时光,附上一份 PNG 留念。

3D 花园种植玩具:常见问题

用 3D 花园种植玩具模板建成的网站,访客实际能做什么?

访客从四种花朵形态中选一种,点击或轻触空草地,种下一簇六朵花,然后看着花茎升起、花瓣绽开。他们可以拖拽环绕草地、滚动或捏合缩放、调节一个共享的风力滑块、下载花园的 PNG 快照,并重置为最初的种子布局。花朵计数器会显示已种下多少朵花。

3D 花园种植玩具模板可以免费使用吗?Pro 又额外提供什么?

3D 花园种植玩具是免费模板。它的提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途。商业或客户项目需要 Pro,Pro 会员还能获得演示的源代码。无论哪种情况,在线演示、简介、技术栈和变量都是公开的。

怎么用 AI 做一个3D 花园种植玩具?

复制本页的提示词,或者运行 npx vibefather add 3d-flower-garden-toy,把 [BRAND]、[HEADLINE]、[FLOWER_SET]、[GARDEN_NAME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。

3D 花园种植玩具模板的演示是哪个 AI 模型做的?

演示由 Kimi K3.1 Pro 在 Kimi Code 里完成;另一个案例由 DeepSeek V4.1 Flash 在 DeepSeek Harness 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。