/* === 基础设置 === */
body {
    margin: 0;
    overflow: hidden;
    background: #0b1220;
    font-family: 'Noto Sans SC', sans-serif;
    height: 100vh;
    width: 100vw;
}

/* 全屏容器 - 充分利用屏幕空间 */
#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(1200px 600px at 25% 20%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(900px 500px at 85% 75%, rgba(14, 165, 233, 0.16), transparent 60%),
        #0b1220;
}

/* === 左上：AI老师视频窗口 === */
#teacher-section {
    position: absolute;
    z-index: 20;
    top: 2.2%;
    left: 2%;
    width: 20.5%;
    height: 42%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 20, 0.6);
    backdrop-filter: blur(6px);
}

#teacher-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === 布局区域调整 (V7 扩展版) === */

/* 左侧：聊天区 */
#chat-section {
    position: absolute;
    z-index: 20;
    bottom: 2.2%;
    left: 2%;
    width: 20.5%;
    height: 52%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: rgba(10, 16, 26, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

/* 右侧：显示大屏 (黑板 - 最大化利用空间) */
#display-section {
    position: absolute;
    z-index: 20;
    top: 1%;
    bottom: 1%;
    right: 0.5%;
    left: calc(2% + 20.5% + 10px);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(13, 18, 28, 0.96);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

/* === Tab 导航栏 === */
.tab-bar {
    height: 52px;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 30;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tab-btn {
    color: #94a3b8;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.tab-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #60a5fa;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #60a5fa;
    box-shadow: 0 -2px 12px rgba(96, 165, 250, 0.7);
    border-radius: 3px 3px 0 0;
}

/* 内容容器 */
.content-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.content-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-view.active {
    display: block;
    opacity: 1;
}

/* === 代码视图 === */
#view-code {
    background: #0d1117;
    color: #a5d6ff;
    padding: 30px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    white-space: pre-wrap;
}

#view-code::-webkit-scrollbar {
    width: 6px;
}

#view-code::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.cursor::after {
    content: '▋';
    animation: blink 1s infinite;
    color: #58a6ff;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* === 场景视图 (3D) - Blender风格 === */
#view-scene {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1d1d1d; /* Blender深灰背景 */
}

/* 3D Canvas 容器 */
#scene-canvas-container {
    z-index: 1;
}

/* 快捷案例占位符 - 确保可点击 */
#placeholder-text {
    z-index: 10;
    pointer-events: auto;
    overflow: hidden;
    padding-top: 120px; /* 整体下移 */
}

#placeholder-text .quick-cases-grid {
    pointer-events: auto;
}

#placeholder-text .quick-case-card {
    pointer-events: auto;
}

/* ========== 场景分类Tab ========== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 12px;
    max-width: 800px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(30, 40, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.category-tab i {
    font-size: 12px;
    opacity: 0.8;
}

.category-tab:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.category-tab.active i {
    opacity: 1;
    color: #60a5fa;
}

/* 精选标签特殊样式 */
.category-tab[data-category="featured"].active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(239, 68, 68, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.5);
}

.category-tab[data-category="featured"].active i {
    color: #fbbf24;
}

/* 案例网格滚动容器 */
.quick-cases-wrapper {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 20px 20px;
    margin-right: 4px;
    /* Firefox滚动条 - 极细 */
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.15) transparent;
}

.quick-cases-wrapper::-webkit-scrollbar {
    width: 4px;
}

.quick-cases-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.quick-cases-wrapper::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.15);
    border-radius: 2px;
}

.quick-cases-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.35);
}

#scene-canvas-container canvas {
    display: block;
}

/* === Blender风格顶部信息栏 === */
.viewport-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to bottom, #404040, #353535);
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 50;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #e0e0e0;
    gap: 20px;
}

.viewport-header .view-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #4a4a4a;
    border-radius: 3px;
    font-weight: 500;
}

.viewport-header .view-mode i {
    color: #8ab4f8;
    font-size: 10px;
}

.viewport-header .view-info {
    color: #888;
    font-size: 10px;
}

.viewport-header .scene-stats {
    margin-left: auto;
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 10px;
}

.viewport-header .scene-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === 坐标轴指示器 (Gizmo) === */
.axis-gizmo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    z-index: 60;
    overflow: hidden;
}

.axis-gizmo canvas {
    width: 100%;
    height: 100%;
}

/* === 右侧工具面板 === */
.viewport-tools {
    position: absolute;
    top: 38px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
}

.tool-btn {
    width: 32px;
    height: 32px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
}

.tool-btn:hover {
    background: #4a4a4a;
    color: #fff;
}

.tool-btn.active {
    background: #5680c2;
    color: #fff;
    border-color: #6a90d2;
}

.tool-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 4px 0;
}

/* === 左侧工具栏 === */
.viewport-toolbar {
    position: absolute;
    top: 38px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
}

