// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  // 禁用移动端高亮
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-size: 14px;
  background-color: #f5f7fa;
  // 优化移动端滚动
  -webkit-overflow-scrolling: touch;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  
  &:hover {
    background: #a8a8a8;
  }
}

// 全局动画效果
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
}

// 通用样式类
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 24px;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }
  
  &:active {
    transform: translateY(0);
  }
}

// 移动端全局优化
@media (max-width: 768px) {
  // 隐藏滚动条 (Native feel)
  ::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
  }
  
  // 防止iOS输入框缩放
  input, textarea, select {
    font-size: 16px !important;
  }
  
  // 优化容器边距
  .container {
    padding: 0 16px;
  }
  
  // 优化卡片边距
  .card {
    padding: 16px;
  }
}