/* ==========================================================
   v25.0 小程序装修设计器（72 套模板中心 + Theme Kit 真实主题图片资产）
   沿用 style.css 的 --brand / --clay / --r / --sh 设计变量，不另造色板
   浅色工作台；动效只用 transform / opacity；所有可交互元素含 hover / active / focus / disabled
   ========================================================== */

.dcr { --dcr-accent: var(--brand); --dcr-accent-soft: var(--brand-soft); }

/* ---------------- 顶部条 ---------------- */
.dcr-bar { align-items: center; gap: 10px; flex-wrap: wrap; }
.dcr-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dcr-title > b { font-size: 15px; color: var(--ink); white-space: nowrap; }
.dcr-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dcr-status.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dcr-status.off { background: var(--faint); box-shadow: 0 0 0 3px var(--line-soft); }
.dcr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcr-meta b { color: var(--ink-2); font-weight: 600; }
.dcr-meta i { font-style: normal; color: var(--line); margin: 0 5px; }
.dcr-tabs { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.dcr-tab { border: 0; background: transparent; color: var(--muted); font: 500 13px var(--font); padding: 7px 15px; cursor: pointer; transition: background .18s, color .18s; }
.dcr-tab + .dcr-tab { border-left: 1px solid var(--line); }
.dcr-tab:hover { background: var(--brand-soft); color: var(--brand); }
.dcr-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dcr-tab.act { background: var(--brand); color: #fff; }
.dcr-tab.act:hover { background: var(--brand-2); }

/* ---------------- 模板中心：筛选 ---------------- */
.dcr-center { margin-top: 12px; }
.dcr-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); }
.dcr-count { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dcr-count b { color: var(--brand); font-size: 14px; }

/* ---------------- 模板中心：加载/空/错 ---------------- */
.dcr-state { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dcr-skeleton { height: 320px; border-radius: var(--r); background: linear-gradient(90deg, var(--canvas) 25%, var(--line-soft) 37%, var(--canvas) 63%); background-size: 400% 100%; animation: dcr-shine 1.4s ease infinite; }
@keyframes dcr-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.dcr-state-err, .dcr-state-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); color: var(--muted); grid-template-columns: none; }
.dcr-state-err b, .dcr-state-empty b { color: var(--ink-2); font-size: 14px; }
.dcr-state-err span, .dcr-state-empty span { font-size: 12.5px; }

/* ---------------- 模板中心：网格（首张跨列，避免三张等宽卡片模板感） ---------------- */
.dcr-tpl-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dcr-tpl { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dcr-tpl:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: #cddbd7; }
.dcr-tpl.cur { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), var(--sh); }
.dcr-tpl.wide { grid-column: span 2; flex-direction: row; }
.dcr-tpl.wide .dcr-shot { width: 46%; flex: none; height: 340px; }
.dcr-tpl.wide .dcr-tpl-body { flex: 1; justify-content: center; padding: 20px 22px; }

