/* Base Styles from demo.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    /* 防止移动端页面晃动 - 2025-11-29 */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    position: relative;
}

/* 禁用页面滚动的状态类 - 2025-11-29 */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Layout Styles from demo.html */
.smallnav {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #3266a0, #2a5688);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.smallnav .cont {
    width: 1000px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
    color: #fff;
}

.smallnav .cont a {
    color: #fff;
    text-decoration: none;
}

.smallnav .cont .r a:hover {
    text-decoration: underline;
}

.smallnav .cont .l {
    float: left;
}

.smallnav .cont .r {
    float: right;
}

.top {
    clear: both;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top .cont {
    width: 1000px;
    height: 80px;
    margin: 0 auto;
    border-bottom: 2px solid #3266a0;
    display: flex;
    align-items: center;
}

.top .cont .l {
    flex: 0 0 auto;
}

.top .cont .m {
    flex: 1;
    font-size: 22px;
    font-weight: bold;
    padding-left: 20px;
    margin-left: 20px;
    color: #053158;
    border-left: 1px solid #e2e8f0;
}

.top .cont .m a {
    color: #3266a0;
    text-decoration: none;
}

.top .cont .r {
    flex: 0 0 auto;
}

.content {
    width: 1000px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.content .cont {
    width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.content .cont a {
    color: #30649e;
    text-decoration: none;
}

.content .cont a:hover {
    text-decoration: underline;
}

.footer {
    width: 100%;
    padding: 30px 0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.footer .cont {
    width: 1000px;
    margin: 0 auto;
}

.footer .cont a {
    color: #475569;
    text-decoration: none;
}

.footer .cont a:hover {
    color: #3266a0;
    text-decoration: underline;
}

.footer .cont .c2 {
    padding-top: 10px;
    font-size: 12px;
}

.tipClass {
    background: #f8fafc;
    border-radius: 10px;
    padding: 40px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tipStr {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 15px 0;
    letter-spacing: 0.5px;
    text-align: center;
}

.info-text {
    color: #64748b;
    font-size: 15px;
    margin-top: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

/* 桌面和大屏幕平板 - 2025-11-29 */
@media (max-width: 1040px) {

    .content,
    .smallnav .cont,
    .top .cont,
    .footer .cont {
        width: 95%;
    }

    .content .cont {
        width: 90%;
    }

    .tipClass {
        padding: 30px 20px;
    }
}

/* 平板设备 - 768px-1024px - 2025-11-29 */
@media (max-width: 768px) {
    .smallnav .cont {
        width: 100%;
        padding: 0 15px;
        font-size: 14px;
    }

    .top .cont {
        width: 100%;
        padding: 0 15px;
        height: 70px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .top .cont .m {
        font-size: 18px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
    }

    .content {
        width: 100%;
        margin: 20px auto;
    }

    .content .cont {
        width: 95%;
        padding: 30px 0;
    }

    .tipClass {
        padding: 25px 15px;
    }

    .tipStr {
        font-size: 18px;
    }

    .info-text {
        font-size: 14px;
    }

    /* 滑动验证码平板适配 - 2025-11-29 */
    .captcha-box {
        max-width: 350px;
    }

    .slider-container {
        height: 55px;
    }

    .slider-button {
        width: 75px;
        height: 53px;
        font-size: 18px;
    }

    .slider-text {
        font-size: 13px;
    }
}

/* 手机设备 - 320px-767px - 2025-11-29 */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        /* 移动端防晃动优化 - 2025-11-29 */
        touch-action: pan-y;
        -webkit-text-size-adjust: none;
        -ms-text-size-adjust: none;
        text-size-adjust: none;
        overscroll-behavior: contain;
    }

    .smallnav {
        height: 35px;
    }

    .smallnav .cont {
        height: 35px;
        line-height: 35px;
        font-size: 12px;
    }

    .top .cont {
        height: auto;
        min-height: 60px;
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
    }

    .top .cont .l {
        margin-bottom: 0;
        /* 移除多余间距 */
    }

    .top .cont .m {
        display: none;
        /* 手机端隐藏顶部标题，避免与卡片内标题重复 */
    }

    .logo {
        height: 40px !important;
        width: auto !important;
        max-width: 150px;
    }

    .content {
        margin: 10px auto;
        border-radius: 12px;
        /* 增大圆角 */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .content .cont {
        width: 95%;
        padding: 15px 0;
    }

    .tipClass {
        padding: 25px 15px;
        margin: 0;
        /* 移除内层多余margin */
        border: none;
        /* 移除边框，更简洁 */
        background: transparent;
    }

    /* 优化卡片内文字排版 */
    .tipStr:first-child {
        font-size: 20px;
        margin-bottom: 10px;
        color: #0f172a;
    }

    .tipStr:nth-child(2) {
        font-size: 14px;
        font-weight: normal;
        color: #64748b;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .info-text {
        font-size: 12px;
        color: #94a3b8;
        margin-top: 30px;
        line-height: 1.6;
    }

    /* 滑动验证码手机优化 - 2025-11-29 */
    .captcha-box {
        max-width: 300px;
        margin: 30px auto;
        /* 移动端防抖优化 - 2025-11-29 */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }

    .slider-container {
        height: 50px;
        border-radius: 25px;
    }

    .slider-track-wrapper {
        border-radius: 25px;
    }

    .slider-track {
        border-radius: 0 25px 25px 0;
    }

    .slider-button {
        width: 68px;
        height: 48px;
        border-radius: 25px;
        font-size: 16px;
        /* 增加触摸区域 - 2025-11-29 */
        min-height: 48px;
        min-width: 68px;
        /* 移动端拖动优化 - 2025-11-29 */
        touch-action: none;
        -webkit-user-drag: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        transform-origin: center center;
        will-change: transform, left;
    }

    .slider-text {
        font-size: 12px;
    }

    .status-msg {
        font-size: 13px;
        padding: 10px;
        margin-top: 12px;
        min-height: 40px;
    }

    .footer {
        padding: 20px 0;
        font-size: 12px;
    }

    /* 触摸优化 - 增加点击目标大小 - 2025-11-29 */
    .slider-button::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }

    /* 移动端触摸激活状态 - 2025-11-29 */
    .slider-button.mobile-touch-active {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 12px rgba(50, 102, 160, 0.4);
        background: #f8fafc;
    }
}

/* 超小手机设备 - 320px以下 - 2025-11-29 */
@media (max-width: 320px) {
    .captcha-box {
        max-width: 280px;
    }

    .slider-container {
        height: 45px;
        border-radius: 23px;
    }

    .slider-track-wrapper {
        border-radius: 23px;
    }

    .slider-track {
        border-radius: 0 23px 23px 0;
    }

    .slider-button {
        width: 60px;
        height: 43px;
        border-radius: 23px;
        font-size: 14px;
    }

    .slider-text {
        font-size: 11px;
    }

    .tipStr {
        font-size: 15px;
    }

    .tipClass {
        padding: 15px 10px;
    }
}

/* Slider Captcha Styles */
.captcha-box {
    position: relative;
    margin: 40px auto;
    max-width: 400px;
}

.slider-container {
    margin-top: 20px;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 0;
    position: relative;
    height: 60px;
    border: 1px solid #cbd5e1;
    /* 不设置 overflow:hidden，以免裁剪滑块阴影 */
    /* 移动端防抖优化 - 2025-11-29 */
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* 新增轨道容器，用于裁剪圆角 - 2025-11-29 */
.slider-track-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
}

.slider-track {
    height: 100%;
    background: linear-gradient(90deg, #3266a0 0%, #2a5688 100%);
    /* 左侧由wrapper裁剪，右侧设置圆角适配滑块 - 2025-11-29 */
    border-radius: 0 50px 50px 0;
    width: 0%;
    /* 移除 transition 避免快速拖动时背景跟不上 - 2025-11-29 */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 85px;
    height: 58px;
    background: #fff;
    border: 2px solid #3266a0;
    border-radius: 50px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3266a0;
    transition: background 0.2s;
    z-index: 10;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 移动端拖动优化 - 2025-11-29 */
    touch-action: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center center;
    will-change: transform, left;
}

.slider-button:hover {
    box-shadow: 0 2px 8px rgba(50, 102, 160, 0.3);
}

.slider-button:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(0.95);
}

.slider-button i {
    display: inline-block;
    animation: slideRightHint 1.5s ease-in-out infinite;
}

/* 拖动时保持动画 - 2025-11-29 */

@keyframes slideRightHint {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(5px);
        opacity: 0.6;
    }
}

.slider-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.status-msg {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: block;
    min-height: 46px;
}

.status-msg.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.status-msg.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.status-msg.info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
    display: block;
}

/* 自动回弹动画 - 2025-11-29 */
.transition-reset {
    transition: left 0.5s ease-out, width 0.5s ease-out !important;
}

/* 触摸设备全局样式 - 2025-11-29 */
.touch-device .slider-button {
    /* 禁用hover效果，避免在触摸设备上出现粘滞效果 */
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.touch-device .slider-button:hover {
    /* 在触摸设备上禁用hover效果 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 横屏模式优化 - 2025-11-29 */
@media (orientation: landscape) and (max-height: 500px) {
    .content {
        margin: 10px auto;
    }

    .content .cont {
        padding: 15px 0;
    }

    .tipClass {
        padding: 15px;
        margin: 10px 0;
    }

    .captcha-box {
        margin: 20px auto;
    }

    .tipStr {
        font-size: 16px;
        margin: 8px 0;
    }

    .smallnav {
        display: none;
        /* 在横屏模式下隐藏顶部导航以节省空间 */
    }

    .top .cont {
        height: 50px;
        padding: 5px 15px;
    }

    .top .cont .m {
        font-size: 14px;
        padding-top: 0;
    }

    .logo {
        height: 35px !important;
    }
}