design: 设计系统重组为四册独立文档——颜色3页/符号形状3页/组件4页/样例2页;build.sh 支持子目录

This commit is contained in:
cqh963852 committed 2026-10-05 00:36:01 +08:00
1 parent f6c4089cb8
commit d3b9478c53
13 files changed
+1266 -544

No files matched your search

@@ -0,0 +1,279 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>设计系统 · 01 颜色 · stack idealjs</title>
<style>
@page { size: 1280px 800px; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; width: 1280px; background: #f0f0ef;
font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
color: #1a1a1a; -webkit-font-smoothing: antialiased;
}
.page { width: 1280px; height: 800px; position: relative; background: #f0f0ef; overflow: hidden; page-break-after: always; }
.page:last-child { page-break-after: auto; }
@media screen {
html { height: auto; display: flex; justify-content: center; background: #f0f0ef; }
body { transform-origin: top center; scale: min(1, calc(100vw / 1280px)); margin: 0 auto; box-shadow: 0 0 48px rgba(15, 23, 42, 0.18); }
}
.pagenum { position: absolute; bottom: 26px; right: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 2px; }
.footline { position: absolute; bottom: 26px; left: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 1px; }
.story-head { position: absolute; top: 36px; left: 40px; right: 40px; }
.story-head .tag {
display: inline-block; font-size: 15px; font-weight: 700; color: #6d28d9;
background: #efe6fb; border-radius: 8px; padding: 3px 12px;
font-family: "DejaVu Sans Mono", "Noto Sans CJK SC", monospace;
}
.story-head h2 { margin: 8px 0 4px; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.story-head .desc { font-size: 14.5px; color: #6b6b6b; }
.canvas { background: #fbfbfa; border: 1px dashed #cfcfcd; border-radius: 18px; padding: 20px 22px; position: absolute; }
.panel { background: #ffffff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(26,26,26,0.06); }
.panel h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.note .idx {
flex: none; width: 22px; height: 22px; border-radius: 50%;
background: #1a1a1a; color: #ffffff; font-size: 13px; font-weight: 700;
display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.note .txt { font-size: 13px; line-height: 1.55; color: #3d3d3d; }
.note .txt b { color: #1a1a1a; }
.sec-label { font-size: 13.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.sec-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: #6b6b6b; margin-left: 8px; }
.pair { display: flex; border: 2px solid #111111; border-radius: 12px; overflow: hidden; }
.pair div { width: 88px; height: 46px; }
.cchip { min-width: 0; }
.cchip .b { height: 46px; border-radius: 10px; border: 2px solid #111111; }
.cchip .n { font-size: 10.5px; font-weight: 700; margin-top: 5px; white-space: nowrap; }
.cchip .h { font-family: "DejaVu Sans Mono", monospace; font-size: 9px; color: #6b6b6b; white-space: nowrap; }
.okmk { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.ok { background: #4ecdc4; color: #111; border: 2px solid #111; }
.bad { background: #ff6b6b; color: #fff9f0; border: 2px solid #111; }
</style>
</head>
<body>
<!-- ================= P1 色彩基础 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Colors /&gt; 1/3</span>
<h2>颜色 · 基础</h2>
<div class="desc">鲜艳与碰撞是情绪燃料,黑描边是收束,纸色是阅读的安静。三个组成部分:撞色对、中性阶、分工。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">撞色对 <i>鲜艳的全部来源——共三对六色,相邻必撞</i></div>
<div style="display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-bottom:8px;">
<div>
<div class="pair"><div style="background:#ff6b6b;"></div><div style="background:#4ecdc4;"></div></div>
<div style="font-size:10.5px; font-weight:700; margin-top:6px;">对 1 · coral × teal</div>
<div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FF6B6B × #4ECDC4</div>
<div style="font-size:10px; color:#555; margin-top:3px; line-height:1.5;">主用对:课程相框与主图形。</div>
</div>
<div>
<div class="pair"><div style="background:#ffd93d;"></div><div style="background:#a78bfa;"></div></div>
<div style="font-size:10.5px; font-weight:700; margin-top:6px;">对 2 · mustard × violet</div>
<div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FFD93D × #A78BFA</div>
<div style="font-size:10px; color:#555; margin-top:3px; line-height:1.5;">辅助对:指派与脱靶等警示类。</div>
</div>
<div>
<div class="pair"><div style="background:#ff8fab;"></div><div style="background:#5b8def;"></div></div>
<div style="font-size:10.5px; font-weight:700; margin-top:6px;">对 3 · pink × blue</div>
<div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FF8FAB × #5B8DEF</div>
<div style="font-size:10px; color:#555; margin-top:3px; line-height:1.5;">点缀对:代理区与散落形状。</div>
</div>
</div>
<div style="font-size:11.5px; color:#3d3d3d; line-height:1.6; margin-bottom:18px; border-top:1px solid #ececea; padding-top:10px;">
<b>相邻必撞</b>:任何相邻的两个鲜艳色块必须来自<b>不同撞色对</b>;同对两色只允许出现在同一物件的两端(如撞色对样票本身)。鲜艳总面积一屏 ≤ 10%。
</div>
<div class="sec-label">中性阶 <i>纸的世界——字、边、投影、底</i></div>
<div style="display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-bottom:18px;">
<div class="cchip"><div class="b" style="background:#111111;"></div><div class="n">ink</div><div class="h">#111111</div><div style="font-size:9.5px; color:#8a8a8a; margin-top:2px; line-height:1.45;">描边 2px / 标题正文 / 硬投影 / 站点描边</div></div>
<div class="cchip"><div class="b" style="background:#fff9f0;"></div><div class="n">paper</div><div class="h">#FFF9F0</div><div style="font-size:9.5px; color:#8a8a8a; margin-top:2px; line-height:1.45;">卡面 / 页面大底 / 票券面</div></div>
<div class="cchip"><div class="b" style="background:#ffffff;"></div><div class="n">stack-1</div><div class="h">#FFFFFF</div><div style="font-size:9.5px; color:#8a8a8a; margin-top:2px; line-height:1.45;">纸叠亮边(卡片第一层 3px)</div></div>
<div class="cchip"><div class="b" style="background:#eadfc4;"></div><div class="n">stack-2</div><div class="h">#EADFC4</div><div style="font-size:9.5px; color:#8a8a8a; margin-top:2px; line-height:1.45;">纸叠暗层(卡片第二层 5px)</div></div>
</div>
<div class="sec-label">色彩分工 <i>三层各就各位</i></div>
<table style="width:100%; border-collapse:collapse; font-size:11.5px; color:#3d3d3d;">
<tr style="border-bottom:2px solid #d5d5d3;">
<th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">层</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">用色</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">承载</th>
</tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">背景层</td><td style="padding:6px 8px 6px 0;">paper 纯色</td><td style="padding:6px 8px 6px 0;">整页与画布底,永不鲜艳</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">物件层</td><td style="padding:6px 8px 6px 0;">paper 面+ink 边+纸叠边</td><td style="padding:6px 8px 6px 0;">课程卡、票券、脱靶注</td></tr>
<tr><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">强调层</td><td style="padding:6px 8px 6px 0;">撞色对六色(黑描边内)</td><td style="padding:6px 8px 6px 0;">16:9 相框、语义形状、站点</td></tr>
</table>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>色彩立场</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>为什么鲜艳碰撞</b>:教程漫长,撞色给持续的情绪燃料与章节识别度。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>为什么黑描边</b>:无收束的鲜艳会散架;2px ink 让一切彩色变"印刷品"。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>为什么纸底</b>:阅读区永远安静;鲜艳只出现在被框住的局部。</span></div>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>鲜艳预算</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">一屏鲜艳面积 <b>≤ 10%</b>(相框+形状+站点合计)。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">同一视口内<b>每对至多两处</b>主用,避免轮转失衡。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>禁色彩渐变</b>:立体感只来自描边、硬投影、内阴影。</span></div>
</div>
<div class="footline">设计系统 · 01 颜色 · stack idealjs</div>
<div class="pagenum">01 / 03</div>
</div>
<!-- ================= P2 章节色与轮换 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Colors /&gt; 2/3</span>
<h2>颜色 · 章节色与轮换</h2>
<div class="desc">六章六色是章节的身份,只进 16:9 相框与图标瓦;站点四色沿先后线轮换。身份不承载状态。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">章节色 <i>六章六色——相框底与图标瓦同源</i></div>
<div style="display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-bottom:18px;">
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#ff6b6b; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px; box-shadow: inset 0 2px 5px rgba(26,26,26,0.30);">🌐</div>
<div><div style="font-size:11.5px; font-weight:800;">ch1 快速开始</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FF6B6B · 对1</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">入门起点</div></div>
</div>
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#ff8fab; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px;">⚛️</div>
<div><div style="font-size:11.5px; font-weight:800;">ch2 React</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FF8FAB · 对3</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">界面主线</div></div>
</div>
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#ffd93d; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px;">🧱</div>
<div><div style="font-size:11.5px; font-weight:800;">ch3 更多示例</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#FFD93D · 对2</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">拼装练习</div></div>
</div>
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#4ecdc4; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px;">📦</div>
<div><div style="font-size:11.5px; font-weight:800;">ch4 更多</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#4ECDC4 · 对1</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">扩展集</div></div>
</div>
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#5b8def; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px;">🔗</div>
<div><div style="font-size:11.5px; font-weight:800;">ch5 全栈基础</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#5B8DEF · 对3</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">连接与部署</div></div>
</div>
<div style="display:flex; gap:10px; align-items:center; background:#ffffff; border:2px solid #111; border-radius:12px; padding:10px;">
<div style="width:86px; height:52px; background:#a78bfa; border:2px solid #111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px;">🧠</div>
<div><div style="font-size:11.5px; font-weight:800;">ch6 高级教程</div><div style="font-family:'DejaVu Sans Mono',monospace; font-size:9px; color:#6b6b6b;">#A78BFA · 对2</div><div style="font-size:9.5px; color:#8a7a5c; margin-top:2px;">进阶专题</div></div>
</div>
</div>
<div class="sec-label">站点轮换色 <i>只上先后线(实线),四色沿线路轮换</i></div>
<div style="display:flex; gap:26px; align-items:center; margin-bottom:18px;">
<svg width="380" height="36" viewBox="0 0 380 36">
<path d="M 8 18 H 372" fill="none" stroke="#111111" stroke-width="2.5"/>
<circle cx="8" cy="18" r="6" fill="#ffd93d" stroke="#111" stroke-width="2"/>
<circle cx="128" cy="18" r="6" fill="#4ecdc4" stroke="#111" stroke-width="2"/>
<circle cx="248" cy="18" r="6" fill="#ff8fab" stroke="#111" stroke-width="2"/>
<circle cx="372" cy="18" r="6" fill="#ff6b6b" stroke="#111" stroke-width="2"/>
</svg>
<div style="font-size:11.5px; color:#3d3d3d; line-height:1.6;">描边 2px ink,<b>r=6</b>;<b>同色不相邻</b>;虚线(相关)与点线(同族)<b>不带站点</b>。</div>
</div>
<div class="sec-label">收束示例 <i>鲜艳 × 黑描边 × 纸底的合作</i></div>
<div style="display:flex; gap:14px; align-items:center;">
<div style="width:132px; height:68px; background:#ff6b6b; border:3px solid #111; border-radius:9px; box-shadow: inset 0 3px 8px rgba(26,26,26,0.30); display:flex; align-items:center; justify-content:center; font-size:24px;">🌐</div>
<div style="width:132px; height:68px; background:#ff8fab; border:3px solid #111; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:24px;">⚛️</div>
<div style="font-size:11.5px; color:#3d3d3d; line-height:1.6; flex:1;">相邻相框取不同撞色对(ch1 coral × ch2 pink 跨对相邻);黑描边与内阴影把鲜艳压回纸面。立体感来自<b>描边+内阴影</b>,不来自渐变。</div>
</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>章节色规则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>只进相框</b>:16:9 预期区底色与图标瓦;卡面永远纸色。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>身份非状态</b>:章节色不表达 done / 进行中;状态用形状。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">3</span><span class="txt"><b>相邻即撞色</b>:并排卡片的相框色跨撞色对取色。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">4</span><span class="txt"><b>新增章节</b>:优先复用六色;超六章再扩第七色(新撞色对)。</span></div>
</div>
<div style="position:absolute; top: 436px; left: 948px; width: 292px;" class="panel">
<h3>状态即形状,不是颜色</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>完成=打孔</b>:票券沿撕线打双孔;未开始无孔。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>进度=积木点</b>:卡头点列,实心=已学。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>无锁</b>:状态是推荐不是门槛,卡片永远可入(死原则)。</span></div>
</div>
<div class="footline">设计系统 · 01 颜色 · stack idealjs</div>
<div class="pagenum">02 / 03</div>
</div>
<!-- ================= P3 规则与反例 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Colors /&gt; 3/3</span>
<h2>颜色 · 规则与反例</h2>
<div class="desc">每条规则配一对正反示例:左边是禁止的,右边是正确的。审查时逐条对照即可。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div style="display:flex; flex-direction:column; gap:18px;">
<div style="display:flex; gap:16px; align-items:center;">
<span class="okmk bad">✗</span>
<div style="display:flex; border:2px solid #111; border-radius:10px; overflow:hidden;"><div style="width:88px; height:48px; background:#ff6b6b;"></div><div style="width:88px; height:48px; background:#ff6b6b;"></div></div>
<span style="font-size:10px; color:#8a8a8a; width:30px;">vs</span>
<span class="okmk ok">✓</span>
<div style="display:flex; border:2px solid #111; border-radius:10px; overflow:hidden;"><div style="width:88px; height:48px; background:#ff6b6b;"></div><div style="width:88px; height:48px; background:#4ecdc4;"></div></div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.55;"><b>相邻必撞色</b>:同色相邻失去碰撞(✗);相邻鲜艳必须来自不同撞色对(✓)。</div>
</div>
<div style="display:flex; gap:16px; align-items:center;">
<span class="okmk bad">✗</span>
<div style="width:176px; height:48px; background:#ffd93d; border-radius:10px;"></div>
<span style="font-size:10px; color:#8a8a8a; width:30px;">vs</span>
<span class="okmk ok">✓</span>
<div style="width:176px; height:48px; background:#ffd93d; border:2px solid #111; border-radius:10px;"></div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.55;"><b>黑描边收束</b>:无描边的鲜艳漂浮刺眼(✗);一切鲜艳以 2px ink 描边为界(✓)。</div>
</div>
<div style="display:flex; gap:16px; align-items:center;">
<span class="okmk bad">✗</span>
<div style="width:176px; height:48px; background:#4ecdc4; border:2px solid #111; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#111;">大底鲜艳,字被淹没</div>
<span style="font-size:10px; color:#8a8a8a; width:30px;">vs</span>
<span class="okmk ok">✓</span>
<div style="width:176px; height:48px; background:#fff9f0; border:2px solid #111; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#111;">纸底安放正文</div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.55;"><b>大底纸色</b>:背景与正文区永远 paper(✓);鲜艳只出现在相框等局部(✗ 为反例)。</div>
</div>
<div style="display:flex; gap:16px; align-items:center;">
<span class="okmk bad">✗</span>
<div style="width:176px; height:48px; border:2px solid #111; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:10.5px; color:#8a8a8a;">渐变按钮(本稿不渲染,示意)</div>
<span style="font-size:10px; color:#8a8a8a; width:30px;">vs</span>
<span class="okmk ok">✓</span>
<div style="width:176px; height:48px; background:#ff6b6b; border:2px solid #111; border-radius:10px; box-shadow: 4px 4px 0 #111; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff9f0;">纯色+硬投影</div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.55;"><b>禁色彩渐变</b>:任何色彩过渡都不用(✗);立体感来自描边、硬投影与内阴影(✓)。</div>
</div>
<div style="display:flex; gap:16px; align-items:center;">
<span class="okmk bad">✗</span>
<div style="width:176px; height:48px; background:#fff9f0; border:2px solid #111; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#15803d;">✓ 完成(绿色状态)</div>
<span style="font-size:10px; color:#8a8a8a; width:30px;">vs</span>
<span class="okmk ok">✓</span>
<div style="width:176px; height:48px; background:#fff9f0; border:2px solid #111; border-radius:10px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:11px; font-weight:800; color:#111;">● ● ● ○<span style="font-weight:400; color:#8a7a5c;">+打孔票</span></div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.55;"><b>状态即形状</b>:不用颜色表达完成(✗ 绿 pill 是旧方案);完成=打孔+积木实心点(✓)。</div>
</div>
</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>用色规则速查</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>鲜艳预算</b> ≤ 10%/屏。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>相邻必撞色</b>(跨对取色)。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">3</span><span class="txt"><b>黑描边收束</b> 2px ink。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">4</span><span class="txt"><b>大底纸色</b>,白只作纸叠亮边。</span></div>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>审查方法</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">截图转灰度:层级仍可辨=描边结构成立。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">数鲜艳面积:框选相框+形状+站点,估算占比。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt">找同色相邻:任何两块同色鲜艳贴在一起即违规。</span></div>
</div>
<div class="footline">设计系统 · 01 颜色 · stack idealjs</div>
<div class="pagenum">03 / 03</div>
</div>
</body>
</html>
Binary file not shown.
@@ -0,0 +1,337 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>设计系统 · 02 符号形状 · stack idealjs</title>
<style>
@page { size: 1280px 800px; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; width: 1280px; background: #f0f0ef;
font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
color: #1a1a1a; -webkit-font-smoothing: antialiased;
}
.page { width: 1280px; height: 800px; position: relative; background: #f0f0ef; overflow: hidden; page-break-after: always; }
.page:last-child { page-break-after: auto; }
@media screen {
html { height: auto; display: flex; justify-content: center; background: #f0f0ef; }
body { transform-origin: top center; scale: min(1, calc(100vw / 1280px)); margin: 0 auto; box-shadow: 0 0 48px rgba(15, 23, 42, 0.18); }
}
.pagenum { position: absolute; bottom: 26px; right: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 2px; }
.footline { position: absolute; bottom: 26px; left: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 1px; }
.story-head { position: absolute; top: 36px; left: 40px; right: 40px; }
.story-head .tag {
display: inline-block; font-size: 15px; font-weight: 700; color: #6d28d9;
background: #efe6fb; border-radius: 8px; padding: 3px 12px;
font-family: "DejaVu Sans Mono", "Noto Sans CJK SC", monospace;
}
.story-head h2 { margin: 8px 0 4px; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.story-head .desc { font-size: 14.5px; color: #6b6b6b; }
.canvas { background: #fbfbfa; border: 1px dashed #cfcfcd; border-radius: 18px; padding: 20px 22px; position: absolute; }
.panel { background: #ffffff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(26,26,26,0.06); }
.panel h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.note .idx {
flex: none; width: 22px; height: 22px; border-radius: 50%;
background: #1a1a1a; color: #ffffff; font-size: 13px; font-weight: 700;
display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.note .txt { font-size: 13px; line-height: 1.55; color: #3d3d3d; }
.note .txt b { color: #1a1a1a; }
table.spec { width: 100%; border-collapse: collapse; font-size: 12px; color: #3d3d3d; }
table.spec th { text-align: left; font-weight: 700; color: #1a1a1a; border-bottom: 2px solid #d5d5d3; padding: 5px 8px 5px 0; }
table.spec td { border-bottom: 1px solid #ececea; padding: 4px 8px 4px 0; vertical-align: top; }
table.spec td.k { color: #1a1a1a; font-weight: 600; white-space: nowrap; }
.sec-label { font-size: 13.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.sec-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: #6b6b6b; margin-left: 8px; }
.shapechip .box {
width: 52px; height: 52px; margin: 0 auto; border-radius: 12px; background: #ffffff;
border: 2px solid #111111; display: flex; align-items: center; justify-content: center;
}
.shapechip .sn { font-size: 12px; font-weight: 800; margin-top: 6px; text-align: center; }
.shapechip .sm { font-size: 10px; color: #6b6b6b; margin-top: 2px; line-height: 1.4; text-align: center; }
.shapechip .src { font-size: 9px; color: #8a8a8a; margin-top: 3px; text-align: center; }
.msline { stroke: #111111; stroke-width: 2.5; fill: none; }
.msstation { stroke: #111111; stroke-width: 2; }
.msticket {
width: 216px; background: #fff9f0; border: 2px solid #111111; border-radius: 12px;
box-shadow: 5px 5px 0 #111111; position: relative; display: flex; align-items: stretch;
}
.msticket .tl {
width: 56px; border: 2px solid #111111; border-left: none; border-radius: 10px 0 0 10px;
display: flex; align-items: center; justify-content: center; font-size: 22px; margin-left: -2px;
}
.msticket .tb { flex: 1; padding: 9px 10px; }
.msticket .tb b { font-size: 12.5px; }
.msticket .tb .no { font-family: "DejaVu Sans Mono", monospace; font-size: 8.5px; color: #8a7a5c; margin-top: 3px; }
.msticket .stub {
width: 42px; border-left: 1.5px dashed #111111;
display: flex; align-items: center; justify-content: center;
font-family: "DejaVu Sans Mono", monospace; font-size: 9.5px; color: #8a7a5c;
}
.msticket.pk::before, .msticket.pk::after {
content: ""; position: absolute; left: 162px; width: 13px; height: 13px;
border-radius: 50%; background: #fbfbfa; border: 2px solid #111111;
}
.msticket.pk::before { top: -9px; }
.msticket.pk::after { bottom: -9px; }
</style>
</head>
<body>
<!-- ================= P1 语义形状 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Symbols /&gt; 1/3</span>
<h2>符号、形状 · 语义形状</h2>
<div class="desc">七个孟菲斯形状对内容下定义,全部取自 ai-era-tutorial 的概念。散落于空白——装饰即语义,无义不落。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div style="display:grid; grid-template-columns:repeat(4, 1fr); gap:14px;">
<div class="shapechip">
<div class="box"><svg width="30" height="28"><path d="M15 2 L29 26 L1 26 Z" fill="#ff6b6b" stroke="#111" stroke-width="2"/></svg></div>
<div class="sn">▲ 靶子</div>
<div class="sm">目标——这一章要做成什么事<br>卡头打头,教程最前</div>
<div class="src">skill · 靶子先行</div>
</div>
<div class="shapechip">
<div class="box"><svg width="30" height="28"><circle cx="9" cy="14" r="6" fill="#ffd93d" stroke="#111" stroke-width="2"/><circle cx="22" cy="14" r="6" fill="#fff9f0" stroke="#111" stroke-width="2"/></svg></div>
<div class="sn">● 积木</div>
<div class="sm">完成目标的零件;点列实心=已学<br>空心=未学</div>
<div class="src">skill · 积木清单</div>
</div>
<div class="shapechip">
<div class="box"><svg width="30" height="28"><circle cx="15" cy="14" r="9" fill="none" stroke="#4ecdc4" stroke-width="4"/><circle cx="15" cy="14" r="9" fill="none" stroke="#111" stroke-width="1.5"/></svg></div>
<div class="sn">○ 预期</div>
<div class="sm">做成之后可观察、可核对的样子<br>16:9 相框角标</div>
<div class="src">skill · 预期结果</div>
</div>
<div class="shapechip">
<div class="box"><svg width="32" height="28"><path d="M2 18 q3.5 -14 7 0 t7 0 t7 0 t7 0" fill="none" stroke="#5b8def" stroke-width="3" stroke-linecap="round"/></svg></div>
<div class="sn">~ 代理区</div>
<div class="sm">无学习价值的过程,交给 agent<br>只给预期与验收</div>
<div class="src">skill · 每步先分类</div>
</div>
<div class="shapechip">
<div class="box"><svg width="30" height="28"><rect x="2" y="10" width="26" height="9" fill="#ff8fab" stroke="#111" stroke-width="2"/></svg></div>
<div class="sn">▬ 价值区</div>
<div class="sm">有学习价值,过程就地写清<br>露出认知基础</div>
<div class="src">skill · 每步先分类</div>
</div>
<div class="shapechip">
<div class="box"><svg width="30" height="28"><path d="M 15 26 L 10 21 L 20 16 L 10 11 L 20 6 L 15 2" fill="none" stroke="#ff6b6b" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/></svg></div>
<div class="sn">⌇ 脱靶</div>
<div class="sm">竖立颤抖——此处可能脱靶<br>要重点关注</div>
<div class="src">skill · 脱靶提醒</div>
</div>
<div class="shapechip">
<div class="box"><svg width="30" height="28"><path d="M15 3 v22 M4 14 h22" stroke="#a78bfa" stroke-width="4" stroke-linecap="round"/><path d="M15 3 v22 M4 14 h22" stroke="#111" stroke-width="1.2"/></svg></div>
<div class="sn">+ 指派</div>
<div class="sm">位置给坐标、预期当尺子、场景管巩固<br>三行票承载</div>
<div class="src">skill · 指派学习</div>
</div>
<div style="background:#111; border-radius:14px; padding:14px; display:flex; flex-direction:column; justify-content:center;">
<div style="font-size:12px; font-weight:800; color:#ffd93d;">一横一竖对举</div>
<div style="font-size:10.5px; color:#c9c9c7; line-height:1.6; margin-top:6px;">代理区=横波(蓝),脱靶=竖抖(红)。方向+色相双重区分,永不混淆。</div>
</div>
</div>
<div class="sec-label" style="margin-top:18px;">散落规则 <i>形状如何落在空白里</i></div>
<table style="width:100%; border-collapse:collapse; font-size:11.5px; color:#3d3d3d;">
<tr style="border-bottom:2px solid #d5d5d3;">
<th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">规则</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">说明</th>
</tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a; width:130px;">密度 ≤ 8 / 屏</td><td style="padding:6px 8px 6px 0;">散落形状总数控制,避免噪化。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">只在空白</td><td style="padding:6px 8px 6px 0;">永不压字、压卡、压线;与内容保持 ≥ 8px 间距。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">语境相关</td><td style="padding:6px 8px 6px 0;">页面里的散落形状应与附近内容语义呼应(脱靶注附近放 ⌇)。</td></tr>
<tr><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">尺寸阶梯</td><td style="padding:6px 8px 6px 0;">主标记 28-44px;装饰散落 16-24px;线内标记跟随线规格。</td></tr>
</table>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>形状 → 语义</h3>
<table class="spec">
<tr><th>形状</th><th>语义</th><th>出处</th></tr>
<tr><td class="k">▲ 三角</td><td>目标</td><td>靶子先行</td></tr>
<tr><td class="k">● 实心圆</td><td>积木(已学)</td><td>积木清单</td></tr>
<tr><td class="k">○ 圆环</td><td>预期结果</td><td>可核对的样子</td></tr>
<tr><td class="k">~ 横波</td><td>代理区</td><td>交给 agent</td></tr>
<tr><td class="k">▬ 实心条</td><td>价值区</td><td>就地写过程</td></tr>
<tr><td class="k">⌇ 竖抖</td><td>脱靶警示</td><td>重点关注</td></tr>
<tr><td class="k">+ 十字</td><td>指派学习</td><td>位置/预期/场景</td></tr>
</table>
</div>
<div style="position:absolute; top: 428px; left: 948px; width: 292px;" class="panel">
<h3>符号规则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>装饰即语义</b>:无含义的形状不落版面。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>形状即内容定义</b>:读者看到形状即知内容类型。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>黑描边 2px</b>:形状一律描边(细线装饰除外)。</span></div>
</div>
<div class="footline">设计系统 · 02 符号形状 · stack idealjs</div>
<div class="pagenum">01 / 03</div>
</div>
<!-- ================= P2 线条形式 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Symbols /&gt; 2/3</span>
<h2>符号、形状 · 线条形式</h2>
<div class="desc">形式即含义:实线=先后、虚线=相关、点线=同族、波浪带=代理交接。拓扑规则全形式通用。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div style="display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; margin-bottom:16px;">
<div style="background:#fff; border:2px solid #111; border-radius:14px; padding:14px 16px;">
<svg width="384" height="56" viewBox="0 0 384 56">
<rect x="8" y="10" width="2" height="40" fill="#c9c9c7"/><rect x="374" y="4" width="2" height="24" fill="#c9c9c7"/>
<path d="M 9 44 H 84 A 8 8 0 0 0 92 36 V 28 A 8 8 0 0 1 100 20 H 374" fill="none" stroke="#111" stroke-width="2.5"/>
<circle cx="9" cy="44" r="5.5" fill="#ffd93d" stroke="#111" stroke-width="2"/>
<circle cx="375" cy="20" r="5.5" fill="#4ecdc4" stroke="#111" stroke-width="2"/>
</svg>
<div style="font-size:13px; font-weight:800; margin-top:4px;">实线 = 先后</div>
<div style="font-size:11px; color:#555; line-height:1.55; margin-top:3px;">推荐顺序,主线。2.5px ink。<b>唯一带站点</b>的线形;分流/并线用直角步进。</div>
</div>
<div style="background:#fff; border:2px solid #111; border-radius:14px; padding:14px 16px;">
<svg width="384" height="56" viewBox="0 0 384 56">
<rect x="8" y="20" width="2" height="20" fill="#c9c9c7"/><rect x="374" y="20" width="2" height="20" fill="#c9c9c7"/>
<path d="M 9 30 H 375" fill="none" stroke="#111" stroke-width="2" stroke-dasharray="4 2"/>
</svg>
<div style="font-size:13px; font-weight:800; margin-top:4px;">虚线 = 相关</div>
<div style="font-size:11px; color:#555; line-height:1.55; margin-top:3px;">内容互参,无顺序。2px,4:2 点划。<b>无站点</b>,两端直抵卡边。</div>
</div>
<div style="background:#fff; border:2px solid #111; border-radius:14px; padding:14px 16px;">
<svg width="384" height="56" viewBox="0 0 384 56">
<rect x="8" y="20" width="2" height="20" fill="#c9c9c7"/><rect x="374" y="20" width="2" height="20" fill="#c9c9c7"/>
<path d="M 9 30 H 375" fill="none" stroke="#111" stroke-width="2.4" stroke-dasharray="0.1 6" stroke-linecap="round"/>
</svg>
<div style="font-size:13px; font-weight:800; margin-top:4px;">点线 = 同族</div>
<div style="font-size:11px; color:#555; line-height:1.55; margin-top:3px;">同一积木家族的章节互连(教一块带一族)。圆点端帽 6px 间距。<b>无站点</b>。</div>
</div>
<div style="background:#fff; border:2px solid #111; border-radius:14px; padding:14px 16px;">
<svg width="384" height="56" viewBox="0 0 384 56">
<path d="M 12 28 q 10 -22 20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0 t20 0" fill="none" stroke="#5b8def" stroke-width="3" stroke-linecap="round"/>
</svg>
<div style="font-size:13px; font-weight:800; margin-top:4px;">波浪带 = 代理交接</div>
<div style="font-size:11px; color:#555; line-height:1.55; margin-top:3px;">agent 边界的区域标记(蓝),<b>不连线</b>——是地带不是路径。与 ~ 形状同源。</div>
</div>
</div>
<div class="sec-label">拓扑规则 <i>全形式通用——线的几何纪律</i></div>
<table style="width:100%; border-collapse:collapse; font-size:11.5px; color:#3d3d3d;">
<tr style="border-bottom:2px solid #d5d5d3;">
<th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">规则</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">规格</th>
</tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a; width:150px;">横平竖直</td><td style="padding:6px 8px 6px 0;">走向只有水平与垂直;无斜线、无大弧。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">转角 R8</td><td style="padding:6px 8px 6px 0;">转折用 R8 小圆角直角步进。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">并行不合并</td><td style="padding:6px 8px 6px 0;">多条并行线逐条渲染,间距 4px,不合成一条。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">线止于卡边</td><td style="padding:6px 8px 6px 0;">起止都落在卡边或站点/胶囊边界,不钻入、不悬空。</td></tr>
<tr><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">不共享线段</td><td style="padding:6px 8px 6px 0;">分流的两线只在分岔点相触,随即分开(避免 T 形合流感)。</td></tr>
</table>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>线形速查</h3>
<table class="spec">
<tr><th>形式</th><th>含义</th><th>站点</th></tr>
<tr><td class="k">实线 2.5px</td><td>先后</td><td>有(四色轮换)</td></tr>
<tr><td class="k">虚线 4:2</td><td>相关</td><td>无</td></tr>
<tr><td class="k">点线 6 间距</td><td>同族</td><td>无</td></tr>
<tr><td class="k">波浪带</td><td>代理交接</td><td>—(区域)</td></tr>
</table>
<div style="font-size:12px; color:#555; line-height:1.6; margin-top:10px;">同两张卡可以同时存在<b>实线(先后)与虚线(相关)</b>——顺序与互参不互斥。</div>
</div>
<div style="position:absolute; top: 420px; left: 948px; width: 292px;" class="panel">
<h3>用线原则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>线不可缺</b>:章节之间必有关系可读。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>先实后虚</b>:主链走实线;相关/同族是补充。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>一屏一线形不超 3 类</b>:实+虚+点已满,波浪带另算区域。</span></div>
</div>
<div class="footline">设计系统 · 02 符号形状 · stack idealjs</div>
<div class="pagenum">02 / 03</div>
</div>
<!-- ================= P3 站点、胶囊与票券 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Symbols /&gt; 3/3</span>
<h2>符号、形状 · 站点、胶囊与票券</h2>
<div class="desc">关系上的铆钉与凭证:站点半嵌卡边(左贴描边、右骑黑影外缘),多线卡口用胶囊,完成用打孔票。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">站点 <i>只上先后线——r6 描边圆点,四色轮换</i></div>
<div style="display:flex; gap:22px; align-items:flex-start; margin-bottom:18px;">
<svg width="400" height="80" viewBox="0 0 400 80">
<rect x="100" y="6" width="30" height="68" fill="#fff9f0" stroke="#111" stroke-width="2" rx="5"/>
<rect x="290" y="6" width="30" height="68" fill="#fff9f0" stroke="#111" stroke-width="2" rx="5"/>
<rect x="280" y="12" width="8" height="56" fill="#111111"/>
<path d="M 100 40 H 280" fill="none" stroke="#111" stroke-width="2.5"/>
<circle class="msstation" cx="100" cy="40" r="6" fill="#ffd93d"/>
<circle class="msstation" cx="284" cy="40" r="6" fill="#4ecdc4"/>
</svg>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.6;">
<b>半嵌卡边</b>:圆心落在卡边上。<br>
<b>左贴描边</b>(图左卡右侧无投影);<b>右骑硬投影外缘</b>(图右)——描边外有 7px 黑影带,站点放在描边会被吞没。<br>
线从卡边/影缘出发;同色不相邻。
</div>
</div>
<div class="sec-label">胶囊 <i>多线入同一卡口时的站点形态</i></div>
<div style="display:flex; gap:22px; align-items:flex-start; margin-bottom:18px;">
<svg width="400" height="80" viewBox="0 0 400 80">
<path d="M 10 32 H 297" fill="none" stroke="#111" stroke-width="2.5"/>
<path d="M 10 36 H 297" fill="none" stroke="#111" stroke-width="2.5"/>
<path d="M 10 40 H 297" fill="none" stroke="#111" stroke-width="2.5"/>
<rect x="297" y="26" width="6" height="20" rx="3" fill="#ff6b6b" stroke="#111" stroke-width="2"/>
<rect x="360" y="12" width="2" height="56" fill="#c9c9c7"/>
</svg>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.6;">
<b>四条规则</b>:① 竖向 6×20,端头半圆(rx=3,胶囊体非椭圆);② 沿线束排列方向拉伸;③ 端头距最外侧线 ≥ 2× 线宽;④ <b>线止于胶囊边界</b>——圆弧自最外侧线起弯,线沿半径抵达弧起点。
</div>
</div>
<div class="sec-label">票券 <i>状态与指派的载体——完成即打孔</i></div>
<div style="display:flex; gap:24px; align-items:flex-start;">
<div class="msticket pk">
<div class="tl" style="background:#ff6b6b;">🌐</div>
<div class="tb"><b>快速开始</b><div class="no">No. 001 · 已完成(打孔)</div></div>
<div class="stub">№01</div>
</div>
<div class="msticket">
<div class="tl" style="background:#5b8def;">🔗</div>
<div class="tb"><b>全栈基础</b><div class="no">No. 005 · 未开始(无孔)</div></div>
<div class="stub" style="border-left-style:solid;">№05</div>
</div>
<div style="flex:1; font-size:11.5px; color:#3d3d3d; line-height:1.6;">
<b>完成=沿撕线打双孔</b>(上下半圆缺口);未开始撕线为实线、无孔。<br>
撕线=4:2 点划,与虚线同节奏但语境不同(裁剪线非关系线)。票号=章程序号。指派票复用同一票体(见 03 组件)。
</div>
</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>参数速查</h3>
<table class="spec">
<tr><th>元素</th><th>规格</th></tr>
<tr><td class="k">站点</td><td>r6 · 描边 2px · 四色轮换 · 半嵌卡边</td></tr>
<tr><td class="k">胶囊</td><td>6×20 · rx3 · 线止于边界 · 距线 ≥2× 线宽</td></tr>
<tr><td class="k">并行线</td><td>间距 4px · 逐条渲染</td></tr>
<tr><td class="k">票券</td><td>216×~70 · 撕线 4:2 · 打孔 ⌀13</td></tr>
</table>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>为什么半嵌</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">圆心骑卡边=「到达」的物理感:像铆钉钉入卡片。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">黑影外缘规则是实测教训:描边上的右站点会被投影带吞没。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt">虚线/点线无站点:相关与同族是「参考」不是「到达」。</span></div>
</div>
<div class="footline">设计系统 · 02 符号形状 · stack idealjs</div>
<div class="pagenum">03 / 03</div>
</div>
</body>
</html>
Binary file not shown.
@@ -0,0 +1,378 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>设计系统 · 03 组件 · stack idealjs</title>
<style>
@page { size: 1280px 800px; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; width: 1280px; background: #f0f0ef;
font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
color: #1a1a1a; -webkit-font-smoothing: antialiased;
}
.page { width: 1280px; height: 800px; position: relative; background: #f0f0ef; overflow: hidden; page-break-after: always; }
.page:last-child { page-break-after: auto; }
@media screen {
html { height: auto; display: flex; justify-content: center; background: #f0f0ef; }
body { transform-origin: top center; scale: min(1, calc(100vw / 1280px)); margin: 0 auto; box-shadow: 0 0 48px rgba(15, 23, 42, 0.18); }
}
.pagenum { position: absolute; bottom: 26px; right: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 2px; }
.footline { position: absolute; bottom: 26px; left: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 1px; }
.story-head { position: absolute; top: 36px; left: 40px; right: 40px; }
.story-head .tag {
display: inline-block; font-size: 15px; font-weight: 700; color: #6d28d9;
background: #efe6fb; border-radius: 8px; padding: 3px 12px;
font-family: "DejaVu Sans Mono", "Noto Sans CJK SC", monospace;
}
.story-head h2 { margin: 8px 0 4px; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.story-head .desc { font-size: 14.5px; color: #6b6b6b; }
.canvas { background: #fbfbfa; border: 1px dashed #cfcfcd; border-radius: 18px; padding: 20px 22px; position: absolute; }
.panel { background: #ffffff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(26,26,26,0.06); }
.panel h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.note .idx {
flex: none; width: 22px; height: 22px; border-radius: 50%;
background: #1a1a1a; color: #ffffff; font-size: 13px; font-weight: 700;
display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.note .txt { font-size: 13px; line-height: 1.55; color: #3d3d3d; }
.note .txt b { color: #1a1a1a; }
table.spec { width: 100%; border-collapse: collapse; font-size: 12px; color: #3d3d3d; }
table.spec th { text-align: left; font-weight: 700; color: #1a1a1a; border-bottom: 2px solid #d5d5d3; padding: 5px 8px 5px 0; }
table.spec td { border-bottom: 1px solid #ececea; padding: 4px 8px 4px 0; vertical-align: top; }
table.spec td.k { color: #1a1a1a; font-weight: 600; white-space: nowrap; }
table.spec code { font-family: "DejaVu Sans Mono", monospace; font-size: 11.5px; background: #f4f2fa; color: #6d28d9; border-radius: 5px; padding: 1px 5px; }
.sec-label { font-size: 13.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.sec-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: #6b6b6b; margin-left: 8px; }
.mscard {
background: #fff9f0; border: 2px solid #111111; border-radius: 14px;
box-shadow: 0 3px 0 #ffffff, 0 5px 0 #eadfc4, 7px 8px 0 #111111;
padding: 11px; position: relative;
}
.mscard .mszone {
border-radius: 8px; position: relative;
border: 3px solid #111111;
box-shadow: inset 0 3px 8px rgba(26,26,26,0.30), inset 0 -1px 0 rgba(255,255,255,0.55);
display: flex; align-items: center; justify-content: center;
}
.mscard .mst { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.mscard .mst .tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #111111; }
.mscard .mst b { font-size: 14px; flex: 1; color: #2b1d10; text-shadow: 0 1px 1px rgba(255,255,255,0.9); }
.mscard .dots { display: flex; gap: 4px; }
.mscard .dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #111111; background: #fff; }
.mscard .dots i.on { background: #111111; }
.mscard.hovering { transform: translateY(-6px); box-shadow: 0 3px 0 #ffffff, 0 5px 0 #eadfc4, 10px 11px 0 #111111; }
.entry-badge2 {
position: absolute; top: -11px; left: -11px; width: 24px; height: 24px; border-radius: 50%;
background: #111111; color: #ffd93d; font-size: 12px; font-weight: 800;
display: flex; align-items: center; justify-content: center; border: 2px solid #fff9f0;
}
.msticket {
background: #fff9f0; border: 2px solid #111111; border-radius: 12px;
box-shadow: 5px 5px 0 #111111; position: relative; display: flex; align-items: stretch;
}
.msticket .tl {
width: 56px; border: 2px solid #111111; border-left: none; border-radius: 10px 0 0 10px;
display: flex; align-items: center; justify-content: center; font-size: 22px; margin-left: -2px;
}
.msticket .tb { flex: 1; padding: 9px 10px; }
.msticket .tb b { font-size: 12.5px; }
.msticket .stub {
width: 42px; border-left: 1.5px dashed #111111;
display: flex; align-items: center; justify-content: center;
font-family: "DejaVu Sans Mono", monospace; font-size: 9.5px; color: #8a7a5c;
}
.msticket.pk::before, .msticket.pk::after {
content: ""; position: absolute; left: 202px; width: 13px; height: 13px;
border-radius: 50%; background: #fbfbfa; border: 2px solid #111111;
}
.msticket.pk::before { top: -9px; }
.msticket.pk::after { bottom: -9px; }
.msline { stroke: #111111; stroke-width: 2.5; fill: none; }
.msstation { stroke: #111111; stroke-width: 2; }
.tl-bar { display: flex; border: 2px solid #111; border-radius: 10px; overflow: hidden; height: 30px; }
.tl-bar div { display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; }
.pcard { background: #fff9f0; border: 2px solid #111; border-radius: 14px; box-shadow: 5px 5px 0 #111; padding: 12px 14px; width: 252px; }
.pchips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 9px; }
.pchip { font-size: 10.5px; padding: 2px 9px; border-radius: 999px; border: 1.5px solid #111; background: #fff; }
.pchip.start { background: #ffd93d; font-weight: 800; }
.arr { font-size: 10px; color: #8a7a5c; }
</style>
</head>
<body>
<!-- ================= P1 CourseCard 结构 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Components /&gt; 1/4</span>
<h2>组件 · CourseCard 结构</h2>
<div class="desc">教程的入口载体:孟菲斯骨架(黑边+硬投影)× 拟物纸感(纸叠边+相框凹槽)。卡头三件套即靶子。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div style="display:flex; gap:28px; align-items:flex-start;">
<div class="mscard" style="width:360px;">
<span class="entry-badge2">①</span>
<div class="mszone" style="height:186px; background:#ff6b6b;">
<span style="font-size:46px;">🌐</span>
<svg style="position:absolute; right:8px; bottom:8px;" width="20" height="20"><circle cx="10" cy="10" r="7" fill="none" stroke="#fff9f0" stroke-width="3"/><circle cx="10" cy="10" r="7" fill="none" stroke="#111" stroke-width="1.2"/></svg>
<span style="position:absolute; left:8px; top:6px; font-size:9px; color:#fff9f0; font-weight:700; letter-spacing:1px;">预期结果 · GIF</span>
</div>
<div class="mst">
<span class="tri"></span>
<b>快速开始</b>
<span class="dots"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></span>
</div>
</div>
<div style="flex:1; font-size:12px; color:#3d3d3d; line-height:1.55;">
<div style="margin-bottom:10px;"><b>① 黑描边</b>:2px ink——孟菲斯的印刷感边界,一切鲜艳以此收束。</div>
<div style="margin-bottom:10px;"><b>② 硬投影</b>:7px 8px 0 ink——平面上的「厚」。</div>
<div style="margin-bottom:10px;"><b>③ 纸叠边</b>:白 3px+暗层 5px 两层堆叠——纸的厚度(拟物)。</div>
<div style="margin-bottom:10px;"><b>④ 相框凹槽</b>:3px 黑边+内阴影——16:9 预期区像装裱的画框,章节色为底。</div>
<div style="margin-bottom:10px;"><b>⑤ 卡头三件套=靶子</b>:▲ 目标(三角+标题)/ ○ 预期结果(相框 GIF,圆环角标)/ ● 积木点列(实心=已学)。</div>
<div style="margin-bottom:10px;"><b>⑥ 入口徽章</b>:①②③ 黑底黄字圆徽,读者画像的推荐起点(非强制)。</div>
<div><b>⑦ 压凹标题</b>:暗字+下白影——铅字压进纸面。</div>
</div>
</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>尺寸规格</h3>
<table class="spec">
<tr><th>项</th><th>规格</th></tr>
<tr><td class="k">卡宽</td><td>书架 250 · 解剖 360 · 紧凑 140</td></tr>
<tr><td class="k">相框</td><td>16:9(aspect-ratio)· 3px 黑边</td></tr>
<tr><td class="k">描边</td><td>2px ink</td></tr>
<tr><td class="k">投影</td><td>7px 8px 0 ink(hover 10px 11px)</td></tr>
<tr><td class="k">纸叠</td><td>白 3px / 暗层 5px</td></tr>
<tr><td class="k">圆角</td><td>卡 14 · 相框 8</td></tr>
<tr><td class="k">积木点</td><td>⌀7 · 描边 1.5 · 间距 4</td></tr>
</table>
</div>
<div style="position:absolute; top: 428px; left: 948px; width: 292px;" class="panel">
<h3>卡片原则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>卡不可缺</b>:入口与预期永远以卡呈现。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>撞色在框内</b>:章节色只进相框,卡面纸色。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>卡头即靶子</b>:▲○● 三件套缺一不可(skill · 靶子先行)。</span></div>
</div>
<div class="footline">设计系统 · 03 组件 · stack idealjs</div>
<div class="pagenum">01 / 04</div>
</div>
<!-- ================= P2 CourseCard 交互 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Components /&gt; 2/4</span>
<h2>组件 · CourseCard 交互</h2>
<div class="desc">hover 把卡「拿起来」并播放 GIF;desc 与 GIF 每 8000ms 自动翻转;聚焦锁定;触屏与减弱动效不翻转。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">三态 <i>静置 → 拿起(hover)→ 翻转周期</i></div>
<div style="display:flex; gap:26px; align-items:flex-start; margin-bottom:20px;">
<div>
<div class="mscard" style="width:250px;">
<div class="mszone" style="height:128px; background:#ff6b6b;"><span>🌐</span></div>
<div class="mst"><span class="tri"></span><b>快速开始</b><span class="dots"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></span></div>
</div>
<div style="font-size:11.5px; font-weight:700; margin-top:12px;">① 静置</div>
<div style="font-size:10.5px; color:#6b6b6b; line-height:1.5;">7px 8px 硬投影;相框显 desc 摘要或章节色。</div>
</div>
<div>
<div class="mscard hovering" style="width:250px;">
<div class="mszone" style="height:128px; background:#ff6b6b;">
<span>🌐</span>
<span style="position:absolute; left:8px; top:6px; font-size:8.5px; color:#fff9f0; font-weight:700; letter-spacing:1px;">▶ GIF 播放中</span>
</div>
<div class="mst"><span class="tri"></span><b>快速开始</b><span class="dots"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></span></div>
</div>
<div style="font-size:11.5px; font-weight:700; margin-top:12px;">② 拿起(hover / 聚焦)</div>
<div style="font-size:10.5px; color:#6b6b6b; line-height:1.5;">translateY -3px+投影加深至 10px 11px;GIF 开始循环播放。</div>
</div>
<div>
<div class="mscard" style="width:250px;">
<div class="mszone" style="height:128px; background:#fff9f0; display:block; padding:12px 14px;">
<div style="font-size:10.5px; color:#3d3d3d; line-height:1.6;">这一章做成什么:<br>本地跑起一个可交互的页面,理解请求-渲染循环。<br><span style="color:#8a7a5c;">(desc 态 · 每 8s 与 GIF 轮换)</span></div>
</div>
<div class="mst"><span class="tri"></span><b>快速开始</b><span class="dots"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></span></div>
</div>
<div style="font-size:11.5px; font-weight:700; margin-top:12px;">③ 翻转(desc ⇄ GIF)</div>
<div style="font-size:10.5px; color:#6b6b6b; line-height:1.5;">相框内容每 8000ms 在「文字摘要 / GIF 预期」间轮换。</div>
</div>
</div>
<div class="sec-label">翻转时间轴 <i>flipMs = 8000</i></div>
<div class="tl-bar" style="margin-bottom:8px;">
<div style="flex:1; background:#fff9f0;">desc · 8s</div>
<div style="flex:1; background:#ff6b6b; color:#fff9f0;">GIF · 8s</div>
<div style="flex:1; background:#fff9f0;">desc · 8s</div>
<div style="flex:1; background:#ff6b6b; color:#fff9f0;">GIF · 8s</div>
<div style="flex:0.4; background:#111; color:#fff9f0;">…</div>
</div>
<div style="font-size:11px; color:#6b6b6b;">周期起点:进入视口(IntersectionObserver);hover / Tab 聚焦即暂停在该态,离开后恢复。</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>交互参数</h3>
<table class="spec">
<tr><th>参数</th><th>值</th></tr>
<tr><td class="k"><code>flipMs</code></td><td>8000(desc ⇄ GIF)</td></tr>
<tr><td class="k"><code>lockOn</code></td><td>hover · Tab 聚焦</td></tr>
<tr><td class="k"><code>noFlip</code></td><td>触屏 · prefers-reduced-motion</td></tr>
<tr><td class="k"><code>lift</code></td><td>translateY -3px + 投影 10px 11px</td></tr>
<tr><td class="k"><code>startOn</code></td><td>进入视口</td></tr>
</table>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>可访问性</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">卡片是链接(&lt;a&gt;),键盘可 Tab 到达,聚焦态=拿起态。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">GIF 无声;alt = 预期结果一句话。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt">动效减弱时相框固定显示 desc 态。</span></div>
</div>
<div class="footline">设计系统 · 03 组件 · stack idealjs</div>
<div class="pagenum">02 / 04</div>
</div>
<!-- ================= P3 RouteLine ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Components /&gt; 3/4</span>
<h2>组件 · RouteLine</h2>
<div class="desc">关系线:线形即含义(见 02 符号),本页是组件级实现——路径、站点、胶囊、分流的完整拓扑。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">综合拓扑 <i>分流 → 并行 → 胶囊汇入</i></div>
<svg width="836" height="180" viewBox="0 0 836 180" style="margin-bottom:12px;">
<rect x="10" y="60" width="2" height="60" fill="#c9c9c7"/>
<rect x="824" y="18" width="2" height="60" fill="#c9c9c7"/>
<rect x="416" y="6" width="2" height="60" fill="#c9c9c7"/>
<path class="msline" d="M 11 90 H 60 A 8 8 0 0 0 68 82 V 46 A 8 8 0 0 1 76 38 H 416"/>
<path class="msline" d="M 11 90 H 300 A 8 8 0 0 1 308 98 V 134 A 8 8 0 0 0 316 142 H 416"/>
<path class="msline" d="M 418 38 H 600 A 8 8 0 0 1 608 46 V 74 A 8 8 0 0 0 616 82 H 748"/>
<path class="msline" d="M 418 142 H 600 A 8 8 0 0 0 608 134 V 106 A 8 8 0 0 1 616 98 H 748"/>
<circle class="msstation" cx="11" cy="90" r="6" fill="#ffd93d"/>
<circle class="msstation" cx="417" cy="38" r="6" fill="#4ecdc4"/>
<circle class="msstation" cx="417" cy="142" r="6" fill="#ff8fab"/>
<rect x="748" y="60" width="6" height="20" rx="3" fill="#ff6b6b" stroke="#111" stroke-width="2"/>
<circle class="msstation" cx="825" cy="82" r="6" fill="#ffd93d"/>
</svg>
<div style="font-size:11px; color:#6b6b6b; margin-bottom:18px;">灰竖线=卡边示意;上行支线与下行支线在左侧分流点只相触不共线,右侧四线两两并行(4px)汇入胶囊卡口。</div>
<div class="sec-label">实现要点</div>
<table style="width:100%; border-collapse:collapse; font-size:11.5px; color:#3d3d3d;">
<tr style="border-bottom:2px solid #d5d5d3;">
<th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">要点</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">说明</th>
</tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a; width:150px;">路径数据驱动</td><td style="padding:6px 8px 6px 0;">由 courses.ts 的关系数据自动生成(先后/相关/同族三类边)。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">自动布线</td><td style="padding:6px 8px 6px 0;">卡位网格化;直角步进由起终点 lanes 差决定;R8 圆角固定。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">站点渲染层</td><td style="padding:6px 8px 6px 0;">SVG 双层:线在下、站点在上(卡片 DOM 之后),保证半嵌可见。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">胶囊触发</td><td style="padding:6px 8px 6px 0;">同一卡口入线 ≥ 2 自动聚合为胶囊,线止于胶囊边界。</td></tr>
<tr><td style="padding:6px 8px 6px 0; font-weight:700; color:#1a1a1a;">响应式</td><td style="padding:6px 8px 6px 0;">窄屏(&lt;768)退化为纵向书架:线收起,改章节 chips 序列。</td></tr>
</table>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>RouteLine 参数</h3>
<table class="spec">
<tr><th>prop</th><th>说明</th></tr>
<tr><td class="k"><code>path</code></td><td>先后边(实线)段序列</td></tr>
<tr><td class="k"><code>rel</code></td><td>相关边(虚线 4:2)</td></tr>
<tr><td class="k"><code>family</code></td><td>同族边(点线)</td></tr>
<tr><td class="k"><code>stations</code></td><td>站点(四色轮换,半嵌)</td></tr>
<tr><td class="k"><code>capsule</code></td><td>多线卡口(自动聚合)</td></tr>
</table>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>用线原则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>线不可缺</b>:章节之间必有关系可读。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>先实后虚</b>:主链实线;相关/同族补充。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>线只管顺序与关系</b>:状态交给卡片(积木点/打孔)。</span></div>
</div>
<div class="footline">设计系统 · 03 组件 · stack idealjs</div>
<div class="pagenum">03 / 04</div>
</div>
<!-- ================= P4 指派票、脱靶注与入口梳理 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Components /&gt; 4/4</span>
<h2>组件 · 指派票、脱靶注与入口梳理</h2>
<div class="desc">三个配套组件:+指派票(位置/预期/场景)、⌇脱靶注(跟在指派后)、入口徽章与读者画像路径。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">指派票 & 脱靶注 <i>总在指派之后成对出现</i></div>
<div style="display:flex; gap:24px; align-items:flex-start; margin-bottom:18px;">
<div class="msticket pk" style="width:260px;">
<div class="tl" style="background:#a78bfa;">+</div>
<div class="tb">
<b>指派学习 · npm</b>
<div style="font-size:10px; color:#3d3d3d; line-height:1.55; margin-top:5px;"><b>位置</b>:包管理家族——npm 的坐标与邻居<br><b>预期</b>:能说清 lockfile 锁住了什么<br><b>场景</b>:加一个依赖 / 换源重装</div>
</div>
<div class="stub" style="border-left-style:solid;">+</div>
</div>
<div style="flex:1; background:#fff9f0; border:2px solid #111; border-radius:12px; box-shadow:5px 5px 0 #111; padding:10px 12px;">
<div style="display:flex; align-items:center; gap:8px;">
<svg width="20" height="20"><path d="M 10 18 L 7 15 L 13 12 L 7 9 L 13 6 L 10 3" fill="none" stroke="#ff6b6b" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/></svg>
<b style="font-size:12px;">脱靶提醒 · 跟在指派后</b>
</div>
<div style="font-size:10.5px; color:#3d3d3d; line-height:1.55; margin-top:6px;">写两样:<b>可能怎么脱靶</b>(装了但没跑)+ <b>脱靶什么样子</b>(命令成功、页面空白)——读者撞上时认得出缺哪块。</div>
</div>
</div>
<div class="sec-label">入口梳理 <i>三类读者三条推荐路径——是推荐不是强制(无锁)</i></div>
<div style="display:flex; gap:20px; align-items:flex-start;">
<div class="pcard">
<div style="display:flex; align-items:center; gap:8px;"><span style="width:26px; height:26px; border-radius:8px; background:#4ecdc4; border:2px solid #111; display:flex; align-items:center; justify-content:center; font-size:14px;">🌱</span><b style="font-size:13px;">零基础入门</b></div>
<div class="pchips">
<span class="pchip start">① 快速开始</span><span class="arr">→</span><span class="pchip">React</span><span class="arr">→</span><span class="pchip">更多示例</span><span class="arr">→</span><span class="pchip">全栈基础</span>
</div>
<div style="font-size:10px; color:#8a7a5c; line-height:1.5; margin-top:8px;">完整链按序走;每步先核对预期再前进。</div>
</div>
<div class="pcard">
<div style="display:flex; align-items:center; gap:8px;"><span style="width:26px; height:26px; border-radius:8px; background:#ffd93d; border:2px solid #111; display:flex; align-items:center; justify-content:center; font-size:14px;">⚡</span><b style="font-size:13px;">写过页面的人</b></div>
<div class="pchips">
<span class="pchip start">② React</span><span class="arr">→</span><span class="pchip">更多示例</span><span class="arr">→</span><span class="pchip">高级教程</span>
</div>
<div style="font-size:10px; color:#8a7a5c; line-height:1.5; margin-top:8px;">跳过装环境;从组件拼接进入。</div>
</div>
<div class="pcard">
<div style="display:flex; align-items:center; gap:8px;"><span style="width:26px; height:26px; border-radius:8px; background:#a78bfa; border:2px solid #111; display:flex; align-items:center; justify-content:center; font-size:14px;">🧠</span><b style="font-size:13px;">重度 AI 依赖</b></div>
<div class="pchips">
<span class="pchip start">③ 高级教程</span><span class="arr">→</span><span class="pchip">全栈基础</span>
</div>
<div style="font-size:10px; color:#8a7a5c; line-height:1.5; margin-top:8px;">从「指挥 agent 做整件事」切入,回头补认知基础。</div>
</div>
</div>
<div style="font-size:11px; color:#6b6b6b; margin-top:14px;">入口徽章 ①②③ 与画像卡对应;路径 chips 可点击直达章节;<b>无锁</b>——任何读者可进任何章(死原则)。</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>组件参数</h3>
<table class="spec">
<tr><th>组件</th><th>关键 prop</th></tr>
<tr><td class="k">指派票</td><td><code>pos</code> · <code>expect</code> · <code>scenes[]</code></td></tr>
<tr><td class="k">脱靶注</td><td><code>how</code> 怎么脱靶 · <code>looks</code> 什么样</td></tr>
<tr><td class="k">画像卡</td><td><code>icon</code> · <code>entry</code> · <code>path[]</code> · <code>note</code></td></tr>
</table>
<div style="font-size:12px; color:#555; line-height:1.6; margin-top:10px;">指派票三样缺一即退化为「AI 说啥信啥」(skill 原文)。</div>
</div>
<div style="position:absolute; top: 400px; left: 948px; width: 292px;" class="panel">
<h3>原则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>无锁</b>:状态是推荐不是门槛。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>指派后必有脱靶注</b>:成对出现。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt"><b>位置给坐标,预期当尺子,场景管巩固</b>。</span></div>
</div>
<div class="footline">设计系统 · 03 组件 · stack idealjs</div>
<div class="pagenum">04 / 04</div>
</div>
</body>
</html>
Binary file not shown.
@@ -0,0 +1,246 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>设计系统 · 04 样例 · stack idealjs</title>
<style>
@page { size: 1280px 800px; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; width: 1280px; background: #f0f0ef;
font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
color: #1a1a1a; -webkit-font-smoothing: antialiased;
}
.page { width: 1280px; height: 800px; position: relative; background: #f0f0ef; overflow: hidden; page-break-after: always; }
.page:last-child { page-break-after: auto; }
@media screen {
html { height: auto; display: flex; justify-content: center; background: #f0f0ef; }
body { transform-origin: top center; scale: min(1, calc(100vw / 1280px)); margin: 0 auto; box-shadow: 0 0 48px rgba(15, 23, 42, 0.18); }
}
.pagenum { position: absolute; bottom: 26px; right: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 2px; }
.footline { position: absolute; bottom: 26px; left: 40px; font-size: 13px; color: #8a8a8a; letter-spacing: 1px; }
.story-head { position: absolute; top: 36px; left: 40px; right: 40px; }
.story-head .tag {
display: inline-block; font-size: 15px; font-weight: 700; color: #6d28d9;
background: #efe6fb; border-radius: 8px; padding: 3px 12px;
font-family: "DejaVu Sans Mono", "Noto Sans CJK SC", monospace;
}
.story-head h2 { margin: 8px 0 4px; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.story-head .desc { font-size: 14.5px; color: #6b6b6b; }
.canvas { background: #fbfbfa; border: 1px dashed #cfcfcd; border-radius: 18px; padding: 20px 22px; position: absolute; }
.panel { background: #ffffff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(26,26,26,0.06); }
.panel h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.note .idx {
flex: none; width: 22px; height: 22px; border-radius: 50%;
background: #1a1a1a; color: #ffffff; font-size: 13px; font-weight: 700;
display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.note .txt { font-size: 13px; line-height: 1.55; color: #3d3d3d; }
.note .txt b { color: #1a1a1a; }
table.spec { width: 100%; border-collapse: collapse; font-size: 12px; color: #3d3d3d; }
table.spec th { text-align: left; font-weight: 700; color: #1a1a1a; border-bottom: 2px solid #d5d5d3; padding: 5px 8px 5px 0; }
table.spec td { border-bottom: 1px solid #ececea; padding: 4px 8px 4px 0; vertical-align: top; }
table.spec td.k { color: #1a1a1a; font-weight: 600; white-space: nowrap; }
.sec-label { font-size: 13.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.sec-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: #6b6b6b; margin-left: 8px; }
.mscard {
background: #fff9f0; border: 2px solid #111111; border-radius: 14px;
box-shadow: 0 3px 0 #ffffff, 0 5px 0 #eadfc4, 7px 8px 0 #111111;
padding: 11px; position: absolute;
}
.mscard .mszone {
height: 128px; border-radius: 8px; position: relative;
border: 3px solid #111111;
box-shadow: inset 0 3px 8px rgba(26,26,26,0.30), inset 0 -1px 0 rgba(255,255,255,0.55);
display: flex; align-items: center; justify-content: center;
}
.mscard .mszone span { font-size: 30px; }
.mscard .mst { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.mscard .mst .tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #111111; }
.mscard .mst b { font-size: 14px; flex: 1; color: #2b1d10; text-shadow: 0 1px 1px rgba(255,255,255,0.9); }
.mscard .dots { display: flex; gap: 4px; }
.mscard .dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #111111; background: #fff; }
.mscard .dots i.on { background: #111111; }
.entry-badge2 {
position: absolute; top: -11px; left: -11px; width: 24px; height: 24px; border-radius: 50%;
background: #111111; color: #ffd93d; font-size: 12px; font-weight: 800;
display: flex; align-items: center; justify-content: center; border: 2px solid #fff9f0;
}
.msticket {
width: 216px; background: #fff9f0; border: 2px solid #111111; border-radius: 12px;
box-shadow: 5px 5px 0 #111111; position: absolute; display: flex; align-items: stretch;
}
.msticket .tl {
width: 56px; border: 2px solid #111111; border-left: none; border-radius: 10px 0 0 10px;
display: flex; align-items: center; justify-content: center; font-size: 22px; margin-left: -2px;
}
.msticket .tb { flex: 1; padding: 9px 10px; }
.msticket .tb b { font-size: 12.5px; }
.msticket .tb .no { font-family: "DejaVu Sans Mono", monospace; font-size: 8.5px; color: #8a7a5c; margin-top: 3px; }
.msticket .stub {
width: 42px; border-left: 1.5px dashed #111111;
display: flex; align-items: center; justify-content: center;
font-family: "DejaVu Sans Mono", monospace; font-size: 9.5px; color: #8a7a5c;
}
.msticket.pk::before, .msticket.pk::after {
content: ""; position: absolute; left: 162px; width: 13px; height: 13px;
border-radius: 50%; background: #fff9f0; border: 2px solid #111111;
}
.msticket.pk::before { top: -9px; }
.msticket.pk::after { bottom: -9px; }
.msline { stroke: #111111; stroke-width: 2.5; fill: none; }
.msstation { stroke: #111111; stroke-width: 2; }
</style>
</head>
<body>
<!-- ================= P1 组合场景 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Examples /&gt; 1/2</span>
<h2>样例 · 组合场景</h2>
<div class="desc">全系统同台:拟物卡+三种关系线+指派票与脱靶注+散落语义形状。这一页可直接当实现验收的对照图。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px; padding: 0; overflow: hidden; background:#fff9f0;">
<svg style="position:absolute; left:0; top:0;" width="880" height="594" viewBox="0 0 880 594">
<path d="M 560 8 l 16 28 h -32 z" fill="#ffd93d" stroke="#111" stroke-width="2.5"/>
<circle cx="812" cy="96" r="8" fill="#4ecdc4" stroke="#111" stroke-width="2"/>
<circle cx="838" cy="82" r="5" fill="#ff8fab" stroke="#111" stroke-width="2"/>
<circle cx="826" cy="118" r="4" fill="#ffd93d" stroke="#111" stroke-width="2"/>
<path d="M 24 330 q 8 -22 16 0 t16 0 t16 0 t16 0" fill="none" stroke="#5b8def" stroke-width="3" stroke-linecap="round"/>
<path d="M 762 270 l 10 20 22 3 -16 15 4 22 -20 -11 -20 11 4 -22 -16 -15 22 -3 z" fill="#a78bfa" stroke="#111" stroke-width="2"/>
<path d="M 76 544 L 70 537 L 82 530 L 70 523 L 82 516 L 76 509" fill="none" stroke="#ff6b6b" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/>
<circle cx="852" cy="192" r="10" fill="none" stroke="#4ecdc4" stroke-width="4"/><circle cx="852" cy="192" r="10" fill="none" stroke="#111" stroke-width="1.5"/>
<path d="M 624 470 v22 M613 481 h22" stroke="#a78bfa" stroke-width="4" stroke-linecap="round"/><path d="M 624 470 v22 M613 481 h22" stroke="#111" stroke-width="1.2"/>
<path d="M 810 250 v20 M800 260 h20" stroke="#5b8def" stroke-width="4" stroke-linecap="round"/><path d="M 810 250 v20 M800 260 h20" stroke="#111" stroke-width="1.2"/>
<path class="msline" d="M 299 180 H 302 A 8 8 0 0 0 310 172 V 116 A 8 8 0 0 1 318 108 H 378"/>
<path class="msline" d="M 639 108 H 699"/>
<path d="M 505 237 V 266" fill="none" stroke="#111" stroke-width="2" stroke-dasharray="4 2"/>
<path d="M 600 237 V 150 H 698" fill="none" stroke="#111" stroke-width="2.4" stroke-dasharray="0.1 6" stroke-linecap="round"/>
<circle class="msstation" cx="299" cy="180" r="6" fill="#ffd93d"/>
<circle class="msstation" cx="378" cy="108" r="6" fill="#4ecdc4"/>
<circle class="msstation" cx="639" cy="108" r="6" fill="#ffd93d"/>
<circle class="msstation" cx="699" cy="108" r="6" fill="#ff8fab"/>
</svg>
<div class="mscard" style="left:40px; top:110px; width:250px;">
<span class="entry-badge2">①</span>
<div class="mszone" style="background:#ff6b6b;"><span>🌐</span>
<span style="position:absolute; left:6px; top:5px; font-size:8.5px; color:#fff9f0; font-weight:700; letter-spacing:1px;">预期结果 · GIF</span>
</div>
<div class="mst"><span class="tri"></span><b>快速开始</b><span class="dots"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></span></div>
</div>
<div class="mscard" style="left:380px; top:44px; width:250px; transform:rotate(-1deg);">
<span class="entry-badge2">②</span>
<div class="mszone" style="background:#ff8fab;"><span>⚛️</span></div>
<div class="mst"><span class="tri"></span><b>React</b><span class="dots"><i class="on"></i><i class="on"></i><i></i><i></i></span></div>
</div>
<div class="mscard" style="left:700px; top:44px; width:140px;">
<div class="mszone" style="height:78px; background:#5b8def;"><span style="font-size:22px;">🔗</span></div>
<div class="mst"><span class="tri"></span><b style="font-size:12px;">全栈基础</b></div>
</div>
<div class="msticket pk" style="left:380px; top:268px;">
<div class="tl" style="background:#a78bfa;">+</div>
<div class="tb"><b>指派学习 · npm</b><div class="no">位置 / 预期 / 场景</div></div>
<div class="stub">+</div>
</div>
<div style="position:absolute; left:40px; top:420px; width:300px;">
<div style="display:flex; align-items:center; gap:8px;">
<svg width="22" height="22"><path d="M 11 20 L 8 17 L 14 14 L 8 11 L 14 8 L 11 4" fill="none" stroke="#ff6b6b" stroke-width="3" stroke-linejoin="round" stroke-linecap="round"/></svg>
<b style="font-size:12px;">脱靶提醒</b>
</div>
<div style="font-size:11px; color:#3d3d3d; line-height:1.6; margin-top:6px;">常见脱靶:装了但没跑。脱靶的样子——命令成功、页面空白;此时缺的是"真机验收"这块积木。</div>
</div>
<div style="position:absolute; left:380px; top:430px; display:flex; align-items:center; gap:8px;">
<svg width="40" height="20"><path d="M2 12 q5 -16 10 0 t10 0 t10 0" fill="none" stroke="#5b8def" stroke-width="3" stroke-linecap="round"/></svg>
<span style="font-size:11px; color:#3d3d3d;"><b>代理区</b>:安装交给 agent,只验收产物</span>
</div>
<div style="position:absolute; left:660px; top:430px; display:flex; align-items:center; gap:8px;">
<svg width="34" height="20"><rect x="2" y="6" width="30" height="9" fill="#ff8fab" stroke="#111" stroke-width="2"/></svg>
<span style="font-size:11px; color:#3d3d3d;"><b>价值区</b>:过程就地写清</span>
</div>
<div style="position:absolute; left:40px; top:562px; font-size:10.5px; color:#8a7a5c;">形状散落于空白,每个都有含义:▲ 靶子 · ● 积木 · ○ 预期 · ~ 代理区 · ▬ 价值区 · ⌇ 脱靶 · + 指派;线:实=先后 · 虚=相关 · 点=同族</div>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>场景读法</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>主线</b>:快速开始 →(直角步进)→ React →(直线)→ 全栈基础;四枚站点半嵌卡边。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>虚线</b>:React 底边 → 指派票顶边(相关:票属于该章扩展)。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">3</span><span class="txt"><b>点线</b>:React → 全栈基础(同族:工程基础一族)。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">4</span><span class="txt"><b>指派票</b>打孔=已完成过一次;脱靶注跟在其叙事之后。</span></div>
</div>
<div style="position:absolute; top: 420px; left: 948px; width: 292px;" class="panel">
<h3>对照检查</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">三卡相框色:coral / pink / blue——相邻跨对 ✓。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">散落形状 8 枚,全部在空白 ✓。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">3</span><span class="txt">右站点骑黑影外缘(快速开始右、React 右),左站点贴描边 ✓。</span></div>
</div>
<div class="footline">设计系统 · 04 样例 · stack idealjs</div>
<div class="pagenum">01 / 02</div>
</div>
<!-- ================= P2 概念映射与落地 ================= -->
<div class="page">
<div class="story-head">
<span class="tag">&lt;Examples /&gt; 2/2</span>
<h2>样例 · 概念映射与落地</h2>
<div class="desc">ai-era-tutorial 的每个概念都有对应组件;落地清单指出三个页面各自用哪些件。</div>
</div>
<div class="canvas" style="top: 138px; left: 40px; width: 880px; height: 594px;">
<div class="sec-label">概念 → 组件映射 <i>skill 八概念的视觉落点</i></div>
<table class="spec" style="font-size:12.5px; margin-bottom:20px;">
<tr><th style="width:190px;">skill 概念</th><th>组件落点</th></tr>
<tr><td class="k">靶子先行</td><td>卡头三件套:▲ 目标 + ○ 16:9 预期区 + ● 积木点列</td></tr>
<tr><td class="k">步骤 = 目标 + 验收产物</td><td>卡内验收行(○ 空环待勾,不写键位)</td></tr>
<tr><td class="k">代理区 / 价值区</td><td>~ 横波带(交给 agent)/ ▬ 实心条(过程就地展开)</td></tr>
<tr><td class="k">指派学习</td><td>+ 三行票:位置(坐标)/ 预期(尺子)/ 场景(巩固)</td></tr>
<tr><td class="k">脱靶提醒</td><td>⌇ 竖抖注,永远跟在指派后</td></tr>
<tr><td class="k">认知基础</td><td>底座纹与「真机验收」章(env / 运行环境就地露出)</td></tr>
<tr><td class="k">入口梳理</td><td>①②③ 徽章 + 读者画像路径 chips</td></tr>
<tr><td class="k">死原则</td><td><b>无锁</b>:状态 = 推荐,卡永远可入;不写死 AI 规则</td></tr>
</table>
<div class="sec-label">落地清单 <i>三个页面各用哪些件</i></div>
<table style="width:100%; border-collapse:collapse; font-size:11.5px; color:#3d3d3d;">
<tr style="border-bottom:2px solid #d5d5d3;">
<th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a; width:130px;">页面</th><th style="text-align:left; padding:5px 8px 5px 0; color:#1a1a1a;">组件组合</th>
</tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:7px 8px 7px 0; font-weight:700; color:#1a1a1a;">首页 · 书架</td><td style="padding:7px 8px 7px 0;">CourseCard 网格 + RouteLine(实线主链+虚线相关)+ 入口画像卡;散落形状 ≤ 8。</td></tr>
<tr style="border-bottom:1px solid #ececea;"><td style="padding:7px 8px 7px 0; font-weight:700; color:#1a1a1a;">教程页 · 正文</td><td style="padding:7px 8px 7px 0;">卡头三件套置顶;正文中 ~ 代理带与 ▬ 价值条分节;指派票+脱靶注成对;○ 验收行收尾。</td></tr>
<tr><td style="padding:7px 8px 7px 0; font-weight:700; color:#1a1a1a;">工具页 / 实践页</td><td style="padding:7px 8px 7px 0;">轻量用形状语言(无卡无线);实践经历可用拼贴式纸片——单独风格层,不混入主线。</td></tr>
</table>
</div>
<div style="position:absolute; top: 138px; left: 948px; width: 292px;" class="panel">
<h3>组合规则</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt"><b>撞色在框内</b>:章节色只进 16:9 相框,卡面纸色。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt"><b>站点贴边</b>:左贴描边、右骑硬投影外缘;虚/点线无站点。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">3</span><span class="txt"><b>入口徽章</b> ①②③:推荐起点,非强制。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">4</span><span class="txt"><b>形状不压内容</b>:只在空白,密度 ≤ 8/屏。</span></div>
</div>
<div style="position:absolute; top: 420px; left: 948px; width: 292px;" class="panel">
<h3>实现顺序建议</h3>
<div class="note" style="margin-bottom:6px;"><span class="idx">1</span><span class="txt">CourseCard(含翻转交互)→ 首页书架。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">2</span><span class="txt">RouteLine(数据驱动布线)→ 关系可读。</span></div>
<div class="note" style="margin-bottom:6px;"><span class="idx">3</span><span class="txt">指派票+脱靶注 → 教程正文改造。</span></div>
<div class="note" style="margin-bottom:0;"><span class="idx">4</span><span class="txt">GIF 素材逐章录制(16:9,无声循环)。</span></div>
</div>
<div class="footline">设计系统 · 04 样例 · stack idealjs</div>
<div class="pagenum">02 / 02</div>
</div>
</body>
</html>
Binary file not shown.