/* 方案A：渐变阴影卡片式答案选择器 - 沉浸式简约专业设计 */

/* === 选择器容器 === */
.inline-answer-selector {
    position: fixed;
    z-index: 10000;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
    padding: 12px;
}

.inline-answer-selector.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* === 选择器核心布局 === */
.choice-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.choice-options-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === 选择题选项卡片 === */
.choice-option-card {
    width: 40px;
    height: 32px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    text-align: center;
    transition: all 0.15s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-option-card:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.choice-option-card.selected {
    border: none;
    background: #1F2937;
    color: white;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.2);
}

.choice-option-card.selected:hover {
    background: #111827;
}

/* === 犹豫按钮 === */
.hesitation-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #6B7280;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.15s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hesitation-toggle:hover {
    border-color: #4B5563;
    background: #F9FAFB;
}

.hesitation-toggle.active {
    border: none;
    background: #F59E0B;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.hesitation-toggle.active:hover {
    background: #D97706;
}

.hesitation-icon {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

/* === 动画效果 === */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}



/* === 响应式适配 === */
/* 平板端 (481-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .choice-option-card {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hesitation-toggle {
        width: 36px;
        height: 36px;
    }
    
    .choice-selector-container {
        gap: 10px;
    }
    
    .choice-options-row {
        gap: 6px;
    }
}

/* 手机端 (≤480px) */
@media (max-width: 480px) {
    .choice-option-card {
        width: 36px;
        height: 40px;
        font-size: 16px;
    }
    
    .hesitation-toggle {
        width: 40px;
        height: 40px;
    }
    
    .choice-selector-container {
        gap: 8px;
    }
    
    .choice-options-row {
        gap: 6px;
    }
    
    .hesitation-icon {
        font-size: 18px;
    }
}