/* 模板缩略图：v25.0 真实主题背景图 + 成套图标（图片为主，CSS 仅做兜底与遮罩） */
.dcr-shot { padding: 9px 9px 0; height: 300px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.dcr-shot-nav { display: flex; justify-content: space-between; align-items: center; font-size: 8px; padding: 5px 7px; margin: -9px -9px 0; }

.dcr-poster { position: relative; flex: 1 1 auto; min-height: 118px; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-start; }
.dcr-poster.ink-light { color: #fff; }
.dcr-poster.ink-dark { color: #1E2A22; }
.dcr-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.dcr-tpl:hover .dcr-poster-img { transform: scale(1.045); }
.dcr-poster-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(8,14,20,.34) 0%, rgba(8,14,20,.12) 46%, transparent 72%); }
.dcr-poster-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: 76%; padding: 9px 10px; }
.ink-light .dcr-poster-inner { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.ink-dark .dcr-poster-inner { text-shadow: 0 1px 3px rgba(255, 255, 255, .5); }
.dcr-poster-cap { font-size: 6.5px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .92; line-height: 1.2; }
.dcr-poster-title { font-size: 15px; line-height: 1.25; letter-spacing: .5px; }
.dcr-poster-sub { font-size: 7.5px; line-height: 1.35; opacity: .92; }
.dcr-poster-badge { position: absolute; z-index: 2; top: 8px; right: 8px; font-size: 7px; font-weight: 700; padding: 3px 6px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #222; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.dcr-poster-pat { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .5; }

/* 海报图案：纯 CSS 生成，不引入任何外链图片 */
.pat-rays { background-image: repeating-conic-gradient(from 0deg at 80% 10%, rgba(255,255,255,.22) 0 7deg, transparent 7deg 15deg); }
.pat-dots { background-image: radial-gradient(rgba(255,255,255,.4) 1.4px, transparent 1.5px); background-size: 13px 13px; }
.pat-grid { background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 16px 16px; }
.pat-waves { background-image: repeating-radial-gradient(circle at 92% 108%, transparent 0 13px, rgba(255,255,255,.2) 14px 15px); }
.pat-arch { background-image: radial-gradient(circle at 50% 128%, rgba(255,255,255,.3) 0 36%, transparent 37%); }
.pat-petal { background-image: radial-gradient(circle at 16% 20%, rgba(255,255,255,.35) 0 9%, transparent 10%), radial-gradient(circle at 84% 12%, rgba(255,255,255,.28) 0 12%, transparent 13%), radial-gradient(circle at 72% 84%, rgba(255,255,255,.24) 0 14%, transparent 15%); }
.pat-bamboo { background-image: repeating-linear-gradient(72deg, transparent 0 17px, rgba(255,255,255,.2) 18px 20px); }
.pat-snow { background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.75) 0 2px, transparent 3px), radial-gradient(circle at 70% 20%, rgba(255,255,255,.6) 0 2px, transparent 3px), radial-gradient(circle at 45% 75%, rgba(255,255,255,.55) 0 2px, transparent 3px), radial-gradient(circle at 88% 65%, rgba(255,255,255,.65) 0 2px, transparent 3px); background-size: 44px 44px; }
.pat-stripe { background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.22) 12px 19px); }
.pat-none { background-image: none; }

.dcr-shot-member { display: flex; align-items: center; gap: 4px; font-size: 6.8px; border-radius: 3px; padding: 3px 5px; }
.dcr-shot-member-ic { width: 11px; height: 11px; flex: none; object-fit: contain; }
.dcr-shot-member span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dcr-shot-member i { flex: none; font-style: normal; color: #fff; font-size: 6.5px; border-radius: 8px; padding: 2px 5px; }
.dcr-shot-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dcr-shot-entry { border: 1px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0; font-size: 7px; }
.dcr-shot-entry-ic { width: 17px; height: 17px; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.dcr-shot-entry-ic img { width: 12px; height: 12px; object-fit: contain; display: block; }

.dcr-shot-cats { display: flex; gap: 5px; font-size: 7.5px; }
.dcr-shot-cats span { padding: 2px 7px; border-radius: 8px; }
.dcr-shot-goods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; flex: 0 0 auto; min-height: 0; }
.dcr-shot-goods.lay-list, .dcr-shot-goods.lay-big { grid-template-columns: 1fr; }
.dcr-shot-good { border: 1px solid; padding: 3px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.dcr-shot-gimg { width: 100%; height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; }
.dcr-shot-gline { height: 3px; border-radius: 2px; }
.dcr-shot-gline.short { width: 58%; }
.dcr-shot-tab { display: flex; justify-content: space-around; border-top: 1px solid; padding: 4px 0; font-size: 7.5px; margin: 0 -9px; }

.dcr-tpl-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dcr-tpl-head { display: flex; align-items: center; gap: 8px; }
.dcr-tpl-head b { font-size: 14px; color: var(--ink); }
.dcr-cur { font-size: 10px; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 6px; }
.dcr-tpl-scene { font-size: 11.5px; color: var(--brand); }
.dcr-tpl-desc { font-size: 11.5px; color: var(--muted); line-height: 1.65; min-height: 38px; }
.dcr-tpl-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dcr-tpl-tags span { font-size: 10.5px; color: var(--muted); background: var(--canvas); border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 6px; }
.dcr-tpl-assets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }
.dcr-asset-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600;
  color: var(--brand-deep); background: var(--brand-soft); border: 1px solid rgba(15,95,82,.14);
  border-radius: 4px; padding: 2px 7px; }
