.avif-converter-container {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', sans-serif;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* 简约控制面板 */
.converter-controls-minimal {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

/* 拖拽区域 */
.drop-zone-minimal {
  border-bottom: 1px solid #e0e0e0;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.drop-zone-minimal:hover {
  background: #fafafa;
  border-color: #ccc;
}

.drop-zone-minimal.dragover {
  background: #f0f8ff;
  border-color: #0066cc;
}

.upload-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.upload-icon {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.drop-zone-minimal:hover .upload-icon {
  opacity: 0.9;
  transform: translateY(-2px);
}

.upload-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.upload-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  opacity: 0.8;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 转换控制栏 */
.conversion-bar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.format-selector-minimal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.format-label {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.format-options {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.format-option-minimal {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.format-option-minimal:hover {
  background: #f5f5f5;
}

.format-option-minimal input[type="radio"] {
  display: none;
}

.format-radio {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.format-option-minimal input[type="radio"]:checked + .format-radio {
  border-color: #0066cc;
  background: #0066cc;
}

.format-option-minimal input[type="radio"]:checked + .format-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.format-text {
  font-size: 14px;
  color: #333;
  font-weight: 400;
  flex-shrink: 0;
}

/* 操作按钮 */
.action-buttons-minimal {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.action-buttons-minimal button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  letter-spacing: 0.3px;
  height: 36px;
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  box-sizing: border-box;
  justify-content: center;
}

.btn-convert-minimal {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
}

.btn-convert-minimal:hover:not(:disabled) {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-1px);
}

.btn-convert-minimal:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  border-color: #ccc;
  background: #ccc;
  color: #666;
}

.btn-download-minimal {
  background: #fff;
  color: #0066cc;
  border-color: #0066cc;
}

.btn-download-minimal:hover:not(:disabled) {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
  transform: translateY(-1px);
}

.btn-download-minimal:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  border-color: #ccc;
  color: #999;
  background: #fff;
}

.btn-clear-minimal {
  background: #fff;
  color: #666;
  border-color: #ddd;
}

.btn-clear-minimal:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
  transform: translateY(-1px);
}

/* 文件计数 */
.file-counter {
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  color: #666;
  background: #fff;
  border-top: 1px solid #f5f5f5;
  box-sizing: border-box;
  max-width: 100%;
}

.file-counter span {
  font-weight: 500;
  color: #0066cc;
}

/* 状态提示区域 */
.status-message-area {
  display: none; /* 默认隐藏 */
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-message-area.show {
  display: flex; /* 显示时使用flex布局 */
  opacity: 1;
  transform: translateY(0);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message-area.success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.status-message-area.warning {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.status-message-area.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.status-message-area.info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* 文件容器 - 默认隐藏，有文件时才显示 */
.files-container-minimal {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
  display: none;
}

.files-container-minimal.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.files-list-minimal {
  min-height: 100px;
  max-height: 500px;
  overflow-y: auto;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

/* 文件项 */
.file-item-minimal {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 12px;
}

.file-item-minimal:last-child {
  border-bottom: none;
}

.file-item-minimal:hover {
  background: #fafafa;
}

/* 文件信息 */
.file-info-minimal {
  flex: 1;
  margin: 0 20px 0 0;
  min-width: 0;
  max-width: calc(100% - 200px);
  box-sizing: border-box;
  overflow: hidden;
}

.file-name-minimal {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 400;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

.file-meta-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #999;
  align-items: center;
  max-width: 100%;
}

.file-size, .file-status {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
}

/* 状态指示器 */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  background: #fff;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.pending {
  background: #ffc107;
  animation: pulse 2s infinite;
}

.status-dot.converting {
  background: #0066cc;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-dot.success {
  background: #28a745;
}

.status-dot.error {
  background: #dc3545;
}

.status-indicator.pending {
  color: #ffc107;
  border-color: #ffeeba;
  background: #fff8e1;
}

.status-indicator.converting {
  color: #0066cc;
  border-color: #cce5ff;
  background: #f0f8ff;
}

.status-indicator.success {
  color: #28a745;
  border-color: #d4edda;
  background: #f1f9f4;
}

.status-indicator.error {
  color: #dc3545;
  border-color: #f8d7da;
  background: #fdf2f3;
}

/* 下载按钮 */
.download-btn-minimal {
  padding: 6px 12px;
  font-size: 12px;
  color: #0066cc;
  background: #fff;
  border: 1px solid #0066cc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.download-btn-minimal:hover {
  background: #0066cc;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.download-btn-minimal:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  background: #fff;
  color: #999;
  border-color: #ddd;
}

/* 简介区域 */
.description-section {
  margin-top: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  max-width: 100%;
  box-sizing: border-box;
}

.description-section h2 {
  font-size: 24px;
  color: #333;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.description-content {
  line-height: 1.6;
  color: #444;
  font-size: 15px;
}

.description-content p {
  margin: 0 0 20px 0;
}

.description-content h3 {
  font-size: 18px;
  color: #333;
  margin: 25px 0 12px 0;
  font-weight: 500;
  border-left: 3px solid #0066cc;
  padding-left: 10px;
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0 30px 0;
}

.feature-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: #d0d7e0;
}

.feature-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-item h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 500;
  border: none;
  padding: 0;
}

.feature-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 格式信息 */
.format-info {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.format-info h3 {
  font-size: 18px;
  color: #333;
  margin: 25px 0 12px 0;
  font-weight: 500;
  border-left: 3px solid #0066cc;
  padding-left: 10px;
}

.format-info p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.format-info ol {
  margin: 15px 0 20px 20px;
  padding: 0;
}

.format-info li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.browser-support {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
  border-left: 4px solid #0066cc;
}

.browser-support h3 {
  border: none;
  padding: 0;
  margin-top: 0;
}

.browser-support p {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .conversion-bar {
    padding: 16px;
  }
  
  .format-selector-minimal {
    gap: 8px;
  }
  
  .format-options {
    gap: 8px;
  }
  
  .format-option-minimal {
    padding: 6px 12px;
  }
  
  .action-buttons-minimal {
    gap: 6px;
  }
  
  .action-buttons-minimal button {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .file-item-minimal {
    padding: 12px 16px;
    gap: 8px;
  }
  
  .file-info-minimal {
    margin: 0 12px 0 0;
    max-width: calc(100% - 160px);
  }
  
  .file-name-minimal {
    font-size: 13px;
  }
  
  .file-meta-minimal {
    gap: 8px;
  }
  
  .status-indicator {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  .download-btn-minimal {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .drop-zone-minimal {
    padding: 40px 20px;
  }
  
  .upload-title {
    font-size: 16px;
  }
  
  .upload-subtitle {
    font-size: 13px;
  }
  
  .status-message-area {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .description-section {
    padding: 20px;
    margin-top: 30px;
  }
  
  .description-section h2 {
    font-size: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .feature-item {
    padding: 15px;
  }
  
  .description-content h3 {
    font-size: 16px;
  }
  
  .format-info h3 {
    font-size: 16px;
  }
  
  .description-content p,
  .format-info p,
  .format-info li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .conversion-bar {
    padding: 12px;
  }
  
  .format-label {
    font-size: 13px;
  }
  
  .format-option-minimal {
    padding: 5px 10px;
  }
  
  .format-text {
    font-size: 13px;
  }
  
  .action-buttons-minimal button {
    min-width: 80px;
    padding: 6px 10px;
    font-size: 11px;
    height: 32px;
  }
  
  .file-item-minimal {
    padding: 10px 12px;
  }
  
  .file-info-minimal {
    margin: 0 8px 0 0;
    max-width: calc(100% - 140px);
  }
  
  .file-name-minimal {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .file-meta-minimal {
    font-size: 11px;
  }
  
  .download-btn-minimal {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .drop-zone-minimal {
    padding: 30px 15px;
  }
  
  .upload-title {
    font-size: 15px;
  }
  
  .upload-subtitle {
    font-size: 12px;
  }
  
  .status-message-area {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .description-section {
    padding: 15px;
    margin-top: 20px;
  }
  
  .description-section h2 {
    font-size: 18px;
  }
  
  .feature-item {
    padding: 12px;
    gap: 12px;
  }
  
  .feature-item svg {
    width: 18px;
    height: 18px;
  }
  
  .feature-item h3 {
    font-size: 15px;
  }
  
  .feature-item p {
    font-size: 13px;
  }
  
  .browser-support {
    padding: 15px;
  }
}