跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

花朵解剖 3D 讲解是一个单页植物学课程,围绕一朵原创的程序化建模花朵构建,而不是视频或下载的模型。学习者可以环绕标本、放大其结构、按步骤掀开六片花被片,并选择附着的标签来了解雄蕊、柱头、花柱、子房和胚珠。一个专门的传粉章节将花粉传递与花粉管生长和受精区分开来,而五道题的测验以即时反馈和得分结束课程。

视觉方向类似明亮的标本工作站:温暖的象牙色表面、深植物绿、珊瑚色花部几何、金色花粉、细线和紧凑的科学标签。花朵始终是视觉锚点,因此体验感觉像是在操作一个教学模型,而不是阅读一连串卡片。它适合创建课堂演示的教育工作者、复习植物繁殖的学生,以及寻找具有有意义控制的教育性 Three.js 界面的开发者。

该模板设计为通过三个变量进行适配:品牌、标本和受众。默认课程使用东方百合;替代案例使用郁金香,保留六片花被片结构,同时改变模型的颜色、比例、描述和测验措辞。所有课程内容和标本参数都放在一起以便替换。技术栈是 Vite、React、TypeScript、Three.js 和原生 CSS,使用本地开源许可的字体和图标。不需要照片、生成的图像、外部模型、API 或后端。触摸控制、键盘替代方案、减少动态效果的故事板和 WebGL 回退是需求的一部分,使结果既可作为静态教学页面,也可作为视觉独特的演示。

模板提示词

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

# Flower Anatomy 3D Explainer

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

## Brief
Build [BRAND], an original interactive anatomy lesson for [AUDIENCE], centered on a code-generated 3D [SPECIMEN]. The default is an Oriental lily with six tepals, six stamens, one central pistil, a three-lobed stigma, and a superior ovary with three chambers. Learners orbit and zoom the specimen, perform a four-state dissection, inspect linked labels, play a four-stage pollination sequence, and finish a five-question quiz. Use three hash-routed views, #/anatomy, #/pollination, and #/quiz, around one persistent Three.js canvas; index.html opens the anatomy view. This is a polished teaching instrument, not a marketing landing page or a video player.

- Audience: Write every label, explanation, instruction, and quiz question for [AUDIENCE]. The default tone is welcoming to curious beginners without becoming childish. Use correct introductory botany, define technical terms in plain US English, and include a visible note that geometry, structure sizes, pollen counts, and timing are simplified for clarity.
- Goal: Make the flower itself the primary interface and ensure every core action works with mouse, touch, and keyboard. A first-time visitor should understand within five seconds that they can drag the flower, and within one minute should be able to expose the ovary and identify where pollen lands. Keep all variable-derived copy, quiz content, specimen colors, tepal proportions, and model parameters in src/content.ts. When BRAND, SPECIMEN, or AUDIENCE changes, rewrite every dependent headline, explanation, label, question, model material setting, and alt string to suit the new values rather than retaining Oriental lily-specific wording.
- Tone: Precise, calm, curious, and tactile, like a beautifully designed museum specimen station. Use direct verbs and short explanations. Avoid hype, gamified shouting, classroom clipart, childish mascots, fake scientific claims, and generic AI copy.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Vanilla CSS
- Libraries: Vite 5 (MIT), React 18 and React DOM 18 (MIT), TypeScript (Apache-2.0), Three.js with bundled OrbitControls (MIT), lucide-react (ISC), @fontsource/fraunces (OFL), @fontsource/inter (OFL), @fontsource/ibm-plex-mono (OFL)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Create a Vite React TypeScript project with react@18, react-dom@18, three, lucide-react, and the three listed Fontsource packages; use vite@5, TypeScript, @vitejs/plugin-react, and the matching type packages as development dependencies.
  - Set vite.config.ts to base: './' and build.sourcemap: false. Set the package build script to tsc && vite build so npm run build creates only production files in dist/.
  - Use direct Three.js inside a React component with OrbitControls imported from three/examples/jsm/controls/OrbitControls.js. Do not add react-three-fiber, Drei, Tailwind, GSAP, a physics engine, or a state-management library.
  - Organize the project as src/content.ts for all copy and specimen parameters, src/flowerScene.ts for geometry and animation, src/App.tsx for view and interaction state, src/styles.css for all visual rules, and src/main.tsx for Fontsource imports and mounting.
  - Self-host Fraunces 500, 600, and 700; Inter 400, 500, 600, and 700; and IBM Plex Mono 400 and 500 through Fontsource imports. Bundle every icon, font, script, and generated mesh locally.
  - Implement index.html, #/anatomy, #/pollination, and #/quiz with a small hash router. Keep the WebGL renderer and model mounted while switching views. The brand link returns to ./index.html and chapter links use explicit hash routes.
  - Use React state for the active route, dissection step, selected anatomical part, label visibility, pollination stage and playback, quiz answers, and best score. A derived lowercase hyphenated BRAND key may namespace the best-score localStorage entry.
  - Set the document title to [BRAND] — Flower Anatomy and use a local inline-SVG favicon made from six simple tepal outlines. Do not add other metadata or SEO features.

## Variables
- [BRAND] — Lesson brand (default: "Petal Atlas"). An invented short name for the botanical learning project.
- [SPECIMEN] — Flower specimen (default: "Oriental lily"). Use a flower whose anatomy fits the six-tepal, six-stamen teaching model; adjust its geometry, colors, and copy.
- [AUDIENCE] — Learner audience (default: "Curious beginners"). Adapt vocabulary, guidance, and quiz wording to this audience.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/flower-anatomy-3d-explainer 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
- Warm paper `#F5F1E8` — Page background and quiet outer gutters
- Botanical ink `#18342B` — Headings, primary buttons, wordmark, and high-emphasis text
- Leaf `#3E6B50` — Stem, leaves, secondary controls, and active lesson markers
- Specimen mist `#E3ECE2` — Viewport backdrop and pale diagram surfaces
- Petal coral `#EEA095` — Default lily tepals and selected-part accents; derive a different specimen color when SPECIMEN changes
- Petal light `#FFD7CA` — Tepal inner faces, soft highlights, and pale selection washes
- Pollen gold `#D99A2B` — Anthers, pollen grains, pollination path, and quiz progress
- Fine line `#B9C6B9` — Hairline borders, leader lines, timeline tracks, and separators
- Muted text `#64736A` — Instructions, secondary facts, and metadata
- Chalk `#FFFDF8` — Cards, labels, and text placed on botanical ink

### Typography
- Display headlines, specimen name, and quiz result: Fraunces (OFL), weights 500/600/700
- Body copy, controls, labels, and answer choices: Inter (OFL), weights 400/500/600/700
- Eyebrows, step numbers, shortcuts, and scientific metadata: IBM Plex Mono (OFL), weights 400/500

