Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ skills/
web/temp/
doc/web-tutorial-plan.md
doc/todo.md
tmp/
.DS_Store
6 changes: 3 additions & 3 deletions tutorial/assets/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export const chapters = {
},
"model-policy": {
number: "A",
title: "不同大模型不是只换模型名",
navTitle: "不同大模型不是只换模型名",
title: "换个模型, 不只换 baseURL",
navTitle: "换个模型, 不只换 baseURL",
group: "topic",
file: "./chapters/model-policy.html",
ready: true,
Expand All @@ -151,7 +151,7 @@ export const chapters = {
reference: {
number: "—",
title: "Reference",
navTitle: "术语表、Prompt Pack 与验证手册",
navTitle: "设计模式",
group: "reference",
file: "./chapters/reference.html",
ready: true,
Expand Down
144 changes: 143 additions & 1 deletion tutorial/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -747,14 +747,16 @@ mark {
}

.figure {
margin: var(--space-6) 0;
margin: var(--space-8) auto;
max-width: 760px;
}

.figure figcaption {
margin-top: var(--space-3);
color: var(--color-text-faint);
font-size: var(--text-sm);
line-height: var(--leading-snug);
text-align: center;
}

.loop-map,
Expand Down Expand Up @@ -798,6 +800,146 @@ mark {
.flow-map {
display: grid;
gap: var(--space-3);
justify-items: center;
}

.flow-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-3);
width: 100%;
}

.flow-arrow {
color: var(--color-text-faint);
font-size: var(--text-lg);
}

/* 居中变体: 单行带箭头, 居中对齐 */
.flow-row--center {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-3);
width: 100%;
}

/* 居中变体: 树状 (1 父 → N 子) */
.flow-tree {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
width: 100%;
}

.flow-tree__children {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
gap: var(--space-4);
width: 100%;
}

.flow-tree__branch {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-2);
flex: 1 1 200px;
max-width: 280px;
}

.flow-tree__connector {
width: 2px;
height: var(--space-4);
background: var(--color-border-soft);
}

/* 居中变体: 2 列对比 (左旧右新) */
.flow-compare {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-4);
width: 100%;
}

.flow-compare__col {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-3);
border: 1px solid var(--color-border-soft);
border-radius: var(--radius-md);
background: var(--color-bg);
}

.flow-compare__col--bad {
border-color: #e8b4b8;
background: #fdf2f3;
}

.flow-compare__col--good {
border-color: var(--color-accent-soft);
background: var(--color-accent-bg);
}

.flow-compare__label {
font-weight: 600;
font-size: var(--text-sm);
text-align: center;
color: var(--color-text-faint);
text-transform: uppercase;
letter-spacing: 0.08em;
}

/* 居中变体: 层次栈 (上 → 下, 越来越具体) */
.flow-stack {
display: flex;
flex-direction: column;
gap: var(--space-3);
align-items: center;
width: 100%;
}

.flow-stack__layer {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-3) var(--space-4);
border: 1px solid var(--color-border-soft);
border-radius: var(--radius-md);
background: var(--color-bg);
width: 100%;
max-width: 600px;
}

.flow-stack__layer--stable {
border-color: var(--color-accent-soft);
background: var(--color-accent-bg);
}

.flow-stack__layer--dynamic {
border-color: #b8d4e8;
background: #f0f6fb;
}

.flow-stack__label {
font-size: var(--text-xs);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
color: var(--color-text-faint);
}

.flow-stack__arrow {
color: var(--color-text-faint);
font-size: var(--text-xl);
text-align: center;
}

.flow-row {
Expand Down
Loading
Loading