123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- <!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>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
- }
- :root {
- --primary: #4a8fe7;
- --primary-dark: #0a192f;
- --secondary: #5e72e4;
- --accent: #ff6b6b;
- --text-dark: #1a1a1a;
- --text-medium: #4a4a4a;
- --text-light: #8a8f9c;
- --bg-white: #ffffff;
- --bg-light: #f5f7fa;
- --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
- --border-radius: 12px;
- --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- }
- body {
- background-color: var(--bg-white);
- color: var(--text-medium);
- padding: 0;
- max-width: 480px;
- margin: 0 auto;
- min-height: 100vh;
- position: relative;
- overflow-x: hidden;
- background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100px);
- }
- .app-container {
- padding: 0 16px 40px;
- position: relative;
- }
- /* 头部导航 */
- .header {
- padding: 20px 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: sticky;
- top: 0;
- background: var(--bg-white);
- z-index: 100;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
- }
- .header-title {
- font-size: 22px;
- font-weight: 700;
- color: var(--text-dark);
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .header-title i {
- color: var(--primary);
- font-size: 24px;
- background: rgba(74, 143, 231, 0.1);
- width: 40px;
- height: 40px;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- /* 分析输入区 */
- .analysis-input {
- background: var(--bg-white);
- border-radius: var(--border-radius);
- box-shadow: var(--card-shadow);
- padding: 20px;
- margin-bottom: 24px;
- border: 1px solid rgba(0, 0, 0, 0.03);
- }
- .input-group {
- margin-bottom: 16px;
- }
- .input-group label {
- display: block;
- margin-bottom: 8px;
- font-weight: 600;
- color: var(--text-dark);
- font-size: 14px;
- }
- .input-group input,
- .input-group textarea {
- width: 100%;
- padding: 12px 16px;
- border-radius: var(--border-radius);
- border: 1px solid #e0e4e8;
- font-size: 14px;
- transition: var(--transition);
- }
- .input-group input:focus,
- .input-group textarea:focus {
- outline: none;
- border-color: var(--primary);
- box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2);
- }
- .input-group textarea {
- min-height: 120px;
- resize: vertical;
- }
- .action-buttons {
- display: flex;
- gap: 12px;
- margin-top: 20px;
- }
- .btn {
- padding: 12px 20px;
- border-radius: var(--border-radius);
- font-size: 14px;
- font-weight: 600;
- border: none;
- cursor: pointer;
- transition: var(--transition);
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- }
- .btn-primary {
- background: var(--primary);
- color: white;
- box-shadow: 0 4px 8px rgba(74, 143, 231, 0.2);
- }
- .btn-primary:hover {
- background: #3a7bd5;
- transform: translateY(-2px);
- box-shadow: 0 6px 12px rgba(74, 143, 231, 0.3);
- }
- .btn-secondary {
- background: var(--bg-light);
- color: var(--text-medium);
- }
- .btn-secondary:hover {
- background: #e1ebfa;
- transform: translateY(-2px);
- }
- /* 客户列表区 */
- .client-list-section {
- margin-bottom: 24px;
- }
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 16px;
- }
- .section-title {
- font-size: 18px;
- font-weight: 700;
- color: var(--text-dark);
- position: relative;
- padding-left: 12px;
- }
- .section-title:before {
- content: '';
- position: absolute;
- left: 0;
- top: 4px;
- height: 16px;
- width: 4px;
- background: var(--primary);
- border-radius: 2px;
- }
- .search-box {
- position: relative;
- margin-bottom: 16px;
- }
- .search-box input {
- width: 100%;
- padding: 12px 16px 12px 42px;
- border-radius: var(--border-radius);
- border: 1px solid #e0e4e8;
- font-size: 14px;
- transition: var(--transition);
- }
- .search-box input:focus {
- outline: none;
- border-color: var(--primary);
- box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.2);
- }
- .search-box i {
- position: absolute;
- left: 16px;
- top: 50%;
- transform: translateY(-50%);
- color: var(--text-light);
- }
- .client-list {
- background: var(--bg-white);
- border-radius: var(--border-radius);
- box-shadow: var(--card-shadow);
- overflow: hidden;
- border: 1px solid rgba(0, 0, 0, 0.03);
- }
- .client-item {
- padding: 16px;
- border-bottom: 1px solid #f0f2f5;
- display: flex;
- align-items: center;
- justify-content: space-between;
- transition: var(--transition);
- cursor: pointer;
- }
- .client-item:last-child {
- border-bottom: none;
- }
- .client-item:hover {
- background: #f9fbfe;
- }
- .client-info {
- display: flex;
- align-items: center;
- gap: 12px;
- }
- .client-avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background: linear-gradient(135deg, #4a8fe7, #5e72e4);
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- font-weight: bold;
- font-size: 16px;
- }
- .client-name {
- font-weight: 600;
- color: var(--text-dark);
- margin-bottom: 2px;
- }
- .client-meta {
- font-size: 12px;
- color: var(--text-light);
- }
- .client-date {
- font-size: 12px;
- color: var(--text-light);
- }
- /* 智能推荐区 */
- .recommendation-section {
- margin-top: 24px;
- }
- .recommendation-cards {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .recommendation-card {
- background: var(--bg-white);
- border-radius: var(--border-radius);
- box-shadow: var(--card-shadow);
- padding: 20px;
- position: relative;
- border: 1px solid rgba(0, 0, 0, 0.03);
- }
- .card-header {
- display: flex;
- align-items: center;
- gap: 12px;
- margin-bottom: 16px;
- }
- .card-icon {
- width: 42px;
- height: 42px;
- border-radius: 12px;
- background: rgba(74, 143, 231, 0.15);
- display: flex;
- align-items: center;
- justify-content: center;
- color: var(--primary);
- font-size: 20px;
- }
- .card-title {
- font-size: 16px;
- font-weight: 700;
- color: var(--text-dark);
- }
- .recommendation-content {
- color: var(--text-medium);
- font-size: 14px;
- line-height: 1.6;
- margin-bottom: 16px;
- }
- .recommendation-action {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .tag {
- padding: 6px 12px;
- border-radius: 20px;
- background: var(--bg-light);
- font-size: 12px;
- color: var(--text-medium);
- font-weight: 500;
- }
- .action-btn {
- padding: 8px 16px;
- border-radius: 30px;
- background: var(--primary);
- color: white;
- font-size: 14px;
- font-weight: 600;
- border: none;
- cursor: pointer;
- transition: var(--transition);
- box-shadow: 0 4px 8px rgba(74, 143, 231, 0.2);
- }
- .action-btn:hover {
- background: #3a7bd5;
- transform: translateY(-2px);
- box-shadow: 0 6px 12px rgba(74, 143, 231, 0.3);
- }
- /* 动画效果 */
- @keyframes fadeIn {
- from { opacity: 0; transform: translateY(20px); }
- to { opacity: 1; transform: translateY(0); }
- }
- .animated-card {
- animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
- }
- </style>
- </head>
- <body>
- <div class="app-container">
- <!-- 头部导航 -->
- <div class="header">
- <div class="header-title">
- <i class="fas fa-user-tag"></i>
- <h1>客户画像分析</h1>
- </div>
- </div>
- <!-- 第一部分:分析输入区 -->
- <div class="analysis-input animated-card">
- <div class="input-group">
- <label for="client-id">客户编号</label>
- <input type="text" id="client-id" placeholder="请输入客户编号">
- </div>
-
- <div class="input-group">
- <label for="client-name">客户名称</label>
- <input type="text" id="client-name" placeholder="请输入客户名称">
- </div>
-
- <div class="input-group">
- <label for="chat-data">聊天记录文本</label>
- <textarea id="chat-data" placeholder="请粘贴或输入聊天记录文本..."></textarea>
- </div>
-
- <div class="action-buttons">
- <button class="btn btn-secondary">
- <i class="fas fa-save"></i> 保存
- </button>
- <button class="btn btn-primary">
- <i class="fas fa-play"></i> 开始分析
- </button>
- </div>
- </div>
- <!-- 第二部分:客户分析列表 -->
- <div class="client-list-section">
- <div class="section-header">
- <h2 class="section-title">客户分析列表</h2>
- </div>
-
- <div class="search-box">
- <i class="fas fa-search"></i>
- <input type="text" placeholder="搜索客户名称或编号...">
- </div>
-
- <div class="client-list">
- <!-- 客户项 1 -->
- <div class="client-item animated-card">
- <div class="client-info">
- <div class="client-avatar">张</div>
- <div>
- <div class="client-name">张明远</div>
- <div class="client-meta">企业客户 · ID: C1001</div>
- </div>
- </div>
- <div class="client-date">06-28</div>
- </div>
-
- <!-- 客户项 2 -->
- <div class="client-item animated-card">
- <div class="client-info">
- <div class="client-avatar">李</div>
- <div>
- <div class="client-name">李思琪</div>
- <div class="client-meta">个人客户 · ID: P2003</div>
- </div>
- </div>
- <div class="client-date">06-27</div>
- </div>
-
- <!-- 客户项 3 -->
- <div class="client-item animated-card">
- <div class="client-info">
- <div class="client-avatar">王</div>
- <div>
- <div class="client-name">王建国</div>
- <div class="client-meta">企业客户 · ID: C1002</div>
- </div>
- </div>
- <div class="client-date">06-25</div>
- </div>
-
- <!-- 客户项 4 -->
- <div class="client-item animated-card">
- <div class="client-info">
- <div class="client-avatar">陈</div>
- <div>
- <div class="client-name">陈晓薇</div>
- <div class="client-meta">个人客户 · ID: P2004</div>
- </div>
- </div>
- <div class="client-date">06-24</div>
- </div>
- </div>
- </div>
- <!-- 第三部分:智能推荐区 -->
- <div class="recommendation-section">
- <div class="section-header">
- <h2 class="section-title">智能推荐</h2>
- </div>
-
- <div class="recommendation-cards">
- <!-- 推荐卡片 1 -->
- <div class="recommendation-card animated-card">
- <div class="card-header">
- <div class="card-icon">
- <i class="fas fa-user-friends"></i>
- </div>
- <h3 class="card-title">相似客户推荐</h3>
- </div>
- <p class="recommendation-content">
- 根据张明远的画像特征,发现3位相似客户,沟通策略可复用率85%
- </p>
- <div class="recommendation-action">
- <span class="tag">高匹配度</span>
- <button class="action-btn">查看客户</button>
- </div>
- </div>
- <!-- 推荐卡片 2 -->
- <div class="recommendation-card animated-card">
- <div class="card-header">
- <div class="card-icon" style="background: rgba(94, 114, 228, 0.15); color: #5e72e4;">
- <i class="fas fa-clock"></i>
- </div>
- <h3 class="card-title">最佳接触时机</h3>
- </div>
- <p class="recommendation-content">
- 李思琪的下次最佳联系时间:明天上午10:00-11:30,接通率预测92%
- </p>
- <div class="recommendation-action">
- <span class="tag">高接通率</span>
- <button class="action-btn">加入日程</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- // 模拟交互效果
- document.querySelectorAll('.client-item').forEach(item => {
- item.addEventListener('click', function() {
- this.style.transform = 'scale(0.98)';
- setTimeout(() => {
- this.style.transform = '';
- alert('进入客户详情页:' + this.querySelector('.client-name').textContent);
- }, 200);
- });
- });
-
- // 分析按钮点击事件
- document.querySelector('.btn-primary').addEventListener('click', function() {
- const clientId = document.getElementById('client-id').value;
- const clientName = document.getElementById('client-name').value;
- const chatData = document.getElementById('chat-data').value;
-
- if(!clientId || !clientName || !chatData) {
- alert('请填写完整的客户信息和聊天记录');
- return;
- }
-
- alert(`开始分析客户 ${clientName} (${clientId}) 的聊天记录...`);
- });
-
- // 保存按钮点击事件
- document.querySelector('.btn-secondary').addEventListener('click', function() {
- const clientId = document.getElementById('client-id').value;
- const clientName = document.getElementById('client-name').value;
- const chatData = document.getElementById('chat-data').value;
-
- if(!clientId || !clientName || !chatData) {
- alert('请填写完整的客户信息和聊天记录');
- return;
- }
-
- alert(`已保存客户 ${clientName} (${clientId}) 的信息和聊天记录`);
- });
- </script>
- </body>
- </html>
|