/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background-color: rgb(115, 176, 144);
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* AR场景全屏 */
a-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* 手势识别画布 (叠加层) */
.gesture-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none; /* 不阻挡AR交互 */
}

/* 手势提示框 */
.gesture-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 3;
    text-align: center;
    max-width: 80%;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .gesture-info {
        font-size: 12px;
        padding: 10px 15px;
        bottom: 10px;
    }
    /* 隐藏移动端不必要的元素 */
    a-scene canvas {
        touch-action: none; /* 防止移动端触摸缩放冲突 */
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .gesture-info {
        font-size: 12px;
        padding: 10px 15px;
        bottom: 10px;
    }
    /* 隐藏移动端不必要的元素 */
    a-scene canvas {
        touch-action: none; /* 防止移动端触摸缩放冲突 */
    }
}

/* 加载提示样式（补充，之前没定义） */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    text-align: center;
    font-size: 16px;
}