/* AJ-Captcha 滑动验证码 - 轻量 jQuery 版本样式 */
.ajc-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.ajc-mask.ajc-show { display: flex; }

.ajc-panel {
    /* 宽度 = 原图 310 + padding 12*2 = 334（与 AJ-Captcha 服务端底图原始尺寸完全一致，避免坐标换算） */
    width: 334px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    padding: 12px 12px 16px 12px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.ajc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}
.ajc-header .ajc-title { font-weight: 600; }
.ajc-tools { display: flex; gap: 8px; }
.ajc-tools i {
    cursor: pointer;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background .15s;
}
.ajc-tools i:hover { background: #f0f0f0; color: #333; }

.ajc-img-box {
    /* 宽高与 AJ-Captcha 服务端原图（310 x 155）一致，避免任何缩放导致 X 坐标失真 */
    position: relative;
    width: 310px;
    height: 155px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.ajc-img-bg { width: 310px; height: 155px; display: block; }
.ajc-img-block {
    position: absolute;
    top: 0;
    left: 0;
    height: 155px;
    /* 不设 width，让 piece 按原始 naturalWidth（47px）显示 */
    pointer-events: none;
    transition: none;
}
.ajc-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 4px 0;
    text-align: center;
    font-size: 12px;
    transform: translateY(100%);
    transition: transform .25s;
}
.ajc-img-box.ajc-fail .ajc-tip { transform: translateY(0); background: rgba(220, 53, 69, .85); }
.ajc-img-box.ajc-success .ajc-tip { transform: translateY(0); background: rgba(40, 167, 69, .85); }

.ajc-slider-wrap {
    margin-top: 14px;
    height: 40px;
    background: #f0f2f5;
    border: 1px solid #e1e4eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.ajc-slider-text {
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 40px;
    color: #94999f;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.ajc-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(106, 195, 244, .25);
    transition: none;
}
.ajc-slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .08);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a0aa;
    font-size: 14px;
    transition: background .15s;
    z-index: 2;
}
.ajc-slider-btn:active { cursor: grabbing; background: #1890ff; color: #fff; border-color: #1890ff; }
.ajc-slider-wrap.ajc-success .ajc-slider-fill { background: rgba(82, 196, 26, .25); }
.ajc-slider-wrap.ajc-success .ajc-slider-btn { background: #52c41a; color: #fff; border-color: #52c41a; }
.ajc-slider-wrap.ajc-fail .ajc-slider-fill { background: rgba(255, 77, 79, .2); }
.ajc-slider-wrap.ajc-fail .ajc-slider-btn { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }

.ajc-loading {
    text-align: center;
    color: #888;
    padding: 30px 0;
    font-size: 13px;
}
.ajc-loading .ajc-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #e1e4eb;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: ajc-spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes ajc-spin { to { transform: rotate(360deg); } }

.ajc-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.ajc-trigger:hover { border-color: #1890ff; color: #1890ff; }
.ajc-trigger.ajc-passed { background: #e8f6ee; border-color: #52c41a; color: #389e0d; }
.ajc-trigger .ajc-check { font-style: normal; }