/* === 底部状态栏 === */
.viewport-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: #2d2d2d;
    border-top: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 50;
    font-size: 10px;
    color: #888;
    gap: 20px;
}

.viewport-footer .camera-info {
    display: flex;
    gap: 15px;
}

.viewport-footer .camera-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewport-footer .hint {
    margin-left: auto;
    color: #666;
}

/* === 视角快捷按钮 === */
.view-presets {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 50;
    background: #353535;
    border-radius: 4px;
    padding: 3px;
    border: 1px solid #3a3a3a;
}

.view-preset-btn {
    padding: 4px 12px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: #999;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.view-preset-btn:hover {
    background: #4a4a4a;
    color: #fff;
}

.view-preset-btn.active {
    background: #5680c2;
    color: #fff;
}

/* 3D 交互控制面板 - Blender风格 */
#scene-controls {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 60;
    pointer-events: none;
    background: #353535;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
}

.control-btn {
    pointer-events: auto;
    background: #454545;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #555;
}

.control-btn:hover {
    transform: none;
    box-shadow: none;
    background: #555;
}

.control-btn.active {
    background: #5680c2;
    color: white;
    border-color: #6a90d2;
}

.control-btn i {
    font-size: 11px;
}

/* 3D 标签 */
.scene-label {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    /* 深色背景更适合科技感 */
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -100%);
    transition: opacity 0.3s;
}

.scene-label i {
    color: #60a5fa;
}

.label-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, #60a5fa, transparent);
    transform-origin: top center;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
}

.scene-label-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

/* 侧边信息面板 (新功能) */
.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(15, 23, 42, 0.9);
    pointer-events: none; /* 隐藏时不拦截鼠标 */
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0;
    transform: translateX(320px);
    /* 默认隐藏 */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.info-panel.visible {
    transform: translateX(0);
    pointer-events: auto; /* 显示时可交互 */
}

.info-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* === PPT 视图 (V7 明亮风格) === */
#view-ppt {
    background: #f1f5f9;
    /* 稍微深一点的灰白背景 */
    color: #1e293b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.slide-frame {
    width: 90%;
    height: 85%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 幻灯片背景装饰 */
.slide-bg-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    z-index: 0;
}

.slide-content {
    flex: 1;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-header {
    margin-bottom: 40px;
}

.slide-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.slide-subtitle {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
}

.slide-body {
    font-size: 22px;
    line-height: 1.7;
    color: #334155;
    flex: 1;
}

.highlight-box {
    background: #eff6ff;
    border-left: 6px solid #3b82f6;
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* PPT 控件 (明亮风格) */
.ppt-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 20;
    align-items: center;
}

.ppt-btn {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ppt-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.ppt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

#slide-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #64748b;
}

/* === 聊天组件 === */
.chat-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 10px;
}

