/* 错题录入页面样式 */

/* 选项输入样式 */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-input-group label {
    min-width: 30px;
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
}

.option-input-group .form-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.option-input-group .form-input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

.correct-answer-group {
    margin-top: 15px;
}

.correct-answer-group .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.correct-answer-group .form-select {
    width: 200px;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.correct-answer-group .form-select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
    font-style: italic;
}

/* 顶部功能选择 */
.top-functions {
    margin-bottom: 30px;
}

.primary-functions {
    display: flex;
    gap: 15px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.function-btn {
    padding: 12px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.function-btn:hover {
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.function-btn.active {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    border-color: transparent;
}

/* 内容包装器 */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* AI功能面板 */
.ai-functions-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ai-function {
    text-align: center;
}

.ai-function h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* 上传区域样式 */
.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    background: rgba(248, 250, 252, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
}

.upload-area.dragover {
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 48px;
    color: #cbd5e0;
    font-weight: bold;
}

.upload-text {
    font-size: 18px;
    color: #4a5568;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #718096;
}

/* 处理状态样式 */
.processing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(49, 130, 206, 0.1);
    border-radius: 10px;
    font-size: 16px;
    color: #3182ce;
}

/* 录入容器 */
.entry-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 25px;
}

/* 表单面板 */
.form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-card h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* 难度选择器 */
.difficulty-selector {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.difficulty-selector .star {
    font-size: 24px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.difficulty-selector .star:hover,
.difficulty-selector .star.active {
    color: #ffd700;
}

/* 标签输入样式 */
.tags-input-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    min-height: 50px;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-item {
    background: #3182ce;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.tag-remove:hover {
    color: #fed7d7;
}

.suggested-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggested-tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.suggested-tag:hover {
    background: #3182ce;
    color: white;
}

/* AI智能面板 */
.ai-smart-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ai-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ai-btn {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #2f855a, #276749);
    transform: translateY(-2px);
}

.ai-hint {
    font-size: 14px;
    color: #718096;
}

/* 内容面板 */
.content-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 编辑器区域 */
.editor-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.section-header h4 {
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
}

.required-mark {
    color: #e53e3e;
    font-weight: bold;
}

.editor-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.9);
    resize: vertical;
}

.editor-section textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.editor-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 50px;
    font-size: 14px;
    line-height: 1.6;
}

/* 答案区域 */
.answer-section {
    margin-bottom: 30px;
}

.answer-options {
    display: block;
    min-height: 50px;
    position: relative;
    z-index: 1;
}

.choice-option,
.judgment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.option-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.correct-marker {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.correct-marker.selected {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.answer-input-simple {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
}

/* 保存操作 */
.save-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* 双栏对比编辑 */
.modal-large {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}

.compare-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.original-image-panel,
.ocr-text-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f7fafc;
}

.original-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ocr-editor {
    width: 100%;
    height: 300px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    background: white;
    resize: vertical;
}

.ocr-preview {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    min-height: 100px;
    font-size: 13px;
    line-height: 1.5;
}

.compare-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* OCR历史记录 */
.ocr-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.ocr-history-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ocr-history-item:hover {
    background: rgba(49, 130, 206, 0.05);
    border-color: #3182ce;
}

.ocr-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ocr-history-time {
    font-size: 12px;
    color: #718096;
}

.ocr-history-model {
    font-size: 12px;
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 4px;
}

.ocr-history-content {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 多题目识别结果 */
.multi-questions-result {
    margin-top: 20px;
}

.multi-question-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
}

.multi-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-number {
    font-weight: bold;
    color: #3182ce;
}

.add-to-entry-btn {
    background: #38a169;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-to-entry-btn:hover {
    background: #2f855a;
}

.multi-question-content {
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
}
/* ===============================
   卡通浅蓝主题覆盖（Entry）
   =============================== */
.primary-functions {
    border: var(--ctn-outline);
    border-radius: 18px;
}
.function-btn {
    border: 2px solid rgba(44,123,229,0.2);
    border-radius: 14px;
}
.function-btn.active {
    background: linear-gradient(135deg, var(--ctn-primary), var(--ctn-primary-dark));
}
.upload-area {
    border: 3px dashed rgba(44,123,229,0.35);
    background: rgba(238,246,255,0.5);
}
.form-card,
.content-panel,
.ai-functions-panel,
.ai-smart-panel {
    border: var(--ctn-outline);
    border-radius: 18px;
    box-shadow: var(--ctn-shadow-md);
}
.editor-section textarea {
    border: 2px solid rgba(44,123,229,0.15);
    border-radius: 12px;
}
.tags-input-container {
    border: 2px solid rgba(44,123,229,0.15);
    border-radius: 12px;
}
.tag-item { border: 2px solid rgba(44,123,229,0.35); }
.save-actions .btn { border: 2px solid rgba(44,123,229,0.25); }


/* 响应式设计 */
@media (max-width: 1400px) {
    .entry-container {
        grid-template-columns: 350px 1fr;
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .entry-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .compare-view {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .primary-functions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .function-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 16px;
    }
} 