@charset "UTF-8";
/* Watermark page — 加水印专属：预览舞台 / 位置九宫格 / 颜色与透明度；其余复用 compress.css */
/* ── 预览舞台 ── */
.wm-stage {
  margin-top: 20px;
  border: 1px solid #eceae4;
  border-radius: 16px;
  background: linear-gradient(45deg, rgba(28, 28, 28, 0.03) 25%, transparent 25%, transparent 75%, rgba(28, 28, 28, 0.03) 75%), linear-gradient(45deg, rgba(28, 28, 28, 0.03) 25%, transparent 25%, transparent 75%, rgba(28, 28, 28, 0.03) 75%), #fcfbf8;
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
}

.wm-stage__canvas {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(28, 28, 28, 0.1);
}
.wm-stage__canvas:not([hidden]) {
  display: block;
}

.wm-stage__placeholder {
  text-align: center;
  color: rgba(28, 28, 28, 0.62);
  font-size: 14px;
  line-height: 1.7;
}
.wm-stage__placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
  margin-bottom: 10px;
}

.wm-srcinfo {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: #5f5f5d;
  letter-spacing: 0.01em;
  min-height: 1em;
  text-align: center;
}

/* ── 位置九宫格 ── */
.wm-pos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 132px;
  aspect-ratio: 3/2;
  margin-top: 4px;
}

.wm-pos__cell {
  border: 1px solid #dcd8cc;
  border-radius: 7px;
  background: #f7f4ed;
  cursor: pointer;
  position: relative;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-pos__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(28, 28, 28, 0.18);
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-pos__cell:hover {
  border-color: rgba(28, 28, 28, 0.4);
}
.wm-pos__cell.is-active {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(28, 28, 28, 0.9);
}
.wm-pos__cell.is-active::after {
  background: #fcfbf8;
}

/* ── 颜色 + 不透明度行 ── */
.wm-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* 距边滑块行（细节 d）：位于九宫锚点下方 */
.wm-margin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.wm-margin-row > label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #5f5f5d;
}
.wm-margin-row .control-slider {
  flex: 1 1 auto;
}

.wm-color {
  width: 44px;
  height: 34px;
  padding: 0;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  background: #f7f4ed;
  cursor: pointer;
  flex: 0 0 auto;
}

.wm-color-row .control-slider {
  flex: 1 1 auto;
}

/* ── 勾选行 ── */
.wm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5f5f5d;
  cursor: pointer;
  user-select: none;
}
.wm-check + .wm-check {
  margin-top: 10px;
}
.wm-check input {
  width: 15px;
  height: 15px;
  accent-color: #1c1c1c;
  cursor: pointer;
}

/* ── 数字输入行（自包含） ── */
.wm-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wm-dim-row + .wm-dim-row {
  margin-top: 10px;
}

.wm-dim-row > label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #5f5f5d;
  min-width: 60px;
}

.wm-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.wm-input {
  width: 100%;
  padding: 9px 38px 9px 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  color: #1c1c1c;
  background: #f7f4ed;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -moz-appearance: textfield;
  appearance: textfield;
}
.wm-input::-webkit-outer-spin-button, .wm-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wm-input:focus {
  outline: none;
  border-color: rgba(28, 28, 28, 0.45);
  box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.06);
}

.wm-unit {
  position: absolute;
  right: 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.62);
  pointer-events: none;
}

/* 条件显隐 / 禁用态 */
.control-group.is-hidden {
  display: none;
}

#wm-quality-group.is-disabled {
  opacity: 0.5;
}

/* ── 水印文字输入（textarea 可多行） ── */
.wm-text-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1c1c1c;
  background: #f7f4ed;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  resize: vertical;
  min-height: 68px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-text-input:focus {
  outline: none;
  border-color: rgba(28, 28, 28, 0.45);
  box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.06);
}

/* 文字辅助按钮行（+日期 / 清空 / 适配 / 1:1） */
.wm-text-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wm-mini-btn {
  padding: 4px 12px;
  font-size: 12px;
  color: #5f5f5d;
  background: #f7f4ed;
  border: 1px solid #dcd8cc;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-mini-btn:hover {
  color: #1c1c1c;
  border-color: rgba(28, 28, 28, 0.4);
}
.wm-mini-btn.is-on {
  background: rgba(28, 28, 28, 0.9);
  color: #fcfbf8;
  border-color: rgba(28, 28, 28, 0.9);
}