.chat-scroll-area::-webkit-scrollbar {
    width: 0;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 92%;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bubble-ai {
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.bubble-user {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.glass-input {
    background: rgba(5, 10, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

#chat-section .glass-input {
    padding: 12px 48px 12px 18px;
    font-size: 13px;
}

.glass-input:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(5, 10, 20, 0.85);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.chat-input-shell {
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 12, 22, 0.65);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.confirm-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 18px;
    border-radius: 12px;
    margin-top: 5px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* === 快捷案例入口网格 === */
.quick-cases-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 960px;
    width: 100%;
    padding-right: 16px;
}

.quick-case-card {
    background: rgba(20, 30, 50, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.quick-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, #3b82f6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 45, 70, 0.85);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.15);
}

.quick-case-card:hover::before {
    opacity: 1;
}

.quick-case-card:active {
    transform: translateY(-2px) scale(0.98);
}

.quick-case-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    transition: all 0.25s;
}

.quick-case-card:hover .quick-case-icon {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.1);
}

.quick-case-title {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-case-tag {
    font-size: 10px;
    color: #64748b;
    padding: 2px 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    display: inline-block;
}

/* 不同类型案例的强调色 */
.quick-case-card[data-type="physics"] { --card-accent: #f59e0b; }
.quick-case-card[data-type="physics"] .quick-case-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.quick-case-card[data-type="biology"] { --card-accent: #10b981; }
.quick-case-card[data-type="biology"] .quick-case-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.quick-case-card[data-type="math"] { --card-accent: #8b5cf6; }
.quick-case-card[data-type="math"] .quick-case-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.quick-case-card[data-type="ai"] { --card-accent: #3b82f6; }
.quick-case-card[data-type="ai"] .quick-case-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* 欢迎/占位符 动画 */
.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === 悬停提示框 (Tooltip) === */
#hover-tooltip {
    position: fixed;
    padding: 12px 16px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    max-width: 280px;
    min-width: 160px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.15);
}

#hover-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#hover-tooltip .tooltip-title {
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

#hover-tooltip .tooltip-title i {
    font-size: 14px;
    color: #3b82f6;
}

#hover-tooltip .tooltip-desc {
    color: #d1d5db;
    line-height: 1.5;
    font-size: 13px;
}

/* === 场景教学引导提示 === */
.scene-guide-message {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.scene-guide-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === 教学步骤指示器 === */
.teaching-steps {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    z-index: 50;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #6b7280;
    font-size: 13px;
    transition: all 0.3s;
}

.step-item.active {
    color: #60a5fa;
    font-weight: 600;
}

.step-item.completed {
    color: #10b981;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step-item.active .step-number {
    background: #3b82f6;
    color: #fff;
}

.step-item.completed .step-number {
    background: #10b981;
    color: #fff;
}

/* === 场景介绍模态框 === */
.scene-intro-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.scene-intro-modal.visible {
    opacity: 1;
    visibility: visible;
}

.intro-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 40px 50px;
    max-width: 520px;
    width: 90%;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(59, 130, 246, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scene-intro-modal.visible .intro-content {
    transform: scale(1) translateY(0);
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-icon {
    font-size: 48px;
    color: #60a5fa;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.intro-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.intro-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

.intro-section {
    margin-bottom: 24px;
}

.intro-section h3 {
    font-size: 14px;
    color: #60a5fa;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.objectives-list li:last-child {
    border-bottom: none;
}

.objectives-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.key-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.key-point {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
}

.intro-tips {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fcd34d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.intro-tips i {
    font-size: 18px;
}

.intro-start-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.intro-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.intro-start-btn i {
    font-size: 16px;
}

/* ============================================
   移动端响应式布局 - 上下结构
   ============================================ */

/* 全屏按钮 - 放在tab-bar右侧 */
.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
    z-index: 100;
}

.fullscreen-btn::after {
    content: '全屏';
    font-size: 12px;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 场景全屏模式 */
.scene-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
}

.scene-fullscreen .tab-bar {
    display: none;
}

.scene-fullscreen .fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0 16px;
    height: 40px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scene-fullscreen .fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.scene-fullscreen .fullscreen-btn i::before {
    content: "\f066"; /* fa-compress */
}

.scene-fullscreen .fullscreen-btn::after {
    content: '退出全屏';
}

/* 平板及以下 (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    #teacher-section {
        width: 28%;
        height: 35%;
    }
    
    #chat-section {
        width: 28%;
        height: 58%;
    }
    
    #display-section {
        left: calc(2% + 28% + 10px);
    }
    
    .tab-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* 手机端 (max-width: 768px) - 极简沉浸式布局 */
@media screen and (max-width: 768px) {
    body {
        overflow: hidden;
    }
    
    #app-container {
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    /* 隐藏老师视频 - 手机端专注场景 */
    #teacher-section {
        display: none;
    }
    
    /* 场景展示 - 占据主要空间 */
    #display-section {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 70vh;
        min-height: 0;
        border-radius: 0;
        flex: 1;
        order: 1;
        border: none;
        box-shadow: none;
    }
    
    /* 底部：聊天区 - 紧凑 */
    #chat-section {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 120px;
        max-height: 30vh;
        border-radius: 16px 16px 0 0;
        flex-shrink: 0;
        order: 2;
        padding: 10px;
        border: none;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    
    /* 显示全屏按钮 */
    .fullscreen-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    /* 隐藏Tab栏 - 手机端不需要 */
    .tab-bar {
        display: none !important;
    }
    
    /* 隐藏Blender风格UI - 太杂乱 */
    .viewport-header,
    .viewport-footer,
    .viewport-tools,
    .axis-gizmo {
        display: none !important;
    }
    
    /* 场景控制按钮 - 底部悬浮简洁风格 */
    #scene-controls {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 24px !important;
        backdrop-filter: blur(10px) !important;
        max-width: 90vw;
        overflow-x: auto;
        justify-content: center !important;
    }
    
    #scene-controls .control-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 隐藏按钮文字，只显示图标 */
    #scene-controls .control-btn span {
        display: none;
    }
    
    #scene-controls .control-btn i {
        margin: 0;
    }
    
    /* 快捷案例网格 - 3列紧凑 */
    .quick-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
        padding: 0 8px;
    }
    
    .quick-case-card {
        padding: 10px 6px;
    }
    
    .quick-case-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .quick-case-title {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .quick-case-tag {
        display: none;
    }
    
    /* 聊天气泡 - 更紧凑 */
    .chat-bubble {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    #chat-history {
        max-height: 80px;
        overflow-y: auto;
    }
    
    /* 输入框 */
    .chat-input-shell {
        padding: 6px !important;
    }
    
    .glass-input {
        padding: 10px 14px !important;
        padding-right: 45px !important;
        font-size: 14px;
    }
    
    /* 信息面板 - 底部弹出 */
    .info-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 50vh;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%);
    }
    
    .info-panel.visible {
        transform: translateY(0);
    }
    
    /* 介绍模态框 - 全屏 */
    .intro-content {
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .intro-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .intro-icon {
        font-size: 32px;
    }
    
    .intro-title {
        font-size: 20px;
    }
    
    .intro-subtitle {
        font-size: 12px;
    }
    
    .intro-section h3 {
        font-size: 12px;
    }
    
    .objectives-list li {
        font-size: 12px;
        padding: 6px 0;
        padding-left: 20px;
    }
    
    .key-point {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .intro-tips {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .intro-start-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* 占位符标题隐藏 */
    #placeholder-text > .text-center.mb-8 {
        display: none;
    }
}

/* 更小屏幕 (max-width: 480px) */
@media screen and (max-width: 480px) {
    /* 场景占更大空间 */
    #display-section {
        height: 75vh;
    }
    
    #chat-section {
        min-height: 100px;
        max-height: 25vh;
        border-radius: 12px 12px 0 0;
    }
    
    /* 快捷案例 - 2列 */
    .quick-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .quick-case-card {
        padding: 10px 6px;
    }
    
    .quick-case-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .quick-case-title {
        font-size: 10px;
    }
    
    /* 控制按钮更小 */
    #scene-controls {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    #scene-controls .control-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* 聊天区更紧凑 */
    #chat-history {
        max-height: 60px;
    }
    
    .chat-bubble {
        padding: 6px 10px;
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .glass-input {
        padding: 8px 12px !important;
        font-size: 13px;
    }
    
    /* 信息面板 */
    .info-panel {
        max-height: 60vh;
    }
}

