/* ===== H5 中转页样式（z.wturi.com 风格：渐变+涟漪+弹跳+呼吸）===== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100vh; width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
  background-attachment: fixed;
  color: #fff; font-size: 13px; line-height: 1.4;
  overflow-x: hidden;
}

/* ===== SSL 安全提示条 ===== */
.ssl-bar {
  width: 100%; padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px; color: rgba(255, 255, 255, 0.9);
  text-align: center; position: relative; z-index: 2;
}
.ssl-bar-icon { display: inline-block; margin-right: 4px; vertical-align: middle; }

/* ===== 主容器 ===== */
#app-root {
  min-height: calc(100vh - 30px); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px 80px; position: relative; z-index: 1;
}

/* ===== 圆形图标容器 + 涟漪动画 ===== */
.icon-wrapper {
  position: relative; width: 80px; height: 80px;
  margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
}
.circular-icon-container {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative; z-index: 2; overflow: hidden;
}
.circular-icon-container img {
  width: 44px; height: 44px; object-fit: contain; display: block;
}
.circular-icon-container .default-icon { font-size: 36px; line-height: 1; }

/* 4 层涟漪 */
.ripple {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6);
  animation: ripple 2s infinite ease-out; z-index: 1; pointer-events: none;
}
.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 0.5s; }
.ripple-3 { animation-delay: 1s; }
.ripple-4 { animation-delay: 1.5s; }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ===== 弹跳入场动画 ===== */
.bounce-in {
  animation: high-velocity-bounce 0.8s ease-out 1, pop-effect 0.6s ease-out 1;
}
@keyframes high-velocity-bounce {
  0% { transform: translateY(-100px); }
  60% { transform: translateY(10px); }
  80% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
@keyframes pop-effect {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 文案区 ===== */
.content-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #fff; text-align: center; }
.content-desc { font-size: 13px; opacity: 0.9; margin: 0 0 16px; color: #fff; text-align: center; line-height: 1.5; }
.action-area { display: none; animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 加载状态 ===== */
.loading-dots::after { content: "…"; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots {
  0%, 20% { content: ""; } 40% { content: "·"; }
  60% { content: "··"; } 80%, 100% { content: "···"; }
}

/* ===== 居中轻提示 ===== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 200; padding: 12px 24px; background: rgba(0, 0, 0, 0.82); color: #fff;
  border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== 底部固定补充按钮 ===== */
#bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@supports not (backdrop-filter: blur(12px)) { #bottom-bar { background: rgba(6, 173, 86, 0.92); } }
#bottom-bar .bb-btn {
  width: 100%; height: 40px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.2s;
  background: #07C160; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#bottom-bar .bb-btn:active { transform: scale(0.97); }
#bottom-bar .bb-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#bottom-bar .bb-btn.is-loading { opacity: 0.7; }

/* 呼吸动画 */
.breathe { animation: breathe 2s infinite ease-in-out; }
.breathe-paused { animation-play-state: paused; }
@keyframes breathe {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.05); }
}

/* 高亮（自动跳转失败时阴影增强） */
#bottom-bar .bb-btn.is-highlight {
  box-shadow: 0 4px 20px rgba(7, 193, 96, 0.8);
  animation: breathe 1s infinite ease-in-out;
}

/* ===== 降级：不支持动画的旧浏览器 ===== */
@supports not (animation: ripple) {
  .ripple { display: none; }
  .bounce-in { animation: none; }
  .breathe { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple, .bounce-in, .breathe, #bottom-bar .bb-btn.is-highlight { animation: none; }
  .action-area { animation: none; }
}
