/* ============================================================
   style.css — 页面 UI 样式（图例 / 弹窗 / 加载提示）
   说明：只负责外观布局，不涉及 Three.js 渲染逻辑。
   改颜色、位置、大小只改本文件。
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  background: #f0f0f0;
}

canvas {
  display: block;
}

/* 顶部左侧：加载 / 状态提示 */
#info {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
  font-size: 14px;
  color: #222;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

/* 左侧：经络图例 */
#legend {
  position: absolute;
  top: 56px;
  left: 12px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 10;
  font-size: 13px;
  line-height: 1.8;
  color: #222;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

#legend .item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#legend .dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  flex: none;
}

/* 右侧：穴位详情弹窗 */
#panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 260px;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  z-index: 10;
  font-size: 14px;
  color: #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: none;
}

#panel h3 {
  margin-bottom: 8px;
  color: #c0392b;
  padding-right: 20px;
}

#panel .close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  line-height: 1;
}

#panel .meta {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
