js+css实现调用ai大模型ai实现点子头脑风暴发散图代码
代码语言:html
所属分类:其他
代码描述:js+css实现调用ai大模型ai实现点子头脑风暴发散图代码
代码标签: js css 调用 ai 大模型 ai 点子 头脑 风暴 发散 图 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI 思维发散图</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #0a0a0f;
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
overflow: hidden;
width: 100vw;
height: 100vh;
color: #fff;
}
#canvas-container {
width: 100%;
height: 100%;
position: relative;
}
canvas {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
}
/* 开始界面 */
#start-screen {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 70%);
z-index: 100;
transition: opacity 0.8s ease;
}
#start-screen.hidden {
opacity: 0;
pointer-events: none;
}
.start-title {
font-size: 28px;
font-weight: 300;
letter-spacing: 8px;
color: rgba(255,255,255,0.9);
margin-bottom: 12px;
text-align: center;
}
.start-subtitle {
font-size: 13px;
color: rgba(255,255,255,0.4);
margin-bottom: 50px;
letter-spacing: 3px;
}
.input-wrapper {
position: relative;
width: 420px;
max-width: 90vw;
}
.start-input {
width: 100%;
padding: 16px 55px 16px 22px;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 50px;
color: #fff;
font-size: 15px;
outline: none;
transition: all 0.3s;
backdrop-filter: blur(10px);
}
.start-input::placeholder { color: rgba(255,255,255,0.3); }
.start-input:focus {
border-color: rgba(255,220,100,0.5);
background: rgba(255,255,255,0.09);
box-shadow: 0 0 30px rgba(255,200,50,0.1);
}
.start-btn {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
width: 42px; height: 42px;
background: linear-gradient(135deg, #f5d020, #f86f03);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
font-size: 16px;
}
.start-btn:hover { transform: translateY(-50%) scale(1.1); }
.hints {
margin-top: 30px;
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
max-width: 500px;
}
.hint-tag {
padding: 6px 14px;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 20px;
font-size: 12px;
color: rgba(255,255,255,0.5);
cursor: pointer;
transition: all 0.2s;
}
.hint-tag:hover {
background: rgba(255,200,50,0.1);
border-color: rgba(255,200,50,0.3);
color: rgba(255,200,50,0.8);
}
/* 工具栏 */
#toolbar {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
align-items: center;
z-index: 50;
background: rgba(10,10,20,0.8);
backdrop-filter: blur(20px);
padding: 8px 16px;
border-radius: 30px;
border: 1px solid rgba(255,255,255,0.08);
opacity: 0;
pointer-events: none;
transition: opacity 0.5s;
}
#toolbar.visible { opacity: 1; pointer-events: all; }
.toolbar-input {
width: 200px;
padding: 7px 14px;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 20px;
color: #fff;
font-size: 13px;
outline: none;
transition: all 0.3.........完整代码请登录后点击上方下载按钮下载查看















网友评论0