/* === AI思考动画 === */
.thinking-bubble {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px dashed rgba(100, 150, 200, 0.3);
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: thinkingBounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes thinkingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === 万有引力场景控制面板 === */
.gravity-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
    background: rgba(10, 15, 26, 0.9);
    pointer-events: auto !important; /* 确保可以点击 */
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.gravity-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gravity-controls .control-group label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gravity-controls .mode-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gravity-controls .mode-btn {
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: #94a3b8;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gravity-controls .mode-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(0, 212, 255, 0.4);
    color: #e2e8f0;
}

.gravity-controls .mode-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00D4FF;
    color: #00D4FF;
}

.gravity-controls .mode-btn i {
    font-size: 14px;
}

.gravity-controls input[type="range"] {
    width: 120px;
    height: 6px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 3px;
    -webkit-appearance: none;
}

.gravity-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00D4FF;
    border-radius: 50%;
    cursor: pointer;
}

.gravity-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 150, 200, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    color: #00D4FF;
    pointer-events: auto;
    cursor: pointer;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gravity-controls .action-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* === 核裂变场景控制面板 === */
.fission-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
    background: rgba(10, 15, 26, 0.9);
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 100, 0, 0.3);
}

.fission-controls .control-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fission-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.2), rgba(255, 50, 0, 0.2));
    border: 1px solid rgba(255, 100, 0, 0.5);
    border-radius: 8px;
    color: #ff8844;
    pointer-events: auto;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.fission-controls .action-btn:hover {
    background: rgba(255, 100, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 100, 0, 0.4);
    color: #ffaa66;
}

.fission-controls .stats-group {
    display: flex;
    gap: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.fission-controls .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.fission-controls .stat-item i {
    color: #ffaa44;
}

.fission-controls .stat-item b {
    color: #ffdd88;
    font-size: 15px;
}

/* === 米格达尔效应场景控制面板 === */
.migdal-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: rgba(10, 15, 26, 0.9);
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    align-items: center;
}

.migdal-controls .control-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.migdal-controls .step-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.migdal-controls .step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.migdal-controls .step-btn:hover {
    background: rgba(0, 255, 255, 0.4);
}

.migdal-controls .step-indicators {
    display: flex;
    gap: 4px;
}

.migdal-controls .step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(50, 60, 80, 0.8);
    border: 2px solid rgba(100, 120, 150, 0.4);
    color: #8899aa;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: auto;
}

.migdal-controls .step-indicator:hover {
    border-color: rgba(0, 255, 255, 0.6);
    color: #aabbcc;
}

.migdal-controls .step-indicator.active {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.migdal-controls .step-indicator.completed {
    background: rgba(0, 200, 100, 0.3);
    border-color: #00cc66;
    color: #00cc66;
}

.migdal-controls .action-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 200, 200, 0.15));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    color: #00ffff;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.migdal-controls .action-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.migdal-controls .action-btn.small {
    padding: 6px 10px;
    font-size: 11px;
}

.migdal-controls .action-btn.toggle {
    background: rgba(50, 60, 80, 0.6);
    border-color: rgba(100, 120, 150, 0.4);
    color: #8899aa;
}

.migdal-controls .action-btn.toggle.active,
.migdal-controls .action-btn.active {
    background: rgba(0, 255, 255, 0.25);
    border-color: #00ffff;
    color: #00ffff;
}

