* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #2c3e50);
            color: #f0f0f0;
            overflow: hidden;
            height: 100vh;
        }

        #webgl-canvas {
            display: block;
            background: #0a0f1f;
        }

        /* 顶部导航栏 */
        .navbar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: rgba(20, 30, 48, 0.9);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            font-size: 28px;
            color: #4CAF50;
        }

        .logo-text {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(to right, #4CAF50, #8BC34A);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-buttons {
            display: flex;
            gap: 15px;
        }

        .nav-btn {
            background: rgba(76, 175, 80, 0.2);
            border: 1px solid rgba(76, 175, 80, 0.4);
            color: #f0f0f0;
            padding: 8px 15px;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            white-space: nowrap;
        }

        .nav-btn:hover {
            background: rgba(76, 175, 80, 0.4);
            transform: translateY(-2px);
        }

        /* 左侧控制面板 */
        #controls {
            position: absolute;
            top: 70px;
            left: 10px;
            background: rgba(20, 30, 48, 0.85);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 12px;
            width: 280px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(76, 175, 80, 0.2);
            z-index: 5;
        }


        .panel-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(76, 175, 80, 0.3);
        }

        .panel-header i {
            font-size: 24px;
            color: #4CAF50;
        }

        .panel-header h3 {
            font-size: 20px;
            font-weight: 600;
        }

        .instructions {
            background: rgba(76, 175, 80, 0.15);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }

        .instructions p {
            margin: 8px 0;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .instructions i {
            color: #4CAF50;
            min-width: 20px;
        }

        .shape-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
            margin-top: 20px;
        }

        .shape-btn {
            background: linear-gradient(135deg, #2c3e50, #1a2a6c);
            border: 1px solid rgba(76, 175, 80, 0.3);
            color: #f0f0f0;
            padding: 12px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .shape-btn i {
            font-size: 22px;
            color: #8BC34A;
        }

        .shape-btn:hover {
            background: linear-gradient(135deg, #4CAF50, #2c3e50);
            transform: translateY(-3px);
        }

        .control-group {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .control-group h4 {
            margin-bottom: 12px;
            font-size: 16px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #8BC34A;
        }

        .control-group h4 i {
            font-size: 18px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #b0b0b0;
        }

        input[type="range"], 
        input[type="number"], 
        input[type="text"] {
            width: 100%;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid rgba(76, 175, 80, 0.3);
            background: rgba(20, 30, 48, 0.6);
            color: #f0f0f0;
            margin-bottom: 15px;
        }

        input[type="range"] {
            -webkit-appearance: none;
            height: 6px;
            background: rgba(76, 175, 80, 0.2);
            border-radius: 3px;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #4CAF50;
            cursor: pointer;
        }

        button {
            background: linear-gradient(135deg, #4CAF50, #2E7D32);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        button:hover {
            background: linear-gradient(135deg, #66BB6A, #388E3C);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        }

        .warning {
            background: rgba(255, 152, 0, 0.15);
            border-radius: 8px;
            padding: 12px;
            margin-top: 15px;
            font-size: 13px;
            color: #FFC107;
        }

        /* 右侧“场景物体”面板 */
        #objectList {
            position: absolute;
            top: 70px;
            right: 10px;
            background: rgba(20, 30, 48, 0.85);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 12px;
            width: 280px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(76, 175, 80, 0.2);
            z-index: 5;
        }

        #objectItems {
            margin-top: 15px;
        }

        #objectList li {
            background: rgba(30, 40, 60, 0.6);
            border: 1px solid rgba(76, 175, 80, 0.2);
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        #objectList li:hover {
            background: rgba(40, 50, 80, 0.8);
            transform: translateX(-5px);
        }

        #objectList li.selected {
            background: rgba(76, 175, 80, 0.3);
            border: 1px solid #4CAF50;
        }

        #objectList li i {
            font-size: 18px;
            color: #8BC34A;
        }

        .object-info {
            flex-grow: 1;
        }

        .object-name {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .object-type {
            font-size: 12px;
            color: #b0b0b0;
        }

        .object-actions {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            background: rgba(76, 175, 80, 0.2);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .action-btn:hover {
            background: rgba(76, 175, 80, 0.4);
            transform: scale(1.1);
        }

        /* 底部样式 */
        .footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: rgba(20, 30, 48, 0.8);
            backdrop-filter: blur(10px);
            text-align: center;
            padding: 12px 0;
            z-index: 10;
            border-top: 1px solid rgba(76, 175, 80, 0.2);
        }

        .footer a {
            color: #4CAF50;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .footer a:hover {
            color: #8BC34A;
            text-decoration: underline;
        }

        /* 响应式调整 */
        @media (max-width: 1200px) {
            #controls, #objectList {
                width: 250px;
            }
        }

        @media (max-width: 900px) {
            #controls, #objectList {
                width: 220px;
                padding: 15px;
            }
            
            .shape-buttons {
                grid-template-columns: 1fr;
            }
        }
