/* ============================================
   魔力仙境
   ============================================ */

/* ============================================
   页面加载动画
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1f4068 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: loaderSpin 1.5s ease-in-out infinite;
}

.loader-ring:nth-child(1) {
  border-top-color: var(--c-primary);
  animation-delay: 0s;
}

.loader-ring:nth-child(2) {
  inset: 8px;
  border-right-color: var(--c-magic);
  animation-delay: 0.15s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  inset: 16px;
  border-bottom-color: var(--c-secondary);
  animation-delay: 0.3s;
}

@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--c-light);
  background: #0a0a1a;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   背景层 - 梦幻星空
   ============================================ */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--g-sky);
  overflow: hidden;
}

/* 背景图片层 */
.video-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg/bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.9;
  mask-image: linear-gradient(to top, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

/* 极光效果层 */
.video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-aurora);
  animation: auroraShift 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auroraShift {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.35;
    transform: translateY(-10px) scale(1.01);
  }
}

/* 星星层 */
.stars-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 浮动光点容器（由 JS 生成 .floating-orb） */
.orbs-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkleStar 3s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes twinkleStar {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 浮动光点 */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  z-index: 1;
}

.orb-blue {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(127, 214, 255, 0.7) 0%, transparent 70%);
  box-shadow: 0 0 15px rgba(127, 214, 255, 0.4);
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-pink {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.7) 0%, transparent 70%);
  box-shadow: 0 0 12px rgba(255, 182, 193, 0.4);
  animation: floatOrb 15s ease-in-out infinite reverse;
}

.orb-gold {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.7) 0%, transparent 70%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  animation: floatOrb 18s ease-in-out infinite;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-15px) translateX(8px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-25px) translateX(-5px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-10px) translateX(10px);
    opacity: 0.7;
  }
}

/* ============================================
   顶部导航
   ============================================ */
.navbar-custom {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 56px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-custom::before,
.navbar-custom::after {
  display: none;
}

.navbar-custom:hover {
  background: rgba(20, 20, 30, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 8px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.navbar-logo {
  height: 32px;
  width: auto;
  filter: brightness(1);
  transition: all 0.2s ease;
  opacity: 0.9;
}

.navbar-logo:hover {
  opacity: 1;
  filter: brightness(1.1);
  transform: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  position: relative;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.nav-link::before,
.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.98);
}

/* ============================================
   主区域
   ============================================ */
.content {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--navbar-height) + 60px) 20px 6vh;
  text-align: center;
  z-index: 10;
}

/* LOGO光晕背景 */
.logo-glow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
}

/* 柔和光晕 */
.logo-glow-wrapper::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse 55% 45% at center,
    rgba(127, 214, 255, 0.55) 0%,
    rgba(200, 162, 255, 0.4) 35%,
    rgba(255, 182, 193, 0.2) 55%,
    transparent 75%
  );
  opacity: 0;
  transform: scale(0.5);
  animation: glowReveal 2s ease-out 0.5s forwards;
  pointer-events: none;
}

@keyframes glowReveal {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* LOGO 底部光晕 */
.logo-glow-wrapper::after {
  content: '';
  position: absolute;
  bottom: -15%;
  width: 70%;
  height: 35%;
  background: radial-gradient(
    ellipse at center,
    rgba(127, 214, 255, 0.5) 0%,
    rgba(200, 162, 255, 0.35) 40%,
    transparent 70%
  );
  filter: blur(25px);
  opacity: 0;
  animation:
    glowFadeIn 2s ease-out 1s forwards,
    glowPulse 4s ease-in-out 3s infinite;
  pointer-events: none;
}

@keyframes glowFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

/* LOGO 模糊渐显 + 缩放 */
.hero-logo {
  width: min(700px, 85vw);
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  filter: blur(30px) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.4));
  transform: scale(0.85);
  animation:
    logoReveal 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards,
    floatBreath 6s ease-in-out 4.5s infinite,
    logoShimmer 8s ease-in-out 5s infinite;
}

