|
1 | 1 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap'); |
2 | 2 |
|
3 | 3 | :root { |
4 | | - --bg-color: #f8fafc; |
| 4 | + --bg-color: #ffffff; |
| 5 | + --surface-color: #f8fafc; |
5 | 6 | --text-color: #0f172a; |
6 | | - --text-muted: #64748b; |
| 7 | + --text-muted: #475569; |
7 | 8 | --accent-color: #2563eb; |
8 | 9 | --secondary-accent: #10b981; |
9 | | - --card-bg: rgba(255, 255, 255, 0.85); |
10 | | - --border-color: rgba(15, 23, 42, 0.08); |
| 10 | + --card-bg: #ffffff; |
| 11 | + --border-color: #e2e8f0; |
11 | 12 | --font-main: 'Inter', sans-serif; |
12 | | - --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3)); |
13 | | - --hero-grad: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); |
| 13 | + --hero-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); |
| 14 | + --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); |
| 15 | + --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); |
| 16 | + --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); |
| 17 | +} |
| 18 | + |
| 19 | +@keyframes fadeInUp { |
| 20 | + from { |
| 21 | + opacity: 0; |
| 22 | + transform: translateY(30px); |
| 23 | + } |
| 24 | + |
| 25 | + to { |
| 26 | + opacity: 1; |
| 27 | + transform: translateY(0); |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | +.animate-in { |
| 32 | + animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; |
14 | 33 | } |
15 | 34 |
|
16 | 35 | * { |
@@ -99,10 +118,11 @@ nav { |
99 | 118 | font-size: 4.5rem; |
100 | 119 | font-weight: 800; |
101 | 120 | letter-spacing: -3px; |
102 | | - line-height: 1; |
| 121 | + line-height: 1.1; |
103 | 122 | margin-bottom: 1.5rem; |
104 | 123 | background: linear-gradient(to right, #fff, #94a3b8); |
105 | 124 | -webkit-background-clip: text; |
| 125 | + background-clip: text; |
106 | 126 | -webkit-text-fill-color: transparent; |
107 | 127 | } |
108 | 128 |
|
@@ -157,29 +177,50 @@ nav { |
157 | 177 | } |
158 | 178 |
|
159 | 179 | .article-card { |
160 | | - background: white; |
| 180 | + background: var(--card-bg); |
161 | 181 | border: 1px solid var(--border-color); |
162 | | - border-radius: 32px; |
| 182 | + border-radius: 20px; |
163 | 183 | overflow: hidden; |
164 | | - transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); |
165 | | - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); |
| 184 | + transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); |
| 185 | + box-shadow: var(--shadow-md); |
| 186 | + display: flex; |
| 187 | + flex-direction: column; |
166 | 188 | } |
167 | 189 |
|
168 | 190 | .article-card:hover { |
169 | | - transform: translateY(-15px) scale(1.02); |
170 | | - box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12); |
171 | | - border-color: rgba(37, 99, 235, 0.2); |
| 191 | + transform: translateY(-8px); |
| 192 | + box-shadow: var(--shadow-lg); |
| 193 | + border-color: var(--accent-color); |
| 194 | +} |
| 195 | + |
| 196 | +.card-image-wrapper { |
| 197 | + position: relative; |
| 198 | + overflow: hidden; |
| 199 | + height: 220px; |
172 | 200 | } |
173 | 201 |
|
174 | 202 | .card-image { |
175 | 203 | width: 100%; |
176 | | - height: 250px; |
| 204 | + height: 100%; |
177 | 205 | object-fit: cover; |
178 | | - transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); |
| 206 | + transition: transform 0.6s ease; |
179 | 207 | } |
180 | 208 |
|
181 | 209 | .article-card:hover .card-image { |
182 | | - transform: scale(1.1); |
| 210 | + transform: scale(1.05); |
| 211 | +} |
| 212 | + |
| 213 | +.read-time { |
| 214 | + position: absolute; |
| 215 | + bottom: 12px; |
| 216 | + right: 12px; |
| 217 | + background: rgba(15, 23, 42, 0.8); |
| 218 | + color: white; |
| 219 | + padding: 4px 10px; |
| 220 | + border-radius: 6px; |
| 221 | + font-size: 0.7rem; |
| 222 | + font-weight: 600; |
| 223 | + backdrop-filter: blur(4px); |
183 | 224 | } |
184 | 225 |
|
185 | 226 | .card-body { |
|
0 commit comments