/* Modern CSS Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color System */
  --primary-50: #fdf2f8;
  --primary-100: #fce7f3;
  --primary-500: #ec4899;
  --primary-600: #db2777;
  --primary-700: #be185d;
  --primary-900: #831843;
  
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-brand {
  text-decoration: none;
}

.brand-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.025em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  transition: all var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
}

.btn-large {
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--primary-600);
  border: 2px solid var(--primary-200);
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Section - 卡片式居中布局 */
.hero {
  padding-top: 120px;
  padding-bottom: var(--space-24);
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.content-card {
  background: white;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  width: 100%;
  max-width: 750px;
  border: 1px solid var(--neutral-200);
}

.game-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 650px;
  border: 1px solid var(--neutral-200);
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--neutral-900);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--neutral-600);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-600);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Game Container */
.game-container {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--neutral-100);
  border-bottom: 1px solid var(--neutral-200);
}

.game-controls {
  display: flex;
  gap: var(--space-2);
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-dot.red { background: #ef4444; }
.control-dot.yellow { background: #f59e0b; }
.control-dot.green { background: #10b981; }

.game-title {
  font-weight: 600;
  color: var(--neutral-700);
  font-size: var(--font-size-sm);
}

.demo-badge {
  margin-left: 8px;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid #fce7f3;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.game-frame {
  aspect-ratio: 4/3;
  background: var(--neutral-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}



/* Sections */
.section {
  padding: var(--space-24) 0;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--neutral-600);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--neutral-200);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--primary-600);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.feature-description {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Steps Container */
.steps-container {
  display: grid;
  gap: var(--space-12);
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.step-description {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-12);
  background: var(--primary-50);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--primary-200);
}

.cta-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-6);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-6);
}

.faq-item {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

.faq-question {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: var(--space-4);
}

.faq-answer {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-12);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
}

.footer-brand .brand-text {
  color: white;
  font-size: var(--font-size-xl);
}

.footer-tagline {
  color: var(--neutral-400);
  margin-top: var(--space-2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

.footer-title {
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-link {
  display: block;
  color: var(--neutral-400);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-400);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--neutral-700);
  text-align: center;
}

.footer-copyright,
.footer-disclaimer {
  font-size: var(--font-size-sm);
  color: var(--neutral-400);
  margin-bottom: var(--space-2);
}

.footer-link-external {
  color: var(--primary-400);
  text-decoration: none;
}

.footer-link-external:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .nav-container {
    padding: 0 var(--space-4);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--neutral-200);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: var(--space-16);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--space-6);
  }
  
  .content-card,
  .game-card {
    padding: var(--space-8);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .content-card {
    padding: var(--space-6);
  }
  
  .game-card {
    padding: var(--space-4);
  }
  
  .feature-card,
  .faq-item {
    padding: var(--space-6);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Animation & Interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease-out;
}

.hero-text {
  animation-delay: 0.1s;
}

.hero-game {
  animation-delay: 0.2s;
}

/* Focus States */
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}