/* ── 拖拽定位：命中水印时变抓手（JS 按 bbox 命中动态加类） ── */
.wm-stage__canvas.is-grabbable {
  cursor: grab;
}

.wm-stage__canvas.is-dragging {
  cursor: grabbing;
}

/* hidden 属性必须压过自定义 display（历史陷阱：display 压掉 [hidden]） */
#wm-row-logo[hidden],
#wm-row-text[hidden],
#wm-row-size[hidden],
#wm-group-font[hidden],
.wm-color-chips[hidden],
.wm-stage__tools[hidden] {
  display: none !important;
}

/* ── Logo 行：已选文件名与移除按钮 ── */
.wm-logo-name {
  margin: 8px 0 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: #5f5f5d;
  word-break: break-all;
}

.wm-logo-clear {
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #5f5f5d;
  background: transparent;
  border: 1px solid #dcd8cc;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-logo-clear:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.4);
}

/* ── 位置提示行 ── */
.wm-pos-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(28, 28, 28, 0.62);
}

/* ── 导出体积预估（与 stitch/resize 同构） ── */
.wm-est {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: rgba(28, 28, 28, 0.62);
  min-height: 0;
  text-align: center;
}

/* ── 颜色快捷 chip ── */
.wm-color-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wm-color-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #dcd8cc;
  background: var(--chip);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-color-chip:hover {
  transform: scale(1.08);
}
.wm-color-chip.is-on {
  box-shadow: 0 0 0 2px #fcfbf8, 0 0 0 4px rgba(28, 28, 28, 0.7);
}

/* ── 风格预设 chips ── */
.wm-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.wm-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px;
  text-align: left;
  background: #f7f4ed;
  border: 1px solid #dcd8cc;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-preset b {
  font-size: 12.5px;
  font-weight: 500;
  color: #1c1c1c;
}
.wm-preset em {
  font-style: normal;
  font-size: 11px;
  color: rgba(28, 28, 28, 0.62);
}
.wm-preset:hover {
  border-color: rgba(28, 28, 28, 0.4);
}
.wm-preset.is-on {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(28, 28, 28, 0.9);
}
.wm-preset.is-on b, .wm-preset.is-on em {
  color: #fcfbf8;
}

/* ── 舞台工具行：1:1 开关 + 元数据徽章 ── */
.wm-stage__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cv-meta-badge {
  font-size: 11px;
  color: rgba(28, 28, 28, 0.62);
  border: 1px dashed #dcd8cc;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── 预览 1:1：按源图真实像素展示，舞台变滚动容器（与拼接页同法） ── */
.wm-stage.is-zoom {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
}
.wm-stage.is-zoom .wm-stage__canvas {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ── 批量队列：缩略图横排，点选切换预览、✕ 单项移除（>1 张才现身） ── */
.wm-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
}
.wm-queue[hidden] {
  display: none !important;
}

.wm-queue__cell {
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f7f4ed;
  cursor: pointer;
  padding: 3px;
  line-height: 0;
  transition: border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-queue__cell:hover {
  border-color: rgba(28, 28, 28, 0.35);
  transform: translateY(-1px);
}
.wm-queue__cell.is-on {
  border-color: rgba(28, 28, 28, 0.9);
}
.wm-queue__cell.is-on .wm-queue__idx {
  background: rgba(28, 28, 28, 0.9);
  color: #fcfbf8;
}

.wm-queue__thumb {
  display: block;
  border-radius: 5px;
}

.wm-queue__idx {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f1eee6;
  border: 1px solid #dcd8cc;
  color: #5f5f5d;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.wm-queue__rm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #dcd8cc;
  background: #fcfbf8;
  color: rgba(28, 28, 28, 0.62);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-queue__cell:hover .wm-queue__rm, .wm-queue__cell:focus-within .wm-queue__rm {
  opacity: 1;
}
.wm-queue__rm:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.4);
}

/* 触屏无 hover：删除钮常显（与拼接页同法防幽灵不可点） */
@media (hover: none) {
  .wm-queue__rm {
    opacity: 1;
  }
}
.wm-queue-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(28, 28, 28, 0.62);
  text-align: center;
}
.wm-queue-note[hidden] {
  display: none !important;
}

/* ── 角度快捷 chips ── */
.wm-angle-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.wm-angle-quick[hidden] {
  display: none !important;
}
.wm-angle-quick .wm-mini-btn {
  padding: 3px 10px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

/*# sourceMappingURL=watermark.css.map */
