* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            overflow: hidden;
            height: 100vh;
        }

        #app {
            position: relative;
            width: 100vw;
            height: 100vh;
        }

        #scene-container {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        /* 智能家居UI面板 */
        .smart-home-ui {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 20px;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 0 0 20px 20px;
        }

        /* 时间面板 */
        .time-panel {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .time {
            font-size: 48px;
            font-weight: 200;
            line-height: 1;
            margin-bottom: 5px;
        }

        .date {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 10px;
        }

        .temperature {
            font-size: 36px;
            font-weight: 100;
        }

        /* 标题区域 */
        .header {
            position: absolute;
            top: 20px;
            right: 20px;
            text-align: right;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .title {
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 2px;
            margin-bottom: 5px;
        }

        .subtitle {
            font-size: 12px;
            opacity: 0.8;
        }

        /* 控制按钮 */
        .controls {
            position: absolute;
            bottom: 30px;
            right: 30px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .control-btn {
            width: 50px;
            height: 50px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* 房屋类型选择器 */
        .floor-indicator {
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 20px;
            z-index: 100;
        }

        /* 房间信息面板 */
        .room-info-panel {
            position: absolute;
            left: 20px;
            bottom: 20px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(15px);
            border-radius: 15px;
            padding: 20px;
            color: white;
            min-width: 200px;
            z-index: 100;
        }

        .panel-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 10px;
        }

        .room-types {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .room-type {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .room-type:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .room-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
        }

        .floor-label {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .floor-label:hover,
        .floor-label.active {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }

        /* 加载动画 */
        .loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            z-index: 1000;
        }

        .loading-text {
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* 平面图编辑器样式 */
        .floor-plan-editor {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: min(90vw, 1000px);
            height: min(85vh, 700px);
            max-width: 1000px;
            max-height: 700px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .editor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.2);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        }

        .editor-header h3 {
            margin: 0;
            color: #333;
            font-size: 20px;
        }

        .editor-floor-selector {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background: rgba(0,0,0,0.05);
            padding: 5px;
            border-radius: 8px;
        }

        .editor-floor-selector .floor-btn {
            padding: 5px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background: transparent;
            transition: background 0.3s ease;
            font-size: 14px;
            color: #333;
        }

        .editor-floor-selector .floor-btn.active,
        .editor-floor-selector .floor-btn:hover {
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            font-weight: bold;
        }

        .close-btn {
            background: rgba(255, 59, 48, 0.1);
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            color: #ff3b30;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 59, 48, 0.2);
            transform: scale(1.1);
        }

        .editor-content {
            flex: 1;
            display: flex;
            padding: 20px;
            gap: 20px;
            min-height: 0;
        }

        .editor-canvas-container {
            flex: 2;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 10px;
            border: 2px solid rgba(102, 126, 234, 0.2);
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;
        }

        #floor-plan-canvas {
            display: block;
            cursor: crosshair;
            max-width: 100%;
            max-height: 100%;
            border-radius: 8px;
        }

        .editor-controls {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
            min-height: 0;
        }

        .room-list, .room-properties {
            background: rgba(102, 126, 234, 0.05);
            border-radius: 10px;
            padding: 15px;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .room-list h4, .room-properties h4 {
            margin: 0 0 15px 0;
            color: #333;
            font-size: 16px;
        }

        .property-group {
            margin-bottom: 12px;
        }

        .property-group label {
            display: block;
            margin-bottom: 5px;
            color: #666;
            font-size: 14px;
        }

        .property-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 5px;
            font-size: 14px;
        }

        .update-btn, .sync-btn {
            width: 100%;
            padding: 10px;
            margin: 5px 0;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .update-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .sync-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .update-btn:hover, .sync-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .floor-plan-editor {
                width: 95vw;
                height: 90vh;
                max-width: 95vw;
                max-height: 90vh;
            }
            
            .editor-content {
                flex-direction: column;
                padding: 15px;
                gap: 15px;
            }
            
            .editor-canvas-container {
                flex: none;
                height: 300px;
                min-height: 300px;
            }
            
            .editor-controls {
                flex: none;
                max-height: 200px;
                overflow-y: auto;
            }
            .time {
                font-size: 36px;
            }
            
            .date {
                font-size: 18px;
            }
            
            .temperature {
                font-size: 24px;
            }
            
            .smart-home-ui {
                padding: 15px;
            }
            
            .controls {
                bottom: 20px;
                right: 20px;
            }
            
            .control-btn {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
            
                .room-info-panel {
                    left: 10px;
                    bottom: 10px;
                    padding: 15px;
                    min-width: 180px;
                }
                
                .performance-panel {
                    top: 10px;
                    left: 10px;
                    padding: 10px;
                    min-width: 150px;
                }
                
                .performance-option {
                    font-size: 12px;
                    padding: 3px;
                }
                
                .fps-counter {
                    font-size: 11px;
                    padding: 6px;
                }
            }

        

        

        

        

        
        
        

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fadeInUp {
            animation: fadeInUp 0.6s ease-out;
        }

        /* 说明面板 */
        .info-panel {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(15px);
            border-radius: 15px;
            padding: 15px 25px;
            color: white;
            font-size: 14px;
            text-align: center;
            z-index: 100;
            animation: fadeInUp 1s ease-out;
        }

        /* 性能控制面板 */
        .performance-panel {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(15px);
            border-radius: 15px;
            padding: 15px;
            color: white;
            min-width: 180px;
            z-index: 100;
            animation: fadeInUp 1s ease-out 0.5s both;
        }

        .performance-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .performance-option {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            padding: 5px;
            border-radius: 5px;
            transition: background 0.2s ease;
        }

        .performance-option:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .performance-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .fps-counter {
            margin-top: 10px;
            padding: 8px;
            background: rgba(0, 255, 0, 0.2);
            border-radius: 5px;
            text-align: center;
            font-family: monospace;
            font-size: 12px;
            font-weight: bold;
        }

        /* 选中房间信息样式 */
        #selected-room-info {
            margin-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 15px;
        }

        .selected-room-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .room-name {
            font-weight: bold;
            color: #ffd700;
            font-size: 14px;
        }

        .room-size {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        .room-controls {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .room-control-btn {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .room-control-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        /* 楼层指示器增强样式 */
        .floor-indicator {
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100;
        }

        .floor-label {
            width: 45px;
            height: 45px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(15px);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
        }

        .floor-label:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .floor-label.active {
            background: rgba(0, 123, 255, 0.9);
            border-color: rgba(0, 123, 255, 1);
            transform: scale(1.1);
            box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
            color: #ffffff;
            font-weight: 700;
        }

        /* 楼层指示器增强动画 */
        .floor-label {
            position: relative;
            overflow: hidden;
        }

        .floor-label::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease-in-out;
        }

        .floor-label:hover::before {
            left: 100%;
        }

        .floor-label.active::before {
            animation: sweep 1.5s ease-in-out infinite;
        }

        @keyframes sweep {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: -100%; }
        }

        /* 楼层过渡指示器 */
        .floor-transition-indicator {
            position: absolute;
            right: 85px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60px;
            background: linear-gradient(to bottom, 
                rgba(0, 123, 255, 0.8) 0%,
                rgba(0, 123, 255, 0.3) 50%,
                rgba(0, 123, 255, 0.8) 100%);
            border-radius: 2px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .floor-transition-indicator.active {
            opacity: 1;
            animation: floorTransition 0.8s ease-in-out;
        }

        @keyframes floorTransition {
            0% { height: 10px; }
            50% { height: 80px; }
            100% { height: 60px; }
        }

        /* 交互提示 */
        .interaction-hint {
            position: absolute;
            bottom: 80px;
            right: 30px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 10px;
            padding: 15px;
            color: white;
            font-size: 12px;
            z-index: 100;
            animation: fadeInUp 1s ease-out 2s both;
            max-width: 200px;
        }

        .interaction-hint h4 {
            margin-bottom: 8px;
            color: #ffd700;
            font-size: 14px;
        }

        .interaction-hint ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .interaction-hint li {
            margin-bottom: 5px;
            padding-left: 15px;
            position: relative;
        }

        .interaction-hint li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #007bff;
        }

        /* 快捷键样式 */
        .interaction-hint kbd {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            color: #ffd700;
            display: inline-block;
            font-size: 10px;
            font-weight: bold;
            line-height: 1;
            padding: 2px 4px;
            white-space: nowrap;
            margin: 0 1px;
        }

        /* 房屋快速选择器 */
        .house-selector {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(15px);
            border-radius: 25px;
            padding: 10px;
            z-index: 100;
        }

        .house-type-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .house-type-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .house-type-btn.active {
            background: rgba(0, 123, 255, 0.8);
            box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
            transform: translateY(-1px);
        }

        /* 方案切换器（已移除样式） */