.dcr-asset-chip.ghost { font-weight: 500; color: var(--faint); background: var(--canvas); border-color: var(--line-soft); text-transform: uppercase; letter-spacing: .4px; }
.dcr-asset-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; }
.dcr-tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.dcr-tpl-foot small { font-size: 11px; color: var(--faint); }

/* ---------------- 装修器：三栏 ---------------- */
.dcr-work { margin-top: 12px; display: grid; grid-template-columns: 208px minmax(0, 1fr) 336px; gap: 14px; align-items: start; }
.dcr-lib, .dcr-prop, .dcr-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.dcr-lib, .dcr-prop { max-height: calc(100vh - 150px); overflow-y: auto; }
.dcr-pane-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.dcr-pane-head b { font-size: 13px; color: var(--ink); }
.dcr-pane-head small { font-size: 11px; color: var(--faint); }

/* 组件库 */
.dcr-group { border-bottom: 1px solid var(--line-soft); }
.dcr-group-t { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; transition: background .15s; }
.dcr-group-t:hover { background: var(--canvas); }
.dcr-group-t small { font-size: 14px; color: var(--faint); }
.dcr-group-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 2px 12px 12px; }
.dcr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 66px; padding: 8px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: grab; text-align: left; font-family: var(--font); transition: border-color .16s, background .16s, transform .16s; }
.dcr-item:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.dcr-item:active:not(:disabled) { transform: translateY(0); }
.dcr-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.dcr-item:disabled, .dcr-item.dis { opacity: .45; cursor: not-allowed; }
.dcr-item-ic { font-size: 15px; font-weight: 700; color: var(--brand); line-height: 1; }
.dcr-item-n { font-size: 11.5px; color: var(--ink-2); }
.dcr-item small { font-size: 10px; color: var(--faint); }
.dcr-lib-tip { margin: 12px; padding: 10px 11px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; line-height: 1.7; }

/* 手机预览 */
.dcr-stage { padding-bottom: 12px; }
.dcr-phone { width: 340px; margin: 16px auto 0; border: 8px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: var(--sh-lg); overflow: hidden; }
.dcr-phone-top { height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; font-size: 10px; }
.dcr-phone-cap { letter-spacing: 2px; font-size: 8px; }
.dcr-screen { height: 620px; display: flex; flex-direction: column; overflow: hidden; border-radius: 0 0 22px 22px; }
.dcr-nav { height: 38px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; font-weight: 600; }
.dcr-scroll { flex: 1; overflow-y: auto; padding: 6px 8px 12px; }
.dcr-scroll::-webkit-scrollbar { width: 4px; }
.dcr-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 4px; }
.dcr-tabbar { height: 42px; flex: none; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid; font-size: 10.5px; }
.dcr-stage-note { text-align: center; font-size: 11px; color: var(--faint); margin-top: 10px; }

