/* ============================================
   AI 图片去水印 · 专有样式
   依赖：public/vendor/life-calc/life-calc.css
   ============================================ */

/* 上传区 */
#app .wm-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafbfd;
    padding: 42px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
#app .wm-drop:hover,
#app .wm-drop.drag {
    border-color: var(--primary);
    background: var(--primary-light);
}
#app .wm-drop-inner svg { color: var(--primary); margin-bottom: 10px; }
#app .wm-drop-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
#app .wm-drop-sub { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 10px; }

#app .wm-msg {
    margin-top: 12px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 主体两栏 */
#app .wm-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}
#app .wm-stage-card { padding: 16px; }
#app .wm-canvas-wrap {
    background:
        linear-gradient(45deg, #e9edf3 25%, transparent 25%, transparent 75%, #e9edf3 75%),
        linear-gradient(45deg, #e9edf3 25%, transparent 25%, transparent 75%, #e9edf3 75%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
    background-color: #f6f8fb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    max-height: 560px;
}
#app #wmCanvas {
    max-width: 100%;
    max-height: 520px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}
#app .wm-stage-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    text-align: center;
    line-height: 1.6;
}

/* 进度条 */
#app .wm-progress { margin-top: 12px; text-align: center; }
#app .wm-progress-bar {
    height: 7px;
    background: #e8edf5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
#app .wm-progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    border-radius: 6px;
    transition: width .15s linear;
}
#app .wm-progress span { font-size: 0.78rem; color: var(--text-secondary); }

/* 侧栏 */
#app .wm-mode-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 10px;
}
#app .wm-row { display: flex; flex-wrap: wrap; gap: 8px; }
#app .wm-tool,
#app .wm-chip {
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.84rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
    font-family: inherit;
}
#app .wm-tool:hover,
#app .wm-chip:hover { border-color: var(--primary); color: var(--primary); }
#app .wm-tool.active,
#app .wm-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
#app .wm-slider { margin-top: 14px; }
#app .wm-slider label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}
#app .wm-slider label b { color: var(--primary); }
#app .wm-slider input[type="range"] { width: 100%; accent-color: var(--primary); }

#app .wm-invert-opts {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

#app .wm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
#app .wm-actions .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }

#app .wm-stat {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

#app .wm-help p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 8px;
}
#app .wm-help b { color: var(--text); }

@media (max-width: 860px) {
    #app .wm-body { grid-template-columns: 1fr; }
}
