/* 去水印 - 画布相关样式 */
.preview-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    font-size: 0; /* 消除图片下方的空白间隙 */
}

.preview-image-container img {
    display: block; /* 消除图片默认的inline-block间隙 */
    margin: 0 auto; /* 居中显示 */
    max-width: 100%;
}

.watermark-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* 确保触摸事件可以捕获 */
}

.watermark-canvas {
    position: absolute;
    cursor: crosshair;
    border-radius: 0.25rem;
    /* 确保画布大小与图片完全匹配 */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    touch-action: none; /* 阻止浏览器默认的触摸行为，提高触摸绘图的精度 */
    /* 添加细微的阴影使画布更容易区分 */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 自定义圆形光标 */
.custom-cursor .watermark-canvas {
    cursor: none !important;
}

/* 光标跟随圆形 */
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    /* 增强光标可见度 */
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.7) !important;
    background-color: rgba(255, 0, 0, 0.4) !important; /* 使用与JS中相配的红色 */
}

/* 预览区域操作按钮 */
.preview-actions {
    display: flex;
    align-items: center;
}

/* 画笔设置样式 */
.brush-settings {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.brush-size-slider {
    max-width: 100%;
    flex: 1;
}

.brush-size-value {
    min-width: 45px;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

/* 自定义表单元素样式 */
.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.form-range::-ms-thumb {
    background: #0d6efd;
}



/* 水印指导提示区域 */
.watermark-instruction {
    border-left: 4px solid #ffc107 !important;
}

/* 处理指示器动画 */
.shadow-pulse {
    animation: shadow-pulse 2s infinite;
}

@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 98, 227, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(44, 98, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 98, 227, 0);
    }
}

/* 悬停效果 */
.tool-item:hover .tool-icon {
    background-color: #e9f0ff;
    transform: translateY(-3px);
}

.tool-item .tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f9ff;
    color: #4a8eff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
} 