/* 文字点选验证码公共组件（原生 jQuery，员工/代理商可复用） */
.click-captcha {
    width: 340px;
    max-width: 100%;
    box-sizing: border-box;
    user-select: none;
}
.click-captcha * { box-sizing: border-box; }

/* 提示行 */
.click-captcha .cc-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    min-height: 22px;
}
.click-captcha .cc-prompt .cc-text { font-weight: 600; }
.click-captcha .cc-prompt .cc-refresh {
    cursor: pointer;
    color: #667eea;
    font-size: 16px;
    padding: 0 4px;
}
.click-captcha .cc-prompt .cc-refresh:hover { color: #5568d3; }

/* 图片点击区 */
.click-captcha .cc-canvas-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f6;
    border: 1px solid #e4e7ed;
}
.click-captcha .cc-img {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
}

/* 点击标记（序号圆点），绝对定位由 JS 按比例设置；可点击撤回 */
.click-captcha .cc-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    transition: transform .12s ease, background .12s ease;
    animation: cc-pop .15s ease;
}
.click-captcha .cc-marker:hover {
    background: #f56c6c;
    transform: scale(1.18);
    z-index: 5;
}
@keyframes cc-pop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 底部状态/操作条 */
.click-captcha .cc-bar {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
}
.click-captcha .cc-tip {
    font-size: 13px;
    color: #909399;
}
.click-captcha .cc-tip.cc-error { color: #f56c6c; }
.click-captcha .cc-tip.cc-success { color: #67c23a; }
.click-captcha .cc-actions { display: flex; gap: 8px; }
.click-captcha .cc-btn {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 15px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    min-width: 60px;
}
.click-captcha .cc-btn.cc-primary {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}
.click-captcha .cc-btn.cc-primary:disabled {
    background: #a0a8d8;
    border-color: #a0a8d8;
    cursor: not-allowed;
}
.click-captcha .cc-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.7);
    color: #667eea;
    font-size: 13px;
    z-index: 8;
}
.click-captcha.sc-loading .cc-loading { display: flex; }

/* ===== popup 浮层模式 ===== */
.cc-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}
.cc-mask.cc-show {
    opacity: 1;
    visibility: visible;
}
.cc-popup {
    position: fixed;
    z-index: 9001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%) scale(.96);
    width: 372px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
}
.cc-popup.cc-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.cc-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f4;
}
.cc-popup-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}
.cc-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #909399;
    padding: 0 4px;
}
.cc-close:hover { color: #606266; }
.cc-popup-body {
    width: 100%;
    padding: 14px 16px 16px;
}
.cc-popup-body.click-captcha { width: auto; max-width: none; }