### Layout & motion
- Spacing: Use a 4px base unit with 8px control gaps, 16px card padding, 24px panel padding, and 32px desktop page gutters. Cap the shared shell at 1600px. Desktop chapter rail, stage, and inspector columns are 220px, minmax(0, 1fr), and 320px with 24px gaps. Keep 44px minimum touch targets and 12px minimum separation between projected labels.
- Radius: Use 2px on small taxonomy chips, 8px on buttons, 14px on the stage and inspector, and fully circular geometry only for status dots and compact icon buttons. Avoid a dashboard made from many floating rounded cards.
- Motion: On first load, ease the specimen from 96% scale and zero opacity to full scale and opacity over 600ms while the header and inspector fade in over 300ms; do not auto-rotate the flower.
- Motion: Use damped orbit controls with damping factor 0.08, limited zoom, and a restrained floor shadow. Dragging never selects text or scrolls the stage on touch; vertical page scrolling remains available outside the canvas.
- Motion: Animate dissection changes over 650ms with cubic-bezier(0.22, 1, 0.36, 1): tepals lift and rotate outward, stamens part, then the camera and clipping plane reveal the ovary. Keep every intermediate state interruptible by Previous, Next, Reset, or label selection.
- Motion: Project HTML labels from 3D anchor positions every frame and draw fine SVG leader lines to them. Update selection with a 160ms highlight and a soft target ring rather than bouncing labels.
- Motion: Crossfade chapter inspector content over 220ms without unmounting the canvas. Pollination is a deterministic 12-second sequence with play, pause, previous, next, replay, and 0.5x or 1x speed; never start it on page load.
- Motion: For prefers-reduced-motion, remove the entrance tween, idle motion, damping, camera tweens, and particle travel. Dissection and chapter changes become immediate, and pollination becomes four user-controlled static storyboard states with the same copy.
- Motion: Pause rendering when the document is hidden or the stage is offscreen. Cap pixel ratio at 1.75 desktop and 1.5 mobile, use one directional and one hemisphere light, avoid real-time shadow maps, and reuse pollen through InstancedMesh.
- Imagery: Create every visual in code: the flower, stem, leaves, pollen, ovary cutaway, leader lines, floor shadow, wordmark, favicon, and WebGL-fallback cross-section. Use no photographs, AI-generated images, downloaded models, HDRIs, image textures, people, or mascots. The default flower uses two alternating whorls of three curved coral tepals, six copper-gold anthers, a green central pistil, and a subtle procedural speckle pattern made from small geometry marks. A specimen change must update tepal silhouette, proportions, material colors, and decorative marks from src/content.ts; a tulip uses smoother cup-shaped unspotted tepals rather than inheriting lily speckles.

## Pages & Sections
### Anatomy lesson (`index.html`)
1. **Shared header and chapter rail** — The header contains an original six-tepal inline-SVG mark, the [BRAND] wordmark, a small INTERACTIVE BOTANY label, and three ordered links: 01 Anatomy, 02 Pollination, 03 Quiz. The active link uses botanical ink and a short gold underline. The anatomy chapter rail repeats the routes with their full descriptions and shows the eyebrow BOTANY / 01, the Fraunces headline 'Inside a flower.', and the introduction 'Turn a [SPECIMEN], lift its tepals, and see how its parts work together.' Below the routes, place a compact instruction 'Drag to rotate · Pinch or scroll to zoom · Select a label to learn' and the note 'A simplified teaching model. Structures are enlarged for clarity.' On pollination and quiz routes, keep this shared shell but change the eyebrow, title, introduction, and active state to match the chapter.
   Layout: Use a 68px sticky header with a warm-paper background and one bottom hairline. At 1440×900, the main workspace fits below it with 32px outer gutters and the three-column chapter rail, stage, and inspector grid. The left rail is vertically centered rather than stuffed with cards. At 390×844, use a 58px header, hide the small INTERACTIVE BOTANY label, make chapter links a horizontally scrollable three-item row, and move the chapter introduction into a compact block above the stage with a 34px headline.
   Motion: The active chapter underline slides between links over 180ms. On mobile, route changes do not unexpectedly scroll the page; return the workspace introduction to the top only when the learner explicitly selects a new chapter.
2. **Interactive anatomy specimen** — The default stage shows the whole [SPECIMEN] prominently, angled about 20 degrees toward the camera with a short curved stem and two restrained leaves behind it. Build six lanceolate tepals as original parametric BufferGeometry in two alternating whorls at 60-degree intervals. Surround the central pistil with six filament-and-anther stamens. Model a three-lobed stigma, slender style, green superior ovary, three internal chambers, and a small readable set of ovules. Use a soft circular contact shadow and a pale specimen-mist backdrop, not a realistic vase or a copied scene. Show a LIVE SPECIMEN chip, the [SPECIMEN] name, Labels on/off, and Reset view. Four dissection buttons and Previous and Next controls are always available: 0 Whole flower; 1 Tepals lifted, moving all six radially outward by about 0.9 scene units and turning them 35 degrees downward; 2 Stamens parted, moving the stamens 0.35 units outward while keeping them visible; 3 Ovary cutaway, moving to a closer side view and clipping the front quarter of the ovary to expose chambers and ovules. Selecting Ovule automatically enters step 3. Reset view restores the camera without discarding the current dissection step; a separate Whole flower button restores step 0.
   Layout: The stage fills the center column and is at least 640px high on desktop, with the flower occupying roughly 70% of its usable height. Put specimen metadata at top left, view controls at top right, and dissection controls in a solid warm-paper toolbar along the bottom. The four step buttons use compact two-line labels and an active gold progress line. On mobile, place the stage first, use a 420px-high canvas, a two-by-two dissection grid below it, and keep the flower and primary controls visible without horizontal overflow.
   Motion: The default flower is still after its entrance. Dragging rotates with damping, pinch or wheel zooms within sensible limits, and arrow keys rotate the focused model, plus and minus zoom, and 0 resets the camera. Step transitions follow the shared dissection timing. On WebGL failure, replace only the canvas with a labeled inline-SVG flower cross-section while preserving all four states, inspectors, and quiz functionality.
3. **Linked labels and specimen inspector** — Provide six selectable anatomical labels: Tepals, Stamen, Stigma, Style, Ovary, and Ovule. Their default inspector entries are: Tepals — 'Six petal-like tepals form two whorls. In a lily, petals and sepals look nearly identical, so we call them tepals.' Stamen — 'Six stamens surround the pistil. Each has a filament that holds an anther, where pollen is produced.' Stigma — 'The three-lobed stigma sits at the top of the pistil. Its sticky surface catches compatible pollen.' Style — 'The style connects the stigma and ovary. After a compatible grain germinates, its pollen tube grows through this stalk.' Ovary — 'The superior ovary sits above the tepal attachment. Its three chambers contain ovules.' Ovule — 'Inside the ovary, each ovule contains an egg cell. After fertilization, an ovule can develop into a seed.' The initial Whole flower inspector says 'Built for making seeds.' and 'The showy tepals attract pollinators. Inside, stamens make pollen and the pistil receives it. Select a label to follow the journey.' Its primary button reads Start dissection and advances to step 1. Include a six-item text part list below the explanation so selection never depends on the canvas alone.
   Layout: The right inspector is a chalk panel with a 14px radius, 24px padding, a mono part index, a 32px Fraunces title, a plain-language paragraph, and the six-part list separated by hairlines. Projected labels use small chalk rectangles, botanical-ink text, and 1px leader lines with a 4px anchor dot. Resolve overlaps vertically and prioritize the selected label. On mobile, show the selected label plus Stamen, Stigma, and Ovary by default; the Labels control can reveal the rest, and the full inspector follows immediately below the dissection controls.
   Motion: Selecting a label highlights both the text row and the 3D structure, draws a restrained target ring, and reveals any obscuring dissection state needed to see that part. Camera focus moves only when the learner selects Focus in the inspector, never merely because a label was tapped.
