story-card.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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>用户故事卡片</title>
  7. <style>
  8. body {
  9. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  10. background-color: #f5f7fa;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. min-height: 100vh;
  15. margin: 0;
  16. padding: 20px;
  17. }
  18. .story-card {
  19. width: 100%;
  20. max-width: 600px;
  21. background: white;
  22. border-radius: 12px;
  23. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  24. overflow: hidden;
  25. transition: transform 0.3s ease;
  26. }
  27. .story-card:hover {
  28. transform: translateY(-5px);
  29. }
  30. .card-header {
  31. background: linear-gradient(135deg, #6e8efb, #a777e3);
  32. color: white;
  33. padding: 20px;
  34. position: relative;
  35. }
  36. .card-header h2 {
  37. margin: 0;
  38. font-size: 22px;
  39. font-weight: 600;
  40. }
  41. .card-header::after {
  42. content: "";
  43. position: absolute;
  44. bottom: -10px;
  45. left: 0;
  46. width: 100%;
  47. height: 20px;
  48. background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="white" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="white"/></svg>');
  49. background-size: cover;
  50. }
  51. .card-body {
  52. padding: 25px;
  53. }
  54. .section {
  55. margin-bottom: 25px;
  56. }
  57. .section-title {
  58. color: #6e8efb;
  59. font-size: 16px;
  60. font-weight: 600;
  61. margin-bottom: 10px;
  62. display: flex;
  63. align-items: center;
  64. }
  65. .section-title svg {
  66. margin-right: 8px;
  67. }
  68. .section-content {
  69. background: #f9f9f9;
  70. border-left: 4px solid #a777e3;
  71. padding: 15px;
  72. border-radius: 0 8px 8px 0;
  73. font-size: 15px;
  74. line-height: 1.6;
  75. color: #555;
  76. }
  77. .user-quote {
  78. font-style: italic;
  79. color: #666;
  80. padding: 15px;
  81. background: #f0f4ff;
  82. border-radius: 8px;
  83. position: relative;
  84. margin: 20px 0;
  85. }
  86. .user-quote::before {
  87. content: """;
  88. font-size: 60px;
  89. color: #a777e3;
  90. opacity: 0.2;
  91. position: absolute;
  92. top: -15px;
  93. left: 5px;
  94. font-family: serif;
  95. }
  96. .metrics {
  97. display: flex;
  98. flex-wrap: wrap;
  99. gap: 10px;
  100. }
  101. .metric {
  102. background: #e8f0fe;
  103. color: #4285f4;
  104. padding: 8px 12px;
  105. border-radius: 20px;
  106. font-size: 13px;
  107. font-weight: 500;
  108. }
  109. </style>
  110. </head>
  111. <body>
  112. <div class="story-card">
  113. <div class="card-header">
  114. <h2>用户故事:快速找到并购买心仪商品</h2>
  115. </div>
  116. <div class="card-body">
  117. <div class="section">
  118. <div class="section-title">
  119. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  120. <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
  121. <circle cx="12" cy="7" r="4"></circle>
  122. </svg>
  123. 用户画像
  124. </div>
  125. <div class="section-content">
  126. <p><strong>姓名:</strong>张丽</p>
  127. <p><strong>年龄:</strong>32岁</p>
  128. <p><strong>职业:</strong>职场妈妈</p>
  129. <p><strong>特点:</strong>工作繁忙,有两个孩子(5岁和8岁),购物时间有限,注重性价比和商品质量</p>
  130. </div>
  131. </div>
  132. <div class="user-quote">
  133. "作为一个忙碌的职场妈妈,我经常需要在午休或孩子睡觉后的有限时间里快速完成购物。我希望能够轻松找到我需要的商品,比较价格和质量,然后快速下单。现在的购物平台商品太多,筛选起来太费时间了!"
  134. </div>
  135. <div class="section">
  136. <div class="section-title">
  137. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  138. <circle cx="12" cy="12" r="10"></circle>
  139. <polyline points="12 6 12 12 16 14"></polyline>
  140. </svg>
  141. 使用场景
  142. </div>
  143. <div class="section-content">
  144. <p>1. 午休时间只有30分钟,想为孩子购买新学期的文具</p>
  145. <p>2. 晚上孩子睡觉后,想为自己选购一件工作穿的衬衫</p>
  146. <p>3. 周末准备家庭聚餐,需要快速购买食材和装饰品</p>
  147. <p>4. 发现孩子长得快,需要紧急购买大一号的校服</p>
  148. </div>
  149. </div>
  150. <div class="section">
  151. <div class="section-title">
  152. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  153. <line x1="12" y1="20" x2="12" y2="10"></line>
  154. <line x1="18" y1="20" x2="18" y2="4"></line>
  155. <line x1="6" y1="20" x2="6" y2="16"></line>
  156. </svg>
  157. 关注指标
  158. </div>
  159. <div class="section-content">
  160. <div class="metrics">
  161. <span class="metric">搜索准确率 ≥90%</span>
  162. <span class="metric">筛选效率提高50%</span>
  163. <span class="metric">平均下单时间 ≤5分钟</span>
  164. <span class="metric">商品详情完整度</span>
  165. <span class="metric">价格比较便捷性</span>
  166. <span class="metric">移动端操作流畅度</span>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. </body>
  173. </html>