* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}


h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

.subtitle {
  font-size: 1rem;
  color: #7f8c8d;
}

.main-content {
  display: flex;
  gap: 20px;
}

.control-panel {
  flex: 1;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.preview-area {
  flex: 2;
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  min-height: 600px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f2f3;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
  border-color: #3498db;
  background: #e3f2fd;
}

.option-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-desc {
  color: #7f8c8d;
}

.upload-area {
  border: 3px dashed #bdc3c7;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  margin-top: 15px;
  background: #f8f9fa;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #3498db;
  background: #e3f2fd;
}

.upload-area p {
  margin: 5px 0;
  font-size: 1rem;
}

.btn {
  flex: 1;
  display: inline-block;
  padding: 15px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  margin: 10px 5px;
  box-shadow: 0 4px 6px rgba(50, 152, 219, 0.3);
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(50, 152, 219, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #3498db;
}

.btn-success {
  background: #2ecc71;
  box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
  background: #27ae60;
  box-shadow: 0 6px 8px rgba(46, 204, 113, 0.4);
}

.btn-warning {
  background: #f39c12;
  box-shadow: 0 4px 6px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
  background: #d35400;
  box-shadow: 0 6px 8px rgba(243, 156, 18, 0.4);
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.preview-item {
  width: calc(50% - 10px);
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.preview-header {
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.preview-content {
  padding: 15px;
  display: flex;
  gap: 15px;
}

.preview-image {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdc3c7;
}

.preview-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.no-preview {
  text-align: center;
  padding: 50px 20px;
  color: #999;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.no-preview p {
  margin: 20px 0;
}

.file-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.file-item {
  padding: 10px;
  border-bottom: 1px solid #f1f2f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-item:last-child {
  border-bottom: none;
}

.file-icon {
  font-size: 1.5rem;
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.file-size {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.instructions {
  background: #e3f2fd;
  border-left: 4px solid #3498db;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin-top: 15px;
}

.instructions h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #7f8c8d;
}

.processing-info {
  text-align: center;
  padding: 15px;
  background: #fff8e1;
  border-radius: 8px;
  margin: 20px 0;
  display: none;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #2ecc71;
  width: 0%;
  transition: width 0.3s;
}

/* 添加在现有样式后面 */
.notice-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
}

.notice {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
  max-width: 350px;
}

.notice-success {
  background-color: #2ecc71;
}

.notice-warning {
  background-color: #f39c12;
}

.notice-error {
  background-color: #e74c3c;
}

.notice-info {
  background-color: #3498db;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
