/* 视频转 GIF - 现代极简风格 */

/* Header */
.vg-header {
  text-align: center;
  margin-bottom: 24px;
}
.vg-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vg-desc {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Upload Dropzone */
.vg-dropzone {
  border: 2px dashed #ddd;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}
.vg-dropzone:hover,
.vg-dropzone.dragover {
  border-color: #1a1a1a;
  background: #f5f5f5;
}
.vg-drop-icon {
  color: #999;
  margin-bottom: 16px;
}
.vg-dropzone:hover .vg-drop-icon {
  color: #1a1a1a;
}
.vg-dropzone h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #333;
}
.vg-dropzone p {
  margin: 0;
  color: #666;
  font-size: 14px;
}
.vg-link {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 500;
}
.vg-formats {
  margin-top: 12px !important;
  font-size: 12px !important;
  color: #999 !important;
}

/* Video Preview */
.vg-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.vg-video-wrap video {
  width: 100%;
  display: block;
  max-height: 400px;
}

/* Trim Overlay */
.vg-trim-overlay {
  position: absolute;
  bottom: 48px;
  left: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  border-radius: 8px;
  padding: 12px;
}
.vg-trim-label {
  color: #fff;
  font-size: 12px;
  margin-bottom: 8px;
  text-align: center;
}
.vg-trim-bar {
  position: relative;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
}
.vg-trim-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}
.vg-trim-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.vg-trim-handle:active {
  cursor: grabbing;
}
.vg-trim-start { left: 0; }
.vg-trim-end { left: 100%; transform: translate(-50%, -50%); }

.vg-time-info {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  font-family: 'SF Mono', monospace;
}
.vg-trim-info {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
}

/* Settings */
.vg-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1a1a1a;
}
.vg-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .vg-settings-grid {
    grid-template-columns: 1fr;
  }
}
.vg-setting-item label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.vg-input-wrap,
.vg-select-wrap {
  position: relative;
}
.vg-input-wrap input,
.vg-select-wrap select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.vg-input-wrap input:focus,
.vg-select-wrap select:focus {
  outline: none;
  border-color: #1a1a1a;
}
.vg-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #999;
}
.vg-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #999;
}

/* Toggle */
.vg-setting-item.vg-full {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.vg-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.vg-toggle-wrap input {
  display: none;
}
.vg-toggle-slider {
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}
.vg-toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.vg-toggle-wrap input:checked + .vg-toggle-slider {
  background: #1a1a1a;
}
.vg-toggle-wrap input:checked + .vg-toggle-slider::after {
  transform: translateX(20px);
}
.vg-toggle-label {
  font-size: 13px;
  color: #333;
}

/* Convert Button */
.vg-convert-btn {
  width: 100%;
  padding: 14px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.vg-convert-btn:hover {
  background: #333;
  transform: translateY(-1px);
}
.vg-convert-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Progress */
.vg-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.vg-progress-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.vg-progress-percent {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.vg-progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.vg-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1a1a1a, #444);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.vg-progress-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* Result */
.vg-result-preview {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.vg-result-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.vg-result-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .vg-result-info {
    grid-template-columns: repeat(2, 1fr);
  }
}
.vg-info-item {
  text-align: center;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}
.vg-info-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.vg-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.vg-result-actions {
  display: flex;
  gap: 12px;
}
.vg-download-btn,
.vg-restart-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.vg-download-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
}
.vg-download-btn:hover {
  background: #333;
}
.vg-restart-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
.vg-restart-btn:hover {
  background: #f5f5f5;
}

/* Guide */
.vg-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .vg-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .vg-guide-grid {
    grid-template-columns: 1fr;
  }
}
.vg-guide-item {
  text-align: center;
  padding: 20px 16px;
  background: #fafafa;
  border-radius: 12px;
}
.vg-guide-num {
  width: 32px;
  height: 32px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 12px;
}
.vg-guide-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.vg-guide-item p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Tips */
.vg-tips {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 3px solid #1a1a1a;
}
.vg-tips h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.vg-tips ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #444;
  line-height: 1.8;
}
.vg-tips li {
  margin-bottom: 4px;
}
