body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;  /* 改为min-height确保内容不足时也能撑满屏幕 */
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    /* 移除或修改以下两行 */
    /* height: auto !important; */
    /* overflow-y: auto !important; */
    touch-action: auto;
}

.scene {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    margin: 50px auto;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    opacity: 0.9;
    box-sizing: border-box;
    user-select: none;
}

.front {
    background: rgba(255, 0, 0, 0.7);
    transform: translateZ(100px);
}

.back {
    background: rgba(0, 255, 0, 0.7);
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    background: rgba(0, 0, 255, 0.7);
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    background: rgba(255, 255, 0, 0.7);
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    background: rgba(255, 0, 255, 0.7);
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    background: rgba(0, 255, 255, 0.7);
    transform: rotateX(-90deg) translateZ(100px);
}

.controls {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.status {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    height: 30px;
}

.instructions {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}