/* ===================================
   Global Styles - Star-UI
   Shared variables, resets, and utilities
   =================================== */

/* ===== CSS Variables ===== */
:root {
  /* Colors - Modern neutral palette */
  --color-bg: #0D0D0D;
  --color-bg-secondary: #1A1A1A;
  --color-text: #FFFFFF;
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #666666;
  --color-accent: #FF3366;
  --color-border: #2A2A2A;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Layout */
  --container-width: 1400px;
  --nav-height: 80px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 隐藏滚动条但保持滚动功能 */
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 浏览器的滚动条 (Chrome, Safari, Opera) */
body::-webkit-scrollbar {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utility Classes ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Animation utilities */
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Breakpoints ===== */
/* Tablet and below */
@media (max-width: 991px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}