/* 预览模块块 */
.dcr-blk { position: relative; border: 1px dashed transparent; border-radius: 5px; padding: 4px 2px 6px; cursor: pointer; transition: border-color .16s, background .16s, opacity .16s, transform .16s; }
.dcr-blk:hover { border-color: #b9cbc6; }
.dcr-blk.sel { border: 1px solid var(--brand); background: rgba(15,95,82,.045); }
.dcr-blk.off { opacity: .42; }
.dcr-blk.dragging { opacity: .35; transform: scale(.99); }
.dcr-blk.over { border-top: 3px solid var(--brand); }
.dcr-blk-tools { position: absolute; top: -1px; right: 0; z-index: 2; display: none; align-items: center; gap: 2px; background: var(--ink); border-radius: 0 0 0 5px; padding: 3px 4px; }
.dcr-blk:hover .dcr-blk-tools, .dcr-blk.sel .dcr-blk-tools { display: flex; }
.dcr-blk-name { color: #fff; font-size: 9px; margin-right: 3px; }
.dcr-blk-tools button { border: 0; background: #3a4240; color: #fff; font-size: 10px; width: 19px; height: 18px; border-radius: 3px; cursor: pointer; padding: 0; transition: background .15s; }
.dcr-blk-tools button:hover:not(:disabled) { background: var(--brand); }
.dcr-blk-tools button:disabled { opacity: .35; cursor: not-allowed; }

/* 各模块预览（v25.0：主题图片资产 + 用户上传的真实文件） */
.dcr-p-search { border: 1px solid; border-radius: 14px; padding: 7px 11px; font-size: 10px; margin: 3px 0; display: flex; align-items: center; gap: 5px; }
.dcr-p-inline-ic { width: 12px; height: 12px; flex: none; object-fit: contain; }
.dcr-p-notice { display: flex; gap: 6px; align-items: center; border-radius: 5px; padding: 6px 8px; font-size: 9.5px; margin: 3px 0; }
.dcr-p-notice b { border-radius: 3px; padding: 1px 4px; background: rgba(0,0,0,.06); flex: none; }
.dcr-p-notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcr-p-banner, .dcr-p-image, .dcr-p-video { overflow: hidden; margin: 3px 0; }
.dcr-p-hero { position: relative; min-height: 92px; color: #fff; display: flex; align-items: flex-end; border-radius: 6px; overflow: hidden; }
.dcr-p-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dcr-p-hero-txt { position: relative; z-index: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.dcr-p-hero-txt b { font-size: 15px; }
.dcr-p-hero-txt small { font-size: 10px; opacity: .9; }
.dcr-p-banner-track { display: flex; gap: 3px; overflow: hidden; }
.dcr-p-banner-img { flex: 1; min-width: 0; }
.dcr-p-banner-img img, .dcr-p-image img, .dcr-p-video img { display: block; width: 100%; height: 92px; object-fit: cover; }
.dcr-p-ph { height: 92px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.04); font-size: 10px; }
.dcr-p-upload-ph { min-height: 92px; border: 1px dashed #c8d4d0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); }
.dcr-p-upload-ph span { font-size: 20px; line-height: 1; color: var(--brand); }
.dcr-p-upload-ph b { font-size: 10.5px; font-weight: 500; }
.dcr-p-upload-ph small { font-size: 9px; }
.dcr-p-upload-ph.themed { position: relative; padding: 0; border-style: solid; overflow: hidden; }
.dcr-p-upload-ph.themed > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dcr-p-upload-ph-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; color: #fff; text-shadow: 0 1px 7px rgba(0,0,0,.6); background: rgba(8,14,20,.24); width: 100%; }
.dcr-p-upload-ph-txt b { font-size: 11px; }
.dcr-p-upload-ph-txt small { font-size: 9px; opacity: .9; }
.dcr-p-cube { display: grid; grid-template-columns: repeat(var(--dcr-cols, 2), 1fr); margin: 3px 0; }
.dcr-p-cube-cell { height: 62px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.dcr-p-cube-cell img { width: 100%; height: 100%; object-fit: cover; }
.dcr-p-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 2px; margin: 6px 0; }
.dcr-p-nav-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dcr-p-nav-ic { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; overflow: hidden; }
.dcr-p-nav-ic img { width: 22px; height: 22px; object-fit: contain; }
.dcr-p-nav-cell small { font-size: 9px; }
.dcr-p-dine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 4px 0; }
.dcr-p-dine-cell { color: #fff; padding: 9px 4px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dcr-p-dine-ic { width: 19px; height: 19px; object-fit: contain; margin-bottom: 2px; }
.dcr-p-dine-cell b { font-size: 12px; }
.dcr-p-dine-cell small { font-size: 8px; opacity: .82; letter-spacing: .3px; }
.dcr-p-title { padding: 7px 2px 5px; display: flex; align-items: baseline; gap: 7px; }
.dcr-p-title b { font-size: 13px; }
.dcr-p-title small { font-size: 9.5px; }
.dcr-p-divider { height: 6px; margin: 6px 0; border-radius: 3px; }
.dcr-p-goods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 3px 0; }
.dcr-p-goods.lay-list, .dcr-p-goods.lay-big { grid-template-columns: 1fr; }
.dcr-p-good { border: 1px solid; padding: 5px; display: flex; gap: 6px; overflow: hidden; }
.dcr-p-gimg { width: 42px; height: 42px; flex: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dcr-p-ginfo { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dcr-p-ginfo b { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcr-p-ginfo small { font-size: 8.5px; }
.dcr-p-gfoot { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; }
.dcr-p-gfoot i { width: 15px; height: 15px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.dcr-p-coupon { display: flex; align-items: center; gap: 6px; padding: 9px 8px; margin: 3px 0; }
.dcr-p-coupon-ic { width: 17px; height: 17px; flex: none; object-fit: contain; }
.dcr-p-coupon b { font-size: 11px; }
.dcr-p-coupon small { font-size: 9px; opacity: .8; flex: 1; }
.dcr-p-coupon span { font-size: 9.5px; white-space: nowrap; }
.dcr-p-quick { display: flex; align-items: center; gap: 7px; border: 1px solid; padding: 8px; margin: 3px 0; }
.dcr-p-quick-ic { width: 28px; height: 28px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.dcr-p-quick-ic img { width: 18px; height: 18px; object-fit: contain; }
.dcr-p-quick > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dcr-p-quick b { font-size: 10.5px; }
.dcr-p-quick small { font-size: 9px; }
.dcr-p-quick em { font-style: normal; font-size: 9px; color: #fff; border-radius: 9px; padding: 3px 7px; }
.dcr-p-video { position: relative; }
.dcr-p-video-ph { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.dcr-p-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.dcr-p-shop { border: 1px solid; border-radius: 6px; padding: 8px; margin: 4px 0; display: flex; flex-direction: column; gap: 5px; font-size: 9.5px; }
.dcr-p-shop > div { display: flex; gap: 8px; }
.dcr-p-shop small { width: 52px; flex: none; }
.dcr-p-shop span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 右侧属性面板 ---------------- */
.dcr-prop-empty { padding: 22px 16px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.dcr-prop-form { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.dcr-field { margin-bottom: 11px; }
.dcr-field > label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.dcr-readonly { font-size: 12px; color: var(--ink-2); background: var(--canvas); border-radius: var(--r-sm); padding: 6px 9px; display: block; }
.dcr-color { display: flex; align-items: center; gap: 8px; }
.dcr-color input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.dcr-color input[type=color]:disabled { opacity: .5; cursor: not-allowed; }

.dcr-imgsec { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; margin-bottom: 12px; background: var(--canvas); }
.dcr-imgsec-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dcr-imgsec-t b { font-size: 12px; color: var(--ink-2); }
.dcr-imgsec-t small { font-size: 10.5px; color: var(--faint); }
.dcr-imglist { display: flex; flex-direction: column; gap: 8px; }
.dcr-imgrow { display: flex; gap: 7px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; }
.dcr-imgthumb { width: 46px; height: 46px; flex: none; border-radius: 4px; background: var(--canvas); border: 1px solid var(--line-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--faint); }
.dcr-imgthumb img { width: 100%; height: 100%; object-fit: cover; }
.dcr-imgmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dcr-imgdel { border: 0; background: var(--clay-soft); color: var(--clay); width: 20px; height: 20px; border-radius: 4px; cursor: pointer; font-size: 11px; flex: none; transition: background .15s; }
.dcr-imgdel:hover { background: var(--clay); color: #fff; }
.dcr-imgempty { font-size: 11px; color: var(--faint); padding: 8px 0 10px; }
.dcr-upload-btn { width: 100%; margin-top: 9px; }
.dcr-upload-err { margin-top: 7px; font-size: 11px; color: var(--clay); background: var(--clay-soft); border-radius: 4px; padding: 6px 8px; }

/* 模板皮肤层：主题背景图（固定骨架，不参与装修，选模板即刻出效果） */
.dcr-p-theme { position: relative; height: 108px; margin: 3px 0 7px; overflow: hidden; flex: none; }
.dcr-p-theme-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dcr-p-theme-mask { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,14,20,.44) 0%, rgba(8,14,20,.14) 55%, transparent 78%); }
.dcr-p-theme-txt { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
  justify-content: center; gap: 3px; padding: 12px 14px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); max-width: 76%; }
.dcr-p-theme-txt small { font-size: 7.5px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .9; }
.dcr-p-theme-txt b { font-size: 16px; line-height: 1.25; }
.dcr-p-theme-txt span { font-size: 9px; opacity: .92; }
.dcr-p-theme em { position: absolute; z-index: 2; top: 9px; right: 9px; font-style: normal;
  font-size: 8px; font-weight: 700; color: #222; background: rgba(255,255,255,.94);
  border-radius: 10px; padding: 3px 7px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* 属性面板：主题资产 */
.dcr-theme-sec { padding: 0 14px 14px; border-bottom: 1px solid var(--line-soft); }
.dcr-theme-sec .dcr-pane-head { margin: 0 -14px 12px; }
.dcr-theme-body { display: flex; flex-direction: column; gap: 10px; }
.dcr-theme-preview { position: relative; height: 104px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-soft); background: var(--canvas); }
.dcr-theme-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcr-theme-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 600; color: #fff;
  background: rgba(8,14,20,.62); border-radius: 4px; padding: 3px 7px; backdrop-filter: blur(4px); }
.dcr-theme-meta { display: flex; flex-direction: column; gap: 5px; }
.dcr-theme-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dcr-theme-line b { font-size: 11.5px; color: var(--ink-2); flex: none; }
.dcr-theme-line span { font-size: 10.5px; color: var(--faint); text-align: right; }
.dcr-theme-icos { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 3px; }
.dcr-theme-icos i { width: 100%; aspect-ratio: 1; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.dcr-theme-icos img { width: 76%; height: 76%; object-fit: contain; display: block; }
.dcr-theme-upload { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.dcr-theme-upload .el-button { margin-left: 0; }
.dcr-theme-hint { font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.dcr-global { padding: 0 14px 12px; border-bottom: 1px solid var(--line-soft); }
.dcr-global .dcr-pane-head { margin: 0 -14px 12px; }
.dcr-checks { padding: 0 14px 14px; }
.dcr-checks .dcr-pane-head { margin: 0 -14px 10px; }
.dcr-check { display: flex; align-items: flex-start; gap: 7px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.dcr-check:last-child { border-bottom: 0; }
.dcr-check > span { width: 15px; height: 15px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: var(--canvas); color: var(--faint); }
.dcr-check.ok > span { background: var(--green-soft); color: var(--green); }
.dcr-check.error > span { background: var(--clay-soft); color: var(--clay); }
.dcr-check b { color: var(--ink-2); font-weight: 500; flex: none; }
.dcr-check small { color: var(--faint); line-height: 1.5; }

/* ---------------- 发布对话框 ---------------- */
.dcr-pub-head { background: var(--brand-soft); color: var(--brand-deep); border-radius: var(--r-sm); padding: 11px 13px; font-size: 12.5px; line-height: 1.75; margin-bottom: 10px; }
.dcr-pub-done { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.dcr-pub-done > b { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.dcr-pub-done > div div { font-size: 14px; color: var(--ink); font-weight: 600; }
.dcr-pub-done small { font-size: 11.5px; color: var(--muted); }
.dcr-steps-t { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin: 10px 0 6px; }
.dcr-steps { font-size: 12px; color: var(--muted); line-height: 2; padding-left: 20px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .dcr-work { grid-template-columns: 180px minmax(0, 1fr) 300px; }
  .dcr-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcr-tpl.wide { grid-column: span 2; }
}
@media (max-width: 960px) {
  .dcr-work { grid-template-columns: 1fr; }
  .dcr-lib, .dcr-prop { max-height: none; }
  .dcr-group-items { grid-template-columns: repeat(4, 1fr); }
  .dcr-tpl-grid { grid-template-columns: 1fr; }
  .dcr-tpl.wide { grid-column: span 1; flex-direction: column; }
  .dcr-tpl.wide .dcr-shot { width: auto; }
  .dcr-count { margin-left: 0; }
}
