/* Rotate 页面特定样式 */
.rotate-preview-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.rotate-preview-wrapper {
  width: 100%;
  max-width: 600px;
  height: 400px;
  background-color: #f3f4f6;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.rotate-preview-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.icon-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s;
  padding: 0;
}

.icon-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.control-divider {
  width: 1px;
  height: 24px;
  background-color: #e5e7eb;
  margin: 0 8px;
}

/* 按钮样式复用 */
.secondary-button {
  background-color: #9ca3af;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-button:hover {
  background-color: #6b7280;
}

.save-button.success-color {
  background-color: #52c41a;
}

.save-button.success-color:hover {
  background-color: #389e0d;
}

/* 响应式 */
@media (max-width: 640px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .control-group {
    justify-content: space-between;
    width: 100%;
  }

  .icon-btn-group {
    justify-content: center;
    width: 100%;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-buttons button {
    width: 100%;
    margin: 0 !important;
  }
}
