/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 题库切换卡片样式 */
.quiz-switch-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quiz-switch-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #363636;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.quiz-switch-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quiz-switch-btn {
    flex: 1;
    text-align: center;
    transition: all 0.2s;
}

.quiz-switch-btn:hover {
    transform: translateY(-2px);
}

/* 单选题按钮 - 醒目蓝色 */
.btn-single {
    background-color: #3298dc !important;
    color: white !important;
    border-color: #3298dc !important;
}

.btn-single:hover {
    background-color: #2780b5 !important;
    color: white !important;
}

/* 判断题按钮 - 醒目绿色 */
.btn-truefalse {
    background-color: #48c774 !important;
    color: white !important;
    border-color: #48c774 !important;
}

.btn-truefalse:hover {
    background-color: #3bb36b !important;
    color: white !important;
}

/* 编程题按钮 - 醒目红色 */
.btn-programming {
    background-color: #ff3860 !important;
    color: white !important;
    border-color: #ff3860 !important;
}

.btn-programming:hover {
    background-color: #e61a4d !important;
    color: white !important;
}

/* 题目解析中代码的样式 */
.message-body code {
    background-color: #fff0cc !important;
    color: #8b2500 !important;
    font-weight: 600 !important;
    padding: 0.2em 0.4em !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
}

/* 左侧主内容区 - 自然滚动 */
.main-content {
    overflow-y: visible;
    height: auto;
    padding: 0;
}

/* 知识点和解析默认隐藏 */
.knowledge-container {
    display: none;
}

.knowledge-container.show {
    display: block;
}

.reference-code-container {
    display: none;
}

.reference-code-container.show {
    display: block;
}

.analysis-container {
    display: none;
}

.analysis-container.show {
    display: block;
}

/* 禁用的复选框样式 */
label.checkbox.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

label.checkbox.disabled:hover {
    cursor: not-allowed;
}

.disabled-hint {
    font-size: 0.75rem;
    color: #f14668;
    margin-left: 0.5rem;
}

/* 复选框组样式 */
.checkbox-group {
    margin-bottom: 0.75rem;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

/* 右侧边栏样式 - 浮动固定 */
.sidebar-section {
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 1rem;
    position: sticky;
    top: 80px;
    height: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 正确选项高亮样式 - 只作用于选项 */
[id^="option-"].has-background-success-light {
    background-color: #e8f5e9;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin: -0.5rem;
}

/* 底部提示样式 */
.end-hint {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background: #f5f5f5;
    border-radius: 0.75rem;
    color: #7a7a7a;
    font-size: 0.9rem;
}

.end-hint i {
    margin-right: 0.5rem;
}

/* 题型说明卡片内边距保持统一 */
.section-header-box {
    background-color: #e8f5e9;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #48c774;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar-section {
        position: static;
        margin-top: 1rem;
    }

    .quiz-switch-buttons {
        flex-direction: column;
    }
}