.captcha-container {
    padding: 15px 20px 20px;
}

.captcha-instruction {
    margin-bottom: 12px;
    text-align: center;
}

.captcha-instruction p {
    color: #666;
    margin-bottom: 8px;
    font-size: 13px;
}

.target-sequence {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.target-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.target-item.completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    text-decoration: line-through;
    opacity: 0.7;
}

.target-item.current {
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.captcha-image-wrapper {
    position: relative;
    border: 3px solid #667eea;
    border-radius: 8px;
    overflow: hidden;
    cursor: crosshair;
    background: #f8f9fa;
    width: 400px;  /* 固定宽度 */
    max-width: 100%; /* 响应式 */
    margin: 0 auto; /* 居中 */
}

#captchaCanvas {
    display: block;
    width: 100%;
    height: auto;
}

.click-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff4757;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: markerAppear 0.4s ease-out;
    background: rgba(255, 71, 87, 0.2);
}

.marker::before {
    content: attr(data-order);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

@keyframes markerAppear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.captcha-progress {
    margin-top: 12px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.captcha-progress span {
    font-weight: bold;
    color: #667eea;
}

.captcha-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-refresh {
    background: #f1f2f6;
    color: #333;
    min-width: 100px;
}

.btn-refresh:hover {
    background: #dfe4ea;
    transform: translateY(-2px);
}

/*.btn-clear {
    background: #ffa502;
    color: white;
}

.btn-clear:hover {
    background: #ff7f00;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
*/
.message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-size: 13px;
}

.message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    animation: slideDown 0.3s;
}

.message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}