@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: Arial, Helvetica, sans-serif;
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 224 71.4% 4.1%;
    --card: 0 0% 100%;
    --card-foreground: 224 71.4% 4.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 71.4% 4.1%;
    --primary: 220.9 39.3% 11%;
    --primary-foreground: 210 20% 98%;
    --secondary: 220 14.3% 95.9%;
    --secondary-foreground: 220.9 39.3% 11%;
    --muted: 220 14.3% 95.9%;
    --muted-foreground: 220 8.9% 46.1%;
    --accent: 220 14.3% 95.9%;
    --accent-foreground: 220.9 39.3% 11%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 224 71.4% 4.1%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
  .dark {
    --background: 224 71.4% 4.1%;
    --foreground: 210 20% 98%;
    --card: 224 71.4% 4.1%;
    --card-foreground: 210 20% 98%;
    --popover: 224 71.4% 4.1%;
    --popover-foreground: 210 20% 98%;
    --primary: 210 20% 98%;
    --primary-foreground: 220.9 39.3% 11%;
    --secondary: 215 27.9% 16.9%;
    --secondary-foreground: 210 20% 98%;
    --muted: 215 27.9% 16.9%;
    --muted-foreground: 217.9 10.6% 64.9%;
    --accent: 215 27.9% 16.9%;
    --accent-foreground: 210 20% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 20% 98%;
    --border: 215 27.9% 16.9%;
    --input: 215 27.9% 16.9%;
    --ring: 216 12.2% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  /* 添加自定义主题 */
  .theme-green {
    --background: 150 40% 94%;
    --foreground: 142.1 80% 10%;
    --card: 150 40% 97%;
    --card-foreground: 142.1 80% 12%;
    --popover: 150 40% 97%;
    --popover-foreground: 142.1 80% 12%;
    
    --primary: 142.1 76.2% 36.3%;
    --primary-foreground: 355.7 100% 97.3%;
    
    --secondary: 142.1 76.2% 90.3%;
    --secondary-foreground: 142.1 70.0% 30.0%;
    
    --accent: 142.1 76.2% 90.3%;
    --accent-foreground: 142.1 70.0% 30.0%;
    
    --muted: 142.1 30.0% 94.0%;
    --muted-foreground: 142.1 10.0% 40.0%;
    
    --border: 142.1 50.0% 80.0%;
    --input: 142.1 50.0% 80.0%;
    --ring: 142.1 76.2% 36.3%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;

    --sidebar-background: 150 50% 90%;
    --sidebar-foreground: 142.1 60% 20%;
    --sidebar-primary: 142.1 76.2% 36.3%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 150 40% 85%;
    --sidebar-accent-foreground: 142.1 70% 20%;
    --sidebar-border: 142.1 40% 75%;
    --sidebar-ring: 142.1 76.2% 36.3%;
  }

  .theme-blue {
    --background: 210 60% 93%;
    --foreground: 217.2 80% 12%;
    --card: 210 60% 96%;
    --card-foreground: 217.2 80% 15%;
    --popover: 210 60% 96%;
    --popover-foreground: 217.2 80% 15%;
    
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 355.7 100% 97.3%;
    
    --secondary: 217.2 91.2% 90.3%;
    --secondary-foreground: 217.2 70.0% 30.0%;
    
    --accent: 217.2 91.2% 90.3%;
    --accent-foreground: 217.2 70.0% 30.0%;
    
    --muted: 217.2 30.0% 94.0%;
    --muted-foreground: 217.2 10.0% 40.0%;
    
    --border: 217.2 50.0% 80.0%;
    --input: 217.2 50.0% 80.0%;
    --ring: 217.2 91.2% 59.8%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;

    --sidebar-background: 210 70% 90%;
    --sidebar-foreground: 217.2 60% 20%;
    --sidebar-primary: 217.2 91.2% 59.8%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 210 60% 85%;
    --sidebar-accent-foreground: 217.2 70% 20%;
    --sidebar-border: 217.2 40% 75%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .theme-purple {
    --background: 265 40% 93%;
    --foreground: 262.1 80% 12%;
    --card: 265 40% 96%;
    --card-foreground: 262.1 80% 15%;
    --popover: 265 40% 96%;
    --popover-foreground: 262.1 80% 15%;
    
    --primary: 262.1 83.3% 57.8%;
    --primary-foreground: 355.7 100% 97.3%;
    
    --secondary: 262.1 83.3% 90.3%;
    --secondary-foreground: 262.1 70.0% 30.0%;
    
    --accent: 262.1 83.3% 90.3%;
    --accent-foreground: 262.1 70.0% 30.0%;
    
    --muted: 262.1 30.0% 94.0%;
    --muted-foreground: 262.1 10.0% 40.0%;
    
    --border: 262.1 50.0% 80.0%;
    --input: 262.1 50.0% 80.0%;
    --ring: 262.1 83.3% 57.8%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;

    --sidebar-background: 265 50% 90%;
    --sidebar-foreground: 262.1 60% 20%;
    --sidebar-primary: 262.1 83.3% 57.8%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 265 40% 85%;
    --sidebar-accent-foreground: 262.1 70% 20%;
    --sidebar-border: 262.1 40% 75%;
    --sidebar-ring: 262.1 83.3% 57.8%;
  }

  .theme-rose {
    --background: 340 40% 93%;
    --foreground: 339.5 80% 12%;
    --card: 340 40% 96%;
    --card-foreground: 339.5 80% 15%;
    --popover: 340 40% 96%;
    --popover-foreground: 339.5 80% 15%;
    
    --primary: 339.5 89.3% 60.6%;
    --primary-foreground: 355.7 100% 97.3%;
    
    --secondary: 339.5 89.3% 90.3%;
    --secondary-foreground: 339.5 70.0% 30.0%;
    
    --accent: 339.5 89.3% 90.3%;
    --accent-foreground: 339.5 70.0% 30.0%;
    
    --muted: 339.5 30.0% 94.0%;
    --muted-foreground: 339.5 10.0% 40.0%;
    
    --border: 339.5 50.0% 80.0%;
    --input: 339.5 50.0% 80.0%;
    --ring: 339.5 89.3% 60.6%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;

    --sidebar-background: 340 50% 90%;
    --sidebar-foreground: 339.5 60% 20%;
    --sidebar-primary: 339.5 89.3% 60.6%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 340 40% 85%;
    --sidebar-accent-foreground: 339.5 70% 20%;
    --sidebar-border: 339.5 40% 75%;
    --sidebar-ring: 339.5 89.3% 60.6%;
  }

  .theme-amber {
    --background: 40 60% 93%;
    --foreground: 38.8 80% 12%;
    --card: 40 60% 96%;
    --card-foreground: 38.8 80% 15%;
    --popover: 40 60% 96%;
    --popover-foreground: 38.8 80% 15%;
    
    --primary: 38.8 92.9% 50.2%;
    --primary-foreground: 355.7 100% 97.3%;
    
    --secondary: 38.8 92.9% 90.3%;
    --secondary-foreground: 38.8 70.0% 30.0%;
    
    --accent: 38.8 92.9% 90.3%;
    --accent-foreground: 38.8 70.0% 30.0%;
    
    --muted: 38.8 30.0% 94.0%;
    --muted-foreground: 38.8 10.0% 40.0%;
    
    --border: 38.8 50.0% 80.0%;
    --input: 38.8 50.0% 80.0%;
    --ring: 38.8 92.9% 50.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;

    --sidebar-background: 40 70% 90%;
    --sidebar-foreground: 38.8 60% 20%;
    --sidebar-primary: 38.8 92.9% 50.2%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 40 60% 85%;
    --sidebar-accent-foreground: 38.8 70% 20%;
    --sidebar-border: 38.8 40% 75%;
    --sidebar-ring: 38.8 92.9% 50.2%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}
