* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
    box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  width: 100%;
  margin: 20px auto;
    color: #333;
}
.container *{
    box-sizing: border-box;
}
header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

/* 主内容区 */
.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.left-panel {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.right-panel {
  width: 550px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 面板标题 */
.panel-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f2f3;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 上传区域 */
.upload-area {
  border: 3px dashed #3498db;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  background: #f8fafc;
  margin-bottom: 25px;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-area:hover {
  background: #e8f4fe;
  border-color: #2980b9;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: #3498db;
}

.upload-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #34495e;
}

.upload-hint {
  color: #7f8c8d;
  font-size: 0.95rem;
}

.file-input {
  display: none;
}

/* 参数设置区域 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.setting-item input[type="color"] {
  height: 40px;
  padding: 3px;
  width: 150px;
  vertical-align: middle;
}

.setting-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.setting-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #3498db;
}

input:checked+.slider:before {
  transform: translateX(24px);
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-generate {
  background: #3498db;
  color: white;
}

.btn-generate:hover {
  background: #2980b9;
}

.btn-download {
  background: #2ecc71;
  color: white;
}

.btn-download:hover {
  background: #27ae60;
}

.btn-preview {
  background: #9b59b6;
  color: white;
}

.btn-preview:hover {
  background: #8e44ad;
}

.btn-clear {
  background: #e74c3c;
  color: white;
}

.btn-clear:hover {
  background: #c0392b;
}

/* 图片列表 */
.image-list {
  max-height: 550px;
  overflow-y: auto;
  padding-right: 10px;
}

.image-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.image-item:hover {
  background: #f1f8ff;
  border-color: #d1e7ff;
}

.image-item.dragging {
  opacity: 0.6;
  background: #e3f2fd;
}

.image-preview {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  margin-right: 10px;
  background: #fff;
  border: 1px solid #eee;
}

.image-info {
  flex: 1;
}

.image-name {
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 270px;
}

.image-delay {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delay-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.drag-handle {
  font-size: 1.5rem;
  cursor: move;
  margin: 0 15px;
  color: #7f8c8d;
}

.delete-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #e74c3c;
  transition: all 0.2s;
}

.delete-btn:hover {
  color: #c0392b;
  transform: scale(1.1);
}

/* 预览区域 */
#previewContainer{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gif-preview {
  max-width: 98%;
  max-height: 480px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  border: 1px solid #eee;
}

.placeholder {
  width: 100%;
  height: 550px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7f8c8d;
  border: 2px dashed #ddd;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  opacity: 0.6;
}

/* 底部区域 */
footer {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin: 10px auto;
  text-align: center;
}

.features {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature {
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  margin-bottom: 25px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-desc {
  color: #555;
  line-height: 1.6;
}
