.mc-wrap {
  font-size: 14px;
  color: #334;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.mc-type { font-weight: 600; color: #334; flex: 1; min-width: 0; }
.mc-refresh {
  border: 0;
  background: none;
  color: #4e8cff;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mc-hint {
  color: #556;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.45;
  word-break: break-word;
}
.mc-msg {
  margin-top: 8px;
  color: #22a06b;
  font-size: 13px;
  min-height: 18px;
}
.mc-body { max-width: 100%; overflow: visible; }
.mc-action { max-width: 100%; padding-bottom: 4px; }
.mc-slider-panel,
.mc-rotate-panel,
.mc-click-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f8;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.mc-panel-inner {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}
.mc-slider-panel .mc-bg,
.mc-click-img,
.mc-rotate-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.mc-block {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.mc-bar {
  position: relative;
  margin: 12px auto 0;
  height: 44px;
  background: #eef2f8;
  border-radius: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  touch-action: none;
}
.mc-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 22px;
  background: #d8e7ff;
}
.mc-knob {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: #4e8cff;
  color: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.mc-knob:active { cursor: grabbing; }
.mc-click-img {
  cursor: crosshair;
  border-radius: 8px;
  touch-action: manipulation;
}
.mc-click-markers {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.mc-click-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #4e8cff;
  color: #fff;
  font-size: 11px;
  pointer-events: none;
}
.mc-click-tip { text-align: center; color: #556; margin-top: 8px; font-size: 13px; }
.mc-rotate-action {
  padding: 4px 0 8px;
}
.mc-rotate-label { font-size: 13px; color: #556; margin: 6px 0 4px; text-align: center; }
.mc-rotate-range {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 6px 0 8px;
  box-sizing: border-box;
  height: 32px;
}
.mc-rotate-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #4e8cff;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.mc-layer-box {
  padding: 8px 6px 12px;
  min-height: 120px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

@media (max-width: 480px) {
  .mc-wrap { font-size: 13px; }
  .mc-hint { font-size: 12px; margin-bottom: 8px; }
  .mc-head { margin-bottom: 6px; }
  .mc-layer-box { padding: 6px 4px 10px; }
  .mc-rotate-panel { max-width: 150px; }
  .mc-rotate-label { font-size: 12px; margin: 4px 0; }
  .mc-rotate-btn { padding: 11px 12px; font-size: 14px; }
}

/* layer 弹层：准备阶段隐藏，避免先大后小闪烁 */
.mc-layer-dialog.mc-layer-preparing {
  opacity: 0 !important;
  visibility: hidden;
}
/* layer 弹层：允许内容区滚动，避免旋转题按钮被裁切 */
.mc-layer-dialog.layui-layer {
  max-height: 92vh;
  box-sizing: border-box;
}
.mc-layer-dialog .layui-layer-content {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
