/* ===== 滑块验证码美化 v2 ===== */

/* -- 滑块按钮 -- */
.slider-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 2px;
    top: 2px;
    z-index: 12;
    cursor: pointer;
    background: linear-gradient(135deg, #418AF2, #2d6fd4);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(65,138,242,0.35);
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sliderPulse 2s ease-in-out infinite;
}
.slider-btn::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #fff;
    border-top: 2.5px solid #fff;
    transform: rotate(45deg);
    margin-left: -3px;
}
.slider-btn:hover {
    box-shadow: 0 4px 14px rgba(65,138,242,0.5);
    transform: scale(1.05);
}
.slider-btn:active {
    box-shadow: 0 1px 4px rgba(65,138,242,0.3);
    transform: scale(0.97);
    animation: none;
}

@keyframes sliderPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(65,138,242,0.35); }
    50%      { box-shadow: 0 2px 16px rgba(65,138,242,0.6); }
}

/* -- 轨道填充进度 -- */
.slider-track-fill {
    position: absolute;
    left: 2px;
    top: 2px;
    height: 40px;
    width: 0;
    background: linear-gradient(135deg, #418AF2, #2d6fd4);
    border-radius: 20px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* -- 验证提示条 -- */
.ver-tips {
    position: absolute;
    left: 0;
    bottom: -22px;
    background: rgba(255,255,255,.95);
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 0 8px;
    transition: all .4s;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.slider-tips { bottom: 0; }

/* 验证成功 icon */
.ver-success-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #52c41a;
    position: relative;
    vertical-align: middle;
    margin-right: 4px;
    animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ver-success-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    top: 5px;
    left: 4px;
}
.ver-tips .success-text { color: #52c41a; vertical-align: middle; }

/* 验证失败 icon */
.ver-error-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4d4f;
    position: relative;
    vertical-align: middle;
    margin-right: 4px;
}
.ver-error-icon::after,
.ver-error-icon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
}
.ver-error-icon::after  { transform: translate(-50%, -50%) rotate(45deg); }
.ver-error-icon::before { transform: translate(-50%, -50%) rotate(-45deg); }
.ver-tips .error-text { color: #ff4d4f; vertical-align: middle; }

/* 失败抖动 */
@keyframes verShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.puzzle-lost-box.ver-shake {
    animation: verShake 0.45s ease;
}

/* 弹出动画 */
@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); opacity: 1; }
}

/* -- 刷新按钮 -- */
.re-btn {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 28px;
    padding: 0 16px;
}
.re-btn a {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 5px 0;
    border: 2px solid #bbb;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border-color 0.25s;
}
.re-btn a::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-left: 2px solid #bbb;
    top: -2px;
    left: -2px;
    transition: border-left-color 0.25s;
}
.re-btn a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid #bbb;
    top: -8px;
    right: -4px;
    transform: rotate(30deg);
    transition: border-bottom-color 0.25s;
}
.re-btn a:hover {
    border-color: #418AF2;
    animation: refreshSpin 0.6s ease;
}
.re-btn a:hover::before { border-left-color: #418AF2; }
.re-btn a:hover::after  { border-bottom-color: #418AF2; }

@keyframes refreshSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* -- 弹窗关闭按钮 -- */
.verBox-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    z-index: 10;
    transition: background 0.2s;
}
.verBox-close:hover { background: rgba(0,0,0,0.12); }
.verBox-close::before,
.verBox-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #888;
    top: 50%;
    left: 50%;
    transition: background 0.2s;
}
.verBox-close:hover::before,
.verBox-close:hover::after { background: #555; }
.verBox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.verBox-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* -- 隐藏 -- */
.hidden { display: none; }

/* -- 遮罩弹窗 -- */
.verBoxfull {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    z-index: 999;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
}
.verBox_hide {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.verBox {
    width: 324px;
    height: 243px;
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.verBoxmain {
    width: 294px;
    padding: 15px;
    position: absolute;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf1;
    background: #fff;
    border-radius: 16px;
}
