/* 主题风格通知样式 */
.notification-area {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  pointer-events: none;
}

.notification-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 10px;
  box-shadow:
    0 4px 20px rgba(102, 126, 234, 0.15),
    0 2px 8px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 移除复杂的边框动画 */

/* 成功通知样式由 notification-colors.css 处理 */

/* 错误通知样式由 notification-colors.css 处理 */

/* 警告通知样式由 notification-colors.css 处理 */

/* 信息通知样式由 notification-colors.css 处理 */

.notification-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 成功通知文字样式由 notification-colors.css 处理 */

.notification-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.notification-message {
  color: #1e293b;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.5px;
}

/* 成功通知消息样式由 notification-colors.css 处理 */

.notification-item.warning .notification-message {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 通知图标 */
.notification-item.success .notification-title::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.notification-item.error .notification-title::before {
  content: '✕';
  width: auto;
  height: auto;
  background: none;
  color: #ef4444;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

.notification-item.warning .notification-title::before {
  content: '⚠';
  width: auto;
  height: auto;
  background: none;
  color: #f59e0b;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.notification-item.info .notification-title::before {
  content: 'ℹ';
  width: auto;
  height: auto;
  background: none;
  color: #3b82f6;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
}

/* 动画效果 */
@keyframes notificationSlideIn {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translateX(-5px) scale(1.02);
    opacity: 0.8;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes notificationSlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
}

.notification-item.removing {
  animation: notificationSlideOut 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* 移除所有复杂的发光动画 */

/* 移动端适配 */
@media (max-width: 768px) {
  .notification-area {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    max-width: 95%;
    width: 95%;
  }

  .notification-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .notification-message {
    font-size: 16px;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .notification-area {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    max-width: 98%;
    width: 98%;
  }

  .notification-item {
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .notification-message {
    font-size: 15px;
    font-weight: 600;
  }
}

/* 特殊通知样式 */
.notification-item.bet-success {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.notification-item.lottery-result {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.notification-item.balance-update {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 通知内容增强 */
.notification-item .notification-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-item .notification-details {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 500;
}

.notification-item .notification-amount {
  font-weight: 700;
  color: #059669;
  text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1);
}

.notification-item .notification-time {
  font-size: 11px;
  color: #94a3b8;
  opacity: 0.9;
  font-weight: 500;
}