body { margin: 0; overflow: hidden; }
.nav-bar {
  position: absolute; top:20px; left:20px; z-index:200;
  display:flex; gap:12px; background:rgba(0,0,0,0.7);
  padding:8px 16px; border-radius:50px;
}
.nav-btn {
  background:#222; color:#d4af37; border:1px solid #d4af37;
  padding:6px 18px; border-radius:30px; cursor:pointer;
}
.nav-btn.active {
  background:#d4af37; color:#000;
}
#info-panel {
  position: absolute; top:20px; right:20px; z-index:100;
  background:rgba(0,0,0,0.7); color:#fff; padding:8px 16px; border-radius:30px;
}
#loading-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background:#0a1030; display:flex; justify-content:center; align-items:center;
  color:#d4af37; z-index:9999;
}
/* 音频开启按钮 */
#audioBtn{
  position:fixed; bottom:30px; left:30px; z-index:9999;
  padding:10px 20px; background:#d4af37; color:#000;
  border:none; border-radius:8px; font-size:16px; cursor:pointer;
}
/* 对话弹窗 */
#lion-dialog {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  background: rgba(0,0,0,0.9);
  color: #ffd700;
  padding: 16px 30px;
  border-radius: 12px;
  font-size: 18px;
  z-index: 9999;
  display: none;
  border: 2px solid #ffd700;
  text-align: center;
  font-weight: bold;
}
/* 答题弹窗 */
.quiz-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  background: #111;
  color: #fff;
  padding: 16px; /* 内边距缩小 */
  border-radius: 12px;
  border: 2px solid #d4af37;
  z-index: 10000;
  display: none;
  width: 320px; /* 整体宽度改小 */
}
.quiz-question {
  font-size: 15px; /* 题目字号缩小 */
  margin-bottom: 12px;
  line-height: 1.5;
}
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #222;
  color: #fff;
  border: 1px solid #d4af37;
  padding: 7px 12px; /* 按钮内边距缩小 */
  margin: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px; /* 选项字号缩小 */
}
.quiz-option:hover {
  background: #333;
}
.score-box {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 16px;
  z-index: 200;
}
/* 通用提示弹窗 */
.tip-modal, .guide-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(90deg) ;
  background: #111;
  color: #ffd700;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px 40px;
  font-size: 18px;
  text-align: center;
  z-index: 10001;
  display: none;
}
/* 通关弹窗 */
.finish-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(90deg);
  background: #111;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 30px 40px;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  z-index: 10002;
  display: none;
  max-width: 500px;
}
/* 连线题弹窗 */
.link-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)rotate(90deg);
   transform-origin: center center;
  background: #111;
  color: #fff;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 24px;
  z-index: 10002;
  display: none;
  width: 600px;
  height: 420px;
}
.link-title {
  font-size: 20px;
  color: #ffd700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}
.link-wrap {
  display: flex;
  justify-content: space-between;
  height: 240px;
  position: relative;
}
.link-col {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.link-item {
  padding: 10px;
  border: 1px solid #666;
  border-radius: 6px;
  text-align: center;
  cursor: grab;
  user-select: none;
}
.link-item:active {
  cursor: grabbing;
}
.link-item.active {
  border-color: #ffd700;
  background: #222;
}
.link-item.used {
  opacity: 0.4;
  cursor: not-allowed;
}
.link-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.link-btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.link-btn {
  padding: 8px 20px;
  border: 1px solid #ffd700;
  background: #222;
  color: #ffd700;
  border-radius: 6px;
  cursor: pointer;
}
.link-btn:hover {
  background: #333;
}
/* VR手柄射线样式 */
.aframe-raycaster-line {
  color: #d4af37 !important;
  opacity: 0.8;
}
/* 适配iOS A-Frame 实体点击 */
a-entity {
  cursor: pointer !important;
  /* 禁用苹果触摸高亮 */
  -webkit-tap-highlight-color: transparent;
  /* 优先响应触摸，禁止浏览器手势劫持 */
  touch-action: manipulation !important;
}
/* 页面按钮/弹窗通用兼容 */
.nav-btn, #audioBtn, .quiz-option, .link-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}