/* 3D 地球子页面 —— 视觉沿用站点护眼配色（变量来自 /assets/site.css） */
.globe-main { max-width: 1080px; }

.globe-sub { color: var(--ink-soft, #5b6b60); margin-top: .35rem; }
.globe-back-link { margin-top: .5rem; font-size: .9rem; }

.globe-stage {
  position: relative;
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 45, 37, .14);
  background: radial-gradient(ellipse at 50% 42%, #10201a 0%, #060d0b 70%);
  aspect-ratio: 16 / 10;
  min-height: 380px;
}

.globe-canvas-host,
.globe-canvas-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-canvas-host canvas { touch-action: none; cursor: grab; }
.globe-canvas-host canvas:active { cursor: grabbing; }

.globe-toolbar {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: flex;
  gap: .5rem;
  z-index: 2;
}

.globe-btn {
  border: 1px solid rgba(242, 247, 239, .28);
  background: rgba(6, 13, 11, .55);
  color: #e8efe9;
  border-radius: 999px;
  padding: .32rem .8rem;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.globe-btn:hover { background: rgba(6, 13, 11, .75); }
.globe-btn.is-on { border-color: rgba(146, 200, 150, .8); color: #d7ecda; }

.globe-hint {
  position: absolute;
  left: .9rem;
  bottom: .8rem;
  z-index: 2;
  margin: 0;
  font-size: .8rem;
  color: rgba(232, 239, 233, .75);
  pointer-events: none;
}

/* ---- 地理标注层（DOM 投影，pointer-events 穿透） ---- */
.globe-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.globe-label {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(236, 243, 236, .92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  will-change: transform;
}
.globe-label::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: .8;
}
.globe-label.continent { font-size: 15px; font-weight: 700; letter-spacing: .35em; color: rgba(240,248,238,.85); }
.globe-label.continent::before { display: none; }
.globe-label.ocean { font-size: 13px; letter-spacing: .3em; color: rgba(150,200,210,.8); font-style: italic; }
.globe-label.ocean::before { display: none; }
.globe-label.country { color: #ffe9a8; }
.globe-label.mountain { color: #f0c9a0; }
.globe-label.river { color: #9fd0e8; }
.globe-label.strait { color: #f2a9a0; }
.globe-label.dim { opacity: 0; }

@media (max-width: 640px) {
  .globe-stage { aspect-ratio: auto; height: 62vh; }
}
