            body, html {
                height: 100%;
                background-color: black;
                color: white;
                margin: 0;
                overflow: hidden;
            }
 
            body, #box, #top {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
            }

            #box {
                color: #aaa;
                height: 20em;
                width: 30em;
                max-width: 80%;
                max-height: 80%;
                background-color: #333;
                border-radius: 0.4em;
                border: 2px solid #555;
                position: relative;
                flex-direction: column;
                transition-duration: 0.2s;
                overflow: hidden;
                font-family: monospace;
                font-weight: bold;
                font-size: 20px;
                margin: 5px;
                text-align: center;
                padding: 10px;
            }

            #box:hover, #box[drag] {
                border-color: #1AAFFF;
                color: #ddd;
            }

            #input {
                cursor: pointer;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
            }

            #display {
                width: 100%;
                height: 100%;
            }

            select, button {
                padding: 0.6em 0.4em;
                margin: 0.5em;
                width: 15em;
                max-width: 100%;
                font-family: monospace;
                font-weight: bold;
                font-size: 16px;
                background-color: #444;
                color: #aaa;
                border-radius: 0.4em;
                border: 1px solid #555;
                cursor: pointer;
                transition-duration: 0.2s;
            }

            select:hover, button:hover {
                background-color: #666;
                color: #ddd;
            }

            .logo {
                width: 130px;
                height: 130px;
                filter: drop-shadow(0 0 8px white);
            }

            #top {
                margin: 5px;
            }

            #loading-container {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.8);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                z-index: 1000;
            }

            #loading-spinner {
                width: 50px;
                height: 50px;
                border: 5px solid rgba(255, 255, 255, 0.3);
                border-radius: 50%;
                border-top-color: #1AAFFF;
                animation: spin 1s linear infinite;
                margin-bottom: 20px;
            }

            #loading-text {
                font-family: monospace;
                font-size: 18px;
                color: #ddd;
            }
            
            #starting-text {
                font-family: monospace;
                font-size: 30px;
                color: #ddd;
            }

            @keyframes spin {
                to { transform: rotate(360deg); }
            }
            
            /* 新增启动页样式 */
            #splash-screen {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-image: url('https://www.jlgames.cn/static/miniGame/images/bg4.jpg');
                background-size: cover;
                background-position: center;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                z-index: 1000;
                transition: opacity 0.5s ease-out;
            }
            
            #splash-content {
                text-align: center;
                padding: 20px;
                background: rgba(0, 0, 0, 0.7);
                border-radius: 15px;
                max-width: 90%;
                margin-top: 20%;
            }
            
            #splash-content h2 {
                color: #fff;
                font-size: 2rem;
                margin-bottom: 20px;
                text-shadow: 0 0 10px rgba(0,0,0,0.5);
            }
            
            #start-button {
                padding: 15px 50px;
                font-size: 1.5rem;
                background: linear-gradient(to bottom, #ff6600, #cc5200);
                color: white;
                border: none;
                border-radius: 50px;
                cursor: pointer;
                box-shadow: 0 5px 15px rgba(0,0,0,0.3);
                transition: all 0.3s ease;
                font-weight: bold;
                letter-spacing: 2px;
                text-transform: uppercase;
            }
            
            #start-button:hover {
                background: linear-gradient(to bottom, #ff7700, #ff5500);
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(0,0,0,0.4);
            }
            
            #start-button:active {
                transform: translateY(1px);
            }
            
            #game-title {
                color: #ffcc00;
                font-size: 2.5rem;
                margin-top: 0;
                margin-bottom: 10px;
                text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
            }
            
            /* 隐藏原内容直到点击开始 */
            .content-hidden {
                display: none;
            }
            
            #loading-spinner {
                border: 8px solid #f3f3f3;
                border-top: 8px solid #3498db;
                border-radius: 50%;
                width: 60px;
                height: 60px;
                animation: spin 2s linear infinite;
            }
            
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }

        #container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        #container.show {
            opacity: 1;
        }

        #container ruffle-player {
            flex-shrink: 0;
            width: 100%;
            height: 100%;
        }

            