889 lines
23 KiB
CSS
889 lines
23 KiB
CSS
/* ============================================================
|
|
product-create-upload · 新建商品(上传原图 + 基本信息)
|
|
像素基线: public/exact/_archive/.../product-create-v2.html
|
|
只用 design-restraint.css 的 token · 共享类 (.page-head/.field/
|
|
.input/.select/.textarea/.btn/.bullet-list) 直接复用,本文件只放
|
|
该页专属布局(双栏卡片 / 原图槽位 / 提示框 / 吸底操作栏)。
|
|
全部规则 scope 在 .product-create-page 下,避免污染他页。
|
|
============================================================ */
|
|
|
|
.product-create-page .pc-inner {
|
|
width: min(1560px, 100%);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* ─── 主表单双栏 ─── */
|
|
.product-create-page .form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1.05fr 1fr;
|
|
gap: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.product-create-page .form-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: var(--r-md);
|
|
padding: 24px;
|
|
}
|
|
.product-create-page .form-card-wide { margin-bottom: 24px; }
|
|
|
|
.product-create-page .form-card .card-h {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.product-create-page .form-card .card-h h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--accent-black);
|
|
}
|
|
.product-create-page .form-card .req-tag {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
padding: 2px 7px;
|
|
background: var(--crimson-bg);
|
|
color: var(--accent-crimson);
|
|
border: 1px solid var(--crimson-bd);
|
|
border-radius: var(--r-sm);
|
|
letter-spacing: .04em;
|
|
}
|
|
.product-create-page .form-card .opt-tag {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
padding: 2px 7px;
|
|
background: var(--background-lighter);
|
|
color: var(--black-alpha-56);
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: var(--r-sm);
|
|
letter-spacing: .04em;
|
|
}
|
|
.product-create-page .form-card .card-sub {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--black-alpha-48);
|
|
margin: -10px 0 14px;
|
|
letter-spacing: .02em;
|
|
}
|
|
|
|
/* 字段:本页卡片内最后一个 field 去掉底距 */
|
|
.product-create-page .field-last { margin-bottom: 0; }
|
|
.product-create-page .form-card .field-hint { margin: 4px 0 8px; }
|
|
|
|
/* ─── 原图槽位 ─── */
|
|
.product-create-page .photo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
.product-create-page .photo-slot {
|
|
aspect-ratio: 1;
|
|
border: 1px dashed var(--border-faint);
|
|
border-radius: var(--r-md);
|
|
background: var(--background-lighter);
|
|
display: grid;
|
|
place-items: center;
|
|
gap: 4px;
|
|
color: var(--black-alpha-32);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
letter-spacing: .04em;
|
|
overflow: hidden;
|
|
position: relative;
|
|
transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
|
|
}
|
|
.product-create-page .photo-slot-add { cursor: pointer; }
|
|
.product-create-page .photo-slot-add:hover {
|
|
border-color: var(--heat);
|
|
color: var(--heat);
|
|
background: var(--heat-8);
|
|
}
|
|
.product-create-page .photo-slot .plus {
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 1px solid currentColor;
|
|
border-radius: var(--r-sm);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
.product-create-page .photo-slot .plus svg { width: 12px; height: 12px; }
|
|
.product-create-page .photo-slot .slot-label {
|
|
position: absolute;
|
|
top: 5px;
|
|
left: 5px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
background: var(--surface);
|
|
color: var(--black-alpha-48);
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: var(--r-sm);
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
/* ─── 上传提示(虚线 tip) ─── */
|
|
.product-create-page .upload-tip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 14px;
|
|
padding: 10px 12px;
|
|
background: var(--heat-8);
|
|
border: 1px dashed var(--heat-40);
|
|
border-radius: var(--r-md);
|
|
font-size: 12px;
|
|
color: var(--accent-black);
|
|
line-height: 1.5;
|
|
}
|
|
.product-create-page .upload-tip svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--heat);
|
|
flex-shrink: 0;
|
|
}
|
|
.product-create-page .upload-tip strong { color: var(--heat); font-weight: 600; }
|
|
|
|
/* ─── AI 提示 banner(虚线 tip · 中性) ─── */
|
|
.product-create-page .ai-tip {
|
|
margin: -6px 0 16px;
|
|
padding: 10px 12px;
|
|
background: var(--background-lighter);
|
|
border: 1px dashed var(--border-faint);
|
|
border-radius: var(--r-md);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: var(--black-alpha-64);
|
|
line-height: 1.55;
|
|
}
|
|
.product-create-page .ai-tip svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
color: var(--heat);
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
.product-create-page .ai-tip strong { color: var(--accent-black); font-weight: 600; }
|
|
|
|
/* ─── 卖点列表 · 复用 §4.17.5 .bullet-list 语义 ───
|
|
共享定义 scope 在 .np-body 下,这里把同一套 token 规则
|
|
挂到本页根,视觉与 restraint.css 完全一致。 */
|
|
.product-create-page .bullet-list { list-style: none; padding: 0; }
|
|
.product-create-page .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-md);
|
|
margin-bottom: 6px;
|
|
font-size: 13px;
|
|
color: var(--accent-black);
|
|
transition: border-color var(--t-base), background var(--t-base);
|
|
}
|
|
.product-create-page .bullet-list li.bl-item:hover { border-color: var(--black-alpha-24); }
|
|
.product-create-page .bullet-list li.bl-add { background: var(--surface); border-style: dashed; }
|
|
.product-create-page .bullet-list li.bl-add:focus-within { border-color: var(--heat-40); }
|
|
.product-create-page .bullet-list .num {
|
|
width: 20px;
|
|
height: 20px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: var(--r-sm);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--black-alpha-56);
|
|
display: grid;
|
|
place-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.product-create-page .bullet-list li.bl-add .num {
|
|
background: transparent;
|
|
color: var(--heat);
|
|
border-color: var(--heat-40);
|
|
}
|
|
.product-create-page .bullet-list .bl-text { flex: 1; min-width: 0; }
|
|
.product-create-page .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;
|
|
}
|
|
.product-create-page .bullet-list .bl-input::placeholder { color: var(--black-alpha-48); }
|
|
.product-create-page .bullet-list .bl-x {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--black-alpha-32);
|
|
border: 0;
|
|
border-radius: var(--r-sm);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transition: opacity var(--t-base), background var(--t-base), color var(--t-base);
|
|
}
|
|
.product-create-page .bullet-list li.bl-item:hover .bl-x { opacity: 1; }
|
|
.product-create-page .bullet-list .bl-x:hover { background: var(--crimson-bg); color: var(--accent-crimson); }
|
|
.product-create-page .bullet-list .bl-x svg { width: 11px; height: 11px; }
|
|
|
|
/* ─── 底部操作行(吸底) ─── */
|
|
.product-create-page .form-foot {
|
|
position: sticky;
|
|
bottom: 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: var(--r-md);
|
|
padding: 14px 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-top: 8px;
|
|
}
|
|
.product-create-page .form-foot .req-info {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--black-alpha-48);
|
|
letter-spacing: .02em;
|
|
}
|
|
.product-create-page .form-foot .req-info .ok { color: var(--accent-forest); }
|
|
.product-create-page .form-foot .req-info .miss { color: var(--accent-crimson); }
|
|
.product-create-page .form-foot .foot-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ─── 响应式 · 窄屏单列 ─── */
|
|
@media (max-width: 1100px) {
|
|
.product-create-page .form-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ============================================================
|
|
新建商品抽屉 · 对照影擎 product-drawer。不重写共享 .btn/.input/.drawer。
|
|
============================================================ */
|
|
.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;
|
|
}
|
|
.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); }
|
|
|
|
.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);
|
|
}
|
|
.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;
|
|
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;
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
}
|
|
.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);
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
max-height: min(360px, 60vh);
|
|
overflow-y: auto;
|
|
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);
|
|
}
|
|
.pcd-select.open .pcd-select-menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
.pcd-select.is-more-open .pcd-select-menu {
|
|
max-height: min(640px, 78vh);
|
|
padding-bottom: 10px;
|
|
}
|
|
.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-select-more-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
color: var(--pcd-muted);
|
|
}
|
|
.pcd-select-more-toggle svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex: 0 0 auto;
|
|
color: var(--pcd-muted);
|
|
transition: transform 180ms ease;
|
|
}
|
|
.pcd-select-more-toggle.is-open,
|
|
.pcd-select-more-toggle.is-open svg { color: var(--accent-black); }
|
|
.pcd-select-more-toggle.is-open svg { transform: rotate(90deg); }
|
|
.pcd-select-more-item { padding-left: 22px; }
|
|
|
|
.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;
|
|
}
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
.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; }
|
|
|
|
.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);
|
|
}
|
|
.pcd-foot > span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
color: var(--pcd-muted);
|
|
font-size: 10px;
|
|
}
|
|
.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;
|
|
}
|
|
.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);
|
|
}
|
|
.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; }
|
|
|
|
.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;
|
|
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);
|
|
}
|
|
.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;
|
|
}
|
|
.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;
|
|
}
|
|
.pcd-gallery-x {
|
|
top: 9px;
|
|
right: 9px;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 9px;
|
|
}
|
|
.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; }
|
|
}
|
|
|