/* ==============================================
 * 小程序装修编辑器 + 内置预览模块样式
 * ============================================== */

.decoration-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-height) - 24px);
}

.dec-toolbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-lighter);
}

.dec-toolbar .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dec-toolbar .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dec-page-tabs {
  margin: 0;
  padding: 0 16px;
  background: var(--bg-cool-50);
}

.dec-page-tabs .fp-tab {
  display: flex;
  align-items: center;
}

.dec-body {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  background: var(--bg-page);
  min-height: 0;
}

.dec-section-title {
  padding: 12px 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* ===== 左侧 ===== */
.dec-left {
  background: #fff;
  border-right: 1px solid var(--border-lighter);
  overflow-y: auto;
}

.dec-mod-lib {
  padding: 0 10px;
}

.dec-mod-lib-item {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  margin-bottom: 6px;
  transition-property: border-color, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.dec-mod-lib-item:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-bg);
}

.dec-mod-lib-item:hover .ic { color: var(--brand-primary); }
.dec-mod-lib-item:hover .add { color: var(--brand-primary); }

.dec-mod-lib-item .ic { color: var(--text-secondary); }
.dec-mod-lib-item .add { color: var(--text-placeholder); }

.dec-mod-lib-item .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dec-mod-lib-item .desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dec-mod-list {
  padding: 0 10px 16px;
}

.dec-mod-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  margin-bottom: 6px;
  transition-property: border-color, background-color, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.dec-mod-item:hover { border-color: var(--brand-primary-border); }
.dec-mod-item.active { border-color: var(--brand-primary); background: var(--brand-primary-bg); }
.dec-mod-item.off { opacity: 0.5; }

.dec-mod-item .seq {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-gray-100);
  color: var(--text-secondary);
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.dec-mod-item.active .seq {
  background: var(--brand-primary);
  color: #fff;
}

.dec-mod-item .name {
  font-size: 13px;
  font-weight: 500;
}

