Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

feat(site): add localized animated product tours

baiyuze36cb5c3afad7
diff --git a/docs/assets/site.css b/docs/assets/site.css
index 5683753..9aa0d6d 100644
--- a/docs/assets/site.css
+++ b/docs/assets/site.css
@@ -1,7 +1,7 @@
/* PasteFerry 官网。由 tools/site/build.py 生成的页面共用这一份样式。
*
* 整页一种深色:石墨底,系统蓝只给按钮、链接、直连的线和「被复制的那张纸」。
- * 区块之间靠留白分开,不再交替换底色。首屏的复制动画是整页唯一的动画。
+ * 区块之间靠留白分开。首屏演示与按需打开的宣传片展示复制过程。
* 不加载网页字体:Mac 上是 SF Pro、苹方、冬青,Windows 上是 Segoe UI、微软雅黑、Meiryo。
* 从手机宽度写起,宽屏再放开;标题与引言居中,正文、列表、表格左对齐。
*/
@@ -494,6 +494,19 @@ code {
overflow: hidden;
}
+.tour-link { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.25rem; font-size: 0.95rem; }
+.tour-link > span:first-child { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding-left: 2px; border: 1px solid var(--rule-strong); border-radius: 50%; font-size: 0.65rem; }
+.tour-duration { color: var(--dim); font: 0.8rem var(--mono); }
+.tour-is-open { overflow: hidden; }
+.tour-dialog { width: min(1200px, calc(100vw - 32px)); height: min(calc(min(1200px, 100vw - 32px) * 9 / 16 + 78px), calc(100dvh - 100px)); max-width: 1200px; max-height: calc(100dvh - 100px); padding: 0; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--ground); overflow: visible; box-shadow: 0 30px 120px #0009; }
+.tour-dialog::backdrop { background: #000c; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
+.tour-dialog form { position: absolute; right: 0; top: -48px; margin: 0; }
+.tour-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; font: 26px/1 var(--sans); }
+.tour-dialog iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 18px; }
+@media (max-width: 634px) {
+ .tour-dialog { height: min(calc((100vw - 32px) * 5 / 4 + 112px), calc(100dvh - 100px)); }
+}
+
.stage {
position: relative;
display: grid;
diff --git a/docs/assets/site.js b/docs/assets/site.js
index 15fe8a5..7fcb087 100644
--- a/docs/assets/site.js
+++ b/docs/assets/site.js
@@ -1,6 +1,35 @@
// 首屏动画、代码块的「复制」按钮、分页(部署教程按系统分页、快速开始按部署方式分页)、语言菜单、记住选过的语言。
// 没有脚本时页面照样完整:动画停在复制完成的样子,分页的内容依次排开。
(function () {
+ // Load the localized tour only when requested. The href remains a normal
+ // standalone page for browsers without dialog support or JavaScript.
+ var tourLink = document.querySelector('[data-tour-open]');
+ var tourDialog = document.querySelector('.tour-dialog');
+ if (tourLink && tourDialog && typeof tourDialog.showModal === 'function') {
+ var tourFrame = tourDialog.querySelector('iframe');
+ tourLink.addEventListener('click', function (event) {
+ if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
+ event.preventDefault();
+ tourDialog.showModal();
+ document.documentElement.classList.add('tour-is-open');
+ if (!tourFrame.hasAttribute('src')) tourFrame.src = tourFrame.dataset.src;
+ else tourFrame.contentWindow.postMessage('tour:play', location.origin);
+ });
+ tourDialog.addEventListener('click', function (event) {
+ if (event.target === tourDialog) tourDialog.close();
+ });
+ tourDialog.addEventListener('close', function () {
+ tourFrame.contentWindow.postMessage('tour:pause', location.origin);
+ document.documentElement.classList.remove('tour-is-open');
+ tourLink.focus();
+ });
+ window.addEventListener('message', function (event) {
+ if (event.origin !== location.origin || event.source !== tourFrame.contentWindow) return;
+ if (event.data === 'tour:close') tourDialog.close();
+ if (event.data === 'tour:ready') tourFrame.contentWindow.postMessage(tourDialog.open ? 'tour:play' : 'tour:pause', location.origin);
+ });
+ }
+
var stage = document.querySelector("[data-play]");
// 按两台设备实际的位置算出纸飞行的起点、终点与弧线
diff --git a/docs/assets/tour-scenes.js b/docs/assets/tour-scenes.js
new file mode 100644
index 0000000..06b1416
--- /dev/null
+++ b/docs/assets/tour-scenes.js
@@ -0,0 +1,396 @@
+// Deterministic artwork: window.seek(seconds) also supports frame rendering.
+
+'use strict';
+
+// ── 工具 ──
+const $ = (s) => document.querySelector(s);
+const $$ = (s) => [...document.querySelectorAll(s)];
+const clamp = (x, a = 0, b = 1) => Math.min(b, Math.max(a, x));
+const lerp = (a, b, k) => a + (b - a) * k;
+const linear = (x) => x;
+const easeOut = (x) => 1 - Math.pow(1 - x, 3);
+const easeInOut = (x) => (x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2);
+const easeBack = (x) => 1 + 2.2 * Math.pow(x - 1, 3) + 1.2 * Math.pow(x - 1, 2);
+// t 从 a 走到 b 时,0→1
+const p = (t, a, b, e = easeOut) => e(clamp((t - a) / (b - a)));
+
+// 淡入并上移;k = 0 时在下方 dy 处、透明
+function rise(el, k, dy = 30) {
+ el.style.opacity = k;
+ el.style.transform = `translateY(${(1 - k) * dy}px)`;
+}
+
+function mixColor(a, b, k) {
+ const pa = a.match(/\w\w/g).map((h) => parseInt(h, 16));
+ const pb = b.match(/\w\w/g).map((h) => parseInt(h, 16));
+ return `rgb(${pa.map((v, i) => Math.round(lerp(v, pb[i], k))).join(',')})`;
+}
+
+// 按键:0.32 秒内按下再弹起,按下时变蓝
+function press(el, t, at) {
+ const x = (t - at) / 0.32;
+ let k = 0;
+ if (x > 0 && x < 1) k = x < 0.4 ? x / 0.4 : 1 - (x - 0.4) / 0.6;
+ el.style.transform = `translateY(${k * 2}px) scale(${1 - 0.08 * k})`;
+ el.style.background = mixColor('3b3d43', '3d8bea', k);
+}
+
+// ── 音效提示点:audio.py 按这些时间点合成音效 ──
+const CUES = [];
+function cue(scene, t, type, extra = {}) {
+ CUES.push({ t: +(scene.start + t).toFixed(3), type, ...extra });
+}
+
+// ── 图标:与 assets/brand/icon.svg 同一套几何,前面那张蓝纸可以单独动 ──
+const LOGO = `
+ <defs>
+ <linearGradient id="LID-body" x1="0" y1="100" x2="0" y2="924" gradientUnits="userSpaceOnUse">
+ <stop offset="0" stop-color="#FBFBFA"/><stop offset="1" stop-color="#E8E8E6"/>
+ </linearGradient>
+ <filter id="LID-bs" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="12" stdDeviation="14" flood-color="#000" flood-opacity="0.28"/></filter>
+ <filter id="LID-ss" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="10" stdDeviation="12" flood-color="#000" flood-opacity="0.22"/></filter>
+ </defs>
+ <g class="lg-body"><rect x="100" y="100" width="824" height="824" rx="184" fill="url(#LID-body)" filter="url(#LID-bs)"/></g>
+ <g class="lg-back">
+ <rect x="230" y="220" width="340" height="420" rx="44" fill="#F5F5F4" stroke="#2C2C2E" stroke-width="28"/>
+ <g fill="#2C2C2E" fill-opacity="0.85"><rect x="290" y="310" width="200" height="30" rx="15"/><rect x="290" y="390" width="150" height="30" rx="15"/><rect x="290" y="470" width="104" height="30" rx="15"/></g>
+ </g>
+ <g class="lg-front">
+ <rect x="454" y="384" width="340" height="420" rx="44" fill="#0A66D8" filter="url(#LID-ss)"/>
+ <g fill="#FFFFFF" fill-opacity="0.95"><rect x="514" y="474" width="200" height="30" rx="15"/><rect x="514" y="554" width="150" height="30" rx="15"/><rect x="514" y="634" width="104" height="30" rx="15"/></g>
+ </g>`;
+for (const svg of $$('.logo')) svg.innerHTML = LOGO.replaceAll('LID', svg.id);
+
+// 图标出场:底板放大淡入,后面的纸出现,蓝纸从它身上「复制」出来滑到右下
+function logoIn(svg, t, t0) {
+ const body = svg.querySelector('.lg-body');
+ const back = svg.querySelector('.lg-back');
+ const front = svg.querySelector('.lg-front');
+ const kb = p(t, t0, t0 + 0.7);
+ body.style.opacity = kb;
+ body.setAttribute('transform', `translate(512 512) scale(${0.9 + 0.1 * kb}) translate(-512 -512)`);
+ back.style.opacity = p(t, t0 + 0.3, t0 + 0.8);
+ front.style.opacity = p(t, t0 + 0.7, t0 + 0.9, linear);
+ const m = p(t, t0 + 0.75, t0 + 1.45, easeBack);
+ front.setAttribute('transform', `translate(${(1 - m) * -224} ${(1 - m) * -164})`);
+}
+
+// ── 镜头 ──
+const SCENES = [];
+let clock = 0;
+function scene(id, dur, render) {
+ const s = { id, el: document.getElementById(id), start: clock, dur, render };
+ clock += dur;
+ SCENES.push(s);
+ return s;
+}
+
+// 1 痛点
+const S1 = scene('s1', 10.2, (t) => {
+ const head = $('#s1-head');
+ const mv = p(t, 2.8, 3.6, easeInOut);
+ head.style.transform = `translateY(${-290 * mv}px) scale(${lerp(1, 0.72, mv)})`;
+ head.style.opacity = 1 - p(t, 7.9, 8.4);
+ rise($('#s1-l1'), p(t, 0.3, 1.0));
+ rise($('#s1-l2'), p(t, 1.1, 1.8));
+ $$('#s1 .pain').forEach((card, i) => {
+ const k = p(t, 3.4 + i * 0.35, 4.0 + i * 0.35);
+ const s = p(t, 6.3 + i * 0.28, 6.75 + i * 0.28, easeInOut);
+ card.querySelector('i').style.transform = `scaleX(${s})`;
+ card.style.opacity = k * lerp(1, 0.45, s) * (1 - p(t, 7.9, 8.4));
+ card.style.transform = `translateY(${(1 - k) * 30}px)`;
+ });
+ rise($('#s1-l3'), p(t, 8.6, 9.3));
+});
+[0, 1, 2, 3].forEach((i) => cue(S1, 3.4 + i * 0.35, 'tick'));
+[0, 1, 2, 3].forEach((i) => cue(S1, 6.3 + i * 0.28, 'strike'));
+
+// 2 品牌
+const S2 = scene('s2', 5.2, (t) => {
+ logoIn($('#s2-logo'), t, 0.2);
+ rise($('#s2-name'), p(t, 1.4, 2.0));
+ rise($('#s2-tag'), p(t, 2.0, 2.6));
+ rise($('#s2-os'), p(t, 2.6, 3.2));
+});
+cue(S2, 0.0, 'music');
+cue(S2, 1.2, 'pop');
+
+// 3 演示:三个回合,复制的东西化作一张蓝纸沿弧线飞过去
+const ROUNDS = {
+ a: { src: '#a-src .doc', dst: '#a-dst .doc', fly: 2.35, dir: 1, avoid: [] },
+ b: { src: '#b-src', dst: '#b-dst', fly: 8.5, dir: -1, avoid: ['#w2 .appwin', '#m2 .appwin'] },
+ c: { src: '#c-src', dst: '#c-dst', fly: 13.7, dir: 1, avoid: ['#m3 .appwin', '#w3 .appwin'] },
+};
+const FLY_DUR = 1.5;
+const LIFT = 200;
+
+function center(sel) {
+ const r = $(sel).getBoundingClientRect();
+ const f = $('#film').getBoundingClientRect();
+ const scale = f.width / $('#film').offsetWidth;
+ return { x: (r.left - f.left + r.width / 2) / scale, y: (r.top - f.top + r.height / 2) / scale };
+}
+
+function bez(S, C, T, u) {
+ return {
+ x: (1 - u) * (1 - u) * S.x + 2 * u * (1 - u) * C.x + u * u * T.x,
+ y: (1 - u) * (1 - u) * S.y + 2 * u * (1 - u) * C.y + u * u * T.y,
+ };
+}
+
+function rect(sel) {
+ const r = $(sel).getBoundingClientRect();
+ const f = $('#film').getBoundingClientRect();
+ const scale = f.width / $('#film').offsetWidth;
+ return { l: (r.left - f.left) / scale, t: (r.top - f.top) / scale, r: (r.right - f.left) / scale, b: (r.bottom - f.top) / scale };
+}
+
+// 量一次起点、终点,在弧线上每隔 26px 放一个点;落在 App 窗口上的点不画,免得压住文字
+function measure() {
+ const stage = $('#stage');
+ const destination = $('#a-dst');
+ const paste = $('#b-paste');
+ const saved = [stage.style.transform, destination.style.transform, paste.style.display];
+ stage.style.transform = 'none';
+ destination.style.transform = 'translate(-50%, -50%)';
+ paste.style.display = '';
+ const trail = $('#trail');
+ trail.replaceChildren();
+ for (const [key, r] of Object.entries(ROUNDS)) {
+ const avoid = r.avoid.map(rect);
+ const covered = (q) => avoid.some((a) => q.x > a.l - 14 && q.x < a.r + 14 && q.y > a.t - 14 && q.y < a.b + 14);
+ r.S = center(r.src);
+ r.T = center(r.dst);
+ r.C = $('#film').classList.contains('compact')
+ ? { x: r.S.x + 240 * r.dir, y: (r.S.y + r.T.y) / 2 }
+ : { x: (r.S.x + r.T.x) / 2, y: Math.min(r.S.y, r.T.y) - 2 * LIFT };
+ r.apex = bez(r.S, r.C, r.T, 0.5);
+ const g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
+ g.id = `trail-${key}`;
+ let last = r.S;
+ let run = 0;
+ for (let i = 1; i <= 400; i++) {
+ const u = i / 400;
+ const q = bez(r.S, r.C, r.T, u);
+ run += Math.hypot(q.x - last.x, q.y - last.y);
+ last = q;
+ // 两头各留一段,不压在文件上
+ if (run >= 26 && u > 0.08 && u < 0.92 && !covered(q)) {
+ run = 0;
+ const c = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
+ c.setAttribute('cx', q.x.toFixed(1));
+ c.setAttribute('cy', q.y.toFixed(1));
+ c.setAttribute('r', '3');
+ c.dataset.u = u;
+ g.appendChild(c);
+ }
+ }
+ trail.appendChild(g);
+ r.g = g;
+ }
+ [stage.style.transform, destination.style.transform, paste.style.display] = saved;
+}
+
+// 第 t 秒时,某个回合的纸飞到哪、轨迹露出多少;vis 是这个回合整体的可见度
+function flight(r, t, vis) {
+ const raw = (t - r.fly) / FLY_DUR;
+ const u = easeInOut(clamp(raw));
+ for (const c of r.g.children) {
+ c.style.opacity = raw > 0 && u >= +c.dataset.u ? 0.5 * vis : 0;
+ }
+ if (raw <= 0 || raw >= 1) return false;
+ const q = bez(r.S, r.C, r.T, u);
+ const scale = raw < 0.5 ? 0.55 + 0.45 * (raw / 0.5) : 1 - 0.4 * ((raw - 0.5) / 0.5);
+ const rot = 8 * Math.sin(Math.PI * raw) * r.dir;
+ const fly = $('#fly');
+ fly.style.opacity = raw < 0.12 ? raw / 0.12 : raw > 0.88 ? (1 - raw) / 0.12 : 1;
+ fly.style.transform = `translate(${q.x - 40}px, ${q.y - 51}px) rotate(${rot}deg) scale(${scale})`;
+ return true;
+}
+
+const S3 = scene('s3', 17.3, (t) => {
+ const stage = $('#stage');
+ stage.style.transform = `translateY(${(1 - p(t, 0.1, 0.9)) * 40}px)`;
+
+ // 回合 A:Mac 上的文件 → Windows
+ const va = 1 - p(t, 5.9, 6.3);
+ $('#m1').style.opacity = va;
+ $('#w1').style.opacity = va;
+ const sel = p(t, 1.5, 1.7) * (1 - p(t, 4.4, 4.8));
+ $('#a-name').style.background = `rgba(61,139,234,${sel})`;
+ const keysA = $$('#m1 kbd');
+ press(keysA[0], t, 1.9);
+ press(keysA[1], t, 2.02);
+ const keysA2 = $$('#w1 kbd');
+ press(keysA2[0], t, 3.95);
+ press(keysA2[1], t, 4.07);
+ const land = p(t, 4.3, 4.9);
+ const dstA = $('#a-dst');
+ dstA.style.opacity = land;
+ dstA.style.transform = `translate(-50%, ${lerp(-40, -50, land)}%) scale(${lerp(0.85, 1, land)})`;
+
+ // 回合 B:Windows 记事本里的文字 → Mac 备忘录
+ const vb = p(t, 6.4, 6.9) * (1 - p(t, 11.6, 12.0));
+ $('#m2').style.opacity = vb;
+ $('#w2').style.opacity = vb;
+ $('#b-sel1').style.backgroundSize = `${p(t, 7.3, 7.6, linear) * 100}% 100%`;
+ $('#b-sel2').style.backgroundSize = `${p(t, 7.6, 7.9, linear) * 100}% 100%`;
+ const keysB = $$('#w2 kbd');
+ press(keysB[0], t, 8.1);
+ press(keysB[1], t, 8.22);
+ const keysB2 = $$('#m2 kbd');
+ press(keysB2[0], t, 10.05);
+ press(keysB2[1], t, 10.17);
+ const pasted = p(t, 10.4, 10.9);
+ $('#b-paste').style.opacity = pasted;
+ $('#b-paste').style.display = t < 10.4 ? 'none' : '';
+ $('#b-caret').style.opacity = Math.floor(t * 2) % 2 === 0 ? 1 : 0;
+
+ // 回合 C:Mac 上的截图 → Windows 里的 Word
+ const vc = p(t, 12.1, 12.6);
+ $('#m3').style.opacity = vc;
+ $('#w3').style.opacity = vc;
+ $('#c-ring').style.opacity = p(t, 13.0, 13.2) * (1 - p(t, 15.6, 16.0));
+ const keysC = $$('#m3 kbd');
+ press(keysC[0], t, 13.3);
+ press(keysC[1], t, 13.42);
+ const keysC2 = $$('#w3 kbd');
+ press(keysC2[0], t, 15.25);
+ press(keysC2[1], t, 15.37);
+ const img = p(t, 15.6, 16.2);
+ $('#c-dst').style.opacity = img;
+ $('#c-dst').style.transform = `scale(${lerp(0.9, 1, img)})`;
+
+ // 纸和轨迹
+ const flying = flight(ROUNDS.a, t, va) | flight(ROUNDS.b, t, vb) | flight(ROUNDS.c, t, vc);
+ if (!flying) $('#fly').style.opacity = 0;
+ const label = $('#arc-label');
+ const cur = t < 6.2 ? ROUNDS.a : t < 12.0 ? ROUNDS.b : ROUNDS.c;
+ const lv = t < 6.2 ? p(t, 2.9, 3.4) * va : t < 12.0 ? p(t, 9.0, 9.5) * vb : p(t, 14.2, 14.7) * vc;
+ label.style.left = `${cur.apex.x}px`;
+ label.style.top = `${cur.apex.y - 64}px`;
+ label.style.opacity = lv;
+
+ rise($('#cap-a'), p(t, 0.9, 1.5) * (1 - p(t, 5.6, 6.0)), 20);
+ rise($('#cap-b'), p(t, 6.6, 7.2) * (1 - p(t, 11.5, 11.9)), 20);
+ rise($('#cap-c'), p(t, 12.3, 12.9), 20);
+});
+// 按键音:Mac 在左声道,Windows 在右声道
+[[1.9, 2.02, 3.95, 4.07, -1], [8.1, 8.22, 10.05, 10.17, 1], [13.3, 13.42, 15.25, 15.37, -1]].forEach(([a, b, c, d, side]) => {
+ for (const k of [a, b]) cue(S3, k, 'key', { pan: 0.5 * side });
+ for (const k of [c, d]) cue(S3, k, 'key', { pan: -0.5 * side });
+});
+for (const r of Object.values(ROUNDS)) cue(S3, r.fly, 'whoosh', { dur: FLY_DUR, dir: r.dir });
+cue(S3, 4.3, 'land', { pan: 0.5 });
+cue(S3, 10.4, 'land', { pan: -0.5 });
+cue(S3, 15.6, 'land', { pan: 0.5 });
+
+// 4 能同步什么
+const S4 = scene('s4', 6.8, (t) => {
+ rise($('#s4-h'), p(t, 0.3, 0.9));
+ $$('#s4 .tile').forEach((el, i) => rise(el, p(t, 0.9 + i * 0.16, 1.5 + i * 0.16), 40));
+ rise($('#s4-sub'), p(t, 2.4, 3.0));
+});
+[0, 1, 2, 3, 4].forEach((i) => cue(S4, 0.9 + i * 0.16, 'tick'));
+
+// 5 复制记录
+const S5 = scene('s5', 8.6, (t, dur) => {
+ rise($('#s5-text h2'), p(t, 0.3, 0.9));
+ $$('#s5 .points li').forEach((el, i) => rise(el, p(t, 1.5 + i * 0.5, 2.1 + i * 0.5), 20));
+ const shot = $('#s5-shot');
+ const k = p(t, 0.5, 1.5);
+ shot.style.opacity = k;
+ shot.style.transform = `translateX(${(1 - k) * 120}px) scale(${1 + 0.03 * (t / dur)})`;
+ $('#s5-mark').style.opacity = p(t, 3.4, 3.8);
+});
+[0, 1, 2, 3].forEach((i) => cue(S5, 1.5 + i * 0.5, 'tick'));
+
+// 6 配对
+const S6 = scene('s6', 9.2, (t) => {
+ rise($('#s6-h'), p(t, 0.3, 0.9));
+ rise($('#s6-sub1'), p(t, 0.6, 1.2) * (1 - p(t, 4.3, 4.6)), 16);
+ rise($('#s6-sub2'), p(t, 4.6, 5.2), 16);
+ const shot = $('#s6-shot');
+ const k = p(t, 0.6, 1.6);
+ shot.style.opacity = k * lerp(1, 0.35, p(t, 4.6, 5.2));
+ shot.style.transform = `translateY(${(1 - k) * 50}px)`;
+ const fade = 1 - p(t, 4.4, 4.8);
+ $$('#s6 .pulse').forEach((c, i) => {
+ if (t < 1.2) { c.setAttribute('r', 0); c.style.opacity = 0; return; }
+ const ph = ((t - 1.2) / 2.4 + i / 3) % 1;
+ c.setAttribute('r', lerp(30, 225, ph).toFixed(1));
+ c.style.opacity = (1 - ph) * 0.55 * fade * p(t, 1.2, 1.6);
+ });
+ const card = $('#s6-card');
+ const kc = p(t, 4.6, 5.4);
+ card.style.opacity = kc;
+ card.style.transform = `translateY(${(1 - kc) * 60}px)`;
+});
+cue(S6, 4.6, 'pop');
+
+// 7 连接方式
+const S7 = scene('s7', 9.6, (t) => {
+ rise($('#s7-h'), p(t, 0.3, 0.9));
+ $$('#s7 .way').forEach((el, i) => {
+ const k = p(t, 1.0 + i * 0.35, 1.6 + i * 0.35);
+ rise(el, k, 40);
+ const dot = el.querySelector('.p-dot');
+ const ph = (((t - 1.6 - i * 0.35) / 1.4) % 1 + 1) % 1;
+ dot.setAttribute('cx', lerp(+dot.dataset.x1, +dot.dataset.x2, easeInOut(ph)).toFixed(2));
+ dot.setAttribute('cy', dot.dataset.y);
+ dot.style.opacity = k * Math.sin(Math.PI * ph);
+ });
+ rise($('#s7-foot'), p(t, 4.0, 4.7));
+});
+[0, 1, 2].forEach((i) => cue(S7, 1.0 + i * 0.35, 'tick'));
+
+// 8 对比
+const S8 = scene('s8', 9.0, (t) => {
+ rise($('#s8-h'), p(t, 0.3, 0.9));
+ const rows = $$('#s8 .row');
+ rows.forEach((el, i) => rise(el, p(t, 0.8 + i * 0.3, 1.3 + i * 0.3), 16));
+ $('#s8-col').style.opacity = p(t, 1.0, 1.8);
+});
+[1, 2, 3, 4, 5, 6, 7].forEach((i) => cue(S8, 0.8 + i * 0.3, 'tick', { gain: 0.6 }));
+
+// 9 结尾
+const S9 = scene('s9', 8.6, (t) => {
+ logoIn($('#s9-logo'), t, 0.2);
+ rise($('#s9-name'), p(t, 1.1, 1.7));
+ rise($('#s9-tag'), p(t, 1.6, 2.2));
+ rise($('#s9-chips'), p(t, 2.2, 2.8));
+ rise($('#s9-links'), p(t, 2.9, 3.5));
+ rise($('#s9-ask'), p(t, 4.2, 4.8));
+});
+cue(S9, 0.0, 'finale');
+cue(S9, 1.2, 'pop');
+
+const DURATION = clock;
+const FADE = 0.35;
+
+function seek(T) {
+ for (const s of SCENES) {
+ const t = T - s.start;
+ if (t < 0 || t > s.dur) {
+ s.el.style.visibility = 'hidden';
+ continue;
+ }
+ s.el.style.visibility = 'visible';
+ s.el.style.opacity = Math.min(p(t, 0, FADE, linear), 1 - p(t, s.dur - FADE, s.dur, linear));
+ s.render(t, s.dur);
+ }
+}
+
+async function ready() {
+ await document.fonts.ready;
+ await Promise.all($$('img').map((im) => im.decode().catch(() => {})));
+ measure();
+ return { duration: DURATION, cues: CUES };
+}
+
+window.seek = seek;
+window.ready = ready;
+
+
+window.tourScenes = SCENES.map(({ id, start, dur }) => ({ id, start, dur }));
+window.tourMeasure = measure;
diff --git a/docs/assets/tour.css b/docs/assets/tour.css
new file mode 100644
index 0000000..8495b79
--- /dev/null
+++ b/docs/assets/tour.css
@@ -0,0 +1,528 @@
+/* Artwork adapted from the original rendered PasteFerry trailer. */
+
+:root {
+ --ground: #141416;
+ --surface: #1c1c1f;
+ --surface-2: #242428;
+ --rule: #2b2b30;
+ --rule-strong: #3a3a40;
+ --ink: #f3f3f1;
+ --ink-2: #cfcfcb;
+ --dim: #95959b;
+ --faint: #66666c;
+ --blue: #3d8bea;
+ --blue-hi: #6ea9f1;
+ --blue-wash: rgba(61, 139, 234, 0.13);
+ --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
+ --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
+ --mono: ui-monospace, "SF Mono", Menlo, monospace;
+}
+
+* { box-sizing: border-box; }
+html, body { margin: 0; background: #000; }
+h1, h2, h3, p, figure { margin: 0; font-weight: inherit; }
+
+#film {
+ position: relative;
+ width: 1920px;
+ height: 1080px;
+ overflow: hidden;
+ background: var(--ground);
+ color: var(--ink);
+ font-family: var(--sans);
+ -webkit-font-smoothing: antialiased;
+}
+
+.scene { position: absolute; inset: 0; visibility: hidden; }
+.abs { position: absolute; }
+.cx { position: absolute; left: 0; right: 0; text-align: center; }
+.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
+.h2 { font-size: 60px; }
+.sub { font-size: 32px; color: var(--dim); line-height: 1.5; }
+
+/* ── 1 痛点 ── */
+#s1-head { top: 400px; transform-origin: 50% 0; }
+#s1-head h1 { font-size: 84px; line-height: 1.3; }
+.pains {
+ position: absolute;
+ left: 250px;
+ top: 360px;
+ display: grid;
+ grid-template-columns: 690px 690px;
+ gap: 36px 40px;
+}
+.pain {
+ height: 196px;
+ padding: 40px 46px;
+ border-radius: 24px;
+ background: var(--surface);
+ border: 1px solid var(--rule);
+}
+.pain-t { position: relative; display: inline-block; font-size: 42px; font-weight: 600; }
+.pain-t i {
+ position: absolute;
+ left: -6px;
+ right: -6px;
+ top: 52%;
+ height: 4px;
+ border-radius: 2px;
+ background: var(--ink-2);
+ transform-origin: 0 50%;
+ transform: scaleX(0);
+}
+.pain p { margin-top: 16px; font-size: 30px; color: var(--dim); }
+
+/* ── 2 品牌 ── */
+.logo { position: absolute; overflow: visible; }
+
+/* ── 3 演示:与官网首屏同一套设备 ── */
+.device { position: absolute; width: 700px; }
+.screen {
+ position: relative;
+ height: 455px;
+ border-radius: 16px 16px 4px 4px;
+ background: #0b0b0d;
+ box-shadow: inset 0 0 0 9px #2d2d32, 0 50px 90px -40px rgba(0, 0, 0, 0.9);
+ overflow: hidden;
+}
+.desk { position: absolute; inset: 9px; border-radius: 8px 8px 0 0; overflow: hidden; }
+.mac .desk { background: linear-gradient(#3a3c43, #27292e); }
+.mac .desk::before {
+ content: "";
+ position: absolute;
+ inset: 0 0 auto;
+ height: 28px;
+ background: rgba(255, 255, 255, 0.08);
+}
+.win .desk { background: linear-gradient(#2e3747, #222730); }
+.win .desk::after {
+ content: "";
+ position: absolute;
+ inset: auto 0 0;
+ height: 42px;
+ background: rgba(255, 255, 255, 0.07);
+}
+.taskbar {
+ position: absolute;
+ bottom: 11px;
+ left: 50%;
+ transform: translateX(-50%);
+ display: flex;
+ gap: 10px;
+ width: 200px;
+ height: 20px;
+ z-index: 1;
+}
+.taskbar i { flex: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
+.base {
+ height: 14px;
+ margin: 0 -42px;
+ border-radius: 0 0 18px 18px;
+ background: linear-gradient(#45454b, #26262a);
+}
+.device figcaption { margin-top: 20px; text-align: center; font-size: 26px; color: var(--dim); }
+
+.grp { position: absolute; inset: 0; }
+.file {
+ position: absolute;
+ left: 50%;
+ top: 46%;
+ transform: translate(-50%, -50%);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 10px;
+ font-size: 22px;
+ color: #ececee;
+ white-space: nowrap;
+}
+.doc {
+ position: relative;
+ display: block;
+ width: 84px;
+ height: 108px;
+ border-radius: 9px;
+ background: #f5f5f4;
+ box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
+}
+.lines { position: absolute; inset: 22% 18% auto; display: grid; gap: 9px; }
+.lines i { display: block; height: 7px; border-radius: 99px; background: currentColor; opacity: 0.85; }
+.lines i:nth-child(1) { width: 100%; }
+.lines i:nth-child(2) { width: 75%; }
+.lines i:nth-child(3) { width: 52%; }
+.doc .lines { color: #4a4a4f; }
+.file .name { padding: 2px 10px; border-radius: 6px; }
+
+.keys { position: absolute; right: 34px; bottom: 60px; display: flex; gap: 8px; z-index: 2; }
+.mac .keys { bottom: 34px; }
+kbd {
+ display: inline-grid;
+ place-items: center;
+ min-width: 48px;
+ height: 48px;
+ padding: 0 12px;
+ border-radius: 9px;
+ background: #3b3d43;
+ box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35);
+ font: 600 23px/1 var(--sans);
+ color: #f5f5f4;
+}
+
+/* 桌面上的 App 窗口:亮色,像真的一样 */
+.appwin {
+ position: absolute;
+ left: 50%;
+ top: 44%;
+ width: 74%;
+ height: 58%;
+ transform: translate(-50%, -50%);
+ border-radius: 10px;
+ background: #f7f7f6;
+ color: #1d1d1f;
+ box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
+ overflow: hidden;
+}
+.mac .appwin .bar {
+ position: relative;
+ height: 34px;
+ background: #e9e9e7;
+ font-size: 15px;
+ line-height: 34px;
+ text-align: center;
+ color: #4a4a4f;
+}
+.mac .appwin .bar::before {
+ content: "";
+ position: absolute;
+ left: 14px;
+ top: 11px;
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: #ff5f57;
+ box-shadow: 19px 0 #febc2e, 38px 0 #28c840;
+}
+.win .appwin { border-radius: 8px; background: #ffffff; }
+.win .appwin .bar {
+ position: relative;
+ height: 36px;
+ padding-left: 16px;
+ background: #f0f0f0;
+ font-size: 15px;
+ line-height: 36px;
+ color: #4a4a4f;
+}
+.win .appwin .bar::after {
+ content: "— ☐ ✕";
+ position: absolute;
+ right: 16px;
+ top: 0;
+ font-size: 13px;
+ color: #6a6a6f;
+ white-space: pre;
+}
+.appwin .body { padding: 18px 22px; font-size: 22px; line-height: 1.65; }
+.appwin .sel {
+ background-image: linear-gradient(rgba(0, 120, 215, 0.32), rgba(0, 120, 215, 0.32));
+ background-repeat: no-repeat;
+ background-size: 0% 100%;
+}
+.caret { display: inline-block; width: 2px; height: 26px; vertical-align: -5px; background: #1d1d1f; }
+
+/* 画:一张风景照 */
+.photo {
+ position: relative;
+ overflow: hidden;
+ border-radius: 4px;
+ background: linear-gradient(#8fb6dc, #dfe8ef 70%);
+}
+.photo::before {
+ content: "";
+ position: absolute;
+ left: 64%;
+ top: 18%;
+ width: 15%;
+ aspect-ratio: 1;
+ border-radius: 50%;
+ background: #fbf3dc;
+}
+.photo i {
+ position: absolute;
+ inset: 0;
+ background: #5c6f82;
+ clip-path: polygon(0 100%, 0 62%, 22% 38%, 40% 58%, 58% 30%, 82% 60%, 100% 48%, 100% 100%);
+}
+.photo b {
+ position: absolute;
+ inset: 0;
+ background: #3e4c5a;
+ clip-path: polygon(0 100%, 0 80%, 30% 66%, 55% 78%, 78% 64%, 100% 74%, 100% 100%);
+}
+.pic-ring {
+ position: absolute;
+ inset: -5px;
+ border: 3px solid var(--blue);
+ border-radius: 8px;
+ opacity: 0;
+}
+.docline { height: 9px; margin: 10px 0; border-radius: 5px; background: #dcdcdf; }
+
+#fly {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 80px;
+ height: 102px;
+ border-radius: 10px;
+ background: var(--blue);
+ color: #fff;
+ box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.8);
+ opacity: 0;
+ z-index: 5;
+}
+#fly .lines { color: #fff; }
+.trail circle { fill: var(--blue); }
+#arc-label {
+ position: absolute;
+ font-size: 26px;
+ color: var(--dim);
+ white-space: nowrap;
+ transform: translate(-50%, -100%);
+}
+.cap { top: 850px; font-size: 44px; font-weight: 500; }
+
+/* ── 4 能同步什么 ── */
+.tiles { position: absolute; left: 317px; top: 400px; display: flex; gap: 34px; }
+.tile {
+ width: 230px;
+ height: 230px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 26px;
+ border-radius: 26px;
+ background: var(--surface);
+ border: 1px solid var(--rule);
+ font-size: 32px;
+ font-weight: 500;
+}
+.tile svg { width: 76px; height: 76px; color: var(--ink-2); }
+.tile svg * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
+.tile svg text { fill: currentColor; stroke: none; }
+
+/* ── 5 复制记录 ── */
+.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
+.points li { position: relative; padding-left: 34px; font-size: 32px; color: var(--ink-2); }
+.points li::before {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: 17px;
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ background: var(--blue);
+}
+.shot { position: absolute; transform-origin: 50% 50%; }
+.shot img { display: block; width: 100%; }
+.mark {
+ position: absolute;
+ border: 3px solid var(--blue);
+ border-radius: 14px;
+ opacity: 0;
+}
+
+/* ── 6 配对 ── */
+.pulse { fill: none; stroke: var(--blue); stroke-width: 2.5; }
+
+/* ── 7 连接方式:与官网同一套示意图 ── */
+.ways { position: absolute; left: 190px; top: 320px; display: flex; gap: 80px; }
+.way { width: 460px; text-align: center; }
+.way svg { display: block; width: 400px; height: auto; margin: 0 auto 34px; overflow: visible; }
+.way h3 { font-size: 42px; font-weight: 600; }
+.way p { margin-top: 14px; font-size: 28px; color: var(--dim); line-height: 1.5; }
+.p-dev { fill: var(--surface-2); stroke: var(--dim); stroke-width: 1.5; stroke-linecap: round; }
+.p-net { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
+.p-ts { fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round; }
+.p-sig { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round; }
+.p-data { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
+.p-dot { fill: var(--blue-hi); }
+
+/* ── 8 对比 ── */
+.cmp { position: absolute; left: 230px; top: 250px; width: 1460px; }
+.cmp .row { display: grid; grid-template-columns: 580px repeat(4, 220px); align-items: center; height: 80px; }
+.cmp .row + .row { border-top: 1px solid var(--rule); }
+.cmp .head { height: 76px; border: 0; font-size: 28px; color: var(--dim); }
+.cmp .row > * { text-align: center; font-size: 28px; }
+.cmp .row > :first-child { text-align: left; padding-left: 28px; color: var(--ink-2); }
+.cmp .head > :nth-child(2) { color: var(--blue-hi); font-weight: 600; }
+.cmp .yes { color: var(--ink-2); font-weight: 600; }
+.cmp .row > :nth-child(2).yes { color: var(--blue-hi); }
+.cmp .no { color: var(--faint); }
+.cmp .meh { color: var(--dim); font-size: 25px; }
+.cmp-col {
+ position: absolute;
+ left: 580px;
+ top: -6px;
+ width: 220px;
+ bottom: -6px;
+ border-radius: 18px;
+ background: var(--blue-wash);
+}
+
+/* ── 9 结尾 ── */
+.chips { display: flex; justify-content: center; gap: 16px; }
+.chip {
+ padding: 10px 24px;
+ border: 1px solid var(--rule-strong);
+ border-radius: 999px;
+ font-size: 25px;
+ color: var(--ink-2);
+}
+.links { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 18px 30px; align-items: baseline; }
+.links dt { text-align: right; font-size: 28px; color: var(--dim); }
+.links dd { margin: 0; text-align: left; font: 500 34px var(--mono); color: var(--ink); }
+
+/* ── 封面 ── */
+#cover-title { top: 70px; font-size: 118px; line-height: 1.15; }
+#cover-brand { top: 1030px; display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 44px; color: var(--ink-2); }
+#cover-brand b { font-family: var(--display); font-size: 56px; font-weight: 600; color: var(--ink); }
+#cover-brand .sep { width: 2px; height: 44px; margin: 0 14px; background: var(--rule-strong); }
+
+/* Locale-aware fonts and room for longer English and Japanese copy. */
+:root {
+ color-scheme: dark;
+ --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
+ --display: var(--sans);
+}
+:lang(zh-TW) { --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif; }
+:lang(zh-HK) { --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif; }
+:lang(ja) { --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; }
+body { background: var(--ground); color: var(--ink); font: 16px/1.5 var(--sans); }
+a { color: var(--blue-hi); text-decoration: none; }
+a:hover { text-decoration: underline; }
+button, select, input { font: inherit; }
+button, select { color: var(--ink); cursor: pointer; }
+[hidden] { display: none !important; }
+:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; }
+.tour-header { max-width: 1200px; margin: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
+.tour-brand, .tour-header nav { display: flex; align-items: center; gap: 16px; }
+.tour-brand { color: var(--ink); font-weight: 650; gap: 10px; }
+.tour-header nav { font-size: 14px; }
+.lang { position: relative; }
+.lang summary { cursor: pointer; display: flex; align-items: center; gap: 6px; list-style: none; }
+.lang summary::-webkit-details-marker { display: none; }
+.lang svg { width: 18px; height: 18px; }
+.lang .chev { width: 12px; height: 12px; }
+.lang ul { position: absolute; z-index: 10; right: 0; top: 24px; width: 200px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 40px #0006; }
+.lang a { display: block; padding: 8px 12px; border-radius: 6px; }
+.lang a:hover, .lang a[aria-current] { background: var(--surface-2); color: var(--ink); text-decoration: none; }
+.tour-player { width: min(1200px, 100% - 48px); margin: 10px auto 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: var(--ground); }
+.tour-viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
+#film { transform-origin: 0 0; }
+.tour-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--rule); background: var(--surface); }
+.tour-controls button, .tour-chapters { min-height: 40px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface-2); padding: 6px 12px; }
+.tour-toggle { min-width: 90px; }
+.tour-time { color: var(--dim); font: 13px var(--mono); white-space: nowrap; }
+.tour-progress { flex: 1; min-width: 80px; height: 36px; margin: 0; accent-color: var(--blue-hi); cursor: pointer; }
+.tour-chapters { max-width: 230px; min-width: 0; font-size: 14px; }
+.tour-fullscreen { font-size: 24px; line-height: 1; }
+.tour-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
+.tour-summary { max-width: 760px; margin: 32px auto 48px; padding: 0 24px; }
+.tour-summary h1 { font-size: 28px; font-weight: 650; line-height: 1.3; }
+.tour-silent { margin: 12px 0 24px; color: var(--dim); font-size: 14px; }
+.tour-summary details { margin-bottom: 24px; color: var(--ink-2); }
+.tour-summary summary { cursor: pointer; }
+.tour-summary li { margin: 10px 0; }
+.tour-download { display: inline-block; padding: 12px 22px; border-radius: 99px; color: #fff; background: var(--blue); font-weight: 600; }
+.tour-player:fullscreen { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
+.tour-player:fullscreen .tour-viewport { width: min(100%, calc((100dvh - 84px) * 16 / 9)); margin-inline: auto; flex: 0 0 auto; }
+.tour-player:fullscreen .tour-controls { width: 100%; }
+.embedded .tour-header, .embedded .tour-summary { display: none; }
+.embedded .tour-player { width: 100%; margin: 0; border: 0; border-radius: 0; }
+.rendering .tour-header, .rendering .tour-summary, .rendering .tour-controls { display: none; }
+.rendering .tour-player { width: 1920px; margin: 0; border: 0; border-radius: 0; }
+#film .cx { padding-inline: 70px; text-wrap: balance; }
+#film #s1-head { padding-inline: 0; }
+#film .pain-t { font-size: 38px; }
+#film .pain p { font-size: 28px; }
+#film .appwin .body { font-size: 20px; }
+#film .tile { text-align: center; text-wrap: balance; padding: 12px; }
+#film .tile svg { flex-shrink: 0; }
+#film .points li { font-size: 30px; }
+#film .mark { display: none; }
+#film .cmp .head > * { font-size: 25px; }
+#film .cmp .row:not(.head) > :first-child { font-size: 26px; }
+#film:lang(ja) .pain-t { font-size: 34px; }
+#film:lang(ja) .tile { font-size: 28px; }
+
+/* A portrait composition, rather than shrinking a 1080p frame onto a phone. */
+#film.compact .cx { padding-inline: 45px; }
+#film.compact #s1-head h1 { font-size: 54px; }
+#film.compact .pains { left: 40px; top: 345px; grid-template-columns: 880px; gap: 24px; }
+#film.compact .pain { height: 130px; padding: 20px 30px; }
+#film.compact .pain-t { font-size: 38px; }
+#film.compact .pain p { margin-top: 8px; font-size: 30px; }
+#film.compact #s1-l3 { font-size: 62px !important; }
+#film.compact #s2-logo { left: 355px !important; top: 170px !important; }
+#film.compact #s2-name { font-size: 90px !important; }
+#film.compact #s2-tag { font-size: 44px !important; top: 640px !important; }
+#film.compact #s2-os { top: 850px !important; font-size: 36px !important; }
+#film.compact .device { width: 700px; left: 130px !important; top: 70px !important; }
+#film.compact .device.win { top: 620px !important; }
+#film.compact .screen { height: 385px; }
+#film.compact .device figcaption { margin-top: 12px; font-size: 30px; }
+#film.compact .appwin .body { font-size: 23px; }
+#film.compact .cap { top: 1090px; font-size: 38px; line-height: 1.4; }
+#film.compact #arc-label { display: none; }
+#film.compact #s4-h { top: 130px !important; font-size: 54px; }
+#film.compact .tiles { left: 60px; top: 340px; display: grid; grid-template-columns: repeat(3, 260px); gap: 30px; }
+#film.compact .tile { width: 260px; height: 230px; font-size: 36px; }
+#film.compact #s4-sub { top: 930px !important; font-size: 35px; }
+#film.compact #s5-text { left: 50px !important; top: 70px !important; width: 860px !important; }
+#film.compact #s5-text h2 { font-size: 54px !important; }
+#film.compact .points { margin-top: 35px !important; grid-template-columns: 1fr 1fr; gap: 20px; }
+#film.compact .points li { font-size: 32px; }
+#film.compact #s5-shot { left: 40px !important; top: 520px !important; width: 880px !important; }
+#film.compact #s6-h { top: 70px !important; font-size: 52px; }
+#film.compact #s6-sub1, #film.compact #s6-sub2 { top: 210px !important; font-size: 34px; }
+#film.compact #s6-shot { left: 40px !important; top: 390px !important; width: 880px !important; }
+#film.compact #s6-card { left: 40px !important; top: 460px !important; width: 880px !important; }
+#film.compact #s7-h { top: 60px !important; font-size: 52px; }
+#film.compact .ways { left: 50px; top: 290px; display: grid; gap: 30px; }
+#film.compact .way { width: 860px; display: grid; grid-template-columns: 300px 1fr; align-content: center; text-align: left; }
+#film.compact .way svg { width: 280px; grid-row: span 2; margin: 0; align-self: center; }
+#film.compact .way h3 { font-size: 40px; }
+#film.compact .way p { font-size: 32px; margin-top: 8px; }
+#film.compact #s7-foot { top: 970px !important; font-size: 32px !important; }
+#film.compact #s8-h { top: 90px !important; font-size: 54px; }
+#film.compact .cmp { left: 30px; top: 270px; width: 900px; }
+#film.compact .cmp .row { grid-template-columns: 280px repeat(4, 155px); height: 105px; }
+#film.compact .cmp .row > * { font-size: 30px; padding-inline: 6px; }
+#film.compact .cmp .head > * { font-size: 26px; }
+#film.compact .cmp .row:not(.head) > :first-child { font-size: 28px; padding-left: 8px; }
+#film.compact .cmp-col { left: 280px; width: 155px; }
+#film.compact #s9-logo { left: 385px !important; top: 100px !important; }
+#film.compact #s9-name { top: 350px !important; font-size: 80px !important; }
+#film.compact #s9-tag { top: 510px !important; font-size: 42px !important; }
+#film.compact #s9-chips { top: 700px !important; display: grid; grid-template-columns: auto auto; }
+#film.compact .chip { font-size: 29px; }
+#film.compact #s9-links { top: 900px !important; display: flex; flex-direction: column; align-items: center; gap: 18px; }
+#film.compact #s9-links dt { display: none; }
+#film.compact #s9-links dd { font-size: 29px; }
+#film.compact #s9-ask { top: 1090px !important; font-size: 32px !important; }
+@media (max-width: 600px) {
+ .tour-player { width: calc(100% - 24px); margin-top: 0; border-radius: 14px; }
+ .tour-header { padding: 16px 14px; }
+ .tour-header nav > a { display: none; }
+ .tour-controls { padding: 10px 12px; gap: 8px; }
+ .tour-toggle { min-width: 74px; font-size: 14px; }
+ .tour-progress { flex-basis: calc(100% - 200px); }
+ .tour-chapters { flex: 1; max-width: none; }
+ .tour-summary h1 { font-size: 24px; }
+ .tour-player:fullscreen .tour-viewport { width: min(100%, calc((100dvh - 110px) * 4 / 5)); }
+}
+@media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after { scroll-behavior: auto; }
+}
diff --git a/docs/assets/tour.js b/docs/assets/tour.js
new file mode 100644
index 0000000..fdb0794
--- /dev/null
+++ b/docs/assets/tour.js
@@ -0,0 +1,156 @@
+// Responsive, silent player for the deterministic tour artwork.
+(function () {
+ 'use strict';
+ const player = document.querySelector('.tour-player');
+ if (!player) return;
+ const labels = JSON.parse(player.dataset.labels);
+ const viewport = player.querySelector('.tour-viewport');
+ const film = document.getElementById('film');
+ const toggle = player.querySelector('.tour-toggle');
+ const slider = player.querySelector('.tour-progress');
+ const timer = player.querySelector('.tour-time');
+ const chapters = player.querySelector('.tour-chapters');
+ const fullscreen = player.querySelector('.tour-fullscreen');
+ const status = player.querySelector('.tour-status');
+ const reduced = matchMedia('(prefers-reduced-motion: reduce)');
+ const params = new URLSearchParams(location.search);
+ let duration = 84.5;
+ let time = 0;
+ let playing = false;
+ let frame = 0;
+ let previous = 0;
+ let initialized = false;
+ let poster = true;
+ let chapterIndex = -1;
+
+ function layout() {
+ const compact = matchMedia('(max-width: 600px)').matches && !params.has('render');
+ film.classList.toggle('compact', compact);
+ const width = compact ? 960 : 1920;
+ const height = compact ? 1200 : 1080;
+ film.style.width = width + 'px';
+ film.style.height = height + 'px';
+ viewport.style.aspectRatio = width + ' / ' + height;
+ film.style.transform = 'scale(' + viewport.clientWidth / width + ')';
+ if (initialized) {
+ window.tourMeasure();
+ draw();
+ }
+ }
+
+ function format(value) {
+ const seconds = Math.floor(value);
+ return Math.floor(seconds / 60) + ':' + String(seconds % 60).padStart(2, '0');
+ }
+
+ function draw() {
+ // Keep the closing card visible when playback ends or reaches the last frame.
+ window.seek(Math.min(time, duration - 0.4));
+ slider.value = time;
+ timer.textContent = format(time) + ' / ' + format(Math.ceil(duration));
+ slider.setAttribute('aria-valuetext', format(time) + ' / ' + format(Math.ceil(duration)));
+ toggle.textContent = playing ? labels.pause : time >= duration ? labels.replay : labels.play;
+ const index = window.tourScenes.findIndex(s => time < s.start + s.dur);
+ const current = index < 0 ? window.tourScenes.length - 1 : index;
+ chapters.value = current;
+ if (chapterIndex !== current) {
+ chapterIndex = current;
+ status.textContent = chapters.options[current].textContent;
+ }
+ }
+
+ function pause() {
+ playing = false;
+ cancelAnimationFrame(frame);
+ frame = 0;
+ draw();
+ }
+
+ function tick(now) {
+ if (!playing) return;
+ time = Math.min(duration, time + (now - previous) / 1000);
+ previous = now;
+ if (time >= duration) return pause();
+ draw();
+ frame = requestAnimationFrame(tick);
+ }
+
+ function play() {
+ if (playing || !initialized) return;
+ if (poster || time >= duration) time = 0;
+ poster = false;
+ playing = true;
+ previous = performance.now();
+ draw();
+ frame = requestAnimationFrame(tick);
+ }
+
+ function move(value) {
+ poster = false;
+ time = Math.max(0, Math.min(duration, value));
+ previous = performance.now();
+ draw();
+ }
+
+ toggle.addEventListener('click', () => playing ? pause() : play());
+ slider.addEventListener('input', () => move(+slider.value));
+ chapters.addEventListener('change', () => move(window.tourScenes[+chapters.value].start + 0.5));
+ player.addEventListener('keydown', event => {
+ if (/^(INPUT|SELECT|BUTTON|A)$/.test(event.target.tagName)) return;
+ if (event.code === 'Space') {
+ event.preventDefault();
+ playing ? pause() : play();
+ } else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
+ event.preventDefault();
+ move(time + (event.key === 'ArrowRight' ? 5 : -5));
+ }
+ });
+ player.tabIndex = 0;
+ document.addEventListener('keydown', event => {
+ if (event.key === 'Escape' && params.has('embed') && parent !== window && !document.fullscreenElement) {
+ event.preventDefault();
+ parent.postMessage('tour:close', location.origin);
+ }
+ });
+
+ if (!player.requestFullscreen || !document.fullscreenEnabled) fullscreen.hidden = true;
+ fullscreen.addEventListener('click', async () => {
+ try {
+ if (document.fullscreenElement) await document.exitFullscreen();
+ else await player.requestFullscreen();
+ } catch (_) { /* Keep the player usable when full screen is unavailable. */ }
+ });
+ document.addEventListener('fullscreenchange', () => {
+ const label = document.fullscreenElement ? labels.exit_fullscreen : labels.fullscreen;
+ fullscreen.setAttribute('aria-label', label);
+ fullscreen.title = label;
+ layout();
+ });
+ document.addEventListener('visibilitychange', () => {
+ if (document.hidden && initialized) pause();
+ });
+ // Closing the parent dialog pauses its iframe without reloading the artwork.
+ window.addEventListener('message', event => {
+ if (event.origin !== location.origin || event.source !== parent || !initialized) return;
+ if (event.data === 'tour:pause') pause();
+ if (event.data === 'tour:play' && !reduced.matches) play();
+ });
+ reduced.addEventListener('change', () => { if (reduced.matches && initialized) pause(); });
+
+ if (params.has('render')) document.documentElement.classList.add('rendering');
+ layout();
+ if ('ResizeObserver' in window) new ResizeObserver(layout).observe(viewport);
+ else window.addEventListener('resize', layout);
+ window.tourReady = window.ready().then(info => {
+ duration = info.duration;
+ slider.max = duration;
+ initialized = true;
+ time = window.tourScenes[1].start + 3.4;
+ draw();
+ player.querySelector('.tour-controls').hidden = params.has('render');
+ // The parent decides whether its dialog is still open. A visitor may have
+ // closed it while images were loading; that must never start hidden playback.
+ if (params.has('embed') && parent !== window) parent.postMessage('tour:ready', location.origin);
+ return info;
+ });
+})();
diff --git a/docs/en/index.html b/docs/en/index.html
index fe0ba79..a4a36af 100644
--- a/docs/en/index.html
+++ b/docs/en/index.html
@@ -210,6 +210,7 @@
</div>
<p class="note">Version 2.0.0, free and open source. macOS 13 or later; Windows 10 and 11; Linux (x64 and ARM64).</p>
<a class="start-link" href="start/">New here? Set it up in three steps →</a>
+ <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> Watch the tour <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="Demo: Command C on a MacBook turns a file into a sheet that flies over a direct connection to a Windows laptop, where Ctrl V pastes it">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -603,6 +604,10 @@
</div>
</footer>
+ <dialog class="tour-dialog" aria-label="Meet PasteFerry in 85 seconds">
+ <form method="dialog"><button class="tour-close" aria-label="Close tour">×</button></form>
+ <iframe title="Meet PasteFerry in 85 seconds" data-src="tour/?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="../assets/site.js" defer></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
diff --git a/docs/en/tour/index.html b/docs/en/tour/index.html
new file mode 100644
index 0000000..fd199c9
--- /dev/null
+++ b/docs/en/tour/index.html
@@ -0,0 +1,269 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Meet PasteFerry in 85 seconds — PasteFerry</title>
+ <meta name="description" content="Mac, Windows and Linux. Text, images, files and folders across accounts and networks; peer-to-peer, end-to-end encrypted, no server needed on the same network. Free and open source.">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="https://baiyuze.github.io/pasteferry/en/tour/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/">
+<link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+<link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/">
+<link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../../assets/tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="../../assets/icon.svg" width="26" height="26" alt="">PasteFerry</a>
+ <nav><a href="../">Back to the site</a><details class="lang">
+ <summary aria-label="Language:English"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>English</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
+ <ul>
+ <li><a href="../../tour/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
+ <li><a href="../../zh-tw/tour/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
+ <li><a href="../../zh-hk/tour/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
+ <li><a href="../../en/tour/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a></li>
+ <li><a href="../../ja/tour/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>
+ </ul>
+ </details></nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{&quot;watch&quot;: &quot;Watch the tour&quot;, &quot;title&quot;: &quot;Meet PasteFerry in 85 seconds&quot;, &quot;play&quot;: &quot;Play&quot;, &quot;pause&quot;: &quot;Pause&quot;, &quot;replay&quot;: &quot;Replay&quot;, &quot;progress&quot;: &quot;Playback position&quot;, &quot;chapters&quot;: &quot;Choose a chapter&quot;, &quot;fullscreen&quot;: &quot;Full screen&quot;, &quot;exit_fullscreen&quot;: &quot;Exit full screen&quot;, &quot;close&quot;: &quot;Close tour&quot;, &quot;back&quot;: &quot;Back to the site&quot;, &quot;summary&quot;: &quot;Tour highlights&quot;, &quot;silent&quot;: &quot;Silent tour&quot;}">
+ <div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">Copying between two computers</h1>
+ <h1 class="display" id="s1-l2">shouldn’t be this much work.</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">Sending it to yourself<i></i></span><p>Send, open, download, then find the file</p></div>
+ <div class="pain"><span class="pain-t">AirDrop<i></i></span><p>Accept every time. Still no clipboard sync.</p></div>
+ <div class="pain"><span class="pain-t">Universal Clipboard<i></i></span><p>Same Apple ID, and the devices must be close</p></div>
+ <div class="pain"><span class="pain-t">Between Mac and Windows<i></i></span><p>None of the built-in options work</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">It can be much simpler.</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">PasteFerry</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">Copy on this computer. Paste on that one.</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">Q3 review - final.pptx</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">Notes</div>
+ <div class="body" id="b-dst"><div id="b-paste">Roll out to 10% on Tuesday.<br>All users on Thursday if all goes well.</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">Screenshot.png</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">Q3 review - final.pptx</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">Meeting notes.txt - Notepad</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">Roll out to 10% on Tuesday.</span><br><span class="sel" id="b-sel2">All users on Thursday if all goes well.</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">Weekly report.docx - Word</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>Windows laptop</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">Direct, end-to-end encrypted</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">Copy a file on Mac. Paste it on Windows.</p>
+ <p class="cx cap" id="cap-b">And back: copy on Windows, paste on Mac.</p>
+ <p class="cx cap" id="cap-c">Screenshots too. They paste as images.</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">What you copy is what you paste</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>Text</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>Rich text</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>Images</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>Files</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>Whole folders</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">Under 50 MB? Transfer starts as you copy.<br>Larger files arrive on demand, with one click.</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">Everything you copied,<br>all in one place</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>3 days of history by default</li>
+ <li>Click to copy it again</li>
+ <li>Preview images in place</li>
+ <li>Pull large files when you need them</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="../../assets/screenshots/en/history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">Pair once, and you’re set</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">On the same network, find a nearby computer and pair</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">Check the fingerprints on both screens before confirming</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="../../assets/screenshots/en/nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="../../assets/screenshots/en/card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">One network or many. Your choice.</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>Same network</h3>
+ <p>At home or at the office,<br>no server to set up</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>Public server</h3>
+ <p>Host a small cloud VM,<br>sync from anywhere</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>Across networks,<br>without your own server</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">A direct connection when possible. End-to-end encrypted.<br><span style="color:var(--dim)">In server mode, your server relays encrypted data if a direct link fails.</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">How it compares</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>PasteFerry</span><span>Universal Clipboard</span><span>AirDrop</span><span>Chat apps</span></div>
+ <div class="row"><span>Different Apple IDs</span><span class="yes">✓</span><span class="no">—</span><span class="meh">Needs accepting</span><span class="yes">✓</span></div>
+ <div class="row"><span>Different networks (home and office)</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>Paste right away, nothing to accept</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>Between Mac and Windows</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>Files and whole folders</span><span class="yes">✓</span><span class="meh">Unreliable</span><span class="yes">✓</span><span class="meh">Zip first</span></div>
+ <div class="row"><span>Find something you copied earlier</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">Scroll back</span></div>
+ <div class="row"><span>Content stays off third-party servers</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">PasteFerry</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">Copy on this computer. Paste on that one.</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">Free &amp; open source</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>Download</dt><dd>baiyuze.github.io/pasteferry/en/</dd>
+ <dt>Source</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">Less sending things around. More getting things done.</p>
+ </section>
+
+</div>
+</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">Play</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="Playback position">
+ <select class="tour-chapters" aria-label="Choose a chapter"><option value="0">01 · Too many steps</option>
+<option value="1">02 · Meet PasteFerry</option>
+<option value="2">03 · Copy and paste</option>
+<option value="3">04 · What you can sync</option>
+<option value="4">05 · Clipboard history</option>
+<option value="5">06 · Secure pairing</option>
+<option value="6">07 · Ways to connect</option>
+<option value="7">08 · Compare options</option>
+<option value="8">09 · Get started</option></select>
+ <button class="tour-fullscreen" type="button" aria-label="Full screen" title="Full screen">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>Meet PasteFerry in 85 seconds</h1>
+ <p class="tour-silent">Silent tour · macOS / Windows / Linux</p>
+ <details><summary>Tour highlights</summary><ul><li>Copy a file on Mac. Paste it on Windows.</li>
+<li>And back: copy on Windows, paste on Mac.</li>
+<li>What you copy is what you paste</li>
+<li>3 days of history by default</li>
+<li>Pair once, and you’re set</li>
+<li>A direct connection when possible. End-to-end encrypted.</li>
+<li>In server mode, your server relays encrypted data if a direct link fails.</li></ul></details>
+ <a class="tour-download" href="../download/">Download PasteFerry →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player { display:none; }</style></noscript>
+ <script src="../../assets/tour-scenes.js" defer></script>
+ <script src="../../assets/tour.js" defer></script>
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/index.html b/docs/index.html
index 18e9a68..03b795c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -234,6 +234,7 @@
</div>
<p class="note">版本 2.0.0,免费开源。macOS 13 及以上;Windows 10、11;Linux(x64 与 ARM64)。</p>
<a class="start-link" href="start/">第一次用?看快速开始,三步配好 →</a>
+ <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 观看宣传片 <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="演示:在 MacBook 上按下 Command C,文件化作一张纸,经直连飞到 Windows 笔记本,在那里按下 Ctrl V 粘贴出来">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -627,6 +628,10 @@
</div>
</footer>
+ <dialog class="tour-dialog" aria-label="一分钟多,了解隔空贴">
+ <form method="dialog"><button class="tour-close" aria-label="关闭宣传片">×</button></form>
+ <iframe title="一分钟多,了解隔空贴" data-src="tour/?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="assets/site.js" defer></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
diff --git a/docs/ja/index.html b/docs/ja/index.html
index fb5b50c..a7bce55 100644
--- a/docs/ja/index.html
+++ b/docs/ja/index.html
@@ -210,6 +210,7 @@
</div>
<p class="note">バージョン 2.0.0、無料・オープンソース。macOS 13 以降、Windows 10・11、Linux(x64 と ARM64)。</p>
<a class="start-link" href="start/">はじめての方は、3 ステップのはじめかたへ →</a>
+ <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 紹介ムービーを見る <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="デモ:MacBook で Command C を押すと、ファイルが一枚の紙になって直接接続で Windows ノートへ飛び、そこで Ctrl V を押して貼り付けます">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -603,6 +604,10 @@
</div>
</footer>
+ <dialog class="tour-dialog" aria-label="85 秒でわかる PasteFerry">
+ <form method="dialog"><button class="tour-close" aria-label="ムービーを閉じる">×</button></form>
+ <iframe title="85 秒でわかる PasteFerry" data-src="tour/?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="../assets/site.js" defer></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
diff --git a/docs/ja/tour/index.html b/docs/ja/tour/index.html
new file mode 100644
index 0000000..1879605
--- /dev/null
+++ b/docs/ja/tour/index.html
@@ -0,0 +1,269 @@
+<!doctype html>
+<html lang="ja">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>85 秒でわかる PasteFerry — PasteFerry</title>
+ <meta name="description" content="Mac、Windows、Linux に対応。テキスト、画像、ファイル、フォルダを、アカウントやネットワークをまたいで同期。P2P 直接接続、エンドツーエンド暗号化、同じネットワークならサーバー不要。無料・オープンソース。">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/">
+<link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+<link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/">
+<link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../../assets/tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="../../assets/icon.svg" width="26" height="26" alt="">PasteFerry</a>
+ <nav><a href="../">公式サイトへ</a><details class="lang">
+ <summary aria-label="言語:日本語"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>日本語</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
+ <ul>
+ <li><a href="../../tour/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
+ <li><a href="../../zh-tw/tour/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
+ <li><a href="../../zh-hk/tour/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
+ <li><a href="../../en/tour/" hreflang="en" lang="en" data-lang="en">English</a></li>
+ <li><a href="../../ja/tour/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a></li>
+ </ul>
+ </details></nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{&quot;watch&quot;: &quot;紹介ムービーを見る&quot;, &quot;title&quot;: &quot;85 秒でわかる PasteFerry&quot;, &quot;play&quot;: &quot;再生&quot;, &quot;pause&quot;: &quot;一時停止&quot;, &quot;replay&quot;: &quot;もう一度再生&quot;, &quot;progress&quot;: &quot;再生位置&quot;, &quot;chapters&quot;: &quot;チャプターを選択&quot;, &quot;fullscreen&quot;: &quot;全画面&quot;, &quot;exit_fullscreen&quot;: &quot;全画面を終了&quot;, &quot;close&quot;: &quot;ムービーを閉じる&quot;, &quot;back&quot;: &quot;公式サイトへ&quot;, &quot;summary&quot;: &quot;ムービーのポイント&quot;, &quot;silent&quot;: &quot;音声なし&quot;}">
+ <div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">2 台のパソコンでコピペするだけ。</h1>
+ <h1 class="display" id="s1-l2">もっと簡単にならない?</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">自分宛てに送信<i></i></span><p>送って、開いて、保存して、探して…</p></div>
+ <div class="pain"><span class="pain-t">AirDrop<i></i></span><p>毎回受信を許可。クリップボードには入らない</p></div>
+ <div class="pain"><span class="pain-t">ユニバーサルクリップボード<i></i></span><p>同じ Apple ID と、近くにある端末が必要</p></div>
+ <div class="pain"><span class="pain-t">Mac と Windows の間では<i></i></span><p>標準機能だけでは、うまくいかない</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">もっとシンプルに。</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">PasteFerry</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">こっちでコピーして、あっちで貼り付け。</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">四半期報告_最終版.pptx</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">メモ</div>
+ <div class="body" id="b-dst"><div id="b-paste">火曜日に 10% へリリース。<br>問題なければ木曜日に全体へ。</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">スクリーンショット.png</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">四半期報告_最終版.pptx</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">会議メモ.txt - メモ帳</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">火曜日に 10% へリリース。</span><br><span class="sel" id="b-sel2">問題なければ木曜日に全体へ。</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">週報.docx - Word</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>Windows ノート</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">直接接続、エンドツーエンド暗号化</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">Mac でファイルをコピー。Windows に貼り付け。</p>
+ <p class="cx cap" id="cap-b">逆も同じ。Windows でコピー、Mac に貼り付け。</p>
+ <p class="cx cap" id="cap-c">スクリーンショットも、そのまま画像として貼り付け。</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">コピーしたものを、そのまま貼り付け</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>テキスト</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>書式付きテキスト</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>画像</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>ファイル</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>フォルダごと</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">50 MB 未満なら、コピーと同時に転送開始。<br>大きなファイルは、必要なときにワンクリックで取得。</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">どの端末のコピーも、<br>履歴はここに。</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>標準で 3 日分を保存。変更も可能</li>
+ <li>クリックで、もう一度コピー</li>
+ <li>画像はその場でプレビュー</li>
+ <li>大きなファイルは必要なときに取得</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="../../assets/screenshots/ja/history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">一度ペアリングすれば、準備完了</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">同じネットワークの端末を検索して、ペアリング</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">両方の画面でフィンガープリントが一致することを確認</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="../../assets/screenshots/ja/nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="../../assets/screenshots/ja/card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">同じネットワークでも、離れた場所でも</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>同じネットワーク</h3>
+ <p>自宅やオフィスで、<br>サーバーの準備は不要</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>公開サーバー</h3>
+ <p>小さなクラウド VM を用意して、<br>どこからでも同期</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>ネットワークをまたいでも、<br>自前のサーバーは不要</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">可能な限り端末同士で直接接続。エンドツーエンド暗号化。<br><span style="color:var(--dim)">サーバーモードでは、直接接続できない場合も暗号化したまま中継。</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">いつもの方法と比べてみると</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>PasteFerry</span><span>ユニバーサルクリップボード</span><span>AirDrop</span><span>チャットアプリ</span></div>
+ <div class="row"><span>別々の Apple ID のあいだ</span><span class="yes">✓</span><span class="no">—</span><span class="meh">受け取り操作が必要</span><span class="yes">✓</span></div>
+ <div class="row"><span>別のネットワーク(自宅と会社)</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>コピーしてすぐ貼り付け、受け取り操作なし</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>Mac と Windows のあいだ</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>ファイルとフォルダまるごと</span><span class="yes">✓</span><span class="meh">不安定</span><span class="yes">✓</span><span class="meh">先に圧縮</span></div>
+ <div class="row"><span>前にコピーしたものを探す</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">履歴をさかのぼる</span></div>
+ <div class="row"><span>内容が第三者のサーバーを通らない</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">PasteFerry</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">こっちでコピーして、あっちで貼り付け。</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">無料・オープンソース</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>ダウンロード</dt><dd>baiyuze.github.io/pasteferry/ja/</dd>
+ <dt>ソースコード</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">送る手間を減らして、作業をもっとスムーズに。</p>
+ </section>
+
+</div>
+</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">再生</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="再生位置">
+ <select class="tour-chapters" aria-label="チャプターを選択"><option value="0">01 · コピペの悩み</option>
+<option value="1">02 · PasteFerry とは</option>
+<option value="2">03 · 端末間でコピペ</option>
+<option value="3">04 · 同期できるもの</option>
+<option value="4">05 · クリップボード履歴</option>
+<option value="5">06 · 安全にペアリング</option>
+<option value="6">07 · 接続方法</option>
+<option value="7">08 · 機能を比較</option>
+<option value="8">09 · 使ってみよう</option></select>
+ <button class="tour-fullscreen" type="button" aria-label="全画面" title="全画面">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>85 秒でわかる PasteFerry</h1>
+ <p class="tour-silent">音声なし · macOS / Windows / Linux</p>
+ <details><summary>ムービーのポイント</summary><ul><li>Mac でファイルをコピー。Windows に貼り付け。</li>
+<li>逆も同じ。Windows でコピー、Mac に貼り付け。</li>
+<li>コピーしたものを、そのまま貼り付け</li>
+<li>標準で 3 日分を保存。変更も可能</li>
+<li>一度ペアリングすれば、準備完了</li>
+<li>可能な限り端末同士で直接接続。エンドツーエンド暗号化。</li>
+<li>サーバーモードでは、直接接続できない場合も暗号化したまま中継。</li></ul></details>
+ <a class="tour-download" href="../download/">PasteFerry をダウンロード →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player { display:none; }</style></noscript>
+ <script src="../../assets/tour-scenes.js" defer></script>
+ <script src="../../assets/tour.js" defer></script>
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index b768e40..e833426 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -321,6 +321,51 @@
<xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/download/"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/download/"/>
</url>
+ <url>
+ <loc>https://baiyuze.github.io/pasteferry/tour/</loc>
+ <lastmod>2026-10-14</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/pasteferry/zh-tw/tour/</loc>
+ <lastmod>2026-10-14</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/pasteferry/zh-hk/tour/</loc>
+ <lastmod>2026-10-14</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/pasteferry/en/tour/</loc>
+ <lastmod>2026-10-14</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/pasteferry/ja/tour/</loc>
+ <lastmod>2026-10-14</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/"/>
+ <xhtml:link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/"/>
+ </url>
<url>
<loc>https://baiyuze.github.io/pasteferry/design/nat-traversal.html</loc>
<lastmod>2026-10-14</lastmod>
diff --git a/docs/tour/index.html b/docs/tour/index.html
new file mode 100644
index 0000000..041f8d0
--- /dev/null
+++ b/docs/tour/index.html
@@ -0,0 +1,269 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>一分钟多,了解隔空贴 — 隔空贴</title>
+ <meta name="description" content="Mac、Windows、Linux 互通。文本、图片、文件、文件夹,跨账号、跨网络,P2P 直连、端到端加密,同一网络里不需要服务器。免费开源。">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="https://baiyuze.github.io/pasteferry/tour/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/">
+<link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+<link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/">
+<link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../assets/tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="../assets/icon.svg" width="26" height="26" alt="">隔空贴</a>
+ <nav><a href="../">返回官网</a><details class="lang">
+ <summary aria-label="语言:简体中文"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>简体中文</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
+ <ul>
+ <li><a href="../tour/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a></li>
+ <li><a href="../zh-tw/tour/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
+ <li><a href="../zh-hk/tour/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
+ <li><a href="../en/tour/" hreflang="en" lang="en" data-lang="en">English</a></li>
+ <li><a href="../ja/tour/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>
+ </ul>
+ </details></nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{&quot;watch&quot;: &quot;观看宣传片&quot;, &quot;title&quot;: &quot;一分钟多,了解隔空贴&quot;, &quot;play&quot;: &quot;播放&quot;, &quot;pause&quot;: &quot;暂停&quot;, &quot;replay&quot;: &quot;重新播放&quot;, &quot;progress&quot;: &quot;播放进度&quot;, &quot;chapters&quot;: &quot;选择章节&quot;, &quot;fullscreen&quot;: &quot;全屏&quot;, &quot;exit_fullscreen&quot;: &quot;退出全屏&quot;, &quot;close&quot;: &quot;关闭宣传片&quot;, &quot;back&quot;: &quot;返回官网&quot;, &quot;summary&quot;: &quot;影片要点&quot;, &quot;silent&quot;: &quot;无声演示&quot;}">
+ <div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">两台电脑之间复制粘贴,</h1>
+ <h1 class="display" id="s1-l2">为什么还这么麻烦?</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">发给自己<i></i></span><p>发过去,点开,下载,再找文件在哪</p></div>
+ <div class="pain"><span class="pain-t">隔空投送<i></i></span><p>每次都要点接收,也进不了剪贴板</p></div>
+ <div class="pain"><span class="pain-t">通用剪贴板<i></i></span><p>同一个 Apple ID,还得离得近</p></div>
+ <div class="pain"><span class="pain-t">Mac 和 Windows 之间<i></i></span><p>系统自带的办法,一个都用不上</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">其实,可以简单得多。</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">隔空贴</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">在这台电脑复制,到那台电脑粘贴。</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">季度汇报-终版.pptx</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">备忘录</div>
+ <div class="body" id="b-dst"><div id="b-paste">会议结论:周二先发布 10%,<br>观察两天没问题,周四全量。</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">屏幕截图.png</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">季度汇报-终版.pptx</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">会议记录.txt - 记事本</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">会议结论:周二先发布 10%,</span><br><span class="sel" id="b-sel2">观察两天没问题,周四全量。</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">周报.docx - Word</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>Windows 笔记本</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">直连,端到端加密</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">Mac 上复制文件,Windows 上直接粘贴</p>
+ <p class="cx cap" id="cap-b">反过来也一样:Windows 复制,Mac 粘贴</p>
+ <p class="cx cap" id="cap-c">截图、图片也是,粘贴出来就是图片</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">复制什么,粘贴出来就是什么</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>带格式的文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>图片</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>文件</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>整个文件夹</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">小于 50 MB 的内容,复制时就开始传输;<br>更大的文件先同步记录,需要时再拉取。</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">所有设备复制过的,<br>都在这里</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>默认保留最近 3 天,可以调</li>
+ <li>点一下,放回剪贴板</li>
+ <li>图片点开就能预览</li>
+ <li>大文件,需要时再拉到本机</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="../assets/screenshots/history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">第一次用,配对一次就好</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">同一网络搜索附近设备,点一下对方就能配对</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">核对两边的安全指纹,一致再确认</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="../assets/screenshots/nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="../assets/screenshots/card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">同一网络不用服务器,跨网络也能用</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>同一网络</h3>
+ <p>家里或办公室,<br>装好就能用,不需要服务器</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>公网服务器</h3>
+ <p>自己部署,一台小云主机就够,<br>在哪儿都能同步</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>跨网络,<br>也不需要服务器</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">设备之间优先直连,端到端加密。<br><span style="color:var(--dim)">自建服务器模式下,直连失败时由你的服务器中转,内容仍然加密。</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">和常用的办法比一比</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>隔空贴</span><span>通用剪贴板</span><span>隔空投送</span><span>聊天软件</span></div>
+ <div class="row"><span>不同 Apple ID 之间</span><span class="yes">✓</span><span class="no">—</span><span class="meh">要对方接收</span><span class="yes">✓</span></div>
+ <div class="row"><span>不在同一个网络(家里和公司)</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>复制后直接粘贴,不用点接收</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>Mac 与 Windows 之间</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>文件与整个文件夹</span><span class="yes">✓</span><span class="meh">不稳定</span><span class="yes">✓</span><span class="meh">要先打包</span></div>
+ <div class="row"><span>找回之前复制过的内容</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">翻聊天记录</span></div>
+ <div class="row"><span>内容不经过第三方服务器</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">隔空贴</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">在这台电脑复制,到那台电脑粘贴。</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">免费开源</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>官网下载</dt><dd>baiyuze.github.io/pasteferry/</dd>
+ <dt>源代码</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">少一步传来传去,多一点顺手。</p>
+ </section>
+
+</div>
+</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">播放</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="播放进度">
+ <select class="tour-chapters" aria-label="选择章节"><option value="0">01 · 复制的麻烦</option>
+<option value="1">02 · 认识隔空贴</option>
+<option value="2">03 · 跨电脑粘贴</option>
+<option value="3">04 · 支持的内容</option>
+<option value="4">05 · 复制历史</option>
+<option value="5">06 · 安全配对</option>
+<option value="6">07 · 连接方式</option>
+<option value="7">08 · 功能比较</option>
+<option value="8">09 · 开始使用</option></select>
+ <button class="tour-fullscreen" type="button" aria-label="全屏" title="全屏">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>一分钟多,了解隔空贴</h1>
+ <p class="tour-silent">无声演示 · macOS / Windows / Linux</p>
+ <details><summary>影片要点</summary><ul><li>Mac 上复制文件,Windows 上直接粘贴</li>
+<li>反过来也一样:Windows 复制,Mac 粘贴</li>
+<li>复制什么,粘贴出来就是什么</li>
+<li>默认保留最近 3 天,可以调</li>
+<li>第一次用,配对一次就好</li>
+<li>设备之间优先直连,端到端加密。</li>
+<li>自建服务器模式下,直连失败时由你的服务器中转,内容仍然加密。</li></ul></details>
+ <a class="tour-download" href="../download/">下载隔空贴 →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player { display:none; }</style></noscript>
+ <script src="../assets/tour-scenes.js" defer></script>
+ <script src="../assets/tour.js" defer></script>
+ <script src="../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.html
index 896a75b..247146f 100644
--- a/docs/zh-hk/index.html
+++ b/docs/zh-hk/index.html
@@ -210,6 +210,7 @@
</div>
<p class="note">版本 2.0.0,免費開源。macOS 13 或以上;Windows 10、11;Linux(x64 與 ARM64)。</p>
<a class="start-link" href="start/">第一次使用?看看快速開始,三步設定好 →</a>
+ <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 觀看宣傳片 <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="示範:在 MacBook 上按下 Command C,檔案化成一張紙,經直連飛到 Windows 手提電腦,在那裏按下 Ctrl V 貼上">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -603,6 +604,10 @@
</div>
</footer>
+ <dialog class="tour-dialog" aria-label="一分多鐘,認識隔空貼">
+ <form method="dialog"><button class="tour-close" aria-label="關閉宣傳片">×</button></form>
+ <iframe title="一分多鐘,認識隔空貼" data-src="tour/?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="../assets/site.js" defer></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
diff --git a/docs/zh-hk/tour/index.html b/docs/zh-hk/tour/index.html
new file mode 100644
index 0000000..c493576
--- /dev/null
+++ b/docs/zh-hk/tour/index.html
@@ -0,0 +1,269 @@
+<!doctype html>
+<html lang="zh-HK">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>一分多鐘,認識隔空貼 — 隔空貼</title>
+ <meta name="description" content="Mac、Windows、Linux 互通。文字、圖片、檔案、資料夾,跨帳戶、跨網絡,P2P 直連、端對端加密,同一網絡內不需要伺服器。免費開源。">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/">
+<link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+<link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/">
+<link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../../assets/tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="../../assets/icon.svg" width="26" height="26" alt="">隔空貼</a>
+ <nav><a href="../">返回官網</a><details class="lang">
+ <summary aria-label="語言:繁體中文(香港)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(香港)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
+ <ul>
+ <li><a href="../../tour/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
+ <li><a href="../../zh-tw/tour/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw">繁體中文(台灣)</a></li>
+ <li><a href="../../zh-hk/tour/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk" aria-current="page">繁體中文(香港)</a></li>
+ <li><a href="../../en/tour/" hreflang="en" lang="en" data-lang="en">English</a></li>
+ <li><a href="../../ja/tour/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>
+ </ul>
+ </details></nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{&quot;watch&quot;: &quot;觀看宣傳片&quot;, &quot;title&quot;: &quot;一分多鐘,認識隔空貼&quot;, &quot;play&quot;: &quot;播放&quot;, &quot;pause&quot;: &quot;暫停&quot;, &quot;replay&quot;: &quot;重新播放&quot;, &quot;progress&quot;: &quot;播放進度&quot;, &quot;chapters&quot;: &quot;選擇章節&quot;, &quot;fullscreen&quot;: &quot;全螢幕&quot;, &quot;exit_fullscreen&quot;: &quot;離開全螢幕&quot;, &quot;close&quot;: &quot;關閉宣傳片&quot;, &quot;back&quot;: &quot;返回官網&quot;, &quot;summary&quot;: &quot;影片重點&quot;, &quot;silent&quot;: &quot;無聲示範&quot;}">
+ <div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">兩部電腦之間複製貼上,</h1>
+ <h1 class="display" id="s1-l2">為甚麼還這麼麻煩?</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">傳給自己<i></i></span><p>傳過去,開啟,下載,再找檔案在哪</p></div>
+ <div class="pain"><span class="pain-t">AirDrop<i></i></span><p>每次都要接受,也不會進剪貼簿</p></div>
+ <div class="pain"><span class="pain-t">通用剪貼板<i></i></span><p>同一個 Apple ID,還要靠得近</p></div>
+ <div class="pain"><span class="pain-t">Mac 和 Windows 之間<i></i></span><p>系統內置的方法,一個都用不上</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">其實,可以簡單得多。</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">隔空貼</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">在這部電腦複製,到那部電腦貼上。</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">季度報告-最終版.pptx</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">備忘錄</div>
+ <div class="body" id="b-dst"><div id="b-paste">會議結論:星期二先發佈 10%,<br>觀察兩天沒問題,星期四全面發佈。</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">螢幕截圖.png</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">季度報告-最終版.pptx</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">會議記錄.txt - 記事本</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">會議結論:星期二先發佈 10%,</span><br><span class="sel" id="b-sel2">觀察兩天沒問題,星期四全面發佈。</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">週報.docx - Word</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>Windows 手提電腦</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">直連,端對端加密</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">Mac 上複製檔案,Windows 上直接貼上</p>
+ <p class="cx cap" id="cap-b">反過來也一樣:Windows 複製,Mac 貼上</p>
+ <p class="cx cap" id="cap-c">截圖、圖片也一樣,貼上就是圖片</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">複製甚麼,貼上就是甚麼</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>格式化文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>圖片</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>檔案</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>整個資料夾</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">小於 50 MB 的內容,複製時就開始傳輸;<br>較大的檔案先同步記錄,需要時再下載。</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">所有裝置複製過的,<br>都在這裏</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>預設保留最近 3 天,可調整</li>
+ <li>按一下,放回剪貼簿</li>
+ <li>開啟圖片就能預覽</li>
+ <li>大檔案,需要時再下載到本機</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="../../assets/screenshots/zh-hk/history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">首次使用,配對一次就好</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">同一網絡搜尋附近裝置,按一下就能配對</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">核對兩邊的安全指紋,一致才確認</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="../../assets/screenshots/zh-hk/nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="../../assets/screenshots/zh-hk/card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">同一網絡不用伺服器,跨網絡也能用</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>同一網絡</h3>
+ <p>家裏或辦公室,<br>安裝好就能用,不需要伺服器</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>公網伺服器</h3>
+ <p>自行部署,一部小雲端主機就夠,<br>在哪裏都能同步</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>跨網絡,<br>也不需要伺服器</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">裝置之間優先直連,端對端加密。<br><span style="color:var(--dim)">自建伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">和常用的方法比一比</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>隔空貼</span><span>通用剪貼板</span><span>AirDrop</span><span>通訊軟件</span></div>
+ <div class="row"><span>不同 Apple ID 之間</span><span class="yes">✓</span><span class="no">—</span><span class="meh">要對方接受</span><span class="yes">✓</span></div>
+ <div class="row"><span>不在同一個網絡(家裏和公司)</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>複製後直接貼上,不用按接受</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>Mac 與 Windows 之間</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>檔案與整個資料夾</span><span class="yes">✓</span><span class="meh">不穩定</span><span class="yes">✓</span><span class="meh">要先壓縮</span></div>
+ <div class="row"><span>找回之前複製過的內容</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">翻查聊天記錄</span></div>
+ <div class="row"><span>內容不經過第三方伺服器</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">隔空貼</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">在這部電腦複製,到那部電腦貼上。</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">免費開源</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>官網下載</dt><dd>baiyuze.github.io/pasteferry/zh-hk/</dd>
+ <dt>原始碼</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">少一點傳來傳去,多一點順手。</p>
+ </section>
+
+</div>
+</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">播放</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="播放進度">
+ <select class="tour-chapters" aria-label="選擇章節"><option value="0">01 · 複製的麻煩</option>
+<option value="1">02 · 認識隔空貼</option>
+<option value="2">03 · 跨電腦貼上</option>
+<option value="3">04 · 支援的內容</option>
+<option value="4">05 · 複製歷史</option>
+<option value="5">06 · 安全配對</option>
+<option value="6">07 · 連線方式</option>
+<option value="7">08 · 功能比較</option>
+<option value="8">09 · 開始使用</option></select>
+ <button class="tour-fullscreen" type="button" aria-label="全螢幕" title="全螢幕">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>一分多鐘,認識隔空貼</h1>
+ <p class="tour-silent">無聲示範 · macOS / Windows / Linux</p>
+ <details><summary>影片重點</summary><ul><li>Mac 上複製檔案,Windows 上直接貼上</li>
+<li>反過來也一樣:Windows 複製,Mac 貼上</li>
+<li>複製甚麼,貼上就是甚麼</li>
+<li>預設保留最近 3 天,可調整</li>
+<li>首次使用,配對一次就好</li>
+<li>裝置之間優先直連,端對端加密。</li>
+<li>自建伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。</li></ul></details>
+ <a class="tour-download" href="../download/">下載隔空貼 →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player { display:none; }</style></noscript>
+ <script src="../../assets/tour-scenes.js" defer></script>
+ <script src="../../assets/tour.js" defer></script>
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.html
index a931656..0cf4d4b 100644
--- a/docs/zh-tw/index.html
+++ b/docs/zh-tw/index.html
@@ -210,6 +210,7 @@
</div>
<p class="note">版本 2.0.0,免費開源。macOS 13 以上;Windows 10、11;Linux(x64 與 ARM64)。</p>
<a class="start-link" href="start/">第一次用?看快速入門,三個步驟就設定好 →</a>
+ <a class="tour-link" href="tour/" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> 觀看宣傳片 <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="示範:在 MacBook 上按下 Command C,檔案化成一張紙,經直連飛到 Windows 筆電,在那裡按下 Ctrl V 貼上">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -603,6 +604,10 @@
</div>
</footer>
+ <dialog class="tour-dialog" aria-label="一分多鐘,認識隔空貼">
+ <form method="dialog"><button class="tour-close" aria-label="關閉宣傳片">×</button></form>
+ <iframe title="一分多鐘,認識隔空貼" data-src="tour/?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="../assets/site.js" defer></script>
<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
</body>
diff --git a/docs/zh-tw/tour/index.html b/docs/zh-tw/tour/index.html
new file mode 100644
index 0000000..913cb32
--- /dev/null
+++ b/docs/zh-tw/tour/index.html
@@ -0,0 +1,269 @@
+<!doctype html>
+<html lang="zh-TW">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>一分多鐘,認識隔空貼 — 隔空貼</title>
+ <meta name="description" content="Mac、Windows、Linux 互通。文字、圖片、檔案、資料夾,跨帳號、跨網路,P2P 直連、端對端加密,同一個網路裡不需要伺服器。免費開源。">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/pasteferry/tour/">
+<link rel="alternate" hreflang="zh-TW" href="https://baiyuze.github.io/pasteferry/zh-tw/tour/">
+<link rel="alternate" hreflang="zh-HK" href="https://baiyuze.github.io/pasteferry/zh-hk/tour/">
+<link rel="alternate" hreflang="en" href="https://baiyuze.github.io/pasteferry/en/tour/">
+<link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/pasteferry/ja/tour/">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="../../assets/tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="../../assets/icon.svg" width="26" height="26" alt="">隔空貼</a>
+ <nav><a href="../">返回官網</a><details class="lang">
+ <summary aria-label="語言:繁體中文(台灣)"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="10" cy="10" r="7.25"/><path d="M2.75 10h14.5M10 2.75c-2.1 2-3.1 4.4-3.1 7.25s1 5.25 3.1 7.25M10 2.75c2.1 2 3.1 4.4 3.1 7.25s-1 5.25-3.1 7.25"/></svg><span>繁體中文(台灣)</span><svg class="chev" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 4.5 3 3 3-3"/></svg></summary>
+ <ul>
+ <li><a href="../../tour/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a></li>
+ <li><a href="../../zh-tw/tour/" hreflang="zh-TW" lang="zh-TW" data-lang="zh-tw" aria-current="page">繁體中文(台灣)</a></li>
+ <li><a href="../../zh-hk/tour/" hreflang="zh-HK" lang="zh-HK" data-lang="zh-hk">繁體中文(香港)</a></li>
+ <li><a href="../../en/tour/" hreflang="en" lang="en" data-lang="en">English</a></li>
+ <li><a href="../../ja/tour/" hreflang="ja" lang="ja" data-lang="ja">日本語</a></li>
+ </ul>
+ </details></nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{&quot;watch&quot;: &quot;觀看宣傳片&quot;, &quot;title&quot;: &quot;一分多鐘,認識隔空貼&quot;, &quot;play&quot;: &quot;播放&quot;, &quot;pause&quot;: &quot;暫停&quot;, &quot;replay&quot;: &quot;重新播放&quot;, &quot;progress&quot;: &quot;播放進度&quot;, &quot;chapters&quot;: &quot;選擇章節&quot;, &quot;fullscreen&quot;: &quot;全螢幕&quot;, &quot;exit_fullscreen&quot;: &quot;離開全螢幕&quot;, &quot;close&quot;: &quot;關閉宣傳片&quot;, &quot;back&quot;: &quot;返回官網&quot;, &quot;summary&quot;: &quot;影片重點&quot;, &quot;silent&quot;: &quot;無聲示範&quot;}">
+ <div class="tour-viewport"><!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">兩台電腦之間複製貼上,</h1>
+ <h1 class="display" id="s1-l2">為什麼還這麼麻煩?</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">傳給自己<i></i></span><p>傳過去,點開,下載,再找檔案在哪</p></div>
+ <div class="pain"><span class="pain-t">AirDrop<i></i></span><p>每次都要接受,也不會進剪貼簿</p></div>
+ <div class="pain"><span class="pain-t">通用剪貼板<i></i></span><p>同一個 Apple ID,還得靠得近</p></div>
+ <div class="pain"><span class="pain-t">Mac 和 Windows 之間<i></i></span><p>系統內建的方法,一個都用不上</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">其實,可以簡單得多。</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">隔空貼</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">在這台電腦複製,到那台電腦貼上。</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">季度報告-定稿.pptx</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">備忘錄</div>
+ <div class="body" id="b-dst"><div id="b-paste">會議結論:週二先發布 10%,<br>觀察兩天沒問題,週四全面發布。</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">螢幕截圖.png</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">季度報告-定稿.pptx</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">會議記錄.txt - 記事本</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">會議結論:週二先發布 10%,</span><br><span class="sel" id="b-sel2">觀察兩天沒問題,週四全面發布。</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">週報.docx - Word</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>Windows 筆電</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">直連,端對端加密</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">Mac 上複製檔案,Windows 上直接貼上</p>
+ <p class="cx cap" id="cap-b">反過來也一樣:Windows 複製,Mac 貼上</p>
+ <p class="cx cap" id="cap-c">截圖、圖片也一樣,貼上就是圖片</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">複製什麼,貼上就是什麼</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>格式化文字</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>圖片</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>檔案</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>整個資料夾</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">小於 50 MB 的內容,複製時就開始傳輸;<br>更大的檔案先同步記錄,需要時再下載。</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">所有裝置複製過的,<br>都在這裡</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>預設保留最近 3 天,可調整</li>
+ <li>點一下,放回剪貼簿</li>
+ <li>點開圖片就能預覽</li>
+ <li>大檔案,需要時再下載到本機</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="../../assets/screenshots/zh-tw/history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">第一次用,配對一次就好</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">同一網路搜尋附近裝置,點一下就能配對</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">核對兩邊的安全指紋,一致才確認</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="../../assets/screenshots/zh-tw/nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="../../assets/screenshots/zh-tw/card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">同一網路不用伺服器,跨網路也能用</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>同一網路</h3>
+ <p>家裡或辦公室,<br>裝好就能用,不需要伺服器</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>雲端伺服器</h3>
+ <p>自行部署,一台小雲端主機就夠,<br>在哪裡都能同步</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>跨網路,<br>也不需要伺服器</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">裝置之間優先直連,端對端加密。<br><span style="color:var(--dim)">自架伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">和常用的方法比一比</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>隔空貼</span><span>通用剪貼板</span><span>AirDrop</span><span>聊天軟體</span></div>
+ <div class="row"><span>不同 Apple ID 之間</span><span class="yes">✓</span><span class="no">—</span><span class="meh">要對方接受</span><span class="yes">✓</span></div>
+ <div class="row"><span>不在同一個網路(家裡和公司)</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>複製後直接貼上,不用點接受</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>Mac 與 Windows 之間</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>檔案與整個資料夾</span><span class="yes">✓</span><span class="meh">不穩定</span><span class="yes">✓</span><span class="meh">要先壓縮</span></div>
+ <div class="row"><span>找回之前複製過的內容</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">翻聊天記錄</span></div>
+ <div class="row"><span>內容不經過第三方伺服器</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">隔空貼</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">在這台電腦複製,到那台電腦貼上。</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">免費開源</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>官網下載</dt><dd>baiyuze.github.io/pasteferry/zh-tw/</dd>
+ <dt>原始碼</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">少一點傳來傳去,多一點順手。</p>
+ </section>
+
+</div>
+</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">播放</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="播放進度">
+ <select class="tour-chapters" aria-label="選擇章節"><option value="0">01 · 複製的麻煩</option>
+<option value="1">02 · 認識隔空貼</option>
+<option value="2">03 · 跨電腦貼上</option>
+<option value="3">04 · 支援的內容</option>
+<option value="4">05 · 複製歷史</option>
+<option value="5">06 · 安全配對</option>
+<option value="6">07 · 連線方式</option>
+<option value="7">08 · 功能比較</option>
+<option value="8">09 · 開始使用</option></select>
+ <button class="tour-fullscreen" type="button" aria-label="全螢幕" title="全螢幕">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>一分多鐘,認識隔空貼</h1>
+ <p class="tour-silent">無聲示範 · macOS / Windows / Linux</p>
+ <details><summary>影片重點</summary><ul><li>Mac 上複製檔案,Windows 上直接貼上</li>
+<li>反過來也一樣:Windows 複製,Mac 貼上</li>
+<li>複製什麼,貼上就是什麼</li>
+<li>預設保留最近 3 天,可調整</li>
+<li>第一次用,配對一次就好</li>
+<li>裝置之間優先直連,端對端加密。</li>
+<li>自架伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。</li></ul></details>
+ <a class="tour-download" href="../download/">下載隔空貼 →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player { display:none; }</style></noscript>
+ <script src="../../assets/tour-scenes.js" defer></script>
+ <script src="../../assets/tour.js" defer></script>
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/tools/site/TOUR.md b/tools/site/TOUR.md
new file mode 100644
index 0000000..577d206
--- /dev/null
+++ b/tools/site/TOUR.md
@@ -0,0 +1,28 @@
+# Website tour
+
+Each language's homepage opens a localized, silent 85-second tour. The same
+tour is available at `tour/` under each language root. The homepage loads the
+artwork and screenshots only after the visitor clicks **Watch the tour**.
+
+- `tour.html` holds the shared scene markup with `{{semantic_key}}` placeholders.
+- `content/tour.py` holds five complete translations and the player labels.
+ Shared product names and comparison text come from the existing site copy.
+- `docs/assets/tour.css` contains the artwork, locale fonts, player controls,
+ and a separate portrait composition for phones.
+- `docs/assets/tour-scenes.js` renders each frame as a function of time.
+- `docs/assets/tour.js` handles playback, seeking, chapters, scaling, full screen,
+ reduced motion, and the parent dialog's playback messages.
+
+Run `python3 tools/site/build.py` after changing copy or markup, and commit the
+source and generated pages together. The original files in `tools/promo/` are
+independent of the website and are not required to build it.
+
+For frame rendering, open a generated tour URL with `?render`, await
+`window.tourReady`, and call `window.seek(seconds)`. This fixes the artwork at
+1920 × 1080 and hides the page header and player controls. `window.ready()`
+returns the duration and original audio cue timings for an external renderer.
+
+Check all nine chapters in every language at desktop and phone widths. Also
+check lazy loading, pause/resume, seeking, chapter selection, full screen,
+closing before screenshots finish loading, closing/reopening the dialog,
+reduced motion, and keyboard focus returning to the homepage link.
diff --git a/tools/site/build.py b/tools/site/build.py
index daf47af..70bb064 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -15,6 +15,8 @@ import json
import re
from pathlib import Path
+from content.tour import localized as tour_copy
+
ROOT = Path(__file__).resolve().parents[2]
DOCS = ROOT / "docs"
SITE = "https://baiyuze.github.io/pasteferry/"
@@ -57,7 +59,8 @@ GUIDE = "server/"
TAILSCALE = "tailscale/"
# 下载页:所有「下载」按钮都指向它,按系统、芯片选具体的安装包
DOWNLOAD = "download/"
-SUBPAGES = [START, LAN, CLOUD, GUIDE, TAILSCALE, DOWNLOAD]
+TOUR = "tour/"
+SUBPAGES = [START, LAN, CLOUD, GUIDE, TAILSCALE, DOWNLOAD, TOUR]
DEPLOY_PAGES = [LAN, CLOUD, GUIDE, TAILSCALE]
# 放到网站上的技术方案:文件名 → 网页名。其他 design/*.md 链接到 GitHub
@@ -337,6 +340,7 @@ def jsonld(c: dict, code: str, path: str, shots: str) -> str:
def home(code: str) -> str:
c = load(code)
+ _, tour_ui, _ = tour_copy(code, c)
path, hl, locale, _ = LANGS[code]
up = "../" * path.count("/")
a = up + "assets/"
@@ -407,6 +411,7 @@ def home(code: str) -> str:
<div class="wrap">
<h1 class="display">{c["h1"]}</h1>
<p class="lede">{c["lede"]}</p>{cta(c, "", START)}
+ <a class="tour-link" href="{TOUR}" data-tour-open aria-haspopup="dialog"><span aria-hidden="true">▶</span> {tour_ui["watch"]} <span class="tour-duration">1:25</span></a>
<div class="stage" data-play role="img" aria-label="{esc(c["stage_label"])}">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -644,6 +649,10 @@ def home(code: str) -> str:
{footer(c, code, up)}
+ <dialog class="tour-dialog" aria-label="{esc(tour_ui["title"])}">
+ <form method="dialog"><button class="tour-close" aria-label="{esc(tour_ui["close"])}">×</button></form>
+ <iframe title="{esc(tour_ui["title"])}" data-src="{TOUR}?embed" allow="fullscreen" allowfullscreen></iframe>
+ </dialog>
<script src="{a}site.js" defer></script>
{ANALYTICS}</body>
</html>
@@ -2088,6 +2097,66 @@ def sitemap() -> str:
' xmlns:xhtml="http://www.w3.org/1999/xhtml">\n' + "\n".join(urls) + "\n</urlset>\n")
+def tour_page(code: str) -> str:
+ c = load(code)
+ copy, ui, chapters = tour_copy(code, c)
+ path, hl, _, _ = LANGS[code]
+ up = "../" * (path.count("/") + 1)
+ assets = up + "assets/"
+ copy.update(shots=up + shots_dir(code), site_url="baiyuze.github.io/pasteferry/" + path)
+ template = (Path(__file__).parent / "tour.html").read_text(encoding="utf-8")
+ art = re.sub(r"\{\{(\w+)\}\}", lambda m: esc(copy[m[1]]), template)
+ options = "\n".join(f'<option value="{i}">{i + 1:02d} · {esc(label)}</option>' for i, label in enumerate(chapters))
+ alternates = "\n".join(f'<link rel="alternate" hreflang="{h}" href="{SITE}{p}{TOUR}">' for p, h, _, _ in LANGS.values())
+ highlights = "\n".join(f'<li>{esc(copy[key])}</li>' for key in ("demo_file", "demo_text", "types", "retention", "pairing", "encrypted", "relay"))
+ labels = esc(json.dumps(ui, ensure_ascii=False))
+ return f"""<!doctype html>
+<html lang="{hl}">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{esc(ui["title"])} — {esc(c["brand"])}</title>
+ <meta name="description" content="{esc(c["og_description"])}">
+ <meta name="theme-color" content="#141416">
+ <link rel="canonical" href="{SITE}{path}{TOUR}">
+ {alternates}
+ <link rel="icon" href="{assets}favicon.svg" type="image/svg+xml">
+ <link rel="stylesheet" href="{assets}tour.css">
+ <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.classList.add("embedded");</script>
+</head>
+<body>
+ <header class="tour-header">
+ <a class="tour-brand" href="../"><img src="{assets}icon.svg" width="26" height="26" alt="">{esc(c["brand"])}</a>
+ <nav><a href="../">{esc(ui["back"])}</a>{lang_menu(c, code, up, TOUR)}</nav>
+ </header>
+ <main>
+ <div class="tour-player" data-labels="{labels}">
+ <div class="tour-viewport">{art}</div>
+ <div class="tour-controls" hidden>
+ <button class="tour-toggle" type="button">{esc(ui["play"])}</button>
+ <output class="tour-time">0:00 / 1:25</output>
+ <input class="tour-progress" type="range" min="0" max="84.5" step="0.1" value="0" aria-label="{esc(ui["progress"])}">
+ <select class="tour-chapters" aria-label="{esc(ui["chapters"])}">{options}</select>
+ <button class="tour-fullscreen" type="button" aria-label="{esc(ui["fullscreen"])}" title="{esc(ui["fullscreen"])}">⛶</button>
+ </div>
+ <p class="tour-status" role="status"></p>
+ </div>
+ <section class="tour-summary">
+ <h1>{esc(ui["title"])}</h1>
+ <p class="tour-silent">{esc(ui["silent"])} · macOS / Windows / Linux</p>
+ <details><summary>{esc(ui["summary"])}</summary><ul>{highlights}</ul></details>
+ <a class="tour-download" href="../{DOWNLOAD}">{esc(c["dl_button"])} →</a>
+ </section>
+ </main>
+ <noscript><style>.tour-player {{ display:none; }}</style></noscript>
+ <script src="{assets}tour-scenes.js" defer></script>
+ <script src="{assets}tour.js" defer></script>
+ <script src="{assets}site.js" defer></script>
+{ANALYTICS}</body>
+</html>
+"""
+
+
def write(path: Path, text: str) -> None:
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(text, encoding="utf-8")
@@ -2097,6 +2166,7 @@ def write(path: Path, text: str) -> None:
def main() -> None:
for code, (path, _, _, _) in LANGS.items():
write(DOCS / path / "index.html", home(code))
+ write(DOCS / path / TOUR / "index.html", tour_page(code))
write(DOCS / path / GUIDE / "index.html", server_page(code))
write(DOCS / path / START / "index.html", start_page(code))
write(DOCS / path / LAN / "index.html", lan_page(code))
diff --git a/tools/site/content/tour.py b/tools/site/content/tour.py
new file mode 100644
index 0000000..6a57ec5
--- /dev/null
+++ b/tools/site/content/tour.py
@@ -0,0 +1,109 @@
+"""Tour copy. Every row is zh, zh-tw, zh-hk, en, ja; no locale fallback.
+
+Keep film text separate from the player UI. The template uses semantic keys,
+so translations never replace substrings or accidentally alter JavaScript.
+"""
+
+LANGUAGES = ("zh", "zh-tw", "zh-hk", "en", "ja")
+
+COPY = {
+ "opening_1": ("两台电脑之间复制粘贴,", "兩台電腦之間複製貼上,", "兩部電腦之間複製貼上,", "Copying between two computers", "2 台のパソコンでコピペするだけ。"),
+ "opening_2": ("为什么还这么麻烦?", "為什麼還這麼麻煩?", "為甚麼還這麼麻煩?", "shouldn’t be this much work.", "もっと簡単にならない?"),
+ "pain_chat": ("发给自己", "傳給自己", "傳給自己", "Sending it to yourself", "自分宛てに送信"),
+ "pain_chat_detail": ("发过去,点开,下载,再找文件在哪", "傳過去,點開,下載,再找檔案在哪", "傳過去,開啟,下載,再找檔案在哪", "Send, open, download, then find the file", "送って、開いて、保存して、探して…"),
+ "airdrop": ("隔空投送", "AirDrop", "AirDrop", "AirDrop", "AirDrop"),
+ "pain_airdrop_detail": ("每次都要点接收,也进不了剪贴板", "每次都要接受,也不會進剪貼簿", "每次都要接受,也不會進剪貼簿", "Accept every time. Still no clipboard sync.", "毎回受信を許可。クリップボードには入らない"),
+ "universal": ("通用剪贴板", "通用剪貼板", "通用剪貼板", "Universal Clipboard", "ユニバーサルクリップボード"),
+ "pain_universal_detail": ("同一个 Apple ID,还得离得近", "同一個 Apple ID,還得靠得近", "同一個 Apple ID,還要靠得近", "Same Apple ID, and the devices must be close", "同じ Apple ID と、近くにある端末が必要"),
+ "pain_cross_platform": ("Mac 和 Windows 之间", "Mac 和 Windows 之間", "Mac 和 Windows 之間", "Between Mac and Windows", "Mac と Windows の間では"),
+ "pain_cross_platform_detail": ("系统自带的办法,一个都用不上", "系統內建的方法,一個都用不上", "系統內置的方法,一個都用不上", "None of the built-in options work", "標準機能だけでは、うまくいかない"),
+ "simpler": ("其实,可以简单得多。", "其實,可以簡單得多。", "其實,可以簡單得多。", "It can be much simpler.", "もっとシンプルに。"),
+ "tagline": ("在这台电脑复制,到那台电脑粘贴。", "在這台電腦複製,到那台電腦貼上。", "在這部電腦複製,到那部電腦貼上。", "Copy on this computer. Paste on that one.", "こっちでコピーして、あっちで貼り付け。"),
+ "notes": ("备忘录", "備忘錄", "備忘錄", "Notes", "メモ"),
+ "decision_1": ("会议结论:周二先发布 10%,", "會議結論:週二先發布 10%,", "會議結論:星期二先發佈 10%,", "Roll out to 10% on Tuesday.", "火曜日に 10% へリリース。"),
+ "decision_2": ("观察两天没问题,周四全量。", "觀察兩天沒問題,週四全面發布。", "觀察兩天沒問題,星期四全面發佈。", "All users on Thursday if all goes well.", "問題なければ木曜日に全体へ。"),
+ "screenshot": ("屏幕截图.png", "螢幕截圖.png", "螢幕截圖.png", "Screenshot.png", "スクリーンショット.png"),
+ "notepad": ("会议记录.txt - 记事本", "會議記錄.txt - 記事本", "會議記錄.txt - 記事本", "Meeting notes.txt - Notepad", "会議メモ.txt - メモ帳"),
+ "word": ("周报.docx - Word", "週報.docx - Word", "週報.docx - Word", "Weekly report.docx - Word", "週報.docx - Word"),
+ "demo_file": ("Mac 上复制文件,Windows 上直接粘贴", "Mac 上複製檔案,Windows 上直接貼上", "Mac 上複製檔案,Windows 上直接貼上", "Copy a file on Mac. Paste it on Windows.", "Mac でファイルをコピー。Windows に貼り付け。"),
+ "demo_text": ("反过来也一样:Windows 复制,Mac 粘贴", "反過來也一樣:Windows 複製,Mac 貼上", "反過來也一樣:Windows 複製,Mac 貼上", "And back: copy on Windows, paste on Mac.", "逆も同じ。Windows でコピー、Mac に貼り付け。"),
+ "demo_image": ("截图、图片也是,粘贴出来就是图片", "截圖、圖片也一樣,貼上就是圖片", "截圖、圖片也一樣,貼上就是圖片", "Screenshots too. They paste as images.", "スクリーンショットも、そのまま画像として貼り付け。"),
+ "types": ("复制什么,粘贴出来就是什么", "複製什麼,貼上就是什麼", "複製甚麼,貼上就是甚麼", "What you copy is what you paste", "コピーしたものを、そのまま貼り付け"),
+ "text": ("文字", "文字", "文字", "Text", "テキスト"),
+ "rich_text": ("带格式的文字", "格式化文字", "格式化文字", "Rich text", "書式付きテキスト"),
+ "images": ("图片", "圖片", "圖片", "Images", "画像"),
+ "files": ("文件", "檔案", "檔案", "Files", "ファイル"),
+ "folders": ("整个文件夹", "整個資料夾", "整個資料夾", "Whole folders", "フォルダごと"),
+ "small_files": ("小于 50 MB 的内容,复制时就开始传输;", "小於 50 MB 的內容,複製時就開始傳輸;", "小於 50 MB 的內容,複製時就開始傳輸;", "Under 50 MB? Transfer starts as you copy.", "50 MB 未満なら、コピーと同時に転送開始。"),
+ "large_files": ("更大的文件先同步记录,需要时再拉取。", "更大的檔案先同步記錄,需要時再下載。", "較大的檔案先同步記錄,需要時再下載。", "Larger files arrive on demand, with one click.", "大きなファイルは、必要なときにワンクリックで取得。"),
+ "history_1": ("所有设备复制过的,", "所有裝置複製過的,", "所有裝置複製過的,", "Everything you copied,", "どの端末のコピーも、"),
+ "history_2": ("都在这里", "都在這裡", "都在這裏", "all in one place", "履歴はここに。"),
+ "retention": ("默认保留最近 3 天,可以调", "預設保留最近 3 天,可調整", "預設保留最近 3 天,可調整", "3 days of history by default", "標準で 3 日分を保存。変更も可能"),
+ "restore": ("点一下,放回剪贴板", "點一下,放回剪貼簿", "按一下,放回剪貼簿", "Click to copy it again", "クリックで、もう一度コピー"),
+ "preview": ("图片点开就能预览", "點開圖片就能預覽", "開啟圖片就能預覽", "Preview images in place", "画像はその場でプレビュー"),
+ "pull": ("大文件,需要时再拉到本机", "大檔案,需要時再下載到本機", "大檔案,需要時再下載到本機", "Pull large files when you need them", "大きなファイルは必要なときに取得"),
+ "pairing": ("第一次用,配对一次就好", "第一次用,配對一次就好", "首次使用,配對一次就好", "Pair once, and you’re set", "一度ペアリングすれば、準備完了"),
+ "nearby": ("同一网络搜索附近设备,点一下对方就能配对", "同一網路搜尋附近裝置,點一下就能配對", "同一網絡搜尋附近裝置,按一下就能配對", "On the same network, find a nearby computer and pair", "同じネットワークの端末を検索して、ペアリング"),
+ "fingerprints": ("核对两边的安全指纹,一致再确认", "核對兩邊的安全指紋,一致才確認", "核對兩邊的安全指紋,一致才確認", "Check the fingerprints on both screens before confirming", "両方の画面でフィンガープリントが一致することを確認"),
+ "networks": ("同一网络不用服务器,跨网络也能用", "同一網路不用伺服器,跨網路也能用", "同一網絡不用伺服器,跨網絡也能用", "One network or many. Your choice.", "同じネットワークでも、離れた場所でも"),
+ "home": ("家里或办公室,", "家裡或辦公室,", "家裏或辦公室,", "At home or at the office,", "自宅やオフィスで、"),
+ "lan_detail": ("装好就能用,不需要服务器", "裝好就能用,不需要伺服器", "安裝好就能用,不需要伺服器", "no server to set up", "サーバーの準備は不要"),
+ "cloud_detail": ("自己部署,一台小云主机就够,", "自行部署,一台小雲端主機就夠,", "自行部署,一部小雲端主機就夠,", "Host a small cloud VM,", "小さなクラウド VM を用意して、"),
+ "anywhere": ("在哪儿都能同步", "在哪裡都能同步", "在哪裏都能同步", "sync from anywhere", "どこからでも同期"),
+ "across": ("跨网络,", "跨網路,", "跨網絡,", "Across networks,", "ネットワークをまたいでも、"),
+ "tailscale_detail": ("也不需要服务器", "也不需要伺服器", "也不需要伺服器", "without your own server", "自前のサーバーは不要"),
+ "encrypted": ("设备之间优先直连,端到端加密。", "裝置之間優先直連,端對端加密。", "裝置之間優先直連,端對端加密。", "A direct connection when possible. End-to-end encrypted.", "可能な限り端末同士で直接接続。エンドツーエンド暗号化。"),
+ "relay": ("自建服务器模式下,直连失败时由你的服务器中转,内容仍然加密。", "自架伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。", "自建伺服器模式下,直連失敗時由你的伺服器轉送,內容仍然加密。", "In server mode, your server relays encrypted data if a direct link fails.", "サーバーモードでは、直接接続できない場合も暗号化したまま中継。"),
+ "comparison": ("和常用的办法比一比", "和常用的方法比一比", "和常用的方法比一比", "How it compares", "いつもの方法と比べてみると"),
+ "free": ("免费开源", "免費開源", "免費開源", "Free & open source", "無料・オープンソース"),
+ "download": ("官网下载", "官網下載", "官網下載", "Download", "ダウンロード"),
+ "source": ("源代码", "原始碼", "原始碼", "Source", "ソースコード"),
+ "closing": ("少一步传来传去,多一点顺手。", "少一點傳來傳去,多一點順手。", "少一點傳來傳去,多一點順手。", "Less sending things around. More getting things done.", "送る手間を減らして、作業をもっとスムーズに。"),
+}
+
+UI = {
+ "watch": ("观看宣传片", "觀看宣傳片", "觀看宣傳片", "Watch the tour", "紹介ムービーを見る"),
+ "title": ("一分钟多,了解隔空贴", "一分多鐘,認識隔空貼", "一分多鐘,認識隔空貼", "Meet PasteFerry in 85 seconds", "85 秒でわかる PasteFerry"),
+ "play": ("播放", "播放", "播放", "Play", "再生"),
+ "pause": ("暂停", "暫停", "暫停", "Pause", "一時停止"),
+ "replay": ("重新播放", "重新播放", "重新播放", "Replay", "もう一度再生"),
+ "progress": ("播放进度", "播放進度", "播放進度", "Playback position", "再生位置"),
+ "chapters": ("选择章节", "選擇章節", "選擇章節", "Choose a chapter", "チャプターを選択"),
+ "fullscreen": ("全屏", "全螢幕", "全螢幕", "Full screen", "全画面"),
+ "exit_fullscreen": ("退出全屏", "離開全螢幕", "離開全螢幕", "Exit full screen", "全画面を終了"),
+ "close": ("关闭宣传片", "關閉宣傳片", "關閉宣傳片", "Close tour", "ムービーを閉じる"),
+ "back": ("返回官网", "返回官網", "返回官網", "Back to the site", "公式サイトへ"),
+ "summary": ("影片要点", "影片重點", "影片重點", "Tour highlights", "ムービーのポイント"),
+ "silent": ("无声演示", "無聲示範", "無聲示範", "Silent tour", "音声なし"),
+}
+
+CHAPTERS = (
+ ("复制的麻烦", "複製的麻煩", "複製的麻煩", "Too many steps", "コピペの悩み"),
+ ("认识隔空贴", "認識隔空貼", "認識隔空貼", "Meet PasteFerry", "PasteFerry とは"),
+ ("跨电脑粘贴", "跨電腦貼上", "跨電腦貼上", "Copy and paste", "端末間でコピペ"),
+ ("支持的内容", "支援的內容", "支援的內容", "What you can sync", "同期できるもの"),
+ ("复制历史", "複製歷史", "複製歷史", "Clipboard history", "クリップボード履歴"),
+ ("安全配对", "安全配對", "安全配對", "Secure pairing", "安全にペアリング"),
+ ("连接方式", "連線方式", "連線方式", "Ways to connect", "接続方法"),
+ ("功能比较", "功能比較", "功能比較", "Compare options", "機能を比較"),
+ ("开始使用", "開始使用", "開始使用", "Get started", "使ってみよう"),
+)
+
+
+def localized(code, site):
+ column = LANGUAGES.index(code)
+ copy = {key: row[column] for key, row in COPY.items()}
+ ui = {key: row[column] for key, row in UI.items()}
+ copy.update(brand=site["brand"], file=site["stage_file"],
+ windows=site["stage_win"], direct=site["stage_arc"],
+ lan=site["plans"]["lan"]["name"], cloud=site["plans"]["cloud"]["name"],
+ chat=site["compare_cols"][3])
+ # Reuse the carefully localized website comparison, including ✓/— labels.
+ keys = ("apple_ids", "cross_platform", "different_networks", "instant",
+ "files_folders", "history", "privacy")
+ for key, (label, _) in zip(keys, site["compare_rows"]):
+ copy[key] = label
+ for key, row, col in (("accept", 0, 2), ("unreliable", 4, 1),
+ ("zipped", 4, 3), ("scroll", 5, 3)):
+ copy[key] = site["compare_rows"][row][1][col][1]
+ return copy, ui, [row[column] for row in CHAPTERS]
diff --git a/tools/site/tour.html b/tools/site/tour.html
new file mode 100644
index 0000000..7cd1969
--- /dev/null
+++ b/tools/site/tour.html
@@ -0,0 +1,197 @@
+<!-- Shared tour artwork. Localized by build.py; animation lives in tour-scenes.js. -->
+
+<div id="film" aria-hidden="true">
+
+ <!-- 1 痛点 -->
+ <section class="scene" id="s1">
+ <div class="cx" id="s1-head">
+ <h1 class="display" id="s1-l1">{{opening_1}}</h1>
+ <h1 class="display" id="s1-l2">{{opening_2}}</h1>
+ </div>
+ <div class="pains">
+ <div class="pain"><span class="pain-t">{{pain_chat}}<i></i></span><p>{{pain_chat_detail}}</p></div>
+ <div class="pain"><span class="pain-t">{{airdrop}}<i></i></span><p>{{pain_airdrop_detail}}</p></div>
+ <div class="pain"><span class="pain-t">{{universal}}<i></i></span><p>{{pain_universal_detail}}</p></div>
+ <div class="pain"><span class="pain-t">{{pain_cross_platform}}<i></i></span><p>{{pain_cross_platform_detail}}</p></div>
+ </div>
+ <h1 class="cx display" id="s1-l3" style="top:486px;font-size:84px">{{simpler}}</h1>
+ </section>
+
+ <!-- 2 品牌 -->
+ <section class="scene" id="s2">
+ <svg class="logo" id="s2-logo" viewBox="0 0 1024 1024" width="250" height="250" style="left:835px;top:190px"></svg>
+ <h1 class="cx display" id="s2-name" style="top:470px;font-size:112px">{{brand}}</h1>
+ <p class="cx" id="s2-tag" style="top:635px;font-size:48px;color:var(--ink-2)">{{tagline}}</p>
+ <p class="cx" id="s2-os" style="top:735px;font-size:32px;color:var(--dim);letter-spacing:0.06em">macOS · Windows · Linux</p>
+ </section>
+
+ <!-- 3 演示 -->
+ <section class="scene" id="s3">
+ <div class="abs" id="stage" style="inset:0">
+ <figure class="device mac" style="left:150px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="m1">
+ <div class="file" id="a-src"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name" id="a-name">{{file}}</span></div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="m2">
+ <div class="appwin">
+ <div class="bar">{{notes}}</div>
+ <div class="body" id="b-dst"><div id="b-paste">{{decision_1}}<br>{{decision_2}}</div><span class="caret" id="b-caret"></span></div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="m3">
+ <div class="appwin" style="width:66%;height:62%">
+ <div class="bar">{{screenshot}}</div>
+ <div style="position:absolute;inset:34px 0 0;display:grid;place-items:center">
+ <div class="photo" id="c-src" style="width:300px;height:186px"><i></i><b></b><span class="pic-ring" id="c-ring"></span></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>⌘</kbd><kbd>C</kbd></div>
+ </div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>MacBook</figcaption>
+ </figure>
+
+ <figure class="device win" style="left:1070px;top:240px">
+ <div class="screen"><div class="desk">
+ <div class="grp" id="w1">
+ <div class="file" id="a-dst"><span class="doc"><span class="lines"><i></i><i></i><i></i></span></span><span class="name">{{file}}</span></div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="grp" id="w2">
+ <div class="appwin">
+ <div class="bar">{{notepad}}</div>
+ <div class="body" id="b-src"><span class="sel" id="b-sel1">{{decision_1}}</span><br><span class="sel" id="b-sel2">{{decision_2}}</span></div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>C</kbd></div>
+ </div>
+ <div class="grp" id="w3">
+ <div class="appwin" style="width:66%;height:66%">
+ <div class="bar">{{word}}</div>
+ <div style="padding:16px 30px">
+ <div class="docline" style="width:56%"></div>
+ <div class="docline" style="width:92%"></div>
+ <div class="photo" id="c-dst" style="width:190px;height:118px;margin-top:14px"><i></i><b></b></div>
+ </div>
+ </div>
+ <div class="keys"><kbd>Ctrl</kbd><kbd>V</kbd></div>
+ </div>
+ <div class="taskbar"><i></i><i></i><i></i><i></i><i></i></div>
+ </div></div>
+ <div class="base"></div>
+ <figcaption>{{windows}}</figcaption>
+ </figure>
+
+ <svg class="abs trail" id="trail" width="1920" height="1080" style="left:0;top:0;overflow:visible"></svg>
+ <div id="arc-label">{{direct}}</div>
+ <div id="fly"><span class="lines"><i></i><i></i><i></i></span></div>
+ </div>
+ <p class="cx cap" id="cap-a">{{demo_file}}</p>
+ <p class="cx cap" id="cap-b">{{demo_text}}</p>
+ <p class="cx cap" id="cap-c">{{demo_image}}</p>
+ </section>
+
+ <!-- 4 能同步什么 -->
+ <section class="scene" id="s4">
+ <h2 class="cx display h2" id="s4-h" style="top:220px">{{types}}</h2>
+ <div class="tiles">
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M12 18h40M12 28h40M12 38h40M12 48h24"/></svg>{{text}}</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><text x="6" y="44" font-size="34" font-weight="700" font-family="Georgia, serif">A</text><text x="31" y="44" font-size="30" font-style="italic" font-family="Georgia, serif">a</text><path d="M8 54h48"/></svg>{{rich_text}}</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><rect x="8" y="12" width="48" height="40" rx="6"/><circle cx="23" cy="26" r="5"/><path d="M10 48l14-14 10 10 8-8 12 12"/></svg>{{images}}</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M18 8h19l13 13v33a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2zM37 8v13h13"/></svg>{{files}}</div>
+ <div class="tile"><svg viewBox="0 0 64 64"><path d="M8 18a4 4 0 0 1 4-4h12l6 6h22a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4z"/></svg>{{folders}}</div>
+ </div>
+ <p class="cx sub" id="s4-sub" style="top:720px">{{small_files}}<br>{{large_files}}</p>
+ </section>
+
+ <!-- 5 复制记录 -->
+ <section class="scene" id="s5">
+ <div class="abs" id="s5-text" style="left:140px;top:300px;width:620px">
+ <h2 class="display" style="font-size:62px;line-height:1.3">{{history_1}}<br>{{history_2}}</h2>
+ <ul class="points" style="margin-top:56px">
+ <li>{{retention}}</li>
+ <li>{{restore}}</li>
+ <li>{{preview}}</li>
+ <li>{{pull}}</li>
+ </ul>
+ </div>
+ <div class="shot" id="s5-shot" style="left:760px;top:155px;width:1100px">
+ <img src="{{shots}}history-dark.png" alt="">
+ <span class="mark" id="s5-mark" style="left:902px;top:325px;width:117px;height:48px"></span>
+ </div>
+ </section>
+
+ <!-- 6 配对 -->
+ <section class="scene" id="s6">
+ <h2 class="cx display h2" id="s6-h" style="top:80px">{{pairing}}</h2>
+ <p class="cx sub" id="s6-sub1" style="top:172px">{{nearby}}</p>
+ <p class="cx sub" id="s6-sub2" style="top:172px">{{fingerprints}}</p>
+ <div class="shot" id="s6-shot" style="left:460px;top:262px;width:1000px">
+ <img src="{{shots}}nearby-dark.png" alt="">
+ <svg class="abs" width="1000" height="697" style="left:0;top:0;overflow:visible">
+ <circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/><circle class="pulse" cx="500" cy="300" r="0"/>
+ </svg>
+ </div>
+ <div class="shot" id="s6-card" style="left:512px;top:318px;width:896px">
+ <img src="{{shots}}card-verify-dark.png" alt="">
+ </div>
+ </section>
+
+ <!-- 7 连接方式 -->
+ <section class="scene" id="s7">
+ <h2 class="cx display h2" id="s7-h" style="top:140px">{{networks}}</h2>
+ <div class="ways">
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><path class="p-data" d="M82 52h76"/><rect class="p-dev" x="39" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M34 69h48"/><rect class="p-dev" x="163" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M158 69h48"/><circle class="p-dot" r="3.2" data-x1="82" data-x2="158" data-y="52"/></svg>
+ <h3>{{lan}}</h3>
+ <p>{{home}}<br>{{lan_detail}}</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/><circle class="p-dot" r="3.2" data-x1="80" data-x2="160" data-y="80"/></svg>
+ <h3>{{cloud}}</h3>
+ <p>{{cloud_detail}}<br>{{anywhere}}</p>
+ </div>
+ <div class="way">
+ <svg viewBox="0 0 240 112"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><path class="p-data" d="M85 52h71"/><rect class="p-dev" x="42" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M37 69h48"/><rect class="p-dev" x="161" y="40" width="38" height="24" rx="3"/><path class="p-dev" d="M156 69h48"/><circle class="p-dot" r="3.2" data-x1="85" data-x2="156" data-y="52"/></svg>
+ <h3>Tailscale</h3>
+ <p>{{across}}<br>{{tailscale_detail}}</p>
+ </div>
+ </div>
+ <p class="cx" id="s7-foot" style="top:850px;font-size:32px;color:var(--ink-2);line-height:1.6">{{encrypted}}<br><span style="color:var(--dim)">{{relay}}</span></p>
+ </section>
+
+ <!-- 8 对比 -->
+ <section class="scene" id="s8">
+ <h2 class="cx display h2" id="s8-h" style="top:110px">{{comparison}}</h2>
+ <div class="cmp">
+ <span class="cmp-col" id="s8-col"></span>
+ <div class="row head"><span></span><span>{{brand}}</span><span>{{universal}}</span><span>{{airdrop}}</span><span>{{chat}}</span></div>
+ <div class="row"><span>{{apple_ids}}</span><span class="yes">✓</span><span class="no">—</span><span class="meh">{{accept}}</span><span class="yes">✓</span></div>
+ <div class="row"><span>{{different_networks}}</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>{{instant}}</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span></div>
+ <div class="row"><span>{{cross_platform}}</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="yes">✓</span></div>
+ <div class="row"><span>{{files_folders}}</span><span class="yes">✓</span><span class="meh">{{unreliable}}</span><span class="yes">✓</span><span class="meh">{{zipped}}</span></div>
+ <div class="row"><span>{{history}}</span><span class="yes">✓</span><span class="no">—</span><span class="no">—</span><span class="meh">{{scroll}}</span></div>
+ <div class="row"><span>{{privacy}}</span><span class="yes">✓</span><span class="yes">✓</span><span class="yes">✓</span><span class="no">—</span></div>
+ </div>
+ </section>
+
+ <!-- 9 结尾 -->
+ <section class="scene" id="s9">
+ <svg class="logo" id="s9-logo" viewBox="0 0 1024 1024" width="190" height="190" style="left:865px;top:112px"></svg>
+ <h1 class="cx display" id="s9-name" style="top:322px;font-size:100px">{{brand}}</h1>
+ <p class="cx" id="s9-tag" style="top:470px;font-size:42px;color:var(--ink-2)">{{tagline}}</p>
+ <div class="cx chips" id="s9-chips" style="top:565px">
+ <span class="chip">{{free}}</span><span class="chip">macOS 13+</span><span class="chip">Windows 10 / 11</span><span class="chip">Linux x64 / ARM64</span>
+ </div>
+ <dl class="cx links" id="s9-links" style="top:690px;margin:0">
+ <dt>{{download}}</dt><dd>{{site_url}}</dd>
+ <dt>{{source}}</dt><dd>github.com/baiyuze/pasteferry</dd>
+ </dl>
+ <p class="cx" id="s9-ask" style="top:905px;font-size:30px;color:var(--dim)">{{closing}}</p>
+ </section>
+
+</div>