大量修改UI

This commit is contained in:
Azmat@qq.com
2026-08-19 17:44:56 +08:00
parent 18b3927817
commit a343f47f0c
76 changed files with 11655 additions and 6104 deletions
+559 -271
View File
@@ -267,306 +267,594 @@
}
/* ============================================================
新建商品 · 右侧 Drawer(在商品库页面原地打开)
像素基线: public/exact/products.html #pc-drawer + 其内联 <style>
全部 scope 在 .pc-drawer 下,与上方整页 .product-create-page 互不影响。
新建商品抽屉 · 对照影擎 product-drawer。不重写共享 .btn/.input/.drawer。
============================================================ */
/* .drawer.pc-drawer(0,2,0)·提高特异性压过共享 .drawer{width:540px}
——dev 下 App.tsx 链路的 product-create-page.css 比 design-restraint.css 先注入,
等特异性时基类反而后加载会赢,故必须双类提权。 */
.drawer.pc-drawer { width: 820px; max-width: 100vw; }
.pc-drawer .drawer-h h3 { font-size: 16px; font-weight: 600; }
.pc-drawer .drawer-b { padding: 24px 28px; }
.pc-drawer .drawer-b .form-card { background: transparent; border: 0; padding: 0; border-radius: 0; }
.pc-drawer .drawer-f { padding: 14px 24px; background: var(--surface); align-items: center; }
.pc-drawer .drawer-f .btn-guide {
margin-right: auto;
display: inline-flex; align-items: center; gap: 6px;
font-size: 13px; color: var(--black-alpha-56);
background: transparent; border: 0; cursor: pointer;
padding: 8px 10px; border-radius: var(--r-md);
font-family: inherit;
transition: background var(--t-base), color var(--t-base);
.pcd-layer {
--klein: #002fa7;
--klein-hover: #002680;
--pcd-muted: #6f747c;
--pcd-line: rgba(34, 42, 54, 0.12);
position: fixed;
inset: 0;
z-index: 80;
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: visibility 0s linear 240ms, opacity 220ms ease;
}
.pc-drawer .drawer-f .btn-guide:hover { color: var(--accent-black); background: var(--black-alpha-4); }
.pc-drawer .drawer-f .btn-guide svg { width: 14px; height: 14px; }
.pcd-layer.open {
visibility: visible;
opacity: 1;
pointer-events: auto;
transition-delay: 0s;
}
.pcd-scrim {
position: absolute;
inset: 0;
border: 0;
background: rgba(15, 18, 24, 0.54);
backdrop-filter: blur(2px);
cursor: default;
}
.pcd-drawer {
position: absolute;
top: 0;
right: 0;
width: min(720px, 94vw);
height: 100%;
display: flex;
flex-direction: column;
color: var(--accent-black);
background: #fff;
box-shadow: -28px 0 70px rgba(10, 15, 24, 0.22);
transform: translateX(100%);
transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pcd-layer.open .pcd-drawer { transform: translateX(0); }
/* form-card · 表单容器(drawer 内字段) */
.pc-drawer .form-card .field { margin-bottom: 16px; }
.pc-drawer .form-card .field:last-child { margin-bottom: 0; }
.pc-drawer .form-card .field-row {
display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
.pcd-head {
min-height: 82px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 0 28px;
border-bottom: 1px solid rgba(34, 42, 54, 0.09);
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(12px);
}
.pc-drawer .form-card .field-label {
display: block; font-size: 13px; font-weight: 500;
color: var(--accent-black); margin-bottom: 6px;
}
.pc-drawer .form-card .field-label .req { color: var(--heat); margin-left: 2px; }
.pc-drawer .form-card .field-label .opt {
color: var(--black-alpha-48); font-weight: 400; font-size: 12px; margin-left: 6px;
}
.pc-drawer .pc-type-hint {
margin-top: 6px;
font-size: 12px;
color: var(--black-alpha-48);
}
.pc-drawer .form-card .input,
.pc-drawer .form-card .select {
width: 100%; height: 38px;
background: var(--background-lighter);
border: 1px solid var(--black-alpha-12);
border-radius: var(--r-md);
padding: 0 14px;
font-size: 14px; color: var(--accent-black);
outline: none; font-family: inherit;
transition: border-color var(--t-base);
}
.pc-drawer .form-card .input:focus,
.pc-drawer .form-card .select:focus {
border-color: var(--heat-40);
box-shadow: inset 0 0 0 1px var(--heat-40);
}
/* 商品主图 · 上传(左) + 示例(右) */
.pc-drawer .form-card .pf-upload-row {
.pcd-head h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.pcd-head p { margin: 0; color: var(--pcd-muted); font-size: 11px; }
.pcd-close {
width: 38px;
height: 38px;
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
gap: 16px; align-items: stretch;
place-items: center;
border: 1px solid rgba(34, 42, 54, 0.10);
border-radius: 11px;
color: var(--pcd-muted);
background: rgba(34, 42, 54, 0.045);
cursor: pointer;
}
.pc-drawer .form-card .pf-upload-zone {
border: 1.5px dashed var(--black-alpha-24);
border-radius: var(--r-md);
padding: 28px 20px;
background: var(--background-lighter);
cursor: pointer; text-align: center;
transition: border-color var(--t-base), background var(--t-base);
display: flex; flex-direction: column; align-items: center; justify-content: center;
min-height: 180px;
.pcd-close:hover { color: var(--accent-black); background: rgba(34, 42, 54, 0.09); }
.pcd-close svg { width: 18px; height: 18px; }
.pcd-body {
min-height: 0;
flex: 1;
overflow-y: auto;
padding: 26px 28px 34px;
}
.pc-drawer .form-card .pf-upload-zone:hover { border-color: var(--heat); background: var(--heat-8); }
/* 拖拽悬停:边框/底色变橙(对齐 V1 pfZone dragover) */
.pc-drawer .form-card .pf-upload-zone.is-dragover { border-color: var(--heat); background: var(--heat-8); }
.pc-drawer .form-card .pf-upload-zone .uz-ic {
width: 44px; height: 44px;
margin: 0 auto 10px;
background: var(--surface);
border: 1px solid var(--heat-20);
border-radius: var(--r-md);
color: var(--heat);
display: grid; place-items: center;
.pcd-form { display: grid; gap: 18px; }
.pcd-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pcd-field { min-width: 0; display: grid; gap: 8px; }
.pcd-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: #303640;
font-size: 12px;
font-weight: 600;
}
.pc-drawer .form-card .pf-upload-zone .uz-ic svg { width: 20px; height: 20px; }
.pc-drawer .form-card .pf-upload-zone .uz-t { font-size: 14px; color: var(--accent-black); font-weight: 500; }
.pc-drawer .form-card .pf-upload-zone .uz-t strong { color: var(--heat); font-weight: 600; }
.pc-drawer .form-card .pf-upload-zone .uz-d {
margin-top: 8px;
font-family: var(--font-mono); font-size: 11.5px;
color: var(--black-alpha-48); letter-spacing: .02em;
.pcd-label small { color: var(--pcd-muted); font-size: 10px; font-weight: 500; }
.pcd-req { color: #e34c4c; }
.pcd-field input,
.pcd-select-trigger {
width: 100%;
height: 48px;
padding: 0 14px;
border: 1px solid var(--pcd-line);
border-radius: 11px;
outline: 0;
color: var(--accent-black);
background: rgba(255, 255, 255, 0.92);
font: inherit;
font-size: 13px;
}
/* 示例图 · 纵向卡片 */
.pc-drawer .form-card .pf-example {
background: var(--background-lighter);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
padding: 16px;
display: flex; flex-direction: column; gap: 10px;
.pcd-field input:focus,
.pcd-point input:focus {
border-color: rgba(0, 47, 167, 0.62);
box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.08);
}
.pc-drawer .form-card .pf-example .ex-h {
font-size: 13px; font-weight: 600; color: var(--accent-black);
.pcd-field input[aria-invalid="true"],
.pcd-select-trigger.is-error { border-color: #e34c4c; }
.pcd-hint { font-size: 11px; color: var(--pcd-muted); }
.pcd-select { position: relative; z-index: 4; }
.pcd-select.open { z-index: 20; }
.pcd-select-trigger {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0 13px;
text-align: left;
cursor: pointer;
}
.pc-drawer .form-card .pf-example .ex-grid {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
.pcd-select-trigger .is-placeholder { color: #a8afb9; }
.pcd-select-trigger:hover,
.pcd-select.open .pcd-select-trigger { border-color: rgba(0, 47, 167, 0.36); }
.pcd-select.open .pcd-select-trigger { box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.07); }
.pcd-select-trigger svg {
width: 15px;
height: 15px;
flex: 0 0 auto;
color: var(--pcd-muted);
transition: transform 180ms ease;
}
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb {
aspect-ratio: 1;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
overflow: hidden; position: relative;
display: grid; place-items: center;
color: var(--black-alpha-32);
.pcd-select.open .pcd-select-trigger svg { transform: rotate(180deg); }
.pcd-select-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
left: 0;
z-index: 30;
display: grid;
gap: 3px;
padding: 6px;
border: 1px solid rgba(34, 42, 54, 0.10);
border-radius: 11px;
background: #fff;
box-shadow: 0 14px 34px rgba(20, 27, 38, 0.14);
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(-5px);
}
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb svg { width: 22px; height: 22px; }
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb::after {
content: ''; position: absolute; inset: 0;
background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.03) 6px 7px);
.pcd-select.open .pcd-select-menu {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
}
.pcd-select-option {
min-height: 38px;
padding: 0 10px;
border: 0;
border-radius: 8px;
color: var(--accent-black);
background: #fff;
font: inherit;
font-size: 13px;
text-align: left;
cursor: pointer;
}
.pcd-select-option:hover { background: #e8f2ff; }
.pcd-select-option.selected { color: var(--klein); background: #f3f7ff; font-weight: 600; }
.pcd-block { margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(34, 42, 54, 0.08); }
.pcd-block-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
margin-bottom: 12px;
}
.pcd-block-head strong { display: block; font-size: 13px; }
.pcd-block-head p { margin: 4px 0 0; color: var(--pcd-muted); font-size: 10px; }
.pcd-block-head > span { color: var(--pcd-muted); font-size: 10px; white-space: nowrap; }
.pcd-sp-head { align-items: center; }
.pcd-upload-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 128px;
gap: 12px;
align-items: stretch;
}
.pcd-upload {
min-height: 142px;
display: grid;
place-items: center;
padding: 18px;
border: 1px dashed rgba(0, 47, 167, 0.25);
border-radius: 13px;
color: var(--klein);
background: rgba(225, 237, 255, 0.52);
text-align: center;
cursor: pointer;
}
.pcd-upload:hover,
.pcd-upload.is-dragover {
border-color: rgba(0, 47, 167, 0.55);
background: rgba(211, 228, 255, 0.78);
}
.pcd-upload-hit {
display: grid;
place-items: center;
gap: 7px;
pointer-events: none;
}
/* 真实示例图:图片铺满,去掉斜纹底 */
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb--img { background: var(--background-lighter); }
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb--img::after { display: none; }
.pc-drawer .form-card .pf-example .ex-grid .ex-thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-drawer .form-card .pf-example .ex-d {
font-size: 12px; color: var(--black-alpha-56); line-height: 1.5;
.pcd-upload-icon {
width: 42px;
height: 42px;
display: grid;
place-items: center;
border-radius: 12px;
color: #fff;
background: var(--klein);
box-shadow: 0 8px 18px rgba(0, 47, 167, 0.18);
}
.pcd-upload-icon svg { width: 20px; height: 20px; }
.pcd-upload-hit strong { color: var(--accent-black); font-size: 12px; }
.pcd-upload-hit small { color: var(--pcd-muted); font-size: 9px; }
.pcd-preview {
min-height: 142px;
display: grid;
grid-template-rows: 1fr auto;
gap: 8px;
padding: 8px;
border: 1px solid rgba(34, 42, 54, 0.10);
border-radius: 13px;
background: rgba(34, 42, 54, 0.035);
}
.pcd-preview-frame {
position: relative;
min-height: 102px;
display: grid;
place-items: center;
overflow: hidden;
border-radius: 9px;
color: var(--pcd-muted);
background:
linear-gradient(rgba(34, 42, 54, 0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(34, 42, 54, 0.035) 1px, transparent 1px),
#fff;
background-size: 18px 18px;
}
.pcd-preview-frame.has-image { cursor: zoom-in; }
.pcd-preview-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pcd-preview-ph { display: grid; place-items: center; gap: 5px; font-size: 9px; text-align: center; }
.pcd-preview-ph svg { width: 20px; height: 20px; }
.pcd-preview > span {
overflow: hidden;
color: var(--pcd-muted);
font-size: 9px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.pcd-thumb-grid {
width: 100%;
height: 100%;
display: none;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: repeat(2, minmax(0, 1fr));
gap: 3px;
padding: 3px;
}
.pcd-preview-frame.multi-image .pcd-thumb-grid { display: grid; }
.pcd-thumb {
position: relative;
min-width: 0;
min-height: 0;
overflow: hidden;
border-radius: 6px;
}
.pcd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcd-thumb-x,
.pcd-clear,
.pcd-gallery-x {
position: absolute;
z-index: 5;
display: grid;
place-items: center;
border: 1px solid rgba(255, 255, 255, 0.76);
color: #fff;
background: rgba(18, 22, 29, 0.72);
cursor: pointer;
}
.pcd-thumb-x:hover,
.pcd-clear:hover,
.pcd-gallery-x:hover { background: #d83f50; }
.pcd-thumb-x { top: 4px; right: 4px; width: 21px; height: 21px; border-radius: 7px; }
.pcd-thumb-x svg { width: 12px; height: 12px; }
.pcd-clear {
top: 7px;
right: 7px;
width: 27px;
height: 27px;
border-radius: 9px;
}
.pcd-clear svg { width: 14px; height: 14px; }
.pcd-count {
position: absolute;
right: 6px;
bottom: 6px;
padding: 4px 7px;
border-radius: 999px;
color: #fff;
background: rgba(18, 22, 29, 0.74);
font-size: 9px;
font-weight: 600;
}
.pcd-thumb-state {
position: absolute;
inset: 0;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.48);
}
.pcd-thumb-retry,
.pcd-retry-cover {
position: absolute;
left: 50%;
bottom: 8px;
z-index: 6;
transform: translateX(-50%);
height: 22px;
padding: 0 8px;
border: 0;
border-radius: 999px;
background: #fff;
color: var(--accent-black);
font: inherit;
font-size: 10px;
cursor: pointer;
}
.pc-drawer .form-card .pf-grid {
display: grid; grid-template-columns: repeat(5, 1fr);
gap: 8px; margin-top: 12px;
.pcd-add-point {
height: 36px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 12px;
border: 1px solid rgba(0, 47, 167, 0.18);
border-radius: 10px;
color: var(--klein);
background: rgba(0, 47, 167, 0.055);
font: inherit;
font-size: 11px;
font-weight: 600;
cursor: pointer;
}
.pc-drawer .form-card .pf-grid:empty { display: none; }
.pcd-add-point svg { width: 15px; height: 15px; }
.pcd-points { display: grid; gap: 10px; }
.pcd-point {
display: grid;
grid-template-columns: 32px minmax(0, 1fr) 38px;
align-items: center;
gap: 9px;
}
.pcd-point-idx {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border-radius: 9px;
color: var(--klein);
background: rgba(0, 47, 167, 0.07);
font-size: 11px;
font-weight: 600;
}
.pcd-point input {
width: 100%;
height: 46px;
padding: 0 13px;
border: 1px solid var(--pcd-line);
border-radius: 11px;
outline: 0;
background: rgba(255, 255, 255, 0.94);
font: inherit;
font-size: 13px;
}
.pcd-point-x {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border: 0;
border-radius: 10px;
color: var(--pcd-muted);
background: rgba(34, 42, 54, 0.05);
cursor: pointer;
}
.pcd-point-x:disabled { opacity: 0.28; cursor: not-allowed; }
.pcd-point-x svg { width: 16px; height: 16px; }
/* 核心卖点 · bullet-list(drawer 变体) */
.pc-drawer .form-card .bullet-list { list-style: none; padding: 0; margin: 0; }
.pc-drawer .form-card .bullet-list .bl-item {
display: flex; align-items: center; gap: 10px;
padding: 8px 12px;
background: var(--background-lighter);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
margin-bottom: 6px;
font-size: 14px;
.pcd-foot {
min-height: 96px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 0 28px 14px;
border-top: 1px solid rgba(34, 42, 54, 0.09);
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 -12px 28px rgba(20, 27, 38, 0.05);
}
.pc-drawer .form-card .bullet-list .bl-item:focus-within { border-color: var(--heat-40); }
.pc-drawer .form-card .bullet-list .num {
width: 22px; height: 22px;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-sm);
font-family: var(--font-mono);
font-size: 11px; color: var(--heat); font-weight: 700;
display: grid; place-items: center; flex-shrink: 0;
.pcd-foot > span {
display: flex;
align-items: center;
gap: 7px;
color: var(--pcd-muted);
font-size: 10px;
}
.pc-drawer .form-card .bullet-list .bl-text { flex: 1; color: var(--accent-black); }
.pc-drawer .form-card .bullet-list .bl-input {
flex: 1; background: transparent; border: 0; outline: none;
font-size: 13.5px; color: var(--accent-black); font-family: inherit;
.pcd-foot > span svg { width: 14px; height: 14px; flex: 0 0 auto; }
.pcd-actions { display: flex; align-items: center; gap: 10px; }
.pcd-ghost,
.pcd-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
border: 0;
font: inherit;
cursor: pointer;
}
.pc-drawer .form-card .bullet-list .bl-x {
width: 22px; height: 22px;
color: var(--black-alpha-48);
cursor: pointer; display: grid; place-items: center;
border-radius: var(--r-sm);
transition: color var(--t-base), background var(--t-base);
.pcd-ghost {
min-width: 92px;
height: 46px;
padding: 0 18px;
border: 1px solid rgba(28, 34, 43, 0.12);
border-radius: 11px;
color: var(--accent-black);
background: rgba(34, 42, 54, 0.05);
}
.pc-drawer .form-card .bullet-list .bl-x:hover { color: var(--accent-crimson); background: var(--crimson-bg); }
.pc-drawer .form-card .bullet-list .bl-x svg { width: 11px; height: 11px; }
/* YYX#17/R104:独立「添加卖点」按钮 —— 挂在字段标题行右侧的小按钮(对齐「+ 新增角色」摆法),
不再是列表下方整行虚线框(测试反馈那种观感像又一个输入框)。scoped 不污染全局。 */
.pc-drawer .form-card .field-label-row {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 6px;
}
.pc-drawer .form-card .field-label-row .field-label { margin-bottom: 0; }
.pc-drawer .form-card .bl-add-btn {
display: inline-flex; align-items: center; gap: 5px;
height: 26px; padding: 0 10px;
background: var(--surface);
border: 1px solid var(--border-loud); border-radius: var(--r-sm);
font-size: 12px; color: var(--accent-black); font-family: inherit; cursor: pointer;
transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.pc-drawer .form-card .bl-add-btn:hover { background: var(--heat-12); border-color: var(--heat-40); color: var(--heat); }
.pc-drawer .form-card .bl-add-btn svg { width: 12px; height: 12px; }
@media (max-width: 900px) {
.pc-drawer .drawer-b .pf-upload-row { grid-template-columns: 1fr; }
.pcd-ghost:hover { background: rgba(34, 42, 54, 0.10); }
.pcd-primary {
min-width: 148px;
height: 50px;
padding: 0 20px;
border-radius: 11px;
color: #fff;
background: var(--klein);
box-shadow: 0 9px 18px rgba(0, 47, 167, 0.18);
}
.pcd-primary:hover { background: var(--klein-hover); }
.pcd-primary:disabled { opacity: 0.38; box-shadow: none; cursor: not-allowed; }
.pcd-primary svg { width: 18px; height: 18px; }
/* ─── 主图缩略网格 · 多图上传(对齐 V1 #pc-drawer .pf-thumb/.pf-x) ─── */
.pc-drawer .form-card .pf-thumb {
.pcd-toast {
position: absolute;
right: 24px;
bottom: 108px;
z-index: 8;
display: flex;
align-items: center;
gap: 10px;
max-width: 320px;
padding: 10px 14px;
border: 1px solid rgba(34, 42, 54, 0.10);
border-radius: 11px;
background: #fff;
box-shadow: 0 12px 28px rgba(20, 27, 38, 0.12);
}
.pcd-toast-ic {
width: 24px;
height: 24px;
display: grid;
place-items: center;
border-radius: 8px;
color: #fff;
background: var(--klein);
}
.pcd-toast-ic svg { width: 13px; height: 13px; }
.pcd-toast div { font-size: 13px; font-weight: 600; }
.pcd-toast small { display: block; margin-top: 2px; color: var(--pcd-muted); font-size: 11px; font-weight: 400; }
.pcd-gallery {
position: fixed;
inset: 0;
z-index: 95;
display: grid;
grid-template-rows: 78px minmax(0, 1fr);
color: var(--accent-black);
background:
linear-gradient(rgba(24, 31, 42, 0.028) 1px, transparent 1px),
linear-gradient(90deg, rgba(24, 31, 42, 0.028) 1px, transparent 1px),
#f8f9fb;
background-size: 44px 44px;
}
.pcd-gallery-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 0 clamp(24px, 4vw, 64px);
border-bottom: 1px solid rgba(34, 42, 54, 0.09);
background: rgba(255, 255, 255, 0.92);
}
.pcd-gallery-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.pcd-gallery-head p { margin: 0; color: var(--pcd-muted); font-size: 10px; }
.pcd-gallery-back {
min-width: 92px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border: 1px solid rgba(34, 42, 54, 0.11);
border-radius: 11px;
color: var(--accent-black);
background: #fff;
font: inherit;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.pcd-gallery-back svg { width: 16px; height: 16px; }
.pcd-gallery-body {
min-height: 0;
display: grid;
place-items: center;
overflow: auto;
padding: 28px;
}
.pcd-gallery-grid {
width: min(920px, 88vw);
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}
.pcd-gallery-slot {
position: relative;
aspect-ratio: 1;
background: var(--background-lighter);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
position: relative; overflow: hidden; cursor: pointer;
overflow: hidden;
border: 1px solid rgba(34, 42, 54, 0.10);
border-radius: 16px;
background: rgba(255, 255, 255, 0.90);
box-shadow: 0 10px 28px rgba(20, 27, 38, 0.07);
}
.pc-drawer .form-card .pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-drawer .form-card .pf-thumb .pf-x {
position: absolute; top: 4px; right: 4px;
width: 22px; height: 22px;
background: rgba(0, 0, 0, .7); color: var(--accent-white);
border: 0; border-radius: 50%; cursor: pointer;
display: grid; place-items: center;
opacity: 0; transition: opacity var(--t-base);
.pcd-gallery-slot img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.pcd-gallery-slot.empty {
display: grid;
place-items: center;
border-style: dashed;
color: #a7adb6;
background: rgba(255, 255, 255, 0.52);
box-shadow: none;
font: inherit;
font-size: 11px;
cursor: pointer;
}
.pc-drawer .form-card .pf-thumb:hover .pf-x,
.pc-drawer .form-card .pf-thumb:focus-within .pf-x { opacity: 1; }
.pc-drawer .form-card .pf-thumb .pf-x svg { width: 11px; height: 11px; }
/* upload-first 状态:上传中遮罩转圈 / 失败红底提示 / 主图角标(第一张=cover_asset) */
.pc-drawer .form-card .pf-thumb .pf-state {
position: absolute; inset: 0; display: grid; place-items: center;
background: color-mix(in srgb, var(--surface) 58%, transparent);
font-family: var(--font-mono); font-size: 11px; color: var(--black-alpha-56);
.pcd-gallery-slot > span {
position: absolute;
top: 9px;
left: 9px;
min-width: 24px;
height: 24px;
display: grid;
place-items: center;
border-radius: 8px;
color: #fff;
background: rgba(18, 22, 29, 0.68);
font-size: 9px;
font-weight: 600;
}
.pc-drawer .form-card .pf-thumb .pf-state-err { background: var(--crimson-bg); color: var(--accent-crimson); font-weight: 600; }
.pc-drawer .form-card .pf-thumb.pf-error { border-color: var(--crimson-bd); }
/* YYX#22:上传失败 —— 黑色遮罩 + 感叹号 + 提示 + 重新上传胶囊 */
.pc-drawer .form-card .pf-thumb .pf-fail-mask {
position: absolute; inset: 0; z-index: 2;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
background: rgba(0, 0, 0, .62); color: var(--accent-white); text-align: center; padding: 4px;
.pcd-gallery-x {
top: 9px;
right: 9px;
width: 30px;
height: 30px;
border-radius: 9px;
}
.pc-drawer .form-card .pf-thumb .pf-fail-ic svg { width: 20px; height: 20px; }
.pc-drawer .form-card .pf-thumb .pf-fail-t { font-size: 11px; font-weight: 600; }
.pc-drawer .form-card .pf-thumb .pf-retry {
display: inline-flex; align-items: center; gap: 4px;
height: 22px; padding: 0 8px;
border: 0; border-radius: 999px;
background: var(--accent-white); color: var(--accent-black);
font-size: 11px; cursor: pointer;
}
.pc-drawer .form-card .pf-thumb .pf-retry:hover { background: var(--heat); color: var(--accent-white); }
.pc-drawer .form-card .pf-thumb .pf-retry svg { width: 11px; height: 11px; }
.pc-drawer .form-card .pf-thumb .pf-cover {
position: absolute; left: 4px; bottom: 4px; z-index: 1;
background: var(--heat); color: var(--accent-white);
font-family: var(--font-mono); font-size: 10px; line-height: 1;
padding: 3px 6px; border-radius: var(--r-sm);
.pcd-gallery-x svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
.pcd-row,
.pcd-upload-grid { grid-template-columns: 1fr; }
.pcd-foot { flex-wrap: wrap; padding: 14px 18px; min-height: 0; }
}
/* ─── 校验态 · 必填红字 / 输入框红框(原内联 style 抽成类) ─── */
.pc-drawer .form-card .input.is-error,
.pc-drawer .form-card .input.is-error:focus {
border-color: var(--accent-crimson);
box-shadow: inset 0 0 0 1px var(--crimson-bd);
}
.pc-drawer .pc-err-note {
color: var(--accent-crimson);
font-size: 12px; margin-top: 4px;
}
/* 末尾字段去底距(替代 inline margin-bottom:0) */
.pc-drawer .form-card .field.pc-field-last { margin-bottom: 0; }
/* ─── 使用指南内联说明(原内联 style 抽成类) ─── */
.pc-drawer .pc-guide-note {
padding: 10px 14px;
margin: 0 16px 8px;
background: var(--black-alpha-4);
border-radius: var(--r-md);
font-size: 13px; line-height: 1.7;
color: var(--black-alpha-72);
}
.pc-drawer .pc-guide-note strong { color: var(--accent-black); font-weight: 600; }
/* ─── 抽屉内就地 toast(组件无全局 Shell.toast;镜像 .toast 视觉,自给一条) ─── */
.pc-drawer .pc-toast {
position: absolute; right: 24px; bottom: 80px;
display: flex; align-items: center; gap: 10px;
max-width: 340px;
padding: 10px 14px;
background: var(--surface);
border: 1px solid var(--border-faint);
border-radius: var(--r-md);
box-shadow: var(--shadow-floating, 0 8px 24px rgba(0, 0, 0, .1));
animation: pc-toast-in .18s ease-out;
z-index: 2;
}
@keyframes pc-toast-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.pc-drawer .pc-toast .ic-t {
width: 24px; height: 24px; flex-shrink: 0;
display: grid; place-items: center;
background: var(--heat-12); color: var(--heat);
border: 1px solid var(--heat-20);
border-radius: var(--r-sm);
}
.pc-drawer .pc-toast .ic-t svg { width: 13px; height: 13px; }
.pc-drawer .pc-toast .txt { font-size: 13px; color: var(--accent-black); font-weight: 500; }
.pc-drawer .pc-toast .txt .mono {
display: block; margin-top: 2px;
font-family: var(--font-mono); font-size: 12px;
color: var(--black-alpha-48); letter-spacing: .02em;
}