4. **Shared footer** — The footer reads '[BRAND] · An interactive specimen study' on the left, 'Designed for [AUDIENCE]' in the middle, and the optional [CREDIT] link on the right. Include no date, social counters, newsletter form, pricing, or promotional claim.
   Layout: Place the footer below the workspace with a top hairline, 24px vertical padding, and the same outer gutters. Stack its three items left-aligned on mobile with 8px gaps.
   Motion: No footer animation.

### Pollination laboratory (`#/pollination`)
1. **Four-stage pollination sequence** — Change the chapter rail to BOTANY / 02, the headline 'Follow the pollen.', and the introduction 'Watch what happens after a compatible grain reaches a stigma. Play the sequence or inspect one stage at a time.' Keep the same flower and camera controls, but use a side-biased view that can show both anthers and the central pistil. Use exactly four stages: 1 Pollen release — 'Mature anthers split open and expose pollen grains.' Show a small cluster of gold grains at one anther. 2 Pollen transfer — 'A visiting pollinator carries compatible pollen from an anther to the sticky stigma. This transfer is pollination.' Move 24 instanced grains along one curved dotted route from anther to stigma; do not require a bee or mascot. 3 Tube growth — 'After pollination, a grain germinates. Its pollen tube grows down the style toward an ovule.' Fade the outer tepals to a pale ghosted treatment, show the ovary cutaway, and progressively reveal one gold tube through the style. 4 Fertilization — 'A sperm cell joins the egg cell inside an ovule. This is fertilization, not pollination. The ovule can now develop into a seed.' Highlight one ovule and the completed tube. Add the persistent note 'The sequence is simplified. Timing, grain size, and pollen numbers are illustrative.' Controls are Play sequence, Pause, Previous, Next, Replay, and 0.5x / 1x. At reduced motion, Play advances between static stages instead of moving particles.
   Layout: Reuse the anatomy stage and right inspector rather than adding a second canvas. The inspector contains the current stage number, a 32px title, its explanation, and a four-row vertical timeline; the bottom stage toolbar contains playback controls and a 12-second progress track. Stage segments are labeled Release, Transfer, Tube growth, and Fertilization. On mobile, playback controls form two rows, the timeline becomes four equal columns above the inspector, and all labels remain readable at 390px.
   Motion: Map a full 1x playthrough to 12 seconds: release 0–2 seconds, transfer 2–5 seconds, tube growth 5–9 seconds, and fertilization 9–12 seconds. Pause freezes the exact progress; Previous and Next jump to deterministic stage boundaries; Replay returns to zero. Space toggles play or pause only when the pollination stage has keyboard focus, and bracket keys change stages. Do not autoplay, loop, or keep pollen drifting after completion.

### Knowledge check (`#/quiz`)
1. **Five-question knowledge check** — Change the chapter rail to BOTANY / 03, the headline 'Check your understanding.', and the introduction 'Five questions. Choose an answer to see why it is right or wrong; your best score stays in this browser.' Reassemble the flower, hide projected labels by default, and leave it orbitable as a visual reference. Ask one question at a time in this fixed default order: 1 'Which part catches compatible pollen?' Options: Stigma (correct), Filament, Tepal, Ovule. Explanation: 'The stigma has a receptive, often sticky surface where compatible pollen lands.' 2 'Which two structures make up a stamen?' Options: Anther and filament (correct), Stigma and style, Ovary and ovule, Petal and sepal. Explanation: 'The filament supports the anther, and the anther produces pollen.' 3 'Where are the ovules located?' Options: Inside the ovary (correct), On the tepals, Inside the anther, Along the stem. Explanation: 'The ovary contains chambers with ovules inside.' 4 'Which event is pollination?' Options: Pollen moves from an anther to a compatible stigma (correct), A pollen tube enters an ovule, A sperm cell joins an egg cell, An ovule becomes a seed. Explanation: 'Pollination is pollen transfer. Later events belong to post-pollination growth or fertilization.' 5 'Which statement correctly separates pollination from fertilization?' Options: Pollination transfers pollen; fertilization joins a sperm cell with an egg cell (correct), Pollination makes seeds; fertilization opens the anther, Pollination grows the style; fertilization colors the tepals, They are two names for exactly the same event. Explanation: 'The grain must first land on a stigma; fertilization happens later inside an ovule.' After each choice, lock that question, mark the selected and correct answers, show its explanation, and enable Next question. The final view says 'Your specimen score' with the dynamic score out of five, a one-sentence review recommendation based on missed parts, Review anatomy, and Try again. Store only the best numeric score locally and provide a five-row answer review.
   Layout: Keep the 3D stage in the center column and replace the anatomy inspector with a wider quiz panel spanning the inspector column and, when space allows, overlapping no part of the canvas. The panel shows Question n of 5, five small progress segments, a 30px Fraunces question, four full-width answer buttons, feedback, and the next control. On mobile, the flower stage contracts to 300px high, the quiz follows below, and answer buttons stack full width with 12px gaps. Never hide quiz content behind the canvas or require a hover.
   Motion: Answer feedback fades in over 180ms. Correct answers use leaf green and a Check icon; incorrect selections use a restrained rust border and an X icon without shaking. Results count up over 400ms only when motion is allowed. Try again resets answers and the visible question but preserves the best score.

## Assets
- image: No raster or external visual assets. Generate the specimen, ovary cutaway, pollen, floor shadow, wordmark, favicon, leader lines, and WebGL-fallback diagram from Three.js geometry and inline SVG. Do not download or hotlink any flower image, texture, HDRI, or 3D model.
- icon: Use locally bundled lucide-react icons for RotateCcw, Eye, EyeOff, Play, Pause, ChevronLeft, ChevronRight, Check, X, Focus, Rotate3D, and Award. Draw only the original six-tepal wordmark, favicon, leader lines, and anatomical fallback as inline SVG. Record Lucide's ISC license in ASSETS.md.
- font: Self-host Fraunces 500/600/700 through @fontsource/fraunces (OFL); bundle the selected woff2 files through the normal Vite build and list the package and license in ASSETS.md.
- font: Self-host Inter 400/500/600/700 through @fontsource/inter (OFL); bundle the selected woff2 files through the normal Vite build and list the package and license in ASSETS.md.
- font: Self-host IBM Plex Mono 400/500 through @fontsource/ibm-plex-mono (OFL); bundle the selected woff2 files through the normal Vite build and list the package and license in ASSETS.md.

