/* ── 地理名片模块（亮色玻璃风，独立样式，零侵入 index.css）── */

/* 中间过渡带：功能卡片与关于区之间的圆形按钮（紧凑，不撑高原区域） */
.geo-card-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 1rem 0.75rem;
}

.geo-dice-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(0, 104, 255, 0.22);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(7, 19, 66, 0.16);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  outline: none;
}

.geo-dice-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 18px 42px rgba(0, 104, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.geo-dice-btn:active {
  transform: scale(0.95);
}

.geo-dice-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 223, 246, 0.5), 0 12px 30px rgba(7, 19, 66, 0.16);
}

.geo-dice-btn .geo-dice {
  width: 34px;
  height: 34px;
  color: var(--accent-strong, #0068ff);
  animation: geo-spin 6s linear infinite;
  transform-origin: 50% 50%;
}

.geo-dice-btn:hover .geo-dice {
  animation-duration: 0.8s;
}

.geo-dice-btn.is-active .geo-dice {
  animation-duration: 0.3s;
}

@keyframes geo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.geo-dice-btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}

.geo-band-hint {
  font-size: 13px;
  color: var(--ink, #07132f);
  opacity: 0.55;
  letter-spacing: 0.02em;
}

/* 浮层 */
.geo-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 66, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.geo-modal-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.geo-modal {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(7, 19, 66, 0.22);
  padding: 14px;
  max-width: 94vw;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.geo-modal-mask.is-open .geo-modal {
  transform: translateY(0) scale(1);
}

.geo-modal canvas {
  display: block;
  border-radius: 10px;
  width: 360px;
  max-width: 86vw;
  height: auto;
  box-shadow: 0 10px 30px rgba(7, 19, 66, 0.18);
}

.geo-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.geo-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.geo-btn:active { transform: scale(0.97); }

.geo-btn-primary {
  background: var(--accent-strong, #0068ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.28);
}

.geo-btn-ghost {
  background: rgba(7, 19, 66, 0.06);
  color: var(--ink, #07132f);
}

/* 城市输入 fallback 表单 */
.geo-city-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  max-width: 86vw;
  padding: 6px 4px 2px;
}

.geo-city-form label {
  font-size: 14px;
  color: var(--ink, #07132f);
  opacity: 0.8;
}

.geo-city-form input {
  border: 1px solid rgba(7, 19, 66, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink, #07132f);
  outline: none;
}

.geo-city-form input:focus {
  border-color: var(--accent-strong, #0068ff);
  box-shadow: 0 0 0 3px rgba(0, 223, 246, 0.35);
}

.geo-error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(7, 19, 66, 0.9);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}

.geo-error-toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