/* 移除overflow限制，避免方块边界 */
.logo-glow-wrapper .hero-logo {
  position: relative;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    filter: blur(40px) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.4));
    transform: scale(0.8);
  }
  35% {
    opacity: 0.7;
    filter: blur(12px) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.4));
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.5));
    transform: scale(1);
  }
  /* 爆发冲击点 */
  65% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 80px rgba(255, 255, 255, 0.9))
      drop-shadow(0 10px 60px rgba(127, 214, 255, 0.8))
      drop-shadow(0 20px 80px rgba(200, 162, 255, 0.7)) brightness(1.25);
    transform: scale(1.08);
  }
  80% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
      drop-shadow(0 10px 50px rgba(127, 214, 255, 0.6))
      drop-shadow(0 20px 70px rgba(200, 162, 255, 0.5)) brightness(1.1);
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.5))
      drop-shadow(0 20px 60px rgba(200, 162, 255, 0.4));
    transform: scale(1);
  }
}

/* LOGO 呼吸动画 */
@keyframes floatBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.01);
  }
}

/* LOGO 彩虹流光效果 - 高级光影变化 */
@keyframes logoShimmer {
  0% {
    filter: blur(0) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.5))
      drop-shadow(0 20px 60px rgba(200, 162, 255, 0.4)) brightness(1);
  }
  25% {
    filter: blur(0) drop-shadow(0 10px 50px rgba(255, 182, 193, 0.6))
      drop-shadow(0 20px 70px rgba(127, 214, 255, 0.5)) brightness(1.08);
  }
  50% {
    filter: blur(0) drop-shadow(0 10px 55px rgba(200, 162, 255, 0.65))
      drop-shadow(0 20px 75px rgba(255, 215, 0, 0.4))
      drop-shadow(0 0 40px rgba(255, 255, 255, 0.25)) brightness(1.12);
  }
  75% {
    filter: blur(0) drop-shadow(0 10px 50px rgba(127, 214, 255, 0.6))
      drop-shadow(0 20px 70px rgba(255, 182, 193, 0.5)) brightness(1.06);
  }
  100% {
    filter: blur(0) drop-shadow(0 10px 40px rgba(127, 214, 255, 0.5))
      drop-shadow(0 20px 60px rgba(200, 162, 255, 0.4)) brightness(1);
  }
}

/* ============================================
   按钮容器 - 横向布局
   ============================================ */
.button-container {
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  position: relative;
  top: -20px;
}

/* 垂直分割线 */
.divider-vertical {
  width: 1px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(127, 214, 255, 0.5),
    rgba(200, 162, 255, 0.5),
    transparent
  );
  position: relative;
  align-self: center;
}

.divider-vertical::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(127, 214, 255, 0.8);
}

/* ============================================
   二维码区域
   ============================================ */
.qr-holo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.qr-holo-box {
  width: 120px;
  height: 120px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.qr-holo-box::before {
  display: none;
}

.qr-holo-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qr-holo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* 扫描线动画 */
.scan-line {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(127, 214, 255, 0.8),
    rgba(200, 162, 255, 0.8),
    transparent
  );
  opacity: 0;
  box-shadow: 0 0 15px rgba(127, 214, 255, 0.8);
  pointer-events: none;
  border-radius: 2px;
  transition:
    opacity 0.3s ease,
    top 0.3s ease;
}

.qr-holo-box:hover .scan-line {
  opacity: 0.8;
  animation: scanMove 2.5s linear infinite;
}

@keyframes scanMove {
  0% {
    top: 10px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 13px);
    opacity: 0;
  }
}

/* ============================================
   按钮样式
   ============================================ */
.ro-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 150px;
  padding: 0 32px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ro-btn span {
  position: relative;
  z-index: 2;
}

/* 悬停扫光效果 */
.ro-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.ro-btn:hover::before {
  left: 100%;
}

.ro-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(255, 255, 255, 0.05);
}

.ro-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 按钮组布局 */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 320px;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* 按钮：游戏下载 */
.ro-btn.btn-download {
  height: 58px;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, rgba(255, 140, 100, 0.25) 0%, rgba(255, 100, 130, 0.3) 100%);
  border: 1px solid rgba(255, 150, 120, 0.4);
  color: #fff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 0 25px rgba(255, 130, 100, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 下载按钮彩虹边框动画 */
