.chinese-captcha-container {
    position: relative;
}

.captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.captcha-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.captcha-header {
    background: linear-gradient(135deg, #1369EC 0%, #0d4fa8 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.captcha-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.captcha-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.captcha-body {
    padding: 30px;
}

.captcha-loading,
.captcha-blocked {
    text-align: center;
    padding: 40px 0;
    font-size: 1.1rem;
    color: #666;
}

.captcha-blocked {
    color: #dc3545;
}

.captcha-blocked i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.challenge-instruction {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.english-word {
    font-weight: bold;
    color: #1369EC;
    font-size: 1.3rem;
}

.challenge-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.character-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.character-option:hover {
    border-color: #1369EC;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(19, 105, 236, 0.1);
}

.character-option.selected {
    background: #1369EC;
    color: white;
    border-color: #1369EC;
    transform: scale(0.95);
}

.selected-characters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.selected-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1369EC;
    min-height: 35px;
    display: flex;
    align-items: center;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 3px;
}

.captcha-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.captcha-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-clear {
    background: #f8f9fa;
    color: #666;
}

.btn-clear:hover {
    background: #e9ecef;
}

.btn-verify {
    background: #1369EC;
    color: white;
}

.btn-verify:hover:not(:disabled) {
    background: #0d4fa8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(19, 105, 236, 0.2);
}

.btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.captcha-message {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
}

.captcha-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.captcha-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 480px) {
    .captcha-modal {
        width: 95%;
        margin: 10px;
    }
    
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .character-option {
        font-size: 1.5rem;
        padding: 12px;
        min-height: 60px;
    }
    
    .captcha-body {
        padding: 20px;
    }
}