.captcha-container {
    position: relative;
    width: 300px;
    margin: 20px auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 15px;
    border: 1px solid #eee;
}
.bg-image {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.bg-image img {
    width: 100%;
    display: block;
    pointer-events: none;
}
.slider {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: grab;
    touch-action: none;
}
.slider img {
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.slider-track {
    margin-top: 10px;
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    position: relative;
    background: linear-gradient(to right, #e8e8e8, #f5f5f5);
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.dragger {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    cursor: grab;
    left: 0;
    top: 0;
    touch-action: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.1s, transform 0.1s;
}
.dragger:active {
    cursor: grabbing;
    background: #2a5fa3;
    transform: scale(0.95);
}
#captcha-result {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.captcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.captcha-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* 模态框工具栏 */
.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.captcha-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.captcha-actions {
    display: flex;
    gap: 10px;
}
.captcha-refresh, .captcha-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
    transition: color 0.2s;
}
.captcha-refresh:hover, .captcha-close:hover {
    color: #333;
}
.captcha-refresh:active, .captcha-close:active {
    transform: scale(0.95);
}

.captcha-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 4px;
}