.ro-btn.btn-download::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #ff6b9d, #7fd6ff, #ffd700);
  background-size: 300% 300%;
  animation: borderGlow 4s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0.6;
  z-index: -1;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.ro-btn.btn-download:hover {
  background: linear-gradient(135deg, rgba(255, 140, 100, 0.4) 0%, rgba(255, 100, 130, 0.5) 100%);
  border-color: rgba(255, 150, 120, 0.6);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    0 0 40px rgba(255, 120, 100, 0.35);
}

/* 按钮：加群 */
.ro-btn.btn-join {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: rgba(127, 200, 255, 0.1);
  border-color: rgba(127, 200, 255, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(127, 200, 255, 0.1);
}

.ro-btn.btn-join:hover {
  background: rgba(127, 200, 255, 0.2);
  border-color: rgba(127, 200, 255, 0.45);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.15),
    0 0 35px rgba(127, 200, 255, 0.25);
}

/* 按钮：资料 */
.ro-btn.btn-data {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: rgba(180, 150, 255, 0.1);
  border-color: rgba(180, 150, 255, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(180, 150, 255, 0.1);
}

.ro-btn.btn-data:hover {
  background: rgba(180, 150, 255, 0.2);
  border-color: rgba(180, 150, 255, 0.45);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.15),
    0 0 35px rgba(180, 150, 255, 0.25);
}

/* 隐藏旧样式 */
.ro-btn.btn-icon-qr {
  display: none;
}

/* ============================================
   悬浮挂件
   ============================================ */
.promo-float-ad {
  position: fixed;
  top: 18%;
  right: 30px;
  z-index: 900;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

/* 互动模式下移除固定动画，由 JS 控制 */
.promo-float-ad.poring-interactive {
  animation: none;
  transition: none;
}

/* 默认的呼吸动画（JS 未加载时的后备） */
.promo-float-ad:not(.poring-interactive) {
  animation: poringBounce 3s ease-in-out infinite;
}

/* 弹跳动画 */
@keyframes poringBounce {
  0%,
  100% {
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  15% {
    transform: translateY(0) scaleY(0.92) scaleX(1.08);
  }
  30% {
    transform: translateY(-20px) scaleY(1.06) scaleX(0.96);
  }
  50% {
    transform: translateY(-25px) scaleY(1) scaleX(1);
  }
  70% {
    transform: translateY(-15px) scaleY(1.03) scaleX(0.98);
  }
  85% {
    transform: translateY(0) scaleY(0.95) scaleX(1.04);
  }
}

.promo-float-ad a {
  display: block;
  position: relative;
  cursor: inherit;
}

.promo-float-ad img {
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(255, 182, 193, 0.4));
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

/* 拖拽中状态 */
.promo-float-ad.poring-dragging {
  cursor: grabbing;
}

.promo-float-ad.poring-dragging img {
  transform: scale(1.1);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 25px rgba(255, 182, 193, 0.6));
}

/* 反弹效果 - 轻微晃动 */
.promo-float-ad.poring-bounce img {
  animation: gentleShake 0.3s ease-out;
}

@keyframes gentleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

/* 点击反应效果 - 轻微跳跃 */
.promo-float-ad.character-react img {
  animation: gentleJump 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gentleJump {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(-12px);
  }
  70% {
    transform: translateY(0);
  }
  85% {
    transform: translateY(-4px);
  }
}

/* hover 效果 */
.promo-float-ad:not(.poring-dragging):hover img {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(255, 182, 193, 0.6))
    drop-shadow(0 0 50px rgba(127, 214, 255, 0.4));
}

/* 装饰光点 - 金色星星 */
.promo-float-ad::before {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
  pointer-events: none;
}

/* 装饰光点 - 蓝色星星 */
.promo-float-ad::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #7fd6ff 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 2.5s ease-in-out infinite 0.5s;
  pointer-events: none;
}

/* 粉色光点 - 通过 a 标签添加 */
.promo-float-ad a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffb6c1 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite 1s;
  pointer-events: none;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* ============================================
   弹窗美化
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 90vw;
}

