/* 更新弹窗样式 - 简约淡粉风格 */
#update-notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* 极淡的白色遮罩 */
  backdrop-filter: blur(2px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#update-notification-overlay.show {
  opacity: 1;
}

#update-notification-overlay.fade-out {
  opacity: 0;
}

#update-notification-modal {
  background: #ffffff;
  border: 2px solid #ffe4e1; /* 极淡粉色边框 */
  border-radius: 16px;
  width: 85%;
  max-width: 340px; /* 宽度稍微减小 */
  box-shadow: 0 5px 20px rgba(255, 182, 193, 0.15); /* 轻微的粉色阴影 */
  position: relative;
  overflow: visible;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
  from {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 右上角装饰图片 - 调整大小和位置以适应简约风格 */
.update-decoration-img {
  position: absolute;
  top: -45px;
  right: -15px;
  width: 80px; /* 缩小图片 */
  height: auto;
  z-index: 10;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.1));
  opacity: 0.9;
}

.update-notification-header {
  padding: 15px 15px 5px;
  text-align: center;
  /* 移除底部边框，保持简约 */
}

.update-title {
  font-size: 18px; /* 减小标题字号 */
  font-weight: 700;
  color: #ffb7c5; /* 淡粉色文字 */
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.update-subtitle {
  font-size: 12px;
  color: #eeaeca;
  font-weight: normal;
  background: transparent; /* 移除背景色 */
  display: inline-block;
}

.update-notification-body {
  padding: 10px 20px 5px; /* 减少内边距 */
  max-height: 200px; /* 限制高度，防止太长 */
  overflow-y: auto;
}

.update-content {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

/* 更新内容分隔线 - 显眼的过渡样式 */
.update-divider {
  margin: 15px 0 12px;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffb7c5;
  position: relative;
  letter-spacing: 1px;
}

.update-divider::before,
.update-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffc0cb, transparent);
}

.update-divider::before {
  left: 0;
}

.update-divider::after {
  right: 0;
}

.update-item {
  padding: 6px 8px; /* 更加紧凑 */
  margin-bottom: 4px;
  background: transparent;
  border-bottom: 1px solid #fff0f5; /* 极细的分隔线 */
  border-radius: 0;
  position: relative;
  padding-left: 15px;
}

.update-item:last-child {
  border-bottom: none;
}

/* 重要提示样式 */
.update-item.important-note {
  background: linear-gradient(to right, #fff5f7, transparent);
  border-left: 3px solid #ffc0cb;
  padding-left: 12px;
  font-weight: 500;
  color: #ff69b4;
  margin-bottom: 6px;
}

.update-item.important-note::before {
  display: none;
}

.update-item.tips {
  background: #fafafa;
  border-left: 3px solid #e0e0e0;
  padding-left: 12px;
  color: #888;
  font-size: 12px;
  margin-bottom: 8px;
}

.update-item.tips::before {
  display: none;
}

/* 简约圆点列表样式 */
.update-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 4px;
  height: 4px;
  background-color: #ffb7c5;
  border-radius: 50%;
}

.update-notification-footer {
  padding: 12px 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-btn {
  width: 100%;
  padding: 8px 0; /* 减小按钮高度 */
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.update-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 简约淡粉色按钮 */
.update-btn-primary {
  background: #ffc0cb; /* Pink */
  color: #fff;
  box-shadow: none; /* 移除3D阴影 */
}

.update-btn-primary.enabled:hover {
  background: #ffb6c1; /* LightPink */
  transform: translateY(-1px);
}

.update-btn-secondary {
  background: transparent;
  color: #b0b0b0; /* 灰色文字，降低视觉干扰 */
  font-size: 12px;
}

.update-btn-secondary.enabled:hover {
  color: #ffb7c5;
  background: transparent;
}

/* 滚动条样式 */
.update-notification-body::-webkit-scrollbar {
  width: 4px;
}

.update-notification-body::-webkit-scrollbar-thumb {
  background: #ffe4e1;
  border-radius: 4px;
}

/* 响应式微调 */
@media (max-width: 480px) {
  #update-notification-modal {
    width: 80%;
  }
  
  .update-decoration-img {
    width: 70px;
    top: -35px;
    right: -10px;
  }
}
