
        #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-dark: #0d1117;
            --panel-bg: #161b22;
            --accent-cyan: #00f0ff;
            --accent-green: #39d353;
            --text-main: #c9d1d9;
            --border-color: #30363d;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }

        /* 布局结构 */
        .main-container {
            display: flex;
            width: 100%;
            height: 100%;
        }

        /* 左侧展示区 */
        .display-area {
            flex: 1;
            min-width: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--border-color);
            background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
            padding: 20px;
        }

        /* 右侧控制面板 */
        .control-panel {
            width: 360px;
            flex-shrink: 0;
            height: 100%;
            background-color: var(--panel-bg);
            padding: 30px 25px;
            display: flex;
            flex-direction: column;
            box-shadow: -5px 0 15px rgba(0,0,0,0.5);
            z-index: 10;
            overflow-y: auto;
        }

        /* 上部结果纸带区 */
        .result-container {
            height: 160px;
            margin-top: 30px;
            margin-bottom: 30px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-shrink: 0;
        }

        .result-title {
            font-size: 13px;
            color: #8b949e;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            justify-content: space-between;
        }

        /* 水平滚动容器 */
        .tape-viewport {
            flex: 1;
            background: #21262d;
            border-radius: 4px;
            overflow-x: auto;
            overflow-y: hidden;
            position: relative;
            border: 1px dashed #30363d;
        }

        /* 水平滚动条美化 */
        .tape-viewport::-webkit-scrollbar {
            height: 10px;
        }
        .tape-viewport::-webkit-scrollbar-track {
            background: #161b22;
        }
        .tape-viewport::-webkit-scrollbar-thumb {
            background: #30363d;
            border-radius: 5px;
        }
        .tape-viewport::-webkit-scrollbar-thumb:hover {
            background: var(--accent-cyan);
        }

        .tape-track {
            position: relative;
            height: 40px;
            top: 45%;
            transform: translateY(-50%);
            background: #f0f4f8;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
        }

        /* 下部画布区 */
        .canvas-container {
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
        }

        canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
        }

        /* 控制面板内的文本和组件元素 */
        h1 {
            font-size: 22px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 5px;
            text-shadow: 0 0 10px rgba(0,240,255,0.3);
        }

        .subtitle {
            font-size: 12px;
            color: #8b949e;
            margin-bottom: 30px;
        }

        .param-group {
            margin-bottom: 25px;
            background: rgba(255,255,255,0.03);
            padding: 15px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .param-label {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            margin-bottom: 10px;
            color: #e6edf3;
            align-items: center;
        }

        .param-value {
            color: var(--accent-cyan);
            font-weight: bold;
            font-family: monospace;
        }

        input[type="range"] {
            width: 100%;
            -webkit-appearance: none;
            background: #21262d;
            height: 6px;
            border-radius: 3px;
            outline: none;
        }

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

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

        .btn-container {
            margin-top: auto;
            padding-top: 20px;
            display: flex;
            gap: 12px;
        }

        button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        #startBtn {
            background: linear-gradient(135deg, #00f0ff, #0072ff);
            color: #fff;
            box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
        }

        #startBtn:hover:not(:disabled) {
            opacity: 0.9;
            box-shadow: 0 4px 20px rgba(0, 240, 255, 0.6);
        }

        #resetBtn {
            background: #21262d;
            color: #c9d1d9;
            border: 1px solid var(--border-color);
        }

        #resetBtn:hover {
            background: #30363d;
            color: #fff;
        }

        button:disabled {
            background: #21262d !important;
            color: #484f58 !important;
            cursor: not-allowed;
            box-shadow: none !important;
        }

        .info-panel {
            margin-top: 25px;
            font-size: 12px;
            color: #8b949e;
            line-height: 1.6;
            border-left: 2px solid var(--accent-cyan);
            padding-left: 10px;
        }

        /* 纸带标点与刻度 */
        .dot-marker {
            position: absolute;
            width: 5px;
            height: 5px;
            background: #111111;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }
        
        .scale-line {
            position: absolute;
            border-left: 1px solid #777777;
            height: 8px;
            bottom: 0;
        }
        .scale-text {
            position: absolute;
            font-size: 9px;
            color: #444444;
            bottom: 10px;
            transform: translateX(-50%);
            font-family: monospace;
        }

        /* LaTeX 行内降级兜底样式 */
        .latex-fallback {
            font-family: 'Times New Roman', Times, serif;
            font-style: italic;
            font-weight: bold;
        }