## Don'ts
- Do not copy the inspiration page's source prompt, code, Chinese text, exact lesson wording, quiz wording, geometry, proportions, materials, camera framing, label styling, control placement, palette, typography, icons, or animation timing. Reuse only the broad ideas of rotating a flower, staged dissection, anatomical labels, pollination, and assessment.
- Do not use the reference platform's product names, model names, company names, logos, interface branding, screenshots, images, models, textures, video, audio, or other proprietary media anywhere in the implementation or demo copy.
- Do not use real people's likenesses, anime or game characters, third-party brand logos, recognizable commercial products, decorative mascots, signature illustrations, commercial fonts, or restricted-library source code.
- Do not fetch photographs, generated images, flower models, HDRIs, textures, fonts, scripts, icons, APIs, analytics, or any other runtime resource from a remote host. Everything must be bundled locally; no hotlinks or CDN tags.
- Do not add a backend, server actions, API routes, database, authentication, network forms, third-party tracking, real pollinator data, or live scientific services. Quiz state and best score remain client-side only.
- Do not add Tailwind, react-three-fiber, Drei, GSAP, a physics engine, a state library, or another framework. Keep the specified Vite, React, TypeScript, direct Three.js, Lucide, Fontsource, and vanilla-CSS stack.
- Do not confuse pollination with fertilization, call lily tepals separate petals and sepals, place the ovary below the tepal attachment on the default model, or present the enlarged illustrative geometry and particle counts as exact biological measurements.
- Do not leave Oriental lily-specific colors, speckles, copy, alt text, or quiz wording unchanged when SPECIMEN or AUDIENCE changes. Keep all variable-dependent content and model parameters together in src/content.ts and rewrite them for the supplied values.
- Do not autoplay rotation or pollination, force pointer lock, make drag the only way to operate the lesson, or ignore prefers-reduced-motion. All controls need keyboard and touch equivalents and visible focus states.
- Do not let labels overlap excessively, drift away from their anatomical anchors, capture pointer events intended for the canvas, or make the quiz depend on selecting a 3D mesh. Provide the equivalent text part list and SVG fallback.
- Do not create additional routes, bare-directory links, source maps, copied src directories, SEO metadata, Open Graph tags, JSON-LD, sitemaps, dates, pricing, fake counters, or promotional template-library copy. Use only the plain [BRAND] title, favicon, specified hash routes, and optional [CREDIT] footer link.
- Do not exceed 20 MB in dist/. Use relative production asset paths and verify npm run build, index.html, #/anatomy, #/pollination, and #/quiz at 1440×900 and 390×844 with zero console errors, no horizontal overflow, and working dissection, pollination, and quiz flows.

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

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

## 简介
构建 [BRAND],一个面向 [AUDIENCE] 的原创交互式解剖课程,以代码生成的 3D [SPECIMEN] 为核心。默认样本是一朵东方百合(Oriental lily),具有六枚花被片、六枚雄蕊、一个中央雌蕊、一个三裂柱头,以及一个具三室的子房(上位)。学习者可以环绕并缩放标本,执行四状态解剖,查看关联标签,播放四阶段传粉序列,并完成一个五题测验。使用三个哈希路由视图:#/anatomy、#/pollination 和 #/quiz,围绕一个持久的 Three.js 画布;index.html 打开解剖视图。这是一个精致的教学工具,而非营销落地页或视频播放器。

- 受众:为 [AUDIENCE] 编写每一个标签、说明、指令和测验问题。默认语气对好奇的初学者友好,但不显得幼稚。使用正确的入门植物学知识,用平实的美国英语定义技术术语,并包含一个可见的说明:几何形状、结构尺寸、花粉数量和时序均为清晰起见而简化。
- 目标:让花朵本身成为主要界面,并确保每个核心操作都能通过鼠标、触摸和键盘完成。首次访问者应在五秒内明白可以拖动花朵,并在一分钟内能够暴露子房并识别花粉落在何处。将所有由变量派生的文案、测验内容、标本颜色、花被片比例和模型参数保留在 src/content.ts 中。当 BRAND、SPECIMEN 或 AUDIENCE 变化时,重写每一个相关的标题、说明、标签、问题、模型材质设置和 alt 字符串,以适配新值,而不是保留东方百合特有的措辞。
- 语气:精确、平静、好奇且富有触感,如同一个设计精美的博物馆标本站。使用直接的动词和简短的解释。避免炒作、游戏化的喊叫、课堂剪贴画、幼稚的吉祥物、虚假的科学主张和通用的 AI 文案。

## 技术栈(Stack)
- 框架(Framework):Vite 5 + React 18 + TypeScript
- 样式(Styling):原生 CSS(Vanilla CSS)
- 库(Libraries):Vite 5(MIT)、React 18 和 React DOM 18(MIT)、TypeScript(Apache-2.0)、Three.js 及内置的 OrbitControls(MIT)、lucide-react(ISC)、@fontsource/fraunces(OFL)、@fontsource/inter(OFL)、@fontsource/ibm-plex-mono(OFL)
- 构建(Build):`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置(Setup):
  - 创建一个 Vite React TypeScript 项目,包含 react@18、react-dom@18、three、lucide-react 以及列出的三个 Fontsource 包;使用 vite@5、TypeScript、@vitejs/plugin-react 及匹配的类型包作为开发依赖。
  - 将 vite.config.ts 设置为 base: './' 和 build.sourcemap: false。将包的构建脚本设置为 tsc && vite build,以便 npm run build 仅在 dist/ 中生成生产文件。
  - 在 React 组件中直接使用 Three.js,并从 three/examples/jsm/controls/OrbitControls.js 导入 OrbitControls。不要添加 react-three-fiber、Drei、Tailwind、GSAP、物理引擎或状态管理库。
  - 将项目组织为:src/content.ts 用于所有文案和标本参数,src/flowerScene.ts 用于几何体和动画,src/App.tsx 用于视图和交互状态,src/styles.css 用于所有视觉规则,src/main.tsx 用于 Fontsource 导入和挂载。
  - 通过 Fontsource 导入自托管 Fraunces 500、600 和 700;Inter 400、500、600 和 700;以及 IBM Plex Mono 400 和 500。将所有图标、字体、脚本和生成的网格本地打包。
  - 使用小型哈希路由器实现 index.html、#/anatomy、#/pollination 和 #/quiz。在切换视图时保持 WebGL 渲染器和模型挂载。品牌链接返回 ./index.html,章节链接使用显式哈希路由。
  - 使用 React 状态管理活动路由、解剖步骤、选中的解剖部位、标签可见性、授粉阶段和播放、测验答案以及最佳分数。派生的全小写连字符 BRAND 键可为最佳分数的 localStorage 条目提供命名空间。
  - 将文档标题设置为 [BRAND] — Flower Anatomy,并使用由六个简单花被片轮廓组成的本地内联 SVG favicon。不要添加其他元数据或 SEO 功能。

## 变量
- [BRAND] — 课程品牌(默认:“Petal Atlas”)。为植物学学习项目虚构的简短名称。
- [SPECIMEN] — 花卉标本(默认:“Oriental lily”)。请使用解剖结构符合六被片、六雄蕊教学模型的花卉;并相应调整其几何形状、颜色和文案。
- [AUDIENCE] — 学习者受众(默认:“Curious beginners”)。根据该受众调整词汇、引导语和测验措辞。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/flower-anatomy-3d-explainer(默认:是;删除此行即可移除)

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

## 设计
### 颜色(Colors)
- 暖纸色(Warm paper)`#F5F1E8` — 页面背景和安静的外围留白
- 植物墨色(Botanical ink)`#18342B` — 标题、主按钮、字标和高强调文本
- 叶色(Leaf)`#3E6B50` — 茎、叶、次级控件和活动课程标记
- 标本雾色(Specimen mist)`#E3ECE2` — 视口背景和浅色图表表面
- 花瓣珊瑚色(Petal coral)`#EEA095` — 默认百合花被片和选中部位强调色;当 SPECIMEN 变化时派生不同的标本颜色
- 花瓣浅色(Petal light)`#FFD7CA` — 花被片内表面、柔和高光和浅色选中底色
- 花粉金色(Pollen gold)`#D99A2B` — 花药、花粉粒、传粉路径和测验进度
- 细线色(Fine line)`#B9C6B9` — 细边框、引导线、时间轴轨道和分隔线
- 弱化文本色(Muted text)`#64736A` — 说明文字、次要事实和元数据
- 粉笔白(Chalk)`#FFFDF8` — 卡片、标签和置于植物墨色上的文本