.dec-mod-item .ops {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.dec-mod-item .ops > .el-icon {
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
}

.dec-mod-item .ops > .el-icon:hover { color: var(--brand-primary); background: var(--brand-primary-bg); }
.dec-mod-item .ops > .el-icon.disabled { opacity: 0.25; cursor: not-allowed; }
.dec-mod-item .ops > .el-icon.del:hover { color: var(--color-danger); background: #FEF0F0; }

/* ===== 中间画布 ===== */
.dec-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
  overflow-y: auto;
  background: var(--bg-page);
}

.dec-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dec-phone-bezel {
  width: 360px;
  height: 720px;
  border-radius: 36px;
  background: #fff;
  border: 10px solid #1a1d23;
  box-shadow: 0 16px 48px rgba(23, 32, 42, 0.18);
  display: grid;
  grid-template-rows: 28px 36px 1fr 56px;
  overflow: hidden;
  position: relative;
}

.dec-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--deco-preview-card, #fff);
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.dec-phone-battery { display: inline-block; width: 16px; height: 8px; background: #333; border-radius: 1px; }

.dec-phone-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--deco-preview-card, #fff);
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
}

.dec-phone-body {
  background: var(--deco-preview-bg, #F7F3EF);
  overflow-y: auto;
  padding: 0 0 8px;
}

.dec-phone-bezel.is-immersive-home {
  grid-template-rows: 1fr 56px;
}
.dec-phone-bezel.is-immersive-home .dec-phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 6;
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  color: #fff;
}
.dec-phone-bezel.is-immersive-home .dec-phone-battery { background: #fff; }
.dec-phone-bezel.is-immersive-home .dec-phone-nav { display: none; }
.dec-phone-bezel.is-immersive-home .dec-phone-body { grid-row: 1; min-height: 0; padding-top: 0; }
.dec-phone-bezel.is-immersive-home .dec-phone-tabbar { grid-row: 2; z-index: 4; }

.dec-phone-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}

.dec-phone-mod {
  margin-bottom: 10px;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.15s;
}
.dec-phone-mod:first-child { margin-top: 0; }
.dec-phone-mod { position: relative; }
/* 紧跟通顶 hero 的模块咬合渐隐区（与顾客端 -30rpx 同构；-25 = 目标净位移 -15 抵掉前块 margin-bottom 10 的折叠） */
.dec-phone-mod.after-hero { margin-top: -25px; z-index: 3; }
/* canvas 咬合更深（五稿 hero 延长镜像）：净位移 -142 → 宫格(bottom 152)下留 ~10px 间隙 */
.dec-phone-mod.after-canvas { margin-top: -152px; }
.dec-phone-mod:hover { outline-color: var(--deco-preview-border, rgba(212, 167, 126, 0.32)); }
.dec-phone-mod.selected { outline-color: var(--deco-preview-deep, #8A674A); }

.dec-phone-tabbar {
  display: flex;
  background: var(--deco-preview-card, #fff);
  border-top: 1px solid #eef0f3;
  cursor: pointer;
}
.dec-phone-tabbar.editing { outline: 2px solid #1a1a1a; outline-offset: -2px; }

.dec-phone-tabbar > div {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 10px;
  color: #98a2b3;
  padding-top: 4px;
}

.dec-phone-tabbar > div.active { color: var(--deco-preview-deep, #8A674A); font-weight: 600; }

.dec-phone-home {
  width: 130px;
  height: 4px;
  background: #2c3540;
  border-radius: 999px;
  margin-top: 10px;
}

.dec-canvas-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 右侧属性面板 ===== */
.dec-right {
  background: #fff;
  border-left: 1px solid var(--border-lighter);
  overflow-y: auto;
  padding-bottom: 16px;
}

.dec-right > * { padding: 0 14px; }
.dec-right > .dec-section-title { padding: 12px 14px 8px; }

.dec-right .el-form { padding: 0 14px; }

.dec-right-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 16px;
}

.dec-right-empty .ic { color: var(--brand-primary-light); margin-bottom: 12px; }
.dec-right-empty .tt { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.dec-right-empty .sb { margin-top: 6px; font-size: 12px; }

/* ==============================================
 * 小程序内部模块样式（手机预览 · 喜茶黑白灰，对齐客户端）
 * ============================================== */

/* Banner 多图轮播（全宽） */
.m-swiper { position: relative; background: var(--deco-preview-ph, #EADFD5); }
.m-swiper-stage { position: relative; width: 100%; height: 160px; overflow: hidden; }
.m-swiper-stage.is-auto { height: auto; min-height: 160px; max-height: 260px; aspect-ratio: 750 / 360; }
.m-swiper-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-swiper-stage.is-auto .m-swiper-img { height: 100%; min-height: 160px; max-height: 260px; }
.m-swiper-ph { display: grid; place-items: center; color: var(--deco-preview-deep, #8A674A); font-size: 12px; background: var(--deco-preview-ph, #EADFD5); }
.m-swiper.is-immersive::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(transparent, var(--deco-preview-bg, #F7F3EF)); pointer-events: none; z-index: 2; }
.m-swiper-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); color: #fff; z-index: 3; }
.m-swiper.is-immersive .m-swiper-cap { padding-top: 58px; }
.m-swiper-cap .t { font-size: 16px; font-family: var(--deco-preview-serif, "Noto Serif SC", Georgia, "Songti SC", serif); font-weight: 500; }
.m-swiper-cap .s { font-size: 11px; margin-top: 2px; opacity: 0.9; }
.m-swiper-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.m-swiper-dots span { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.m-swiper-dots span.on { width: 14px; background: #fff; }

/* ===== banner-swiper 压图 hero 布局预览（canvas 全屏画布 / lobby 奢牌门厅） ===== */
.m-swiper.is-canvas::after,
.m-swiper.is-lobby::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, var(--deco-preview-bg, #F7F3EF)); pointer-events: none; z-index: 4; }
/* canvas：hero 延长后渐隐区同步拉高（五稿镜像），到下一模块标题下方才融入底色 */
.m-swiper.is-canvas::after { height: 110px; }
.m-hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(24, 16, 8, 0.32), transparent 32%, rgba(24, 16, 8, 0.16) 55%, rgba(24, 16, 8, 0.6)); }
.m-hero-shade.lobby { background: linear-gradient(rgba(24, 16, 8, 0.34), rgba(24, 16, 8, 0.08) 38%, rgba(24, 16, 8, 0.58)); }
/* 品牌字标（canvas 左排 / lobby 居中） */
.m-hero-brand { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 7px; color: #FFFAF3; }
.m-hero-brand .mono { width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(255, 250, 243, 0.65); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; font-family: var(--deco-preview-serif, "Noto Serif SC", Georgia, "Songti SC", serif); }
.m-hero-brand .col { display: flex; flex-direction: column; min-width: 0; }
.m-hero-brand b { font-size: 13px; font-weight: 500; letter-spacing: 2px; font-family: var(--deco-preview-serif, "Noto Serif SC", Georgia, "Songti SC", serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hero-brand i { font-style: normal; font-size: 8px; letter-spacing: 3px; opacity: 0.72; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hero-brand.center { flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.m-hero-brand.center .sp { letter-spacing: 5px; font-size: 14px; }
.m-hero-brand.center em { width: 20px; height: 1px; background: rgba(255, 250, 243, 0.6); margin-top: 5px; }
/* 竖排签名（canvas 右侧） */
.m-hero-slogan { position: absolute; right: 10px; top: 32%; z-index: 2; writing-mode: vertical-rl; font-size: 9px; letter-spacing: 3px; color: rgba(255, 250, 243, 0.5); pointer-events: none; }
/* 固定文案层 */
.m-hero-cap { position: absolute; left: 16px; right: 16px; bottom: 218px; z-index: 3; color: #FFFAF3; }  /* 128+90 五稿 hero 延长抬回原位 */
.m-hero-cap.center { text-align: center; bottom: auto; top: 38%; }
.m-hero-cap .e { font-size: 9px; letter-spacing: 3px; opacity: 0.82; margin-bottom: 5px; }
.m-hero-cap .t { font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: 0.5px; font-family: var(--deco-preview-serif, "Noto Serif SC", Georgia, "Songti SC", serif); text-shadow: 0 1px 9px rgba(0, 0, 0, 0.25); }
.m-hero-cap.center .t { font-size: 18px; letter-spacing: 1px; }
.m-hero-cap .s { font-size: 10px; margin-top: 5px; opacity: 0.85; }
.m-hero-cap .cta { display: inline-flex; align-items: center; margin-top: 10px; padding: 6px 15px; border-radius: 999px; background: rgba(255, 250, 243, 0.94); color: var(--deco-preview-deep, #8A674A); font-size: 10.5px; font-weight: 500; }
/* 图上导航：canvas 玻璃宫格 / lobby 白描线圆图标 */
.m-hero-nav { position: absolute; left: 12px; right: 12px; z-index: 3; display: flex; }
.m-hero-nav.glass { bottom: 152px; border-radius: 14px; background: rgba(255, 250, 243, 0.2); border: 1px solid rgba(255, 250, 243, 0.32); backdrop-filter: blur(10px); padding: 9px 0 8px; }  /* 62+90 五稿抬回原位 */
.m-hero-nav .cell { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-hero-nav .cell > span:last-child { font-size: 9px; font-weight: 500; color: #FFFAF3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m-hero-nav.rings { bottom: 54px; }
.m-hero-nav .ring { width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 250, 243, 0.55); display: grid; place-items: center; }
/* hero 布局的圆点指示上移（避开渐隐区与导航） */
.m-swiper-dots.hero-dots { bottom: 40px; z-index: 4; }
/* canvas：指示点移到宫格上方（咬合模块会盖住宫格下方区域，与顾客端 440rpx 同构） */
.m-swiper.is-canvas .m-swiper-dots.hero-dots { bottom: 210px; }

/* Banner 单图（全宽，图片背景 / 纯色底 → 无图态坐米雾底、墨字衬线） */
.m-banner { padding: 26px 16px; min-height: 116px; background-color: var(--deco-preview-mist, #FBF7F2); color: var(--deco-preview-ink, #2E2620); background-size: cover; background-position: center; }
.m-banner-title { font-size: 18px; font-family: var(--deco-preview-serif, "Noto Serif SC", Georgia, "Songti SC", serif); font-weight: 500; letter-spacing: 0.5px; }
.m-banner-sub { margin-top: 6px; font-size: 12px; opacity: 0.85; }
.m-banner.has-img { color: #fff; }
.m-banner.has-img .m-banner-title { color: #fff; }

/* Quick Nav（线性图标，无圆底，白卡） */
.m-quick-nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px; margin: 8px; background: var(--deco-preview-card, #fff); border-radius: 12px; }
.m-quick-nav .m-qn-cell { display: grid; place-items: center; gap: 7px; }
.m-quick-nav.is-image { padding: 14px 6px; }
.m-quick-nav .m-qn-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: block; background: var(--deco-preview-ph, #EADFD5); }
.m-quick-nav .ic-emoji { font-size: 22px; }
.m-quick-nav .lbl { font-size: 11px; color: var(--deco-preview-text, #3A322B); }

/* Section head shared */
.m-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-size: 14px; font-weight: 500; }
.m-sec-head .t { font-weight: 500; color: var(--deco-preview-ink, #2E2620); }
.m-sec-head .more { color: var(--deco-preview-muted, #97887B); font-weight: 400; font-size: 11px; }
.m-sec-head .tag-mini { color: #1a1a1a; background: #f4f3f1; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* 内容卡通用：白卡浮在暖米底 */
.m-svc-list, .m-seckill, .m-coupon, .m-staff { margin: 8px; background: var(--deco-preview-card, #fff); border-radius: 12px; padding-bottom: 10px; }

/* Service list */
.m-svc-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 14px; min-height: 92px; padding: 10px 14px; }  /* 顶对齐：标题/价格与图片上缘（设计走查四稿镜像） */
/* 卡内标题上下等距（四稿镜像）：头下 2px + 行自带 10px = 头上 12px */
.m-svc-list .m-sec-head { padding-bottom: 2px; }
.m-svc-row .cover { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; color: var(--deco-preview-deep, #8A674A); font-weight: 500; background: var(--deco-preview-ph, #EADFD5); overflow: hidden; }
.m-svc-row .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-svc-row .cover span { display: grid; place-items: center; width: 100%; height: 100%; }
.m-svc-row .name { font-size: 15px; line-height: 1.28; font-weight: 500; color: var(--deco-preview-ink, #2E2620); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-svc-row .meta { font-size: 12px; color: var(--deco-preview-muted, #97887B); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-svc-row .price { font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); color: var(--deco-preview-ink, #2E2620); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
/* Service list · 画廊双列（V2 缺省，作品坐底色画廊化） */
.m-svc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.m-svc-gallery .g-item { min-width: 0; }
.m-svc-gallery .g-cover { width: 100%; height: 82px; border-radius: 10px; background: var(--deco-preview-ph, #EADFD5); overflow: hidden; }
.m-svc-gallery .g-cover img { width: 100%; height: 100%; object-fit: cover; }
.m-svc-gallery .g-cover .g-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--deco-preview-deep, #8A674A); font-weight: 500; }
.m-svc-gallery .g-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.m-svc-gallery .g-name { font-size: 12px; color: var(--deco-preview-text, #3A322B); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-svc-gallery .g-price { font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); font-weight: 500; font-size: 13px; color: var(--deco-preview-ink, #2E2620); }

.m-svc-list.is-scroll { padding-bottom: 12px; overflow: hidden; }
.m-svc-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 0 2px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-svc-scroll::-webkit-scrollbar { display: none; }
.m-svc-track { display: flex; gap: 10px; width: max-content; padding-right: 14px; }
.m-svc-card { flex: 0 0 136px; min-width: 0; padding: 8px; border-radius: 14px; background: var(--deco-preview-card, #fff); box-shadow: 0 6px 22px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-svc-card:active { transform: scale(0.98); }
.m-svc-card .cover { width: 120px; height: 96px; border-radius: 12px; display: grid; place-items: center; color: var(--deco-preview-deep, #8A674A); font-weight: 500; background: var(--deco-preview-ph, #EADFD5); overflow: hidden; }
.m-svc-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-svc-card .cover span { display: grid; place-items: center; width: 100%; height: 100%; }
.m-svc-card .name { min-height: 34px; margin-top: 8px; color: var(--deco-preview-ink, #2E2620); font-size: 13px; line-height: 1.28; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-svc-card .meta { margin-top: 4px; color: var(--deco-preview-muted, #97887B); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-svc-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.m-svc-card .price { font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); color: var(--deco-preview-ink, #2E2620); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.m-svc-card .book { flex-shrink: 0; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; font-size: 11px; font-weight: 700; }
.m-product-list .m-svc-card .book { background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; }
.m-card-pkg-card { min-height: 126px; display: flex; flex-direction: column; }
.m-card-pkg-card .pkg-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.m-card-pkg-card .pkg-type { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--brand-primary-bg, #F7EEE5); color: var(--brand-active, #8A674A); font-size: 10px; font-weight: 800; }
.m-card-pkg-card .pkg-gift { min-width: 0; color: var(--brand-active, #8A674A); font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card-pkg-row .pkg-cover { background: var(--brand-primary-bg, #F7EEE5); color: var(--brand-active, #8A674A); font-size: 18px; }

/* 卡包销售 · 价值票券预览（快照轮播 / 双卡 / 主卡 / 列表） */
.m-cpkg-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 0 2px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-cpkg-scroll::-webkit-scrollbar { display: none; }
.m-cpkg-track { display: flex; gap: 10px; width: max-content; padding-right: 14px; }
.m-cpkg-card { flex: 0 0 150px; box-sizing: border-box; display: flex; flex-direction: column; min-height: 138px; padding: 12px; border-radius: 14px; background: var(--deco-preview-card, #fff); border: 1px solid var(--deco-preview-border, rgba(138, 103, 74, 0.18)); }
.m-cpkg-card.hot { border-width: 2px; border-color: var(--deco-preview-primary, #C49A6C); }
.m-cpkg-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.m-cpkg-eyebrow .ty { font-size: 10px; letter-spacing: 3px; font-weight: 500; color: var(--deco-preview-deep, #8A674A); white-space: nowrap; }
.m-cpkg-eyebrow .note { flex-shrink: 0; font-size: 9px; color: var(--deco-preview-muted, #B8A99B); }
.m-cpkg-num { margin-top: 8px; display: flex; align-items: baseline; color: var(--deco-preview-ink, #2E2620); font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); }
.m-cpkg-num .pf { font-size: 13px; font-weight: 500; margin-right: 1px; }
.m-cpkg-num .v { font-size: 28px; line-height: 0.9; font-weight: 500; font-variant-numeric: tabular-nums; }
.m-cpkg-num .sfx { font-size: 11px; color: var(--deco-preview-muted, #97887B); margin-left: 3px; }
.m-cpkg-num.is-big .v { font-size: 36px; }
.m-cpkg-num.is-row .v { font-size: 20px; }
.m-cpkg-line { margin-top: 6px; font-size: 10px; line-height: 1.35; color: var(--deco-preview-deep, #8A674A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cpkg-hair { margin: 9px 0 8px; border-top: 1px solid var(--deco-preview-hairline, rgba(138, 103, 74, 0.14)); }
.m-cpkg-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.m-cpkg-foot .worth { font-size: 11px; color: var(--deco-preview-muted, #B8A99B); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.m-cpkg-foot .sp { flex: 1; }
.m-cpkg-foot .buy { flex-shrink: 0; height: 26px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; font-size: 11px; font-weight: 500; }
.m-cpkg-foot .buy.lg { height: 32px; padding: 0 22px; font-size: 12px; }
.m-cpkg-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.m-cpkg-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--deco-preview-border, rgba(138, 103, 74, 0.3)); }
.m-cpkg-dots i.on { width: 15px; background: var(--deco-preview-primary, #C49A6C); }
.m-cpkg-prog { position: relative; height: 3px; margin: 10px 14px 0; border-radius: 999px; background: var(--deco-preview-border, rgba(138, 103, 74, 0.18)); overflow: hidden; }
.m-cpkg-prog i { position: absolute; left: 0; top: 0; height: 3px; width: 42%; border-radius: 999px; background: var(--deco-preview-primary, #C49A6C); }
.m-cpkg-hero-wrap { padding: 0 14px; }
.m-cpkg-card.is-hero { flex: none; width: auto; padding: 16px; border-radius: 16px; }
.m-cpkg-rail { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
.m-cpkg-rail::-webkit-scrollbar { display: none; }
.m-cpkg-rail .chip { flex: 0 0 auto; padding: 5px 11px; border-radius: 10px; font-size: 10px; font-weight: 500; color: var(--deco-preview-deep, #8A674A); background: var(--deco-preview-card, #fff); border: 1px solid var(--deco-preview-border, rgba(138, 103, 74, 0.2)); }
.m-cpkg-rail .chip.on { color: var(--deco-preview-ink, #2E2620); background: var(--deco-preview-soft, #F3ECE1); border-color: var(--deco-preview-primary, #C49A6C); }
.m-cpkg-list { display: flex; flex-direction: column; gap: 9px; padding: 0 14px; }
.m-cpkg-row { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 14px; background: var(--deco-preview-card, #fff); border: 1px solid var(--deco-preview-border, rgba(138, 103, 74, 0.18)); }
.m-cpkg-row.hot { border-width: 2px; border-color: var(--deco-preview-primary, #C49A6C); }
.m-cpkg-row .mk { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--deco-preview-soft, #F3ECE1); color: var(--deco-preview-deep, #8A674A); font-size: 17px; font-weight: 500; }
.m-cpkg-row .mid { flex: 1; min-width: 0; }
.m-cpkg-row .mid .m-cpkg-num { margin-top: 0; }
.m-cpkg-row .buy { flex-shrink: 0; height: 26px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; font-size: 11px; font-weight: 500; }

/* Seckill */
.m-sk-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) 58px; align-items: center; gap: 10px; min-height: 92px; padding: 10px 12px; margin: 0 12px; background: var(--deco-preview-card, #fff); border-radius: 14px; box-shadow: 0 6px 22px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-sk-card:active { transform: scale(0.98); }
.m-sk-card .cover { width: 72px; height: 72px; border-radius: 12px; background: var(--deco-preview-ph, #EADFD5); color: var(--deco-preview-deep, #8A674A); font-weight: 500; font-size: 18px; display: grid; place-items: center; overflow: hidden; }
.m-sk-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-sk-card .cover span { display: grid; place-items: center; width: 100%; height: 100%; }
.m-sk-card .info { min-width: 0; }
.m-sk-card .name { font-size: 14px; line-height: 1.24; font-weight: 500; color: var(--deco-preview-ink, #2E2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sk-card .price-line { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.m-sk-card .price { font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); color: var(--deco-preview-deep, #8A674A); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.m-sk-card .origin { color: var(--deco-preview-muted, #97887B); font-size: 11px; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.m-sk-card .bar { height: 5px; background: rgba(0, 0, 0, 0.08); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.m-sk-card .bar > span { display: block; height: 100%; background: var(--brand-primary, #D4A77E); transition-property: width; transition-duration: 180ms; transition-timing-function: ease-out; }
.m-sk-card .meta { font-size: 10px; color: var(--deco-preview-muted, #97887B); margin-top: 4px; }
.m-sk-card .btn { width: 58px; padding: 7px 0; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; box-shadow: none; }

/* Coupon */
.m-cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.m-cp-card { min-width: 0; padding: 14px 10px 12px; background: var(--deco-preview-soft, #F7EEE5); border-radius: 12px; text-align: center; color: var(--deco-preview-ink, #2E2620); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-cp-card:active { transform: scale(0.96); }
.m-cp-card .v { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); font-size: 22px; line-height: 1; font-weight: 500; color: var(--deco-preview-deep, #8A674A); font-variant-numeric: tabular-nums; }
.m-cp-card .v small { font-size: 11px; font-weight: 700; }
.m-cp-card .n { margin-top: 6px; font-size: 11px; line-height: 1.25; font-weight: 700; color: var(--deco-preview-ink, #2E2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-card .t { font-size: 10px; margin: 3px 0 10px; color: var(--deco-preview-muted, #97887B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-card .btn, .m-cp-hero .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 14px; background: var(--deco-preview-ink, #2E2620); box-shadow: none; color: #F7F1E8; border-radius: 999px; font-size: 11px; font-weight: 700; }
.m-cp-tickets { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.m-cp-ticket { position: relative; display: flex; align-items: stretch; min-height: 74px; background: var(--deco-preview-card, #fff); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); }
.m-cp-ticket .stub { width: 86px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--deco-preview-soft, #F7EEE5); color: var(--deco-preview-deep, #8A674A); border-right: 1px dashed var(--deco-preview-border, rgba(138, 103, 74, 0.3)); }
.m-cp-ticket .stub .v { display: flex; align-items: baseline; font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); font-variant-numeric: tabular-nums; }
.m-cp-ticket .stub .v span { font-size: 23px; line-height: 1; font-weight: 500; }
.m-cp-ticket .stub .v small { font-size: 11px; font-weight: 500; margin-left: 2px; }
.m-cp-ticket .stub .tag { font-size: 8px; letter-spacing: 2px; color: var(--deco-preview-border, rgba(138, 103, 74, 0.55)); }
.m-cp-ticket .notch { position: absolute; left: 80px; width: 12px; height: 12px; border-radius: 50%; background: var(--deco-preview-bg, #F7F3EF); }
.m-cp-ticket .notch.nt { top: -6px; }
.m-cp-ticket .notch.nb { bottom: -6px; }
.m-cp-ticket .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; }
.m-cp-ticket .bd .n { font-size: 12px; font-weight: 500; color: var(--deco-preview-ink, #2E2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-ticket .bd .t { margin-top: 3px; font-size: 10px; color: var(--deco-preview-muted, #97887B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-ticket .btn { align-self: center; flex-shrink: 0; margin-right: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 14px; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; border-radius: 999px; font-size: 11px; font-weight: 500; }
.m-cp-luxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.m-cp-luxe { position: relative; min-width: 0; padding: 15px 13px 13px; background: var(--deco-preview-card, #fff); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); }
.m-cp-luxe .line { position: absolute; top: 0; left: 13px; right: 13px; height: 2px; border-radius: 0 0 2px 2px; background: var(--deco-preview-primary, #C49A6C); }
.m-cp-luxe .v { display: flex; align-items: baseline; color: var(--deco-preview-deep, #8A674A); font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); font-variant-numeric: tabular-nums; }
.m-cp-luxe .v span { font-size: 25px; line-height: 1; font-weight: 500; }
.m-cp-luxe .v small { font-size: 12px; font-weight: 500; margin-left: 2px; }
.m-cp-luxe .n { margin-top: 9px; font-size: 12px; font-weight: 500; color: var(--deco-preview-ink, #2E2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-luxe .t { margin-top: 3px; font-size: 10px; color: var(--deco-preview-muted, #97887B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-luxe .btn { margin-top: 11px; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 15px; background: var(--deco-preview-ink, #2E2620); color: #F7F1E8; border-radius: 999px; font-size: 11px; font-weight: 500; }
.m-cp-hero { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 88px; margin: 0 12px; padding: 12px; background: var(--deco-preview-soft, #F7EEE5); border-radius: 14px; box-shadow: none; transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-cp-hero:active { transform: scale(0.96); }
.m-cp-token { height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--deco-preview-card, #fff); color: var(--deco-preview-deep, #8A674A); box-shadow: 0 6px 16px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); }
.m-cp-token span { font-family: var(--deco-preview-num, "DIN Alternate", "Bahnschrift", sans-serif); font-size: 26px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.m-cp-token small { font-size: 11px; font-weight: 800; }
.m-cp-copy { min-width: 0; }
.m-cp-copy .n { font-size: 13px; line-height: 1.25; font-weight: 750; color: var(--deco-preview-ink, #2E2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-copy .t { margin-top: 5px; color: var(--deco-preview-muted, #97887B); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-action { flex-shrink: 0; }

/* Staff */
.m-staff-row { display: flex; gap: 10px; padding: 0 14px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-staff-row::-webkit-scrollbar { display: none; }
.m-staff-cell { flex: 0 0 164px; min-width: 0; overflow: hidden; border-radius: 14px; background: var(--deco-preview-card, #fff); box-shadow: 0 6px 22px var(--deco-preview-shadow, rgba(138, 103, 74, 0.08)); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-staff-cell:active { transform: scale(0.98); }
.m-staff-cell .ava { position: relative; width: 100%; height: 150px; color: #fff; display: grid; place-items: center; font-weight: 500; color: var(--deco-preview-deep, #8A674A); background-color: var(--deco-preview-ph, #EADFD5); background-size: cover; background-position: center; }
.m-staff-cell .ava.photo { color: #fff; box-shadow: inset 0 -44px 54px rgba(0, 0, 0, 0.18); }
.m-staff-cell .ava.photo span { display: none; }
.m-staff-cell .ava .cap { position: absolute; left: 8px; right: 8px; bottom: 6px; }
.m-staff-cell .ava .cap .nm { font-weight: 500; font-size: 13px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.m-staff-cell .ava .cap .tt { font-size: 10px; color: rgba(255, 255, 255, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.m-staff-cell .staff-copy { padding: 9px 10px 11px; min-width: 0; }
.m-staff-cell .staff-title-line { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }
.m-staff-cell .score { flex-shrink: 0; color: var(--deco-preview-primary, #D4A77E); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-staff-cell .staff-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; min-height: 18px; overflow: hidden; }
.m-staff-cell .staff-tags span { max-width: 68px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--deco-preview-soft, #F7EEE5); color: var(--deco-preview-text, #3A322B); font-size: 9px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-staff-cell .staff-intro { margin-top: 7px; min-height: 30px; color: var(--deco-preview-muted, #97887B); font-size: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Notice（去 NEWS 徽章 + 去跑马灯，坐页面底色静默省略号，对齐 V2） */
/* 门店公告预览：B 暖调卡片 · 竖向上滚 · 关键词高亮（镜像顾客端 DecNotice） */
.m-notice-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 8px; background: var(--deco-preview-mist, #FBF7F2); border-radius: 12px; overflow: hidden; }
.m-notice-card > svg { flex-shrink: 0; }
.m-notice-card .notice-vp { flex: 1; min-width: 0; height: 18px; overflow: hidden; }
.m-notice-card .notice-track { transform: translateY(0); }
.m-notice-card .notice-track.sliding { transform: translateY(-18px); transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1); }
.m-notice-card .notice-line { height: 18px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--deco-preview-ink, #2E2620); font-size: 12px; font-weight: 400; }
.m-notice-card .notice-line.single { flex: 1; min-width: 0; }
.m-notice-card .notice-line .is-key { color: var(--deco-preview-deep, #8A674A); font-weight: 500; }
.m-notice-card .notice-dots { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.m-notice-card .ndot { width: 5px; height: 5px; border-radius: 50%; background: var(--deco-preview-border, #E8D2BD); transition: width 240ms ease, background 240ms ease; }
.m-notice-card .ndot.on { width: 9px; border-radius: 3px; background: var(--deco-preview-deep, #8A674A); }
/* on-hero 玻璃胶囊形态（压 hero 图时，与顾客端 DecNotice on-hero 同构）：宫格同套毛玻璃 + 全胶囊 + 白字 + 字号对齐宫格(9px) */
.m-notice-card.on-hero { padding: 6px 14px; border-radius: 999px; background: rgba(255, 250, 243, 0.2); border: 1px solid rgba(255, 250, 243, 0.32); backdrop-filter: blur(10px); }
.m-notice-card.on-hero .notice-line { color: rgba(255, 250, 243, 0.92); font-size: 9px; font-weight: 400; }
.m-notice-card.on-hero .notice-line .is-key { color: #ffffff; font-weight: 500; }
.m-notice-card.on-hero .ndot { background: rgba(255, 250, 243, 0.4); }
.m-notice-card.on-hero .ndot.on { background: #FFFAF3; }
/* 公告逐条编辑（属性面板） */
.dmf-notice-list { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dmf-notice-row { display: flex; align-items: center; gap: 6px; }
.dmf-notice-row .seq { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-gray-100); color: var(--text-secondary); font-size: 10px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.dmf-notice-row .del { cursor: pointer; color: var(--text-placeholder); flex-shrink: 0; }
.dmf-notice-row .del:hover { color: var(--color-danger); }

.m-placeholder { padding: 14px; text-align: center; color: var(--text-placeholder); font-size: 12px; }

/* ===== 属性面板：轮播图编辑行 / 底部菜单编辑行 ===== */
.dec-slide-row { border: 1px solid var(--border-lighter); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fafbfc; }
.dec-slide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.dec-slide-head .del { cursor: pointer; color: var(--text-placeholder); }
.dec-slide-head .del:hover { color: var(--color-danger); }
.dec-tabbar-edit-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dec-tabbar-edit-row .seq { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-gray-100); color: var(--text-secondary); font-size: 10px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
/* 底部导航图标可视化选择器 */
.dec-tabbar-icon-btn { width: 36px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border-lighter); border-radius: 6px; background: #fff; cursor: pointer; flex-shrink: 0; transition: border-color 0.15s; }
.dec-tabbar-icon-btn:hover, .dec-tabbar-icon-btn.is-open { border-color: var(--brand-primary); }
.dec-tabbar-icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 8px; margin: -2px 0 10px 24px; border: 1px solid var(--border-lighter); border-radius: 8px; background: #fafbfc; }
.dec-tabbar-icon-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.dec-tabbar-icon-cell:hover { background: #fff; border-color: var(--border-lighter); }
.dec-tabbar-icon-cell.is-selected { background: #fff; border-color: var(--brand-primary); }
.dec-tabbar-icon-cell .lbl { font-size: 10px; color: var(--text-secondary); line-height: 1; }

/* ===== 广告位页 · 轮播编辑 + 喜茶风预览 ===== */
.dec-ad-slide { border: 1px solid var(--border-lighter); border-radius: 10px; padding: 12px 12px 2px; margin-bottom: 12px; background: #fafbfc; }
.dec-ad-slide-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.dec-ad-slide-head .op { cursor: pointer; padding: 2px; color: var(--text-secondary); }
.dec-ad-slide-head .op:hover { color: var(--brand-primary); }
.dec-ad-slide-head .op.disabled { opacity: 0.3; cursor: not-allowed; }
.dec-ad-slide-head .op.del:hover { color: var(--color-danger); }
.dec-ad-preview { border: 1px solid var(--border-lighter); border-radius: 16px; padding: 10px; background: #f4f5f7; }
.dec-ad-stage { position: relative; width: 100%; height: 150px; border-radius: 12px; overflow: hidden; background: #e9eaec; }
.dec-ad-stage.is-auto { height: auto; min-height: 160px; max-height: 260px; aspect-ratio: 750 / 360; }
.dec-ad-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dec-ad-stage.is-auto img { height: 100%; min-height: 160px; max-height: 260px; }
.dec-ad-stage .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b8bec6; font-size: 12px; }
.dec-ad-stage .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.45)); color: #fff; }
.dec-ad-stage.is-immersive .cap { padding-top: 58px; }
.dec-ad-stage .cap .t { font-size: 16px; font-weight: 700; }
.dec-ad-stage .cap .s { font-size: 11px; margin-top: 2px; opacity: 0.9; }
.dec-ad-stage .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.dec-ad-stage .dots span { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.dec-ad-stage .dots span.on { width: 14px; background: #fff; }

/* ==============================================
 * 页面装修 v2：左手机预览 + 右模块手风琴
 * ============================================== */
.dec-body-v2 { display: grid; grid-template-columns: 360px 1fr; gap: 20px; padding: 16px; align-items: start; }
.dec-preview-col { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; }
.dec-accordion-col { min-width: 0; }

.dec-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-lighter); border-radius: 8px; background: var(--brand-bg-light, #FFF3E6); margin-bottom: 12px; flex-wrap: wrap; }
.dec-acc-head .tpl-name { font-weight: 600; font-size: 14px; color: var(--text-ink); }
.dec-acc-head .acc-head-actions { display: flex; align-items: center; gap: 2px; }

.dec-acc-list { display: flex; flex-direction: column; gap: 10px; }
.dec-acc-card { border: 1px solid var(--border-lighter); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dec-acc-card.sel { border-color: var(--brand-primary, #FB7B10); box-shadow: 0 0 0 2px var(--brand-bg-strong, #FFE2C2); }
.dec-acc-card.off { opacity: 0.55; }
.dec-acc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; user-select: none; }
.dec-acc-card-head:hover { background: var(--brand-bg-light, #FFF3E6); }
.dec-acc-card-head .name { font-weight: 600; font-size: 13px; color: var(--text-ink); display: flex; align-items: center; }
.dec-acc-card-head .name .seq { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-bg-strong, #FFE2C2); color: var(--brand-active, #E56E0D); font-size: 11px; font-weight: 600; margin-right: 8px; }
.dec-acc-card-head .head-right { display: flex; align-items: center; gap: 12px; }
.dec-acc-card-head .chev { color: var(--text-secondary); transition: transform .2s; }
.dec-acc-card-head .chev.open { transform: rotate(180deg); }
.dec-acc-card-body { padding: 6px 16px 16px; border-top: 1px solid var(--border-lighter); }

.dec-acc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-secondary); padding: 48px 16px; border: 1px dashed var(--border-light); border-radius: 8px; }

/* ==============================================
 * DecModuleForm 富表单（样式变体 / 预览卡 / 入口网格 / 提示）
 * ============================================== */
.dmf { position: relative; }
.dmf-guide { position: absolute; top: -4px; right: 0; z-index: 2; }
.dmf-guide-link { display: inline-flex; align-items: center; font-size: 12px; color: var(--brand-primary, #FB7B10); cursor: pointer; }
.dmf-sub-title { font-size: 13px; color: var(--text-regular); margin-bottom: 8px; }
.dmf-styles { margin-bottom: 12px; }
.dmf-hint { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.dmf-field-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.dmf-color-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dmf-color-value { font-size: 12px; color: var(--text-secondary); }

/* 效果预览（快捷导航） */
.dmf-preview { background: #f7f8fa; border: 1px solid var(--border-lighter); border-radius: 8px; padding: 14px 10px; margin-bottom: 14px; }
.dmf-qn-prev { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dmf-qn-prev .cell { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dmf-qn-prev .ic { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--qn-color, #E56E0D), #fff 86%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qn-color, #E56E0D), transparent 84%); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.dmf-qn-prev .ic.img { border-radius: 10px; }
.dmf-qn-prev .ic img { width: 100%; height: 100%; object-fit: cover; }
.dmf-qn-prev .lbl { font-size: 11px; color: var(--text-regular); max-width: 56px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 入口配置网格 */
.dmf-entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; width: 100%; }
.dmf-entry { border: 1px solid var(--border-lighter); border-radius: 8px; padding: 10px; background: #fff; }
.dmf-entry .hd { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }

.dmf-vector-picker { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dmf-vector-current { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text-regular); font-size: 12px; }
.dmf-vector-current .txt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dmf-vector-badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--qn-color, #E56E0D), #fff 86%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qn-color, #E56E0D), transparent 84%); }
.dmf-image-picker { margin-bottom: 8px; }
.dmf-image-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; margin-bottom: 8px; background: color-mix(in srgb, var(--qn-color, #E56E0D), #fff 86%); border: 1px solid color-mix(in srgb, var(--qn-color, #E56E0D), transparent 84%); }
.dmf-image-thumb.empty { border-style: dashed; }
.dmf-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmf-image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dec-slide-image-picker { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.dec-slide-thumb { width: 112px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-lighter); background: #eef1f5; display: grid; place-items: center; color: var(--text-secondary); font-size: 12px; }
.dec-slide-thumb.empty { border-style: dashed; background: #f5f7fa; }
.dec-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dec-slide-image-main { min-width: 0; }
.dec-slide-image-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dec-slide-tip { margin-top: 4px; color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.dec-popup-slide { width: 100%; border: 1px solid var(--border-lighter); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fafbfc; box-sizing: border-box; }
.dec-popup-slide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.dec-popup-slide-head .op { cursor: pointer; padding: 2px; color: var(--text-secondary); }
.dec-popup-slide-head .op:hover { color: var(--brand-primary, #FB7B10); }
.dec-popup-slide-head .op.disabled { opacity: 0.32; cursor: not-allowed; }
.dec-popup-slide-head .op.del:hover { color: var(--color-danger); }
.dec-popup-thumb { width: 96px; height: 128px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-lighter); background: #eef1f5; display: grid; place-items: center; color: var(--text-secondary); font-size: 12px; }
.dec-popup-thumb.is-float { width: 72px; height: 72px; border-radius: 50%; }
.dec-popup-thumb.empty { border-style: dashed; background: #f5f7fa; }
.dec-popup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmf-icon-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dmf-icon-asset { border: 1px solid var(--border-lighter); background: #fff; border-radius: 8px; padding: 6px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dmf-icon-asset:hover, .dmf-icon-asset.on { border-color: var(--brand-primary, #FB7B10); box-shadow: 0 2px 8px rgba(251, 123, 16, 0.14); transform: translateY(-1px); }
.dmf-icon-asset .svg { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--qn-color, #E56E0D), #fff 90%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qn-color, #E56E0D), transparent 88%); }
.dmf-icon-asset .name { display: block; margin-top: 5px; font-size: 12px; line-height: 1.2; color: var(--text-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmf-icon-asset .cat { display: block; margin-top: 2px; font-size: 10px; line-height: 1.2; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 样式选择卡（优惠券 / 公告） */
.dmf-style-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.dmf-style-card { border: 1px solid var(--border-lighter); border-radius: 8px; padding: 10px; cursor: pointer; width: 156px; transition: border-color .15s, box-shadow .15s; }
.dmf-style-card.on { border-color: var(--brand-primary, #FB7B10); box-shadow: 0 0 0 2px var(--brand-bg-strong, #FFE2C2); }
.dmf-style-card .cap { text-align: center; font-size: 12px; margin-top: 8px; color: var(--text-regular); }
.dmf-style-card .prev { min-height: 54px; background: #f7f8fa; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.dmf-style-card .cp-mini { display: flex; flex-direction: column; align-items: center; background: var(--brand-bg-strong, #FFE2C2); color: var(--brand-active, #E56E0D); border-radius: 6px; padding: 5px 9px; font-size: 9px; line-height: 1.4; }
.dmf-style-card .cp-mini .v { font-size: 13px; font-weight: 700; }
.dmf-style-card .cp-mini-ticket { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border-light, #EBEEF5); border-radius: 6px; padding: 6px 8px; font-size: 9px; line-height: 1.3; }
.dmf-style-card .cp-mini-ticket .stub { font-size: 12px; font-weight: 700; color: #8A674A; padding-right: 6px; border-right: 1px dashed rgba(138, 103, 74, 0.4); }
.dmf-style-card .cp-mini-ticket .bd { color: #97887B; white-space: nowrap; }
.dmf-style-card .cp-mini-ticket .b { background: #2E2620; color: #F7F1E8; border-radius: 999px; padding: 2px 7px; }
.dmf-style-card .cp-mini-luxe { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: #fff; border: 1px solid var(--border-light, #EBEEF5); border-radius: 6px; padding: 7px 8px 6px; font-size: 9px; line-height: 1.3; overflow: hidden; }
.dmf-style-card .cp-mini-luxe i { position: absolute; top: 0; left: 6px; right: 6px; height: 2px; background: #C49A6C; }
.dmf-style-card .cp-mini-luxe .v { font-size: 12px; font-weight: 700; color: #8A674A; }
.dmf-style-card .cp-mini-luxe .b { background: #2E2620; color: #F7F1E8; border-radius: 999px; padding: 2px 7px; }
.dmf-style-card .prev.nt { justify-content: flex-start; }
.dmf-style-card .prev.nt .tag { background: var(--brand-primary, #FB7B10); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; flex-shrink: 0; }
.dmf-style-card .prev.nt .tag2 { background: #fff; color: var(--brand-primary, #FB7B10); border: 1px solid var(--brand-primary, #FB7B10); font-size: 9px; padding: 1px 5px; border-radius: 3px; flex-shrink: 0; }
.dmf-style-card .prev.nt .tx { font-size: 10px; color: var(--text-regular); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==============================================
 * 装修顶部状态条（DecStatusBar）+ 通用配置页（对齐 FlipOS）
 * ============================================== */
.dec-statusbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-lighter); border: 1px solid var(--border-lighter); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.dec-statusbar .cell { background: #fff; padding: 12px 16px; }
.dec-statusbar .k { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.dec-statusbar .v { font-size: 14px; color: var(--text-ink); font-weight: 600; }
.dec-st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 4px; }
.dec-st.published { color: #1E866F; background: #E4F4EA; }
.dec-st.draft { color: #C9862B; background: #FBF1DC; }

/* 模板选择（单选大卡） */
.dec-tpl-radios { display: flex; gap: 14px; flex-wrap: wrap; }
.dec-tpl-radio { position: relative; width: 150px; border: 1px solid var(--border-lighter); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dec-tpl-radio.on { border-color: var(--brand-primary, #FB7B10); box-shadow: 0 0 0 2px var(--brand-bg-strong, #FFE2C2); }
.dec-tpl-radio img { width: 100%; height: 200px; object-fit: cover; display: block; background: #f5f5f5; }
.dec-tpl-radio .meta { padding: 8px 10px; }
.dec-tpl-radio .meta .nm { font-size: 13px; font-weight: 600; }
.dec-tpl-radio .meta .ds { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.dec-tpl-radio .ck { position: absolute; top: 8px; right: 8px; color: var(--brand-primary, #FB7B10); font-size: 20px; background: #fff; border-radius: 50%; }

/* 显示配置 行 */
.dec-color-row { display: flex; align-items: center; gap: 8px; }
.dec-color-row .lb { font-size: 13px; color: var(--text-regular); width: 80px; flex-shrink: 0; }
.dec-color-row .sw { width: 26px; height: 26px; border-radius: 5px; cursor: pointer; border: 1px solid var(--border-light); }
.dec-color-row .sw.on { border: 2px solid var(--text-ink); }
.dec-switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-lighter); }
.dec-switch-row .lb { font-size: 13px; color: var(--text-regular); min-width: 140px; }
.dec-switch-row .hint { font-size: 12px; color: var(--text-secondary); }

/* ============ 主题规范面板：主题包 + token + 实时预览 ============ */
.theme-spec-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}
.theme-spec-left,
.theme-spec-preview {
  min-width: 0;
}
.theme-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 10px;
}
.theme-panel-title.mt { margin-top: 18px; }
.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.theme-preset-card {
  min-height: 72px;
  border: 1px solid var(--border-lighter);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition-property: box-shadow, border-color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.theme-preset-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.08);
}
.theme-preset-card.active {
  border-color: var(--deco-preview-primary, #D4A77E);
  box-shadow: 0 0 0 2px var(--deco-preview-soft, #F7EEE5);
}
.theme-swatch,
.theme-color-current {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.theme-preset-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preset-copy b {
  font-size: 13px;
  color: var(--text-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-preset-copy small {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.theme-color-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fafbfc;
  border: 1px solid var(--border-lighter);
}
.theme-color-hint {
  min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.theme-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.theme-token {
  display: grid;
  grid-template-columns: 18px 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-lighter);
}
.theme-token .dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.theme-token .name {
  font-size: 12px;
  color: var(--text-regular);
}
.theme-token .value {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.theme-global-form {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-lighter);
  background: #fff;
}
.theme-spec-preview {
  border-radius: 14px;
  padding: 14px;
  background: #faf8f5;
  border: 1px solid var(--deco-preview-border, #E8D2BD);
}
.theme-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.theme-preview-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--deco-preview-text, #2B2520);
}
.theme-preview-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--deco-preview-muted, #8C837A);
}
.theme-preview-status {
  flex-shrink: 0;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--deco-preview-deep, #8A674A);
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--deco-preview-border, #E8D2BD);
}
.theme-phone-mini {
  width: 100%;
  height: 610px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 8px solid #24201c;
  box-shadow: 0 18px 40px rgba(31, 27, 24, 0.16);
  position: relative;
}
.theme-mini-status {
  height: 30px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #1f1b18;
}
.theme-mini-hero {
  min-height: 154px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #fff 0%, var(--deco-preview-mist, #FBF7F2) 100%);
}
.theme-mini-hero .brand {
  font-size: 18px;
  color: var(--deco-preview-deep, #8A674A);
  font-weight: 650;
  letter-spacing: 0.02em;
}
.theme-mini-hero .headline {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.28;
  color: var(--deco-preview-deep, #8A674A);
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.theme-mini-hero button,
.theme-mini-bottom button {
  border: none;
  border-radius: 999px;
  background: var(--deco-preview-primary, #D4A77E);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: default;
}
.theme-mini-hero button {
  margin-top: 12px;
  height: 30px;
  padding: 0 16px;
}
.theme-mini-nav {
  margin: 12px 14px;
  padding: 14px 6px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 0 0 1px rgba(31, 27, 24, 0.04), 0 10px 26px rgba(31, 27, 24, 0.06);
}
.theme-mini-nav div {
  display: grid;
  place-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11px;
  color: var(--deco-preview-text, #2B2520);
}
.theme-mini-card,
.theme-mini-member {
  margin: 0 14px 10px;
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(31, 27, 24, 0.05), 0 8px 22px rgba(31, 27, 24, 0.05);
}
.theme-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.theme-mini-card b {
  display: block;
  font-size: 13px;
  color: var(--deco-preview-text, #2B2520);
}
.theme-mini-card small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--deco-preview-muted, #8C837A);
}
.theme-mini-card strong {
  color: var(--deco-preview-deep, #8A674A);
  font-size: 18px;
}
.theme-mini-member {
  background: var(--deco-preview-soft, #F7EEE5);
  color: var(--deco-preview-deep, #8A674A);
  position: relative;
}
.theme-mini-member span {
  font-size: 12px;
}
.theme-mini-member b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.theme-mini-member i {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}
.theme-mini-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--deco-preview-border, #E8D2BD);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-mini-bottom span {
  font-size: 12px;
  color: var(--deco-preview-muted, #8C837A);
}
.theme-mini-bottom span b {
  color: var(--deco-preview-deep, #8A674A);
  font-size: 18px;
}
.theme-mini-bottom button {
  height: 38px;
  padding: 0 18px;
}
.theme-mini-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--deco-preview-border, #E8D2BD);
  text-align: center;
  font-size: 11px;
  color: var(--deco-preview-muted, #8C837A);
}
.theme-mini-tabbar .on {
  color: var(--deco-preview-deep, #8A674A);
  font-weight: 750;
}

/* ============ 装修预览·固定页骨架（我的 / 积分商城，演示数据 + 真后端展示）============ */
.dec-scaffold { background: #f5f6f8; }
.dec-scaffold .scaf-tag {
  font-size: 10px; color: var(--text-placeholder, #98a2b3); text-align: center;
  padding: 6px 8px; line-height: 1.4;
}
.dec-scaffold .scaf-tag.inline { padding: 8px 10px 2px; text-align: left; }

/* 我的：会员卡（身份 + 资产一体化，焦糖渐变）*/
.dec-scaf-mine .scaf-mcard {
  position: relative; overflow: hidden;
  margin: 10px 12px; padding: 16px 14px 0; border-radius: 16px; color: #fff;
}
.dec-scaf-mine .scaf-mcard-deco {
  position: absolute; right: -26px; top: -34px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.dec-scaf-mine .scaf-mcard-top { position: relative; display: flex; align-items: center; gap: 10px; }
.dec-scaf-mine .scaf-mcard-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.22); border: 2px solid rgba(255,255,255,0.5);
}
.dec-scaf-mine .scaf-mcard-id { flex: 1; min-width: 0; }
.dec-scaf-mine .scaf-mcard-name-row { display: flex; align-items: center; gap: 8px; }
.dec-scaf-mine .scaf-mname { font-size: 16px; font-weight: 700; }
.dec-scaf-mine .scaf-mlevel {
  font-size: 11px; font-weight: 600; padding: 1.5px 8px;
  border-radius: 999px; background: rgba(255,255,255,0.24);
}
.dec-scaf-mine .scaf-msub { margin-top: 5px; font-size: 11px; color: rgba(255,255,255,0.82); }
.dec-scaf-mine .scaf-mcard-assets {
  position: relative; display: flex; align-items: center;
  margin: 14px -14px 0; padding: 12px 0; background: rgba(255,255,255,0.12);
}
.dec-scaf-mine .scaf-masset { flex: 1; text-align: center; }
.dec-scaf-mine .scaf-masset b { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.dec-scaf-mine .scaf-masset span { font-size: 10px; color: rgba(255,255,255,0.82); }
.dec-scaf-mine .scaf-mdiv { width: 1px; height: 22px; background: rgba(255,255,255,0.25); }

/* 功能菜单 · 列表（对齐客户端 .menu：图标 + label + 箭头）*/
.dec-scaf-mine .scaf-entries {
  background: #fff; margin: 10px 12px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #f0f1f3;
}
.dec-scaf-mine .scaf-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid #f3f4f6;
}
.dec-scaf-mine .scaf-entry:last-child { border-bottom: none; }
.dec-scaf-mine .scaf-eico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--deco-preview-soft, #f3ede4);
}
.dec-scaf-mine .scaf-elabel { flex: 1; font-size: 13px; color: var(--text-ink, #1a1a1a); }
.dec-scaf-mine .scaf-echev { font-size: 16px; color: #cbd0d6; line-height: 1; }

/* 功能菜单 · 九宫格（对齐客户端 .menu-grid：4 列图标导航）*/
.dec-scaf-mine .scaf-mgrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 4px; padding: 16px 8px 10px;
  background: #fff; margin: 10px 12px 0; border-radius: 14px;
  border: 1px solid #f0f1f3;
}
.dec-scaf-mine .scaf-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dec-scaf-mine .scaf-grid-ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--deco-preview-soft, #f3ede4);
}
.dec-scaf-mine .scaf-grid-label {
  font-size: 10px; color: var(--text-secondary, #6b7280);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 我的 页右侧配置卡：功能菜单显隐 + 样式 */
.dec-mine-cfg {
  margin: 0 0 12px; padding: 12px 14px;
  background: var(--bg-page, #f7f8fa); border: 1px solid var(--border-lighter, #ebeef5);
  border-radius: 10px;
}
.dec-mine-cfg .dmc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dec-mine-cfg .dmc-title { font-size: 13px; font-weight: 600; color: var(--text-ink, #1a1a1a); }
.dec-mine-cfg .dmc-tip { margin: 8px 0 10px; font-size: 11px; line-height: 1.5; color: var(--text-secondary, #6b7280); }
.dec-mine-cfg .dmc-items { display: flex; flex-direction: column; gap: 2px; }
.dec-mine-cfg .dmc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; border-bottom: 1px solid var(--border-lighter, #f0f1f3);
}
.dec-mine-cfg .dmc-item:last-child { border-bottom: none; }
.dec-mine-cfg .dmc-item.off { opacity: 0.5; }
.dec-mine-cfg .dmc-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--deco-preview-soft, #f3ede4);
}
.dec-mine-cfg .dmc-label { flex: 1; font-size: 13px; color: var(--text-ink, #1a1a1a); }

/* 积分商城：积分面板 + 商品网格 */
.dec-scaf-mall .scaf-panel {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 14px; margin: 0 0 1px;
}
.dec-scaf-mall .scaf-plabel { font-size: 12px; color: var(--text-secondary, #6b7280); }
.dec-scaf-mall .scaf-pnum { font-size: 22px; font-weight: 800; margin-left: 10px; color: var(--text-ink, #1a1a1a); }
.dec-scaf-mall .scaf-plink { font-size: 12px; color: var(--text-secondary, #6b7280); }
.dec-scaf-mall .scaf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px 12px 14px;
}
.dec-scaf-mall .scaf-card {
  background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.dec-scaf-mall .scaf-thumb {
  width: 100%; height: 84px; background: #eef0f3 center/cover no-repeat;
}
.dec-scaf-mall .scaf-pname {
  font-size: 12px; color: var(--text-ink, #1a1a1a); padding: 8px 8px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dec-scaf-mall .scaf-cost { font-size: 13px; font-weight: 700; padding: 0 8px 10px; }

/* ============================================================
 * 通用配置 · 主题色「设计规范」预设 + 实时预览（决策点 decoration-general.js）
 * 预览用 --pv-* 变量，与顾客端 miniapp-theme.ts 同一派生，所见即所得。
 * ============================================================ */
.dec-general-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.dec-general-form { max-width: 640px; min-width: 0; }

/* 规范说明 */
.dec-spec-note {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 12px; margin-bottom: 12px;
  background: #faf7f2; border: 1px solid #efe3d4; border-radius: 8px;
  font-size: 12px; line-height: 1.6; color: var(--text-secondary);
}
.dec-spec-note b { color: #8a674a; }
.dec-theme-label { font-size: 12px; font-weight: 600; color: var(--text-regular); margin: 4px 0 8px; }

/* 主题色预设卡 */
.dec-preset-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dec-preset {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 12px; border: 1px solid var(--border-base, #e4e7ed); border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s; min-width: 84px;
}
.dec-preset:hover { background: #fbf8f4; }
.dec-preset.on { border-color: #8a674a; background: #faf5ef; }
.dec-preset-sws { display: flex; }
.dec-preset-sw { width: 24px; height: 24px; border-radius: 6px 0 0 6px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.dec-preset-sw.deep { width: 16px; height: 24px; margin-left: -2px; border-radius: 0 6px 6px 0; }
.dec-preset-nm { font-size: 12px; font-weight: 600; color: var(--text-primary, #303133); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.dec-preset-nm .rec { font-size: 10px; font-weight: 600; color: #fff; background: #8a674a; border-radius: 4px; padding: 0 5px; }
.dec-preset .ck { position: absolute; top: 4px; right: 4px; font-size: 14px; color: #8a674a; }
.dec-color-hint { font-size: 11px; color: var(--text-secondary); }

/* ── 实时预览手机 ── */
.dec-general-preview { position: sticky; top: 12px; }
.dgp-cap { font-size: 12px; font-weight: 600; color: var(--text-regular); margin-bottom: 10px; text-align: center; }
.dgp-phone {
  width: 290px; margin: 0 auto; padding: 0 0 10px;
  border-radius: 22px; overflow: hidden;
  background: var(--pv-bg, #fff);
  border: 1px solid #eee3d6;
  box-shadow: 0 14px 36px rgba(138, 103, 74, .14);
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.dgp-status { display: flex; justify-content: space-between; padding: 8px 16px 4px; font-size: 11px; color: var(--pv-ink); }
.dgp-brandbar { display: flex; align-items: baseline; gap: 8px; padding: 4px 16px 0; }
.dgp-brand { font-size: 17px; font-weight: 800; color: var(--pv-font); }
.dgp-store { font-size: 11px; color: var(--pv-muted); }
.dgp-hero {
  margin: 10px 14px; padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pv-soft), var(--pv-mist) 60%, #fff);
  border: 1px solid var(--pv-border-accent);
}
.dgp-hero-title { font-size: 16px; font-weight: 600; color: var(--pv-font); }
.dgp-hero-cta {
  display: inline-block; margin-top: 10px; padding: 5px 14px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--pv-deep); background: rgba(255,255,255,.7); border: 1px solid var(--pv-border-accent);
}
.dgp-sec { padding: 4px 16px; font-size: 15px; font-weight: 600; color: var(--pv-font); }
.dgp-card {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 14px; padding: 10px;
  border-radius: 12px; background: var(--pv-card); border: 1px solid #efe8e1;
  box-shadow: 0 6px 16px var(--pv-shadow);
}
.dgp-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--pv-soft); flex-shrink: 0; }
.dgp-cardbody { flex: 1; min-width: 0; }
.dgp-name { font-size: 13px; color: var(--pv-ink); }
.dgp-price { font-size: 15px; font-weight: 700; color: var(--pv-price); margin-top: 3px; }
.dgp-book {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px;
  background: var(--pv-cta); color: #fff; font-size: 12px; font-weight: 600;
}
.dgp-chips { display: flex; gap: 8px; padding: 10px 16px 4px; }
.dgp-chip {
  padding: 5px 14px; border-radius: 999px; font-size: 12px;
  color: var(--pv-sub); background: var(--pv-card); border: 1px solid #efe8e1;
}
.dgp-chip.on { color: #fff; background: var(--pv-selected); border-color: var(--pv-selected); }
.dgp-tabbar { display: flex; justify-content: space-around; margin: 12px 10px 0; padding-top: 8px; border-top: 1px solid #f0e9e1; }
.dgp-tabbar span { font-size: 11px; color: var(--pv-hint); }
.dgp-tabbar span.on { color: var(--pv-deep); font-weight: 600; }

.dgp-legend { margin: 14px auto 0; max-width: 290px; display: flex; flex-direction: column; gap: 7px; }
.dgp-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.lg-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.lg-dot.lg-fixed { background: repeating-linear-gradient(45deg, #ddd, #ddd 3px, #fff 3px, #fff 6px); }

@media (max-width: 1100px) {
  .dec-general-grid { grid-template-columns: 1fr; }
  .dec-general-preview { position: static; }
}

/* ============================================================
 * 模板卡 = 小程序首页迷你预览（decoration-general.js）
 * 从模板 default_layout + 配套主题(--tp-*)渲染，替代原静态缩略图。
 * ============================================================ */
.dec-tpl-radio .tpl-phone { width: 100%; height: 250px; background: var(--tp-bg, #fff); overflow: hidden; display: flex; flex-direction: column; }
.dec-tpl-radio .tpl-statusbar { display: flex; justify-content: space-between; padding: 4px 8px 2px; font-size: 8px; color: var(--tp-ink, #1f1b18); }
.dec-tpl-radio .tpl-banner { position: relative; margin: 2px 6px; border-radius: 6px; overflow: hidden; height: 80px; flex-shrink: 0; }
.dec-tpl-radio .tpl-banner img { width: 100%; height: 80px; object-fit: cover; display: block; }
.dec-tpl-radio .tpl-banner-cap { position: absolute; left: 6px; right: 6px; bottom: 5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.dec-tpl-radio .tpl-banner-cap b { display: block; font-size: 10px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec-tpl-radio .tpl-banner-cap span { display: block; font-size: 7px; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec-tpl-radio .tpl-qn { display: flex; justify-content: space-around; padding: 7px 4px 2px; }
.dec-tpl-radio .tpl-qn-i { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.dec-tpl-radio .tpl-qn-i i { width: 18px; height: 18px; border-radius: 6px; background: var(--tp-soft, #f7ece2); display: block; }
.dec-tpl-radio .tpl-qn-i span { font-size: 6px; color: var(--tp-sub, #6f665e); max-width: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec-tpl-radio .tpl-sec { padding: 3px 8px 0; font-size: 8px; font-weight: 600; color: var(--tp-deep, #8a674a); }
.dec-tpl-radio .tpl-svc { display: flex; gap: 5px; padding: 3px 8px; }
.dec-tpl-radio .tpl-svc-c { flex: 1; min-width: 0; background: var(--tp-card, #fff); border: 1px solid var(--tp-border, rgba(212,167,126,.24)); border-radius: 5px; padding: 4px; }
.dec-tpl-radio .tpl-svc-c i { display: block; height: 22px; border-radius: 3px; background: var(--tp-soft, #f7ece2); }
.dec-tpl-radio .tpl-svc-c u { display: block; height: 5px; width: 60%; margin-top: 3px; border-radius: 2px; background: var(--tp-deep, #8a674a); }
.dec-tpl-radio .tpl-chips { display: flex; gap: 4px; padding: 4px 8px; flex-wrap: wrap; }
.dec-tpl-radio .tpl-chip { font-size: 7px; color: #fff; background: var(--tp-primary, #d4a77e); border-radius: 999px; padding: 1px 6px; }
.dec-tpl-radio .tpl-chip.ghost { color: var(--tp-deep, #8a674a); background: var(--tp-soft, #f7ece2); }

/* ============================================================
 * 通用配置 · 排版方案 A：配置左 · 全局粘性预览贴边右
 * ============================================================ */
.dga-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dga-config { min-width: 0; }
.dga-preview { position: sticky; top: 12px; }
/* 大预览里的四宫格 + banner 图（沿用 .dgp-* 主题变量） */
.dga-preview .dgp-hero { position: relative; overflow: hidden; }
.dga-preview .dgp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dga-preview .dgp-hero.has-img .dgp-hero-title { position: relative; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.dga-preview .dgp-hero.has-img .dgp-hero-cta { position: relative; }
.dga-preview .dgp-qn { display: flex; justify-content: space-around; padding: 10px 8px 2px; }
.dga-preview .dgp-qn-i { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dga-preview .dgp-qn-i i { width: 30px; height: 30px; border-radius: 9px; background: var(--pv-soft, #f7ece2); display: block; }
.dga-preview .dgp-qn-i span { font-size: 10px; color: var(--pv-sub, #6f665e); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) {
  .dga-page { grid-template-columns: 1fr; }
  .dga-preview { position: static; max-width: 320px; }
}

/* 主题色整块包一层，避免 el-form-item__content 的 flex-wrap 把各行挤到一起 */
.dec-theme-block { width: 100%; }
.dec-theme-block .dec-theme-label { width: 100%; }
.dec-theme-block .dec-preset-row,
.dec-theme-block .dec-color-row { width: 100%; flex-wrap: wrap; }

/* 自定义主题色卡（第 5 个，内嵌 el-color-picker，点色块弹取色器） */
.dec-preset-custom .el-color-picker { line-height: 1; height: 24px; }
.dec-preset-custom .el-color-picker__trigger { width: 40px; height: 24px; padding: 2px; border-radius: 6px; }
.dec-preset-custom .el-color-picker__color { border-radius: 4px; }
.dec-preset-custom .el-color-picker__icon { display: none; }
