.captcha-plugin-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    user-select: none;
}

.captcha-plugin-canvas-wrapper {
    position: relative;
    width: 300px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

#captcha-plugin-bgCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.captcha-plugin-gap-block {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
    z-index: 1;
}

.captcha-plugin-puzzle-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.captcha-plugin-slider-container {
    position: relative;
    width: 300px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 20px;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 40px;
    color: #999;
    font-size: 14px;
}

.captcha-plugin-slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #d1e9ff;
    border-radius: 20px 0 0 20px;
    width: 0;
    box-sizing: border-box;
}

.captcha-plugin-slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a90e2;
    z-index: 3;
    transition: background 0.3s;
}

.captcha-plugin-slider-btn:active {
    cursor: grabbing;
    background: #f0f7ff;
}

.captcha-plugin-success .captcha-plugin-slider-btn {
    background: #52c41a;
    color: white;
    border-color: #52c41a;
}
.captcha-plugin-success .captcha-plugin-slider-track {
    background: #f6ffed;
    border-color: #52c41a;
}

.captcha-plugin-fail .captcha-plugin-slider-btn {
    background: #ff4d4f;
    color: white;
}
.captcha-plugin-fail .captcha-plugin-slider-track {
    background: #fff1f0;
    border-color: #ff4d4f;
}

.captcha-plugin-refresh-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10;
}
.captcha-plugin-refresh-icon:hover { color: #333; }