### 字体排印(Typography)
- 展示标题、标本名称和测验结果:Fraunces(OFL),字重 500/600/700
- 正文、控件、标签和答案选项:Inter(OFL),字重 400/500/600/700
- 眉题、步骤编号、快捷键和科学元数据:IBM Plex Mono(OFL),字重 400/500

### 布局与动效(Layout & motion)
- 间距:使用 4px 基础单位,控件间距 8px,卡片内边距 16px,面板内边距 24px,桌面页面留白 32px。共享外壳最大宽度 1600px。桌面章节栏、舞台和检查器列宽分别为 220px、minmax(0, 1fr) 和 320px,间距 24px。保持最小 44px 触摸目标和投影标签之间最小 12px 间隔。
- 圆角:小型分类标签使用 2px,按钮使用 8px,舞台和检查器使用 14px,仅状态点和紧凑图标按钮使用完全圆形几何。避免做成由许多浮动圆角卡片组成的仪表盘。
- 动效:首次加载时,标本在 600ms 内从 96% 缩放和零不透明度缓动到完整缩放和不透明度,同时页头和检查器在 300ms 内淡入;不要自动旋转花朵。
- 动效:使用阻尼轨道控制,阻尼系数 0.08,限制缩放,并保留克制的落地阴影。拖拽时绝不选中文本或在触摸设备上滚动舞台;画布之外的垂直页面滚动保持可用。
- 动效:解剖变化在 650ms 内以 cubic-bezier(0.22, 1, 0.36, 1) 动画:花被片抬起并向外旋转,雄蕊分开,然后相机和裁剪平面露出子房。每个中间状态都必须可被 Previous、Next、Reset 或标签选择打断。
- 动效:每帧从 3D 锚点位置投影 HTML 标签,并向它们绘制细 SVG 引导线。用 160ms 高亮和柔和的目标环更新选中状态,而不是让标签弹跳。
- 动效:章节检查器内容在 220ms 内交叉淡入淡出,不卸载画布。传粉是一个确定性的 12 秒序列,支持播放、暂停、上一步、下一步、重播以及 0.5x 或 1x 速度;绝不在页面加载时启动。
- 动效:对于 prefers-reduced-motion,移除入场补间、空闲运动、阻尼、相机补间和粒子移动。解剖和章节变化变为即时,传粉变为四个用户控制的静态故事板状态,文案相同。
- 动效:当文档隐藏或舞台在屏幕外时暂停渲染。桌面像素比上限为 1.75,移动端为 1.5,使用一个方向光和一个半球光,避免实时阴影贴图,并通过 InstancedMesh 复用花粉。
- 图像:所有视觉元素都用代码创建:花朵、茎、叶、花粉、子房剖面、引导线、落地阴影、字标、favicon 和 WebGL 回退剖面图。不使用照片、AI 生成图像、下载的模型、HDRI、图像纹理、人物或吉祥物。默认花朵使用两轮交替的三片弯曲珊瑚色花被片、六个铜金色花药、一个绿色中央雌蕊,以及由小型几何标记构成的细微程序化斑点图案。标本变化必须从 src/content.ts 更新花被片轮廓、比例、材质颜色和装饰标记;郁金香使用更光滑的杯状无斑点花被片,而不是继承百合斑点。

## 页面与区块
### 解剖课(`index.html`)
1. **共享页眉与章节导航栏** — 页眉包含一个原创的六被片内联 SVG 标志、[BRAND] 字标、一个小号 INTERACTIVE BOTANY 标签,以及三个有序链接:01 解剖、02 传粉、03 测验。当前激活的链接使用植物墨色和一条短金色下划线。解剖章节导航栏重复这些路由及其完整描述,并显示眉题 BOTANY / 01、Fraunces 标题“Inside a flower.”,以及引言“Turn a [SPECIMEN], lift its tepals, and see how its parts work together.”。在路由下方,放置一条紧凑的说明“Drag to rotate · Pinch or scroll to zoom · Select a label to learn”和注释“A simplified teaching model. Structures are enlarged for clarity.”。在传粉和测验路由上,保留此共享外壳,但更改眉题、标题、引言和激活状态以匹配对应章节。
   布局:使用 68px 的粘性页眉,暖纸色背景和一条底部细线。在 1440×900 下,主工作区位于其下方,带有 32px 外部边距,以及三栏章节导航栏、舞台和检查器网格。左侧导航栏垂直居中,而不是塞满卡片。在 390×844 下,使用 58px 页眉,隐藏小号 INTERACTIVE BOTANY 标签,将章节链接变为可水平滚动的三项行,并将章节引言移入舞台上方的紧凑区块,标题为 34px。
   动效:激活章节下划线在链接之间以 180ms 滑动。在移动端,路由变化不会意外滚动页面;仅当学习者明确选择新章节时,才将工作区引言返回顶部。
