/* ============ 产品库（原客服看板）· 列表 + 详情 ============
   2026-11-18 改版。只用 .pl-* / .prod-root / #view-cs / .pl-drawer / .pl-modal 前缀，
   不覆盖 app.css 里别人的样式。 */

/* 只让产品库这一页铺满（别的页面仍走 .view{max-width:1160px}） */
#view-cs { max-width: none; width: auto; margin: -22px -20px -40px; }
@media (max-width: 900px) { #view-cs { margin: 0; } }

.prod-root { display: flex; align-items: stretch; min-height: calc(100vh - 52px); background: var(--bg); }

/* ---------- 左：列表 ---------- */
.pl-side {
  width: 400px; flex: 0 0 400px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 52px;
  height: calc(100vh - 52px);
}
.pl-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line-2); }
.pl-title { display: flex; align-items: baseline; gap: 9px; }
.pl-title h1 { font-size: 19px; }
.pl-count { font-size: 12px; color: var(--text-mute); }
.pl-search {
  margin-top: 11px; height: 34px; display: flex; align-items: center; gap: 8px;
  background: var(--input); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
}
.pl-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 13.5px; background: transparent; color: var(--text); min-width: 0; }
.pl-search input::placeholder { color: #a2a9b3; }
.pl-search kbd { font-size: 10px; color: var(--text-mute); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; background: var(--surface-2); }
.pl-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-cat {
  font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-2); background: #fff; cursor: pointer; user-select: none;
}
.pl-cat:hover { border-color: #c9ccd2; }
.pl-cat.on { background: #24282f; border-color: #24282f; color: #fff; font-weight: 600; }
.pl-cat b { font-weight: 600; opacity: .58; margin-left: 3px; }
.pl-cat.on b { opacity: .72; }

.pl-list { flex: 1; overflow: auto; padding: 6px 8px 16px; }
.pl-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center;
  padding: 9px 9px; border-radius: 10px; cursor: pointer; position: relative;
}
.pl-row:hover { background: var(--surface-2); }
.pl-row.on { background: #eef2f6; }
.pl-row.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.pl-th { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: 0 0 48px; }
.pl-th img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.pl-th.empty { display: flex; align-items: center; justify-content: center; border: 1px dashed #d3d8de; color: #b3bac3; font-size: 10.5px; line-height: 1.2; white-space: nowrap; }
.pl-t { min-width: 0; }
.pl-t b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-t span { font-size: 11.5px; color: var(--text-mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pl-flag { font-size: 10.5px; color: var(--ok); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pl-flag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.pl-flag.no { color: #b0b7c0; }
.pl-flag.warn { color: var(--danger); }
.pl-empty { padding: 40px 16px; text-align: center; color: var(--text-mute); font-size: 13px; }
.pl-foot { padding: 9px 16px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-mute); display: flex; justify-content: space-between; }

/* ---------- 右：详情 ---------- */
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-bar { display: flex; align-items: center; gap: 10px; padding: 13px 26px; border-bottom: 1px solid var(--line-2); background: #fff; }
.pl-crumb { font-size: 12.5px; color: var(--text-mute); display: flex; align-items: center; gap: 7px; min-width: 0; }
.pl-crumb b { color: var(--text-2); font-weight: 600; }
.pl-tools { margin-left: auto; display: flex; gap: 8px; }
.pl-scroll { flex: 1; overflow: auto; padding: 18px 26px 34px; }

.pl-dtop { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.pl-dtop h2 { font-size: 25px; letter-spacing: -.02em; }
.pl-sub { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.pl-chips { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.pl-dtop .pl-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }

.pl-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.pl-chip.gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-line); }
.pl-chip.grey { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.pl-chip.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #cfe6da; }

.pl-cols { display: grid; grid-template-columns: minmax(340px, 42%) 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .pl-cols { grid-template-columns: 1fr; } }

.pl-shot { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(30, 36, 44, .05), 0 6px 18px -12px rgba(30, 36, 44, .18); }
.pl-shot .pic { aspect-ratio: 4/3; background: var(--surface-2); position: relative; cursor: zoom-in; }
.pl-shot .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-shot .pic.blank { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 9px, #f4f6f8 9px, #f4f6f8 18px); cursor: default; aspect-ratio: auto; height: 300px; }
.pl-shot .pic .tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; background: rgba(32, 36, 42, .72); color: #fff; border-radius: 5px; padding: 2px 8px; }
.pl-shot .pic .blankbox { text-align: center; color: #a7aeb8; font-size: 12.5px; line-height: 1.9; }
.pl-shot .pic .blankbox svg { opacity: .5; display: block; margin: 0 auto 4px; }
.pl-shot .pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.pl-slot { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); position: relative; cursor: pointer; }
.pl-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-slot.dash { border-style: dashed; display: grid; place-items: center; color: var(--text-mute); font-size: 11.5px; text-align: center; line-height: 1.6; }
.pl-slot.dash em { font-style: normal; display: block; font-size: 16px; color: #b9c0c9; line-height: 1; margin-bottom: 3px; }
.pl-slot .tag { position: absolute; left: 6px; top: 6px; font-size: 10.5px; background: rgba(32, 36, 42, .72); color: #fff; border-radius: 4px; padding: 1px 5px; }
.pl-shot .cap { padding: 0 12px 12px; font-size: 11.5px; color: var(--text-mute); display: flex; gap: 8px; flex-wrap: wrap; }
.pl-shot .cap span { background: var(--surface-2); border-radius: 5px; padding: 1px 7px; }

.pl-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(30, 36, 44, .05), 0 6px 18px -12px rgba(30, 36, 44, .18); overflow: hidden; }
.pl-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pl-card-head h3 { font-size: 13.5px; }
.pl-card-head .mini { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; }
.pl-card-head .mini:hover { background: var(--surface-2); border-color: #c9ccd2; }

/* 图片上的「复制 / 粘贴」 */
.pl-shot .pic .tools, .pl-slot .tools, .pl-imgslot .tools {
  position: absolute; right: 8px; bottom: 8px; display: flex; gap: 5px; z-index: 3;
  opacity: 0; transition: opacity .15s;
}
.pl-shot .pic:hover .tools, .pl-slot:hover .tools, .pl-imgslot:hover .tools { opacity: 1; }
.tools .mini {
  height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; border: 0;
  background: rgba(32, 36, 42, .78); color: #fff; cursor: pointer; backdrop-filter: blur(3px);
}
.tools .mini:hover { background: rgba(32, 36, 42, .95); }
.tools .mini.danger { background: rgba(179, 82, 74, .86); }
.tools .mini.danger:hover { background: rgba(179, 82, 74, 1); }
.pl-shot .pic.armed, .pl-slot.armed, .pl-imgslot.armed { outline: 2px dashed var(--accent-2); outline-offset: -3px; }
.pl-card-head .cm { margin-left: auto; font-size: 11.5px; color: var(--text-mute); }
.pl-kv { display: grid; grid-template-columns: 1fr 1fr; }
.pl-kv .cell { padding: 9px 16px; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; font-size: 13px; min-width: 0; }
.pl-kv .cell:nth-child(odd) { border-right: 1px solid var(--line-2); }
.pl-kv .cell span { color: var(--text-mute); flex: 0 0 86px; white-space: nowrap; }
.pl-kv .cell b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.pl-kv .cell.full { grid-column: 1/-1; border-right: 0; }
.pl-note { padding: 13px 16px; font-size: 13px; color: var(--text-2); line-height: 1.75; white-space: pre-wrap; }
.pl-kb { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.pl-kb .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--gold-bg); color: var(--gold); flex: none; }
.pl-kb.no .ic { background: var(--surface-3); color: var(--text-mute); }
.pl-kb b { font-size: 13px; display: block; }
.pl-kb p { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.pl-kb .btn { margin-left: auto; flex: none; }

.pl-also { margin-top: 20px; }
.pl-also .h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pl-also .h h3 { font-size: 13.5px; }
.pl-also .h span { font-size: 11.5px; color: var(--text-mute); }
.pl-also .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.pl-mini { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; cursor: pointer; }
.pl-mini:hover { border-color: #cdd3da; }
.pl-mini .im { aspect-ratio: 1/1; background: var(--surface-2); }
.pl-mini .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-mini .im.empty { display: grid; place-items: center; color: #b3bac3; font-size: 10.5px; border-bottom: 1px dashed #e2e6ea; }
.pl-mini .tx { padding: 7px 9px 9px; }
.pl-mini .tx b { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mini .tx span { font-size: 10.5px; color: var(--text-mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 编辑抽屉 ---------- */
.pl-drawer-mask, .pl-modal-mask { position: fixed; inset: 0; background: rgba(20, 26, 33, .38); z-index: 60; }
.pl-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 540px; max-width: 96vw; background: #fff;
  border-left: 1px solid var(--line); box-shadow: -30px 0 70px -30px rgba(20, 26, 33, .35);
  z-index: 61; display: flex; flex-direction: column;
}
.pl-drawer-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.pl-drawer-head h2 { font-size: 16px; }
.pl-x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text-3); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.pl-x:hover { background: var(--surface-2); }
.pl-drawer-body { flex: 1; overflow: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.pl-sect h5 { margin: 0 0 9px; font-size: 11.5px; letter-spacing: .14em; color: var(--text-mute); font-weight: 700; }
.pl-imgpair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-imgtrio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pl-imgquad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 方案 B：4 连方图 ---------- */
.pl-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.pl-strip .pl-slot { aspect-ratio: 1/1; border-radius: 12px; }
.pl-strip .pl-slot img { border-radius: 11px; }
.pl-stripcap { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-mute); margin-bottom: 16px; }
.pl-stripcap span { background: var(--surface-2); border-radius: 5px; padding: 1px 7px; }
.pl-cols2 { display: grid; grid-template-columns: minmax(320px, 38%) 1fr; gap: 18px; align-items: start; }
.pl-cols2 .pl-kv { grid-template-columns: 1fr; }
.pl-cols2 .pl-kv .cell:nth-child(odd) { border-right: 0; }
.pl-cols2 .pl-kv .cell b { white-space: normal; }
@media (max-width: 1200px) { .pl-cols2 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .pl-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- 快捷回复 ---------- */
.pl-faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.faq-head h3 { font-size: 13.5px; }
.faq-sub { font-size: 11.5px; color: var(--text-mute); }
.faq-tools { margin-left: auto; display: flex; gap: 6px; }
.faq-list { max-height: none; }
.faq-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.faq-row:last-child { border-bottom: 0; }
.faq-row:hover { background: var(--surface-2); }
.faq-q { font-size: 13px; font-weight: 650; display: flex; gap: 6px; align-items: flex-start; }
.faq-q i, .faq-a i { font-style: normal; flex: none; font-size: 11px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.faq-a { font-size: 12.6px; color: var(--text-2); line-height: 1.72; margin-top: 4px; display: flex; gap: 6px; align-items: flex-start; white-space: pre-wrap; }
.faq-a i { color: var(--text-mute); }
.faq-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.faq-tags span { font-size: 10.5px; color: var(--text-mute); background: var(--surface-2); border-radius: 4px; padding: 1px 6px; }
.faq-acts { display: flex; gap: 5px; align-items: flex-start; }
.faq-acts .mini { height: 24px; padding: 0 9px; font-size: 11.5px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; }
.faq-acts .mini:hover { background: var(--surface-2); }
.faq-acts .mini.primary { background: #24282f; border-color: #24282f; color: #fff; }
.faq-acts .mini.danger { color: var(--danger); }
.faq-acts .mini.danger:hover { background: var(--danger-bg); }
.faq-empty { padding: 26px 16px; text-align: center; color: var(--text-mute); font-size: 12.5px; }

/* 快捷回复弹窗 */
.pl-faq-mask { position: fixed; inset: 0; background: rgba(20, 26, 33, .38); z-index: 70; }
.pl-faq-dlg {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 640px; max-width: 94vw;
  max-height: 86vh; background: #fff; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(16, 20, 26, .5);
  z-index: 71; display: flex; flex-direction: column; overflow: hidden;
}
.faq-dlg-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.faq-dlg-head h2 { font-size: 16.5px; }
.faq-dlg-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 13px; overflow: auto; }
.faq-dlg-body .pl-f label { font-size: 12px; color: var(--text-3); }
.faq-dlg-body .pl-f input, .faq-dlg-body .pl-f textarea { height: 38px; }
.faq-dlg-body .pl-f textarea { height: 110px; padding: 9px 11px; }
.faq-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.faq-hint { font-size: 11.5px; color: var(--text-mute); line-height: 1.7; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.tpl-card:hover { border-color: #c9ccd2; background: var(--surface-2); }
.tpl-card b { display: block; font-size: 13px; }
.tpl-card span { display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-imgslot { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface-2); position: relative; cursor: pointer; }
.pl-imgslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-imgslot.dash { border-style: dashed; border-color: #d3d8de; display: grid; place-items: center; color: var(--text-mute); font-size: 12px; text-align: center; line-height: 1.9; }
.pl-imgslot.dash em { font-style: normal; font-size: 20px; display: block; color: #b9c0c9; line-height: 1; }
.pl-imgslot .tag { position: absolute; left: 7px; top: 7px; font-size: 11px; background: rgba(32, 36, 42, .72); color: #fff; border-radius: 5px; padding: 1px 6px; }
.pl-imgslot .del { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px; background: rgba(32, 36, 42, .72); color: #fff; display: grid; place-items: center; font-size: 12px; }
.pl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-f { display: flex; flex-direction: column; gap: 5px; }
.pl-f label { font-size: 12px; color: var(--text-3); }
.pl-f input, .pl-f select, .pl-f textarea {
  height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px;
  font: inherit; font-size: 13.5px; background: #fff; color: var(--text); outline: 0;
}
.pl-f textarea { height: 70px; padding: 8px 11px; resize: vertical; line-height: 1.55; }
.pl-f input:focus, .pl-f select:focus, .pl-f textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(95, 114, 134, .12); }
.pl-f.wide { grid-column: 1/-1; }
.pl-prow { display: grid; grid-template-columns: 128px 1fr 26px; gap: 8px; align-items: center; margin-bottom: 8px; }
.pl-prow input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; background: #fff; outline: 0; min-width: 0; }
.pl-prow input:focus { border-color: var(--accent-2); }
.pl-prow input.k { background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.pl-prow .del { color: #b0b7c0; text-align: center; cursor: pointer; font-size: 15px; user-select: none; }
.pl-prow .del:hover { color: var(--danger); }
.pl-addrow { font-size: 12.5px; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.pl-hint { font-size: 11.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.7; }
.pl-drawer-foot { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fff; }
.pl-drawer-foot .rm { margin-right: auto; color: var(--danger); background: transparent; border: 0; font: inherit; font-size: 13px; cursor: pointer; }

/* ---------- 设置弹窗 ---------- */
.pl-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 720px; max-width: 94vw;
  max-height: 86vh; background: #fff; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(16, 20, 26, .5);
  z-index: 61; display: flex; flex-direction: column; overflow: hidden;
}
.pl-modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.pl-modal-head h2 { font-size: 17px; }
.pl-modal-body { flex: 1; overflow: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 20px; }
.pl-modal-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); justify-content: flex-end; }
.pl-catrow { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-2); }
.pl-catrow .nm { font-size: 13.5px; font-weight: 600; min-width: 90px; }
.pl-catrow .cnt { font-size: 11.5px; color: var(--text-mute); min-width: 62px; }
.pl-catrow input { height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 9px; font: inherit; font-size: 13px; outline: 0; }
.pl-catrow .sp { flex: 1; }
.pl-catrow .mini { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; }
.pl-catrow .mini:hover { background: var(--surface-2); }
.pl-catrow .mini.rm { color: var(--danger); }
.pl-catrow.off .nm { color: #a9b0b9; text-decoration: line-through; }
.pl-tplbox { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.pl-tplchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; background: var(--surface-2); }
.pl-tplchip .x { cursor: pointer; color: #b0b7c0; }
.pl-tplchip .x:hover { color: var(--danger); }
.pl-rowbtns { display: flex; gap: 6px; }

/* 小屏 */
@media (max-width: 900px) {
  .prod-root { flex-direction: column; }
  .pl-side { width: auto; flex: none; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .pl-list { max-height: 46vh; }
  .pl-bar, .pl-scroll { padding-left: 14px; padding-right: 14px; }
  .pl-kv { grid-template-columns: 1fr; }
  .pl-kv .cell:nth-child(odd) { border-right: 0; }
  .pl-imgpair, .pl-fields { grid-template-columns: 1fr; }
}

/* ---------- 就地编辑（小窗） ---------- */
.pl-dtop h2 { cursor: text; }
.pl-dtop h2:hover { background: var(--surface-2); border-radius: 6px; }
.pl-kv .cell.editable { cursor: text; }
.pl-kv .cell.editable:hover { background: var(--surface-2); }
.pl-note.editable { cursor: text; }
.pl-note.editable:hover { background: var(--surface-2); }
.pl-addrow { padding: 9px 16px; font-size: 12.5px; color: var(--accent); cursor: pointer; border-top: 1px solid var(--line-2); }
.pl-addrow:hover { background: var(--surface-2); }
.pl-chip.clickable { cursor: pointer; }
.pl-chip.clickable:hover { filter: brightness(.96); }
.pl-chip.todo { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-line); }
.pl-chip.todo:hover { background: #f7e9cf; }

.pl-pop {
  position: fixed; z-index: 80; width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 44px -16px rgba(16, 20, 26, .45); padding: 12px;
}
.pl-pop h4 { margin: 0 0 8px; font-size: 11.5px; color: var(--text-mute); font-weight: 700; letter-spacing: .06em; }
.pl-pop .pl-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; }
.pl-pop .pl-f label { font-size: 11.5px; color: var(--text-mute); }
.pl-pop .pl-f input, .pl-pop .pl-f textarea {
  border: 1px solid var(--accent-2); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px;
  outline: 0; box-shadow: 0 0 0 3px rgba(95, 114, 134, .12); background: #fff;
}
.pl-pop .pl-f textarea { height: 92px; resize: vertical; line-height: 1.65; }
.pl-pop .row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pl-pop .row .rm { margin-right: auto; color: var(--danger); font-size: 12.5px; cursor: pointer; }
.pl-pop .row .rm:hover { text-decoration: underline; }
.pl-pop .row button { height: 28px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; }
.pl-pop .row button:hover { background: var(--surface-2); }
.pl-pop .row button.primary { background: #24282f; border-color: #24282f; color: #fff; }
.pl-pop .pl-catmenu { display: flex; flex-direction: column; gap: 2px; }
.pl-pop .pl-catmenu div { padding: 7px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.pl-pop .pl-catmenu div:hover { background: var(--surface-2); }
.pl-pop .pl-catmenu div.on { background: #24282f; color: #fff; font-weight: 600; }

/* ================= 方案 A：左图右参数 + 信息 ================= */
.pl-a { display: grid; grid-template-columns: 440px 1fr; gap: 22px; align-items: start; }
@media (max-width: 1200px) { .pl-a { grid-template-columns: 1fr; } }
.pl-a-left { display: flex; flex-direction: column; gap: 10px; }
.pl-big { position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.pl-big img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.pl-big.dash, .pl-sm.dash { cursor: pointer; }
.pl-big .tag, .pl-sm .tag { position: absolute; left: 9px; top: 9px; font-size: 11px; font-weight: 600; background: rgba(32,36,42,.72); color: #fff; border-radius: 5px; padding: 2px 8px; z-index: 2; }
.pl-sm3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pl-sm { position: relative; aspect-ratio: 1/1; border-radius: 11px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.pl-sm img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.pl-sm.dash, .pl-big.dash { display: grid; place-items: center; border-style: dashed; color: var(--text-mute); font-size: 12px; text-align: center; line-height: 1.8; cursor: pointer; }
.pl-sm.dash em, .pl-big.dash em { font-style: normal; display: block; font-size: 18px; color: #b9c0c9; line-height: 1; margin-bottom: 4px; }
.pl-assetsline { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--text-mute); }
.pl-assetsline b { color: var(--text-2); }

.pl-a-right h2 { font-size: 25px; cursor: text; }
.pl-a-right h2:hover { background: var(--surface-2); border-radius: 6px; }
.pl-a-right .pl-sub { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.pl-a-right .pl-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.pl-grp { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(30,36,44,.05), 0 8px 24px -18px rgba(30,36,44,.3); margin-top: 12px; overflow: hidden; }
.pl-grp-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.pl-grp-h h3 { font-size: 13px; }
.pl-grp-h .cm { margin-left: auto; font-size: 11.5px; color: var(--text-mute); }
.pl-kvrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; align-items: start; }
.pl-kvrow:last-child { border-bottom: 0; }
.pl-kvrow > span { color: var(--text-mute); }
.pl-kvrow b { font-weight: 600; color: var(--text); }
.pl-kvrow b em { font-style: normal; color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.pl-kvrow.editable { cursor: text; }
.pl-kvrow.editable:hover { background: var(--surface-2); }
.pl-parts { display: flex; flex-direction: column; gap: 4px; }
.pl-part { display: flex; gap: 8px; align-items: baseline; font-size: 12.8px; }
.pl-part i { font-style: normal; color: var(--text-mute); min-width: 42px; }
.pl-part b { font-weight: 600; }
.pl-part em { font-style: normal; color: var(--text-3); font-size: 12px; }
.pl-a-right .pl-addrow { margin: 10px 0 0; border: 1px dashed #d3d8de; border-radius: 10px; text-align: center; padding: 8px; background: #fff; }

.pl-info { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(30,36,44,.05), 0 8px 24px -18px rgba(30,36,44,.3); overflow: hidden; }
.pl-info-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.pl-info-h h3 { font-size: 13.5px; }
.pl-info-h .cm { margin-left: auto; font-size: 11.5px; color: var(--text-mute); }
.pl-info-b { padding: 12px 14px 14px; font-size: 13px; line-height: 2; color: var(--text-2); white-space: pre-wrap; }
.pl-info-b.editable { cursor: text; }
.pl-info-b.editable:hover { background: var(--surface-2); }

/* 参数小窗里的行 */
.pl-pop .pl-frow { display: grid; grid-template-columns: 76px minmax(0,1fr) minmax(0,1fr) 18px; gap: 6px; align-items: center; margin-bottom: 6px; }
.pl-pop .pl-frow input { height: 32px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; outline: 0; box-sizing: border-box; }
.pl-pop .pl-frow input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(95,114,134,.12); }
.pl-pop .pl-frow .x { color: #b0b7c0; text-align: center; cursor: pointer; }
.pl-pop .pl-flabel { display: block; font-size: 11.5px; color: var(--text-mute); margin: 2px 0 6px; }
.pl-pop .pl-addrow2 { display: inline-block; font-size: 12.5px; color: var(--accent); cursor: pointer; margin: 2px 0 8px; }

/* 方案 A 图位上的 复制 / 粘贴 / 删除（常显，别让人找不到） */
.pl-big .tools, .pl-sm .tools {
  position: absolute; right: 8px; bottom: 8px; display: flex; gap: 5px; z-index: 4; opacity: 1;
}
.pl-big .tools .mini, .pl-sm .tools .mini {
  height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; border: 0;
  background: rgba(32, 36, 42, .78); color: #fff; cursor: pointer; backdrop-filter: blur(3px);
}
.pl-big .tools .mini:hover, .pl-sm .tools .mini:hover { background: rgba(32, 36, 42, .95); }
.pl-big .tools .mini.danger, .pl-sm .tools .mini.danger { background: rgba(179, 82, 74, .88); }
