/* 广告匹配选择器弹出框样式 */
.ad-match-selector-popup {
    background: white;
    border: 2px solid #4caf50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 6px;
    min-width: 90px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ad-match-selector-popup .selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ad-match-selector-popup .selector-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ad-match-selector-popup .selector-option:hover {
    background: #4caf50;
    color: white;
    border-color: #2e7d32;
}

.ad-match-selector-popup .selector-option.selected {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.ad-match-selector-popup .selector-option.empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* 清除按钮样式 - 与选项按钮统一 */
.ad-match-selector-popup .selector-option.selector-clear-btn {
    background: #f44336;
    color: white;
    border-color: #d32f2f;
    font-size: 10px;
}

.ad-match-selector-popup .selector-option.selector-clear-btn:hover {
    background: #d32f2f;
    border-color: #b71c1c;
}

/* 填空框疑似选项标记样式 */
.ad-match-answer.has-suspected {
    color: #ff9800;
    background: #fff3e0;
    border-color: #f57c00;
}

/* 填空容器固定宽度样式 */
.answer-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    max-width: 36px;
    width: 36px;
    height: 22px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.15s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.answer-display:hover {
    border-color: #4caf50;
    background: #f0f0f0;
}

.answer-display.has-value {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.answer-display.has-suspected {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
    font-size: 11px;
}

/* 正确答案样式 */
.answer-display.correct {
    background: #e8f5e9 !important;
    border-color: #4caf50 !important;
    color: #2e7d32 !important;
}

/* 错误答案样式 */
.answer-display.incorrect {
    background: #ffebee !important;
    border-color: #f44336 !important;
    color: #c62828 !important;
    position: relative;
}

/* 错误答案显示正确答案提示 */
.answer-display.incorrect::after {
    content: " (" attr(data-correct) ")";
    font-size: 10px;
    color: #4caf50;
    margin-left: 2px;
}

/* 例题标签样式 */
.example-answer-label {
    font-size: 10px;
    color: #666;
    margin-left: 4px;
}