2. **交互式解剖标本** — 默认舞台突出显示整个 [SPECIMEN],朝向相机倾斜约 20 度,带有短弯曲茎和其后两片克制的叶子。以 60 度间隔的两个交替轮生,用原创参数化 BufferGeometry 构建六个披针形被片。围绕中央雌蕊,用六个花丝和花药雄蕊环绕。建模一个三裂柱头、细长花柱、绿色上位子房、三个内部腔室,以及一小套可读的胚珠。使用柔和的圆形接触阴影和浅色标本雾背景,而不是逼真的花瓶或复制场景。显示 LIVE SPECIMEN 标签、[SPECIMEN] 名称、标签开/关和重置视图。四个解剖按钮以及上一个和下一个控件始终可用:0 整朵花;1 被片抬起,将所有六个被片径向向外移动约 0.9 场景单位,并向下转动 35 度;2 雄蕊分开,将雄蕊向外移动 0.35 单位,同时保持可见;3 子房剖面,移动到更近的侧视图,并裁剪子房前四分之一以露出腔室和胚珠。选择胚珠会自动进入步骤 3。重置视图恢复相机而不丢弃当前解剖步骤;单独的整朵花按钮恢复步骤 0。
   布局:舞台填满中栏,在桌面上至少 640px 高,花朵约占其可用高度的 70%。将标本元数据放在左上角,视图控件放在右上角,解剖控件放在底部沿边的实心暖纸色工具栏中。四个步骤按钮使用紧凑的两行标签和一条激活的金色进度线。在移动端,将舞台放在首位,使用 420px 高的画布,其下方为二乘二解剖网格,并保持花朵和主要控件可见且无水平溢出。
   动效:默认花朵在入场后静止。拖拽旋转带阻尼,捏合或滚轮在合理范围内缩放,方向键旋转聚焦的模型,加号和减号缩放,0 重置相机。步骤过渡遵循共享的解剖时序。WebGL 失败时,仅将画布替换为带标签的内联 SVG 花朵横截面,同时保留所有四个状态、检查器和测验功能。
3. **关联标签与标本检查器** — 提供六个可选解剖标签:被片、雄蕊、柱头、花柱、子房和胚珠。它们的默认检查器条目为:被片 — “Six petal-like tepals form two whorls. In a lily, petals and sepals look nearly identical, so we call them tepals.” 雄蕊 — “Six stamens surround the pistil. Each has a filament that holds an anther, where pollen is produced.” 柱头 — “The three-lobed stigma sits at the top of the pistil. Its sticky surface catches compatible pollen.” 花柱 — “The style connects the stigma and ovary. After a compatible grain germinates, its pollen tube grows through this stalk.” 子房 — “The superior ovary sits above the tepal attachment. Its three chambers contain ovules.” 胚珠 — “Inside the ovary, each ovule contains an egg cell. After fertilization, an ovule can develop into a seed.” 初始整朵花检查器显示“Built for making seeds.”和“The showy tepals attract pollinators. Inside, stamens make pollen and the pistil receives it. Select a label to follow the journey.”其主按钮显示开始解剖并前进到步骤 1。在说明下方包含一个六项文本部件列表,以便选择从不只依赖画布。
   布局:右侧检查器是一个粉笔面板,14px 圆角、24px 内边距、等宽部件索引、32px Fraunces 标题、通俗语言段落,以及由细线分隔的六部件列表。投影标签使用小粉笔矩形、植物墨色文字和 1px 引导线,带 4px 锚点。垂直解决重叠,并优先显示所选标签。在移动端,默认显示所选标签以及雄蕊、柱头和子房;标签控件可显示其余部分,完整检查器紧随解剖控件下方。
   动效:选择标签会同时高亮文本行和 3D 结构,绘制一个克制的目标环,并显示查看该部件所需的任何遮挡解剖状态。仅当学习者在检查器中选择聚焦时,相机焦点才移动,绝不因为点击了标签而移动。
4. **共享页脚** — 页脚左侧显示“[BRAND] · An interactive specimen study”,中间显示“Designed for [AUDIENCE]”,右侧为可选的 [CREDIT] 链接。不包含日期、社交计数器、新闻通讯表单、定价或促销声明。
   布局:将页脚放在工作区下方,带顶部细线、24px 垂直内边距和相同的外部边距。在移动端,将其三个项目左对齐堆叠,间距 8px。
   动效:无页脚动画。

### 传粉实验室(`#/pollination`)
1. **四阶段传粉序列** — 将章节导航栏更改为 BOTANY / 02,标题为“Follow the pollen.”,引言为“Watch what happens after a compatible grain reaches a stigma. Play the sequence or inspect one stage at a time.”。保持相同的花朵和相机控件,但使用侧偏视图,可同时显示花药和中央雌蕊。恰好使用四个阶段:1 花粉释放 — “Mature anthers split open and expose pollen grains.”在一个花药处显示一小簇金色颗粒。2 花粉转移 — “A visiting pollinator carries compatible pollen from an anther to the sticky stigma. This transfer is pollination.”沿一条从花药到柱头的弯曲虚线路径移动 24 个实例化颗粒;不要求蜜蜂或吉祥物。3 花粉管生长 — “After pollination, a grain germinates. Its pollen tube grows down the style toward an ovule.”将被片外部淡化为浅色幽灵处理,显示子房剖面,并逐步显示一条穿过花柱的金色花粉管。4 受精 — “A sperm cell joins the egg cell inside an ovule. This is fertilization, not pollination. The ovule can now develop into a seed.”高亮一个胚珠和完成的花粉管。添加持续注释“The sequence is simplified. Timing, grain size, and pollen numbers are illustrative.”控件为播放序列、暂停、上一个、下一个、重播,以及 0.5x / 1x。在减少动态效果下,播放会在静态阶段之间前进,而不是移动粒子。
   布局:复用解剖舞台和右侧检查器,而不是添加第二个画布。检查器包含当前阶段编号、32px 标题、其说明,以及四行垂直时间线;底部阶段工具栏包含播放控件和 12 秒进度轨道。阶段段标记为释放、转移、花粉管生长和受精。在移动端,播放控件形成两行,时间线变为检查器上方的四个等宽列,所有标签在 390px 下保持可读。
   动效:将完整的 1x 播放映射为 12 秒:释放 0–2 秒,转移 2–5 秒,花粉管生长 5–9 秒,受精 9–12 秒。暂停冻结精确进度;上一个和下一个跳转到确定性阶段边界;重播返回零。仅当传粉阶段具有键盘焦点时,空格切换播放或暂停,方括号键更改阶段。不要自动播放、循环,或在完成后保持花粉漂移。

