Compare commits

..
Author SHA1 Message Date
施工员andmultica-agent 8d2df11919 proto: 流水台整站布局与交互隔离原型 (HEL-646)
纯 HTML/CSS/JS 零依赖原型,与 calliope-web 正式代码隔离,不合并、不部署。
含方案.md、关键画面截图与测试站真实素材。

Co-authored-by: multica-agent <github@multica.ai>
2026-09-29 21:36:02 +08:00
51 changed files with 2478 additions and 701 deletions
@@ -52,16 +52,15 @@
{/if}
<style>
/* §四.5 Toast:右下角堆叠,220ms 上移入场;成功绿点 / 失败红点。 */
.toast-host {
position: fixed;
right: 24px;
bottom: 24px;
top: 72px;
right: 20px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
max-width: min(400px, calc(100vw - 32px));
max-width: min(360px, calc(100vw - 32px));
pointer-events: none;
}
.toast {
@@ -70,10 +69,23 @@
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border-radius: var(--r-lg);
background: var(--float-bg);
box-shadow: var(--shadow-float);
animation: toast-in var(--d-enter) var(--ease-out);
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--bg-surface);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
animation: toast-in 0.22s ease-out;
}
.toast.success {
border-color: rgba(34, 197, 94, 0.45);
box-shadow:
0 12px 32px rgba(0, 0, 0, 0.45),
0 0 0 1px rgba(34, 197, 94, 0.12);
}
.toast.error {
border-color: rgba(239, 68, 68, 0.5);
}
.toast.info {
border-color: rgba(59, 130, 246, 0.45);
}
.badge {
display: inline-flex;
@@ -89,17 +101,17 @@
background: currentColor;
}
.toast.success .badge {
color: var(--ok);
color: var(--success);
}
.toast.error .badge {
color: var(--err);
color: var(--error);
}
.toast.info .badge {
color: var(--text-2);
color: var(--info);
}
.msg {
flex: 1;
font-size: var(--fs-body);
font-size: 13px;
line-height: 1.4;
color: var(--text-primary);
font-weight: 500;
@@ -115,12 +127,10 @@
padding: 0 2px;
min-width: 28px;
min-height: 28px;
border-radius: var(--r-sm);
border-radius: 4px;
}
@media (hover: hover) and (pointer: fine) {
.dismiss:hover {
color: var(--text-primary);
}
.dismiss:hover {
color: var(--text-primary);
}
.dismiss:focus-visible {
outline: 2px solid var(--accent);
@@ -129,7 +139,7 @@
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(8px);
transform: translateY(-8px);
}
to {
opacity: 1;
@@ -141,11 +151,9 @@
animation: none;
}
}
:global(:root[data-reduce='1']) .toast {
animation: none;
}
@media (max-width: 760px) {
@media (max-width: 640px) {
.toast-host {
top: auto;
bottom: 20px;
right: 16px;
left: 16px;
@@ -39,8 +39,7 @@
function segClass(key: string): string {
const state = stats.stage_status?.[key];
if (state === 'confirmed') return 'seg-confirmed';
if (state === 'running') return 'seg-running';
if (state === 'awaiting_confirm') return 'seg-draft';
if (state === 'running' || state === 'awaiting_confirm') return 'seg-draft';
return '';
}
@@ -71,7 +70,7 @@
return { cls: 'st-progress', label: `${stageName} · ${t('workbench.state.running')}` };
}
if (state === 'awaiting_confirm') {
return { cls: 'st-pending', label: `${stageName} · ${t('workbench.state.draft')}` };
return { cls: 'st-progress', label: `${stageName} · ${t('workbench.state.draft')}` };
}
if (stats.stage_confirmed > 0) {
return { cls: 'st-progress', label: `${stageName} · ${t('home.statusProgress')}` };
@@ -330,7 +329,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
color: rgba(22, 19, 10, 0.82);
opacity: 0.9;
}
.status-tag {
@@ -341,7 +340,7 @@
border-radius: 999px;
font-size: 10.5px;
font-weight: 600;
background: var(--media-scrim);
background: rgba(13, 14, 17, 0.78);
border: 1px solid var(--border-strong);
backdrop-filter: blur(4px);
}
@@ -351,10 +350,7 @@
color: var(--text-2);
}
.st-progress {
color: var(--run);
}
.st-pending {
color: var(--warn);
color: var(--accent);
}
.st-done {
color: var(--success);
@@ -413,11 +409,8 @@
border-radius: 2px;
background: var(--surface-3);
}
.seg-running {
background: var(--run);
}
.seg-draft {
background: var(--warn);
background: var(--accent);
}
.seg-confirmed {
background: var(--success);
@@ -432,8 +425,8 @@
margin-left: auto;
padding: 1px 8px;
border-radius: 999px;
background: var(--run-soft);
color: var(--run);
background: var(--accent-dim);
color: var(--accent);
font-size: 10px;
font-weight: 600;
font-variant-numeric: tabular-nums;
@@ -469,7 +462,7 @@
height: 28px;
border: 1px solid transparent;
border-radius: 7px;
background: var(--media-scrim);
background: rgba(13, 14, 17, 0.6);
color: var(--text-2);
font-size: 15px;
line-height: 1;
@@ -341,14 +341,14 @@
white-space: nowrap;
}
/* 进行数徽章:进行中计数用信号青 */
/* 进行数徽章 (spec §3): accent-dim capsule with amber count */
.nav-badge {
margin-left: auto;
min-width: 20px;
padding: 1px 7px;
border-radius: 999px;
background: var(--run-soft);
color: var(--run);
background: var(--accent-dim);
color: var(--accent);
font-size: 10.5px;
font-weight: 600;
font-variant-numeric: tabular-nums;
@@ -384,7 +384,7 @@
color: var(--text);
}
/* 连接状态点: cyan = online, cyan breathing = testing,
/* §5 连接状态点: green = probe passed, amber breathing = testing,
red = failed, gray = no connection configured. */
.dot {
width: 7px;
@@ -396,13 +396,13 @@
margin-top: 5px;
}
.dot.ok {
background: var(--run);
background: var(--success);
}
.dot.fail {
background: var(--error);
}
.dot.testing {
background: var(--run);
background: var(--accent);
animation: shell-breathe 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes shell-breathe {
@@ -258,7 +258,7 @@
color: var(--accent);
}
.slot-empty.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.slot-empty:disabled {
cursor: default;
@@ -1897,7 +1897,7 @@
color: var(--text-3);
}
.h3-hint p.warn {
color: var(--warn);
color: var(--accent);
}
.studio-page {
display: grid;
@@ -1990,10 +1990,10 @@
}
.f-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.f-input.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.f-error {
display: block;
@@ -2139,10 +2139,13 @@
font-weight: 600;
flex-shrink: 0;
}
.tag.info,
.tag.info {
color: var(--info);
background: var(--info-dim);
}
.tag.cloud {
color: var(--text-2);
background: var(--bg-4);
color: var(--cloud);
background: var(--cloud-dim);
}
.task-body {
margin-top: 12px;
@@ -2165,9 +2168,9 @@
.progress .fill {
height: 100%;
border-radius: 999px;
background: var(--run-grad);
box-shadow: 0 0 8px var(--run-soft);
transition: width var(--d-progress) linear;
background: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.task-meta {
font-size: 11px;
@@ -2235,7 +2238,7 @@
display: block;
}
.thumb:hover {
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.thumb.selected {
border: 2px solid var(--accent);
@@ -2568,7 +2571,7 @@
color: var(--success);
}
.st.run {
color: var(--run);
color: var(--accent);
}
.st.queue {
color: var(--text-3);
@@ -3,9 +3,8 @@
import Spinner from './Spinner.svelte';
interface Props {
/** `danger` = outlined (list rows); `danger-solid` = confirm dialogs only. */
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'danger-solid';
size?: 'sm' | 'md' | 'lg';
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
size?: 'sm' | 'md';
/** Stretch to the container width (e.g. a panel's main action). */
block?: boolean;
disabled?: boolean;
@@ -33,7 +32,6 @@
{type}
class="a-btn btn {variant}"
class:sm={size === 'sm'}
class:lg={size === 'lg'}
class:block
class:loading
disabled={disabled || loading}
@@ -51,7 +49,7 @@
</button>
<style>
/* Look comes from the shared `.a-btn` rules in app.css (§四.1). */
/* Look comes from the shared `.a-btn` rules in app.css (§5). */
.btn {
position: relative;
}
@@ -74,14 +72,10 @@
justify-content: center;
}
.btn.primary .btn-spinner {
--spinner-track: color-mix(in srgb, var(--accent-ink) 30%, transparent);
--spinner-arc: var(--accent-ink);
--spinner-track: rgba(22, 19, 10, 0.3);
--spinner-arc: var(--accent-contrast);
}
.btn.danger .btn-spinner {
--spinner-arc: var(--err);
}
.btn.danger-solid .btn-spinner {
--spinner-track: color-mix(in srgb, var(--on-media) 30%, transparent);
--spinner-arc: var(--on-media);
--spinner-arc: var(--error);
}
</style>
@@ -46,18 +46,16 @@
.card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--r-lg);
border-radius: var(--radius-md);
}
.card.hoverable {
transition:
border-color var(--d-state) ease,
transform var(--d-state) var(--ease-out);
border-color 150ms ease,
transform 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
.card.hoverable:hover {
border-color: var(--line-2);
transform: translateY(-1px);
}
.card.hoverable:hover {
border-color: #3f3f46;
transform: translateY(-1px);
}
.card-header {
display: flex;
@@ -47,7 +47,7 @@
{#snippet footer()}
<Button variant="ghost" onclick={() => (open = false)}>{cancelLabel}</Button
>
<Button variant={danger ? 'danger-solid' : 'primary'} onclick={handleConfirm}
<Button variant={danger ? 'danger' : 'primary'} onclick={handleConfirm}
>{confirmLabel}</Button
>
{/snippet}
+15 -14
View File
@@ -144,19 +144,22 @@
align-items: center;
justify-content: center;
padding: 24px;
background: var(--overlay);
animation: modal-fade var(--d-state) ease-out;
background: rgba(5, 5, 8, 0.6);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: modal-fade 150ms ease-out;
}
.modal-panel {
width: min(520px, 100%);
max-height: calc(100vh - 96px);
display: flex;
flex-direction: column;
background: var(--float-bg);
border-radius: var(--r-lg);
box-shadow: var(--shadow-float);
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
outline: none;
animation: modal-rise var(--d-pop) var(--ease-out);
animation: modal-rise 180ms ease-out;
}
.modal-panel.size-lg {
width: min(920px, 100%);
@@ -174,7 +177,7 @@
.modal-title {
margin: 0;
font-family: var(--font-display);
font-size: var(--fs-title);
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
}
@@ -191,14 +194,12 @@
color: var(--text-muted);
cursor: pointer;
transition:
background-color var(--d-state) ease,
color var(--d-state) ease;
background-color 150ms ease,
color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
.modal-close:hover {
background: var(--bg-4);
color: var(--text-primary);
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.06);
color: var(--text-primary);
}
.modal-close:focus-visible {
outline: 2px solid var(--accent);
@@ -4,8 +4,8 @@
indeterminate?: boolean;
label?: string;
size?: 'sm' | 'md';
/** 进度条: running = 信号青, done = green, failed = red (static). */
tone?: 'run' | 'success' | 'error';
/** §5 进度条: running = amber, done = green, failed = red (static). */
tone?: 'accent' | 'success' | 'error';
/** Track only — no label / percentage row. */
bare?: boolean;
}
@@ -15,7 +15,7 @@
indeterminate = false,
label,
size = 'md',
tone = 'run',
tone = 'accent',
bare = false,
}: Props = $props();
@@ -45,7 +45,7 @@
{#if indeterminate}
<div class="fill indeterminate"></div>
{:else}
<div class="fill" style:transform="scaleX({pct / 100})"></div>
<div class="fill" style:width={pct + '%'}></div>
{/if}
</div>
</div>
@@ -75,8 +75,8 @@
position: relative;
width: 100%;
overflow: hidden;
background: var(--bg-4);
border-radius: var(--r-pill);
background: var(--surface-3);
border-radius: 999px;
}
.progress-sm .track {
height: 4px;
@@ -86,18 +86,15 @@
}
.fill {
height: 100%;
background: var(--run-grad);
box-shadow: 0 0 8px var(--run-soft);
transform-origin: left;
transition: transform var(--d-progress) linear;
background: var(--accent);
border-radius: 999px;
transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tone-success .fill {
background: var(--ok);
box-shadow: none;
background: var(--success);
}
.tone-error .fill {
background: var(--err);
box-shadow: none;
background: var(--error);
}
.fill.indeterminate {
position: absolute;
@@ -107,11 +104,10 @@
background: linear-gradient(
90deg,
transparent,
var(--run) 40%,
var(--run) 60%,
var(--accent) 40%,
var(--accent) 60%,
transparent
);
box-shadow: none;
transition: none;
animation: progress-slide 1.2s ease-in-out infinite;
}
@@ -19,26 +19,36 @@
></div>
<style>
/* §四.9 骨架屏:--bg-3 圆角块,1.4s 呼吸透明度;减少动态时静态。 */
.skeleton {
background: var(--bg-3);
border-radius: var(--r-sm);
animation: skeleton-breath 1.4s ease-in-out infinite;
position: relative;
overflow: hidden;
background: var(--bg-elevated);
border-radius: var(--radius-sm);
}
.skeleton.circle {
border-radius: 50%;
}
@keyframes skeleton-breath {
50% {
opacity: 0.5;
.skeleton::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.06),
transparent
);
transform: translateX(-100%);
animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
to {
transform: translateX(100%);
}
}
@media (prefers-reduced-motion: reduce) {
.skeleton {
animation: none;
.skeleton::after {
display: none;
}
}
:global(:root[data-reduce='1']) .skeleton {
animation: none;
}
</style>
@@ -6,27 +6,27 @@
let { status, label }: Props = $props();
type Tone = 'ok' | 'run' | 'muted' | 'err' | 'warn';
type Tone = 'success' | 'info' | 'muted' | 'error' | 'warning' | 'accent';
const toneByStatus: Record<string, Tone> = {
ready: 'ok',
done: 'ok',
completed: 'ok',
running: 'run',
generating: 'run',
in_progress: 'run',
queued: 'muted',
ready: 'success',
done: 'success',
completed: 'success',
running: 'info',
generating: 'info',
queued: 'info',
pending: 'muted',
idle: 'muted',
draft: 'muted',
failed: 'err',
error: 'err',
paused: 'warn',
failed: 'error',
error: 'error',
paused: 'warning',
in_progress: 'accent',
};
const key = $derived(status.trim().toLowerCase());
const tone: Tone = $derived(toneByStatus[key] ?? 'muted');
const pulsing = $derived(tone === 'run');
const pulsing = $derived(key === 'running');
</script>
<span class="chip chip-{tone}">
@@ -35,48 +35,59 @@
</span>
<style>
/* §四.2 状态标签:20px 高、--r-sm、12px;语义色文字 + 13% 软底。 */
.chip {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
height: 20px;
padding: 0 var(--sp-2);
border-radius: var(--r-sm);
font-size: var(--fs-aux);
gap: 6px;
padding: 3px 9px;
border: 1px solid;
border-radius: 999px;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
line-height: 1.4;
white-space: nowrap;
box-sizing: border-box;
}
.dot {
width: 7px;
height: 7px;
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
.chip-ok {
color: var(--ok);
background: var(--ok-soft);
.chip-success {
color: var(--success);
background: color-mix(in srgb, var(--success) 12%, transparent);
border-color: color-mix(in srgb, var(--success) 35%, transparent);
}
.chip-run {
color: var(--run);
background: var(--run-soft);
.chip-info {
color: var(--info);
background: color-mix(in srgb, var(--info) 12%, transparent);
border-color: color-mix(in srgb, var(--info) 35%, transparent);
}
.chip-err {
color: var(--err);
background: var(--err-soft);
.chip-error {
color: var(--error);
background: color-mix(in srgb, var(--error) 12%, transparent);
border-color: color-mix(in srgb, var(--error) 35%, transparent);
}
.chip-warn {
color: var(--warn);
background: var(--warn-soft);
.chip-warning {
color: var(--warning);
background: color-mix(in srgb, var(--warning) 12%, transparent);
border-color: color-mix(in srgb, var(--warning) 35%, transparent);
}
.chip-accent {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.chip-muted {
color: var(--text-2);
background: var(--bg-4);
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.04);
border-color: var(--border);
}
.dot.pulsing {
animation: chip-pulse 1.4s ease-in-out infinite;
animation: chip-pulse 1.2s ease-in-out infinite;
}
@keyframes chip-pulse {
0%,
@@ -92,7 +103,4 @@
animation: none;
}
}
:global(:root[data-reduce='1']) .dot.pulsing {
animation: none;
}
</style>
@@ -9,7 +9,7 @@
let { checked, label, disabled = false, onchange }: Props = $props();
</script>
<!-- §3.10 开关: 34×19 capsule; on = --accent-lo track + ink knob, off = --bg-4. -->
<!-- §5 开关: 34×19 capsule; on = amber track + dark knob, off = --surface-3. -->
<button
type="button"
class="switch"
@@ -28,38 +28,38 @@
flex-shrink: 0;
width: 34px;
height: 19px;
border-radius: var(--r-pill);
border: 1px solid var(--line-2);
background: var(--bg-4);
border-radius: 999px;
border: 1px solid var(--border-strong);
background: var(--surface-3);
position: relative;
cursor: pointer;
padding: 0;
transition:
background-color var(--d-state) ease,
border-color var(--d-state) ease;
background-color 150ms,
border-color 150ms;
}
.switch:disabled {
opacity: 0.45;
opacity: 0.4;
cursor: not-allowed;
}
.knob {
position: absolute;
top: 1px;
left: 1px;
top: 2px;
left: 2px;
width: 15px;
height: 15px;
border-radius: var(--r-pill);
border-radius: 999px;
background: var(--text-3);
transition:
transform var(--d-state) var(--ease-out),
background-color var(--d-state) ease;
transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
background-color 150ms;
}
.switch.on {
background: var(--accent-lo);
border-color: var(--accent-lo);
background: var(--accent);
border-color: var(--accent);
}
.switch.on .knob {
transform: translateX(15px);
background: var(--accent-ink);
background: var(--accent-contrast);
}
</style>
@@ -369,7 +369,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -438,7 +438,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn.gen {
color: var(--accent);
@@ -60,8 +60,8 @@
background: var(--surface-3);
}
.st-running {
color: var(--run);
background: var(--run-soft);
color: var(--accent);
background: var(--accent-dim);
}
.st-done {
color: var(--success);
@@ -258,7 +258,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -294,7 +294,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn.sm {
padding: 6px 12px;
@@ -341,7 +341,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -412,7 +412,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn.gen {
color: var(--accent);
@@ -3,9 +3,9 @@
import { t } from '$lib/i18n.svelte';
/**
* Five-stage stepper (a2): one step per agent with the fusion status
* colors — gray=待开始, cyan=进行中 (+breath), amber=待确认,
* green=已确认, --info=用户改过草稿. A step unlocks when itself or any
* Five-stage stepper (a2): one step per agent with the spec §2.1 semantic
* colors — gray=待开始, amber=进行中/待确认 (+breath while running),
* green=已确认, blue=用户改过草稿. A step unlocks when itself or any
* earlier stage has content; later steps stay clickable only after the
* previous one is confirmed.
*/
@@ -159,7 +159,7 @@
justify-content: center;
font-size: 14px;
font-weight: 700;
color: var(--text);
color: #edeef0;
flex-shrink: 0;
}
@@ -188,14 +188,12 @@
.st-todo {
color: var(--text-3);
}
.st-running {
color: var(--run);
}
.st-running,
.st-draft {
color: var(--warn);
color: var(--accent);
}
.st-edited {
color: var(--warn);
color: var(--info);
}
.st-confirmed {
color: var(--success);
@@ -203,14 +201,14 @@
.step-btn.active[data-state='running'] .avatar,
.step-btn[data-state='running'] .avatar {
box-shadow: 0 0 10px var(--run-soft);
box-shadow: 0 0 10px rgba(232, 163, 61, 0.35);
}
.breath {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--run);
background: var(--accent);
animation: wb-breath 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@@ -297,7 +297,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -386,7 +386,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn:disabled {
opacity: 0.4;
@@ -214,7 +214,7 @@
}
.dir-card.chosen {
border-color: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
box-shadow: 0 0 10px rgba(232, 163, 61, 0.35);
}
.dir-card input[type='radio'] {
position: absolute;
@@ -310,7 +310,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -375,7 +375,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn:disabled {
opacity: 0.4;
+20 -17
View File
@@ -245,11 +245,11 @@
return parts.filter(Boolean).join(' · ');
}
function jobBar(job: Job): { value: number; tone: 'run' | 'success' | 'error' } {
function jobBar(job: Job): { value: number; tone: 'accent' | 'success' | 'error' } {
if (job.status === 'done') return { value: 100, tone: 'success' };
if (job.status === 'failed') return { value: 100, tone: 'error' };
if (job.status === 'running') return { value: progressFor(job.id)?.progress ?? 3, tone: 'run' };
return { value: 0, tone: 'run' };
if (job.status === 'running') return { value: progressFor(job.id)?.progress ?? 3, tone: 'accent' };
return { value: 0, tone: 'accent' };
}
function jobStatusLabel(status: string): string {
@@ -493,7 +493,7 @@
<aside class="tasks">
<div class="tasks-head">
<h2>{t('home.tasksTitle')}</h2>
<span class="chip" class:run={activeJobCount > 0}>
<span class="chip" class:amber={activeJobCount > 0}>
{t('home.activeJobs', { n: activeJobCount })}
</span>
</div>
@@ -580,9 +580,9 @@
font-size: 11.5px;
white-space: nowrap;
}
.chip.run {
background: var(--run-soft);
color: var(--run);
.chip.amber {
background: var(--accent-dim);
color: var(--accent);
}
.entry-btn {
@@ -616,7 +616,7 @@
color: var(--text);
}
.entry-btn.secondary:hover {
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.entry-btn:active {
transform: scale(0.98);
@@ -651,7 +651,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-2);
color: var(--accent);
}
.entry-card h2 {
margin: 4px 0 0;
@@ -736,10 +736,10 @@
}
.f-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.f-input.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.f-hint {
display: block;
@@ -908,10 +908,13 @@
flex-shrink: 0;
white-space: nowrap;
}
.tag-local,
.tag-local {
background: var(--info-dim);
color: var(--info);
}
.tag-cloud {
background: var(--bg-4);
color: var(--text-2);
background: var(--cloud-dim);
color: var(--cloud);
}
.job-name {
flex: 1;
@@ -947,7 +950,7 @@
color: var(--success);
}
.running-text {
color: var(--run);
color: var(--accent);
}
.queued-text {
color: var(--text-3);
@@ -963,8 +966,8 @@
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--run);
box-shadow: 0 0 10px var(--run-soft);
background: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
}
.dot.breathe {
animation: breathe 2s ease-in-out infinite;
+5 -5
View File
@@ -1133,11 +1133,11 @@
justify-content: center;
font-size: 14px;
font-weight: 700;
color: var(--text);
color: #edeef0;
flex-shrink: 0;
}
.avatar.dark {
color: var(--accent-ink);
color: #16130a;
}
.avatar.lg {
width: 42px;
@@ -1294,8 +1294,8 @@
white-space: nowrap;
}
.status-tag.busy {
background: var(--run-soft);
color: var(--run);
background: var(--accent-dim);
color: var(--accent);
}
.chat-head-actions {
display: flex;
@@ -1618,7 +1618,7 @@
background: var(--success);
}
.dot.amber {
background: var(--run);
background: var(--accent);
}
.dot.amber.breathing {
animation: breathe 2s ease-in-out infinite;
+149 -401
View File
@@ -4,201 +4,84 @@
:root {
/* ------------------------------------------------------------------
* 融合视觉 design tokens — HEL-649 整站施工规范 §一(流水台结构 ×
* 放映厅配色)。Single source of truth for the whole app: pages and
* components reference these variables only — no hardcoded colors,
* no ad-hoc overrides. Gold is for key actions and the current
* selection only; status colors each carry exactly one meaning.
* A「片场暗房」design tokens — spec-v2 §2 (HEL-603 confirmed).
* Single source of truth for the whole app: do not hardcode colors in
* pages or components, and do not override these with ad-hoc CSS.
* ------------------------------------------------------------------ */
--bg: #0d0e11;
--surface: #14161b;
--surface-2: #1b1e25;
--surface-3: #22262f;
--border: rgba(255, 255, 255, 0.07);
--border-strong: rgba(255, 255, 255, 0.14);
--border-hover: rgba(255, 255, 255, 0.24);
--text: #edeef0;
--text-2: #9ba1ab;
--text-3: #5c626c;
--accent: #e8a33d;
--accent-hover: #f1b155; /* +8% brightness (§5 主按钮) */
--accent-contrast: #16130a;
--accent-dim: rgba(232, 163, 61, 0.14);
--accent-glow: rgba(232, 163, 61, 0.35);
--accent-focus: rgba(232, 163, 61, 0.6);
--success: #3fb97f;
--success-dim: rgba(63, 185, 127, 0.14);
--info: #5b8def;
--info-dim: rgba(91, 141, 239, 0.14);
--error: #e5484d;
--error-dim: rgba(229, 72, 77, 0.14);
--error-border: rgba(229, 72, 77, 0.4);
--cloud: #b98be0;
--cloud-dim: rgba(185, 139, 224, 0.14);
/* 底色:蓝黑四阶,逐层浮起 (§1.1) */
--bg: #07090e;
--bg-2: #0c0f16;
--bg-3: #121724;
--bg-4: #1a2133;
--line: #1b2233;
--line-2: #2a3450;
--page-glow: radial-gradient(1200px 500px at 70% -10%, rgba(38, 52, 92, 0.25), transparent 60%);
--float-bg: linear-gradient(180deg, #10152a, var(--bg-2));
--overlay: rgba(4, 6, 10, 0.6);
--media-scrim: rgba(7, 9, 14, 0.65);
--on-media: #fff;
--on-media-line: rgba(255, 255, 255, 0.05);
/* 放映金:主按钮、当前选中、改过的参数、聚焦框、Toast 动作 (§1.2) */
--accent: #f2c784;
--accent-ink: #23170a;
--accent-soft: rgba(242, 199, 132, 0.13);
--accent-hi: #f7d9a2;
--accent-lo: #ecaf63;
--accent-glow: rgba(236, 175, 99, 0.28);
--accent-line: rgba(242, 199, 132, 0.55);
--accent-grad: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
--accent-grad-hover: linear-gradient(180deg, #fbe3b6, #f0b968);
--accent-ring: 0 0 0 1px rgba(242, 199, 132, 0.7), 0 0 22px var(--accent-glow);
--btn-glow: 0 2px 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
--btn-glow-hover: 0 4px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
/* 信号色:绿=完成/已确认/通过,青=进行中/在线,红=失败/危险,
琥珀=待确认/文件缺失/限额 (§1.3) */
--ok: #49cb90;
--ok-soft: rgba(73, 203, 144, 0.13);
--run: #54dfd2;
--run-soft: rgba(84, 223, 210, 0.13);
--run-grad: linear-gradient(90deg, #3bbfb4, var(--run));
--err: #f0645a;
--err-soft: rgba(240, 100, 90, 0.13);
--err-line: rgba(240, 100, 90, 0.6);
--warn: #f0b45c;
--warn-soft: rgba(240, 180, 92, 0.13);
/* 文字与字体 (§1.4);--text-2 是深底可读性下限,不得再暗 */
--text: #f4f6fa;
--text-2: #aab2c5;
--text-3: #6d7690;
--font: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
--mono: 'JetBrains Mono', ui-monospace, monospace;
--fs-title: 15px;
--fs-section: 14px;
--fs-body: 13px;
--fs-body-sm: 12.5px;
--fs-aux: 12px;
--fs-mini: 11px;
--lh-body: 1.55;
/* 间距阶梯 4/6/8/10/12/16/20/28,不得出现阶梯外数值 (§1.5) */
--sp-1: 4px;
--sp-2: 6px;
--sp-3: 8px;
--sp-4: 10px;
--sp-5: 12px;
--sp-6: 16px;
--sp-7: 20px;
--sp-8: 28px;
/* 圆角与唯一一级阴影 (§1.5);卡片不投影,用底色差分层 */
--r-sm: 6px;
--r-md: 10px;
--r-lg: 14px;
--r-pill: 999px;
--shadow-float: 0 14px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2);
/* 专属符号 (§1.7):齿孔只在记录流/输入台分隔带,光晕只在播放舞台 */
--sprocket: radial-gradient(circle 2px, var(--line-2) 98%, transparent);
--stage-bg:
radial-gradient(60% 45% at 50% 38%, rgba(242, 199, 132, 0.07), transparent 70%),
radial-gradient(80% 70% at 50% 50%, #0d1220, #05070c);
/* 动效 (§1.6,取 HEL-648 实测值);只动 transform / opacity */
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
--ease-spring: cubic-bezier(0.34, 1.45, 0.44, 1);
--d-press: 120ms;
--d-state: 150ms;
--d-pop: 180ms;
--d-leave: 200ms;
--d-enter: 220ms;
--d-drawer: 280ms;
--d-flash: 900ms;
--d-progress: 400ms;
--press-scale: 0.97;
/* Avatar five-color set — five agents only; the one colorful gradient
family the spec keeps (§3.6). */
/* Avatar five-color set (§2.1) — five agents only */
--avatar-1: linear-gradient(135deg, #e8a33d, #b96a1b);
--avatar-2: linear-gradient(135deg, #5b8def, #3a5fa9);
--avatar-3: linear-gradient(135deg, #3fb97f, #2a7a54);
--avatar-4: linear-gradient(135deg, #b98be0, #7a4fa9);
--avatar-5: linear-gradient(135deg, #d98e6a, #a95535);
/* ------------------------------------------------------------------
* Legacy token names (§六 映射表) — aliases only, never new values,
* so every existing component renders in the fusion palette.
* ------------------------------------------------------------------ */
--surface: var(--bg-2);
--surface-2: var(--bg-3);
--surface-3: var(--bg-4);
--border: var(--line);
--border-strong: var(--line-2);
--border-hover: var(--line-2);
--accent-hover: var(--accent-hi);
--accent-contrast: var(--accent-ink);
--accent-dim: var(--accent-soft);
--accent-focus: var(--accent-line);
--success: var(--ok);
--success-dim: var(--ok-soft);
--info: var(--run);
--info-dim: var(--run-soft);
--error: var(--err);
--error-dim: var(--err-soft);
--error-border: var(--err-line);
--warning: var(--warn);
/* Typography (§2.2) */
--font-ui: 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
--font-a-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
/* Radius / spacing (§2.3) */
--radius-sm: 7px;
--radius-md: 10px;
--radius-lg: 10px;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
/* Legacy token names used by shared primitives — aliases of the A set,
so every component renders in the same darkroom palette. */
--bg-primary: var(--bg);
--bg-surface: var(--bg-2);
--bg-elevated: var(--bg-3);
--bg-surface: var(--surface);
--bg-elevated: var(--surface-2);
--text-primary: var(--text);
--text-secondary: var(--text-2);
--text-muted: var(--text-3);
--font-ui: var(--font);
--font-a-mono: var(--mono);
--font-display: var(--font);
--font-body: var(--font);
--font-mono: var(--mono);
--radius-sm: var(--r-sm);
--radius-md: var(--r-md);
--radius-lg: var(--r-lg);
--space-xs: var(--sp-1);
--space-sm: var(--sp-3);
--space-md: var(--sp-6);
--space-lg: var(--sp-7);
--space-xl: var(--sp-8);
--warning: var(--accent);
--font-display: var(--font-ui);
--font-body: var(--font-ui);
--font-mono: var(--font-a-mono);
/* Omni Composer pill tokens */
--pill-bg: var(--bg-3);
--pill-border: var(--line-2);
--pill-radius: var(--r-pill);
--pill-bg: var(--surface-2);
--pill-border: var(--border-strong);
--pill-radius: 9999px;
--pill-height: 36px;
--pill-padding: 0 14px;
--pill-font-size: var(--fs-body);
}
/* 减少动态效果 (§五):系统设置自动生效,顶栏开关写 data-reduce="1"。
位移/缩放/弹入/光晕全部取消,只留 ≤120ms 透明度,进度条直接跳变。 */
:root[data-reduce='1'] {
--d-press: 0ms;
--d-state: 120ms;
--d-pop: 120ms;
--d-leave: 120ms;
--d-enter: 120ms;
--d-drawer: 120ms;
--d-flash: 0ms;
--d-progress: 0ms;
--press-scale: 1;
--ease-spring: ease;
}
@media (prefers-reduced-motion: reduce) {
:root {
--d-press: 0ms;
--d-state: 120ms;
--d-pop: 120ms;
--d-leave: 120ms;
--d-enter: 120ms;
--d-drawer: 120ms;
--d-flash: 0ms;
--d-progress: 0ms;
--press-scale: 1;
--ease-spring: ease;
}
--pill-font-size: 13px;
}
body {
background: var(--page-glow), var(--bg);
background: var(--bg);
color: var(--text);
font-family: var(--font);
font-size: var(--fs-body);
line-height: var(--lh-body);
-webkit-font-smoothing: antialiased;
font-family: var(--font-ui);
margin: 0;
min-height: 100vh;
}
@@ -206,20 +89,20 @@ body {
.a-darkroom {
background: var(--bg);
color: var(--text);
font-family: var(--font);
font-size: var(--fs-body);
line-height: var(--lh-body);
font-family: var(--font-ui);
font-size: 13.5px;
line-height: 1.6;
}
code,
.mono,
.kh {
font-family: var(--mono);
font-family: var(--font-a-mono);
font-variant-numeric: tabular-nums;
}
/* ------------------------------------------------------------------
* Shared controls (§四 组件状态通用规范). The only definitions of these
* Shared A controls (§5 组件状态全表). The only definitions of these
* looks — `ui/Button.svelte` renders `.a-btn`, pages use the classes
* directly for links / selects. Page styles may only tweak layout
* (width / margin), never re-declare colors.
@@ -228,120 +111,91 @@ code,
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
gap: 6px;
min-height: 34px;
padding: 0 var(--sp-6);
border-radius: var(--r-md);
padding: 0 16px;
border-radius: 8px;
border: 1px solid transparent;
font-family: inherit;
font-size: var(--fs-body);
font-size: 13px;
font-weight: 600;
white-space: nowrap;
text-decoration: none;
cursor: pointer;
box-sizing: border-box;
transition:
transform var(--d-press) var(--ease-out),
background-color var(--d-state) ease,
border-color var(--d-state) ease,
box-shadow var(--d-state) ease,
color var(--d-state) ease,
opacity var(--d-state) ease;
}
.a-btn.lg {
min-height: 38px;
padding: 0 var(--sp-7);
background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
border-color 150ms,
color 150ms,
transform 100ms;
}
.a-btn.sm {
min-height: 28px;
padding: 0 var(--sp-4);
font-size: var(--fs-aux);
border-radius: var(--r-sm);
min-height: 30px;
padding: 0 12px;
font-size: 12px;
}
.a-btn.xs {
min-height: 24px;
padding: 0 var(--sp-3);
font-size: var(--fs-mini);
border-radius: var(--r-sm);
padding: 0 9px;
font-size: 11px;
}
.a-btn.block {
width: 100%;
}
.a-btn.primary {
background: var(--accent-grad);
color: var(--accent-ink);
box-shadow: var(--btn-glow);
background: var(--accent);
color: var(--accent-contrast);
}
.a-btn.primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.a-btn.secondary {
background: var(--bg-3);
border-color: var(--line);
background: var(--surface-2);
border-color: var(--border-strong);
color: var(--text);
}
.a-btn.secondary:hover:not(:disabled) {
border-color: var(--border-hover);
}
.a-btn.ghost {
background: transparent;
color: var(--text-2);
}
/* 危险两级制:列表行内只用描边红 danger;实心红 danger-solid 只在确认弹层内。 */
.a-btn.ghost:hover:not(:disabled) {
background: var(--surface-3);
color: var(--text);
}
.a-btn.danger {
background: transparent;
border-color: var(--err-line);
color: var(--err);
border-color: var(--error-border);
color: var(--error);
}
.a-btn.danger-solid {
background: var(--err);
color: var(--on-media);
}
@media (hover: hover) and (pointer: fine) {
.a-btn.primary:hover:not(:disabled) {
background: var(--accent-grad-hover);
box-shadow: var(--btn-glow-hover);
}
.a-btn.secondary:hover:not(:disabled) {
border-color: var(--line-2);
background: var(--bg-4);
}
.a-btn.ghost:hover:not(:disabled) {
background: var(--bg-4);
color: var(--text);
}
.a-btn.danger:hover:not(:disabled) {
background: var(--err-soft);
}
.a-btn.danger-solid:hover:not(:disabled) {
box-shadow:
0 0 0 1px var(--err-line),
0 0 18px var(--err-soft);
}
.a-btn.danger:hover:not(:disabled) {
background: var(--error-dim);
}
.a-btn:active:not(:disabled) {
transform: scale(var(--press-scale));
transform: scale(0.98);
}
/* 禁用必须在旁边给出中文原因(§1.2),由调用方渲染。 */
.a-btn:disabled,
.a-btn[aria-disabled='true'] {
opacity: 0.45;
box-shadow: none;
opacity: 0.4;
cursor: not-allowed;
}
/* Top-bar status capsule (queue / connection / save state) — §二 顶栏胶囊. */
/* Top-bar status capsule (counts / save state / connection). */
.status-chip {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
height: 30px;
padding: 0 var(--sp-5);
border-radius: var(--r-pill);
border: 1px solid var(--line);
background: var(--bg-2);
gap: 6px;
padding: 5px 12px;
border-radius: 999px;
background: var(--surface-3);
color: var(--text-2);
font-size: var(--fs-aux);
font-size: 11.5px;
white-space: nowrap;
box-sizing: border-box;
}
.status-chip.accent {
background: var(--accent-soft);
border-color: var(--accent-line);
background: var(--accent-dim);
color: var(--accent);
}
.status-chip-dot {
@@ -352,122 +206,33 @@ code,
background: currentColor;
}
.status-chip-dot.ok {
background: var(--ok);
}
.status-chip-dot.run {
background: var(--run);
background: var(--success);
}
.status-chip-dot.fail {
background: var(--err);
background: var(--error);
}
.status-chip-dot.idle {
background: var(--text-3);
}
/* Status label (§四.2):语义色文字 + 13% 软底;默认为中性(排队 / 未开始)。 */
.a-tag {
display: inline-flex;
align-items: center;
gap: var(--sp-1);
height: 20px;
padding: 0 var(--sp-2);
border-radius: var(--r-sm);
background: var(--bg-4);
color: var(--text-2);
font-size: var(--fs-aux);
white-space: nowrap;
box-sizing: border-box;
transition:
color var(--d-state) ease,
background-color var(--d-state) ease;
}
.a-tag.accent {
color: var(--accent);
background: var(--accent-soft);
}
.a-tag.ok {
color: var(--ok);
background: var(--ok-soft);
}
.a-tag.run {
color: var(--run);
background: var(--run-soft);
}
.a-tag.err {
color: var(--err);
background: var(--err-soft);
}
.a-tag.warn {
color: var(--warn);
background: var(--warn-soft);
}
/* Real-progress bar (§1.3):<div class="a-progress" style="--p:.42"><i></i></div>.
Only for true progress values — never fake progress. */
.a-progress {
position: relative;
height: 4px;
border-radius: var(--r-pill);
background: var(--bg-4);
overflow: hidden;
}
.a-progress > i {
position: absolute;
inset: 0;
background: var(--run-grad);
box-shadow: 0 0 8px var(--run-soft);
transform-origin: left;
transform: scaleX(var(--p, 0));
transition: transform var(--d-progress) linear;
}
/* Film sprocket divider — only between the take feed and the composer (§1.7). */
.a-sprocket {
height: 6px;
background-image: var(--sprocket);
background-size: 18px 6px;
background-repeat: repeat-x;
background-position: center;
opacity: 0.55;
}
:root[data-reduce='1'] .a-sprocket {
opacity: 0.3;
}
/* Projection stage — only behind media in the inspector (§1.7). */
.a-stage {
position: relative;
border-radius: var(--r-lg);
overflow: hidden;
background: var(--stage-bg);
box-shadow: 0 0 0 1px var(--line);
}
/* Floating surface for pop / drawer / confirm / toast / lightbox (§四.3). */
.a-float {
background: var(--float-bg);
border-radius: var(--r-lg);
box-shadow: var(--shadow-float);
}
/* Card / panel surface (§1.5:卡片不投影,用底色差分层). */
/* Card / panel surface (§2.3: 10px radius, 1px border, no shadow). */
.a-panel {
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: var(--sp-7);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 20px 22px;
box-sizing: border-box;
}
.a-panel-title {
margin: 0;
font-size: var(--fs-section);
font-size: 14.5px;
font-weight: 600;
color: var(--text);
}
.a-panel-lead {
margin: var(--sp-1) 0 0;
font-size: var(--fs-aux);
line-height: var(--lh-body);
margin: 4px 0 0;
font-size: 12px;
line-height: 1.6;
color: var(--text-3);
}
@@ -478,47 +243,39 @@ code,
.field-textarea,
.field-select {
box-sizing: border-box;
background: var(--bg-3);
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--surface-2);
border: 1px solid var(--border-strong);
border-radius: 7px;
color: var(--text);
font-family: inherit;
font-size: var(--fs-body-sm);
transition: border-color var(--d-state) ease;
font-size: 12.5px;
transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.a-select {
padding: var(--sp-2) var(--sp-4);
padding: 7px 9px;
cursor: pointer;
}
.a-input,
.field-input,
.field-select {
width: 100%;
padding: var(--sp-3) var(--sp-5);
padding: 8px 11px;
}
.a-textarea,
.field-textarea {
width: 100%;
padding: var(--sp-4) var(--sp-5);
padding: 9px 11px;
resize: vertical;
min-height: 96px;
line-height: var(--lh-body);
line-height: 1.6;
}
.a-input::placeholder,
.a-textarea::placeholder,
.field-input::placeholder,
.field-textarea::placeholder {
color: var(--text-3);
}
@media (hover: hover) and (pointer: fine) {
.a-select:hover,
.a-input:hover,
.a-textarea:hover,
.field-input:hover,
.field-textarea:hover,
.field-select:hover {
border-color: var(--line-2);
}
.a-select:hover,
.a-input:hover,
.a-textarea:hover,
.field-input:hover,
.field-textarea:hover,
.field-select:hover {
border-color: var(--border-hover);
}
.a-select:focus,
.a-input:focus,
@@ -527,12 +284,12 @@ code,
.field-textarea:focus,
.field-select:focus {
outline: none;
border-color: var(--accent-line);
border-color: var(--accent-focus);
}
.a-input.invalid,
.a-textarea.invalid,
.field-input.invalid {
border-color: var(--err);
border-color: var(--error);
}
.a-select option.unavailable {
color: var(--text-3);
@@ -540,30 +297,30 @@ code,
.field {
display: block;
margin-bottom: var(--sp-5);
margin-bottom: 14px;
}
.field-label {
display: block;
font-size: var(--fs-aux);
font-size: 12px;
font-weight: 500;
color: var(--text-2);
margin-bottom: var(--sp-2);
margin-bottom: 6px;
}
.field-hint {
margin: var(--sp-2) 0 0;
font-size: var(--fs-aux);
margin: 6px 0 0;
font-size: 11.5px;
color: var(--text-3);
}
.field-error {
margin: var(--sp-2) 0 0;
font-size: var(--fs-aux);
color: var(--err);
margin: 6px 0 0;
font-size: 11.5px;
color: var(--error);
}
/* Dark theme scrollbars (Firefox + Chromium) */
* {
scrollbar-width: thin;
scrollbar-color: var(--bg-4) transparent;
scrollbar-color: var(--surface-3) transparent;
}
*::-webkit-scrollbar {
@@ -576,8 +333,8 @@ code,
}
*::-webkit-scrollbar-thumb {
background: var(--bg-4);
border-radius: var(--r-pill);
background: var(--surface-3);
border-radius: 999px;
border: 2px solid transparent;
background-clip: padding-box;
}
@@ -592,19 +349,17 @@ code,
background: transparent;
}
/* Global keyboard focus (§四.8): every natively focusable element gets the
gold ring. Component-scoped :focus-visible rules override this via higher
specificity. */
/* Global keyboard focus fallback: every natively focusable element gets a ring,
even before the ui/ primitives are adopted. Component-scoped :focus-visible
rules (e.g. .field-input) override this via higher specificity. */
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: var(--r-sm);
}
/* Reduced-motion baseline for components that still carry their own
durations. Components that need a styled static fallback (Skeleton,
ProgressBar indeterminate, StatusChip pulse) also handle this in their
scoped styles. */
/* Global reduced-motion baseline. Components that need a styled static fallback
(Skeleton shimmer, ProgressBar indeterminate, StatusChip pulse) also handle
this in their own scoped styles. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
@@ -614,10 +369,3 @@ code,
transition-duration: 0.01ms !important;
}
}
:root[data-reduce='1'] *,
:root[data-reduce='1'] *::before,
:root[data-reduce='1'] *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
@@ -1654,7 +1654,7 @@
transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card.failed {
border-color: color-mix(in srgb, var(--err) 35%, transparent);
border-color: rgba(229, 72, 77, 0.35);
}
.card-row {
display: flex;
@@ -1671,7 +1671,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-2);
color: var(--accent);
flex-shrink: 0;
}
.card-name {
@@ -1688,10 +1688,13 @@
font-weight: 600;
}
.tag-local,
.tag-lan,
.tag-lan {
color: var(--info);
background: var(--info-dim);
}
.tag-cloud {
color: var(--text-2);
background: var(--bg-4);
color: var(--cloud);
background: var(--cloud-dim);
}
.tag-auth {
color: var(--text-2);
@@ -1740,8 +1743,8 @@
background: var(--text-3);
}
.dot.amber {
background: var(--run);
box-shadow: 0 0 10px var(--run-soft);
background: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
}
.dot.breathing {
animation: breathe 2s ease-in-out infinite;
@@ -1766,7 +1769,7 @@
color: var(--error);
}
.status-text.amber {
color: var(--run);
color: var(--accent);
}
.status-text.gray {
color: var(--text-3);
@@ -1956,7 +1959,7 @@
border-color: var(--error);
}
.wf-conn-check.warn {
border-color: var(--warn);
border-color: var(--accent);
}
.wf-conn-head {
display: flex;
@@ -1974,7 +1977,7 @@
color: var(--error);
}
.wf-conn-check.warn .wf-conn-head :global(.icon) {
color: var(--warn);
color: var(--accent);
}
.wf-conn-title {
font-size: 12px;
@@ -2064,7 +2067,7 @@
cursor: help;
}
.wf-meta-item.recheck.warn .wf-recheck-text {
color: var(--warn);
color: var(--accent);
}
.wf-evidence {
margin: 0 0 12px;
@@ -2195,15 +2198,15 @@
color: var(--error);
}
.tag-usage {
color: var(--text-2);
background: var(--bg-4);
color: var(--accent);
background: var(--accent-dim);
}
.tag-disabled {
color: var(--text-3);
background: var(--surface-3);
}
.wf-pending-note {
color: var(--warn);
color: var(--accent);
}
.wf-row.pending .wf-name {
color: var(--text-3);
@@ -2249,7 +2252,7 @@
line-height: 1.5;
}
.wf-json.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.file-btn {
display: inline-flex;
@@ -2268,7 +2271,7 @@
}
.file-btn:hover {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.file-btn input {
display: none;
@@ -2299,10 +2302,13 @@
justify-content: center;
flex-shrink: 0;
}
.wf-kind.image,
.wf-kind.image {
color: var(--info);
background: var(--info-dim);
}
.wf-kind.video {
color: var(--text-2);
background: var(--bg-4);
color: var(--accent);
background: var(--accent-dim);
}
.wf-name {
flex: 1;
@@ -2454,14 +2460,14 @@
}
.f-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.f-input:disabled {
color: var(--text-3);
cursor: not-allowed;
}
.f-input.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.f-hint {
display: block;
@@ -2604,7 +2610,7 @@
position: fixed;
inset: 0;
z-index: 790;
background: var(--overlay);
background: rgba(5, 5, 8, 0.5);
}
.wf-import-grid {
grid-template-columns: 1fr;
+15 -12
View File
@@ -929,7 +929,7 @@
transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card.failed {
border-color: color-mix(in srgb, var(--err) 35%, transparent);
border-color: rgba(229, 72, 77, 0.35);
}
.card-row {
display: flex;
@@ -946,7 +946,7 @@
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-2);
color: var(--accent);
flex-shrink: 0;
}
.card-name {
@@ -963,10 +963,13 @@
font-weight: 600;
}
.tag-local,
.tag-lan,
.tag-lan {
color: var(--info);
background: var(--info-dim);
}
.tag-cloud {
color: var(--text-2);
background: var(--bg-4);
color: var(--cloud);
background: var(--cloud-dim);
}
.tag-default {
color: var(--accent);
@@ -1007,8 +1010,8 @@
background: var(--text-3);
}
.dot.amber {
background: var(--run);
box-shadow: 0 0 10px var(--run-soft);
background: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
}
.dot.breathing {
animation: breathe 2s ease-in-out infinite;
@@ -1033,7 +1036,7 @@
color: var(--error);
}
.status-text.amber {
color: var(--run);
color: var(--accent);
}
.status-text.gray {
color: var(--text-3);
@@ -1176,7 +1179,7 @@
color: var(--text);
}
.avatar.dark {
color: var(--accent-ink);
color: #16130a;
}
.agent-name {
font-size: 12.5px;
@@ -1279,14 +1282,14 @@
}
.f-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.f-input:disabled {
color: var(--text-3);
cursor: not-allowed;
}
.f-input.invalid {
border-color: var(--err-line);
border-color: rgba(229, 72, 77, 0.65);
}
.f-hint {
display: block;
@@ -1430,7 +1433,7 @@
position: fixed;
inset: 0;
z-index: 790;
background: var(--overlay);
background: rgba(5, 5, 8, 0.5);
}
.agents-grid {
grid-template-columns: repeat(3, 1fr);
@@ -669,7 +669,7 @@
color: var(--text-2);
}
.note.warn :global(.icon) {
color: var(--warn);
color: var(--accent);
flex-shrink: 0;
margin-top: 2px;
}
+8 -5
View File
@@ -312,7 +312,7 @@
min-height: 56px;
}
.trow.failed {
border-color: color-mix(in srgb, var(--err) 35%, transparent);
border-color: rgba(229, 72, 77, 0.35);
}
.tkind {
@@ -324,10 +324,13 @@
justify-content: center;
flex-shrink: 0;
}
.tkind.image,
.tkind.image {
color: var(--info);
background: var(--info-dim);
}
.tkind.video {
color: var(--text-2);
background: var(--bg-4);
color: var(--accent);
background: var(--accent-dim);
}
.tthumb {
@@ -409,7 +412,7 @@
color: var(--success);
}
.tst.run {
color: var(--run);
color: var(--accent);
}
.tst.queue {
color: var(--text-3);
@@ -670,13 +670,10 @@
color: var(--text-2);
background: var(--surface-3);
}
.st-running {
color: var(--run);
background: var(--run-soft);
}
.st-running,
.st-draft {
color: var(--warn);
background: var(--warn-soft);
color: var(--accent);
background: var(--accent-dim);
}
.st-confirmed {
color: var(--success);
@@ -687,8 +684,8 @@
border-radius: 999px;
font-size: 11px;
font-weight: 600;
color: var(--warn);
background: var(--warn-soft);
color: var(--info);
background: var(--info-dim);
}
.error-banner {
@@ -698,7 +695,7 @@
padding: 10px 14px;
border-radius: 8px;
background: var(--error-dim);
border: 1px solid color-mix(in srgb, var(--err) 35%, transparent);
border: 1px solid rgba(229, 72, 77, 0.35);
color: var(--error);
font-size: 12.5px;
line-height: 1.6;
@@ -709,9 +706,9 @@
gap: 8px;
padding: 10px 14px;
border-radius: 8px;
background: var(--warn-soft);
border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
color: var(--warn);
background: var(--accent-dim);
border: 1px solid rgba(232, 163, 61, 0.3);
color: var(--accent);
font-size: 12.5px;
}
.running-banner {
@@ -769,7 +766,7 @@
justify-content: center;
font-size: 16px;
font-weight: 700;
color: var(--text);
color: #edeef0;
flex-shrink: 0;
}
.agent-copy {
@@ -836,10 +833,13 @@
justify-content: center;
flex-shrink: 0;
}
.kind-image,
.kind-image {
background: var(--info-dim);
color: var(--info);
}
.kind-video {
background: var(--bg-4);
color: var(--text-2);
background: var(--cloud-dim);
color: var(--cloud);
}
.job-body {
display: flex;
@@ -872,7 +872,7 @@
color: var(--success);
}
.job-state.st-running {
color: var(--run);
color: var(--accent);
}
.job-state.st-pending {
color: var(--text-2);
@@ -904,11 +904,9 @@
.flow-dot.st-confirmed {
background: var(--success);
}
.flow-dot.st-running {
background: var(--run);
}
.flow-dot.st-running,
.flow-dot.st-awaiting_confirm {
background: var(--warn);
background: var(--accent);
}
.flow-name {
font-size: 12px;
@@ -955,7 +953,7 @@
}
.wb-input:focus {
outline: none;
border-color: var(--accent-line);
border-color: rgba(232, 163, 61, 0.6);
}
.wb-input::placeholder {
color: var(--text-3);
@@ -992,7 +990,7 @@
}
.btn.ghost:hover:not(:disabled) {
color: var(--text);
border-color: var(--line-2);
border-color: rgba(255, 255, 255, 0.24);
}
.btn.sm {
padding: 6px 11px;
@@ -1026,7 +1024,7 @@
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--run);
background: var(--accent);
animation: wb-page-breath 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.breath.big {
+10 -16
View File
@@ -1,26 +1,20 @@
// Colors and radii resolve to the design tokens in src/routes/app.css so the
// Tailwind palette can never drift from the single source of truth.
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
colors: {
primary: 'var(--bg)',
surface: 'var(--bg-2)',
elevated: 'var(--bg-3)',
border: 'var(--line)',
muted: 'var(--text-3)',
accent: 'var(--accent)',
'accent-hover': 'var(--accent-hi)',
ok: 'var(--ok)',
run: 'var(--run)',
err: 'var(--err)',
warn: 'var(--warn)',
primary: '#0a0a0c',
surface: '#141418',
elevated: '#1e1e24',
border: '#2a2a32',
muted: '#71717a',
accent: '#8b5cf6',
'accent-hover': '#7c3aed',
},
borderRadius: {
sm: 'var(--r-sm)',
md: 'var(--r-md)',
lg: 'var(--r-lg)',
sm: '6px',
md: '10px',
lg: '16px',
},
},
},
+542
View File
@@ -0,0 +1,542 @@
/* HEL-646 流水台原型 · 设计 Token 统一在 :root,组件只引用变量 */
:root {
--bg: #121211;
--bg-2: #191917;
--bg-3: #22221f;
--bg-4: #2b2b27;
--line: #2c2c28;
--line-2: #3b3b35;
--text: #f2f1ec;
--text-2: #b6b4ab;
--text-3: #7f7d75;
--accent: #c9f36b;
--accent-ink: #182200;
--accent-soft: rgba(201, 243, 107, 0.12);
--run: #86adff;
--run-soft: rgba(134, 173, 255, 0.14);
--err: #ff8070;
--err-soft: rgba(255, 128, 112, 0.12);
--warn: #f3c55a;
--warn-soft: rgba(243, 197, 90, 0.12);
--r-sm: 6px;
--r-md: 10px;
--r-lg: 14px;
--shadow-float: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line-2);
--font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
--mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
--d-press: 120ms;
--d-state: 150ms;
--d-pop: 180ms;
--d-enter: 220ms;
--d-drawer: 280ms;
}
:root[data-reduce="1"] {
--d-press: 0ms;
--d-pop: 120ms;
--d-enter: 120ms;
--d-drawer: 120ms;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg);
color: var(--text);
font: 13px/1.55 var(--font);
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* ---------- 壳层 ---------- */
.app { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; }
.rail {
display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 12px 0; border-right: 1px solid var(--line); background: var(--bg);
}
.rail .logo {
width: 34px; height: 34px; border-radius: 9px; margin-bottom: 14px;
display: grid; place-items: center; font-weight: 700; font-size: 16px;
background: var(--accent); color: var(--accent-ink);
}
.rail .spacer { flex: 1; }
.rail-btn {
position: relative; width: 44px; height: 44px; border-radius: var(--r-md);
display: grid; place-items: center; color: var(--text-3);
transition: color var(--d-state) ease, background-color var(--d-state) ease;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.rail-btn[aria-current="page"]::before {
content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px;
border-radius: 0 3px 3px 0; background: var(--accent);
}
.rail-btn .tip {
position: absolute; left: 52px; white-space: nowrap; pointer-events: none;
background: var(--bg-4); color: var(--text); padding: 4px 8px; border-radius: var(--r-sm);
font-size: 12px; opacity: 0; transform: translateX(-4px);
transition: opacity var(--d-pop) var(--ease-out), transform var(--d-pop) var(--ease-out);
z-index: 30;
}
@media (hover: hover) and (pointer: fine) {
.rail-btn:hover { color: var(--text); background: var(--bg-2); }
.rail-btn:hover .tip { opacity: 1; transform: none; transition-delay: 350ms; }
}
.main { display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; }
.topbar {
display: flex; align-items: center; gap: 10px; padding: 0 16px;
border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumb h1 { font-size: 15px; font-weight: 600; margin: 0; white-space: nowrap; }
.capsule {
display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); white-space: nowrap;
transition: border-color var(--d-state) ease, color var(--d-state) ease;
}
.capsule .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.capsule .dot.run { background: var(--run); }
.capsule .dot.err { background: var(--err); }
@media (hover: hover) and (pointer: fine) {
.capsule:hover { border-color: var(--text-3); color: var(--text); }
}
.topbar .grow { flex: 1; }
.kbd {
font: 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2);
border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; line-height: 16px;
}
.search-btn { min-width: 240px; justify-content: space-between; }
/* 通用按钮 */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
height: 32px; padding: 0 12px; border-radius: var(--r-md);
border: 1px solid var(--line-2); color: var(--text); background: var(--bg-2);
transition: transform var(--d-press) var(--ease-out), background-color var(--d-state) ease, border-color var(--d-state) ease, opacity var(--d-state) ease;
white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.danger { color: var(--err); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) {
.btn:hover:not(:disabled) { border-color: var(--text-3); }
.btn.primary:hover:not(:disabled) { background: #d6f88a; }
.btn.ghost:hover:not(:disabled) { background: var(--bg-3); color: var(--text); }
}
.tag {
display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
border-radius: 999px; font-size: 11px; color: var(--text-2); background: var(--bg-3);
white-space: nowrap;
}
.tag.accent { color: var(--accent); background: var(--accent-soft); }
.tag.run { color: var(--run); background: var(--run-soft); }
.tag.err { color: var(--err); background: var(--err-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
/* ---------- 视图切换 ---------- */
.view { display: none; min-height: 0; }
.view.on { display: grid; }
/* ---------- 生成台 ---------- */
.desk { grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.desk-center { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.context-bar {
display: none; align-items: center; gap: 10px; margin: 10px 20px 0; padding: 8px 12px;
border-radius: var(--r-md); background: var(--run-soft); color: var(--text); font-size: 12px;
}
.context-bar.on { display: flex; }
.context-bar b { color: var(--run); font-weight: 600; }
.filters { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.seg button {
height: 26px; padding: 0 10px; border-radius: 8px; color: var(--text-3);
transition: background-color var(--d-state) ease, color var(--d-state) ease;
}
.seg button[aria-pressed="true"] { background: var(--bg-4); color: var(--text); }
.filters .count { margin-left: auto; color: var(--text-3); font-size: 12px; }
.feed { flex: 1; overflow-y: auto; padding: 16px 20px 8px; scroll-behavior: smooth; }
:root[data-reduce="1"] .feed { scroll-behavior: auto; }
.feed-day { color: var(--text-3); font-size: 12px; margin: 10px 0 8px; display: flex; align-items: center; gap: 8px; }
.feed-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.take {
position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px;
padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r-lg);
border: 1px solid transparent; background: var(--bg-2); cursor: pointer;
transition: border-color var(--d-state) ease, background-color var(--d-state) ease, opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out);
}
@starting-style { .take.new { opacity: 0; transform: translateY(8px); } }
:root[data-reduce="1"] .take.new { transform: none; }
.take.selected { border-color: var(--accent); background: var(--bg-3); }
.take.leaving { opacity: 0; transform: translateX(-12px); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
.take:hover:not(.selected) { border-color: var(--line-2); }
}
.take-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.take-head .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.take-head .meta { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.take-prompt {
grid-column: 1; color: var(--text-2); font-size: 12.5px;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.take-inputs { display: flex; gap: 4px; align-items: center; }
.take-inputs .mini { width: 26px; height: 26px; border-radius: 5px; background-size: cover; background-position: center; border: 1px solid var(--line-2); }
.take-inputs .more { font-size: 11px; color: var(--text-3); padding-left: 2px; }
.take-out { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
.thumb {
position: relative; width: 150px; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
background: var(--bg-4) center / cover no-repeat;
}
.thumb.portrait { width: 96px; aspect-ratio: 3 / 4; }
.thumb.fresh { transition: opacity var(--d-state) ease; }
@starting-style { .thumb.fresh { opacity: 0; } }
.thumb .badge {
position: absolute; right: 6px; bottom: 6px; font: 11px var(--mono); padding: 1px 5px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #fff;
}
.thumb .play {
position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%;
display: grid; place-items: center; background: rgba(0, 0, 0, 0.6);
}
.thumb .play svg { width: 10px; height: 10px; fill: #fff; }
.thumb.missing, .thumb.pending {
display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--text-3);
border: 1px dashed var(--line-2); background: var(--bg-2); padding: 6px;
}
.thumb.pending { border-style: solid; overflow: hidden; }
.thumb.pending::after {
content: ""; position: absolute; inset: 0;
background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
animation: sheen 1.4s linear infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
:root[data-reduce="1"] .thumb.pending::after { animation: none; }
.take-state { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; min-height: 22px; }
.take-state .txt { color: var(--text-2); }
.take-state .err-txt { color: var(--err); }
.bar { position: relative; flex: 0 0 140px; height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.bar i {
position: absolute; inset: 0; background: var(--run); transform-origin: left;
transform: scaleX(var(--p, 0)); transition: transform 400ms linear;
}
.take-actions { display: flex; gap: 4px; margin-left: auto; opacity: 0; transition: opacity var(--d-state) ease; }
.take:focus-within .take-actions, .take.selected .take-actions { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .take:hover .take-actions { opacity: 1; } }
@media (hover: none) { .take-actions { opacity: 1; } }
.err-detail { grid-column: 1 / -1; display: none; margin: 0; padding: 8px 10px 8px 26px; border-radius: var(--r-md); background: var(--err-soft); color: var(--text-2); font-size: 12px; }
.take.open .err-detail { display: block; }
.err-detail li { margin: 2px 0; }
/* ---------- 输入台 ---------- */
.composer-wrap { padding: 8px 20px 16px; }
.composer {
border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2);
transition: border-color var(--d-state) ease;
}
.composer:focus-within { border-color: var(--text-3); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0; }
.slots:empty { display: none; }
.slot-group { display: flex; flex-direction: column; gap: 6px; }
.slot-label { font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.slot-label .req { color: var(--warn); }
.slot-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tile {
position: relative; width: 58px; height: 58px; border-radius: var(--r-md);
background: var(--bg-3) center / cover no-repeat; border: 1px solid var(--line-2);
display: grid; place-items: center; color: var(--text-3);
transition: border-color var(--d-state) ease, transform var(--d-press) var(--ease-out), opacity var(--d-enter) var(--ease-out);
}
@starting-style { .tile.filled { opacity: 0; transform: scale(0.94); } }
.tile.add { border-style: dashed; }
.tile.add svg { width: 18px; height: 18px; }
.tile.add:active { transform: scale(0.97); }
.tile.drag { border-color: var(--accent); background-color: var(--accent-soft); color: var(--accent); }
.tile.bad { border-color: var(--err); }
.tile.need { border-color: var(--warn); }
.tile .x {
position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
background: var(--bg-4); border: 1px solid var(--line-2); display: grid; place-items: center; opacity: 0;
transition: opacity var(--d-state) ease;
}
.tile .x svg { width: 9px; height: 9px; }
.tile:focus-within .x { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .tile:hover .x { opacity: 1; } .tile.add:hover { border-color: var(--text-3); color: var(--text); } }
@media (hover: none) { .tile .x { opacity: 1; } }
.tile .ring { position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; font-size: 11px; color: #fff; }
.tile .idx { position: absolute; left: 3px; top: 2px; font: 10px var(--mono); color: #fff; text-shadow: 0 1px 2px #000; }
.slot-hint { font-size: 11px; color: var(--text-3); }
.slot-hint.err { color: var(--err); }
.prompt {
display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent;
padding: 12px 14px 6px; min-height: 52px; max-height: 180px; line-height: 1.6;
}
.prompt::placeholder { color: var(--text-3); }
.composer-foot { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px 8px; flex-wrap: wrap; }
.chip {
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
background: var(--bg-3); color: var(--text-2); font-size: 12px; white-space: nowrap; max-width: 280px;
transition: background-color var(--d-state) ease, color var(--d-state) ease, transform var(--d-press) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip .lbl { overflow: hidden; text-overflow: ellipsis; }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip.wf { color: var(--text); background: var(--bg-4); font-weight: 500; }
.chip.warn { color: var(--warn); }
.chip.err { color: var(--err); }
.chip.changed { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--bg-4); color: var(--text); } }
.submit-group { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.why { font-size: 12px; color: var(--warn); white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
.why.err { color: var(--err); }
.gen-btn { height: 34px; padding: 0 16px; border-radius: 999px; }
/* ---------- 右侧检视区 ---------- */
.inspector { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.insp-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.insp-body { flex: 1; overflow-y: auto; padding: 14px; }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.stage.portrait { aspect-ratio: 3 / 4; max-height: 480px; margin: 0 auto; }
.stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--d-state) ease; }
.stage .fade-out { opacity: 0; }
.stage-empty { display: grid; place-items: center; color: var(--text-3); font-size: 12px; background: var(--bg-2); }
.stage-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0; font-size: 12px; color: var(--text-3); }
.stage-meta b { color: var(--text-2); font-weight: 500; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.section-title { font-size: 12px; color: var(--text-3); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 12px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text-2); word-break: break-all; }
/* 参数表单(按工作流 JSON 生成) */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.field label .orig { color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.input {
height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2);
padding: 0 10px; outline: 0; width: 100%;
transition: border-color var(--d-state) ease;
}
.input:focus { border-color: var(--text-3); }
.input.changed { border-color: rgba(201, 243, 107, 0.5); }
textarea.input { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; }
.fold { border-top: 1px solid var(--line); margin-top: 6px; }
.fold > summary {
list-style: none; cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary svg { width: 12px; height: 12px; transition: transform var(--d-pop) var(--ease-out); }
.fold[open] > summary svg { transform: rotate(90deg); }
.note { font-size: 12px; color: var(--text-3); padding: 8px 10px; border-radius: var(--r-md); background: var(--bg-2); margin-bottom: 12px; }
.note.warn { color: var(--warn); background: var(--warn-soft); }
.note.err { color: var(--err); background: var(--err-soft); }
.note ul { margin: 6px 0 0; padding-left: 18px; }
/* ---------- 浮层:工作流面板 ---------- */
.pop {
position: fixed; z-index: 50; width: 520px; max-height: min(560px, 70vh); display: flex; flex-direction: column;
border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--shadow-float);
opacity: 0; transform: scale(0.96); pointer-events: none; transform-origin: var(--origin, bottom left);
transition: opacity var(--d-pop) var(--ease-out), transform var(--d-pop) var(--ease-out);
}
.pop.on { opacity: 1; transform: none; pointer-events: auto; }
.pop.instant { transition: none; }
:root[data-reduce="1"] .pop { transform: none; }
.pop-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pop-search input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 14px; }
.pop-list { overflow-y: auto; padding: 6px; }
.pop-group { font-size: 11px; color: var(--text-3); padding: 10px 10px 4px; display: flex; gap: 6px; }
.wf-row {
display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left;
padding: 8px 10px; border-radius: var(--r-md);
}
.wf-row[aria-selected="true"] { background: var(--bg-4); }
.wf-row .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-row .s { grid-column: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.wf-row .r { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 11px; text-align: right; }
.wf-row.off .n { color: var(--text-3); }
.pop-foot { border-top: 1px solid var(--line); padding: 8px; display: flex; gap: 6px; align-items: center; }
.pop-foot .hint { margin-left: auto; font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.menu { width: 260px; }
.menu .pop-list button { display: flex; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); gap: 8px; align-items: center; }
.menu .pop-list button:hover, .menu .pop-list button[aria-selected="true"] { background: var(--bg-4); }
/* ---------- 抽屉:导入工作流 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity var(--d-drawer) ease; z-index: 60; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100vw; z-index: 61;
background: var(--bg-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column;
transform: translateX(100%); transition: transform var(--d-drawer) var(--ease-drawer);
}
.drawer.on { transform: none; }
:root[data-reduce="1"] .drawer { transform: none; opacity: 0; pointer-events: none; transition: opacity var(--d-drawer) ease; }
:root[data-reduce="1"] .drawer.on { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 15px; margin: 0; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.drop {
border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 10px;
transition: border-color var(--d-state) ease, background-color var(--d-state) ease;
}
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop textarea { width: 100%; min-height: 110px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; font: 12px/1.5 var(--mono); color: var(--text-2); resize: vertical; outline: 0; }
.checks { display: grid; gap: 8px; margin-top: 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.check .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--text-3); font-size: 11px; transition: background-color var(--d-state) ease, color var(--d-state) ease; }
.check.ok .ic { background: var(--accent-soft); color: var(--accent); }
.check.bad .ic { background: var(--err-soft); color: var(--err); }
.check.run .ic { background: var(--run-soft); color: var(--run); }
.check .t { font-weight: 500; }
.check .d { grid-column: 2; color: var(--text-3); font-size: 12px; }
.check .d ul { margin: 4px 0 0; padding-left: 16px; }
.slot-map { display: grid; gap: 6px; margin-top: 8px; }
.slot-map div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--bg-3); }
.usage-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.usage-pick button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; }
.usage-pick button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
/* ---------- Toast ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; gap: 8px; pointer-events: none; max-width: 400px; }
.toast {
display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: var(--r-md);
background: var(--bg-4); box-shadow: var(--shadow-float); pointer-events: auto; min-width: 280px;
transition: opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.out { opacity: 0; transform: translateY(100%); }
:root[data-reduce="1"] .toast, :root[data-reduce="1"] .toast.out { transform: none; }
.toast .grow { flex: 1; }
.toast button { color: var(--accent); font-weight: 600; }
/* ---------- 任务托盘 ---------- */
.tray { width: 340px; }
.tray-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); width: 100%; text-align: left; }
.tray-row:hover { background: var(--bg-3); }
.tray-row .t { width: 36px; height: 36px; border-radius: 6px; background: var(--bg-4) center / cover; }
.tray-row .n { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-row .m { font-size: 11px; color: var(--text-3); }
/* ---------- 项目 / 创作流程 ---------- */
.page { overflow-y: auto; padding: 24px 28px 40px; align-content: start; gap: 18px; }
.hero {
display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line);
}
.hero .cover { aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--bg-4) center / cover; }
.hero h2 { margin: 2px 0 6px; font-size: 20px; }
.hero p { margin: 0 0 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0 14px; }
.track button { text-align: left; padding: 8px 10px; border-radius: var(--r-md); background: var(--bg-3); font-size: 12px; color: var(--text-2); transition: background-color var(--d-state) ease; }
.track button .k { display: block; font-size: 11px; color: var(--text-3); }
.track button.done .k { color: var(--accent); }
.track button.cur { background: var(--bg-4); color: var(--text); box-shadow: inset 0 -2px 0 var(--warn); }
.track button.cur .k { color: var(--warn); }
.track button[aria-current="step"] { outline: 1px solid var(--text-3); }
.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.proj { display: grid; gap: 6px; padding: 12px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-align: left; transition: border-color var(--d-state) ease; }
@media (hover: hover) and (pointer: fine) { .proj:hover { border-color: var(--line-2); } }
.proj .pips { display: flex; gap: 3px; }
.proj .pips i { flex: 1; height: 3px; border-radius: 3px; background: var(--bg-4); }
.proj .pips i.d { background: var(--accent); }
.proj .pips i.c { background: var(--warn); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shot { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); align-items: start; }
.shot .no { font: 600 13px var(--mono); color: var(--warn); }
.shot .p { color: var(--text-2); font-size: 12.5px; }
.shot .en { margin-top: 6px; font: 11.5px/1.5 var(--mono); color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.placeholder { place-items: center; text-align: center; color: var(--text-3); padding: 40px; }
.placeholder h2 { color: var(--text); font-size: 16px; }
/* 原型标记 */
.proto-flag { font-size: 11px; color: var(--text-3); border: 1px dashed var(--line-2); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.switch input { accent-color: var(--accent); }
/* 底部标签栏(窄屏) */
.tabbar { display: none; }
.mobile-only { display: none; }
/* ---------- 中屏:检视区改为右侧浮层 ---------- */
@media (max-width: 1180px) {
.desk { grid-template-columns: minmax(0, 1fr); }
.inspector {
position: fixed; top: 52px; right: 0; bottom: 0; width: 400px; z-index: 40; box-shadow: var(--shadow-float);
transform: translateX(100%); transition: transform var(--d-drawer) var(--ease-drawer);
}
.inspector.on { transform: none; }
:root[data-reduce="1"] .inspector { transform: none; opacity: 0; pointer-events: none; transition: opacity var(--d-drawer) ease; }
:root[data-reduce="1"] .inspector.on { opacity: 1; pointer-events: auto; }
.insp-close { display: inline-flex !important; }
.search-btn { min-width: 0; }
.search-btn .lbl { display: none; }
}
/* ---------- 窄屏:底部标签栏 + 输入台底部抽屉 ---------- */
@media (max-width: 760px) {
.app { grid-template-columns: 1fr; }
.rail { display: none; }
.main { grid-template-rows: 48px minmax(0, 1fr) 56px; }
.topbar { padding: 0 12px; gap: 8px; }
.topbar .hide-sm { display: none; }
.mobile-only { display: inline-flex; }
.tabbar {
display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--bg);
}
.tabbar button { display: grid; place-items: center; gap: 2px; font-size: 11px; color: var(--text-3); padding-top: 6px; }
.tabbar button svg { width: 20px; height: 20px; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.filters { padding: 8px 12px; overflow-x: auto; }
.filters .count { display: none; }
.feed { padding: 12px 12px 4px; }
.take { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
.take-head { flex-wrap: wrap; row-gap: 2px; }
.take-out { grid-row: 1 / span 2; }
.take-state { grid-column: 1 / -1; flex-wrap: wrap; }
.take-state .txt, .take-state .err-txt { white-space: nowrap; }
.take-actions { margin-left: auto; }
.toasts { left: 12px; right: 12px; bottom: 124px; max-width: none; }
.thumb { width: 108px; }
.thumb.portrait { width: 72px; }
.bar { flex-basis: 80px; }
.composer-wrap { padding: 6px 10px 10px; }
.composer:not(.expanded) .slots, .composer:not(.expanded) .opt-chip { display: none; }
.composer:not(.expanded) .prompt { min-height: 40px; max-height: 40px; padding: 10px 12px 2px; white-space: nowrap; overflow: hidden; }
.composer.expanded { position: fixed; left: 0; right: 0; bottom: 56px; z-index: 45; border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: var(--shadow-float); }
.chip { max-width: 170px; }
.inspector { top: 0; width: 100vw; bottom: 0; z-index: 70; }
.pop { left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: 100vw; border-radius: 16px 16px 0 0; max-height: 78vh; --origin: bottom center; }
.drawer { width: 100vw; }
.page { padding: 16px 12px 24px; }
.hero { grid-template-columns: 1fr; }
.track { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; }
.shot { grid-template-columns: 30px 1fr; }
.shot .btn { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
:root { --d-press: 0ms; --d-pop: 120ms; --d-enter: 120ms; --d-drawer: 120ms; }
.take.new, .tile.filled { transform: none !important; }
.thumb.pending::after { animation: none; }
}
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.
+156
View File
@@ -0,0 +1,156 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>影工坊 · 流水台交互原型(HEL-646,隔离原型)</title>
<link rel="stylesheet" href="app.css">
</head>
<body>
<svg width="0" height="0" style="position:absolute">
<defs>
<symbol id="i-home" viewBox="0 0 24 24"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/></symbol>
<symbol id="i-flow" viewBox="0 0 24 24"><path d="M4 6h5v5H4zM15 13h5v5h-5zM9 8.5h3.5a2 2 0 0 1 2 2V13" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/></symbol>
<symbol id="i-spark" viewBox="0 0 24 24"><path d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM18.5 16l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></symbol>
<symbol id="i-list" viewBox="0 0 24 24"><path d="M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
<symbol id="i-agent" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M4 20c1.5-4 4.5-6 8-6s6.5 2 8 6" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
<symbol id="i-link" viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
<symbol id="i-gear" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M12 2.5v3M12 18.5v3M21.5 12h-3M5.5 12h-3M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1M18.7 18.7l-2.1-2.1M7.4 7.4L5.3 5.3" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
<symbol id="i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></symbol>
<symbol id="i-play" viewBox="0 0 24 24"><path d="M7 4l13 8-13 8z"/></symbol>
<symbol id="i-down" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-right" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-sliders" viewBox="0 0 24 24"><path d="M4 7h10M18 7h2M4 17h4M12 17h8" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="7" r="2" fill="none" stroke="currentColor" stroke-width="1.8"/><circle cx="10" cy="17" r="2" fill="none" stroke="currentColor" stroke-width="1.8"/></symbol>
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M16 16l4 4" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
<symbol id="i-upload" viewBox="0 0 24 24"><path d="M12 15V4M7 9l5-5 5 5M5 19h14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-dice" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3" fill="none" stroke="currentColor" stroke-width="1.7"/><circle cx="9" cy="9" r="1.2"/><circle cx="15" cy="15" r="1.2"/><circle cx="15" cy="9" r="1.2"/><circle cx="9" cy="15" r="1.2"/></symbol>
<symbol id="i-back" viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
</defs>
</svg>
<div class="app">
<nav class="rail" aria-label="主导航">
<div class="logo" aria-hidden="true">影</div>
<button class="rail-btn" data-nav="projects"><svg><use href="#i-home"/></svg><span class="tip">项目</span><span class="sr">项目</span></button>
<button class="rail-btn" data-nav="flow"><svg><use href="#i-flow"/></svg><span class="tip">创作流程</span><span class="sr">创作流程</span></button>
<button class="rail-btn" data-nav="desk" aria-current="page"><svg><use href="#i-spark"/></svg><span class="tip">生成台(生图 + 生视频)</span><span class="sr">生成台</span></button>
<button class="rail-btn" data-nav="tasks"><svg><use href="#i-list"/></svg><span class="tip">全部任务</span><span class="sr">全部任务</span></button>
<button class="rail-btn" data-nav="agents"><svg><use href="#i-agent"/></svg><span class="tip">智能体</span><span class="sr">智能体</span></button>
<div class="spacer"></div>
<button class="rail-btn" data-nav="connections"><svg><use href="#i-link"/></svg><span class="tip">ComfyUI 连接与工作流库</span><span class="sr">连接</span></button>
<button class="rail-btn" data-nav="settings"><svg><use href="#i-gear"/></svg><span class="tip">模型与设置</span><span class="sr">设置</span></button>
</nav>
<div class="main">
<header class="topbar">
<div class="crumb">
<h1 id="page-title">生成台</h1>
<button class="capsule" id="scope-btn" aria-haspopup="menu"><span id="scope-label">全部来源</span><svg width="12" height="12"><use href="#i-down"/></svg></button>
</div>
<div class="grow"></div>
<span class="proto-flag hide-sm">隔离原型 · 不连后端</span>
<label class="switch hide-sm"><input type="checkbox" id="reduce-toggle">减少动态</label>
<button class="capsule search-btn" id="cmd-btn" title="Ctrl/⌘ + K"><svg width="14" height="14"><use href="#i-search"/></svg><span class="lbl">搜索工作流、项目、任务</span><span class="kbd">Ctrl K</span></button>
<button class="capsule" id="tray-btn" aria-haspopup="dialog"><span class="dot" id="tray-dot"></span><span id="tray-label">队列空闲</span></button>
<button class="capsule hide-sm" id="conn-btn" title="生成请求由工作台服务器发往该 ComfyUI"><span class="dot"></span>本机 ComfyUI-4080 · 22 ms</button>
</header>
<!-- 生成台 -->
<section class="view desk on" id="view-desk" aria-label="生成台">
<div class="desk-center">
<div class="context-bar" id="context-bar">
<button class="btn sm ghost" id="ctx-back"><svg><use href="#i-back"/></svg>返回镜头脚本</button>
<span>来自 <b>《雨夜便利店》· 镜头 S1</b>,生成结果会回填到该镜头</span>
</div>
<div class="filters">
<div class="seg" role="group" aria-label="按类型筛选">
<button data-filter="all" aria-pressed="true">全部</button>
<button data-filter="image" aria-pressed="false">图片</button>
<button data-filter="video" aria-pressed="false">视频</button>
<button data-filter="failed" aria-pressed="false">失败</button>
</div>
<span class="count" id="feed-count"></span>
</div>
<div class="feed" id="feed" role="listbox" aria-label="生成记录(↑↓ 切换)" tabindex="0"></div>
<div class="composer-wrap">
<div class="composer" id="composer">
<div class="slots" id="slots"></div>
<textarea class="prompt" id="prompt" rows="2" placeholder="描述想要的画面…(Ctrl/⌘ + Enter 生成,/ 快速聚焦)"></textarea>
<div class="composer-foot">
<button class="chip wf" id="wf-chip" aria-haspopup="listbox"><svg><use href="#i-flow"/></svg><span class="lbl" id="wf-chip-label"></span><svg><use href="#i-down"/></svg></button>
<span id="common-chips" style="display:contents"></span>
<button class="chip opt-chip" id="params-chip"><svg><use href="#i-sliders"/></svg><span id="params-chip-label">全部参数</span></button>
<div class="submit-group">
<button class="why" id="why" hidden></button>
<button class="btn primary gen-btn" id="gen-btn">生成</button>
</div>
</div>
</div>
</div>
</div>
<aside class="inspector" id="inspector" aria-label="检视区">
<div class="insp-tabs">
<div class="seg" role="tablist">
<button data-tab="preview" aria-pressed="true">结果</button>
<button data-tab="params" aria-pressed="false">参数</button>
</div>
<div class="grow" style="flex:1"></div>
<span class="muted" style="font-size:11px" id="insp-hint">↑ ↓ 切换 · 空格播放</span>
<button class="btn sm ghost insp-close" id="insp-close" style="display:none" aria-label="关闭"><svg><use href="#i-x"/></svg></button>
</div>
<div class="insp-body" id="insp-preview"></div>
<div class="insp-body" id="insp-params" hidden></div>
</aside>
</section>
<!-- 项目 -->
<section class="view page" id="view-projects" aria-label="项目"></section>
<!-- 创作流程 -->
<section class="view page" id="view-flow" aria-label="创作流程"></section>
<!-- 其他页占位 -->
<section class="view page placeholder" id="view-other"></section>
<nav class="tabbar" aria-label="主导航(窄屏)">
<button data-nav="projects"><svg><use href="#i-home"/></svg>项目</button>
<button data-nav="flow"><svg><use href="#i-flow"/></svg>创作</button>
<button data-nav="desk" aria-current="page"><svg><use href="#i-spark"/></svg>生成</button>
<button data-nav="more"><svg><use href="#i-list"/></svg>更多</button>
</nav>
</div>
</div>
<!-- 工作流面板 -->
<div class="pop" id="wf-pop" role="dialog" aria-label="选择工作流">
<div class="pop-search"><svg width="16" height="16"><use href="#i-search"/></svg><input id="wf-search" placeholder="搜索工作流,或输入用途:图生视频、参考图…" autocomplete="off"></div>
<div class="pop-list" id="wf-list" role="listbox"></div>
<div class="pop-foot">
<button class="btn sm" id="import-open"><svg><use href="#i-upload"/></svg>导入 ComfyUI 工作流 JSON…</button>
<span class="hint"><span class="kbd">↑↓</span>选择 <span class="kbd">Enter</span>使用 <span class="kbd">Esc</span>关闭</span>
</div>
</div>
<!-- 通用小菜单 -->
<div class="pop menu" id="menu-pop" role="menu"><div class="pop-list" id="menu-list"></div></div>
<!-- 任务托盘 -->
<div class="pop tray" id="tray-pop" role="dialog" aria-label="任务托盘"><div class="pop-list" id="tray-list"></div></div>
<!-- 导入抽屉 -->
<div class="scrim" id="scrim"></div>
<aside class="drawer" id="drawer" role="dialog" aria-modal="true" aria-labelledby="drawer-title">
<div class="drawer-head">
<h2 id="drawer-title">导入 ComfyUI 工作流</h2>
<button class="btn sm ghost" id="drawer-close" aria-label="关闭"><svg><use href="#i-x"/></svg></button>
</div>
<div class="drawer-body" id="drawer-body"></div>
<div class="drawer-foot" id="drawer-foot"></div>
</aside>
<input type="file" id="file-input" accept="image/png,image/jpeg,image/webp" multiple hidden>
<input type="file" id="json-input" accept=".json,application/json" hidden>
<div class="toasts" id="toasts" aria-live="polite"></div>
<script src="app.js"></script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 865 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

+93
View File
@@ -0,0 +1,93 @@
# 影工坊整站方案 · 施工员版「流水台」
> 一张桌面走完「选工作流 → 放素材写提示词 → 生成 → 挑结果」,不跳页、不重复找历史。
> 隔离原型:本目录 `index.html`(双击即可在 Chrome / Edge 打开,不连后端,数据取自测试站真实工作流与任务记录)。
## 一、和已有方案的区别
| 方案 | 布局 | 交互方式 |
|---|---|---|
| 旧「纸上制片厂」「信号控制台」 | 同一副骨架:左侧文字导航 + 卡片网格 + 三栏表单 | 只换配色 |
| 美术师「放映厅」 | 作品全幅居中的剧场播放器,控件退到边缘 | 以看片挑片为主 |
| **施工员「流水台」** | **60px 图标轨 + 中间记录流 + 底部常驻输入台 + 右侧检视区** | **像对话一样一条条往下生成;工作流决定输入槽;结果就地出现、就地切换** |
「流水台」主要改的是结构和手感,配色 Token 可以单独替换。白栖知如果更喜欢「放映厅」的色调,可以把「放映厅」的颜色套到「流水台」的结构上。原型当前用的是暖石墨底色,只有主按钮、选中项和「完成」三处用青柠色。
## 二、现状走查(测试站 192.168.200.15:8080,1.5.8)
| # | 现状 | 建议 | 理由 |
|---|---|---|---|
| 1 | 390 宽整站只显示「手机端暂不适配」 | 窄屏改为底部标签栏;输入台收起时只占一行,点开后升成底部抽屉;点结果进入全屏检视 | 主卡验收要求覆盖窄屏 |
| 2 | 「项目 / 创作工作台」两个入口,还要多经一个选择页;生图、生视频、生成任务是三个页面,各有一份历史 | 合并成一个「生成台」,页面形态由所选工作流的用途决定;任务页就是生成台的「全部来源」视图,右上角托盘随时看进度;`/image` `/video` 保留为预选入口 | 少跳页,历史只保留一份 |
| 3 | 生图页左栏被 8 行红色错误占满,输入图和提示词被挤到首屏以下;1024 宽时「开始生成」压住上传区 | 错误收进工作流选择器的状态标签和检视区「参数」页,输入台只留一行「工作流不可用 · 查看原因」 | 高频操作区不让异常信息占满 |
| 4 | 中栏「最近结果」和右栏「历史」是两套列表;视频历史只有缩略图,看不到提示词和状态 | 只保留一条记录流,每条带输入缩略图、提示词、状态和产物 | 一眼能看出哪组参数出了哪个结果 |
| 5 | 「没有进行中的任务」横幅和具体任务分在两处,提交后反馈的位置不固定 | 点「生成」后,记录流底部立即出现「排队」记录;同一位置依次显示进度条和阶段(如「采样 2/4」),完成后换成产物 | 反馈出现在视线所在的位置 |
| 6 | 上传区是一个大虚线框,9 张参考图会占满左栏;没有「上传中」状态,非法文件的报错位置不明确 | 改成 58px 小槽位,显示「已选 n / 9」和序号,上传中加遮罩,错误提示放在槽位下方;整个输入台都能拖入 | 放满素材后仍看得到提示词和按钮 |
| 7 | 点选历史后播放器直接替换,不能用键盘切换 | 点选时 150ms 淡入;↑ ↓ / J K 即时切换,不加动画;空格播放 | 高频操作不加动画(Emil 规范) |
| 8 | 每次删除都弹确认框 | 单条记录删除后立即隐藏,并提供 5 秒撤销,窗口结束后才真正调用删除接口;删项目、删工作流等大操作仍然弹确认 | 撤销比确认更快,也更不容易误删 |
| 9 | `Qwen_image_2.1_00003.png` 在服务器上已不存在,结果区和任务页显示浏览器裂图 | 显示明确的「文件缺失」状态,并提供「用相同参数重做 / 移除记录」 | 裂图会让人以为系统坏了 |
| 10 | 侧栏常驻红色「恒源云 连接失败」,但生图实际走的是已连通的「本机 ComfyUI-4080」;默认连接恰好是连不上的那台 | 顶栏和输入台只显示「本次生成要用的连接」,可以切换;连接不通时,生成按钮旁直接写原因 | 避免让人误以为不能生成 |
| 11 | 「minimaxh3-文生图加速版」实际被判定为文生视频 | 选择器按用途分组,并显示输入槽摘要(仅提示词 / 首帧 ×1 / 参考图 1–9 张) | 名称是用户起的,用途以 JSON 为准 |
| 12 | 8 个参数全部平铺 | 比例、时长、种子做成输入台上的芯片,其余参数折叠到检视区;每项标注「原值」,改过的高亮并计数 | 多数时候只改提示词和素材 |
| 13 | 失败记录把整段英文 HTTP 400 原文铺开 | 先给一行中文结论(如「连接上缺 3 个模型文件」),详情可展开;重试前先提示仍缺模型 | 可读,也不丢失信息 |
| 14 | 创作流程里的生成和独立生视频是两套界面 | 「生成本镜视频」打开生成台,并带上下文条(「来自《雨夜便利店》· 镜头 S1,结果回填」)和一键返回 | 同一套输入台,只需学一次 |
| 15 | 150px 文字侧栏共 9 项 | 60px 图标轨(悬停显示名称)加 Ctrl K 全局搜索 | 把宽度让给作品。代价是新用户第一次需要悬停识别图标 |
## 三、结构与操作方式
- **桌面 ≥1180**:左边 60px 图标轨;顶栏放标题、范围胶囊(全部来源 / 独立创作 / 某项目)、Ctrl K、任务托盘和本次连接;中间记录流按时间从上到下,最新一条在底部,紧贴输入台;右侧 420px 检视区分「结果 / 参数」两个页签。
- **中屏 761–1179**:检视区改为右侧浮层,点结果时滑入;其余结构不变。
- **窄屏 ≤760**:底部标签栏(项目 / 创作 / 生成 / 更多);输入台收起时只有一行,聚焦后升成底部抽屉;工作流面板改为底部弹层;检视区全屏显示,可关闭返回。
- **工作流选择**:点输入台上的工作流芯片,面板从芯片处弹出,按五类用途分组,每行显示输入槽摘要、绑定连接和状态(可用 / 未试运行 / 上次失败 / 不可用)。支持输入过滤、↑↓ 选择、Enter 使用,底部是「导入 ComfyUI 工作流 JSON…」。
- **导入**:右侧抽屉。粘贴、拖入或选择文件后自动检查,依次是:1 文件结构 → 2 用途与输入槽(不确定时让用户选)→ 3 对照连接上的节点与模型 → 4 可选试运行(只有拿到可下载、类型正确的产物才算通过)。保存后自动选中,输入台立刻按这份 JSON 显示输入槽。
- **输入槽只随 JSON 出现**:文生图 / 文生视频没有图片槽;图生图显示「输入图 ×1」;图生视频显示「首帧图 ×1」;参考生视频显示「参考图 1–9 张」。原型不画参考视频 / 音频入口,因为当前三份真实 JSON 没有这类连线。切换工作流时已放入的图片会保留,按新槽位的上限截断。
- **结果切换**:点记录会在检视区淡入;键盘 ↑ ↓ 即时切换;「复用」把工作流、素材和参数放回输入台;图片结果可以「送入当前图片槽」。
## 四、动效(按 emil-skills `animate` 与 `review-animations/STANDARDS` 核对)
| 场景 | 频率 | 做法 | 参数 |
|---|---|---|---|
| 按钮 / 芯片按下 | 高 | `scale(0.97)` | 120ms · `cubic-bezier(0.23,1,0.32,1)` |
| 点芯片打开工作流面板 | 中 | 从芯片方向 `scale(0.96)`→1,同时淡入 | 180ms · 同上 |
| Ctrl K 打开面板 / ↑↓ 切换结果 | 高·键盘 | **不做动画** | 0 |
| 导入抽屉 / 中屏检视区 | 偶尔 | `translateX(100%)`→0,用 transition,中途可反向 | 280ms · `cubic-bezier(0.32,0.72,0,1)` |
| 提交后新记录出现 | 每次 | 淡入 + 上移 8px(`@starting-style`) | 220ms · ease-out |
| 进度条 | 持续 | `transform: scaleX()` | 400ms · linear |
| 完成后缩略图替换 / 点选切换结果 | 每次 | 透明度交叉淡入 | 150ms · ease |
| 删除记录 | 偶尔 | 左移 12px 并淡出,Toast 提供撤销 | 200ms / 5 秒撤销窗口 |
| Toast | 偶尔 | 从下方进出,用 transition 不用 keyframes,可被打断 | 220ms |
| 导入检查结果 | 偶尔 | 逐条出现,间隔 60ms,不阻塞操作 | 200ms |
- 只动 `transform` 和 `opacity`;悬停效果只在 `(hover: hover) and (pointer: fine)` 下生效。
- 减少动态效果:系统开启 `prefers-reduced-motion` 时自动生效,原型顶栏也有手动开关。开启后去掉所有位移,只保留不超过 120ms 的透明度变化。
- 全部动效用 CSS transition 实现,**不引入新依赖**。
**性能风险与代价**:① 记录流可能有上百条视频。缩略图用封面图,检视区只挂一个 `<video preload="metadata">`;超过约 200 条时要做分页或虚拟列表(中等工作量)。② SSE 进度只更新对应那一条记录,不重渲染整个列表。③ `@starting-style` 需要 Chrome 117+ / Safari 17.5+,更旧的浏览器没有入场动画,功能不受影响。④ 撤销删除需要延迟 5 秒才发送删除请求,页面关闭时用 `pagehide` + `keepalive` 补发;后端不用改。代价是多个标签页之间会短暂不一致。⑤ 不做大面积 `backdrop-filter` 模糊。
## 五、能力边界
原型只画测试站已有的能力:ComfyUI 工作流(本机 / 局域网 / 可达云端地址)、五类用途识别、导入检查与试运行、参考图最多 9 张、删除、点选播放、失败重试。原型里**没有** gpt-image2、nano-banana、即梦、可灵等云端媒体入口。「Qwen Image 2.1 图片编辑(用户提供)」按测试站真实状态标为不可用,列出了 3 个真实报错。原型中新提交任务的结果是「演示产物」(取自测试站历史结果,页面上有标注),进度和耗时都是演示加速,不代表真实生成速度。
## 六、改造清单(calliope-web)
| 文件 / 组件 | 改动 |
|---|---|
| `src/routes/app.css`、`tailwind.config.js` | 设计 Token 统一来源:颜色、圆角、动效曲线与时长的 CSS 变量;清理组件内硬编码色值 |
| `shell/AppShell.svelte`、`NavRail.svelte`、`AppHeader.svelte` | 图标轨 + 顶栏(范围胶囊、Ctrl K、任务托盘、本次连接);窄屏底部标签栏;去掉「手机端暂不适配」拦截 |
| `studio/StudioGenerate.svelte`(2763 行) | 拆成 `Composer`、`WorkflowPicker`、`SlotTray`(复用 `MediaSlot` / `RefImageGrid`)、`TakeFeed` / `TakeCard`、`Inspector`;表单逻辑复用 `ComfyDynamicForm.svelte`,只改展示方式(常用芯片 + 高级折叠) |
| `routes/image`、`routes/video`、`routes/tasks` | 三页合并为生成台的预设入口或视图;托盘复用 `JobRow.svelte` / `ActivityPanel.svelte` |
| `routes/connections`、`WorkflowTestDialog.svelte` | 导入改为右侧抽屉,四步检查逐条显示;沿用现有 `/api/workflows/analyze`、`check`、`test` 接口,不改后端 |
| `ToastHost.svelte`、`toast.ts` | Toast 支持操作按钮(撤销);`ConfirmDialog.svelte` 只留给不可逆的大操作 |
| `routes/+page.svelte`、`workbench/[id]`、`StageStepper.svelte` | 「继续上次」主卡 + 五段轨道;「生成本镜视频」带上下文跳到生成台,结果回填 |
| `SafeMedia.svelte`、`ImageLightbox.svelte` | 统一「文件缺失」状态 |
| i18n 七个语种 | 补齐新增 key |
## 七、粗略施工顺序(约 8–9 人日,拍板后再细化)
1. Token 与动效变量(0.5 天)
2. 壳层:图标轨、顶栏、托盘、窄屏底栏(1 天)
3. 生成台:输入台、工作流选择器、输入槽(2 天)
4. 记录流、检视区、撤销删除、文件缺失状态(1.5 天)
5. 导入抽屉四步检查(1 天)
6. 项目和创作流程接入生成台上下文(1 天)
7. 其余页换成统一组件,窄屏走查,i18n,交总工审核(1.5 天)