/* 公式样式 */
.info-content .formula {
    font-family: 'Georgia', serif;
    font-size: 18px;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.info-content .highlight {
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 12px;
    display: block;
}

/* === 薛定谔的猫场景控制面板 === */
.schrodinger-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(15, 10, 30, 0.92);
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(148, 0, 211, 0.4);
    align-items: center;
    box-shadow: 0 4px 20px rgba(148, 0, 211, 0.15);
}

.schrodinger-controls .action-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.2), rgba(75, 0, 130, 0.2));
    border: 1px solid rgba(148, 0, 211, 0.5);
    border-radius: 10px;
    color: #da70d6;
    pointer-events: auto;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schrodinger-controls .action-btn:hover {
    background: rgba(148, 0, 211, 0.35);
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.4);
    transform: translateY(-2px);
}

.schrodinger-controls .action-btn:active {
    transform: translateY(0);
}

.schrodinger-controls .action-btn i {
    font-size: 14px;
}

.schrodinger-controls .state-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.schrodinger-controls .state-label {
    color: #94a3b8;
    font-size: 12px;
    font-family: sans-serif;
}

.schrodinger-controls .state-value {
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* === 四维超立方体场景控制面板 === */
.tesseract-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(10, 5, 30, 0.95), rgba(20, 10, 40, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(138, 43, 226, 0.2);
}

.tesseract-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tesseract-controls .control-group label {
    font-size: 11px;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tesseract-controls .dim-buttons {
    display: flex;
    gap: 4px;
}

.tesseract-controls .dim-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(30, 20, 60, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #a78bfa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s;
    pointer-events: auto;
}

.tesseract-controls .dim-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.tesseract-controls .dim-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: #a855f7;
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.tesseract-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    color: #a78bfa;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tesseract-controls .action-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.tesseract-controls .action-btn.small {
    padding: 6px 10px;
    font-size: 11px;
}

.tesseract-controls .action-btn.toggle {
    background: rgba(40, 30, 70, 0.6);
    border-color: rgba(100, 80, 140, 0.4);
    color: #8b7fc7;
}

.tesseract-controls .action-btn.toggle.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: #a78bfa;
    color: #a78bfa;
}

.tesseract-controls .rotation-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* 维度信息面板 */
.dimension-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(10, 5, 30, 0.92), rgba(20, 10, 50, 0.92));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 16px;
    padding: 20px;
    min-width: 160px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    z-index: 100;
}

.dimension-panel .dim-title {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.dimension-panel .dim-number {
    font-size: 48px;
    font-weight: 700;
    color: #00ffff;
    line-height: 1;
    text-shadow: 0 0 20px currentColor;
    transition: color 0.5s;
}

.dimension-panel .dim-label {
    font-size: 24px;
    color: #94a3b8;
    font-weight: 300;
}

.dimension-panel .dim-name {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.dimension-panel .dim-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.dimension-panel .stat-item {
    text-align: center;
}

.dimension-panel .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #a78bfa;
}

.dimension-panel .stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimension-panel .dim-formula {
    font-size: 13px;
    color: #94a3b8;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.dimension-panel .dim-formula sup {
    color: #a78bfa;
    font-weight: 600;
}

.dimension-panel .evolution-progress {
    margin-top: 12px;
    font-size: 12px;
    color: #fbbf24;
    text-align: center;
    min-height: 18px;
}

/* === 光合作用场景控制面板 === */
.photosynthesis-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(10, 30, 20, 0.95), rgba(5, 40, 25, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(76, 175, 80, 0.2);
}

.photosynthesis-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photosynthesis-controls .control-group label {
    font-size: 11px;
    color: #81c784;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photosynthesis-controls .step-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.photosynthesis-controls .step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #81c784;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.photosynthesis-controls .step-btn:hover {
    background: rgba(76, 175, 80, 0.4);
}

.photosynthesis-controls .step-indicators {
    display: flex;
    gap: 6px;
}

.photosynthesis-controls .step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(40, 60, 50, 0.8);
    border: 2px solid rgba(76, 175, 80, 0.3);
    color: #66bb6a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    pointer-events: auto;
}

.photosynthesis-controls .step-dot:hover {
    border-color: rgba(76, 175, 80, 0.6);
}

