* {
            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%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow: hidden;
        }

        .game-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 50px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            max-width: 900px;
            width: 100%;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .game-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .game-title {
            font-size: 3em;
            font-weight: 700;
            background: linear-gradient(45deg, #fd79a8, #e84393);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .game-subtitle {
            color: #636e72;
            font-size: 1.2em;
            font-weight: 500;
        }

        .game-canvas {
            border: 3px solid #fd79a8;
            border-radius: 15px;
            background: linear-gradient(45deg, #2d3436, #636e72);
            display: block;
            margin: 0 auto 20px;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(0, 0, 0, 0.2);
        }

        .game-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #74b9ff, #0984e3);
            padding: 15px 25px;
            border-radius: 15px;
            color: white;
            font-weight: 600;
            box-shadow: 0 5px 15px rgba(116, 185, 255, 0.3);
        }

        .info-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px;
        }

        .info-label {
            font-size: 0.9em;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .info-value {
            font-size: 1.3em;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .game-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .control-btn {
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .control-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .btn-start {
            background: linear-gradient(45deg, #fd79a8, #e84393);
            color: white;
        }

        .btn-pause {
            background: linear-gradient(45deg, #fdcb6e, #e17055);
            color: white;
        }

        .btn-restart {
            background: linear-gradient(45deg, #6c5ce7, #a29bfe);
            color: white;
        }

        .instructions {
            background: rgba(116, 185, 255, 0.1);
            border: 2px solid rgba(116, 185, 255, 0.3);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
        }

        .instructions h3 {
            color: #0984e3;
            margin-bottom: 15px;
            font-size: 1.3em;
            text-align: center;
        }

        .control-guide {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            color: #2d3436;
        }

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

        kbd {
            background: linear-gradient(145deg, #74b9ff, #0984e3);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-family: monospace;
            font-size: 0.9em;
            font-weight: bold;
            box-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            min-width: 60px;
            text-align: center;
        }

        .message {
            text-align: center;
            padding: 20px;
            border-radius: 15px;
            margin: 15px 0;
            font-weight: bold;
            font-size: 1.2em;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .message.show {
            display: block;
            animation: messageSlide 0.5s ease-out;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.game-over {
            background: linear-gradient(45deg, #fab1a0, #e17055);
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .message.level-complete {
            background: linear-gradient(45deg, #55efc4, #00b894);
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .message.paused {
            background: linear-gradient(45deg, #fdcb6e, #e17055);
            color: white;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* 粒子动画效果 */
        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #fd79a8;
            border-radius: 50%;
            pointer-events: none;
            animation: particle-float 2s ease-out forwards;
        }

        @keyframes particle-float {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-100px) scale(0);
            }
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 20px;
                margin: 10px;
            }

            .game-title {
                font-size: 2.2em;
            }

            .game-canvas {
                width: 100%;
                height: auto;
            }

            .game-info {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }

            .control-guide {
                grid-template-columns: 1fr;
            }
        }