
            
    #menuBtn{
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 20;
        width: auto;
        padding: 12px 18px;
        border: none;
        border-radius: 14px;
        background: rgba(20,40,80,0.85);
        color: #d8ecff;
        font-size: 15px;
        cursor: pointer;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(120,180,255,0.25);
        box-shadow:
            0 0 18px rgba(0,140,255,0.25);
        transition: 0.25s;
    }
    #menuBtn:hover{
        transform: translateY(-2px);
        background: rgba(40,80,140,0.95);
        box-shadow:
            0 0 24px rgba(80,180,255,0.45);
    }



        :root {
            --bg-color: #0b0f19;
            --panel-bg: rgba(18, 26, 43, 0.85);
            --accent-color: #00f0ff;
            --accent-glow: rgba(0, 240, 255, 0.4);
            --text-color: #e0f7fc;
            --border-color: rgba(0, 240, 255, 0.2);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: x-hidden;
            padding: 10px;
        }

        /* 主容器：响应式Flex布局 */
        .app-container {
            display: flex;
            flex-direction: row;
            width: 100%;
            max-width: 1400px;
            height: 90vh;
            max-height: 900px;
            gap: 15px;
            background: rgba(10, 15, 25, 0.5);
            border: 1px solid var(--border-color);
            box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
            border-radius: 8px;
            padding: 15px;
            overflow-y: auto;
        }

        /* 左侧：画布展示区 */
        .canvas-container {
            flex: 1 1 65%;
            min-width: 300px;
            min-height: 400px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #000;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
        }

        canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* 右侧：控制面板与标题 */
        .control-panel {
            flex: 0 0 320px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: var(--panel-bg);
            padding: 20px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        }

        .title-container h1 {
            font-size: 1.4rem;
            color: var(--accent-color);
            text-shadow: 0 0 8px var(--accent-glow);
            border-bottom: 2px solid var(--accent-color);
            padding-bottom: 8px;
            letter-spacing: 1px;
        }

        .title-container p {
            font-size: 0.85rem;
            color: #8ab4f8;
            margin-top: 6px;
            line-height: 1.4;
        }

        .controls {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

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

        .control-group label {
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
        }

        .control-group label span.val {
            color: var(--accent-color);
            font-weight: bold;
        }

        input[type=range] {
            -webkit-appearance: none;
            width: 100%;
            background: #1a2638;
            height: 6px;
            border-radius: 3px;
            outline: none;
            border: 1px solid var(--border-color);
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--accent-color);
            cursor: pointer;
            box-shadow: 0 0 8px var(--accent-color);
            transition: transform 0.1s;
        }

        input[type=range]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }

        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        button {
            flex: 1;
            padding: 10px 15px;
            background: transparent;
            border: 1px solid var(--accent-color);
            color: var(--accent-color);
            font-size: 0.95rem;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 0 5px var(--accent-glow);
        }

        button:hover {
            background: var(--accent-color);
            color: #000;
            box-shadow: 0 0 15px var(--accent-color);
        }

        button:active {
            transform: scale(0.98);
        }

        .status-panel {
            margin-top: auto;
            padding: 10px;
            background: rgba(0, 240, 255, 0.05);
            border-left: 3px solid var(--accent-color);
            font-size: 0.8rem;
            line-height: 1.4;
        }

        /* 移动端/小屏幕 适应 */
        @media (max-width: 850px) {
            body {
                align-items: flex-start;
            }
            .app-container {
                flex-direction: column;
                height: auto;
                max-height: none;
            }
            .canvas-container {
                height: 50vh;
                min-height: 300px;
            }
            .control-panel {
                flex: none;
                width: 100%;
            }
        }