/* Zaka · 界面精修 1180（只做加法，不改原组件结构） */

/* 1. 原站遗留头部/角标：永久不显示，任何路由下都不露 */
.zg-origin-left,
.zg-origin-right { display: none !important; }

/* 2. 顶部空 tabs 行（原站那 30px 灰条）：由脚本打标后隐藏 */
[data-zg-strip="1"] { display: none !important; }

/* 3. 底部三个操作按钮：去图标、只留文字、胶囊居中 */
.zg-ed-actions .ant-btn {
  height: 28px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  margin: 0 2px !important;
}
.zg-ed-actions .ant-btn > span {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.zg-ed-actions .ant-btn > i,
.zg-ed-actions .ant-btn > svg,
.zg-ed-actions .ant-btn > img { display: none !important; }
.zg-ed-actions { gap: 6px; }

/* 4. 右侧编辑菜单：去掉半屏空白占位，列表按顺序往下铺满 */
.menu-content { display: flex !important; flex-direction: column !important; }
.menu-content > div[style*="height: 50%"],
.menu-content > div[style*="height:50%"] { display: none !important; }
.menu-content ul.menu-list {
  flex: 1 1 auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.menu-content ul.menu-list > li {
  flex: 1 1 0 !important;
  min-height: 30px;
  max-height: 64px;
  display: flex !important;
  align-items: center !important;
}
.menu-content ul.menu-list > li > * { width: 100%; }

/* 5. 主题色入口搬进编辑菜单后的样式 */
.zg-menu-item {
  display: flex; align-items: center; justify-content: center;
  height: 34px; margin: 6px 4px 0; padding: 0 6px;
  border: 1px solid #e3e6ee; border-radius: 8px;
  font-size: 12px; color: #2b3552; background: #fff;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  flex: 0 0 auto;
}
.zg-menu-item:hover { border-color: #1676fd; color: #1676fd; }

/* 6. 编辑器切换模板：点了就给出反馈，画布不空等 */
.zg-switch-mask {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(245, 246, 248, .55);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 1; transition: opacity .15s linear;
}
.zg-switch-mask > span {
  background: rgba(23, 32, 58, .82); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
}

/* 7. 返回首页遮罩：先盖住，等我们自己的首页画好再淡出 */
#zgHomeCover {
  position: fixed; inset: 0; z-index: 2147483000;
  background: #f5f6f8; opacity: 1;
  transition: opacity .18s linear; pointer-events: none;
}
#zgHomeCover.zg-cover-out { opacity: 0; }

/* 8. 旧版“正在切换…”遮罩停用（由 #zgHomeCover 接管，避免两套遮罩打架） */
.zg-veil { display: none !important; }