.photosynthesis-controls .step-dot.active {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-color: #81c784;
    color: white;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

.photosynthesis-controls .step-dot.completed {
    background: rgba(76, 175, 80, 0.4);
    border-color: #4caf50;
    color: #a5d6a7;
}

.photosynthesis-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    color: #81c784;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.photosynthesis-controls .action-btn:hover {
    background: rgba(76, 175, 80, 0.35);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.photosynthesis-controls .step-info {
    min-width: 200px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

.photosynthesis-controls .step-title {
    font-size: 13px;
    font-weight: 600;
    color: #a5d6a7;
    margin-bottom: 4px;
}

.photosynthesis-controls .step-desc {
    font-size: 11px;
    color: #81c784;
    line-height: 1.4;
}

/* === 神经网络梯度下降场景控制面板 === */
.gradient-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(50, 30, 80, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 87, 34, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(255, 87, 34, 0.2);
}

.gradient-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gradient-controls .control-group label {
    font-size: 11px;
    color: #ffab91;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-controls .control-group.buttons {
    flex-direction: row;
    gap: 8px;
}

.gradient-controls .gd-select {
    padding: 8px 12px;
    background: rgba(40, 30, 60, 0.9);
    border: 1px solid rgba(255, 87, 34, 0.4);
    border-radius: 8px;
    color: #ffccbc;
    cursor: pointer;
    font-size: 12px;
    pointer-events: auto;
}

.gradient-controls .gd-select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.gradient-controls .lr-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gradient-controls .lr-control input[type="range"] {
    width: 100px;
    -webkit-appearance: none;
    background: rgba(255, 87, 34, 0.2);
    border-radius: 5px;
    height: 6px;
    cursor: pointer;
    pointer-events: auto;
}

.gradient-controls .lr-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #ff5722;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
}

.gradient-controls .lr-control span {
    font-size: 12px;
    color: #ff8a65;
    min-width: 35px;
    text-align: right;
    font-weight: 600;
}

.gradient-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(244, 67, 54, 0.2));
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 10px;
    color: #ffab91;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gradient-controls .action-btn:hover {
    background: rgba(255, 87, 34, 0.35);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
}

/* 梯度下降信息面板 */
.gradient-info-panel {
    position: absolute;
    top: 60px;
    left: 20px;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(40, 25, 60, 0.95));
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    min-width: 200px;
    z-index: 10;
}

.gradient-info-panel .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-info-panel .info-row:last-of-type {
    border-bottom: none;
}

.gradient-info-panel .info-label {
    color: #94a3b8;
    font-size: 12px;
}

.gradient-info-panel .info-value {
    color: #ff8a65;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.gradient-info-panel .loss-chart {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-info-panel .chart-title {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-info-panel #loss-canvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

/* === 神经元信号传递场景控制面板 === */
.neuron-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(30, 40, 70, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(79, 195, 247, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(79, 195, 247, 0.2);
}

.neuron-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.neuron-controls .control-group label {
    font-size: 11px;
    color: #81d4fa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neuron-controls .control-group.buttons {
    flex-direction: row;
    gap: 8px;
}

.neuron-controls .step-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.neuron-controls .step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.4);
    color: #81d4fa;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.neuron-controls .step-btn:hover {
    background: rgba(79, 195, 247, 0.4);
}

.neuron-controls .step-indicators {
    display: flex;
    gap: 6px;
}

.neuron-controls .step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(30, 50, 70, 0.8);
    border: 2px solid rgba(79, 195, 247, 0.3);
    color: #4fc3f7;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    pointer-events: auto;
}

.neuron-controls .step-dot:hover {
    border-color: rgba(79, 195, 247, 0.6);
}

.neuron-controls .step-dot.active {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border-color: #81d4fa;
    color: white;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.5);
}

.neuron-controls .step-dot.completed {
    background: rgba(79, 195, 247, 0.4);
    border-color: #4fc3f7;
    color: #b3e5fc;
}

.neuron-controls .step-info {
    min-width: 180px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #4fc3f7;
}

.neuron-controls .step-title {
    font-size: 13px;
    font-weight: 600;
    color: #b3e5fc;
    margin-bottom: 4px;
}

.neuron-controls .step-desc {
    font-size: 11px;
    color: #81d4fa;
    line-height: 1.4;
}

.neuron-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(41, 182, 246, 0.2));
    border: 1px solid rgba(79, 195, 247, 0.5);
    border-radius: 10px;
    color: #81d4fa;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.neuron-controls .action-btn:hover {
    background: rgba(79, 195, 247, 0.35);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
}

/* 神经元信息面板 */
.neuron-info-panel {
    position: absolute;
    top: 60px;
    left: 20px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(30, 40, 70, 0.95));
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    min-width: 200px;
    z-index: 10;
}

.neuron-info-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.neuron-info-panel .panel-header i {
    color: #4fc3f7;
    font-size: 18px;
}

.neuron-info-panel .panel-header span {
    font-size: 14px;
    font-weight: 600;
    color: #b3e5fc;
}

.neuron-info-panel .voltage-display {
    margin-bottom: 12px;
}

.neuron-info-panel .voltage-label {
    font-size: 11px;
    color: #81d4fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.neuron-info-panel .voltage-value {
    font-size: 24px;
    font-weight: 700;
    color: #4fc3f7;
    font-family: 'Monaco', 'Consolas', monospace;
}

.neuron-info-panel .voltage-bar {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}

.neuron-info-panel .voltage-fill {
    height: 100%;
    background: #4fc3f7;
    border-radius: 4px;
    width: 15%;
    transition: all 0.1s;
}

