|
| 1 | +@tailwind base; |
| 2 | +@tailwind components; |
| 3 | +@tailwind utilities; |
| 4 | + |
| 5 | +@layer base { |
| 6 | + :root { |
| 7 | + --background: 0 0% 100%; |
| 8 | + --foreground: 250 10% 3.9%; |
| 9 | + |
| 10 | + /* 更活泼的主色调 - 亮紫色 */ |
| 11 | + --primary: 266 100% 50%; |
| 12 | + --primary-foreground: 0 0% 100%; |
| 13 | + |
| 14 | + /* 活泼的强调色 - 粉色 */ |
| 15 | + --accent: 326 100% 60%; |
| 16 | + --accent-foreground: 0 0% 100%; |
| 17 | + |
| 18 | + /* 生动的次要色 - 青色 */ |
| 19 | + --secondary: 186 100% 50%; |
| 20 | + --secondary-foreground: 0 0% 100%; |
| 21 | + |
| 22 | + /* 其他颜色调整 */ |
| 23 | + --card: 0 0% 100%; |
| 24 | + --card-foreground: 250 10% 3.9%; |
| 25 | + --popover: 0 0% 100%; |
| 26 | + --popover-foreground: 250 10% 3.9%; |
| 27 | + --muted: 250 10% 95%; |
| 28 | + --muted-foreground: 250 10% 40%; |
| 29 | + --destructive: 0 84.2% 60.2%; |
| 30 | + --destructive-foreground: 0 0% 98%; |
| 31 | + --border: 250 10% 90%; |
| 32 | + --input: 250 10% 90%; |
| 33 | + --ring: 266 100% 50%; |
| 34 | + --radius: 1rem; |
| 35 | + } |
| 36 | + |
| 37 | + .dark { |
| 38 | + --background: 250 10% 3.9%; |
| 39 | + --foreground: 0 0% 98%; |
| 40 | + |
| 41 | + /* 深色模式下保持活力 */ |
| 42 | + --primary: 266 100% 60%; |
| 43 | + --primary-foreground: 0 0% 100%; |
| 44 | + |
| 45 | + --accent: 326 100% 65%; |
| 46 | + --accent-foreground: 0 0% 100%; |
| 47 | + |
| 48 | + --secondary: 186 100% 60%; |
| 49 | + --secondary-foreground: 0 0% 100%; |
| 50 | + |
| 51 | + --card: 250 10% 5.9%; |
| 52 | + --card-foreground: 0 0% 98%; |
| 53 | + --popover: 250 10% 5.9%; |
| 54 | + --popover-foreground: 0 0% 98%; |
| 55 | + --muted: 250 10% 15%; |
| 56 | + --muted-foreground: 250 10% 70%; |
| 57 | + --destructive: 0 62.8% 30.6%; |
| 58 | + --destructive-foreground: 0 0% 98%; |
| 59 | + --border: 250 10% 15%; |
| 60 | + --input: 250 10% 15%; |
| 61 | + --ring: 266 100% 60%; |
| 62 | + } |
| 63 | +} |
| 64 | + |
| 65 | +/* 渐变和动画效果 */ |
| 66 | +.gradient-bg { |
| 67 | + background: linear-gradient(135deg, hsl(266 100% 50% / 0.1), hsl(326 100% 60% / 0.1), hsl(186 100% 50% / 0.1)); |
| 68 | +} |
| 69 | + |
| 70 | +.gradient-text { |
| 71 | + background: linear-gradient(135deg, hsl(266 100% 50%), hsl(326 100% 60%)); |
| 72 | + -webkit-background-clip: text; |
| 73 | + -webkit-text-fill-color: transparent; |
| 74 | + background-clip: text; |
| 75 | +} |
| 76 | + |
| 77 | +.gradient-border { |
| 78 | + position: relative; |
| 79 | + background: linear-gradient(var(--background), var(--background)) padding-box, |
| 80 | + linear-gradient(135deg, hsl(266 100% 50%), hsl(326 100% 60%), hsl(186 100% 50%)) border-box; |
| 81 | + border: 2px solid transparent; |
| 82 | +} |
| 83 | + |
| 84 | +.feature-card { |
| 85 | + transition: all 0.3s ease; |
| 86 | +} |
| 87 | + |
| 88 | +.feature-card:hover { |
| 89 | + transform: translateY(-5px); |
| 90 | +} |
| 91 | + |
| 92 | +.tool-icon { |
| 93 | + transition: all 0.3s ease; |
| 94 | +} |
| 95 | + |
| 96 | +.tool-icon:hover { |
| 97 | + transform: scale(1.05); |
| 98 | + box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); |
| 99 | +} |
| 100 | + |
| 101 | +.gradient-button { |
| 102 | + background: linear-gradient(135deg, hsl(266 100% 50%), hsl(326 100% 60%)); |
| 103 | + transition: opacity 0.3s ease; |
| 104 | +} |
| 105 | + |
| 106 | +.gradient-button:hover { |
| 107 | + opacity: 0.9; |
| 108 | +} |
| 109 | + |
| 110 | +@layer base { |
| 111 | + * { |
| 112 | + @apply border-border; |
| 113 | + } |
| 114 | + body { |
| 115 | + @apply bg-background text-foreground; |
| 116 | + } |
| 117 | +} |
| 118 | + |
| 119 | +/* 动画关键帧 */ |
| 120 | +@keyframes float { |
| 121 | + 0% { |
| 122 | + transform: translateY(0px); |
| 123 | + } |
| 124 | + 50% { |
| 125 | + transform: translateY(-10px); |
| 126 | + } |
| 127 | + 100% { |
| 128 | + transform: translateY(0px); |
| 129 | + } |
| 130 | +} |
| 131 | + |
| 132 | +.float-animation { |
| 133 | + animation: float 3s ease-in-out infinite; |
| 134 | +} |
| 135 | + |
0 commit comments