---
import ScrollProgress from '../components/common/ScrollProgress.astro';

export interface Props {
  title: string;
  description?: string;
  type?: 'navigation' | 'report';
}

const { title, description = '', type = 'navigation' } = Astro.props;
---

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{title}</title>
  <meta name="description" content={description}>
  
  <!-- 字体 -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  
  <!-- 图标 -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  
  <!-- 样式 -->
  <link rel="stylesheet" href="/src/styles/global.css">
</head>
<body class={`${type === 'report' ? 'report-layout' : 'navigation-layout'}`}>
  <ScrollProgress />
  <div class="min-h-screen">
    <slot />
  </div>
  
  <script>
    import '../scripts/scroll-reveal.ts';
  </script>
  
  <style>
    .navigation-layout {
      background: linear-gradient(135deg, 
        #aecedd 0%, 
        #b1d9d4 25%, 
        #b2c5d5 50%, 
        #9bb5c8 75%, 
        #7a99b0 100%
      );
    }
    
    .report-layout {
      background: linear-gradient(135deg, 
        #aecedd 0%, 
        #b1d9d4 25%, 
        #b2c5d5 50%, 
        #9bb5c8 75%, 
        #7a99b0 100%
      );
      min-height: 100vh;
      background-attachment: fixed;
    }
  </style>
</body>
</html>