/* 水陆通公共样式 - 所有前台页面共享 */
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
/* 防止 lucide 图标加载前后尺寸变化导致布局偏移 */
[data-lucide] { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.nav-link { border-bottom: 2px solid transparent; position: relative; overflow: hidden; }
.nav-link.active { color: #0369A1; border-bottom-color: #0369A1; background: rgba(3,105,161,0.04); }
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12); }
.toast { animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Wave animation */
.nav-waves { position: absolute; bottom: -14px; left: 0; right: 0; height: 16px; overflow: hidden; pointer-events: none; }
.nav-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 16px; }
.wave-1 { animation: waveSlide 4s linear infinite; opacity: 0.35; }
.wave-2 { animation: waveSlide 6s linear infinite reverse; opacity: 0.2; }
.wave-3 { animation: waveSlide 5s linear infinite; opacity: 0.12; animation-delay: -2s; }
@keyframes waveSlide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Ripple effect */
.nav-link .ripple {
  position: absolute; border-radius: 50%; background: rgba(3,105,161,0.2);
  transform: scale(0); animation: rippleAnim 0.6s ease-out forwards; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Nav subtle float - 已禁用，避免页面抖动 */
/* .nav-float { animation: navFloat 3s ease-in-out infinite; } */
@keyframes navFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-1, .wave-2, .wave-3 { animation: none !important; }
}

/* Login page wave background */
.login-wave-bg { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; pointer-events: none; overflow: hidden; }
.login-wave-bg svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.lw-1 { animation: waveSlide 8s linear infinite; opacity: 0.12; }
.lw-2 { animation: waveSlide 12s linear infinite reverse; opacity: 0.08; }

/* HOT badge bounce animation */
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-2px); } }

/* ============================================================
   微信支付弹窗样式
   ============================================================ */
.payment-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.payment-modal {
  background: #fff; border-radius: 12px; width: 420px;
  max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.payment-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 0;
}
.payment-modal-header h3 { margin: 0; font-size: 18px; }
.payment-modal-header .close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; padding: 4px 8px; }
.payment-modal-body { padding: 20px 24px; }
.payment-info { margin-bottom: 20px; }
.payment-info p { margin: 8px 0; font-size: 14px; }
.payment-info .amount { color: #e53e3e; font-size: 24px; }
.payment-info .text-muted { color: #94a3b8; font-size: 12px; }
.qr-section { text-align: center; margin: 20px 0; }
.qr-section canvas, .qr-section img { margin: 0 auto; }
.qr-hint { color: #666; font-size: 13px; margin-top: 12px; }
.section-divider { text-align: center; color: #ccc; font-size: 12px; margin: 20px 0; }
.h5-link-box { display: flex; gap: 8px; margin: 12px 0; }
.h5-link-box input { flex: 1; border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; font-size: 12px; }
.h5-link-box button { white-space: nowrap; padding: 8px 14px; background: var(--color-ocean-500, #0284C7); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; }
.expire-hint { text-align: center; color: #999; font-size: 12px; margin-top: 16px; }
.payment-modal-footer { padding: 16px 24px 20px; display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid #f0f0f0; }
.payment-modal-footer .btn-cancel { padding: 8px 16px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-size: 14px; }
.payment-modal-footer .btn-check { padding: 8px 16px; background: #059669; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.payment-modal-footer .btn-check:disabled { opacity: 0.6; cursor: not-allowed; }
.payment-modal .text-sm { font-size: 12px; }

/* ============================================================
   移动端菜单动画
   ============================================================ */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.3s ease;
}
#mobile-menu.mobile-menu-open {
  max-height: 80vh;
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
}
/* 遮罩淡入 */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}


