@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
/* ------------------------------------------------------------------
* 无彩灰阶 design tokens — HEL-680 S1(白栖知 theme-1「暗房放大机」
* × HEL-679 已确认融合样稿)。Single source of truth for the whole
* app: pages and components reference these variables only — no
* hardcoded colors, no ad-hoc overrides. 界面只有暖调黑白灰,作品是
* 屏幕上唯一成片的颜色;状态色仅按主题卡的两处有限例外(琥珀
* #A3915F、红 #B3564A)使用,不放大成全站主色。选中=取景框角线,
* 完成=「定影」,结果=相纸白边。
* ------------------------------------------------------------------ */
/* 底色:显影灰阶四阶,逐层浮起(theme-1:#212120 底 / #2C2C2A 面板) */
--bg: #212120;
--bg-2: #262625;
--bg-3: #2c2c2a;
--bg-4: #383835;
--line: #313130;
--line-2: #454542;
--page-glow: radial-gradient(1200px 500px at 70% -10%, rgba(245, 244, 238, 0.035), transparent 60%);
--float-bg: linear-gradient(180deg, #2e2e2c, var(--bg-2));
--overlay: rgba(18, 18, 17, 0.62);
--media-scrim: rgba(18, 18, 17, 0.66);
--on-media: #fff;
--on-media-line: rgba(255, 255, 255, 0.05);
--composer-bg: linear-gradient(180deg, #2a2a28, var(--bg-2));
--composer-focus: 0 0 0 1px rgba(245, 244, 238, 0.12), 0 8px 28px rgba(0, 0, 0, 0.4);
/* 相纸白(重点色):主按钮、当前选中、改过的参数、聚焦框、Toast 动作
(theme-1 #F5F4EE 重点) */
--accent: #f5f4ee;
--accent-ink: #212120;
--accent-soft: rgba(245, 244, 238, 0.08);
--accent-hi: #ffffff;
--accent-lo: #ddddd7;
--accent-glow: rgba(240, 239, 233, 0.2);
--accent-line: rgba(245, 244, 238, 0.55);
--accent-grad: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
--accent-grad-hover: linear-gradient(180deg, #ffffff, #e8e7df);
--accent-ring: 0 0 0 1px rgba(245, 244, 238, 0.7), 0 0 22px var(--accent-glow);
--btn-glow: 0 2px 10px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
--btn-glow-hover: 0 3px 14px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.65);
--accent-wash: linear-gradient(180deg, rgba(245, 244, 238, 0.05), transparent 40%);
--sel-shadow: 0 0 0 1px rgba(245, 244, 238, 0.14), 0 6px 24px rgba(0, 0, 0, 0.35);
/* 信号色:完成=显影亮灰(「定影」,配图标/文字双编码),进行中=灰阶
+动效;红/琥珀只按 theme-1 卡片的有限例外使用(红=失败/危险
#B3564A 系,琥珀=待确认/文件缺失 #A3915F) */
--ok: #ddddd7;
--ok-soft: rgba(221, 221, 215, 0.1);
--run: #b8b6ac;
--run-soft: rgba(184, 182, 172, 0.12);
--run-grad: linear-gradient(90deg, #8f8e85, #c6c5c0);
--err: #d07a6b;
--err-solid: #b3564a;
--err-soft: rgba(181, 86, 74, 0.15);
--err-line: rgba(208, 122, 107, 0.55);
--warn: #a3915f;
--warn-soft: rgba(163, 145, 95, 0.13);
/* 文字与字体;--text-3 是深底可读性下限(≥4.5:1 on --bg-3),不得再暗 */
--text: #f0efe9;
--text-2: #a8a69c;
--text-3: #94938c;
--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);
/* 壳层尺寸 (§二):60px 图标轨、顶栏、≤760px 底部标签栏 */
--rail-w: 60px;
--topbar-h: 52px;
--tabbar-h: 56px;
/* 专属符号 (§1.7):齿孔只在记录流/输入台分隔带,光晕只在播放舞台 */
--sprocket: radial-gradient(circle 2px, var(--line-2) 98%, transparent);
--stage-bg:
radial-gradient(60% 45% at 50% 38%, rgba(245, 244, 238, 0.045), transparent 70%),
radial-gradient(80% 70% at 50% 50%, #232322, #171716);
/* 取景框角线与相纸白边 (HEL-680):内容级选中/结果呈现的统一语言 */
--frame-w: 2px;
--frame-arm: 12px;
--frame-inset: -4px;
--paper-w: 4px;
/* 动效 (§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-step grayscale (HEL-680 无彩化):1–2 亮阶配深字,
3–5 暗阶配浅字;仍是五个身份位,只是从彩色渐变改为显影灰阶。 */
--avatar-1: linear-gradient(135deg, #e8e7df, #cdcbc4);
--avatar-2: linear-gradient(135deg, #b5b3aa, #9c9a91);
--avatar-3: linear-gradient(135deg, #6b6a66, #55544f);
--avatar-4: linear-gradient(135deg, #55544f, #424140);
--avatar-5: linear-gradient(135deg, #424140, #2e2e2c);
/* ------------------------------------------------------------------
* 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);
--bg-primary: var(--bg);
--bg-surface: var(--bg-2);
--bg-elevated: var(--bg-3);
--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);
/* Omni Composer pill tokens */
--pill-bg: var(--bg-3);
--pill-border: var(--line-2);
--pill-radius: var(--r-pill);
--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;
}
}
body {
background: var(--page-glow), var(--bg);
color: var(--text);
font-family: var(--font);
font-size: var(--fs-body);
line-height: var(--lh-body);
-webkit-font-smoothing: antialiased;
margin: 0;
min-height: 100vh;
}
.a-darkroom {
background: var(--page-glow), var(--bg);
color: var(--text);
font-family: var(--font);
font-size: var(--fs-body);
line-height: var(--lh-body);
}
code,
.mono,
.kh {
font-family: var(--mono);
font-variant-numeric: tabular-nums;
}
/* ------------------------------------------------------------------
* Shared controls (§四 组件状态通用规范). 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.
* ------------------------------------------------------------------ */
.a-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
min-height: 34px;
padding: 0 var(--sp-6);
border-radius: var(--r-md);
border: 1px solid transparent;
font-family: inherit;
font-size: var(--fs-body);
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);
}
.a-btn.sm {
min-height: 28px;
padding: 0 var(--sp-4);
font-size: var(--fs-aux);
border-radius: var(--r-sm);
}
.a-btn.xs {
min-height: 24px;
padding: 0 var(--sp-3);
font-size: var(--fs-mini);
border-radius: var(--r-sm);
}
.a-btn.block {
width: 100%;
}
.a-btn.primary {
background: var(--accent-grad);
color: var(--accent-ink);
box-shadow: var(--btn-glow);
}
.a-btn.secondary {
background: var(--bg-3);
border-color: var(--line);
color: var(--text);
}
.a-btn.ghost {
background: transparent;
color: var(--text-2);
}
/* 危险两级制:列表行内只用描边红 danger;实心红 danger-solid 只在确认弹层内。 */
.a-btn.danger {
background: transparent;
border-color: var(--err-line);
color: var(--err);
}
.a-btn.danger-solid {
background: var(--err-solid);
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:active:not(:disabled) {
transform: scale(var(--press-scale));
}
/* 禁用必须在旁边给出中文原因(§1.2),由调用方渲染。 */
.a-btn:disabled,
.a-btn[aria-disabled='true'] {
opacity: 0.45;
box-shadow: none;
cursor: not-allowed;
}
/* Top-bar status capsule (queue / connection / save state) — §二 顶栏胶囊. */
.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);
color: var(--text-2);
font-size: var(--fs-aux);
white-space: nowrap;
box-sizing: border-box;
}
.status-chip.accent {
background: var(--accent-soft);
border-color: var(--accent-line);
color: var(--accent);
}
a.status-chip,
button.status-chip {
font-family: inherit;
text-decoration: none;
cursor: pointer;
transition:
border-color var(--d-state) ease,
color var(--d-state) ease,
transform var(--d-press) var(--ease-out);
}
a.status-chip:active,
button.status-chip:active {
transform: scale(var(--press-scale));
}
@media (hover: hover) and (pointer: fine) {
a.status-chip:hover,
button.status-chip:hover {
border-color: var(--text-3);
color: var(--text);
}
}
/* Keyboard shortcut hint, e.g. the Ctrl K badge on the search capsule. */
.a-kbd {
font: var(--fs-mini) var(--mono);
color: var(--text-3);
border: 1px solid var(--line-2);
border-bottom-width: 2px;
border-radius: var(--r-sm);
padding: 0 var(--sp-2);
line-height: 16px;
white-space: nowrap;
}
.status-chip-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
background: currentColor;
}
.status-chip-dot.ok {
background: var(--ok);
}
.status-chip-dot.run {
background: var(--run);
}
.status-chip-dot.fail {
background: var(--err);
}
.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):
.
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;
}
/* Segmented control (§四 分段): the pressed option is lifted, never gold. */
.a-seg {
display: inline-flex;
padding: 2px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-2);
}
.a-seg > button {
height: 26px;
padding: 0 var(--sp-4);
border: 0;
border-radius: 8px;
background: transparent;
color: var(--text-3);
font-family: inherit;
font-size: var(--fs-body-sm);
white-space: nowrap;
cursor: pointer;
transition:
color var(--d-state) ease,
background-color var(--d-state) ease;
}
.a-seg > button[aria-pressed='true'] {
background: var(--bg-4);
color: var(--text);
box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (hover: hover) and (pointer: fine) {
.a-seg > button:hover {
color: var(--text);
}
}
/* Composer chips (§3.3 输入台底行): workflow / connection / parameter chips.
Gold (`changed`) only marks a parameter that differs from the workflow value. */
.a-chip {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
height: 28px;
max-width: 280px;
padding: 0 var(--sp-4);
border: 0;
border-radius: var(--r-pill);
background: var(--bg-3);
color: var(--text-2);
font-family: inherit;
font-size: var(--fs-aux);
white-space: nowrap;
text-decoration: none;
cursor: pointer;
box-sizing: border-box;
transition:
background-color var(--d-state) ease,
color var(--d-state) ease,
transform var(--d-press) var(--ease-out);
}
.a-chip:active {
transform: scale(var(--press-scale));
}
.a-chip > .lbl {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.a-chip.wf {
background: var(--bg-4);
color: var(--text);
font-weight: 500;
box-shadow: inset 0 0 0 1px var(--line-2);
}
.a-chip.changed {
color: var(--accent);
}
/* Selected filter chip (§3.5 筛选芯片组): 当前选中 = 取景框角线缩影 +
相纸白文字 + accent-soft 底 (HEL-680) */
.a-chip.sel {
position: relative;
background: var(--accent-soft);
color: var(--accent);
}
.a-chip.sel::after {
content: '';
position: absolute;
inset: 2px;
pointer-events: none;
background-image:
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0);
background-position:
left top,
left top,
right top,
right top,
left bottom,
left bottom,
right bottom,
right bottom;
background-size:
6px 1.5px,
1.5px 6px,
6px 1.5px,
1.5px 6px,
6px 1.5px,
1.5px 6px,
6px 1.5px,
1.5px 6px;
background-repeat: no-repeat;
}
.a-chip.warn {
color: var(--warn);
}
.a-chip.err {
color: var(--err);
}
@media (hover: hover) and (pointer: fine) {
.a-chip:hover {
background: var(--bg-4);
color: var(--text);
}
.a-chip.changed:hover {
color: var(--accent);
}
}
/* Composer input slots (§3.3 输入槽): 58px tiles — empty dashed / drag gold /
uploading ring / filled with hover ✕. MediaSlot and RefImageGrid render these. */
.a-slot {
display: flex;
flex-direction: column;
gap: var(--sp-2);
min-width: 0;
}
.a-slot-label {
display: flex;
align-items: center;
gap: var(--sp-2);
min-height: 20px;
font-size: var(--fs-mini);
color: var(--text-3);
white-space: nowrap;
}
.a-slot-label .req {
color: var(--warn);
}
.a-slot-row {
display: flex;
flex-wrap: wrap;
gap: var(--sp-2);
}
.a-slot-hint {
font-size: var(--fs-mini);
color: var(--text-3);
}
.a-slot-hint.err {
color: var(--err);
}
.a-tile {
position: relative;
flex: none;
display: grid;
place-items: center;
width: 58px;
height: 58px;
padding: 0;
border: 1px solid var(--line-2);
border-radius: var(--r-md);
background: var(--bg-3);
color: var(--text-3);
font-family: inherit;
box-sizing: border-box;
transition:
border-color var(--d-state) ease,
background-color var(--d-state) ease,
color var(--d-state) ease,
transform var(--d-press) var(--ease-out);
}
button.a-tile {
cursor: pointer;
}
button.a-tile:disabled {
cursor: default;
}
.a-tile.add {
border-style: dashed;
}
.a-tile.add:active:not(:disabled) {
transform: scale(var(--press-scale));
}
.a-tile.drag {
border-color: var(--accent);
background-color: var(--accent-soft);
color: var(--accent);
}
.a-tile.need {
border-color: var(--warn);
}
.a-tile.bad {
border-color: var(--err);
color: var(--err);
}
.a-tile-hit {
position: absolute;
inset: 0;
display: grid;
place-items: center;
padding: 0;
border: 0;
border-radius: inherit;
overflow: hidden;
background: transparent;
color: inherit;
cursor: pointer;
}
.a-tile-hit img,
.a-tile-hit video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Uploads have no byte progress (fetch), so the ring spins instead of filling. */
.a-tile-ring {
position: absolute;
inset: 0;
display: grid;
place-items: center;
border-radius: inherit;
background: var(--media-scrim);
pointer-events: none;
}
.a-tile-ring > i {
width: 26px;
height: 26px;
border-radius: 50%;
background: conic-gradient(var(--accent) 0.3turn, var(--line-2) 0);
-webkit-mask: radial-gradient(circle, transparent 9.5px, #000 10.5px);
mask: radial-gradient(circle, transparent 9.5px, #000 10.5px);
animation: a-tile-spin 900ms linear infinite;
}
@keyframes a-tile-spin {
to {
transform: rotate(1turn);
}
}
:root[data-reduce='1'] .a-tile-ring > i {
animation: none;
}
.a-tile-x {
position: absolute;
top: -6px;
right: -6px;
z-index: 1;
display: grid;
place-items: center;
width: 18px;
height: 18px;
padding: 0;
border: 1px solid var(--line-2);
border-radius: 50%;
background: var(--bg-4);
color: var(--text-2);
cursor: pointer;
opacity: 0;
transition:
opacity var(--d-state) ease,
color var(--d-state) ease;
}
.a-tile:focus-within .a-tile-x {
opacity: 1;
}
.a-tile-idx {
position: absolute;
left: 3px;
top: 2px;
font: 10px var(--mono);
color: var(--on-media);
text-shadow: 0 1px 2px var(--bg);
pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.a-tile:hover .a-tile-x {
opacity: 1;
}
.a-tile-x:hover {
color: var(--err);
}
button.a-tile.add:hover:not(:disabled) {
border-color: var(--text-3);
color: var(--text);
}
}
@media (hover: none) {
.a-tile-x {
opacity: 1;
}
}
/* 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);
}
/* ------------------------------------------------------------------
* 取景框角线选中 (HEL-680):内容级选中态的唯一语言——四角短线取景,
* 不整框描边。挂在需要角线的元素上(元素自身可 overflow 可见;被
* overflow:hidden 裁切的容器改用 --frame-inset 正值画在内侧)。
* ------------------------------------------------------------------ */
.a-frame {
position: relative;
}
.a-frame::after {
content: '';
position: absolute;
inset: var(--frame-inset, -4px);
z-index: 3;
pointer-events: none;
background-image:
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0),
linear-gradient(var(--accent) 0 0);
background-position:
left top,
left top,
right top,
right top,
left bottom,
left bottom,
right bottom,
right bottom;
background-size:
var(--frame-arm, 12px) var(--frame-w, 2px),
var(--frame-w, 2px) var(--frame-arm, 12px),
var(--frame-arm, 12px) var(--frame-w, 2px),
var(--frame-w, 2px) var(--frame-arm, 12px),
var(--frame-arm, 12px) var(--frame-w, 2px),
var(--frame-w, 2px) var(--frame-arm, 12px),
var(--frame-arm, 12px) var(--frame-w, 2px),
var(--frame-w, 2px) var(--frame-arm, 12px);
background-repeat: no-repeat;
}
/* 相纸白边 (HEL-680):结果媒体外的相纸白框,底边略厚如手工相纸。
挂在承载 img/video 的媒体容器上;容器尺寸由调用方决定。 */
.a-photo {
background: var(--accent);
border: var(--paper-w, 4px) solid var(--accent);
border-bottom-width: calc(var(--paper-w, 4px) + 2px);
border-radius: 2px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
box-sizing: border-box;
}
/* 「定影」完成章 (HEL-680):已定影结果右上角的完成印记,随 jobst.done
文案走(中文=定影)。absolute 定位,挂在有媒体的结果容器内。 */
.a-fix {
position: absolute;
top: var(--sp-3);
right: var(--sp-3);
z-index: 2;
padding: 1px 6px;
border: 1px solid currentColor;
border-radius: 3px;
background: var(--media-scrim);
color: var(--ok);
font-size: var(--fs-mini);
font-weight: 700;
letter-spacing: 0.1em;
text-indent: 0.1em;
transform: rotate(-4deg);
pointer-events: none;
}
/* 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);
}
/* Rows inside pops, sheets and the Ctrl+K palette (§四.3 pop). Gold marks
only the current page / project; keyboard and hover highlight is neutral. */
.a-menu-group {
padding: var(--sp-4) var(--sp-4) var(--sp-1);
font-size: var(--fs-mini);
color: var(--text-3);
}
.a-menu-item {
display: flex;
align-items: center;
gap: var(--sp-3);
width: 100%;
min-height: 40px;
padding: var(--sp-3) var(--sp-4);
border: 0;
border-radius: var(--r-md);
background: transparent;
color: var(--text-2);
font-family: inherit;
font-size: var(--fs-body);
text-align: left;
text-decoration: none;
cursor: pointer;
box-sizing: border-box;
transition:
background-color var(--d-state) ease,
color var(--d-state) ease;
}
.a-menu-item.active,
.a-menu-item:focus-visible {
background: var(--bg-4);
color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
.a-menu-item:hover {
background: var(--bg-4);
color: var(--text);
}
}
.a-menu-item[aria-current='page'],
.a-menu-item[aria-current='true'] {
color: var(--accent);
}
.a-menu-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.a-menu-meta {
flex-shrink: 0;
font-size: var(--fs-mini);
color: var(--text-3);
white-space: nowrap;
}
/* Card / panel surface (§1.5:卡片不投影,用底色差分层). */
.a-panel {
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: var(--sp-7);
box-sizing: border-box;
}
.a-panel-title {
margin: 0;
font-size: var(--fs-section);
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);
color: var(--text-3);
}
.a-select,
.a-input,
.a-textarea,
.field-input,
.field-textarea,
.field-select {
box-sizing: border-box;
background: var(--bg-3);
border: 1px solid var(--line);
border-radius: var(--r-md);
color: var(--text);
font-family: inherit;
font-size: var(--fs-body-sm);
transition: border-color var(--d-state) ease;
}
.a-select {
padding: var(--sp-2) var(--sp-4);
cursor: pointer;
}
.a-input,
.field-input,
.field-select {
width: 100%;
padding: var(--sp-3) var(--sp-5);
}
.a-textarea,
.field-textarea {
width: 100%;
padding: var(--sp-4) var(--sp-5);
resize: vertical;
min-height: 96px;
line-height: var(--lh-body);
}
.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:focus,
.a-input:focus,
.a-textarea:focus,
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
outline: none;
border-color: var(--accent-line);
}
.a-input.invalid,
.a-textarea.invalid,
.field-input.invalid {
border-color: var(--err);
}
.a-select option.unavailable {
color: var(--text-3);
}
.field {
display: block;
margin-bottom: var(--sp-5);
}
.field-label {
display: block;
font-size: var(--fs-aux);
font-weight: 500;
color: var(--text-2);
margin-bottom: var(--sp-2);
}
.field-hint {
margin: var(--sp-2) 0 0;
font-size: var(--fs-aux);
color: var(--text-3);
}
.field-error {
margin: var(--sp-2) 0 0;
font-size: var(--fs-aux);
color: var(--err);
}
/* Dark theme scrollbars (Firefox + Chromium) */
* {
scrollbar-width: thin;
scrollbar-color: var(--bg-4) transparent;
}
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background: var(--bg-4);
border-radius: var(--r-pill);
border: 2px solid transparent;
background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
background: var(--text-3);
border: 2px solid transparent;
background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
background: transparent;
}
/* Global keyboard focus (§四.8): every natively focusable element gets the
gold ring. Component-scoped :focus-visible rules 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. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
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;
}