.neuron-info-panel .voltage-threshold {
    position: absolute;
    left: 27%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff5722;
}

.neuron-info-panel .voltage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #64748b;
}

.neuron-info-panel .step-indicator {
    padding: 8px 12px;
    background: rgba(79, 195, 247, 0.15);
    border-radius: 6px;
    margin-top: 8px;
}

.neuron-info-panel .step-name {
    font-size: 12px;
    color: #81d4fa;
    font-weight: 500;
}

/* === 排序算法可视化场景控制面板 === */
.sorting-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.95), rgba(30, 35, 55, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(79, 195, 247, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.sorting-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sorting-controls .control-group label {
    font-size: 11px;
    color: #81d4fa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sorting-controls .control-group.buttons {
    flex-direction: row;
    gap: 8px;
}

.sorting-controls .algo-select {
    padding: 8px 14px;
    background: rgba(30, 40, 60, 0.9);
    border: 1px solid rgba(79, 195, 247, 0.4);
    border-radius: 8px;
    color: #b3e5fc;
    cursor: pointer;
    font-size: 12px;
    pointer-events: auto;
    min-width: 180px;
}

.sorting-controls .algo-select:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.sorting-controls .speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sorting-controls .speed-control input[type="range"] {
    width: 100px;
    -webkit-appearance: none;
    background: rgba(79, 195, 247, 0.2);
    border-radius: 5px;
    height: 6px;
    cursor: pointer;
    pointer-events: auto;
}

.sorting-controls .speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.5);
}

.sorting-controls .speed-control span {
    font-size: 12px;
    color: #81d4fa;
    min-width: 50px;
}

.sorting-controls .action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(41, 182, 246, 0.15));
    border: 1px solid rgba(79, 195, 247, 0.4);
    border-radius: 10px;
    color: #81d4fa;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sorting-controls .action-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.sorting-controls .action-btn.primary {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    border-color: rgba(76, 175, 80, 0.5);
    color: #a5d6a7;
}

.sorting-controls .action-btn.primary:hover {
    background: rgba(76, 175, 80, 0.4);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

/* 排序信息面板 */
.sorting-info-panel {
    position: absolute;
    top: 60px;
    left: 20px;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.95), rgba(30, 35, 55, 0.95));
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    min-width: 180px;
    z-index: 10;
}

.sorting-info-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.sorting-info-panel .panel-header i {
    color: #4fc3f7;
    font-size: 18px;
}

.sorting-info-panel .panel-header span {
    font-size: 14px;
    font-weight: 600;
    color: #b3e5fc;
}

.sorting-info-panel .algo-info {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 8px;
    text-align: center;
}

.sorting-info-panel .algo-name {
    font-size: 16px;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 4px;
}

.sorting-info-panel .algo-complexity {
    font-size: 14px;
    color: #ffeb3b;
    font-family: 'Monaco', 'Consolas', monospace;
}

.sorting-info-panel .stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.sorting-info-panel .stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.sorting-info-panel .stat-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sorting-info-panel .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #4fc3f7;
    font-family: 'Monaco', 'Consolas', monospace;
}

.sorting-info-panel .color-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sorting-info-panel .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.sorting-info-panel .legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* === K-Means 聚类场景控制面板 === */
.kmeans-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.95), rgba(30, 40, 60, 0.95));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    align-items: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.kmeans-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kmeans-controls .control-group label {
    font-size: 11px;
    color: #4ecdc4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kmeans-controls .control-group.buttons {
    flex-direction: row;
    gap: 8px;
}

.kmeans-controls .k-selector {
    display: flex;
    gap: 6px;
}

.kmeans-controls .k-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(40, 50, 70, 0.9);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    pointer-events: auto;
}

.kmeans-controls .k-btn:hover {
    border-color: rgba(78, 205, 196, 0.6);
    color: #4ecdc4;
}

.kmeans-controls .k-btn.active {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(52, 152, 219, 0.3));
    border-color: #4ecdc4;
    color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.kmeans-controls .speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kmeans-controls .speed-control input[type="range"] {
    width: 100px;
    -webkit-appearance: none;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 5px;
    height: 6px;
    cursor: pointer;
    pointer-events: auto;
}

.kmeans-controls .speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
}

.kmeans-controls .speed-control span {
    font-size: 12px;
    color: #4ecdc4;
    min-width: 40px;
}

.kmeans-controls .action-btn {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(52, 152, 219, 0.15));
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 10px;
    color: #4ecdc4;
    pointer-events: auto;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kmeans-controls .action-btn:hover {
    background: rgba(78, 205, 196, 0.25);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.kmeans-controls .action-btn.primary {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(52, 152, 219, 0.3));
    border-color: #4ecdc4;
}

/* K-Means 信息面板 */
.kmeans-info-panel {
    position: absolute;
    top: 60px;
    left: 20px;
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.95), rgba(30, 40, 60, 0.95));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    min-width: 200px;
    z-index: 10;
}

