body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

.game-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    width: 600px;
    position: relative;
}

h1 {
    color: #FF6B6B;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 2rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    min-width: 80px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.9);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #FF6B6B;
}

#gameCanvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    background-color: rgba(248, 249, 250, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.12),         /* 外阴影 */
        0 0 20px rgba(255, 255, 255, 0.9),       /* 外发光 */
        0 0 0 1px rgba(255, 255, 255, 0.5);      /* 边缘光晕 */
    backdrop-filter: blur(8px);
    position: relative;
}

/* 修改边缘发光效果 */
#gameCanvas::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7),                /* 增强顶部边亮度 */
        rgba(255, 255, 255, 0.3)                 /* 底部边缘稍微暗一些 */
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.instructions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 600px) {
    .game-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
} 

.game-content {
    flex: 1;
} 

/* 微调上下键的位置 */
.key-row:first-child,
.key-row:last-child {
    position: relative;
    top: 2px;
} 

.game-layout {
    position: relative;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-left: 1rem;
}

.control-panel {
    margin-top: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 0 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.panel-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
}

.stats-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.panel-right {
    padding: 0.5rem;
    margin-right: 3rem;
}

.direction-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
    justify-content: space-between;
}

.middle-row {
    display: flex;
    gap: 1rem;
}

#startBtn {
    cursor: pointer;
    transition: all 0.2s;
    color: #FF6B6B;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    outline: none;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.15);
}

#startBtn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.2);
}

#startBtn:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 0 4px rgba(0, 0, 0, 0.04);
}

#startBtn:focus {
    outline: none;
}

#pauseBtn {
    cursor: pointer;
    transition: all 0.2s;
    color: #4ECDC4;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    width: 65px;
    height: 65px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.15);
}

#pauseBtn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.2);
}

#pauseBtn:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 0 4px rgba(0, 0, 0, 0.04);
}

#pauseBtn:focus {
    outline: none;
}

.dir-btn {
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.15);
}

.dir-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 0 5px rgba(0, 0, 0, 0.05),
        -2px -2px 5px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.2);
}

.dir-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 0 4px rgba(0, 0, 0, 0.04);
}

/* 暂停键特殊样式 */
#pauseBtn {
    color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
    font-weight: 600;
}
</```
rewritten_file>