/**
 * @file
 * 注册成功模态框样式
 */

/* 注册成功模态框 */
.register-success-modal {
  z-index: 9999 !important;
}

/* 成功图标 */
.register-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.register-success-icon svg {
  width: 100%;
  height: 100%;
}

/* 成功标题和消息 */
.register-success-title {
  font-size: 24px;
  font-weight: 600;
  color: #1D1D1F;
  text-align: center;
  margin: 0 0 12px;
}

.register-success-message {
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 32px;
  padding: 0 20px;
}

/* VIP升级卡片 */
.vip-upgrade-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFF7E6 100%);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 24px;
  margin: 0 20px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.vip-upgrade-card:hover {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

/* VIP卡片头部 */
.vip-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.vip-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.vip-card-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(255, 165, 0, 0.3));
}

.vip-card-title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* VIP卡片主体 */
.vip-card-body {
  margin-bottom: 20px;
}

.vip-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vip-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: #333;
}

.vip-benefit-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* VIP卡片底部 */
.vip-card-footer {
  text-align: center;
}

.vip-upgrade-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  color: #1D1D1F;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.vip-upgrade-btn:hover {
  background: linear-gradient(135deg, #FF7700 0%, #FFC700 100%);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
  transform: translateY(-2px);
}

/* 模态框底部按钮 */
.cart-modal-close-btn {
  flex: 1;
  padding: 14px 24px;
  background: white;
  color: #0066CC;
  border: 2px solid #0066CC;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.cart-modal-close-btn:hover {
  background: #F0F7FF;
  border-color: #0052A3;
}

.cart-checkout-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cart-checkout-btn:hover {
  background: linear-gradient(135deg, #0052A3 0%, #004080 100%);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

/* 禁止页面滚动 */
body.register-modal-open {
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .register-success-title {
    font-size: 20px;
  }

  .register-success-message {
    font-size: 14px;
  }

  .vip-upgrade-card {
    padding: 20px 16px;
    margin: 0 10px;
  }

  .vip-card-title {
    font-size: 18px;
  }

  .vip-benefit-item {
    font-size: 14px;
  }

  .cart-modal-close-btn,
  .cart-checkout-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .register-success-icon {
    width: 64px;
    height: 64px;
  }

  .vip-upgrade-card {
    padding: 16px 12px;
  }

  .vip-card-icon {
    width: 40px;
    height: 40px;
  }

  .cart-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cart-modal-close-btn {
    margin-right: 0;
    order: 2;
  }

  .cart-checkout-btn {
    order: 1;
  }
}