.kmeans-info-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.kmeans-info-panel .panel-header i {
    color: #4ecdc4;
    font-size: 18px;
}

.kmeans-info-panel .panel-header span {
    font-size: 14px;
    font-weight: 600;
    color: #4ecdc4;
}

.kmeans-info-panel .algo-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-style: italic;
}

.kmeans-info-panel .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.kmeans-info-panel .stat-item {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.kmeans-info-panel .stat-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.kmeans-info-panel .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #4ecdc4;
}

.kmeans-info-panel .cluster-info {
    margin-bottom: 12px;
}

.kmeans-info-panel .cluster-title {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.kmeans-info-panel .cluster-counts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.kmeans-info-panel .cluster-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    font-size: 12px;
}

.kmeans-info-panel .cluster-idx {
    font-weight: 600;
}

.kmeans-info-panel .cluster-num {
    font-weight: 700;
}

.kmeans-info-panel .algorithm-steps {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.kmeans-info-panel .step-title {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.kmeans-info-panel .steps-list .step {
    font-size: 11px;
    color: #64748b;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kmeans-info-panel .steps-list .step i {
    color: #4ecdc4;
    font-size: 10px;
}

/* === 迷宫寻路场景控制面板 v2.0 === */
.maze-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(15, 22, 35, 0.96), rgba(25, 35, 50, 0.96));
    pointer-events: auto !important;
    border-radius: 12px;
    border: 1px solid rgba(241, 196, 15, 0.35);
    align-items: flex-start;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.maze-controls .control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maze-controls .control-group label {
    font-size: 10px;
    color: #f1c40f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maze-controls .control-group.buttons {
    flex-direction: row;
    gap: 8px;
    align-items: flex-end;
}

.maze-controls .control-group.algo-selectors {
    flex: 1;
}

.maze-controls .corner-algos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.maze-controls .corner-algo-select {
    display: flex;
    align-items: center;
    gap: 6px;
}

.maze-controls .corner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.maze-controls .algo-select-mini {
    padding: 5px 8px;
    background: rgba(30, 40, 55, 0.95);
    border: 1px solid rgba(100, 120, 150, 0.4);
    border-radius: 6px;
    color: #b8c5d8;
    font-size: 11px;
    cursor: pointer;
    pointer-events: auto;
    min-width: 130px;
}

.maze-controls .algo-select-mini:focus {
    outline: none;
    border-color: #f1c40f;
}

.maze-controls .speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maze-controls .speed-control input[type="range"] {
    width: 80px;
    -webkit-appearance: none;
    background: rgba(241, 196, 15, 0.2);
    border-radius: 5px;
    height: 5px;
    cursor: pointer;
    pointer-events: auto;
}

.maze-controls .speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #f1c40f;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(241, 196, 15, 0.5);
}

.maze-controls .speed-control span {
    font-size: 11px;
    color: #f1c40f;
    min-width: 40px;
}

.maze-controls .action-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.15));
    border: 1px solid rgba(241, 196, 15, 0.4);
    border-radius: 8px;
    color: #f1c40f;
    pointer-events: auto;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.maze-controls .action-btn:hover {
    background: rgba(241, 196, 15, 0.25);
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
    transform: translateY(-1px);
}

.maze-controls .action-btn.primary {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.25), rgba(39, 174, 96, 0.25));
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.maze-controls .action-btn.primary:hover {
    background: rgba(46, 204, 113, 0.35);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.4);
}

/* 迷宫信息面板 v2.0 - 竞赛版 */
.maze-info-panel {
    position: absolute;
    top: 60px;
    left: 20px;
    background: linear-gradient(135deg, rgba(15, 22, 35, 0.96), rgba(25, 35, 50, 0.96));
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 12px;
    padding: 14px;
    color: #e2e8f0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    min-width: 220px;
    z-index: 10;
}

.maze-info-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
}

.maze-info-panel .panel-header i {
    color: #f1c40f;
    font-size: 16px;
}

.maze-info-panel .panel-header span {
    font-size: 13px;
    font-weight: 600;
    color: #f1c40f;
}

.maze-info-panel .race-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.maze-info-panel .racer-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    border-left: 3px solid;
}

.maze-info-panel .racer-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.maze-info-panel .racer-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.maze-info-panel .racer-name {
    font-size: 11px;
    font-weight: 600;
    color: #b8c5d8;
}

.maze-info-panel .racer-algo {
    font-size: 10px;
    color: #64748b;
    margin-bottom: 4px;
}

.maze-info-panel .racer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
}

.maze-info-panel .racer-stats b {
    color: #f1c40f;
    font-weight: 600;
}

.maze-info-panel .legend-compact {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: #64748b;
    padding-top: 8px;
    border-top: 1px solid rgba(100, 120, 150, 0.2);
}