.modal-head {
  background: linear-gradient(135deg, rgba(127, 214, 255, 0.8) 0%, rgba(200, 162, 255, 0.8) 100%);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-qr {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.modal-tip {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width: 768px) {
  .navbar-custom {
    width: 100%;
    top: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-inner {
    justify-content: center;
  }

  .content {
    padding-top: 100px;
  }

  .hero-logo {
    width: 90vw;
    margin-bottom: 30px;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 80%;
    max-width: 300px;
    top: -15px;
  }

  .button-group {
    width: 100%;
  }

  .divider-vertical {
    width: 60%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(127, 214, 255, 0.5),
      rgba(200, 162, 255, 0.5),
      transparent
    );
  }

  .divider-vertical::before {
    display: none;
  }

  .btn-row {
    flex-direction: row;
    gap: 10px;
  }

  /* 移动端按钮统一样式 */
  .ro-btn.btn-download,
  .ro-btn.btn-join,
  .ro-btn.btn-data {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .ro-btn.btn-download {
    width: 100%;
  }

  .ro-btn.btn-join,
  .ro-btn.btn-data {
    flex: 1;
    min-width: 0;
  }

  /* 移动端隐藏下载按钮的彩虹边框 */
  .ro-btn.btn-download::after {
    display: none;
  }

  /* 移动端下载按钮颜色 */
  .ro-btn.btn-download {
    background: linear-gradient(135deg, rgba(255, 120, 80, 0.9) 0%, rgba(255, 80, 110, 0.9) 100%);
    border: 1px solid rgba(255, 150, 120, 0.6);
  }

  /* 移动端加群按钮颜色 */
  .ro-btn.btn-join {
    background: rgba(45, 125, 210, 0.9);
    border: 1px solid rgba(80, 160, 255, 0.6);
    box-shadow: 0 4px 16px rgba(45, 125, 210, 0.4);
  }

  /* 移动端资料按钮颜色 */
  .ro-btn.btn-data {
    background: rgba(120, 80, 200, 0.9);
    border: 1px solid rgba(160, 120, 255, 0.6);
    box-shadow: 0 4px 16px rgba(120, 80, 200, 0.4);
  }

  .qr-holo-box {
    width: 120px;
    height: 120px;
  }

  .promo-float-ad {
    display: none;
  }
}

/* ============================================
   底部版权
   ============================================ */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px;
  text-align: center;
}

.footer-content {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.footer-content span {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-content:hover span {
  opacity: 1;
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .hero-logo {
    width: 95vw;
  }

  .ro-btn.btn-download,
  .ro-btn.btn-join,
  .ro-btn.btn-data {
    height: 50px !important;
    font-size: 0.95rem !important;
  }

  .ro-btn.btn-download {
    letter-spacing: 2px;
  }
}

/* ============================================
   波利气泡组件
   ============================================ */
.poring-speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px) scale(0.8);
  width: max-content;
  max-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(127, 214, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 910;
  pointer-events: none;
  margin-bottom: -10px;
}

/* 气泡内容布局 */
.bubble-content {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bubble-icon {
  font-size: 1.2rem;
  line-height: 1.2;
}

.bubble-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-dark, #2c3e50);
  font-weight: 600;
  text-align: left;
}

.bubble-text .sub-text {
  font-size: 12px;
  color: var(--c-accent-warm, #e91e63);
  display: block;
  margin-top: 1px;
}

/* 气泡小三角 */
.poring-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 0 2px 0;
}

/* 激活状态 */
.promo-float-ad.show-bubble .poring-speech-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px) scale(1);
}

/* === 智能位置变体：显示在下方 === */
.promo-float-ad.bubble-pos-bottom .poring-speech-bubble {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: -10px;
  border-bottom-left-radius: 16px;
  border-top-left-radius: 4px;
}

.promo-float-ad.bubble-pos-bottom .poring-speech-bubble::after {
  top: -6px;
  bottom: auto;
  border-bottom: none;
  border-right: none;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px 0 0 0;
}

/* === 下方位置激活状态：向上移动靠近人物 === */
.promo-float-ad.bubble-pos-bottom.show-bubble .poring-speech-bubble {
  transform: translateX(-50%) translateY(-8px) scale(1);
}
