@import url('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/tailwindcss/2.2.19/tailwind.min.css');

body {
    background-color: #f3f4f6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.preview-item {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preview-item img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-item a {
    display: block;
    background-color: #3b82f6;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.preview-item a:hover {
    background-color: #2563eb;
}

#colorPreview {
    transition: transform 0.2s;
}

#colorPreview:hover {
    transform: scale(1.1);
}

#processButton {
    width: 100%;
}

#previewContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 在文件末尾添加以下样式 */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .processing-loader {
    display: none;
    margin-top: 10px;
  }

/* 添加以下样式到文件末尾 */
#pasteArea span {
    color: #3b82f6 !important; /* 使用 !important 来确保这个样式会被应用 */
    font-weight: normal; /* 可选：使文字加粗 */
}

#pasteArea:hover span {
    color: #2563eb !important; /* 鼠标悬停时的颜色变化 */
}

/* 添加响应式布局样式 */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #processButton, #resetButton {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  #watermarkDensity, #watermarkColor, #watermarkSize {
    font-size: 0.875rem;
  }

  .preview-item img {
    max-width: 100%;
    height: auto;
  }
}

/* 优化按钮布局 */
.button-container {
  display: flex;
  width: 100%;
}

.process-button {
  flex: 1.618;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* 这行很重要，允许按钮在必要时缩小 */
}

.reset-button {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* 这行很重要，允许按钮在必要时缩小 */
}

/* 针对移动设备的样式 */
@media (max-width: 640px) {
  .process-button, .reset-button {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* 优化预览区域布局 */
#imagePreviewArea {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

#imagePreviewArea img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* 添加到文件末尾 */
select:disabled {
    appearance: none;
    background-color: #f3f3f3;
    color: #999;
    cursor: not-allowed;
}

/* 修改按钮组样式 */
.button-group {
  display: flex;
  margin-top: 0.5rem;
}

.download-button, .copy-button {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.download-button {
  background-color: #3b82f6;
  border-radius: 0.25rem 0 0 0.25rem;
}

.copy-button {
  background-color: #1f2937; /* 黑色背景 */
  border-radius: 0 0.25rem 0.25rem 0;
}

.download-button:hover {
  background-color: #2563eb;
}

.copy-button:hover {
  background-color: #111827; /* 深一点的黑色 */
}

/* 删除复制按钮的左边距 */
.copy-button {
  margin-left: 0;
}

/* 添加 Toast 样式 */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
}

/* 添加到文件末尾 */
.email-link {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 添加新的样式 */
.step-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0; /* 允许容器在必要时缩小 */
}

.step-circle {
  width: 4rem;
  height: 4rem;
  background-color: #3b82f6;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  min-height: 1.5em;
}

.step-detail {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
  min-height: 1.4em;
}

.step-line {
  flex: 1;
  position: relative;
  max-width: 100px;
}

.step-line::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #93c5fd;
}

/* 响应式设计 */
@media (max-width: 640px) {
  .step-container {
    padding: 0 0.5rem;
  }
  
  .step-circle {
    width: 3rem;
    height: 3rem;
  }
  
  .step-title {
    font-size: 1rem;
    min-height: 1.2em;
  }
  
  .step-detail {
    font-size: 0.75rem;
    min-height: 1.2em;
  }
  
  .step-line {
    max-width: 40px;
  }
}
