/* ============================ 微信同款截图 ============================ */
.ss-mask {
  position: fixed; inset: 0; z-index: 9000;
  cursor: crosshair; background: #191918;
  user-select: none; overflow: hidden;
}

.ss-bg { position: absolute; display: block; }
.ss-dim { position: absolute; display: block; pointer-events: none; }

/* 选区：微信是 1px 浅色描边 */
.ss-sel {
  position: absolute;
  outline: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--ring-hair);
}
.ss-anno { position: absolute; left: 0; top: 0; pointer-events: none; }

/* 尺寸标签：微信放在选区左上角外侧 */
.ss-size {
  position: absolute; left: 0; top: 0px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(25, 25, 24, 0.88); color: #fff;
  font: 500 12px ui-monospace, Consolas, monospace;
  white-space: nowrap; pointer-events: none;
  letter-spacing: 0.02em;
}

/* 8 个缩放手柄 */
.ss-handles { position: absolute; inset: 0; pointer-events: none; }
.ss-handle {
  position: absolute; width: 7px; height: 7px;
  background: #fff; border: 1px solid #2f7d5d;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}
.ss-h-nw { left: 0px; top: 0px; cursor: nwse-resize; }
.ss-h-n  { left: calc(50% - 4px); top: 0px; cursor: ns-resize; }
.ss-h-ne { right: 0px; top: 0px; cursor: nesw-resize; }
.ss-h-e  { right: 0px; top: calc(50% - 4px); cursor: ew-resize; }
.ss-h-se { right: 0px; bottom: 0px; cursor: nwse-resize; }
.ss-h-s  { left: calc(50% - 4px); bottom: 0px; cursor: ns-resize; }
.ss-h-sw { left: 0px; bottom: 0px; cursor: nesw-resize; }
.ss-h-w  { left: 0px; top: calc(50% - 4px); cursor: ew-resize; }

/* 顶部提示 */
.ss-hint {
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 999px;
  background: rgba(25, 25, 24, 0.78); color: #fff;
  font-size: 0.8125rem; white-space: nowrap; pointer-events: none;
  letter-spacing: 0.01em;
}

/* 十字准星：光标处的小十字（微信风格，不是贯穿全屏的线） */
.ss-cross-v, .ss-cross-h {
  position: fixed; display: none; pointer-events: none; z-index: 9001;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--ring-hair);
}
.ss-cross-v { width: 1px; height: 18px; }
.ss-cross-h { height: 1px; width: 18px; }
/* 放大镜 */
.ss-loupe {
  position: fixed; z-index: 9002; display: none;
  width: 96px; border-radius: 8px; overflow: hidden;
  background: #191918; border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
}
.ss-loupe-cv { display: block; width: 96px; height: 96px; }
.ss-loupe-txt {
  padding: 3px 6px; font: 500 11px ui-monospace, Consolas, monospace;
  color: #d3d0c7; background: rgba(0, 0, 0, 0.45);
  text-align: center; white-space: nowrap;
}

/* 工具栏：微信是深色圆角条 + 图标按钮 */
.ss-toolbar {
  position: fixed; display: none; align-items: center; gap: 1px;
  padding: 4px 6px; border-radius: 8px;
  background: rgba(38, 38, 36, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  z-index: 9003;
}

.ss-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 4px; background: transparent;
  cursor: pointer; color: #d3d0c7;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.ss-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ss-btn.on { background: rgba(47, 125, 93, 0.85); color: #fff; }
.ss-btn:disabled { cursor: default; }
.ss-btn.dim { opacity: 0.3; }
.ss-btn.dim:hover { background: transparent; color: #d3d0c7; }
.ss-btn svg {
  width: 18px; height: 18px; fill: none;
  stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.ss-btn-ok { background: #2f7d5d; color: #fff; }
.ss-btn-ok:hover { background: #2f7d5d; }
.ss-btn-ok svg { stroke-width: 2; }
.ss-btn-x:hover { background: rgba(255, 59, 48, 0.25); color: #ff8078; }

.ss-vsep {
  width: 1px; height: 18px; margin: 0 4px;
  background: rgba(255, 255, 255, 0.14);
}

.ss-palette { display: flex; align-items: center; gap: 4px; padding: 0 3px; }
.ss-dot {
  width: 13px; height: 13px; padding: 0; border-radius: 50%;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) ease;
}
.ss-dot:hover { transform: scale(1.18); }
.ss-dot.on { border-color: rgba(255, 255, 255, 0.9); }

/* 文字输入 */
.ss-textarea {
  position: fixed; z-index: 9004;
  min-width: 100px; min-height: 26px;
  padding: 3px 4px;
  border: 1px dashed rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  font: 600 15px "Microsoft YaHei UI", sans-serif;
  outline: none; resize: none;
}
