File size: 32,244 Bytes
39dd560 deedd4b 39dd560 deedd4b 39dd560 deedd4b 39dd560 deedd4b 39dd560 deedd4b 39dd560 911458e |
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 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepSeek | 深度求索</title>
<link rel="icon" type="image/x-icon" href="https://cdn.deepseek.com/logo.png?x-image-process=image%2Fresize%2Cw_1920">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.text-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hover-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.section-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-2">
<img src="https://cdn.deepseek.com/logo.png?x-image-process=image%2Fresize%2Cw_1920" alt="DeepSeek Logo" class="h-8 w-8">
<span class="text-xl font-bold text-gray-900">DeepSeek</span>
<span class="text-gray-600">深度求索</span>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="#research" class="text-gray-700 hover:text-purple-600 transition-colors">Research</a>
<a href="#products" class="text-gray-700 hover:text-purple-600 transition-colors">Products</a>
<a href="#about" class="text-gray-700 hover:text-purple-600 transition-colors">About</a>
</div>
<div class="flex items-center space-x-4">
<a href="https://www.deepseek.com/en" class="text-gray-700 hover:text-purple-600 transition-colors">English</a>
<a href="https://chat.deepseek.com/" class="bg-purple-600 text-white px-4 py-2 rounded-lg hover:bg-purple-700 transition-colors">Start Chat</a>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div id="vanta-bg" class="gradient-bg text-white py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<!-- Announcement Banner -->
<div class="inline-flex items-center bg-white/20 backdrop-blur-sm rounded-full px-6 py-3 mb-8 hover-lift">
<span class="text-lg mr-2">🎉</span>
<a href="https://mp.weixin.qq.com/s/6hKi5F_S2zQ4g6SyF0UNow" class="text-white hover:text-purple-200 transition-colors">
DeepSeek-V3.2-Exp Model Released - Training & Inference Optimized, API Price Reduced
</a>
</div>
<h1 class="text-5xl md:text-7xl font-bold mb-6">
Explore the <span class="text-yellow-300">Unknown</span>
</h1>
<p class="text-xl md:text-2xl text-gray-200 mb-8 max-w-3xl mx-auto">
DeepSeek's official free AI assistant for search, writing, reading, problem-solving, and translation
</p>
<!-- Interactive Search Bar -->
<div class="max-w-2xl mx-auto mb-8">
<div class="relative">
<input
type="text"
id="search-input"
placeholder="Ask DeepSeek anything..."
class="w-full px-6 py-4 rounded-xl bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-gray-300 focus:outline-none focus:ring-2 focus:ring-yellow-300 focus:border-transparent"
>
<button
id="search-btn"
class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-yellow-300 text-purple-600 px-6 py-2 rounded-lg font-semibold hover:bg-yellow-400 transition-colors"
>
Ask
</button>
</div>
<div id="search-suggestions" class="hidden mt-2 bg-white/10 backdrop-blur-sm rounded-lg p-2">
<div class="text-left text-sm text-gray-300">Popular questions:</div>
<div class="flex flex-wrap gap-2 mt-2">
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">How does AI work?</button>
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">Write a poem about technology</button>
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">Explain quantum computing</button>
</div>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4 justify-center items-center">
<a href="https://chat.deepseek.com/" class="bg-white text-purple-600 px-8 py-4 rounded-xl font-semibold text-lg hover:bg-gray-100 transition-colors hover-lift">
Start Conversation with DeepSeek-V3.2
</a>
<a href="https://download.deepseek.com/app/" class="border-2 border-white text-white px-8 py-4 rounded-xl font-semibold text-lg hover:bg-white hover:text-purple-600 transition-colors hover-lift">
Get Mobile App
</a>
</div>
<div class="mt-12">
<a href="https://platform.deepseek.com/" class="inline-flex items-center text-white hover:text-yellow-300 transition-colors">
<span>API Platform</span>
<i data-feather="arrow-up-right" class="ml-2 w-5 h-5"></i>
</a>
</div>
</div>
</div>
</div>
<!-- Research Section -->
<section id="research" class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold text-gray-900 mb-4">Research Models</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">
Cutting-edge AI research pushing the boundaries of artificial intelligence
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek R1</h3>
<p class="text-gray-600 mb-4">Advanced reasoning model for complex problem solving</p>
<a href="https://github.com/deepseek-ai/DeepSeek-R1" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek V3</h3>
<p class="text-gray-600 mb-4">Latest flagship model with enhanced capabilities</p>
<a href="https://github.com/deepseek-ai/DeepSeek-V3" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek Coder V2</h3>
<p class="text-gray-600 mb-4">Specialized model for programming and code generation</p>
<a href="https://github.com/deepseek-ai/DeepSeek-Coder-V2" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek VL</h3>
<p class="text-gray-600 mb-4">Vision-language model for multimodal understanding</p>
<a href="https://github.com/deepseek-ai/DeepSeek-VL" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mt-6">
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek V2</h3>
<p class="text-gray-600 mb-4">Previous generation model with proven performance</p>
<a href="https://github.com/deepseek-ai/DeepSeek-V2" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek Coder</h3>
<p class="text-gray-600 mb-4">Original code generation model</p>
<a href="https://github.com/deepseek-ai/DeepSeek-Coder" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek Math</h3>
<p class="text-gray-600 mb-4">Specialized for mathematical reasoning</p>
<a href="https://github.com/deepseek-ai/DeepSeek-Math" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
<div class="bg-gray-50 rounded-2xl p-6 hover-lift border border-gray-200">
<h3 class="text-xl font-semibold text-gray-900 mb-3">DeepSeek LLM</h3>
<p class="text-gray-600 mb-4">Foundation language model</p>
<a href="https://github.com/deepseek-ai/DeepSeek-LLM" class="text-purple-600 hover:text-purple-700 font-medium">Explore →</a>
</div>
</div>
</div>
</section>
<!-- Interactive Demo Section -->
<section class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold text-gray-900 mb-4">Try DeepSeek</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">
Experience AI-powered assistance with our interactive demo
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<div class="bg-gray-50 rounded-2xl p-8">
<h3 class="text-2xl font-bold text-gray-900 mb-6">Ask AI Assistant</h3>
<div class="space-y-4">
<div class="bg-white rounded-lg p-4 shadow-sm">
<div class="flex items-start space-x-3">
<div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center">
<span class="text-white text-sm font-bold">AI</span>
</div>
<div class="flex-1">
<p class="text-gray-700" id="ai-response">Hello! I'm DeepSeek AI assistant. How can I help you today?</p>
</div>
</div>
</div>
<div class="flex space-x-4">
<input
type="text"
id="chat-input"
placeholder="Type your message..."
class="flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent"
>
<button
id="send-btn"
class="bg-purple-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-purple-700 transition-colors"
>
Send
</button>
</div>
<div class="flex flex-wrap gap-2">
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Explain AI</button>
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Write code</button>
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Translate</button>
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Summarize</button>
</div>
</div>
</div>
<div class="bg-gray-50 rounded-2xl p-8">
<h3 class="text-2xl font-bold text-gray-900 mb-6">Model Comparison</h3>
<div class="space-y-4">
<div class="bg-white rounded-lg p-4 shadow-sm">
<div class="flex justify-between items-center mb-2">
<span class="font-semibold text-gray-700">DeepSeek V3.2</span>
<span class="text-green-600 text-sm font-medium">Latest</span>
</div>
<div class="text-sm text-gray-600">
Advanced reasoning, 128K context, multimodal support
</div>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm">
<div class="flex justify-between items-center mb-2">
<span class="font-semibold text-gray-700">DeepSeek R1</span>
<span class="text-blue-600 text-sm font-medium">Reasoning</span>
</div>
<div class="text-sm text-gray-600">
Specialized for complex problem solving and reasoning
</div>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm">
<div class="flex justify-between items-center mb-2">
<span class="font-semibold text-gray-700">DeepSeek Coder V2</span>
<span class="text-orange-600 text-sm font-medium">Coding</span>
</div>
<div class="text-sm text-gray-600">
Optimized for programming and code generation tasks
</div>
</div>
</div>
<div class="mt-6 p-4 bg-yellow-50 rounded-lg border border-yellow-200">
<div class="flex items-center">
<i data-feather="info" class="text-yellow-600 w-5 h-5 mr-3"></i>
<span class="text-yellow-800 text-sm">All models are free to use with generous rate limits</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Products Section -->
<section id="products" class="py-20 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold text-gray-900 mb-4">Our Products</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">
Access AI capabilities through various platforms and interfaces
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-white rounded-2xl p-8 hover-lift shadow-sm">
<div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-6">
<i data-feather="smartphone" class="text-purple-600 w-6 h-6"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4">DeepSeek App</h3>
<p class="text-gray-600 mb-6">Get the official mobile app for AI assistance on the go</p>
<a href="https://download.deepseek.com/app/" class="text-purple-600 hover:text-purple-700 font-medium">Download Now →</a>
</div>
<div class="bg-white rounded-2xl p-8 hover-lift shadow-sm">
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-6">
<i data-feather="globe" class="text-blue-600 w-6 h-6"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4">Web Version</h3>
<p class="text-gray-600 mb-6">Access DeepSeek directly through your web browser</p>
<a href="https://chat.deepseek.com/" class="text-purple-600 hover:text-purple-700 font-medium">Start Chatting →</a>
</div>
<div class="bg-white rounded-2xl p-8 hover-lift shadow-sm">
<div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-6">
<i data-feather="cpu" class="text-green-600 w-6 h-6"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-4">Open Platform</h3>
<p class="text-gray-600 mb-6">Integrate AI capabilities into your applications</p>
<a href="https://platform.deepseek.com/" class="text-purple-600 hover:text-purple-700 font-medium">Get Started →</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<!-- Company Info -->
<div>
<div class="flex items-center space-x-2 mb-4">
<img src="https://cdn.deepseek.com/logo.png?x-image-process=image%2Fresize%2Cw_1920" alt="DeepSeek Logo" class="h-8 w-8">
<span class="text-xl font-bold">DeepSeek</span>
</div>
<p class="text-gray-400 mb-6">
Official free AI assistant for search, writing, reading, problem-solving, and translation
</p>
<div class="flex space-x-4">
<a href="mailto:service@deepseek.com" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="mail" class="w-5 h-5"></i>
</a>
<a href="https://github.com/deepseek-ai" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="github" class="w-5 h-5"></i>
</a>
<a href="https://twitter.com/deepseek_ai" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="https://www.zhihu.com/org/deepseek-75" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="help-circle" class="w-5 h-5"></i>
</a>
<a href="https://www.xiaohongshu.com/user/profile/66821202000000001b01a005" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="image" class="w-5 h-5"></i>
</a>
</div>
</div>
<!-- Research -->
<div>
<h4 class="font-semibold mb-4">Research</h4>
<ul class="space-y-2">
<li><a href="https://github.com/deepseek-ai/DeepSeek-R1" class="text-gray-400 hover:text-white transition-colors">DeepSeek R1</a></li>
<li><a href="https://github.com/deepseek-ai/DeepSeek-V3" class="text-gray-400 hover:text-white transition-colors">DeepSeek V3</a></li>
<li><a href="https://github.com/deepseek-ai/DeepSeek-Coder-V2" class="text-gray-400 hover:text-white transition-colors">DeepSeek Coder V2</a></li>
<li><a href="https://github.com/deepseek-ai/DeepSeek-VL" class="text-gray-400 hover:text-white transition-colors">DeepSeek VL</a></li>
</ul>
</div>
<!-- Products -->
<div>
<h4 class="font-semibold mb-4">Products</h4>
<ul class="space-y-2">
<li><a href="https://download.deepseek.com/app/" class="text-gray-400 hover:text-white transition-colors">DeepSeek App</a></li>
<li><a href="https://chat.deepseek.com/" class="text-gray-400 hover:text-white transition-colors">Web Version</a></li>
<li><a href="https://platform.deepseek.com/" class="text-gray-400 hover:text-white transition-colors">Open Platform</a></li>
<li><a href="https://api-docs.deepseek.com/quick_start/pricing" class="text-gray-400 hover:text-white transition-colors">API Pricing</a></li>
<li><a href="https://status.deepseek.com/" class="text-gray-400 hover:text-white transition-colors">Service Status</a></li>
</ul>
</div>
<!-- Legal & Join -->
<div>
<h4 class="font-semibold mb-4">Company</h4>
<ul class="space-y-2">
<li><a href="https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html" class="text-gray-400 hover:text-white transition-colors">Privacy Policy</a></li>
<li><a href="https://cdn.deepseek.com/policies/en-US/deepseek-terms-of-use.html" class="text-gray-400 hover:text-white transition-colors">User Agreement</a></li>
<li><a href="mailto:security@deepseek.com" class="text-gray-400 hover:text-white transition-colors">Report Security Issues</a></li>
<li><a href="https://app.mokahr.com/social-recruitment/high-flyer/140576" class="text-gray-400 hover:text-white transition-colors">Join Our Team</a></li>
</ul>
</div>
</div>
<div class="section-divider my-8"></div>
<!-- Bottom Footer -->
<div class="flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0">
<div class="text-gray-400 text-sm">
© 2025 Hangzhou DeepSeek AI Basic Technology Research Co., Ltd. All Rights Reserved
</div>
<div class="flex flex-wrap gap-4 text-sm text-gray-400">
<a href="https://beian.miit.gov.cn/" class="hover:text-white transition-colors">浙ICP备2023025841号</a>
<a href="https://tsm.miit.gov.cn/dxxzsp/xkz/xkzgl/resource/qiyesearch.jsp?num=%E6%B5%99B2-20250178&type=xuke" class="hover:text-white transition-colors">浙B2-20250178</a>
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=33010502011812" class="hover:text-white transition-colors">浙公网安备33010502011812号</a>
</div>
</div>
</div>
</footer>
<script>
// Initialize Vanta.js globe background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x764ba2,
backgroundColor: 0x667eea,
size: 1.00
});
// Initialize feather icons
feather.replace();
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Interactive search functionality
const searchInput = document.getElementById('search-input');
const searchBtn = document.getElementById('search-btn');
const searchSuggestions = document.getElementById('search-suggestions');
const chatInput = document.getElementById('chat-input');
const sendBtn = document.getElementById('send-btn');
const aiResponse = document.getElementById('ai-response');
const demoButtons = document.querySelectorAll('.demo-btn');
const suggestionButtons = document.querySelectorAll('.suggestion-btn');
// Show search suggestions on focus
searchInput.addEventListener('focus', () => {
searchSuggestions.classList.remove('hidden');
});
// Hide search suggestions when clicking outside
document.addEventListener('click', (e) => {
if (!searchInput.contains(e.target) && !searchSuggestions.contains(e.target)) {
searchSuggestions.classList.add('hidden');
}
});
// Search functionality
searchBtn.addEventListener('click', () => {
const query = searchInput.value.trim();
if (query) {
// Redirect to DeepSeek chat with the query
window.open(`https://chat.deepseek.com/?q=${encodeURIComponent(query)}`, '_blank');
}
});
searchInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') {
searchBtn.click();
}
});
// Interactive chat demo
const responses = {
'explain ai': "Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think and learn like humans. DeepSeek uses advanced machine learning and deep learning techniques to understand and generate human-like text, solve problems, and assist with various tasks.",
'write code': "Here's a simple Python function to calculate factorial:\n\n```python\ndef factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n-1)\n```\nThis recursive function calculates the factorial of a number.",
'translate': "DeepSeek supports translation between multiple languages. For example, 'Hello, how are you?' would be translated to:\n\n- Spanish: 'Hola, ¿cómo estás?'\n- French: 'Bonjour, comment allez-vous?'\n- Chinese: '你好,你好吗?'\n\nTry asking me to translate specific phrases!",
'summarize': "Summarization involves condensing a large amount of text into its key points while preserving the essential meaning. DeepSeek can summarize articles, documents, or any text content by identifying the main ideas and presenting them concisely.",
'how does ai work': "AI systems like DeepSeek work through neural networks that process information similarly to the human brain. They're trained on vast amounts of data to recognize patterns, understand context, and generate appropriate responses using techniques like deep learning and natural language processing.",
'default': "I'm DeepSeek AI, trained to assist with a wide range of tasks including writing, coding, translation, research, and problem-solving. How can I help you today?"
};
function getAIResponse(message) {
const lowerMessage = message.toLowerCase();
for (const [key, response] of Object.entries(responses)) {
if (lowerMessage.includes(key)) {
return response;
}
}
return responses.default;
}
sendBtn.addEventListener('click', () => {
const message = chatInput.value.trim();
if (message) {
aiResponse.textContent = getAIResponse(message);
chatInput.value = '';
// Add typing animation effect
aiResponse.style.opacity = '0';
setTimeout(() => {
aiResponse.style.opacity = '1';
aiResponse.style.transition = 'opacity 0.3s ease';
}, 100);
}
});
chatInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') {
sendBtn.click();
}
});
// Demo buttons functionality
demoButtons.forEach(button => {
button.addEventListener('click', () => {
const action = button.textContent.toLowerCase();
aiResponse.textContent = getAIResponse(action);
// Add typing animation effect
aiResponse.style.opacity = '0';
setTimeout(() => {
aiResponse.style.opacity = '1';
aiResponse.style.transition = 'opacity 0.3s ease';
}, 100);
});
});
// Suggestion buttons functionality
suggestionButtons.forEach(button => {
button.addEventListener('click', () => {
searchInput.value = button.textContent;
searchSuggestions.classList.add('hidden');
});
});
</script>
</body>
</html>
|