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

.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: #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: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
}

.dec-phone-body {
  background: #f4f5f7;
  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:hover { outline-color: rgba(26, 26, 26, 0.18); }
.dec-phone-mod.selected { outline-color: #1a1a1a; }

.dec-phone-tabbar {
  display: flex;
  background: #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: #1a1a1a; 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: #e9eaec; }
.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: #b8bec6; font-size: 12px; background: #e9eaec; }
.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; }
.m-swiper.is-immersive .m-swiper-cap { padding-top: 58px; }
.m-swiper-cap .t { font-size: 16px; font-weight: 700; }
.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 单图（全宽，图片背景 / 纯色底） */
.m-banner { padding: 26px 16px; min-height: 116px; background-color: #1a1a1a; background-size: cover; background-position: center; }
.m-banner-title { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.m-banner-sub { margin-top: 6px; font-size: 12px; opacity: 0.85; }

/* Quick Nav（线性图标，无圆底，白卡） */
.m-quick-nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px; margin: 8px; background: #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: #f2f4f7; box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.06); }
.m-quick-nav .ic-emoji { font-size: 22px; }
.m-quick-nav .lbl { font-size: 11px; color: #3f4a56; }

/* Section head shared */
.m-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-size: 14px; font-weight: 600; }
.m-sec-head .t { color: #1f2329; }
.m-sec-head .more { color: #98a2b3; 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: #fff; border-radius: 12px; padding-bottom: 10px; }

/* Service list */
.m-svc-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 92px; padding: 10px 14px; }
.m-svc-row .cover { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; color: #98a2b3; font-weight: 700; background: #f0f1f3; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.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: 750; color: #1f2329; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-svc-row .meta { font-size: 12px; color: #98a2b3; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-svc-row .price { color: #1a1a1a; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.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: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 22px rgba(15, 23, 42, 0.08); transform: translateY(0) scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-svc-card:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.10); }
.m-svc-card:active { transform: scale(0.96); }
.m-svc-card .cover { width: 120px; height: 96px; border-radius: 12px; display: grid; place-items: center; color: #98a2b3; font-weight: 700; background: #f0f1f3; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.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: #1f2329; font-size: 13px; line-height: 1.28; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-svc-card .meta { margin-top: 4px; color: #98a2b3; 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 { color: #1a1a1a; font-size: 16px; font-weight: 800; 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(--brand-primary, #FB7B10); color: #fff; font-size: 11px; font-weight: 700; }
.m-product-list .m-svc-card .book { background: #1a1a1a; }
.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: #171013; color: #fff; font-size: 10px; font-weight: 800; }
.m-card-pkg-card .pkg-gift { min-width: 0; color: var(--brand-primary, #FB7B10); font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card-pkg-row .pkg-cover { background: #171013; color: #fff; font-size: 18px; }

/* 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: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 22px rgba(15, 23, 42, 0.08); transform: translateY(0) scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-sk-card:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.10); }
.m-sk-card:active { transform: scale(0.96); }
.m-sk-card .cover { width: 72px; height: 72px; border-radius: 12px; background: #1a1a1a; color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10); }
.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: 750; color: #1f2329; 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 { color: #1a1a1a; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-sk-card .origin { color: #98a2b3; 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: #1a1a1a; transition-property: width; transition-duration: 180ms; transition-timing-function: ease-out; }
.m-sk-card .meta { font-size: 10px; color: #98a2b3; margin-top: 4px; }
.m-sk-card .btn { width: 58px; padding: 7px 0; background: #1a1a1a; color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; box-shadow: 0 8px 20px rgba(23, 16, 19, 0.16); }

/* 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: #f7f6f4; border-radius: 12px; text-align: center; color: #1a1a1a; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-cp-card:active { transform: scale(0.96); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.m-cp-card .v { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-size: 22px; line-height: 1; font-weight: 800; color: #1a1a1a; 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: #1f2329; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-card .t { font-size: 10px; margin: 3px 0 10px; color: #98a2b3; 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: transparent; box-shadow: inset 0 0 0 1px #1a1a1a; color: #1a1a1a; border-radius: 999px; font-size: 11px; font-weight: 700; }
.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: #f7f6f4; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-cp-hero:active { transform: scale(0.96); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.m-cp-token { height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; background: #fff; color: #1a1a1a; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(23, 16, 19, 0.06); }
.m-cp-token span { font-size: 26px; line-height: 1; font-weight: 850; 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: #1f2329; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cp-copy .t { margin-top: 5px; color: #98a2b3; 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: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.09); transform: scale(1); transition-property: transform, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.m-staff-cell:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.12); }
.m-staff-cell:active { transform: scale(0.96); }
.m-staff-cell .ava { width: 100%; height: 128px; color: #fff; display: grid; place-items: center; font-weight: 800; background-color: #1a1a1a; background-size: cover; background-position: center; box-shadow: inset 0 -44px 54px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.10); }
.m-staff-cell .ava.photo span { display: none; }
.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: space-between; gap: 8px; min-width: 0; }
.m-staff-cell .n { min-width: 0; font-size: 13px; font-weight: 750; color: #1f2329; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-staff-cell .score { flex-shrink: 0; color: #fb7b10; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-staff-cell .r { margin-top: 3px; font-size: 10px; color: #98a2b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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: #f7f6f4; color: #4a525d; 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: #667085; font-size: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Notice */
.m-notice { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; margin: 8px; background: #f7f8fa; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04); }
.m-notice .notice-badge { flex-shrink: 0; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-primary, #FB7B10); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.m-notice.is-static .notice-badge { background: #fff; color: var(--brand-primary, #FB7B10); box-shadow: inset 0 0 0 1px var(--brand-primary, #FB7B10); }
.m-notice .notice-viewport { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.m-notice .notice-text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #667085; font-size: 12px; font-weight: 500; line-height: 1; }
.m-notice.is-scroll .notice-text { display: inline-block; max-width: none; padding-left: 100%; overflow: visible; text-overflow: clip; animation: m-notice-marquee 12s linear infinite; }
@keyframes m-notice-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .m-notice.is-scroll .notice-text { display: block; max-width: 100%; padding-left: 0; overflow: hidden; text-overflow: ellipsis; animation: none; }
}

.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-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 .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); }
