/* 测验页面样式 */
.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    border-radius: 12px;
    display: block !important;
    visibility: visible !important;
}

.quiz-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    visibility: visible !important;
}

.quiz-controls .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-controls .btn-primary {
    background: #3182ce;
    color: white;
}

.quiz-controls .btn-primary:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}

.quiz-controls .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.quiz-controls .btn-secondary:hover {
    background: #cbd5e0;
}

/* 题目列表样式 */
#question-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    min-height: 200px;
    display: block !important;
    visibility: visible !important;
}

.question-item {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.question-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
}

.question-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.question-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #3182ce;
}

.question-preview {
    flex: 1;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.subject-badge {
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.difficulty {
    color: #f39c12;
    font-size: 14px;
}

.question-content {
    color: #4a5568;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #4a5568;
}

/* 模板选择样式 */
.template-selector {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.template-selector h3 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.template-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.batch-export-options {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.batch-export-options h3 {
    margin: 0 0 15px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.export-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    padding: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.batch-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-export-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    font-size: 14px;
}

/* 预览区域样式 */
.preview-area {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: block !important;
    visibility: visible !important;
}

.preview-area h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

#preview {
    min-height: 100px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
}

/* 导出按钮样式 */
.export-actions {
    display: flex !important;
    gap: 15px;
    justify-content: center;
    visibility: visible !important;
}

.export-actions .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-actions .btn-success {
    background: #38a169;
    color: white;
}

.export-actions .btn-success:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.export-actions .btn-info {
    background: #3182ce;
    color: white;
}

.export-actions .btn-info:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}
/* ===============================
   卡通浅蓝主题覆盖（Quiz）
   =============================== */
.quiz-header {
    border: var(--ctn-outline);
    box-shadow: var(--ctn-shadow-md);
}
.question-item {
    background: #ffffff;
    border: 2px solid rgba(44,123,229,0.15);
    border-radius: 14px;
}
.template-selector,
.batch-export-options,
.preview-area {
    border: var(--ctn-outline);
    border-radius: 16px;
    box-shadow: var(--ctn-shadow-sm);
}
.subject-badge {
    background: var(--ctn-primary);
    border: 2px solid rgba(44,123,229,0.35);
}
.export-actions .btn {
    border: 2px solid rgba(44,123,229,0.25);
    box-shadow: 0 4px 0 rgba(30,79,161,0.06);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .quiz-controls {
        flex-direction: column;
    }
    
    .quiz-controls .btn {
        width: 100%;
    }
    
    .export-actions {
        flex-direction: column;
    }
    
    .export-actions .btn {
        width: 100%;
    }
} 