@primary-color: #2152d1;
@text-color: #303133;

// 遮罩层
.update-notification-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;

  &.show {
    opacity: 1;
  }
}

.update-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);

  &.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  &-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #fff;
  }

  &-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: @text-color;
    flex: 1;
  }

  &-icon {
    font-size: 20px;
    color: @primary-color;
  }

  &-close {
    font-size: 16px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;

    &:hover {
      color: @text-color;
      background: rgba(0, 0, 0, 0.06);
    }

    &:active {
      transform: scale(0.95);
    }
  }

  &-content {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.8;
    color: @text-color;

    /* 自定义滚动条样式 */
    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-track {
      background: #f5f5f5;
    }

    &::-webkit-scrollbar-thumb {
      background: #d9d9d9;
      border-radius: 3px;
      transition: background 0.2s;

      &:hover {
        background: #bfbfbf;
      }
    }

    /* Markdown 样式 */
    h1, h2, h3, h4, h5, h6 {
      color: @text-color;
      font-weight: 600;
      margin-top: 0;
    }

    h2 {
      font-size: 16px;
      margin-bottom: 16px;
      border-bottom: 1px solid #f0f0f0;
      padding-bottom: 8px;
    }

    h3 {
      font-size: 15px;
      margin: 16px 0 12px;
      color: #333;
    }

    ul {
      list-style-type: disc;
      padding-left: 24px;
      margin: 8px 0;
    }

    li {
      color: #595959;
      margin: 6px 0;
      line-height: 1.8;
    }

    a {
      color: @primary-color;
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }

    img {
      max-width: 100%;
      border-radius: 4px;
      margin: 12px 0;
      display: block;
    }

    strong {
      color: @primary-color;
      font-weight: 600;
    }

    hr {
      border: none;
      border-top: 1px solid #f0f0f0;
      margin: 16px 0;
    }
  }

  &-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    gap: 12px;
  }

  &-button {
    min-width: 80px;
    padding: 8px 24px;
    background: @primary-color;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
      background: #1a42a8;
    }

    &:active {
      transform: scale(0.98);
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .update-notification {
    width: 95vw;
    max-height: 85vh;
    
    &-content {
      padding: 20px 16px;
    }
    
    &-footer {
      padding: 12px 16px;
    }
  }
}


