/**
 * PageBuilder 基础样式
 * 包含CSS变量、全局样式和基础布局
 */

:root {
  --primary-color: #667eea;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #f8f9fa;
  --border-color: #e9ecef;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 25px rgba(102, 126, 234, 0.15);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
}

body.page-design {
  background-color: #f8f9fa;
  padding: 0;
  margin: 0;
  font-size: 14px;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.design-box {
  display: flex;
  height: 100vh;
  background: #fff;
}

/* 基础动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar-edit-wrap {
    width: 100%;
  }
  
  .module-edit {
    padding: 0 10px 14px;
  }
  
  .device-switch {
    flex-direction: column;
    gap: 8px;
  }
  
  .device-switch .device-wrap {
    width: 100%;
    justify-content: center;
  }
  
  .navbar {
    padding: 8px 16px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
} 