.right-panel {
    grid-column: 3;
    background: linear-gradient(200deg, rgba(10, 15, 30, 0.95) 0%, rgba(5, 10, 20, 0.95) 100%);
    border-left: 1px solid var(--panel-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* 减小元素间距 */
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 100, 255, 0.25);
    z-index: 10;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    padding-top: 20px;
    padding-bottom: 80px; /* 增加底部内边距，确保底部内容可见 */
}

.panel-section {
    margin-bottom: 15px; /* 减少底部边距 */
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.3) 0%, rgba(10, 20, 40, 0.4) 100%);
    border-radius: 12px;
    padding: 15px; /* 减小内边距 */
    border: 1px solid rgba(0, 180, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 60, 120, 0.2),
                inset 0 0 10px rgba(0, 150, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 专门针对教学案例库面板，缩小紫色区域 */
.panel-section:last-child {
    padding: 15px 15px 3px 15px !important;
    margin-bottom: 5px !important;
    min-height: auto !important;
    height: auto !important;
}

/* 强制限制教学案例库面板的最大高度 */
.right-panel .panel-section:last-child {
    max-height: 120px !important;
    overflow: visible !important;
}

/* 案例库按钮样式 */
.case-library-button-container {
    padding: 2px 0 0 0;
}

.case-library-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-bottom: 3px !important;
}

.case-library-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.case-library-btn:active {
    transform: translateY(0);
}

.case-library-desc {
    font-size: 15px;
    color: #ddd;
    text-align: center;
    margin: 0 0 2px 0;
    line-height: 1.5;
    padding: 0 8px;
}

/* 使说明段落更紧凑 */
.instruction-content p {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 确保最后一个描述项不会有底部边距 */
.instruction-content p:last-child {
    margin-bottom: 0;
}