// 全局重置
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Microsoft YaHei', '微软雅黑', sans-serif;
  background: #f3f4f6;
  min-height: 100vh;
  color: $gray-900;
  font-size: 14px;
  line-height: 1.5;
}

#app {
  min-height: 100vh;
}

a {
  color: $primary;
  text-decoration: none;
  transition: color 0.2s;

  &:hover {
    color: $primary-hover;
  }
}

// 布局通用类（服务监测 / 服务管理）
.layout-monitor,
.layout-manage {
  min-height: 100vh;
}

.main-content {
  margin-left: 200px;
  padding: 84px 24px 28px;
  min-height: 100vh;
  transition: margin-left 0.3s;

  @media screen and (max-width: 768px) {
    margin-left: 0;
    padding: 72px 12px 24px;
  }
}

// 通用容器
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

// 响应式断点（与现有模板一致）
$breakpoint-tablet: 768px;
$breakpoint-mobile: 480px;

// 滚动条样式优化
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: $gray-100;
}

::-webkit-scrollbar-thumb {
  background: $gray-300;
  border-radius: 4px;

  &:hover {
    background: $gray-400;
  }
}
