2026-05-18-19-06-50 构建网页端分割工作台
This commit is contained in:
@@ -1,29 +1,36 @@
|
||||
:root {
|
||||
--bg: #111412;
|
||||
--panel: #181d1b;
|
||||
--panel-2: #202622;
|
||||
--line: #344038;
|
||||
--text: #f0f5ef;
|
||||
--muted: #9aa89c;
|
||||
--bg: #0f1210;
|
||||
--panel: #171c19;
|
||||
--panel-2: #202720;
|
||||
--panel-3: #101411;
|
||||
--line: #334239;
|
||||
--line-soft: rgba(255, 255, 255, 0.08);
|
||||
--text: #edf5ee;
|
||||
--muted: #93a297;
|
||||
--faint: #66736a;
|
||||
--accent: #ffd166;
|
||||
--accent-2: #3dd6b5;
|
||||
--accent-2: #38d8b8;
|
||||
--danger: #ff6b6b;
|
||||
--shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
|
||||
--ok: #63e6be;
|
||||
--shadow: 0 28px 92px rgba(0, 0, 0, 0.38);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(61, 214, 181, 0.08), transparent 38%),
|
||||
radial-gradient(circle at 85% 8%, rgba(255, 209, 102, 0.12), transparent 28%),
|
||||
var(--bg);
|
||||
linear-gradient(135deg, rgba(56, 216, 184, 0.09), transparent 30%),
|
||||
linear-gradient(180deg, #121613 0%, var(--bg) 54%, #0a0c0b 100%);
|
||||
color: var(--text);
|
||||
font-family: "Aptos", "Segoe UI", sans-serif;
|
||||
font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
|
||||
}
|
||||
|
||||
button,
|
||||
@@ -32,117 +39,281 @@ select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.shell {
|
||||
width: min(1440px, calc(100vw - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 28px 0 42px;
|
||||
button {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.mast {
|
||||
.app-shell {
|
||||
width: min(1540px, calc(100vw - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 22px 0 36px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
min-height: 88px;
|
||||
display: flex;
|
||||
align-items: end;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
padding: 16px 0 24px;
|
||||
gap: 18px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.brand,
|
||||
.top-actions,
|
||||
.section-title,
|
||||
.field-head,
|
||||
.viewer-head,
|
||||
.results-toolbar,
|
||||
.card-top,
|
||||
.dialog-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border: 1px solid rgba(56, 216, 184, 0.55);
|
||||
background: #10211d;
|
||||
color: var(--accent-2);
|
||||
border-radius: 8px;
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 8px;
|
||||
margin: 0 0 6px;
|
||||
color: var(--accent-2);
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
h2,
|
||||
h3 {
|
||||
margin: 0;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(34px, 5vw, 68px);
|
||||
line-height: 0.92;
|
||||
max-width: 820px;
|
||||
font-size: clamp(24px, 3vw, 38px);
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 28px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.status,
|
||||
.download {
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(24, 29, 27, 0.75);
|
||||
background: rgba(23, 28, 25, 0.86);
|
||||
color: var(--muted);
|
||||
padding: 10px 14px;
|
||||
padding: 0 12px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.status.ok {
|
||||
color: var(--accent-2);
|
||||
border-color: rgba(61, 214, 181, 0.5);
|
||||
.pill.ok {
|
||||
color: var(--ok);
|
||||
border-color: rgba(99, 230, 190, 0.55);
|
||||
}
|
||||
|
||||
.status.bad {
|
||||
.pill.bad {
|
||||
color: var(--danger);
|
||||
border-color: rgba(255, 107, 107, 0.55);
|
||||
}
|
||||
|
||||
.workspace {
|
||||
.link-pill {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.workbench {
|
||||
display: grid;
|
||||
grid-template-columns: 360px 1fr;
|
||||
grid-template-columns: 390px 1fr;
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.control-panel,
|
||||
.results {
|
||||
background: rgba(24, 29, 27, 0.92);
|
||||
.viewer,
|
||||
.detail-dialog {
|
||||
background: rgba(23, 28, 25, 0.94);
|
||||
border: 1px solid var(--line);
|
||||
box-shadow: var(--shadow);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
position: sticky;
|
||||
top: 18px;
|
||||
top: 16px;
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
padding: 18px;
|
||||
gap: 14px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.panel-section {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--line-soft);
|
||||
border-radius: 8px;
|
||||
background: rgba(16, 20, 17, 0.62);
|
||||
}
|
||||
|
||||
.section-title span {
|
||||
color: var(--accent);
|
||||
font-weight: 950;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.section-title h2 {
|
||||
margin-right: auto;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.drop-zone {
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 8px;
|
||||
min-height: 170px;
|
||||
border: 1px dashed rgba(61, 214, 181, 0.55);
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(145deg, rgba(61, 214, 181, 0.08), rgba(255, 209, 102, 0.06));
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 18px;
|
||||
border: 1px dashed rgba(56, 216, 184, 0.58);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(56, 216, 184, 0.1), transparent 45%),
|
||||
rgba(32, 39, 32, 0.72);
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.drop-zone.is-dragging {
|
||||
border-color: var(--accent);
|
||||
background: rgba(255, 209, 102, 0.12);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.drop-zone input {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drop-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border: 1px solid rgba(255, 209, 102, 0.55);
|
||||
border-radius: 999px;
|
||||
color: var(--accent);
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.drop-title {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
font-size: 18px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.drop-subtitle {
|
||||
color: var(--muted);
|
||||
max-width: 280px;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.input-actions,
|
||||
.compact-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.ghost,
|
||||
.primary,
|
||||
.icon-button {
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ghost {
|
||||
min-height: 40px;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.ghost:hover,
|
||||
.method-option:hover,
|
||||
.result-card:hover {
|
||||
border-color: rgba(255, 209, 102, 0.62);
|
||||
}
|
||||
|
||||
.primary {
|
||||
min-height: 52px;
|
||||
border: 0;
|
||||
background: linear-gradient(90deg, var(--accent), #ffad5c);
|
||||
color: #17140d;
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.primary:disabled {
|
||||
cursor: wait;
|
||||
opacity: 0.65;
|
||||
filter: grayscale(0.45);
|
||||
}
|
||||
|
||||
.method-grid {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.method-option {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
padding: 11px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel-2);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.method-option.is-active {
|
||||
border-color: rgba(56, 216, 184, 0.78);
|
||||
background: #13231f;
|
||||
}
|
||||
|
||||
.method-option strong {
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.method-option span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.field {
|
||||
@@ -150,22 +321,17 @@ h2 {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.field-head,
|
||||
.results-head,
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
label {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
output {
|
||||
color: var(--accent);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="number"] {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
@@ -180,82 +346,177 @@ input[type="range"] {
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.compact-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.primary {
|
||||
min-height: 48px;
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.viewer {
|
||||
min-height: 720px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.viewer-head {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.job-meta {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(90deg, var(--accent), #ff9f5a);
|
||||
color: #17140d;
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.primary:disabled {
|
||||
cursor: wait;
|
||||
filter: grayscale(0.8);
|
||||
opacity: 0.65;
|
||||
.preview-stage {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 320px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
|
||||
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
|
||||
#080a09;
|
||||
background-size: 28px 28px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.results {
|
||||
min-height: 620px;
|
||||
padding: 18px;
|
||||
.preview-empty,
|
||||
.empty {
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
padding: 28px;
|
||||
}
|
||||
|
||||
.results-head {
|
||||
margin-bottom: 18px;
|
||||
#videoPreview,
|
||||
#imagePreview {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-height: 520px;
|
||||
object-fit: contain;
|
||||
background: #050605;
|
||||
}
|
||||
|
||||
.progress-wrap {
|
||||
margin-top: 14px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel-3);
|
||||
}
|
||||
|
||||
.progress-line {
|
||||
height: 8px;
|
||||
border-radius: 999px;
|
||||
background: #2a332d;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-line span {
|
||||
display: block;
|
||||
width: 12%;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--accent-2), var(--accent));
|
||||
animation: pulse-progress 1.4s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.progress-wrap p {
|
||||
margin: 8px 0 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@keyframes pulse-progress {
|
||||
from {
|
||||
width: 18%;
|
||||
}
|
||||
to {
|
||||
width: 92%;
|
||||
}
|
||||
}
|
||||
|
||||
.summary-strip {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1px;
|
||||
margin-top: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--line);
|
||||
}
|
||||
|
||||
.summary-strip div {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 12px;
|
||||
background: var(--panel-3);
|
||||
}
|
||||
|
||||
.summary-strip span,
|
||||
.results-toolbar span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.summary-strip strong {
|
||||
color: var(--text);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.results-toolbar {
|
||||
margin: 18px 0 12px;
|
||||
}
|
||||
|
||||
.empty {
|
||||
min-height: 500px;
|
||||
min-height: 180px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--muted);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: rgba(17, 20, 18, 0.55);
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
background: rgba(16, 20, 17, 0.62);
|
||||
}
|
||||
|
||||
.grid {
|
||||
.result-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 14px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.result-card {
|
||||
border: 1px solid var(--line);
|
||||
background: #121614;
|
||||
border-radius: 8px;
|
||||
background: #111512;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: border-color 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.result-card:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
padding: 12px;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.method {
|
||||
font-weight: 900;
|
||||
color: var(--accent);
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.frame-index {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.image-pair {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1px;
|
||||
background: var(--line);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
figure {
|
||||
@@ -277,19 +538,22 @@ figcaption {
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.metrics {
|
||||
.metrics,
|
||||
.detail-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
margin: 0;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.metrics div {
|
||||
.metrics div,
|
||||
.detail-metrics div {
|
||||
padding: 10px;
|
||||
border-right: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.metrics div:last-child {
|
||||
.metrics div:last-child,
|
||||
.detail-metrics div:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
@@ -301,20 +565,55 @@ dt {
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
font-weight: 850;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.shell {
|
||||
width: min(100vw - 20px, 720px);
|
||||
.detail-dialog {
|
||||
width: min(1120px, calc(100vw - 36px));
|
||||
color: var(--text);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.detail-dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.72);
|
||||
}
|
||||
|
||||
.dialog-head {
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--panel-2);
|
||||
font-size: 26px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.detail-images {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1px;
|
||||
background: var(--line);
|
||||
}
|
||||
|
||||
.detail-images img {
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.app-shell {
|
||||
width: min(100vw - 20px, 760px);
|
||||
}
|
||||
|
||||
.mast,
|
||||
.workspace {
|
||||
.topbar,
|
||||
.workbench {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
.workbench {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@@ -322,7 +621,13 @@ dd {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.status {
|
||||
justify-self: start;
|
||||
.top-actions {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.summary-strip,
|
||||
.detail-images {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user