Spaces:
Runtime error
Runtime error
File size: 6,964 Bytes
548eca7 054d73a 548eca7 054d73a 548eca7 054d73a 548eca7 054d73a 548eca7 054d73a 548eca7 054d73a 5ee5085 054d73a 548eca7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | @import "tailwindcss";
:root {
/* Warm, educational color palette */
--color-primary: #1e3a5f;
--color-primary-light: #2d5a87;
--color-accent: #e76f51;
--color-accent-light: #f4a261;
--color-success: #2a9d8f;
--color-warning: #e9c46a;
--color-background: #faf8f5;
--color-surface: #ffffff;
--color-text: #1a1a2e;
--color-text-muted: #64748b;
--color-border: #e2e0dc;
/* Glassmorphism */
--glass-bg: rgba(255, 255, 255, 0.85);
--glass-border: rgba(255, 255, 255, 0.5);
color-scheme: light;
}
:root[data-color-scheme="dark"] {
--color-primary: #5b8fb9;
--color-primary-light: #7eb8da;
--color-accent: #f4a261;
--color-accent-light: #e76f51;
--color-success: #4fd1c5;
--color-warning: #fbd38d;
--color-background: #0f172a;
--color-surface: #1e293b;
--color-text: #f1f5f9;
--color-text-muted: #94a3b8;
--color-border: #334155;
--glass-bg: rgba(30, 41, 59, 0.85);
--glass-border: rgba(51, 65, 85, 0.5);
color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
:root:not([data-color-scheme]) {
--color-primary: #5b8fb9;
--color-primary-light: #7eb8da;
--color-accent: #f4a261;
--color-accent-light: #e76f51;
--color-success: #4fd1c5;
--color-warning: #fbd38d;
--color-background: #0f172a;
--color-surface: #1e293b;
--color-text: #f1f5f9;
--color-text-muted: #94a3b8;
--color-border: #334155;
--glass-bg: rgba(30, 41, 59, 0.85);
--glass-border: rgba(51, 65, 85, 0.5);
color-scheme: dark;
}
}
@theme inline {
--color-background: var(--color-background);
--color-foreground: var(--color-text);
--font-sans: 'Instrument Sans', system-ui, sans-serif;
--font-display: 'Fraunces', Georgia, serif;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
padding: 0;
background: var(--color-background);
color: var(--color-text);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Background pattern */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 20%, rgba(231, 111, 81, 0.08) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(42, 157, 143, 0.08) 0%, transparent 50%),
radial-gradient(circle at 50% 50%, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
pointer-events: none;
z-index: -1;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
font-weight: 600;
line-height: 1.2;
margin: 0;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-text-muted);
}
/* Button styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
font-family: var(--font-sans);
font-weight: 600;
font-size: 0.95rem;
border-radius: 12px;
border: none;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
}
.btn-primary {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
color: white;
box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35);
}
.btn-accent {
background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
color: white;
box-shadow: 0 4px 14px rgba(231, 111, 81, 0.25);
}
.btn-accent:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(231, 111, 81, 0.35);
}
.btn-outline {
background: transparent;
color: var(--color-text);
border: 2px solid var(--color-border);
}
.btn-outline:hover {
border-color: var(--color-primary);
color: var(--color-primary);
}
/* Card styles */
.card {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 20px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
/* Input styles */
.input {
width: 100%;
padding: 0.875rem 1rem;
font-family: var(--font-sans);
font-size: 1rem;
color: var(--color-text);
background: var(--color-surface);
border: 2px solid var(--color-border);
border-radius: 12px;
outline: none;
transition: all 0.2s ease;
}
.input:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}
.input::placeholder {
color: var(--color-text-muted);
}
/* Badge styles */
.badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.75rem;
font-size: 0.8rem;
font-weight: 600;
border-radius: 9999px;
}
.badge-success {
background: rgba(42, 157, 143, 0.15);
color: var(--color-success);
}
.badge-warning {
background: rgba(233, 196, 106, 0.2);
color: #b7791f;
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
.animate-pulse {
animation: pulse 2s ease-in-out infinite;
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
/* Utility classes */
.text-gradient {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ChatKit customization - Force Traditional Chinese */
.chatkit-container,
[data-chatkit-composer] {
/* Force zh-TW locale */
}
/* Override ChatKit placeholder text to Traditional Chinese */
[data-chatkit-composer] textarea::placeholder,
[data-chatkit-composer] input::placeholder,
.chatkit-composer textarea::placeholder,
.chatkit-composer input::placeholder {
/* This may not work as ChatKit uses iframe */
}
/* ChatKit customization */
.chatkit-container {
--ck-color-primary: var(--color-primary);
--ck-color-background: var(--color-surface);
--ck-border-radius: 16px;
display: flex;
flex-direction: column;
}
/* Ensure ChatKit elements are visible */
.chatkit-container > * {
min-height: 0;
flex: 1;
}
/* Make sure the input area is always visible */
[data-chatkit-composer],
[class*="composer"],
[class*="Composer"] {
position: relative !important;
z-index: 10;
}
|