### 知识检查(`#/quiz`)
1. **五题知识检查** — 将章节导航栏改为 BOTANY / 03,标题改为 'Check your understanding.',引言改为 'Five questions. Choose an answer to see why it is right or wrong; your best score stays in this browser.' 重新组装花朵,默认隐藏投影标签,并保持其可环绕旋转作为视觉参考。按以下固定默认顺序一次问一个问题:1 'Which part catches compatible pollen?' 选项:Stigma(正确)、Filament、Tepal、Ovule。解释:'The stigma has a receptive, often sticky surface where compatible pollen lands.' 2 'Which two structures make up a stamen?' 选项:Anther and filament(正确)、Stigma and style、Ovary and ovule、Petal and sepal。解释:'The filament supports the anther, and the anther produces pollen.' 3 'Where are the ovules located?' 选项:Inside the ovary(正确)、On the tepals、Inside the anther、Along the stem。解释:'The ovary contains chambers with ovules inside.' 4 'Which event is pollination?' 选项:Pollen moves from an anther to a compatible stigma(正确)、A pollen tube enters an ovule、A sperm cell joins an egg cell、An ovule becomes a seed。解释:'Pollination is pollen transfer. Later events belong to post-pollination growth or fertilization.' 5 'Which statement correctly separates pollination from fertilization?' 选项:Pollination transfers pollen; fertilization joins a sperm cell with an egg cell(正确)、Pollination makes seeds; fertilization opens the anther、Pollination grows the style; fertilization colors the tepals、They are two names for exactly the same event。解释:'The grain must first land on a stigma; fertilization happens later inside an ovule.' 每次选择后,锁定该问题,标记所选答案和正确答案,显示其解释,并启用 Next question。最终视图显示 'Your specimen score',附带动态度分(满分五题)、基于答错部分的一句话复习建议、Review anatomy 和 Try again。仅在本地存储最佳数字分数,并提供五行答案回顾。
   布局:将 3D 舞台保留在中间列,并用更宽的测验面板替换解剖检查器,该面板横跨检查器列,并在空间允许时不与画布任何部分重叠。面板显示 Question n of 5、五个小进度段、一个 30px Fraunces 问题、四个全宽答案按钮、反馈和下一个控件。在移动端,花朵舞台收缩至 300px 高,测验紧随其后,答案按钮全宽堆叠,间距 12px。切勿将测验内容隐藏在画布后面或要求悬停。
   动效:答案反馈在 180ms 内淡入。正确答案使用叶绿色和 Check 图标;错误选择使用克制的铁锈色边框和 X 图标,不抖动。仅在允许动效时,结果在 400ms 内计数递增。Try again 重置答案和可见问题,但保留最佳分数。

## Assets
- image:不使用任何位图或外部视觉素材。标本、子房剖面、花粉、地面阴影、字标、favicon、引线和 WebGL 回退示意图,全部用 Three.js 几何体和内联 SVG 生成。不得下载或热链任何花朵图片、纹理、HDRI 或 3D 模型。
- icon:使用本地打包的 lucide-react 图标,包括 RotateCcw、Eye、EyeOff、Play、Pause、ChevronLeft、ChevronRight、Check、X、Focus、Rotate3D 和 Award。仅将原创的六瓣字标、favicon、引线和解剖回退图以内联 SVG 绘制。在 ASSETS.md 中记录 Lucide 的 ISC 许可证。
- font:通过 @fontsource/fraunces(OFL)自托管 Fraunces 500/600/700;通过常规 Vite 构建打包选定的 woff2 文件,并在 ASSETS.md 中列出包名和许可证。
- font:通过 @fontsource/inter(OFL)自托管 Inter 400/500/600/700;通过常规 Vite 构建打包选定的 woff2 文件,并在 ASSETS.md 中列出包名和许可证。
- font:通过 @fontsource/ibm-plex-mono(OFL)自托管 IBM Plex Mono 400/500;通过常规 Vite 构建打包选定的 woff2 文件,并在 ASSETS.md 中列出包名和许可证。

## 禁止事项
- 不要复制灵感页面的源提示词、代码、中文文本、确切的课程措辞、测验措辞、几何结构、比例、材质、相机取景、标签样式、控件位置、调色板、排版、图标或动画时序。仅复用旋转花朵、分阶段解剖、解剖标签、授粉和评估这些宽泛概念。
- 在实现或演示文案中,不得使用参考平台的产品名称、模型名称、公司名称、徽标、界面品牌、截图、图像、模型、纹理、视频、音频或其他专有媒体。
- 不得使用真实人物肖像、动漫或游戏角色、第三方品牌徽标、可识别的商业产品、装饰性吉祥物、标志性插画、商业字体或受限库源代码。
- 不得从远程主机获取照片、生成图像、花朵模型、HDRI、纹理、字体、脚本、图标、API、分析工具或任何其他运行时资源。所有内容必须本地打包;不得使用热链接或 CDN 标签。
- 不得添加后端、服务器操作、API 路由、数据库、身份验证、网络表单、第三方跟踪、真实传粉者数据或实时科学服务。测验状态和最佳分数仅保留在客户端。
- 不得添加 Tailwind、react-three-fiber、Drei、GSAP、物理引擎、状态库或其他框架。保持指定的 Vite、React、TypeScript、直接 Three.js、Lucide、Fontsource 和原生 CSS 技术栈。
- 不得将授粉与受精混淆,不得将百合的 tepals(花被片)称为分离的花瓣和萼片,不得在默认模型上将子房置于花被片附着点下方,也不得将放大的示意几何结构和粒子数量呈现为精确的生物学测量值。
- 当 SPECIMEN 或 AUDIENCE 变化时,不得让东方百合特有的颜色、斑点、文案、替代文本或测验措辞保持不变。将所有依赖变量的内容和模型参数一起放在 src/content.ts 中,并针对提供的值重写它们。
- 不得自动播放旋转或授粉,不得强制指针锁定,不得使拖拽成为操作课程的唯一方式,也不得忽略 prefers-reduced-motion。所有控件都需要键盘和触摸等效操作以及可见的焦点状态。
- 不得让标签过度重叠、偏离其解剖锚点、捕获本应传给画布的指针事件,或使测验依赖于选择 3D 网格。提供等效的文本部件列表和 SVG 回退方案。
- 不得创建额外路由、裸目录链接、源映射、复制的 src 目录、SEO 元数据、Open Graph 标签、JSON-LD、站点地图、日期、定价、虚假计数器或促销模板库文案。仅使用纯 [BRAND] 标题、favicon、指定的哈希路由和可选的 [CREDIT] 页脚链接。
- 不得使 dist/ 超过 20 MB。使用相对的生产资源路径,并在 1440×900 和 390×844 下验证 npm run build、index.html、#/anatomy、#/pollination 和 #/quiz,确保零控制台错误、无水平溢出,且解剖、授粉和测验流程正常工作。

---
Inspired by Flower Anatomy 3D Explainer — https://www.kimi.com/showcases/3dmake
— Prompt by VibeFather · https://vibefather.ai/t/flower-anatomy-3d-explainer · 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: "Flower Anatomy 3D Explainer"
colors:
  warm_paper: "#F5F1E8"
  botanical_ink: "#18342B"
  leaf: "#3E6B50"
  specimen_mist: "#E3ECE2"
  petal_coral: "#EEA095"
  petal_light: "#FFD7CA"
  pollen_gold: "#D99A2B"
  fine_line: "#B9C6B9"
  muted_text: "#64736A"
  chalk: "#FFFDF8"
