.slider-captcha {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 20px 0;
    touch-action: none; /* 防止移动端滑动时触发页面滚动 */
    overflow: hidden;
}

.slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #e8f4ff;
    border-radius: 4px;
    width: 0;
    transition: width 0.3s;
}

.slider-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s;
}

.slider-button {
    position: absolute;
    width: 40px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
}

.slider-button:hover {
    background: #f8f8f8;
}

.slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    color: #999;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.slider-captcha.success .slider-bg {
    background: #f0f9eb;
    width: 100%;
}

.slider-captcha.success .slider-button {
    background: #67c23a;
    color: #fff;
}

/* 搜索模态框样式优化 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #666;
}

.modal-footer {
    margin-top: 15px;
    text-align: center;
}

.verify-tip {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .slider-button {
        width: 44px;
    }

    .slider-text {
        font-size: 13px;
    }

    .modal-header h3 {
        font-size: 16px;
    }
} 