 /* 拼图验证码模态窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 350px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 16px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.puzzle-container {
    position: relative;
    height: 160px;
    background: #f0f7ff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.puzzle-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.puzzle-hole {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(96, 168, 250, 0.7);
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.puzzle-target-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(96, 168, 250, 0.3);
    z-index: 1;
}

.puzzle-slider-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(96, 168, 250, 0.9);
    border-radius: 4px;
    z-index: 3;
    transition: left 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-size: 350px 160px;
    cursor: move;
}

.puzzle-slider-track {
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 20px;
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.puzzle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: #60A8FA;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    -ms-touch-action: none;
    touch-action: none;
    transition: background-color 0.3s, left 0.1s;
}

.puzzle-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.success-message {
    color: #52c41a;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.error-message {
    color: #ff4d4f;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.refresh-btn {
    background: none;
    border: none;
    color: #60A8FA;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: block;
    margin: 10px auto 0;
}

.countdown {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    display: none;
}

.auto-verify-message {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.loading {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}