typography:
  display_headlines_specimen_name_and_quiz_result: { family: "Fraunces", weights: [500, 600, 700] }
  body_copy_controls_labels_and_answer_choices: { family: "Inter", weights: [400, 500, 600, 700] }
  eyebrows_step_numbers_shortcuts_and_scientific_metadata: { family: "IBM Plex Mono", weights: [400, 500] }
spacing: "Use a 4px base unit with 8px control gaps, 16px card padding, 24px panel padding, and 32px desktop page gutters. Cap the shared shell at 1600px. Desktop chapter rail, stage, and inspector columns are 220px, minmax(0, 1fr), and 320px with 24px gaps. Keep 44px minimum touch targets and 12px minimum separation between projected labels."
radius: "Use 2px on small taxonomy chips, 8px on buttons, 14px on the stage and inspector, and fully circular geometry only for status dots and compact icon buttons. Avoid a dashboard made from many floating rounded cards."
---

# Flower Anatomy 3D Explainer — 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
- **Warm paper** `#F5F1E8` — Page background and quiet outer gutters
- **Botanical ink** `#18342B` — Headings, primary buttons, wordmark, and high-emphasis text
- **Leaf** `#3E6B50` — Stem, leaves, secondary controls, and active lesson markers
- **Specimen mist** `#E3ECE2` — Viewport backdrop and pale diagram surfaces
- **Petal coral** `#EEA095` — Default lily tepals and selected-part accents; derive a different specimen color when SPECIMEN changes
- **Petal light** `#FFD7CA` — Tepal inner faces, soft highlights, and pale selection washes
- **Pollen gold** `#D99A2B` — Anthers, pollen grains, pollination path, and quiz progress
- **Fine line** `#B9C6B9` — Hairline borders, leader lines, timeline tracks, and separators
- **Muted text** `#64736A` — Instructions, secondary facts, and metadata
- **Chalk** `#FFFDF8` — Cards, labels, and text placed on botanical ink

## Typography
- **Display headlines, specimen name, and quiz result** — Fraunces (OFL), weights 500/600/700. Self-host the font files.
- **Body copy, controls, labels, and answer choices** — Inter (OFL), weights 400/500/600/700. Self-host the font files.
- **Eyebrows, step numbers, shortcuts, and scientific metadata** — IBM Plex Mono (OFL), weights 400/500. Self-host the font files.

## Spacing & shape
- Spacing: Use a 4px base unit with 8px control gaps, 16px card padding, 24px panel padding, and 32px desktop page gutters. Cap the shared shell at 1600px. Desktop chapter rail, stage, and inspector columns are 220px, minmax(0, 1fr), and 320px with 24px gaps. Keep 44px minimum touch targets and 12px minimum separation between projected labels.
- Radius: Use 2px on small taxonomy chips, 8px on buttons, 14px on the stage and inspector, and fully circular geometry only for status dots and compact icon buttons. Avoid a dashboard made from many floating rounded cards.

## Motion
- On first load, ease the specimen from 96% scale and zero opacity to full scale and opacity over 600ms while the header and inspector fade in over 300ms; do not auto-rotate the flower.
- Use damped orbit controls with damping factor 0.08, limited zoom, and a restrained floor shadow. Dragging never selects text or scrolls the stage on touch; vertical page scrolling remains available outside the canvas.
- Animate dissection changes over 650ms with cubic-bezier(0.22, 1, 0.36, 1): tepals lift and rotate outward, stamens part, then the camera and clipping plane reveal the ovary. Keep every intermediate state interruptible by Previous, Next, Reset, or label selection.
- Project HTML labels from 3D anchor positions every frame and draw fine SVG leader lines to them. Update selection with a 160ms highlight and a soft target ring rather than bouncing labels.
- Crossfade chapter inspector content over 220ms without unmounting the canvas. Pollination is a deterministic 12-second sequence with play, pause, previous, next, replay, and 0.5x or 1x speed; never start it on page load.
- For prefers-reduced-motion, remove the entrance tween, idle motion, damping, camera tweens, and particle travel. Dissection and chapter changes become immediate, and pollination becomes four user-controlled static storyboard states with the same copy.
- Pause rendering when the document is hidden or the stage is offscreen. Cap pixel ratio at 1.75 desktop and 1.5 mobile, use one directional and one hemisphere light, avoid real-time shadow maps, and reuse pollen through InstancedMesh.

## Imagery
Create every visual in code: the flower, stem, leaves, pollen, ovary cutaway, leader lines, floor shadow, wordmark, favicon, and WebGL-fallback cross-section. Use no photographs, AI-generated images, downloaded models, HDRIs, image textures, people, or mascots. The default flower uses two alternating whorls of three curved coral tepals, six copper-gold anthers, a green central pistil, and a subtle procedural speckle pattern made from small geometry marks. A specimen change must update tepal silhouette, proportions, material colors, and decorative marks from src/content.ts; a tulip uses smoother cup-shaped unspotted tepals rather than inheriting lily speckles.

## Tone
Precise, calm, curious, and tactile, like a beautifully designed museum specimen station. Use direct verbs and short explanations. Avoid hype, gamified shouting, classroom clipart, childish mascots, fake scientific claims, and generic AI copy.

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

改成你自己的

  • 高中生物老师:将 BRAND 设置为你的课程名称,将 AUDIENCE 设置为一年级学生,并重写测验问题以匹配你的植物繁殖单元。
  • 大学植物学实验室:保留百合 SPECIMEN,将 AUDIENCE 设置为本科生,并在解剖步骤中收紧标签以使用正确的花卉术语。
  • 自然博物馆信息亭:将 BRAND 设置为展览名称,保持平静的语气,并引导游客将传粉章节作为简短的独立导览。
  • 园艺俱乐部或花园协会:将 SPECIMEN 切换为你的成员种植的花朵,调整其颜色和比例,并将测验重新定义为友好的自我检查。

花朵解剖 3D 讲解:常见问题

花朵解剖 3D 讲解实际教学习者什么?

花朵解剖 3D 讲解在单页中教授入门的花朵结构和繁殖。学习者环绕并缩放一个代码生成的标本,在四状态解剖中掀开六片花被片以露出子房,选择雄蕊、柱头、花柱、子房和胚珠的标签,然后跟随四阶段传粉序列,并完成五道题的测验,获得即时反馈和得分。

如何将花朵从百合更改为不同的标本?

设置 SPECIMEN 变量并重写所有依赖它的内容。模板将课程文案、测验措辞、标本颜色和模型参数放在一个内容文件中,因此更改 SPECIMEN 意味着更新花被片比例、材质颜色、描述和命名花朵的替代字符串。郁金香演示展示了相同的六片花被片结构,但颜色、比例和文案不同。

怎么用 AI 做一个花朵解剖 3D 讲解?

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

花朵解剖 3D 讲解模板的演示是哪个 AI 模型做的?

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