/* SVIP升级模态框样式文件 */
/* 独立样式文件，不影响原有样式 */

/* 模态框遮罩层 */
.svip-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 模态框容器 - 红色渐变喜庆风格 */
.svip-modal-container {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #ff6b6b 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(255, 75, 43, 0.5), 0 0 100px rgba(255, 107, 107, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: slideUpBounce 0.5s ease-out;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(50px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 烟花装饰背景 */
.svip-modal-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
  background-size: 50px 50px, 80px 80px, 60px 60px, 70px 70px;
  animation: sparkle 3s linear infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: rotate(180deg);
  }
}

/* 关闭按钮 - 白色半透明 */
.svip-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 10;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

.svip-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* 模态框内容 */
.svip-modal-content {
  padding: 40px 30px;
  padding-top: 50px; /* 为关闭按钮留出空间 */
  position: relative;
  z-index: 2;
}

/* 烟花图标装饰 */
.svip-modal-fireworks {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.svip-modal-firework {
  position: absolute;
  font-size: 30px;
  animation: fireworkFloat 2s ease-in-out infinite;
  opacity: 0.8;
}

.svip-modal-firework:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.svip-modal-firework:nth-child(2) {
  top: 15%;
  right: 15%;
  animation-delay: 0.3s;
}

.svip-modal-firework:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 0.6s;
}

.svip-modal-firework:nth-child(4) {
  bottom: 15%;
  right: 10%;
  animation-delay: 0.9s;
}

@keyframes fireworkFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
}

/* 模态框标题 - 白色文字，加粗，带阴影 */
.svip-modal-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 25px 0;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 模态框消息 - 白色文字 */
.svip-modal-message {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.8;
  margin: 0 0 30px 0;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

/* 模态框信息（用于显示子账户和IP数量） */
.svip-modal-info {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.svip-modal-info p {
  margin: 10px 0;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.svip-modal-info strong {
  color: #ffd700;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 模态框操作按钮区域 */
.svip-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* 模态框按钮 - 金色渐变，喜庆风格 */
.svip-modal-btn {
  padding: 16px 40px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 180px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.svip-modal-btn-confirm {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #d32f2f;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.svip-modal-btn-confirm::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.svip-modal-btn-confirm:hover::before {
  left: 100%;
}

.svip-modal-btn-confirm:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}

.svip-modal-btn-confirm:active {
  transform: translateY(-1px) scale(1.02);
}

/* 响应式设计 */
@media (max-width: 600px) {
  .svip-modal-container {
    width: 95%;
    margin: 20px;
    border-radius: 15px;
  }

  .svip-modal-content {
    padding: 30px 20px;
    padding-top: 45px;
  }

  .svip-modal-title {
    font-size: 24px;
  }

  .svip-modal-message {
    font-size: 15px;
  }

  .svip-modal-btn {
    padding: 14px 30px;
    font-size: 16px;
    min-width: 150px;
  }
}

