/* 代码高亮主题(github-dark) */ @import 'highlight.js/styles/github-dark.css'; @tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 210 20% 98%; --foreground: 222 47% 11%; --card: 0 0% 100%; --card-foreground: 222 47% 11%; --popover: 0 0% 100%; --popover-foreground: 222 47% 11%; --primary: 222 47% 11%; --primary-foreground: 210 40% 98%; --secondary: 210 16% 93%; --secondary-foreground: 222 47% 11%; --muted: 210 16% 95%; --muted-foreground: 215 16% 47%; --accent: 210 16% 93%; --accent-foreground: 222 47% 11%; --destructive: 0 84% 60%; --destructive-foreground: 210 40% 98%; --border: 214 20% 90%; --input: 214 20% 90%; --ring: 222 47% 11%; --radius: 0.625rem; } .dark { --background: 222 47% 11%; --foreground: 210 40% 98%; --card: 222 47% 13%; --card-foreground: 210 40% 98%; --popover: 222 47% 13%; --popover-foreground: 210 40% 98%; --primary: 210 40% 98%; --primary-foreground: 222 47% 11%; --secondary: 217 33% 17%; --secondary-foreground: 210 40% 98%; --muted: 217 33% 17%; --muted-foreground: 215 20% 65%; --accent: 217 33% 17%; --accent-foreground: 210 40% 98%; --destructive: 0 63% 31%; --destructive-foreground: 210 40% 98%; --border: 217 33% 20%; --input: 217 33% 20%; --ring: 212 95% 68%; } } @layer base { * { @apply border-border; } body { @apply bg-background text-foreground font-sans antialiased; } } /* 打印样式:隐藏导航,卡片去阴影 */ @media print { header, nav, .no-print { display: none !important; } .card { box-shadow: none !important; border: 1px solid hsl(var(--border)) !important; } }