photo.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>客户画像分析 - AI实验室</title>
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  8. <style>
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. box-sizing: border-box;
  13. font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  14. }
  15. :root {
  16. --primary: #4a8fe7;
  17. --primary-dark: #0a192f;
  18. --secondary: #5e72e4;
  19. --accent: #ff6b6b;
  20. --text-dark: #1a1a1a;
  21. --text-medium: #4a4a4a;
  22. --text-light: #8a8f9c;
  23. --bg-white: #ffffff;
  24. --bg-light: #f5f7fa;
  25. --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  26. --border-radius: 12px;
  27. --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  28. }
  29. body {
  30. background-color: var(--bg-white);
  31. color: var(--text-medium);
  32. padding: 0;
  33. max-width: 480px;
  34. margin: 0 auto;
  35. min-height: 100vh;
  36. position: relative;
  37. overflow-x: hidden;
  38. background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100px);
  39. }
  40. .app-container {
  41. padding: 0 16px 40px;
  42. position: relative;
  43. }
  44. /* 头部导航 */
  45. .header {
  46. padding: 20px 0;
  47. display: flex;
  48. align-items: center;
  49. justify-content: space-between;
  50. position: sticky;
  51. top: 0;
  52. background: var(--bg-white);
  53. z-index: 100;
  54. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  55. }
  56. .header-title {
  57. font-size: 22px;
  58. font-weight: 700;
  59. color: var(--text-dark);
  60. display: flex;
  61. align-items: center;
  62. gap: 10px;
  63. }
  64. .header-title i {
  65. color: var(--primary);
  66. font-size: 24px;
  67. background: rgba(74, 143, 231, 0.1);
  68. width: 40px;
  69. height: 40px;
  70. border-radius: 12px;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. }
  75. /* 分析输入区 */
  76. .analysis-input {
  77. background: var(--bg-white);
  78. border-radius: var(--border-radius);
  79. box-shadow: var(--card-shadow);
  80. padding: 20px;
  81. margin-bottom: 24px;
  82. border: 1px solid rgba(0, 0, 0, 0.03);
  83. }
  84. .input-group {
  85. margin-bottom: 16px;
  86. }
  87. .input-group label {
  88. display: block;
  89. margin-bottom: 8px;
  90. font-weight: 600;
  91. color: var(--text-dark);
  92. font-size: 14px;
  93. }
  94. .input-group input,
  95. .input-group textarea {
  96. width: 100%;
  97. padding: 12px 16px;
  98. border-radius: var(--border-radius);
  99. border: 1px solid #e0e4e8;
  100. font-size: 14px;
  101. transition: var(--transition);
  102. }
  103. .input-group input:focus,
  104. .input-group textarea:focus {
  105. outline: none;
  106. border-color: var(--primary);
  107. box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2);
  108. }
  109. .input-group textarea {
  110. min-height: 120px;
  111. resize: vertical;
  112. }
  113. .action-buttons {
  114. display: flex;
  115. gap: 12px;
  116. margin-top: 20px;
  117. }
  118. .btn {
  119. padding: 12px 20px;
  120. border-radius: var(--border-radius);
  121. font-size: 14px;
  122. font-weight: 600;
  123. border: none;
  124. cursor: pointer;
  125. transition: var(--transition);
  126. flex: 1;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. gap: 8px;
  131. }
  132. .btn-primary {
  133. background: var(--primary);
  134. color: white;
  135. box-shadow: 0 4px 8px rgba(74, 143, 231, 0.2);
  136. }
  137. .btn-primary:hover {
  138. background: #3a7bd5;
  139. transform: translateY(-2px);
  140. box-shadow: 0 6px 12px rgba(74, 143, 231, 0.3);
  141. }
  142. .btn-secondary {
  143. background: var(--bg-light);
  144. color: var(--text-medium);
  145. }
  146. .btn-secondary:hover {
  147. background: #e1ebfa;
  148. transform: translateY(-2px);
  149. }
  150. /* 客户列表区 */
  151. .client-list-section {
  152. margin-bottom: 24px;
  153. }
  154. .section-header {
  155. display: flex;
  156. justify-content: space-between;
  157. align-items: center;
  158. margin-bottom: 16px;
  159. }
  160. .section-title {
  161. font-size: 18px;
  162. font-weight: 700;
  163. color: var(--text-dark);
  164. position: relative;
  165. padding-left: 12px;
  166. }
  167. .section-title:before {
  168. content: '';
  169. position: absolute;
  170. left: 0;
  171. top: 4px;
  172. height: 16px;
  173. width: 4px;
  174. background: var(--primary);
  175. border-radius: 2px;
  176. }
  177. .search-box {
  178. position: relative;
  179. margin-bottom: 16px;
  180. }
  181. .search-box input {
  182. width: 100%;
  183. padding: 12px 16px 12px 42px;
  184. border-radius: var(--border-radius);
  185. border: 1px solid #e0e4e8;
  186. font-size: 14px;
  187. transition: var(--transition);
  188. }
  189. .search-box input:focus {
  190. outline: none;
  191. border-color: var(--primary);
  192. box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2);
  193. }
  194. .search-box i {
  195. position: absolute;
  196. left: 16px;
  197. top: 50%;
  198. transform: translateY(-50%);
  199. color: var(--text-light);
  200. }
  201. .client-list {
  202. background: var(--bg-white);
  203. border-radius: var(--border-radius);
  204. box-shadow: var(--card-shadow);
  205. overflow: hidden;
  206. border: 1px solid rgba(0, 0, 0, 0.03);
  207. }
  208. .client-item {
  209. padding: 16px;
  210. border-bottom: 1px solid #f0f2f5;
  211. display: flex;
  212. align-items: center;
  213. justify-content: space-between;
  214. transition: var(--transition);
  215. cursor: pointer;
  216. }
  217. .client-item:last-child {
  218. border-bottom: none;
  219. }
  220. .client-item:hover {
  221. background: #f9fbfe;
  222. }
  223. .client-info {
  224. display: flex;
  225. align-items: center;
  226. gap: 12px;
  227. }
  228. .client-avatar {
  229. width: 40px;
  230. height: 40px;
  231. border-radius: 50%;
  232. background: linear-gradient(135deg, #4a8fe7, #5e72e4);
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. color: white;
  237. font-weight: bold;
  238. font-size: 16px;
  239. }
  240. .client-name {
  241. font-weight: 600;
  242. color: var(--text-dark);
  243. margin-bottom: 2px;
  244. }
  245. .client-meta {
  246. font-size: 12px;
  247. color: var(--text-light);
  248. }
  249. .client-date {
  250. font-size: 12px;
  251. color: var(--text-light);
  252. }
  253. /* 智能推荐区 */
  254. .recommendation-section {
  255. margin-top: 24px;
  256. }
  257. .recommendation-cards {
  258. display: flex;
  259. flex-direction: column;
  260. gap: 16px;
  261. }
  262. .recommendation-card {
  263. background: var(--bg-white);
  264. border-radius: var(--border-radius);
  265. box-shadow: var(--card-shadow);
  266. padding: 20px;
  267. position: relative;
  268. border: 1px solid rgba(0, 0, 0, 0.03);
  269. }
  270. .card-header {
  271. display: flex;
  272. align-items: center;
  273. gap: 12px;
  274. margin-bottom: 16px;
  275. }
  276. .card-icon {
  277. width: 42px;
  278. height: 42px;
  279. border-radius: 12px;
  280. background: rgba(74, 143, 231, 0.15);
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. color: var(--primary);
  285. font-size: 20px;
  286. }
  287. .card-title {
  288. font-size: 16px;
  289. font-weight: 700;
  290. color: var(--text-dark);
  291. }
  292. .recommendation-content {
  293. color: var(--text-medium);
  294. font-size: 14px;
  295. line-height: 1.6;
  296. margin-bottom: 16px;
  297. }
  298. .recommendation-action {
  299. display: flex;
  300. justify-content: space-between;
  301. align-items: center;
  302. }
  303. .tag {
  304. padding: 6px 12px;
  305. border-radius: 20px;
  306. background: var(--bg-light);
  307. font-size: 12px;
  308. color: var(--text-medium);
  309. font-weight: 500;
  310. }
  311. .action-btn {
  312. padding: 8px 16px;
  313. border-radius: 30px;
  314. background: var(--primary);
  315. color: white;
  316. font-size: 14px;
  317. font-weight: 600;
  318. border: none;
  319. cursor: pointer;
  320. transition: var(--transition);
  321. box-shadow: 0 4px 8px rgba(74, 143, 231, 0.2);
  322. }
  323. .action-btn:hover {
  324. background: #3a7bd5;
  325. transform: translateY(-2px);
  326. box-shadow: 0 6px 12px rgba(74, 143, 231, 0.3);
  327. }
  328. /* 动画效果 */
  329. @keyframes fadeIn {
  330. from { opacity: 0; transform: translateY(20px); }
  331. to { opacity: 1; transform: translateY(0); }
  332. }
  333. .animated-card {
  334. animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  335. }
  336. </style>
  337. </head>
  338. <body>
  339. <div class="app-container">
  340. <!-- 头部导航 -->
  341. <div class="header">
  342. <div class="header-title">
  343. <i class="fas fa-user-tag"></i>
  344. <h1>客户画像分析</h1>
  345. </div>
  346. </div>
  347. <!-- 第一部分:分析输入区 -->
  348. <div class="analysis-input animated-card">
  349. <div class="input-group">
  350. <label for="client-id">客户编号</label>
  351. <input type="text" id="client-id" placeholder="请输入客户编号">
  352. </div>
  353. <div class="input-group">
  354. <label for="client-name">客户名称</label>
  355. <input type="text" id="client-name" placeholder="请输入客户名称">
  356. </div>
  357. <div class="input-group">
  358. <label for="chat-data">聊天记录文本</label>
  359. <textarea id="chat-data" placeholder="请粘贴或输入聊天记录文本..."></textarea>
  360. </div>
  361. <div class="action-buttons">
  362. <button class="btn btn-secondary">
  363. <i class="fas fa-save"></i> 保存
  364. </button>
  365. <button class="btn btn-primary">
  366. <i class="fas fa-play"></i> 开始分析
  367. </button>
  368. </div>
  369. </div>
  370. <!-- 第二部分:客户分析列表 -->
  371. <div class="client-list-section">
  372. <div class="section-header">
  373. <h2 class="section-title">客户分析列表</h2>
  374. </div>
  375. <div class="search-box">
  376. <i class="fas fa-search"></i>
  377. <input type="text" placeholder="搜索客户名称或编号...">
  378. </div>
  379. <div class="client-list">
  380. <!-- 客户项 1 -->
  381. <div class="client-item animated-card">
  382. <div class="client-info">
  383. <div class="client-avatar">张</div>
  384. <div>
  385. <div class="client-name">张明远</div>
  386. <div class="client-meta">企业客户 · ID: C1001</div>
  387. </div>
  388. </div>
  389. <div class="client-date">06-28</div>
  390. </div>
  391. <!-- 客户项 2 -->
  392. <div class="client-item animated-card">
  393. <div class="client-info">
  394. <div class="client-avatar">李</div>
  395. <div>
  396. <div class="client-name">李思琪</div>
  397. <div class="client-meta">个人客户 · ID: P2003</div>
  398. </div>
  399. </div>
  400. <div class="client-date">06-27</div>
  401. </div>
  402. <!-- 客户项 3 -->
  403. <div class="client-item animated-card">
  404. <div class="client-info">
  405. <div class="client-avatar">王</div>
  406. <div>
  407. <div class="client-name">王建国</div>
  408. <div class="client-meta">企业客户 · ID: C1002</div>
  409. </div>
  410. </div>
  411. <div class="client-date">06-25</div>
  412. </div>
  413. <!-- 客户项 4 -->
  414. <div class="client-item animated-card">
  415. <div class="client-info">
  416. <div class="client-avatar">陈</div>
  417. <div>
  418. <div class="client-name">陈晓薇</div>
  419. <div class="client-meta">个人客户 · ID: P2004</div>
  420. </div>
  421. </div>
  422. <div class="client-date">06-24</div>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- 第三部分:智能推荐区 -->
  427. <div class="recommendation-section">
  428. <div class="section-header">
  429. <h2 class="section-title">智能推荐</h2>
  430. </div>
  431. <div class="recommendation-cards">
  432. <!-- 推荐卡片 1 -->
  433. <div class="recommendation-card animated-card">
  434. <div class="card-header">
  435. <div class="card-icon">
  436. <i class="fas fa-user-friends"></i>
  437. </div>
  438. <h3 class="card-title">相似客户推荐</h3>
  439. </div>
  440. <p class="recommendation-content">
  441. 根据张明远的画像特征,发现3位相似客户,沟通策略可复用率85%
  442. </p>
  443. <div class="recommendation-action">
  444. <span class="tag">高匹配度</span>
  445. <button class="action-btn">查看客户</button>
  446. </div>
  447. </div>
  448. <!-- 推荐卡片 2 -->
  449. <div class="recommendation-card animated-card">
  450. <div class="card-header">
  451. <div class="card-icon" style="background: rgba(94, 114, 228, 0.15); color: #5e72e4;">
  452. <i class="fas fa-clock"></i>
  453. </div>
  454. <h3 class="card-title">最佳接触时机</h3>
  455. </div>
  456. <p class="recommendation-content">
  457. 李思琪的下次最佳联系时间:明天上午10:00-11:30,接通率预测92%
  458. </p>
  459. <div class="recommendation-action">
  460. <span class="tag">高接通率</span>
  461. <button class="action-btn">加入日程</button>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. <script>
  468. // 模拟交互效果
  469. document.querySelectorAll('.client-item').forEach(item => {
  470. item.addEventListener('click', function() {
  471. this.style.transform = 'scale(0.98)';
  472. setTimeout(() => {
  473. this.style.transform = '';
  474. alert('进入客户详情页:' + this.querySelector('.client-name').textContent);
  475. }, 200);
  476. });
  477. });
  478. // 分析按钮点击事件
  479. document.querySelector('.btn-primary').addEventListener('click', function() {
  480. const clientId = document.getElementById('client-id').value;
  481. const clientName = document.getElementById('client-name').value;
  482. const chatData = document.getElementById('chat-data').value;
  483. if(!clientId || !clientName || !chatData) {
  484. alert('请填写完整的客户信息和聊天记录');
  485. return;
  486. }
  487. alert(`开始分析客户 ${clientName} (${clientId}) 的聊天记录...`);
  488. });
  489. // 保存按钮点击事件
  490. document.querySelector('.btn-secondary').addEventListener('click', function() {
  491. const clientId = document.getElementById('client-id').value;
  492. const clientName = document.getElementById('client-name').value;
  493. const chatData = document.getElementById('chat-data').value;
  494. if(!clientId || !clientName || !chatData) {
  495. alert('请填写完整的客户信息和聊天记录');
  496. return;
  497. }
  498. alert(`已保存客户 ${clientName} (${clientId}) 的信息和聊天记录`);
  499. });
  500. </script>
  501. </body>
  502. </html>