fix(deploy): 把 V2.1 设计稿挪进 电商AI平台/ · Docker 构建上下文是这里

This commit is contained in:
UI 设计
2026-05-21 16:30:37 +08:00
parent e293aa43be
commit e7c0a14f75
22 changed files with 23431 additions and 2283 deletions
+564 -7
View File
@@ -276,7 +276,7 @@ nav a.disabled:hover { background: transparent; color: var(--black-alpha-32); }
.user .em { font-size: 13px; color: var(--accent-black); }
/* ─── Main + grid background ─── */
main { position: relative; overflow: hidden; background: var(--background-base); }
main { position: relative; background: var(--background-base); min-width: 0; }
.grid-bg {
position: absolute; inset: 0; pointer-events: none;
background-image:
@@ -308,7 +308,7 @@ main { position: relative; overflow: hidden; background: var(--background-base);
padding: 14px 28px;
border-bottom: 1px solid var(--border-faint);
background: var(--background-base);
position: relative; z-index: 2;
position: sticky; top: 0; z-index: 50;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--black-alpha-48); }
.crumbs .sep { color: var(--black-alpha-32); }
@@ -348,14 +348,70 @@ main { position: relative; overflow: hidden; background: var(--background-base);
width: 7px; height: 7px; border-radius: 50%;
background: var(--heat); border: 1.5px solid var(--surface);
}
.icon-btn .count-noti {
position: absolute; top: -4px; right: -4px;
min-width: 16px; height: 16px; padding: 0 4px;
display: inline-flex; align-items: center; justify-content: center;
background: var(--accent-crimson); color: var(--accent-white);
border: 1.5px solid var(--surface);
border-radius: var(--r-pill);
font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
letter-spacing: .02em; line-height: 1;
pointer-events: none;
}
/* ─── Topbar · 任务队列 chip ─── */
.queue-chip {
display: inline-flex; align-items: center; gap: 7px;
height: 36px;
padding: 0 8px 0 12px;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-pill);
font-size: 13px;
color: var(--accent-black);
cursor: pointer;
transition: background var(--t-base), border-color var(--t-base);
}
.queue-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); }
.queue-chip svg { width: 14px; height: 14px; color: var(--black-alpha-56); }
.queue-chip .count {
display: inline-flex; align-items: center; justify-content: center;
height: 20px; min-width: 20px; padding: 0 6px;
background: var(--heat-12); color: var(--heat);
border: 1px solid var(--heat-20);
border-radius: var(--r-pill);
font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
letter-spacing: .02em;
}
/* ─── Topbar · 头像 ─── */
.topbar-avatar {
width: 36px; height: 36px;
border-radius: var(--r-pill);
background: var(--accent-black);
color: var(--accent-white);
display: inline-flex; align-items: center; justify-content: center;
font-size: 13px; font-weight: 600;
cursor: pointer;
border: 1px solid var(--border-faint);
transition: transform var(--t-fast), box-shadow var(--t-base);
flex-shrink: 0;
overflow: hidden;
}
.topbar-avatar:hover {
transform: scale(1.04);
box-shadow: 0 0 0 3px var(--heat-12);
}
.topbar-avatar img {
width: 100%; height: 100%; object-fit: cover;
}
/* ─── Content ─── */
.content {
padding: 48px 56px 72px;
padding: 48px 28px 72px;
position: relative;
z-index: 1;
max-width: 1480px;
margin: 0 auto;
min-height: calc(100vh - 64px);
}
@@ -633,6 +689,454 @@ main { position: relative; overflow: hidden; background: var(--background-base);
}
.toolbar .search-inline input { padding-left: 36px; }
/* ─── Chip dropdown · 共享组件 ─── */
.chip-wrap { position: relative; display: inline-flex; }
.chip-wrap .chip svg.caret { transition: transform .15s; }
.chip-wrap.open .chip svg.caret { transform: rotate(180deg); }
.chip-menu {
position: absolute; top: calc(100% + 4px); left: 0;
min-width: 200px;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
box-shadow: 0 8px 24px rgba(0,0,0,.08);
padding: 4px;
z-index: 50;
display: none;
max-height: 320px;
overflow-y: auto;
}
.chip-wrap.open .chip-menu { display: block; }
.chip-menu.align-right { left: auto; right: 0; }
.chip-menu .mi {
height: 32px; padding: 0 10px;
font-size: 13px; color: var(--accent-black);
display: flex; align-items: center; gap: 8px;
border-radius: var(--r-sm);
cursor: pointer;
white-space: nowrap;
}
.chip-menu .mi:hover { background: var(--black-alpha-4); }
.chip-menu .mi.selected { color: var(--heat); background: var(--heat-12); }
.chip-menu .mi .mi-check { width: 13px; height: 13px; color: var(--heat); opacity: 0; flex-shrink: 0; }
.chip-menu .mi.selected .mi-check { opacity: 1; }
.chip-menu .mi-sep { height: 1px; background: var(--border-faint); margin: 4px 6px; }
/* ─── Clear-filters btn · 共享组件 ─── */
.clear-filters {
height: 36px; padding: 0 12px;
background: transparent; border: 0; border-radius: var(--r-md);
color: var(--black-alpha-56); font-size: 13px; font-family: inherit;
display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
transition: background var(--t-base), color var(--t-base);
}
.clear-filters:hover { background: var(--black-alpha-4); color: var(--heat); }
.clear-filters svg { width: 13px; height: 13px; }
.clear-filters[hidden] { display: none; }
/* ─── Result count · 共享组件 ─── */
.result-meta {
font-family: var(--font-mono);
font-size: 11px;
color: var(--black-alpha-48);
margin-bottom: 14px;
letter-spacing: .04em;
}
.result-meta .count { color: var(--heat); font-weight: 600; }
/* ─── 新建商品 Modal (Upload Form · 居中弹窗) ─── */
.new-product-modal {
max-width: 1080px !important;
width: 94%;
max-height: 90vh;
display: flex;
flex-direction: column;
}
/* 左图右文 双栏 · 等宽 */
.np-body-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
align-items: start;
}
.np-left, .np-right { min-width: 0; }
@media (max-width: 880px) {
.np-body-grid { grid-template-columns: 1fr; gap: 20px; }
}
.np-header {
padding: 18px 24px 16px;
border-bottom: 1px solid var(--border-faint);
display: flex; align-items: center; gap: 14px;
flex-shrink: 0;
}
.np-header .np-title-ic {
width: 36px; height: 36px;
background: var(--heat-12);
color: var(--heat);
border-radius: var(--r-md);
display: grid; place-items: center;
flex-shrink: 0;
}
.np-header .np-title-ic svg { width: 17px; height: 17px; }
.np-header h2 {
font-size: 16px; font-weight: 600; color: var(--accent-black);
margin: 0;
}
.np-header .np-mode-pill {
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--heat);
background: var(--heat-12);
border: 1px solid var(--heat-20);
border-radius: var(--r-sm);
padding: 2px 8px;
letter-spacing: .04em;
font-weight: 500;
}
.np-header .np-x {
margin-left: auto;
width: 32px; height: 32px;
display: grid; place-items: center;
background: transparent; border: 0;
border-radius: var(--r-md);
color: var(--black-alpha-56);
cursor: pointer;
transition: background var(--t-base), color var(--t-base);
}
.np-header .np-x:hover { background: var(--crimson-bg); color: var(--accent-crimson); }
.np-header .np-x svg { width: 14px; height: 14px; }
.np-body {
flex: 1;
overflow-y: auto;
padding: 22px 24px;
}
/* AI CTA · 独立全宽 CTA 区域 · 放在"商品图册"上方 */
.np-ai-cta {
display: flex; align-items: center; gap: 10px;
width: 100%;
height: 40px;
padding: 0 14px;
margin-bottom: 14px;
background: transparent;
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
font-size: 13px;
color: var(--black-alpha-72);
cursor: pointer;
text-decoration: none;
font-family: inherit;
transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.np-ai-cta:hover { background: var(--heat-8); border-color: var(--heat); color: var(--accent-black); }
.np-ai-cta .ai-icon { color: var(--heat); display: grid; place-items: center; flex-shrink: 0; }
.np-ai-cta .ai-icon svg { width: 14px; height: 14px; }
.np-ai-cta .ai-label { font-weight: 500; color: var(--accent-black); flex: 1; }
.np-ai-cta .ai-arrow { color: var(--black-alpha-48); transition: transform var(--t-fast), color var(--t-base); flex-shrink: 0; display: grid; place-items: center; }
.np-ai-cta .ai-arrow svg { width: 14px; height: 14px; }
.np-ai-cta:hover .ai-arrow { color: var(--heat); transform: translateX(2px); }
/* 主推态: 用户还没上传图 → 醒目橙色描边 */
.np-ai-cta.primary { border-color: var(--heat-40); background: var(--heat-8); }
.np-ai-cta.primary .ai-label { color: var(--heat); font-weight: 600; }
.np-ai-cta.primary .ai-arrow { color: var(--heat); }
.np-ai-cta.primary:hover { background: var(--heat-12); border-color: var(--heat); }
/* Footer (sticky inside modal) */
.np-footer {
border-top: 1px solid var(--border-faint);
padding: 14px 24px;
display: flex; align-items: center; gap: 12px;
flex-shrink: 0;
background: var(--background-lighter);
}
.np-footer .np-meta {
font-family: var(--font-mono);
font-size: 11.5px;
color: var(--black-alpha-48);
letter-spacing: .02em;
margin-right: auto;
}
.np-footer .np-meta .accent { color: var(--heat); font-weight: 600; }
/* Upload zone · 弹窗内尺寸略缩 */
.np-body .upload-zone {
border: 1.5px dashed var(--black-alpha-24);
border-radius: var(--r-md);
padding: 22px 20px;
text-align: center;
background: var(--background-lighter);
color: var(--black-alpha-56);
font-size: 13px;
cursor: pointer;
display: flex; flex-direction: column; align-items: center; gap: 4px;
transition: border-color var(--t-base), background var(--t-base), color var(--t-base);
}
.np-body .upload-zone:hover { border-color: var(--heat); background: var(--heat-8); color: var(--heat); }
.np-body .upload-zone:hover .uz-ic { background: var(--heat); color: #fff; border-color: var(--heat); }
.np-body .upload-zone strong { color: var(--heat); font-weight: 600; }
.np-body .upload-zone .uz-ic {
width: 40px; height: 40px;
border-radius: var(--r-md);
background: var(--surface);
color: var(--heat);
border: 1px solid var(--heat-20);
display: grid; place-items: center;
margin-bottom: 8px;
transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.np-body .upload-zone .uz-ic svg { width: 18px; height: 18px; }
.np-body .upload-zone .uz-hint { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--black-alpha-48); letter-spacing: .02em; }
/* 上传子区域标题 (图片案例 / 我的上传) */
.np-section-h {
display: flex; align-items: center; gap: 6px;
font-size: 12px; font-weight: 500;
color: var(--accent-black);
margin: 12px 0 4px;
}
.np-section-h .check-ic {
width: 14px; height: 14px;
border-radius: 50%;
background: var(--accent-forest);
color: #fff;
display: grid; place-items: center;
flex-shrink: 0;
}
.np-section-h .check-ic svg { width: 8px; height: 8px; }
.np-section-h .counter {
margin-left: auto;
font-family: var(--font-mono);
font-size: 11px;
color: var(--black-alpha-48);
letter-spacing: .04em;
font-weight: 400;
}
.np-section-h .counter .num { color: var(--heat); font-weight: 600; }
.np-section-sub {
font-size: 11.5px;
color: var(--black-alpha-56);
margin-bottom: 8px;
line-height: 1.5;
}
/* 图片案例 grid (静态展示) */
.np-examples {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 5px;
}
.np-examples .ex {
aspect-ratio: 1;
border-radius: var(--r-sm);
background: var(--background-lighter);
border: 1px solid var(--border-faint);
position: relative;
display: grid;
place-items: center;
font-size: 9.5px;
color: var(--black-alpha-48);
font-family: var(--font-mono);
letter-spacing: .04em;
text-align: center;
padding: 4px;
overflow: hidden;
}
.np-examples .ex-badge {
position: absolute;
bottom: 3px; right: 3px;
width: 15px; height: 15px;
background: var(--accent-forest);
color: #fff;
border-radius: 50%;
display: grid; place-items: center;
z-index: 2;
}
.np-examples .ex-badge svg { width: 9px; height: 9px; }
/* 我的上传 grid · 始终 5 列, 含填充和空插槽 */
.np-body .upload-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 5px;
}
.up-slot-empty {
aspect-ratio: 1;
border-radius: var(--r-sm);
background: var(--background-lighter);
border: 1px dashed var(--border-faint);
cursor: pointer;
display: grid;
place-items: center;
font-size: 9.5px;
color: var(--black-alpha-32);
font-family: var(--font-mono);
letter-spacing: .04em;
transition: border-color var(--t-base), background var(--t-base), color var(--t-base);
}
.up-slot-empty:hover {
border-color: var(--heat);
background: var(--heat-8);
color: var(--heat);
}
/* dropzone 满 5 张时禁用态 */
.np-body .upload-zone.full {
cursor: not-allowed;
opacity: .55;
pointer-events: none;
}
.np-body .upload-zone.full .uz-ic { background: var(--background-lighter); color: var(--black-alpha-32); border-color: var(--border-faint); }
.up-thumb {
aspect-ratio: 1;
border-radius: var(--r-md);
overflow: hidden;
position: relative;
background: var(--background-lighter);
border: 1px solid var(--border-faint);
cursor: zoom-in;
transition: transform var(--t-fast), border-color var(--t-base);
}
.up-thumb:hover { transform: scale(1.02); border-color: var(--heat); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb .slot-x {
position: absolute;
top: 3px; right: 3px;
width: 18px; height: 18px;
background: rgba(0, 0, 0, .7);
color: #fff;
border-radius: 50%;
display: none;
place-items: center;
cursor: pointer;
z-index: 3;
border: 0;
padding: 0;
transition: background var(--t-base), transform var(--t-fast);
}
.up-thumb:hover .slot-x { display: grid; }
.up-thumb .slot-x:hover { background: var(--accent-crimson); transform: scale(1.1); }
.up-thumb .slot-x svg { width: 9px; height: 9px; }
/* 5 列尺寸太小,文件名 overlay 仅在 lightbox 显示,缩略图上隐藏 */
.up-thumb .slot-name { display: none; }
/* Lightbox: 点击缩略图全屏预览 */
.np-lightbox {
position: fixed; inset: 0;
background: rgba(0, 0, 0, .9);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
cursor: zoom-out;
opacity: 0;
transition: opacity .2s;
}
.np-lightbox.show { display: flex; opacity: 1; }
.np-lightbox img {
max-width: 90vw;
max-height: 88vh;
border-radius: var(--r-md);
box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.np-lightbox .lb-x {
position: fixed;
top: 24px; right: 24px;
width: 44px; height: 44px;
border-radius: 50%;
background: rgba(255, 255, 255, .12);
color: #fff;
border: 0;
cursor: pointer;
display: grid;
place-items: center;
transition: background var(--t-base);
}
.np-lightbox .lb-x:hover { background: rgba(255, 255, 255, .24); }
.np-lightbox .lb-x svg { width: 18px; height: 18px; }
.np-lightbox .lb-name {
position: fixed;
bottom: 24px; left: 50%;
transform: translateX(-50%);
font-family: var(--font-mono);
font-size: 12px;
color: rgba(255, 255, 255, .7);
letter-spacing: .04em;
}
/* Bullet list · 弹窗内 (复用样式) */
.np-body .bullet-list { list-style: none; padding: 0; }
.np-body .bullet-list li {
display: flex; gap: 10px; align-items: center;
padding: 10px 12px;
background: var(--background-lighter);
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
margin-bottom: 6px;
font-size: 13px;
color: var(--accent-black);
transition: border-color var(--t-base), background var(--t-base);
}
.np-body .bullet-list li.bl-item:hover { border-color: var(--black-alpha-24); }
.np-body .bullet-list li.bl-add { background: var(--surface); border-style: dashed; }
.np-body .bullet-list li.bl-add:focus-within { border-color: var(--heat-40); }
.np-body .bullet-list .num {
width: 20px; height: 20px;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
font-size: 11px; color: var(--black-alpha-56);
display: grid; place-items: center;
flex-shrink: 0;
font-family: var(--font-mono);
font-weight: 600;
}
.np-body .bullet-list li.bl-add .num { background: transparent; color: var(--heat); border-color: var(--heat-40); }
.np-body .bullet-list .bl-text { flex: 1; min-width: 0; }
.np-body .bullet-list .bl-input {
flex: 1; min-width: 0;
height: 24px; border: 0; padding: 0 4px;
background: transparent; font-size: 13px;
color: var(--accent-black); font-family: inherit;
outline: none;
}
.np-body .bullet-list .bl-input::placeholder { color: var(--black-alpha-48); }
.np-body .bullet-list .bl-x {
width: 24px; height: 24px;
display: grid; place-items: center;
color: var(--black-alpha-32);
border-radius: var(--r-sm);
cursor: pointer;
flex-shrink: 0;
opacity: 0;
transition: opacity var(--t-base), background var(--t-base), color var(--t-base);
}
.np-body .bullet-list li.bl-item:hover .bl-x { opacity: 1; }
.np-body .bullet-list .bl-x:hover { background: var(--crimson-bg); color: var(--accent-crimson); }
.np-body .bullet-list .bl-x svg { width: 11px; height: 11px; }
/* ─── Empty state · 共享组件 ─── */
.empty-state {
background: var(--surface);
border: 1px dashed var(--border-faint);
border-radius: var(--r-md);
padding: 80px 40px;
text-align: center;
color: var(--black-alpha-56);
display: none;
}
.empty-state.show { display: block; }
.empty-state .ic-empty {
width: 48px; height: 48px;
margin: 0 auto 14px;
background: var(--background-lighter);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
display: grid; place-items: center;
color: var(--black-alpha-48);
}
.empty-state h3 { font-size: 14px; font-weight: 600; color: var(--accent-black); margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; color: var(--black-alpha-48); font-family: var(--font-mono); letter-spacing: .02em; }
/* ─── Progress (5 段流水线 · V2.1 语义色 + 脉动) ─── */
.prog { display: flex; gap: 3px; }
.prog span {
@@ -761,6 +1265,10 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
position: relative;
transform: scale(.96);
transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
.modal-bg.show .modal { transform: scale(1); }
.modal::before, .modal::after {
@@ -789,6 +1297,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
padding: 22px 24px 16px;
border-bottom: 1px solid var(--border-faint);
display: flex; align-items: center; gap: 14px;
flex-shrink: 0;
}
.modal-h .ic-m {
width: 36px; height: 36px;
@@ -804,7 +1313,16 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
display: block; font-family: var(--font-mono); font-size: 11px;
color: var(--black-alpha-48); font-weight: 400; margin-top: 4px; letter-spacing: .04em;
}
.modal-b { padding: 20px 24px; font-size: 13.5px; color: var(--black-alpha-72); line-height: 1.75; }
.modal-b {
padding: 20px 24px;
font-size: 13.5px;
color: var(--black-alpha-72);
line-height: 1.75;
overflow-y: auto;
overscroll-behavior: contain;
flex: 1 1 auto;
min-height: 0;
}
.modal-b .mono-acc {
font-family: var(--font-mono); color: var(--heat);
background: var(--heat-12); padding: 2px 6px;
@@ -814,8 +1332,47 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
padding: 16px 24px;
border-top: 1px solid var(--border-faint);
display: flex; justify-content: flex-end; gap: 10px;
flex-shrink: 0;
}
/* ─── 统一卡片删除按钮 ────────────────────────────────────────
矩形 + 删除 icon, hover 卡片才显示
用法: 卡片内放 <button class="card-del-btn">[icon]</button>
外层卡片需 position: relative
触发: .product-card / .asset-card / .project-card / .task-card / .model-card hover
--------------------------------------------------------- */
.card-del-btn {
position: absolute;
top: 8px; right: 8px;
width: 32px; height: 32px;
background: rgba(255,255,255,.95);
border: 1px solid var(--black-alpha-12);
border-radius: var(--r-md);
display: grid; place-items: center;
color: var(--black-alpha-56);
cursor: pointer;
opacity: 0;
transition: opacity .18s, color .18s, border-color .18s, background .18s;
box-shadow: 0 2px 6px rgba(0,0,0,.06);
z-index: 5;
padding: 0;
font-family: inherit;
}
.card-del-btn svg { width: 14px; height: 14px; }
.product-card:hover .card-del-btn,
.asset-card:hover .card-del-btn,
.project-card:hover .card-del-btn,
.task-card:hover .card-del-btn,
.model-card:hover .card-del-btn {
opacity: 1;
}
.card-del-btn:hover {
color: var(--accent-crimson);
border-color: var(--accent-crimson);
background: var(--surface);
}
.card-del-btn:active { transform: scale(.95); }
/* ─── Drawer ─── */
.drawer-bg {
position: fixed; inset: 0;
@@ -850,7 +1407,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
transition: background var(--t-base);
}
.drawer-h .x:hover { background: var(--black-alpha-4); color: var(--accent-black); }
.drawer-b { padding: 24px; overflow-y: auto; flex: 1; }
.drawer-b { padding: 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.drawer-f {
padding: 16px 24px;
border-top: 1px solid var(--border-faint);