
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: #e0e0e0;
            color: #1a1a1a;
            overflow: hidden;
            width: 100vw;
            height: 100vh;
        }
        
        #app {
            position: relative;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
        }
        
        #viewer-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #e0e0e0;
            padding-top: 50px;
        }
        
        /* 动态调整viewer-container的padding-top */
        #viewer-container.dynamic-padding {
            padding-top: var(--toolbar-height, 50px);
        }
        
        /* 视图控制面板 */
        .view-controls-compact {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin-bottom: 10px;
        }
        
        .view-icon-btn {
            padding: 10px;
            background: rgba(25, 118, 210, 0.7);
            border: 1px solid #555;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s;
            min-width: 40px;
            min-height: 40px;
        }
        
        .view-icon-btn:hover {
            background: rgba(25, 118, 210, 0.9);
        }
        
        .view-icon-btn.active {
            background: rgba(255, 152, 0, 0.9);
            border-color: #ff9800;
        }
        
        .view-controls-extra {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #444;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .view-controls-extra .toggle-btn {
            padding: 6px 10px;
            font-size: 12px;
            margin: 0;
        }
        
        .camera-slider-compact {
            margin-top: 5px;
        }
        
        .camera-slider-compact label {
            display: flex;
            justify-content: space-between;
            color: #aaa;
            font-size: 11px;
            margin-bottom: 3px;
        }
        
        .camera-slider-compact input[type="range"] {
            width: 100%;
        }
        
        .view-controls-background {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #444;
        }
        
        .view-controls-background h4 {
            color: #4fc3f7;
            font-size: 14px;
            margin-bottom: 8px;
        }
        
        .view-controls-background .bg-color-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .view-controls-background .bg-color-group label {
            font-size: 12px;
            color: #aaa;
        }
        
        .view-controls-background .bg-image-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .view-controls-background .bg-btn {
            padding: 6px 10px;
            font-size: 12px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .view-controls-background .bg-btn:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        /* 灯光设置样式 */
        .light-mode-selector {
            margin-bottom: 15px;
        }
        
        .light-mode-selector label {
            display: block;
            font-size: 13px;
            color: #aaa;
            margin-bottom: 6px;
        }
        
        .light-mode-selector select {
            width: 100%;
            padding: 8px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            color: #fff;
            font-size: 13px;
            cursor: pointer;
        }
        
        .light-mode-selector select:hover {
            background: rgba(255, 255, 255, 0.15);
        }
        
        .light-item {
            transition: all 0.2s;
        }
        
        .light-item:hover {
            background: rgba(79, 195, 247, 0.2) !important;
        }
        
        .light-controls {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .control-group {
            margin-bottom: 10px;
        }
        
        .control-group label {
            display: block;
            font-size: 12px;
            color: #aaa;
            margin-bottom: 4px;
        }
        
        .control-group input[type="range"] {
            width: 100%;
            cursor: pointer;
        }
        
        .control-group input[type="number"] {
            padding: 4px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 12px;
        }
        
        /* 全屏控制按钮 */
        #fullscreen-controls {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            gap: 10px;
            z-index: 3000;
        }
        
        #app.fullscreen #fullscreen-controls {
            display: flex;
        }
        
        #app.fullscreen #top-toolbar,
        #app.fullscreen #model-list-panel,
        #app.fullscreen #view-controls-panel {
            display: none !important;
        }
        
        /* 顶部工具栏 */
        #top-toolbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            min-height: 50px;
            background: rgba(26, 26, 26, 0.95);
            border-bottom: 1px solid #444;
            padding: 8px 20px;
            z-index: 2000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }
        
        /* 动态计算工具栏高度 */
        :root {
            --toolbar-height: 70px;
        }
        
        @media (max-width: 768px) {
            :root {
                --toolbar-height: auto;
            }
        }
        
        /* 更新工具栏高度变量 */
        #top-toolbar {
            --toolbar-height: max(50px, auto);
        }
        
        .toolbar-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            width: 100%;
        }
        
        .toolbar-separator {
            width: 1px;
            height: 30px;
            background: #444;
            margin: 0 4px;
            flex-shrink: 0;
        }
        
        .toolbar-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .toolbar-btn {
            padding: 8px 16px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }
        
        .toolbar-btn:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        /* 浮动面板样式 */
        .panel, .floating-panel {
            position: fixed;
            background: rgba(42, 42, 42, 0.95);
            overflow: hidden;
            transition: transform 0.3s ease, opacity 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(68, 68, 68, 0.8);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }
        
        .panel {
            padding: 20px;
            overflow-y: auto;
            max-height: calc(100vh - 70px);
        }
        
        .panel-content {
            width: 100%;
            height: 100%;
            color: #e0e0e0;
        }
        
        .panel h2, .panel h3, .panel h4 {
            color: #4fc3f7;
        }
        
        .collapsible-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 10px;
            background: rgba(79, 195, 247, 0.1);
            border-radius: 4px;
            margin-bottom: 10px;
            transition: background 0.2s;
        }
        
        .collapsible-section .section-header:hover {
            background: rgba(79, 195, 247, 0.2) !important;
        }
        
        .collapsible-section .section-header h3 {
            margin: 0;
            color: #4fc3f7;
        }
        
        .collapsible-section .section-toggle {
            font-size: 12px;
            color: #aaa;
        }
        
        .collapsible-section .section-content {
            padding: 0 10px;
        }
        
        .left-panel {
            top: 70px;
            left: 0;
            width: 350px;
            max-width: calc(100vw - 40px);
            transform: translateX(0);
            z-index: 1200;
            transition: transform 0.3s ease;
        }
        
        .left-panel.collapsed {
            transform: translateX(-100%);
        }
        
        .left-panel.collapsed .panel-content {
            display: none;
        }
        
        #params-panel {
            top: calc(var(--toolbar-height, 70px) + 10px);
            right: 0;
            width: 300px;
            max-width: calc(100vw - 40px);
            transform: translateX(0);
            z-index: 1200;
            transition: transform 0.3s ease;
        }
        
        #params-panel.collapsed {
            transform: translateX(100%);
        }
        
        #params-panel.collapsed .panel-content {
            display: none;
        }
        
        /* 外部折叠按钮 */
        .external-toggle {
            position: fixed;
            top: calc(var(--toolbar-height, 70px) + 10px);
            z-index: 1300;
            padding: 10px 12px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 0 4px 4px 0;
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .external-toggle:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        #chat-panel-toggle {
            left: 0;
        }
        
        #params-panel-toggle {
            right: 0;
            border-radius: 4px 0 0 4px;
        }
        
        .left-panel.collapsed ~ #chat-panel-toggle {
            border-radius: 0 4px 4px 0;
        }
        
        #params-panel.collapsed ~ #params-panel-toggle {
            border-radius: 4px 0 0 4px;
        }
        
        /* 确保浮动面板在侧边面板之上 */
        .floating-panel {
            z-index: 1500 !important;
        }
        
        /* 小浮动面板 */
        .floating-panel {
            padding: 10px;
            border-radius: 8px;
        }
        
        .floating-panel.top-left {
            top: calc(var(--toolbar-height, 70px) + 10px);
            left: 20px;
            width: 280px;
            max-height: calc(100vh - var(--toolbar-height, 70px) - 20px);
            overflow-y: auto;
            z-index: 1500;
        }
        
        .floating-panel.top-left .panel-content {
            padding: 10px;
        }
        
        .floating-panel.top-left #model-list-container {
            max-height: calc(100vh - var(--toolbar-height, 70px) - 80px);
            overflow-y: auto;
            margin-top: 10px;
        }
        
        /* 确保模型列表面板顶部有足够空间 */
        #model-list-panel.floating-panel.top-left {
            top: calc(var(--toolbar-height, 70px) + 10px);
        }
        
        .floating-panel.top-right {
            top: calc(var(--toolbar-height, 70px) + 10px);
            right: 20px;
            width: auto;
            z-index: 1500;
        }
        
        .floating-panel.collapsed {
            width: auto !important;
        }
        
        .floating-panel.collapsed .panel-content {
            display: none;
        }
        
        /* ============= 全新视图面板样式 ============= */
        .view-panel-new {
            position: fixed;
            top: calc(var(--toolbar-height, 70px) + 10px);
            right: 20px;
            width: 280px;
            background: rgba(42, 42, 42, 0.95);
            border: 1px solid rgba(68, 68, 68, 0.8);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            z-index: 1500;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .view-panel-new.collapsed {
            width: 50px;
            height: 50px;
            padding: 0;
        }
        
        .view-panel-new.collapsed .view-panel-body {
            display: none;
        }
        
        .view-panel-new.collapsed .view-panel-header {
            width: 100%;
            height: 100%;
            padding: 0;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            border-bottom: none;
        }
        
        .view-panel-new.collapsed .view-panel-title {
            display: none;
        }
        
        .view-panel-new.collapsed .view-panel-close {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(180deg);
            width: 100%;
            height: 100%;
            border-radius: 8px;
            font-size: 24px;
        }
        
        .view-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: rgba(25, 118, 210, 0.2);
            border-bottom: 1px solid rgba(68, 68, 68, 0.8);
            border-radius: 8px 8px 0 0;
            position: relative;
        }
        
        .view-panel-title {
            color: #4fc3f7;
            font-weight: 600;
            font-size: 14px;
        }
        
        .view-panel-close {
            background: rgba(25, 118, 210, 0.9);
            border: none;
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }
        
        .view-panel-close:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        .view-panel-new.collapsed .view-panel-close {
            transform: rotate(180deg);
        }
        
        .view-panel-body {
            padding: 15px;
            max-height: calc(100vh - var(--toolbar-height, 70px) - 100px);
            overflow-y: auto;
        }
        
        .view-section {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(68, 68, 68, 0.5);
        }
        
        .view-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .view-section-title {
            color: #4fc3f7;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .view-buttons-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        
        .view-btn-new {
            background: rgba(66, 66, 66, 0.8);
            border: 1px solid rgba(68, 68, 68, 0.8);
            color: #e0e0e0;
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }
        
        .view-btn-new:hover {
            background: rgba(79, 195, 247, 0.3);
            border-color: #4fc3f7;
        }
        
        .view-btn-new.active {
            background: rgba(79, 195, 247, 0.5);
            border-color: #4fc3f7;
            color: #fff;
        }
        
        .view-mode-switch {
            display: flex;
            gap: 8px;
        }
        
        .mode-btn {
            flex: 1;
            background: rgba(66, 66, 66, 0.8);
            border: 1px solid rgba(68, 68, 68, 0.8);
            color: #e0e0e0;
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }
        
        .mode-btn:hover {
            background: rgba(79, 195, 247, 0.3);
        }
        
        .mode-btn.active {
            background: rgba(79, 195, 247, 0.5);
            border-color: #4fc3f7;
            color: #fff;
        }
        
        .view-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .view-options-inline {
            display: flex;
            flex-direction: row;
            gap: 15px;
            align-items: center;
        }
        
        .view-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #e0e0e0;
            font-size: 13px;
            cursor: pointer;
        }
        
        .view-checkbox-inline {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #e0e0e0;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
        }
        
        .view-checkbox input[type="checkbox"],
        .view-checkbox-inline input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            margin: 0;
        }
        
        .view-slider-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .view-slider {
            flex: 1;
            height: 6px;
            background: rgba(66, 66, 66, 0.8);
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
        }
        
        .view-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: #4fc3f7;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .view-slider::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #4fc3f7;
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }
        
        .view-slider-value {
            color: #4fc3f7;
            font-size: 13px;
            font-weight: 600;
            min-width: 40px;
            text-align: right;
        }
        
        .view-bg-controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .view-bg-color {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .view-bg-color label {
            color: #e0e0e0;
            font-size: 13px;
        }
        
        .view-bg-color input[type="color"] {
            width: 50px;
            height: 30px;
            border: 1px solid rgba(68, 68, 68, 0.8);
            border-radius: 4px;
            cursor: pointer;
        }
        
        .view-bg-buttons {
            display: flex;
            gap: 8px;
        }
        
        .view-action-btn {
            flex: 1;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }
        
        .view-action-btn:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        .view-action-btn.danger {
            background: rgba(211, 47, 47, 0.9);
        }
        
        .view-action-btn.danger:hover {
            background: rgba(183, 28, 28, 0.9);
        }
        
        /* 面板切换按钮 */
        .panel-toggle {
            position: absolute;
            top: 10px;
            padding: 8px 12px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 12px;
            z-index: 1001;
            transition: background 0.3s;
            min-width: 40px;
        }
        
        .panel-toggle:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        .left-panel .panel-toggle,
        .floating-panel.top-left .panel-toggle {
            right: 10px;
        }
        
        #params-panel .panel-toggle {
            left: 10px;
        }
        
        /* 视图面板切换按钮（与模型列表完全一致） */
        .floating-panel.top-right .panel-toggle {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1501;
        }
        
        .floating-panel.top-right.collapsed .panel-toggle {
            position: relative;
            top: 0;
            right: 0;
            width: 100%;
            margin: 0;
        }
        
        .floating-panel.collapsed .panel-toggle {
            position: relative;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            margin: 0;
        }
        
        .panel.collapsed .panel-toggle,
        .left-panel.collapsed .panel-toggle,
        #params-panel.collapsed .panel-toggle {
            position: absolute;
            top: 10px;
            width: 40px;
            height: 40px;
        }
        
        .left-panel.collapsed .panel-toggle {
            right: 0;
        }
        
        #params-panel.collapsed .panel-toggle {
            left: 0;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            #top-toolbar {
                height: auto;
                min-height: 40px;
                padding: 5px 10px;
            }
            
            .toolbar-container {
                gap: 6px;
            }
            
            .toolbar-btn {
                padding: 6px 12px;
                font-size: 12px;
                white-space: nowrap;
            }
            
            .toolbar-separator {
                height: 24px;
            }
            
            #viewer-container {
                top: 40px;
                height: calc(100% - 40px);
            }
            
            .left-panel, #params-panel {
                top: 40px;
                width: calc(100vw - 20px);
                max-width: 90vw;
            }
            
            .floating-panel.top-left {
                top: 50px;
                width: calc(100vw - 40px);
                max-width: 300px;
            }
            
            .floating-panel.top-right {
                top: 50px;
            }
            
            .panel {
                max-height: calc(100vh - 50px);
            }
        }
        
        .panel h2 {
            color: #4fc3f7;
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        #chat-panel {
            display: flex;
            flex-direction: column;
        }
        
        #chat-history {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(30, 30, 30, 0.5);
            border-radius: 8px;
        }
        
        .message {
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 6px;
            line-height: 1.5;
            color: #e0e0e0;
        }
        
        .user-message {
            background: rgba(25, 118, 210, 0.8);
            margin-left: 20px;
            color: #fff;
        }
        
        .assistant-message {
            background: rgba(66, 66, 66, 0.8);
            margin-right: 20px;
            color: #e0e0e0;
        }
        
        .code-block {
            background: rgba(30, 30, 30, 0.8);
            padding: 10px;
            border-radius: 4px;
            margin-top: 8px;
            font-family: 'Consolas', monospace;
            font-size: 13px;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-all;
            color: #e0e0e0;
        }
        
        #input-area {
            display: flex;
            gap: 10px;
        }
        
        #user-input {
            flex: 1;
            padding: 12px;
            background: rgba(30, 30, 30, 0.5);
            border: 1px solid rgba(68, 68, 68, 0.8);
            border-radius: 6px;
            color: #e0e0e0;
            color: #e0e0e0;
            font-size: 14px;
        }
        
        button {
            padding: 12px 24px;
            background: #1976d2;
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            font-weight: 500;
            transition: background 0.3s;
        }
        
        button:hover {
            background: #1565c0;
        }
        
        button:disabled {
            background: #555;
            cursor: not-allowed;
        }
        
        
        #canvas {
            width: 100%;
            height: 100%;
            display: block;
        }
        
        /* 旧的controls已移除，功能移至顶部工具栏 */
        
        .control-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .control-btn {
            background: rgba(25, 118, 210, 0.9);
            padding: 10px 16px;
            font-size: 13px;
        }
        
        .edit-mode-btn {
            background: rgba(76, 175, 80, 0.9);
        }
        
        .edit-mode-btn.active {
            background: rgba(255, 152, 0, 0.9);
        }
        
        .danger-btn {
            background: rgba(211, 47, 47, 0.9);
        }
        
        .danger-btn:hover {
            background: rgba(198, 40, 40, 0.9);
        }
        
        #params-panel {
            max-height: calc(100vh - 40px);
        }
        
        .param-group {
            margin-bottom: 20px;
            padding: 15px;
            background: #1e1e1e;
            border-radius: 6px;
        }
        
        .param-group h3 {
            color: #81c784;
            margin-bottom: 10px;
            font-size: 14px;
        }
        
        .param-control {
            margin-bottom: 12px;
        }
        
        .param-control label {
            display: block;
            margin-bottom: 5px;
            font-size: 13px;
            color: #b0b0b0;
        }
        
        input[type="range"] {
            width: 100%;
            height: 6px;
            background: #444;
            border-radius: 3px;
            outline: none;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: #1976d2;
            border-radius: 50%;
            cursor: pointer;
        }
        
        input[type="color"] {
            width: 100%;
            height: 40px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        
        .param-value {
            float: right;
            color: #4fc3f7;
            font-weight: 500;
        }
        
        #info-section {
            margin-bottom: 20px;
            padding: 15px;
            background: #1e1e1e;
            border-radius: 6px;
            font-size: 12px;
        }
        
        #info-section div {
            margin-bottom: 8px;
            color: #aaa;
        }
        
        #info-section span {
            color: #4fc3f7;
            font-weight: 500;
        }
        
        #selection-actions {
            margin-bottom: 20px;
            padding: 15px;
            background: #1e1e1e;
            border-radius: 6px;
            display: none;
        }
        
        #selection-actions.active {
            display: block;
        }
        
        #selection-actions h3 {
            color: #ffa726;
            margin-bottom: 10px;
            font-size: 14px;
        }
        
        .action-btn {
            width: 100%;
            margin-bottom: 8px;
            padding: 10px;
            font-size: 13px;
        }
        
        .color-picker-group {
            margin-bottom: 10px;
        }
        
        .color-picker-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 12px;
            color: #aaa;
        }
        
        #export-section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #444;
        }
        
        .export-btn {
            width: 100%;
            margin-bottom: 10px;
            background: #388e3c;
        }
        
        .export-btn:hover {
            background: #2e7d32;
        }
        
        .status {
            padding: 8px 12px;
            margin-top: 10px;
            border-radius: 4px;
            font-size: 13px;
            text-align: center;
        }
        
        .status.success {
            background: rgba(76, 175, 80, 0.2);
            color: #81c784;
        }
        
        .status.error {
            background: rgba(244, 67, 54, 0.2);
            color: #e57373;
        }
        
        .loading {
            text-align: center;
            padding: 20px;
        }
        
        .spinner {
            border: 3px solid #444;
            border-top: 3px solid #1976d2;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #stats {
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 100;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 15px;
            border-radius: 6px;
            font-size: 12px;
            color: #4fc3f7;
            transition: opacity 0.3s ease;
        }
        
        #app.fullscreen #stats {
            opacity: 0;
            pointer-events: none;
        }

        .transform-controls {
            position: relative;
            background: rgba(30, 30, 30, 0.95);
            padding: 15px;
            border-radius: 8px;
            display: none;
            margin: 15px 0;
            border: 1px solid #444;
            transition: opacity 0.3s ease;
            z-index: 1000;
            width: 100%;
            box-sizing: border-box;
        }

        .transform-controls.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        #params-panel .transform-controls {
            position: relative;
            margin: 15px 0;
        }
        
        #app.fullscreen .transform-controls {
            opacity: 0;
            pointer-events: none;
        }
        
        /* 视图切换按钮样式 */
        .view-toggle {
            position: absolute;
            top: -40px;
            right: 0;
            z-index: 2000;
            padding: 5px 8px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 12px;
        }
        
        .view-toggle:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        /* 工具面板样式 */
        .tool-panel {
            background: rgba(30, 30, 30, 0.95);
            border: 1px solid #444;
            border-radius: 8px;
            padding: 15px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
        }
        
        .tool-panel .control-group {
            margin-bottom: 15px;
        }
        
        .tool-panel label {
            display: block;
            margin-bottom: 5px;
            font-size: 12px;
            color: #aaa;
        }
        
        .tool-panel select,
        .tool-panel input[type="number"],
        .tool-panel input[type="text"] {
            width: 100%;
            padding: 5px;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid #555;
            border-radius: 4px;
            color: #fff;
            font-size: 12px;
        }
        
        .align-btn,
        .arrange-btn,
        .geometry-btn,
        .shape-btn,
        .bezier-tool-btn,
        .apply-btn {
            padding: 8px 12px;
            background: rgba(25, 118, 210, 0.7);
            border: 1px solid #555;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        
        .align-btn:hover,
        .arrange-btn:hover,
        .geometry-btn:hover,
        .shape-btn:hover,
        .bezier-tool-btn:hover,
        .apply-btn:hover {
            background: rgba(25, 118, 210, 0.9);
        }
        
        .align-btn.active,
        .arrange-btn.active,
        .geometry-btn.active,
        .shape-btn.active {
            background: rgba(255, 152, 0, 0.9);
            border-color: #ff9800;
        }
        
        .geometry-params,
        .shape-params {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #444;
        }
        
        .geometry-params .param-group,
        .shape-params .param-group {
            margin-bottom: 10px;
        }
        
        .geometry-params label,
        .shape-params label {
            display: inline-block;
            width: 100px;
            font-size: 12px;
        }
        
        .geometry-params input,
        .shape-params input {
            width: calc(100% - 110px);
            display: inline-block;
        }

        .transform-controls h4 {
            color: #ffa726;
            margin-bottom: 15px;
            font-size: 14px;
            border-bottom: 1px solid #444;
            padding-bottom: 8px;
        }

        .transform-slider {
            margin-bottom: 12px;
        }

        .transform-slider label {
            display: flex;
            justify-content: space-between;
            color: #aaa;
            font-size: 12px;
            margin-bottom: 5px;
        }

        .transform-slider input[type="range"] {
            width: 100%;
        }

        .transform-input-group {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            align-items: center;
        }

        .transform-input-group label {
            color: #aaa;
            font-size: 12px;
            min-width: 15px;
        }

        .transform-input-group input[type="number"] {
            flex: 1;
            padding: 6px;
            background: #1e1e1e;
            border: 1px solid #444;
            border-radius: 4px;
            color: #e0e0e0;
            font-size: 12px;
        }

        .axis-lock-group {
            display: flex;
            gap: 5px;
            margin: 10px 0;
            flex-wrap: wrap;
        }

        .axis-lock-btn {
            padding: 5px 10px;
            background: #333;
            border: 1px solid #555;
            border-radius: 4px;
            color: #aaa;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .axis-lock-btn.active {
            background: #1976d2;
            color: white;
            border-color: #1976d2;
        }

        .reset-btn {
            width: 100%;
            padding: 8px;
            background: #d32f2f;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 10px;
        }

        .reset-btn:hover {
            background: #c62828;
        }

        .selected-object-info {
            position: absolute;
            top: 130px;
            right: 20px;
            background: rgba(0, 0, 0, 0.8);
            padding: 12px 16px;
            border-radius: 6px;
            font-size: 12px;
            color: #ffa726;
            display: none;
            border: 2px solid #ffa726;
            max-width: 250px;
            transition: opacity 0.3s ease;
        }

        .selected-object-info.active {
            display: block;
        }
        
        #app.fullscreen .selected-object-info {
            opacity: 0;
            pointer-events: none;
        }

        .selected-count {
            color: #4fc3f7;
            font-weight: bold;
        }

        .gizmo-helper {
            position: absolute;
            bottom: 100px;
            left: 20px;
            z-index: 100;
            background: rgba(0, 0, 0, 0.7);
            padding: 12px;
            border-radius: 6px;
            font-size: 11px;
            color: #aaa;
            transition: opacity 0.3s ease;
        }
        
        #app.fullscreen .gizmo-helper {
            opacity: 0;
            pointer-events: none;
        }

        .gizmo-helper div {
            margin-bottom: 5px;
        }

        .gizmo-helper .key {
            display: inline-block;
            background: #333;
            padding: 2px 6px;
            border-radius: 3px;
            color: #4fc3f7;
            font-family: monospace;
            margin: 0 2px;
        }

        #import-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #444;
        }

        .import-btn {
            width: 100%;
            margin-bottom: 10px;
            background: #5e35b1;
        }

        .import-btn:hover {
            background: #512da8;
        }

        #file-input, #background-image-input {
            display: none;
        }

        /* 全屏控制按钮 */
        #fullscreen-controls {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            gap: 10px;
            z-index: 1000;
        }
        
        #app.fullscreen #fullscreen-controls {
            display: flex;
        }
        
        .fullscreen-btn {
            padding: 12px 24px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
            transition: background 0.3s;
        }
        
        .fullscreen-btn:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        .fullscreen-btn.screenshot {
            background: rgba(76, 175, 80, 0.9);
        }
        
        .fullscreen-btn.screenshot:hover {
            background: rgba(67, 160, 71, 0.9);
        }

        /* 全屏切换按钮 */
        #fullscreen-toggle {
           /*position: absolute;*/
            top: 20px;
            left: 20px;
            padding: 10px 16px;
            background: rgba(25, 118, 210, 0.9);
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            font-size: 13px;
            z-index: 100;
        }
        
        #fullscreen-toggle:hover {
            background: rgba(21, 101, 192, 0.9);
        }
        
        #app.fullscreen #fullscreen-toggle {
            opacity: 0;
            pointer-events: none;
        }

        .scene-actions {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #444;
        }

        /* 视图控制面板 */
        #view-controls {
            margin-bottom: 20px;
            padding: 15px;
            background: #1e1e1e;
            border-radius: 6px;
        }

        #view-controls h3 {
            color: #4fc3f7;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .view-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin-bottom: 10px;
        }

        .view-btn {
            padding: 8px;
            background: #333;
            border: 1px solid #555;
            border-radius: 4px;
            color: #aaa;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .view-btn:hover {
            background: #444;
            color: #fff;
        }

        .view-btn.active {
            background: #1976d2;
            color: white;
            border-color: #1976d2;
        }

        .camera-slider {
            margin-top: 10px;
        }

        .camera-slider label {
            display: flex;
            justify-content: space-between;
            color: #aaa;
            font-size: 12px;
            margin-bottom: 5px;
        }

        .toggle-btn {
            width: 100%;
            padding: 8px;
            margin-bottom: 5px;
            background: #333;
            border: 1px solid #555;
            border-radius: 4px;
            color: #aaa;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .toggle-btn:hover {
            background: #444;
        }

        .toggle-btn.active {
            background: #388e3c;
            color: white;
            border-color: #388e3c;
        }

        /* 背景设置 */
        #background-settings {
            margin-bottom: 20px;
            padding: 15px;
            background: #1e1e1e;
            border-radius: 6px;
        }

        #background-settings h3 {
            color: #4fc3f7;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .bg-color-group {
            margin-bottom: 10px;
        }

        .bg-color-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 12px;
            color: #aaa;
        }

        .bg-image-group {
            margin-top: 10px;
        }

        .bg-btn {
            width: 100%;
            padding: 8px;
            margin-bottom: 5px;
            background: #5e35b1;
            font-size: 12px;
        }

        .bg-btn:hover {
            background: #512da8;
        }
		
		/* 布尔运算面板 */
		#boolean-operations {
			margin-bottom: 20px;
			padding: 15px;
			background: #1e1e1e;
			border-radius: 6px;
			display: none;
		}

		#boolean-operations.active {
			display: block;
		}

		#boolean-operations h3 {
			color: #ff9800;
			margin-bottom: 10px;
			font-size: 14px;
		}

		.boolean-btn {
			width: 100%;
			margin-bottom: 8px;
			padding: 10px;
			font-size: 13px;
			background: #ff9800;
		}

		.boolean-btn:hover {
			background: #f57c00;
		}

		.boolean-btn:disabled {
			background: #555;
			cursor: not-allowed;
		}

		.boolean-info {
			font-size: 11px;
			color: #aaa;
			margin-top: 10px;
			padding: 8px;
			background: #2a2a2a;
			border-radius: 4px;
		}

		/* 高级操作面板 */
		#advanced-operations {
			margin-bottom: 20px;
			padding: 15px;
			background: #1e1e1e;
			border-radius: 6px;
		}

		#advanced-operations h3 {
			color: #9c27b0;
			margin-bottom: 10px;
			font-size: 14px;
		}

		.advanced-control {
			margin-bottom: 12px;
		}

		.advanced-control label {
			display: block;
			margin-bottom: 5px;
			font-size: 12px;
			color: #aaa;
		}

		.advanced-control input[type="number"] {
			width: 100%;
			padding: 8px;
			background: #2a2a2a;
			border: 1px solid #444;
			border-radius: 4px;
			color: #e0e0e0;
			font-size: 13px;
		}

		.advanced-btn {
			width: 100%;
			margin-bottom: 8px;
			padding: 10px;
			font-size: 13px;
			background: #9c27b0;
		}

		.advanced-btn:hover {
			background: #7b1fa2;
		}

		/* OCCT 状态指示器 */
		#occt-status {
			position: absolute;
			top: 60px;
			left: 20px;
			background: rgba(0, 0, 0, 0.8);
			padding: 8px 12px;
			border-radius: 6px;
			font-size: 11px;
			color: #4fc3f7;
			z-index: 100;
			transition: opacity 0.3s ease;
		}

		#app.fullscreen #occt-status {
			opacity: 0;
			pointer-events: none;
		}

		.occt-loading {
			color: #ffa726;
		}

		.occt-ready {
			color: #81c784;
		}

		.occt-error {
			color: #e57373;
		}