大功告成

This commit is contained in:
xsl
2026-03-27 17:10:41 +08:00
parent 22a5f31847
commit f24de38e94
30 changed files with 2310 additions and 404 deletions
+181 -24
View File
@@ -1,32 +1,167 @@
body {
margin: 0;
font-family: sans-serif;
background: #0f1115;
font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
background:
radial-gradient(circle at top, rgba(42, 93, 255, 0.16), transparent 36%),
radial-gradient(circle at right, rgba(15, 173, 129, 0.12), transparent 28%),
linear-gradient(180deg, #091018 0%, #111827 46%, #0b1018 100%);
color: #f2f2f2;
}
.wrap {
max-width: 900px;
max-width: 1120px;
margin: 24px auto;
padding: 0 16px;
}
.video-box {
.stage-box {
width: 100%;
aspect-ratio: 16 / 9;
border: 1px solid #333;
border-radius: 10px;
background: #1a1f27;
border: 1px solid rgba(116, 139, 166, 0.22);
border-radius: 24px;
background: linear-gradient(180deg, rgba(18, 25, 36, 0.94), rgba(12, 18, 28, 0.96));
overflow: hidden;
padding: 18px;
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
video {
.stage-copy {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.stage-copy strong {
font-size: 20px;
letter-spacing: 0.01em;
}
.stage-copy span {
font-size: 13px;
color: #7dd3fc;
}
.stage-toolbar {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto auto;
gap: 12px;
align-items: center;
}
.stage-toolbar input[type="text"] {
min-width: 0;
background: rgba(10, 15, 24, 0.78);
color: #e5eef8;
border: 1px solid rgba(112, 146, 190, 0.3);
border-radius: 12px;
padding: 10px 12px;
}
.stage-toolbar input[type="file"] {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.file-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
border-radius: 999px;
border: 1px solid rgba(102, 199, 255, 0.28);
background: rgba(9, 60, 86, 0.32);
color: #d7f2ff;
padding: 0 16px;
cursor: pointer;
white-space: nowrap;
}
.canvas-shell {
position: relative;
aspect-ratio: 16 / 9;
border-radius: 18px;
overflow: hidden;
background:
radial-gradient(circle at 50% 28%, rgba(148, 196, 255, 0.18), transparent 24%),
linear-gradient(180deg, #152235 0%, #0c131d 52%, #0a1017 100%);
border: 1px solid rgba(95, 128, 160, 0.18);
}
#avatarCanvas {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.canvas-overlay {
position: absolute;
left: 14px;
right: 14px;
bottom: 14px;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
pointer-events: none;
}
.overlay-card {
border: 1px solid rgba(144, 170, 197, 0.18);
background: rgba(7, 11, 18, 0.68);
backdrop-filter: blur(10px);
border-radius: 14px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.overlay-card span {
color: #8ea6c3;
font-size: 12px;
}
.overlay-card strong {
font-size: 14px;
}
.stage-metrics {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.stage-metrics div {
border: 1px solid rgba(52, 72, 96, 0.7);
border-radius: 14px;
background: rgba(14, 22, 33, 0.7);
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
.stage-metrics span {
color: #94a3b8;
font-size: 12px;
}
.stage-metrics strong {
font-size: 16px;
}
#animationPreview {
flex: 1;
min-height: 180px;
max-height: 260px;
}
.actions {
margin-top: 16px;
display: flex;
@@ -42,10 +177,10 @@ video {
.chat-box input {
flex: 1;
background: #111827;
background: rgba(13, 19, 29, 0.9);
color: #f3f4f6;
border: 1px solid #374151;
border-radius: 8px;
border-radius: 12px;
padding: 10px;
}
@@ -55,9 +190,9 @@ video {
max-height: 360px;
overflow: auto;
border: 1px solid #1f2937;
border-radius: 10px;
border-radius: 16px;
padding: 10px;
background: #0b1220;
background: rgba(10, 18, 32, 0.82);
display: flex;
flex-direction: column;
gap: 8px;
@@ -66,8 +201,8 @@ video {
.diag {
margin-top: 12px;
border: 1px solid #1f2937;
border-radius: 10px;
background: #0b0d12;
border-radius: 16px;
background: rgba(8, 13, 18, 0.78);
padding: 10px;
display: flex;
gap: 16px;
@@ -122,12 +257,12 @@ video {
.msg.user {
align-self: flex-end;
background: #1d4ed8;
background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.msg.ai {
align-self: flex-start;
background: #374151;
background: linear-gradient(135deg, #334155, #475569);
}
.panel {
@@ -143,8 +278,8 @@ video {
.metric {
border: 1px solid #1f2937;
background: #0b0d12;
border-radius: 8px;
background: rgba(8, 13, 18, 0.78);
border-radius: 14px;
padding: 8px 10px;
display: flex;
flex-direction: column;
@@ -167,10 +302,10 @@ video {
}
button {
background: #2563eb;
background: linear-gradient(135deg, #2563eb, #0891b2);
color: white;
border: 0;
border-radius: 8px;
border-radius: 12px;
padding: 8px 12px;
cursor: pointer;
}
@@ -231,9 +366,31 @@ button:disabled {
pre {
margin-top: 0;
background: #0b0d12;
background: rgba(8, 13, 18, 0.84);
border: 1px solid #222;
border-radius: 8px;
border-radius: 14px;
padding: 12px;
overflow: auto;
}
audio {
display: none;
}
@media (max-width: 720px) {
.metrics {
grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.stage-toolbar {
grid-template-columns: 1fr;
}
.stage-metrics {
grid-template-columns: 1fr;
}
.canvas-overlay {
grid-template-columns: 1fr;
}
}