
/* image_watermark_remover/frontend/styles.css */
/* 全局样式重置与基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9faff;
  overflow-x: hidden;
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #b8c2ff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e9dfd;
}

/* 全局文字选择样式 */
::selection {
  background: rgba(79, 70, 229, 0.2);
  color: #4338ca;
}

/* 粒子背景样式 */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 加载动画 */
.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3b82f6;
  animation: spinner 1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 加载状态样式 */
.loading-state {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-state.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 成功状态样式 */
.success-state {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-state.active {
  opacity: 1;
  transform: translateY(0);
}

/* 加载遮罩层样式 */
#overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

#loadingContainer {
  max-width: 300px;
  width: 100%;
  position: relative;
}

/* 状态切换动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* 成功图标动画 */
.success-icon {
  transform: scale(0.8);
  opacity: 0;
  animation: successIcon 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  animation-delay: 0.3s;
}

@keyframes successIcon {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 响应式调整 */
@media (max-width: 640px) {
  #loadingContainer {
    max-width: 90%;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}

/*提示选择框*/

.mask-dialog{
  width:100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  position: fixed;
  _position: absolute;
  pointer-events: auto;
}

.dialog-box{
  width: 80%;
  max-width: 300px;
  height: 190px;
  background-color: #ffffff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 10%;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
}
.dialog-box .dialog-btn{
  width: 100%;
  display: flex;
  display: -webkit-box;
  justify-content: space-between;
  text-align: center;
  border-top: 1px solid #e5e5e5;
  position: absolute;
  bottom: 0;
}
.dialog-box .dialog-btn .btnn{
  flex: 2;
  -webkit-flex: 2;
  -webkit-box-flex: 2;
  width: 1px;
  height: 42px;
  line-height: 42px;
  position: relative;
}
.dialog-box .dialog-btn .btn-left{
  border-right: 1px solid #e5e5e5;
  color: #4287FF;
}
.dialog-box .dialog-btn .btn-right{
  color: #F5445C;
}