/* ═══════════════════════════════════════════════
   kukuhalu.com V2.0 — 共享 UI 组件样式
   ═══════════════════════════════════════════════ */

/* ── 音频控制按钮（喇叭） ── */
.audio-ctrl-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.audio-ctrl-btn:active {
  transform: scale(0.92);
}
.audio-ctrl-btn:hover {
  border-color: rgba(255,255,255,0.3);
}

/* ── 分支选择倒计时进度环 ── */
.branch-auto-ring {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 24px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
}
.branch-auto-ring svg {
  display: block;
}
.branch-auto-ring .ring-text {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── 选项按钮高亮动效 ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(255,255,255,0.15); }
  50%      { box-shadow: 0 0 16px rgba(255,179,71,0.5), 0 0 32px rgba(255,179,71,0.15); }
}
.choice-btn.pulse-active {
  animation: pulse-glow 1.8s ease-in-out infinite;
}

/* ── 分享弹窗 ── */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.share-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.share-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px 20px;
  max-width: 320px;
  width: 88vw;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.share-card .share-title {
  color: #e8e0d4;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.share-card .share-qr {
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.share-card .share-code {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  letter-spacing: 3px;
  padding: 4px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.share-card .share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.share-card .share-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}
.share-card .share-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.share-card .share-btn.copy-success {
  background: rgba(76,175,80,0.2);
  border-color: rgba(76,175,80,0.5);
  color: #81c784;
}
.share-card .share-legal {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.share-card .share-close {
  margin-top: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  cursor: pointer;
}

/* ── 分享浮动按钮（右下角） ── */
.share-float-btn {
  position: fixed;
  bottom: 82px;
  right: 22px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(20,20,20,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.share-float-btn:hover {
  border-color: rgba(255,179,71,0.5);
  color: rgba(255,179,71,0.85);
  background: rgba(30,25,15,0.85);
  box-shadow: 0 0 18px rgba(255,179,71,0.15);
  transform: scale(1.06);
}
.share-float-btn:active {
  transform: scale(0.92);
}

/* ── 响应式 ── */
@media (max-width: 600px) {
  .audio-ctrl-btn {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .share-float-btn {
    bottom: 72px;
    right: 18px;
    width: 38px;
    height: 38px;
  }
  .share-card {
    padding: 24px 18px 16px;
    max-width: 300px;
  }
}


/* ==================== 故事页引导提示气泡 ==================== */
.story-guide-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 250;
  padding: 12px 22px;
  border-radius: 24px;
  background: rgba(30,25,15,0.88);
  border: 1px solid rgba(255,179,71,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(255,179,71,0.08);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}
.story-guide-hint.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.story-guide-hint-emoji {
  margin-right: 4px;
}
.story-guide-hint:active {
  transform: translateX(-50%) scale(0.95);
}

@media (max-width: 480px) {
  .story-guide-hint {
    bottom: 20px;
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 20px;
    max-width: 85vw;
    white-space: normal;
    text-align: center;
  }
}
