Files
aigc-home/prototypes/hel-646-flow-desk/app.css
T
施工员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

543 lines
30 KiB
CSS

/* 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; }
}