/* ============================================================
 * IE10 / IE11 阿里云验证码弹窗兜底样式
 *
 * 适用页面（同城游用户中心登录）：
 *   http://user.tcy365.com/login.html
 *   https://user.tcy365.com/loginh5.html
 *   https://user.tcy365.com/login2.html
 *
 * 放置位置：
 *   login.html  -> Styles/css/login.css 末尾（或页面顶部已有的 <style> 里）
 *   loginh5.html / login2.html
 *               -> //static.tcy365.com/uc/uclogin/style/login_v1.3.0.css 末尾
 *
 * 背景：
 *   阿里云 SDK（AliyunCaptcha 1.3.7 + dynamicJS 3.x）把尺寸/定位写在
 *   <html style="--aliyun-zoom-ratio: 0.9; --aliyun-imgbox-height: 200px;
 *               --aliyun-puzzle-slide-height: 40px;"> 这些 CSS 变量上，
 *   IE10/11 不支持 var()，带 var() 的声明整条被判无效，导致：
 *     1. #aliyunCaptcha-window-popup 丢掉 translate(-50%,-50%)，
 *        弹窗左边缘停在页面中线（整体右移半个弹窗宽）；
 *     2. z-index 用的是 calc(var()+1)，一并失效；
 *     3. 拼图区 #aliyunCaptcha-img-box.puzzle / 滑动条 #aliyunCaptcha-sliding-body
 *        的 height 失效，高度塌成 0；
 *     4. 滑动条内的滑块是 absolute 40px，弹窗高度塌陷后溢出到框外。
 *
 * 注意：scale() 必须与该页 initAliyunCaptcha 的 rem 一致 —— 这三个页面是 0.9。
 * ============================================================ */

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* 弹窗：补回居中位移；层级 102 必须高于半透明遮罩 101 */
    #aliyunCaptcha-window-popup {
        transform: translate(-50%, -50%) scale(0.9) !important;
        -ms-transform: translate(-50%, -50%) scale(0.9) !important;
        z-index: 102 !important;
    }

    #aliyunCaptcha-mask {
        z-index: 101 !important;
    }

    /* 拼图形态（当前场景 14qsq1xz）：图片区 300×200，下方滑动条 300×40，
       两者同宽，文字框才会和图片框对齐 */
    #aliyunCaptcha-img-box {
        width: 300px !important;
    }

    #aliyunCaptcha-img-box.puzzle,
    #aliyunCaptcha-img.puzzle {
        height: 200px !important;
    }

    #aliyunCaptcha-sliding-body {
        width: 300px !important;
        height: 40px !important;
    }

    /* 滑块形态兜底（若场景切回滑动验证：slideStyle 333×40） */
    #aliyunCaptcha-sliding-body.sliding {
        width: 333px !important;
        height: 40px !important;
    }

    #aliyunCaptcha-sliding-body.sliding #aliyunCaptcha-sliding-text {
        width: 253px !important;
    }

    #aliyunCaptcha-sliding-body #aliyunCaptcha-sliding-slider {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
    }
}
