// CSS变量定义 - 这些变量会被JavaScript动态设置
:root {
  --screen-width: 5120px;
  --screen-height: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow: auto;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: $bg-primary;
  color: $text-primary;
  user-select: none;
  margin: 0;
  padding: 0;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

// 全局背景动画
@keyframes backgroundShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

// 卡片样式现在由BaseCard组件统一管理

// 数据显示样式
.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid $border-secondary;
  
  &:last-child {
    border-bottom: none;
  }
  
  .label {
    color: $text-secondary;
    font-size: 12px;
  }
  
  .value {
    color: $text-primary;
    font-size: 14px;
    font-weight: 600;
  }
}

// 标题样式
.main-title {
  font-size: 24px;
  font-weight: 700;
  background: $gradient-primary;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: 2px;
}

// 状态指示器
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  
  &.online {
    background: $accent-green;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  }
  
  &.offline {
    background: $accent-red;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  }
  
  &.warning {
    background: $accent-orange;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  }
}

// 动画效果
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s $animation-easing;
}

.pulse {
  animation: pulse 2s infinite;
}

// 响应式适配相关样式已移至各组件内部 