/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.captcha-container {
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.captcha-header {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.captcha-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.captcha-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.puzzle-piece {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    cursor: move;
    z-index: 10;
    border-radius: 4px;
    left: 10px;
}

.puzzle-slot {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px dashed greenyellow;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
}

.slider-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.slider-track {
    width: 100%;
    height: 44px;
    background: #e0e0e0;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.slider-button {
    width: 50px;
    height: 42px;
    background: #4a90e2;
    border-radius: 21px;
    position: absolute;
    top: 1px;
    left: 1px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 12px;
    color: #666;
    font-size: 14px;
    pointer-events: none;
    z-index: 5;
}

.refresh-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background: #3a7bc8;
}

.refresh-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.message {
    margin-top: 10px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    display: none;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

.hint {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1001;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}
