TopBar.vue 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413
  1. <template>
  2. <header class="top-bar">
  3. <div class="breadcrumb">
  4. <span class="breadcrumb-item">领存智贸</span>
  5. <i class="fas fa-chevron-right breadcrumb-separator"></i>
  6. <span class="breadcrumb-item active">{{ pageTitle }}</span>
  7. </div>
  8. <div class="top-actions">
  9. <!-- Search -->
  10. <div class="search-box">
  11. <i class="fas fa-search search-icon"></i>
  12. <input type="text" class="search-input" placeholder="搜索客户、订单、商机...">
  13. </div>
  14. <!-- Quick Actions -->
  15. <div class="action-btn" @click="showQuickActions = !showQuickActions" style="position: relative;">
  16. <i class="fas fa-plus"></i>
  17. <!-- Quick Actions Menu -->
  18. <transition name="fade">
  19. <div v-if="showQuickActions" class="task-menu show" style="top: 100%; right: 0; position: absolute; margin-top: 8px;">
  20. <div class="task-menu-item" @click="openModal('prospect')">
  21. <div class="task-menu-icon prospect"><i class="fas fa-search"></i></div>
  22. <div class="task-menu-text">
  23. <h4>AI智能寻客</h4>
  24. <p>全网挖掘高匹配潜客</p>
  25. </div>
  26. </div>
  27. <div class="task-menu-item" @click="openModal('marketing')">
  28. <div class="task-menu-icon marketing"><i class="fas fa-paper-plane"></i></div>
  29. <div class="task-menu-text">
  30. <h4>创建营销活动</h4>
  31. <p>多渠道自动触达客户</p>
  32. </div>
  33. </div>
  34. <div class="task-menu-item" @click="openModal('analysis')">
  35. <div class="task-menu-icon analysis"><i class="fas fa-chart-bar"></i></div>
  36. <div class="task-menu-text">
  37. <h4>生成分析报告</h4>
  38. <p>AI自动生成业务报告</p>
  39. </div>
  40. </div>
  41. </div>
  42. </transition>
  43. </div>
  44. <!-- Notifications -->
  45. <div class="action-btn notification-btn" @click="toggleNotifications" :class="{ active: showNotifications }">
  46. <i class="fas fa-bell"></i>
  47. <span v-if="unreadCount > 0" class="notification-badge">{{ unreadCount > 99 ? '99+' : unreadCount }}</span>
  48. </div>
  49. <!-- Help -->
  50. <div class="action-btn" @click="toggleHelp" :class="{ active: showHelp }">
  51. <i class="fas fa-question-circle"></i>
  52. </div>
  53. </div>
  54. <!-- Notification Panel -->
  55. <transition name="slide-fade">
  56. <div v-if="showNotifications" class="notification-panel">
  57. <!-- Panel Header -->
  58. <div class="panel-header">
  59. <div class="panel-title">
  60. <i class="fas fa-bell"></i>
  61. 消息中心
  62. <span class="unread-count">{{ unreadCount }}条未读</span>
  63. </div>
  64. <div class="panel-actions">
  65. <button class="action-text" @click="markAllAsRead">全部已读</button>
  66. <button class="action-text" @click="showSettings = true">
  67. <i class="fas fa-cog"></i>
  68. </button>
  69. </div>
  70. </div>
  71. <!-- Filter Tabs -->
  72. <div class="panel-tabs">
  73. <div
  74. v-for="tab in notificationTabs"
  75. :key="tab.key"
  76. class="panel-tab"
  77. :class="{ active: activeTab === tab.key }"
  78. @click="activeTab = tab.key"
  79. >
  80. <i :class="tab.icon"></i>
  81. {{ tab.label }}
  82. <span v-if="tab.count > 0" class="tab-count">{{ tab.count }}</span>
  83. </div>
  84. </div>
  85. <!-- Notification List -->
  86. <div class="notification-list" ref="notificationList">
  87. <template v-if="filteredNotifications.length > 0">
  88. <div
  89. v-for="notification in filteredNotifications"
  90. :key="notification.id"
  91. class="notification-item"
  92. :class="{ unread: !notification.read, [notification.type]: true }"
  93. @click="handleNotificationClick(notification)"
  94. >
  95. <div class="notification-icon" :style="{ background: getIconBg(notification.type), color: getIconColor(notification.type) }">
  96. <i :class="notification.icon"></i>
  97. </div>
  98. <div class="notification-content">
  99. <div class="notification-title">{{ notification.title }}</div>
  100. <div class="notification-desc">{{ notification.description }}</div>
  101. <div class="notification-meta">
  102. <span class="notification-time">{{ notification.time }}</span>
  103. <span v-if="notification.source" class="notification-source">
  104. <i :class="notification.sourceIcon"></i>
  105. {{ notification.source }}
  106. </span>
  107. </div>
  108. </div>
  109. <div class="notification-actions">
  110. <button v-if="!notification.read" class="mark-read-btn" @click.stop="markAsRead(notification.id)">
  111. <i class="fas fa-check"></i>
  112. </button>
  113. <button class="more-btn" @click.stop="showNotificationMenu($event, notification)">
  114. <i class="fas fa-ellipsis-v"></i>
  115. </button>
  116. </div>
  117. </div>
  118. </template>
  119. <template v-else>
  120. <div class="empty-state">
  121. <i class="fas fa-inbox"></i>
  122. <p>暂无消息</p>
  123. </div>
  124. </template>
  125. </div>
  126. <!-- Panel Footer -->
  127. <div class="panel-footer">
  128. <button class="btn btn-secondary btn-sm" @click="viewAllNotifications">
  129. <i class="fas fa-list"></i> 查看全部消息
  130. </button>
  131. <button class="btn btn-primary btn-sm" @click="showNotifications = false">
  132. 关闭
  133. </button>
  134. </div>
  135. </div>
  136. </transition>
  137. <!-- Backdrop -->
  138. <div v-if="showNotifications" class="notification-backdrop" @click="showNotifications = false"></div>
  139. <!-- Help Panel -->
  140. <transition name="slide-fade">
  141. <div v-if="showHelp" class="help-panel">
  142. <!-- Panel Header -->
  143. <div class="panel-header">
  144. <div class="panel-title">
  145. <i class="fas fa-question-circle"></i>
  146. 帮助中心
  147. </div>
  148. <button class="modal-close" @click="showHelp = false">
  149. <i class="fas fa-times"></i>
  150. </button>
  151. </div>
  152. <!-- Search -->
  153. <div class="help-search">
  154. <i class="fas fa-search"></i>
  155. <input type="text" v-model="helpSearchQuery" placeholder="搜索帮助文档...">
  156. </div>
  157. <!-- Quick Links -->
  158. <div class="help-section">
  159. <div class="section-title">🚀 快速入门</div>
  160. <div class="quick-links">
  161. <div class="quick-link-card" @click="openHelpArticle('quickstart')">
  162. <div class="quick-link-icon"><i class="fas fa-rocket"></i></div>
  163. <div class="quick-link-content">
  164. <div class="quick-link-title">新手指南</div>
  165. <div class="quick-link-desc">5分钟快速上手</div>
  166. </div>
  167. </div>
  168. <div class="quick-link-card" @click="openHelpArticle('ai-brain')">
  169. <div class="quick-link-icon"><i class="fas fa-brain"></i></div>
  170. <div class="quick-link-content">
  171. <div class="quick-link-title">企业大脑</div>
  172. <div class="quick-link-desc">AI对话式操作</div>
  173. </div>
  174. </div>
  175. <div class="quick-link-card" @click="openHelpArticle('prospect')">
  176. <div class="quick-link-icon"><i class="fas fa-crosshairs"></i></div>
  177. <div class="quick-link-content">
  178. <div class="quick-link-title">自动寻客</div>
  179. <div class="quick-link-desc">智能挖掘潜客</div>
  180. </div>
  181. </div>
  182. <div class="quick-link-card" @click="openHelpArticle('marketing')">
  183. <div class="quick-link-icon"><i class="fas fa-paper-plane"></i></div>
  184. <div class="quick-link-content">
  185. <div class="quick-link-title">自动营销</div>
  186. <div class="quick-link-desc">多渠道触达</div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <!-- FAQ -->
  192. <div class="help-section">
  193. <div class="section-title">❓ 常见问题</div>
  194. <div class="faq-list">
  195. <div
  196. v-for="(faq, index) in filteredFaqs"
  197. :key="index"
  198. class="faq-item"
  199. :class="{ expanded: expandedFaq === index }"
  200. @click="toggleFaq(index)"
  201. >
  202. <div class="faq-question">
  203. <i class="fas fa-chevron-right"></i>
  204. {{ faq.question }}
  205. </div>
  206. <div class="faq-answer" v-html="faq.answer"></div>
  207. </div>
  208. </div>
  209. </div>
  210. <!-- Contact Support -->
  211. <div class="help-section">
  212. <div class="section-title">📞 联系支持</div>
  213. <div class="support-options">
  214. <div class="support-item" @click="openChat">
  215. <i class="fas fa-comments"></i>
  216. <div>
  217. <div class="support-title">在线客服</div>
  218. <div class="support-desc">工作时间实时响应</div>
  219. </div>
  220. </div>
  221. <div class="support-item" @click="sendFeedback">
  222. <i class="fas fa-envelope"></i>
  223. <div>
  224. <div class="support-title">提交反馈</div>
  225. <div class="support-desc">帮助我们改进产品</div>
  226. </div>
  227. </div>
  228. <div class="support-item" @click="openDocs">
  229. <i class="fas fa-book"></i>
  230. <div>
  231. <div class="support-title">完整文档</div>
  232. <div class="support-desc">docs.lingcunai.com</div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <!-- Version Info -->
  238. <div class="help-footer">
  239. <div class="version-info">
  240. <span class="version-badge">v2.3.0</span>
  241. <span>领存智贸 AI CRM</span>
  242. </div>
  243. <div class="footer-links">
  244. <a href="#" @click.prevent="showChangelog">更新日志</a>
  245. <a href="#" @click.prevent="showTerms">服务条款</a>
  246. <a href="#" @click.prevent="showPrivacy">隐私政策</a>
  247. </div>
  248. </div>
  249. </div>
  250. </transition>
  251. <!-- Help Backdrop -->
  252. <div v-if="showHelp" class="help-backdrop" @click="showHelp = false"></div>
  253. <!-- Notification Detail Modal -->
  254. <transition name="fade">
  255. <div v-if="selectedNotification" class="modal-overlay" @click.self="selectedNotification = null">
  256. <div class="modal notification-detail-modal">
  257. <div class="modal-header">
  258. <div class="modal-title">
  259. <div class="title-icon" :style="{ background: getIconBg(selectedNotification.type), color: getIconColor(selectedNotification.type) }">
  260. <i :class="selectedNotification.icon"></i>
  261. </div>
  262. <span>{{ selectedNotification.title }}</span>
  263. </div>
  264. <button class="modal-close" @click="selectedNotification = null">
  265. <i class="fas fa-times"></i>
  266. </button>
  267. </div>
  268. <div class="modal-body">
  269. <div class="detail-time">
  270. <i class="fas fa-clock"></i>
  271. {{ selectedNotification.time }}
  272. </div>
  273. <div class="detail-content" v-html="selectedNotification.detail"></div>
  274. <!-- Quick Actions -->
  275. <div v-if="selectedNotification.actions" class="detail-actions">
  276. <button
  277. v-for="action in selectedNotification.actions"
  278. :key="action.label"
  279. class="btn"
  280. :class="action.primary ? 'btn-primary' : 'btn-secondary'"
  281. @click="handleAction(action)"
  282. >
  283. <i :class="action.icon"></i>
  284. {{ action.label }}
  285. </button>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </transition>
  291. <!-- AI智能寻客弹窗 -->
  292. <transition name="fade">
  293. <div v-if="showProspectModal" class="modal-overlay" @click.self="showProspectModal = false">
  294. <div class="modal business-modal">
  295. <div class="modal-header">
  296. <div class="modal-title">
  297. <div class="title-icon" style="background: rgba(99, 102, 241, 0.2); color: var(--primary);">
  298. <i class="fas fa-search"></i>
  299. </div>
  300. <span>创建AI智能寻客任务</span>
  301. </div>
  302. <button class="modal-close" @click="showProspectModal = false">
  303. <i class="fas fa-times"></i>
  304. </button>
  305. </div>
  306. <div class="modal-body">
  307. <div class="form-group">
  308. <label><i class="fas fa-tag"></i> 任务名称</label>
  309. <div class="input-with-icon">
  310. <i class="fas fa-pen"></i>
  311. <input type="text" v-model="prospectForm.name" placeholder="例如:中东SSD进口商寻客" class="form-input">
  312. </div>
  313. <div class="form-help">
  314. <i class="fas fa-info-circle"></i>
  315. <span>给任务起个清晰的名称,方便后续管理</span>
  316. </div>
  317. </div>
  318. <div class="form-row">
  319. <div class="form-group">
  320. <label><i class="fas fa-map-marker-alt"></i> 目标地区</label>
  321. <select v-model="prospectForm.region" class="form-select">
  322. <option value="middle_east">中东地区</option>
  323. <option value="europe">欧洲地区</option>
  324. <option value="north_america">北美地区</option>
  325. <option value="southeast_asia">东南亚地区</option>
  326. <option value="south_america">南美地区</option>
  327. </select>
  328. </div>
  329. <div class="form-group">
  330. <label><i class="fas fa-box"></i> 产品类型</label>
  331. <select v-model="prospectForm.product" class="form-select">
  332. <option value="ssd">固态硬盘 SSD</option>
  333. <option value="hdd">机械硬盘 HDD</option>
  334. <option value="memory">内存条</option>
  335. <option value="flash">闪存卡</option>
  336. </select>
  337. </div>
  338. </div>
  339. <div class="form-group">
  340. <label><i class="fas fa-dollar-sign"></i> 最小年采购额</label>
  341. <select v-model="prospectForm.minPurchase" class="form-select">
  342. <option value="50000">$50,000+</option>
  343. <option value="100000">$100,000+</option>
  344. <option value="500000">$500,000+</option>
  345. <option value="1000000">$1,000,000+</option>
  346. </select>
  347. </div>
  348. <div class="form-group">
  349. <label><i class="fas fa-bullseye"></i> 寻客渠道 <span style="font-weight:400;color:var(--text-muted);">(多选)</span></label>
  350. <div class="checkbox-group">
  351. <label class="checkbox-item">
  352. <input type="checkbox" v-model="prospectForm.channels" value="linkedin">
  353. <span><i class="fab fa-linkedin"></i> LinkedIn</span>
  354. </label>
  355. <label class="checkbox-item">
  356. <input type="checkbox" v-model="prospectForm.channels" value="email">
  357. <span><i class="fas fa-envelope"></i> 企业邮箱</span>
  358. </label>
  359. <label class="checkbox-item">
  360. <input type="checkbox" v-model="prospectForm.channels" value="website">
  361. <span><i class="fas fa-globe"></i> 官网访客</span>
  362. </label>
  363. <label class="checkbox-item">
  364. <input type="checkbox" v-model="prospectForm.channels" value="trade">
  365. <span><i class="fas fa-handshake"></i> 展会数据</span>
  366. </label>
  367. </div>
  368. </div>
  369. <div class="form-group">
  370. <label class="toggle-label">
  371. <input type="checkbox" v-model="prospectForm.autoFollowUp">
  372. <span class="toggle-switch"></span>
  373. <span>找到潜客后自动启动营销跟进</span>
  374. </label>
  375. </div>
  376. <div class="form-actions">
  377. <button class="btn btn-secondary" @click="showProspectModal = false">取消</button>
  378. <button class="btn btn-primary" @click="createProspectTask">
  379. <i class="fas fa-rocket"></i> 开始寻客
  380. </button>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. </transition>
  386. <!-- 创建营销活动弹窗 -->
  387. <transition name="fade">
  388. <div v-if="showMarketingModal" class="modal-overlay" @click.self="showMarketingModal = false">
  389. <div class="modal business-modal">
  390. <div class="modal-header">
  391. <div class="modal-title">
  392. <div class="title-icon" style="background: rgba(16, 185, 129, 0.2); color: var(--success);">
  393. <i class="fas fa-paper-plane"></i>
  394. </div>
  395. <span>创建营销活动</span>
  396. </div>
  397. <button class="modal-close" @click="showMarketingModal = false">
  398. <i class="fas fa-times"></i>
  399. </button>
  400. </div>
  401. <div class="modal-body">
  402. <div class="form-group">
  403. <label><i class="fas fa-tag"></i> 活动名称</label>
  404. <div class="input-with-icon">
  405. <i class="fas fa-pen"></i>
  406. <input type="text" v-model="marketingForm.name" placeholder="例如:中东新客户开发" class="form-input">
  407. </div>
  408. </div>
  409. <div class="form-row">
  410. <div class="form-group">
  411. <label><i class="fas fa-users"></i> 目标客户群</label>
  412. <select v-model="marketingForm.targetGroup" class="form-select">
  413. <option value="new_prospects">本月新增潜客</option>
  414. <option value="high_score">高评分潜客 (80分以上)</option>
  415. <option value="uncontacted">未联系潜客</option>
  416. <option value="dormant">沉睡客户唤醒</option>
  417. <option value="custom">自定义分组</option>
  418. </select>
  419. </div>
  420. <div class="form-group">
  421. <label><i class="fas fa-stream"></i> 营销序列</label>
  422. <select v-model="marketingForm.sequence" class="form-select">
  423. <option value="new_customer">新客户开发序列</option>
  424. <option value="follow_up">跟进培育序列</option>
  425. <option value="reactivation">客户唤醒序列</option>
  426. <option value="promotion">促销推广序列</option>
  427. </select>
  428. </div>
  429. </div>
  430. <div class="form-group">
  431. <label>营销渠道</label>
  432. <div class="checkbox-group">
  433. <label class="checkbox-item">
  434. <input type="checkbox" v-model="marketingForm.channels" value="email">
  435. <span><i class="fas fa-envelope"></i> 邮件营销</span>
  436. </label>
  437. <label class="checkbox-item">
  438. <input type="checkbox" v-model="marketingForm.channels" value="linkedin">
  439. <span><i class="fab fa-linkedin"></i> LinkedIn</span>
  440. </label>
  441. <label class="checkbox-item">
  442. <input type="checkbox" v-model="marketingForm.channels" value="whatsapp">
  443. <span><i class="fab fa-whatsapp"></i> WhatsApp</span>
  444. </label>
  445. </div>
  446. </div>
  447. <div class="form-group">
  448. <label>发送时间</label>
  449. <div class="radio-group">
  450. <label class="radio-item">
  451. <input type="radio" v-model="marketingForm.schedule" value="immediate">
  452. <span>立即开始</span>
  453. </label>
  454. <label class="radio-item">
  455. <input type="radio" v-model="marketingForm.schedule" value="tomorrow">
  456. <span>明天上午10点</span>
  457. </label>
  458. <label class="radio-item">
  459. <input type="radio" v-model="marketingForm.schedule" value="custom">
  460. <span>自定义时间</span>
  461. </label>
  462. </div>
  463. </div>
  464. <div class="form-group">
  465. <label class="toggle-label">
  466. <input type="checkbox" v-model="marketingForm.aiOptimize">
  467. <span class="toggle-switch"></span>
  468. <span>启用AI优化(自动选择最佳发送时间和内容)</span>
  469. </label>
  470. </div>
  471. <div class="form-actions">
  472. <button class="btn btn-secondary" @click="showMarketingModal = false">取消</button>
  473. <button class="btn btn-primary" @click="createMarketingCampaign">
  474. <i class="fas fa-paper-plane"></i> 创建活动
  475. </button>
  476. </div>
  477. </div>
  478. </div>
  479. </div>
  480. </transition>
  481. <!-- 生成分析报告弹窗 -->
  482. <transition name="fade">
  483. <div v-if="showReportModal" class="modal-overlay" @click.self="showReportModal = false">
  484. <div class="modal business-modal">
  485. <div class="modal-header">
  486. <div class="modal-title">
  487. <div class="title-icon" style="background: rgba(245, 158, 11, 0.2); color: var(--warning);">
  488. <i class="fas fa-chart-bar"></i>
  489. </div>
  490. <span>生成分析报告</span>
  491. </div>
  492. <button class="modal-close" @click="showReportModal = false">
  493. <i class="fas fa-times"></i>
  494. </button>
  495. </div>
  496. <div class="modal-body">
  497. <div class="form-group">
  498. <label><i class="fas fa-tag"></i> 报告名称</label>
  499. <div class="input-with-icon">
  500. <i class="fas fa-pen"></i>
  501. <input type="text" v-model="reportForm.name" placeholder="例如:2026年3月业务分析报告" class="form-input">
  502. </div>
  503. </div>
  504. <div class="form-row">
  505. <div class="form-group">
  506. <label>报告类型</label>
  507. <select v-model="reportForm.type" class="form-select">
  508. <option value="weekly">周报</option>
  509. <option value="monthly">月报</option>
  510. <option value="quarterly">季报</option>
  511. <option value="custom">自定义时间段</option>
  512. </select>
  513. </div>
  514. <div class="form-group">
  515. <label>数据范围</label>
  516. <select v-model="reportForm.scope" class="form-select">
  517. <option value="all">全部业务</option>
  518. <option value="prospect">寻客数据</option>
  519. <option value="marketing">营销数据</option>
  520. <option value="sales">销售数据</option>
  521. <option value="customer">客户数据</option>
  522. </select>
  523. </div>
  524. </div>
  525. <div class="form-group">
  526. <label><i class="fas fa-layer-group"></i> 分析维度 <span style="font-weight:400;color:var(--text-muted);">(多选)</span></label>
  527. <div class="checkbox-group">
  528. <label class="checkbox-item">
  529. <input type="checkbox" v-model="reportForm.metrics" value="revenue">
  530. <span><i class="fas fa-dollar-sign"></i> 营收分析</span>
  531. </label>
  532. <label class="checkbox-item">
  533. <input type="checkbox" v-model="reportForm.metrics" value="conversion">
  534. <span><i class="fas fa-chart-line"></i> 转化漏斗</span>
  535. </label>
  536. <label class="checkbox-item">
  537. <input type="checkbox" v-model="reportForm.metrics" value="pipeline">
  538. <span><i class="fas fa-tasks"></i> 商机管道</span>
  539. </label>
  540. <label class="checkbox-item">
  541. <input type="checkbox" v-model="reportForm.metrics" value="customer">
  542. <span><i class="fas fa-users"></i> 客户画像</span>
  543. </label>
  544. <label class="checkbox-item">
  545. <input type="checkbox" v-model="reportForm.metrics" value="marketing">
  546. <span><i class="fas fa-paper-plane"></i> 营销效果</span>
  547. </label>
  548. <label class="checkbox-item">
  549. <input type="checkbox" v-model="reportForm.metrics" value="trend">
  550. <span><i class="fas fa-chart-area"></i> 趋势预测</span>
  551. </label>
  552. </div>
  553. </div>
  554. <div class="form-row">
  555. <div class="form-group">
  556. <label><i class="fas fa-file-alt"></i> 报告格式</label>
  557. <div class="radio-group">
  558. <label class="radio-item">
  559. <input type="radio" v-model="reportForm.format" value="pdf">
  560. <span><i class="fas fa-file-pdf"></i> PDF</span>
  561. </label>
  562. <label class="radio-item">
  563. <input type="radio" v-model="reportForm.format" value="excel">
  564. <span><i class="fas fa-file-excel"></i> Excel</span>
  565. </label>
  566. <label class="radio-item">
  567. <input type="radio" v-model="reportForm.format" value="ppt">
  568. <span><i class="fas fa-file-powerpoint"></i> PPT</span>
  569. </label>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="form-group">
  574. <label class="toggle-label">
  575. <input type="checkbox" v-model="reportForm.includeAI">
  576. <span class="toggle-switch"></span>
  577. <span>包含AI洞察和建议</span>
  578. </label>
  579. </div>
  580. <div class="form-group" v-if="reportForm.includeAI">
  581. <div class="ai-features">
  582. <div class="ai-feature-item">
  583. <i class="fas fa-lightbulb"></i>
  584. <span>智能发现业务机会和风险点</span>
  585. </div>
  586. <div class="ai-feature-item">
  587. <i class="fas fa-chart-line"></i>
  588. <span>基于历史数据的趋势预测</span>
  589. </div>
  590. <div class="ai-feature-item">
  591. <i class="fas fa-bullseye"></i>
  592. <span>可执行的优化建议</span>
  593. </div>
  594. </div>
  595. </div>
  596. <div class="form-actions">
  597. <button class="btn btn-secondary" @click="showReportModal = false">取消</button>
  598. <button class="btn btn-primary" @click="generateReport">
  599. <i class="fas fa-magic"></i> 生成报告
  600. </button>
  601. </div>
  602. </div>
  603. </div>
  604. </div>
  605. </transition>
  606. </header>
  607. </template>
  608. <script setup>
  609. import { ref, computed } from 'vue'
  610. import { useRoute } from 'vue-router'
  611. const route = useRoute()
  612. const showQuickActions = ref(false)
  613. const showNotifications = ref(false)
  614. const showHelp = ref(false)
  615. const showSettings = ref(false)
  616. // 业务创建弹窗
  617. const showProspectModal = ref(false)
  618. const showMarketingModal = ref(false)
  619. const showReportModal = ref(false)
  620. // 寻客表单
  621. const prospectForm = ref({
  622. name: '',
  623. region: 'middle_east',
  624. product: 'ssd',
  625. minPurchase: '100000',
  626. channels: ['linkedin', 'email'],
  627. autoFollowUp: true
  628. })
  629. // 营销表单
  630. const marketingForm = ref({
  631. name: '',
  632. targetGroup: 'new_prospects',
  633. sequence: 'new_customer',
  634. channels: ['email', 'linkedin'],
  635. schedule: 'immediate',
  636. aiOptimize: true
  637. })
  638. // 报告表单
  639. const reportForm = ref({
  640. name: '',
  641. type: 'weekly',
  642. scope: 'all',
  643. metrics: ['revenue', 'conversion', 'pipeline'],
  644. format: 'pdf',
  645. includeAI: true,
  646. schedule: null
  647. })
  648. const activeTab = ref('all')
  649. const selectedNotification = ref(null)
  650. const notificationList = ref(null)
  651. const helpSearchQuery = ref('')
  652. const expandedFaq = ref(null)
  653. const pageTitle = computed(() => {
  654. const titles = {
  655. '/': '企业大脑',
  656. '/prospect': '自动寻客',
  657. '/marketing': '自动营销',
  658. '/customers': '客户池',
  659. '/opportunities': '商机管理',
  660. '/orders': '订单跟进',
  661. '/analysis': '经营分析',
  662. '/market': '市场情报',
  663. '/strategy': 'AI策略中心',
  664. '/risk': '风险风控',
  665. '/knowledge': '知识库',
  666. '/settings': '设置'
  667. }
  668. return titles[route.path] || '企业大脑'
  669. })
  670. const openModal = (type) => {
  671. showQuickActions.value = false
  672. if (type === 'prospect') {
  673. showProspectModal.value = true
  674. } else if (type === 'marketing') {
  675. showMarketingModal.value = true
  676. } else if (type === 'analysis') {
  677. showReportModal.value = true
  678. }
  679. }
  680. // 创建寻客任务
  681. const createProspectTask = () => {
  682. if (!prospectForm.value.name.trim()) {
  683. alert('请输入任务名称')
  684. return
  685. }
  686. console.log('创建寻客任务:', prospectForm.value)
  687. showProspectModal.value = false
  688. // 重置表单
  689. prospectForm.value = {
  690. name: '',
  691. region: 'middle_east',
  692. product: 'ssd',
  693. minPurchase: '100000',
  694. channels: ['linkedin', 'email'],
  695. autoFollowUp: true
  696. }
  697. // 可以添加成功提示
  698. alert('寻客任务已创建,AI开始全网挖掘潜客...')
  699. }
  700. // 创建营销活动
  701. const createMarketingCampaign = () => {
  702. if (!marketingForm.value.name.trim()) {
  703. alert('请输入活动名称')
  704. return
  705. }
  706. console.log('创建营销活动:', marketingForm.value)
  707. showMarketingModal.value = false
  708. // 重置表单
  709. marketingForm.value = {
  710. name: '',
  711. targetGroup: 'new_prospects',
  712. sequence: 'new_customer',
  713. channels: ['email', 'linkedin'],
  714. schedule: 'immediate',
  715. aiOptimize: true
  716. }
  717. alert('营销活动已创建,系统将自动执行营销序列...')
  718. }
  719. // 生成分析报告
  720. const generateReport = () => {
  721. if (!reportForm.value.name.trim()) {
  722. alert('请输入报告名称')
  723. return
  724. }
  725. console.log('生成报告:', reportForm.value)
  726. showReportModal.value = false
  727. // 重置表单
  728. reportForm.value = {
  729. name: '',
  730. type: 'weekly',
  731. scope: 'all',
  732. metrics: ['revenue', 'conversion', 'pipeline'],
  733. format: 'pdf',
  734. includeAI: true,
  735. schedule: null
  736. }
  737. alert('报告生成中,完成后将发送至您的邮箱...')
  738. }
  739. const toggleNotifications = () => {
  740. showNotifications.value = !showNotifications.value
  741. if (showNotifications.value) showHelp.value = false
  742. }
  743. const toggleHelp = () => {
  744. showHelp.value = !showHelp.value
  745. if (showHelp.value) showNotifications.value = false
  746. }
  747. // Notification data
  748. const notifications = ref([
  749. // 客户回复
  750. {
  751. id: 1,
  752. type: 'reply',
  753. icon: 'fas fa-reply',
  754. title: 'Riyadh Tech 回复了邮件',
  755. description: '对方对您的产品报价表示感兴趣,希望进一步了解交期和付款方式',
  756. detail: '<p>客户 Ahmed Al-Rashid 回复了您的报价邮件:</p><blockquote style="border-left:3px solid var(--primary);padding-left:12px;margin:12px 0;color:var(--text-secondary);">您好,我们对贵公司的SSD产品很感兴趣。请问MOQ是多少?交期大概多久?付款方式有哪些?</blockquote><p>建议尽快回复客户,可以提供详细的报价单和公司介绍。</p>',
  757. time: '5分钟前',
  758. source: '邮件',
  759. sourceIcon: 'fas fa-envelope',
  760. read: false,
  761. actions: [
  762. { label: '立即回复', icon: 'fas fa-reply', primary: true },
  763. { label: '查看邮件', icon: 'fas fa-envelope-open' },
  764. { label: '添加到跟进', icon: 'fas fa-plus' }
  765. ]
  766. },
  767. {
  768. id: 2,
  769. type: 'reply',
  770. icon: 'fab fa-whatsapp',
  771. title: 'Dubai Storage WhatsApp 已读',
  772. description: '您发送的消息已被查看,对方正在输入中...',
  773. detail: '<p>客户 Mohammed Khan 已读您的 WhatsApp 消息,显示对方正在输入回复。</p><p>消息内容:关于企业级SSD采购的询价</p>',
  774. time: '15分钟前',
  775. source: 'WhatsApp',
  776. sourceIcon: 'fab fa-whatsapp',
  777. read: false
  778. },
  779. {
  780. id: 3,
  781. type: 'reply',
  782. icon: 'fab fa-linkedin',
  783. title: 'LinkedIn 好友请求被接受',
  784. description: 'Kuwait Data Systems 的 CIO Faisal 接受了您的好友请求',
  785. detail: '<p>Faisal Al-Mutairi (CTO @ Kuwait Data Systems) 接受了您的 LinkedIn 连接请求。</p><p>建议:发送个性化感谢消息,介绍公司和产品。</p>',
  786. time: '1小时前',
  787. source: 'LinkedIn',
  788. sourceIcon: 'fab fa-linkedin',
  789. read: true
  790. },
  791. // 风险预警
  792. {
  793. id: 4,
  794. type: 'risk',
  795. icon: 'fas fa-exclamation-triangle',
  796. title: '⚠️ 高风险预警:客户信用下调',
  797. description: 'ABC Corp 信用评级从 A 下调至 B,建议提高预付款比例',
  798. detail: '<p><strong>风险等级:高</strong></p><p>客户 ABC Corp 的信用评级发生变动:</p><ul><li>原评级:A</li><li>新评级:B</li><li>原因:近期财务状况恶化</li></ul><p><strong>建议措施:</strong></p><ul><li>提高预付款比例至 50%</li><li>缩短付款周期</li><li>关注后续订单风险</li></ul>',
  799. time: '30分钟前',
  800. source: '风控系统',
  801. sourceIcon: 'fas fa-shield-alt',
  802. read: false,
  803. actions: [
  804. { label: '查看详情', icon: 'fas fa-info-circle', primary: true },
  805. { label: '调整付款条件', icon: 'fas fa-edit' }
  806. ]
  807. },
  808. {
  809. id: 5,
  810. type: 'risk',
  811. icon: 'fas fa-gavel',
  812. title: '欧盟能效新规即将生效',
  813. description: '2026年7月生效,涉及SSD产品能效认证要求',
  814. detail: '<p><strong>法规更新提醒</strong></p><p>欧盟委员会发布新的能效认证要求,将于2026年7月1日正式生效。</p><p><strong>影响范围:</strong></p><ul><li>所有出口欧盟的SSD产品</li><li>需要提供能效测试报告</li><li>认证周期约30天</li></ul><p><strong>建议:</strong>提前准备相关认证材料。</p>',
  815. time: '2小时前',
  816. source: '市场情报',
  817. sourceIcon: 'fas fa-globe',
  818. read: false
  819. },
  820. // AI情报
  821. {
  822. id: 6,
  823. type: 'ai',
  824. icon: 'fas fa-robot',
  825. title: '🤖 AI发现新商机',
  826. description: '识别到新加坡 Digital Hub 近期频繁访问官网定价页面',
  827. detail: '<p><strong>AI商机分析报告</strong></p><p>客户行为分析:</p><ul><li>过去7天访问定价页面 12 次</li><li>查看企业级SSD产品详情 8 次</li><li>下载产品手册 2 次</li></ul><p><strong>AI建议:</strong>该客户意向度高,建议尽快主动联系。</p>',
  828. time: '45分钟前',
  829. source: 'AI大脑',
  830. sourceIcon: 'fas fa-brain',
  831. read: false,
  832. actions: [
  833. { label: '立即联系', icon: 'fas fa-phone', primary: true },
  834. { label: '发送报价', icon: 'fas fa-file-invoice' }
  835. ]
  836. },
  837. {
  838. id: 7,
  839. type: 'ai',
  840. icon: 'fas fa-lightbulb',
  841. title: '💡 AI策略建议',
  842. description: '基于近期数据分析,建议调整中东地区邮件发送时间',
  843. detail: '<p><strong>策略优化建议</strong></p><p>AI分析了过去30天的邮件数据,发现:</p><ul><li>中东客户最佳回复时段:晚上8-10点</li><li>当前发送时段:上午10点</li><li>预计调整后回复率提升:52%</li></ul><p>是否应用此策略?</p>',
  844. time: '3小时前',
  845. source: 'AI策略中心',
  846. sourceIcon: 'fas fa-lightbulb',
  847. read: true,
  848. actions: [
  849. { label: '应用策略', icon: 'fas fa-check', primary: true },
  850. { label: '查看详情', icon: 'fas fa-chart-bar' }
  851. ]
  852. },
  853. // 营销报告
  854. {
  855. id: 8,
  856. type: 'marketing',
  857. icon: 'fas fa-chart-line',
  858. title: '📊 周度营销报告已生成',
  859. description: '本周发送邮件 1,247 封,打开率 42%,回复率 18%',
  860. detail: '<p><strong>本周营销数据汇总</strong></p><table style="width:100%;border-collapse:collapse;margin:12px 0;"><tr style="border-bottom:1px solid var(--border)"><td style="padding:8px 0;">邮件发送</td><td style="text-align:right;font-weight:600;">1,247 封</td></tr><tr style="border-bottom:1px solid var(--border)"><td style="padding:8px 0;">打开率</td><td style="text-align:right;font-weight:600;color:var(--success)">42% (+8%)</td></tr><tr style="border-bottom:1px solid var(--border)"><td style="padding:8px 0;">回复率</td><td style="text-align:right;font-weight:600;color:var(--success)">18% (+5%)</td></tr><tr><td style="padding:8px 0;">新增商机</td><td style="text-align:right;font-weight:600;">23 个</td></tr></table><p>详细报告已发送至您的邮箱。</p>',
  861. time: '今天 09:00',
  862. source: '自动报告',
  863. sourceIcon: 'fas fa-file-alt',
  864. read: true,
  865. actions: [
  866. { label: '查看完整报告', icon: 'fas fa-file-pdf', primary: true }
  867. ]
  868. },
  869. {
  870. id: 9,
  871. type: 'marketing',
  872. icon: 'fas fa-check-circle',
  873. title: '✅ 营销活动完成',
  874. description: '中东潜客开发活动已完成,共触达 156 位客户',
  875. detail: '<p><strong>活动执行报告</strong></p><p>活动名称:中东潜客开发</p><p>执行时间:2026-03-12 ~ 2026-03-19</p><p><strong>执行结果:</strong></p><ul><li>目标客户:156 位</li><li>邮件送达:152 封 (97%)</li><li>邮件打开:68 封 (45%)</li><li>客户回复:12 封 (8%)</li><li>意向客户:5 位</li></ul>',
  876. time: '昨天 18:30',
  877. source: '营销系统',
  878. sourceIcon: 'fas fa-paper-plane',
  879. read: true
  880. },
  881. // 寻客通知
  882. {
  883. id: 10,
  884. type: 'prospect',
  885. icon: 'fas fa-user-plus',
  886. title: '🎯 发现 12 个高匹配潜客',
  887. description: '基于您的历史成交客户,AI 推荐 12 个相似潜客',
  888. detail: '<p><strong>AI寻客报告</strong></p><p>寻客条件:中东地区 + SSD进口商</p><p><strong>推荐潜客 TOP 3:</strong></p><ol><li>Riyadh Tech Distribution (92分)</li><li>Dubai Storage Solutions (88分)</li><li>Saudi Digital Hub (76分)</li></ol><p>点击查看完整列表。</p>',
  889. time: '今天 14:30',
  890. source: '自动寻客',
  891. sourceIcon: 'fas fa-crosshairs',
  892. read: false,
  893. actions: [
  894. { label: '查看潜客列表', icon: 'fas fa-list', primary: true },
  895. { label: '发送营销邮件', icon: 'fas fa-paper-plane' }
  896. ]
  897. },
  898. {
  899. id: 11,
  900. type: 'prospect',
  901. icon: 'fas fa-search',
  902. title: '寻客任务更新',
  903. description: '欧洲企业级存储寻客任务进度 75%,已发现 45 家目标公司',
  904. detail: '<p><strong>任务进度更新</strong></p><p>任务名称:欧洲企业级存储寻客</p><p>当前进度:75%</p><p><strong>已发现:</strong></p><ul><li>目标公司:45 家</li><li>关键人信息:28 位</li><li>高匹配度:12 家</li></ul>',
  905. time: '今天 11:20',
  906. source: '寻客任务',
  907. sourceIcon: 'fas fa-tasks',
  908. read: true
  909. },
  910. // 系统通知
  911. {
  912. id: 12,
  913. type: 'system',
  914. icon: 'fas fa-cog',
  915. title: '系统更新通知',
  916. description: '领存智贸 AI 已更新至 v2.3,新增策略自进化功能',
  917. detail: '<p><strong>版本更新 v2.3</strong></p><p><strong>新增功能:</strong></p><ul><li>AI策略自进化 - 自动测试优化营销策略</li><li>智能跟进提醒 - 基于客户行为预测最佳跟进时机</li><li>知识库问答优化 - 支持更多行业知识</li></ul><p><strong>优化:</strong></p><ul><li>邮件生成速度提升 30%</li><li>潜客匹配准确率提升 15%</li></ul>',
  918. time: '昨天 10:00',
  919. source: '系统',
  920. sourceIcon: 'fas fa-server',
  921. read: true
  922. }
  923. ])
  924. // Computed
  925. const notificationTabs = computed(() => [
  926. { key: 'all', label: '全部', icon: 'fas fa-inbox', count: notifications.value.filter(n => !n.read).length },
  927. { key: 'reply', label: '客户回复', icon: 'fas fa-reply', count: notifications.value.filter(n => n.type === 'reply' && !n.read).length },
  928. { key: 'risk', label: '风险预警', icon: 'fas fa-exclamation-triangle', count: notifications.value.filter(n => n.type === 'risk' && !n.read).length },
  929. { key: 'ai', label: 'AI情报', icon: 'fas fa-robot', count: notifications.value.filter(n => n.type === 'ai' && !n.read).length },
  930. { key: 'marketing', label: '营销报告', icon: 'fas fa-chart-line', count: notifications.value.filter(n => n.type === 'marketing' && !n.read).length }
  931. ])
  932. const unreadCount = computed(() => notifications.value.filter(n => !n.read).length)
  933. const filteredNotifications = computed(() => {
  934. if (activeTab.value === 'all') return notifications.value
  935. return notifications.value.filter(n => n.type === activeTab.value)
  936. })
  937. // Methods
  938. const getIconBg = (type) => {
  939. const map = {
  940. reply: 'rgba(99, 102, 241, 0.2)',
  941. risk: 'rgba(239, 68, 68, 0.2)',
  942. ai: 'rgba(139, 92, 246, 0.2)',
  943. marketing: 'rgba(16, 185, 129, 0.2)',
  944. prospect: 'rgba(245, 158, 11, 0.2)',
  945. system: 'rgba(148, 163, 184, 0.2)'
  946. }
  947. return map[type] || 'rgba(99, 102, 241, 0.2)'
  948. }
  949. const getIconColor = (type) => {
  950. const map = {
  951. reply: 'var(--primary)',
  952. risk: 'var(--danger)',
  953. ai: 'var(--secondary)',
  954. marketing: 'var(--success)',
  955. prospect: 'var(--warning)',
  956. system: 'var(--text-secondary)'
  957. }
  958. return map[type] || 'var(--primary)'
  959. }
  960. const handleNotificationClick = (notification) => {
  961. if (!notification.read) {
  962. notification.read = true
  963. }
  964. selectedNotification.value = notification
  965. }
  966. const markAsRead = (id) => {
  967. const notification = notifications.value.find(n => n.id === id)
  968. if (notification) {
  969. notification.read = true
  970. }
  971. }
  972. const markAllAsRead = () => {
  973. notifications.value.forEach(n => n.read = true)
  974. }
  975. const viewAllNotifications = () => {
  976. showNotifications.value = false
  977. // Navigate to notifications page
  978. }
  979. const showNotificationMenu = (event, notification) => {
  980. // Show context menu
  981. }
  982. const handleAction = (action) => {
  983. console.log('Action:', action)
  984. selectedNotification.value = null
  985. }
  986. // Help Center
  987. const faqs = ref([
  988. {
  989. question: '如何使用AI企业大脑进行智能寻客?',
  990. answer: '<p>在"企业大脑"对话框中直接输入您的需求,例如:</p><ul><li>"帮我找中东地区的SSD进口商"</li><li>"寻找年采购额超过100万的潜客"</li><li>"推荐与ABC公司类似的客户"</li></ul><p>AI会自动分析并推荐高匹配度潜客。</p>'
  991. },
  992. {
  993. question: '邮件营销如何设置自动跟进?',
  994. answer: '<p>创建营销活动时,系统会自动生成SOP序列:</p><ol><li>Day 1: 首次触达邮件</li><li>Day 3: 未打开则重发</li><li>Day 7: 发送跟进内容</li></ol><p>您也可以在"自动营销"中自定义跟进节奏。</p>'
  995. },
  996. {
  997. question: '如何提高邮件打开率和回复率?',
  998. answer: '<p>AI策略中心已分析出最佳实践:</p><ul><li>发送时间:周二上午10点效果最佳</li><li>标题优化:包含具体数字提升42%</li><li>个性化:根据客户官网内容定制开场</li><li>跟进时机:第3天和第7天是最佳时机</li></ul>'
  999. },
  1000. {
  1001. question: '如何管理客户信息和跟进记录?',
  1002. answer: '<p>客户池支持完整的客户生命周期管理:</p><ul><li>自动同步邮件、WhatsApp、LinkedIn沟通记录</li><li>客户标签和评分系统</li><li>商机阶段追踪</li><li>订单和付款管理</li></ul>'
  1003. },
  1004. {
  1005. question: 'AI策略中心是如何工作的?',
  1006. answer: '<p>AI策略中心通过分析您的业务数据:</p><ol><li>分析邮件发送和回复数据</li><li>识别最优触达时机和话术</li><li>自动生成策略建议</li><li>支持一键应用策略</li></ol><p>系统会持续学习并优化策略。</p>'
  1007. },
  1008. {
  1009. question: '如何配置邮件和社交媒体账号?',
  1010. answer: '<p>前往"设置" → "账号绑定":</p><ul><li>邮件:支持Gmail、Outlook、企业邮箱</li><li>WhatsApp:绑定WhatsApp Business账号</li><li>LinkedIn:绑定LinkedIn个人或企业账号</li></ul><p>绑定后系统会自动同步沟通记录。</p>'
  1011. }
  1012. ])
  1013. const filteredFaqs = computed(() => {
  1014. if (!helpSearchQuery.value) return faqs.value
  1015. const query = helpSearchQuery.value.toLowerCase()
  1016. return faqs.value.filter(f =>
  1017. f.question.toLowerCase().includes(query) ||
  1018. f.answer.toLowerCase().includes(query)
  1019. )
  1020. })
  1021. const toggleFaq = (index) => {
  1022. expandedFaq.value = expandedFaq.value === index ? null : index
  1023. }
  1024. const openHelpArticle = (article) => {
  1025. console.log('Open article:', article)
  1026. showHelp.value = false
  1027. }
  1028. const openChat = () => {
  1029. console.log('Open chat support')
  1030. showHelp.value = false
  1031. }
  1032. const sendFeedback = () => {
  1033. console.log('Send feedback')
  1034. showHelp.value = false
  1035. }
  1036. const openDocs = () => {
  1037. window.open('https://docs.lingcunai.com', '_blank')
  1038. showHelp.value = false
  1039. }
  1040. const showChangelog = () => {
  1041. console.log('Show changelog')
  1042. }
  1043. const showTerms = () => {
  1044. console.log('Show terms')
  1045. }
  1046. const showPrivacy = () => {
  1047. console.log('Show privacy')
  1048. }
  1049. </script>
  1050. <style scoped>
  1051. .top-bar {
  1052. display: flex;
  1053. align-items: center;
  1054. justify-content: space-between;
  1055. padding: 12px 24px;
  1056. background: var(--bg-card);
  1057. border-bottom: 1px solid var(--border);
  1058. position: relative;
  1059. }
  1060. .breadcrumb {
  1061. display: flex;
  1062. align-items: center;
  1063. gap: 8px;
  1064. font-size: 13px;
  1065. }
  1066. .breadcrumb-item {
  1067. color: var(--text-secondary);
  1068. }
  1069. .breadcrumb-item.active {
  1070. color: var(--text-primary);
  1071. }
  1072. .breadcrumb-separator {
  1073. color: var(--text-muted);
  1074. font-size: 10px;
  1075. }
  1076. .top-actions {
  1077. display: flex;
  1078. align-items: center;
  1079. gap: 12px;
  1080. }
  1081. .search-box {
  1082. position: relative;
  1083. width: 280px;
  1084. }
  1085. .search-icon {
  1086. position: absolute;
  1087. left: 12px;
  1088. top: 50%;
  1089. transform: translateY(-50%);
  1090. color: var(--text-muted);
  1091. font-size: 14px;
  1092. }
  1093. .search-input {
  1094. width: 100%;
  1095. padding: 8px 12px 8px 36px;
  1096. background: var(--bg-hover);
  1097. border: 1px solid var(--border);
  1098. border-radius: 8px;
  1099. color: var(--text-primary);
  1100. font-size: 13px;
  1101. }
  1102. .search-input::placeholder {
  1103. color: var(--text-muted);
  1104. }
  1105. .search-input:focus {
  1106. outline: none;
  1107. border-color: var(--primary);
  1108. }
  1109. .action-btn {
  1110. width: 36px;
  1111. height: 36px;
  1112. background: var(--bg-hover);
  1113. border: 1px solid var(--border);
  1114. border-radius: 8px;
  1115. display: flex;
  1116. align-items: center;
  1117. justify-content: center;
  1118. cursor: pointer;
  1119. color: var(--text-secondary);
  1120. transition: all 0.2s;
  1121. position: relative;
  1122. }
  1123. .action-btn:hover {
  1124. background: var(--border);
  1125. color: var(--text-primary);
  1126. }
  1127. .action-btn.active {
  1128. background: var(--primary);
  1129. color: white;
  1130. border-color: var(--primary);
  1131. }
  1132. /* Notification Badge */
  1133. .notification-badge {
  1134. position: absolute;
  1135. top: -4px;
  1136. right: -4px;
  1137. min-width: 18px;
  1138. height: 18px;
  1139. background: var(--danger);
  1140. color: white;
  1141. font-size: 10px;
  1142. font-weight: 600;
  1143. border-radius: 9px;
  1144. display: flex;
  1145. align-items: center;
  1146. justify-content: center;
  1147. padding: 0 4px;
  1148. }
  1149. /* Notification Panel */
  1150. .notification-backdrop {
  1151. position: fixed;
  1152. top: 0;
  1153. left: 0;
  1154. right: 0;
  1155. bottom: 0;
  1156. z-index: 999;
  1157. }
  1158. .notification-panel {
  1159. position: absolute;
  1160. top: 100%;
  1161. right: 24px;
  1162. width: 420px;
  1163. max-height: 600px;
  1164. background: var(--bg-card);
  1165. border: 1px solid var(--border);
  1166. border-radius: 12px;
  1167. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  1168. display: flex;
  1169. flex-direction: column;
  1170. z-index: 1000;
  1171. margin-top: 8px;
  1172. }
  1173. .slide-fade-enter-active,
  1174. .slide-fade-leave-active {
  1175. transition: all 0.2s ease;
  1176. }
  1177. .slide-fade-enter-from,
  1178. .slide-fade-leave-to {
  1179. opacity: 0;
  1180. transform: translateY(-10px);
  1181. }
  1182. /* Panel Header */
  1183. .panel-header {
  1184. display: flex;
  1185. justify-content: space-between;
  1186. align-items: center;
  1187. padding: 16px;
  1188. border-bottom: 1px solid var(--border);
  1189. }
  1190. .panel-title {
  1191. display: flex;
  1192. align-items: center;
  1193. gap: 8px;
  1194. font-size: 15px;
  1195. font-weight: 600;
  1196. }
  1197. .panel-title i {
  1198. color: var(--primary);
  1199. }
  1200. .unread-count {
  1201. font-size: 11px;
  1202. padding: 2px 8px;
  1203. background: rgba(99, 102, 241, 0.2);
  1204. color: var(--primary);
  1205. border-radius: 10px;
  1206. }
  1207. .panel-actions {
  1208. display: flex;
  1209. gap: 8px;
  1210. }
  1211. .action-text {
  1212. background: none;
  1213. border: none;
  1214. color: var(--text-secondary);
  1215. font-size: 12px;
  1216. cursor: pointer;
  1217. padding: 4px 8px;
  1218. border-radius: 4px;
  1219. }
  1220. .action-text:hover {
  1221. background: var(--bg-hover);
  1222. color: var(--text-primary);
  1223. }
  1224. /* Panel Tabs */
  1225. .panel-tabs {
  1226. display: flex;
  1227. gap: 4px;
  1228. padding: 8px 12px;
  1229. border-bottom: 1px solid var(--border);
  1230. overflow-x: auto;
  1231. }
  1232. .panel-tab {
  1233. display: flex;
  1234. align-items: center;
  1235. gap: 6px;
  1236. padding: 6px 12px;
  1237. border-radius: 16px;
  1238. font-size: 12px;
  1239. cursor: pointer;
  1240. white-space: nowrap;
  1241. color: var(--text-secondary);
  1242. transition: all 0.2s;
  1243. }
  1244. .panel-tab:hover {
  1245. background: var(--bg-hover);
  1246. }
  1247. .panel-tab.active {
  1248. background: var(--primary);
  1249. color: white;
  1250. }
  1251. .panel-tab i {
  1252. font-size: 11px;
  1253. }
  1254. .tab-count {
  1255. font-size: 10px;
  1256. padding: 1px 5px;
  1257. background: rgba(255, 255, 255, 0.2);
  1258. border-radius: 8px;
  1259. }
  1260. .panel-tab:not(.active) .tab-count {
  1261. background: var(--bg-hover);
  1262. }
  1263. /* Notification List */
  1264. .notification-list {
  1265. flex: 1;
  1266. overflow-y: auto;
  1267. max-height: 400px;
  1268. }
  1269. .notification-item {
  1270. display: flex;
  1271. gap: 12px;
  1272. padding: 14px 16px;
  1273. border-bottom: 1px solid var(--border);
  1274. cursor: pointer;
  1275. transition: background 0.2s;
  1276. }
  1277. .notification-item:hover {
  1278. background: var(--bg-hover);
  1279. }
  1280. .notification-item.unread {
  1281. background: rgba(99, 102, 241, 0.05);
  1282. }
  1283. .notification-item.unread:hover {
  1284. background: rgba(99, 102, 241, 0.1);
  1285. }
  1286. .notification-icon {
  1287. width: 36px;
  1288. height: 36px;
  1289. border-radius: 10px;
  1290. display: flex;
  1291. align-items: center;
  1292. justify-content: center;
  1293. font-size: 14px;
  1294. flex-shrink: 0;
  1295. }
  1296. .notification-content {
  1297. flex: 1;
  1298. min-width: 0;
  1299. }
  1300. .notification-title {
  1301. font-size: 13px;
  1302. font-weight: 600;
  1303. margin-bottom: 4px;
  1304. display: -webkit-box;
  1305. -webkit-line-clamp: 1;
  1306. -webkit-box-orient: vertical;
  1307. overflow: hidden;
  1308. }
  1309. .notification-desc {
  1310. font-size: 12px;
  1311. color: var(--text-secondary);
  1312. margin-bottom: 6px;
  1313. display: -webkit-box;
  1314. -webkit-line-clamp: 2;
  1315. -webkit-box-orient: vertical;
  1316. overflow: hidden;
  1317. }
  1318. .notification-meta {
  1319. display: flex;
  1320. align-items: center;
  1321. gap: 12px;
  1322. font-size: 11px;
  1323. color: var(--text-muted);
  1324. }
  1325. .notification-source {
  1326. display: flex;
  1327. align-items: center;
  1328. gap: 4px;
  1329. }
  1330. .notification-actions {
  1331. display: flex;
  1332. flex-direction: column;
  1333. gap: 4px;
  1334. opacity: 0;
  1335. transition: opacity 0.2s;
  1336. }
  1337. .notification-item:hover .notification-actions {
  1338. opacity: 1;
  1339. }
  1340. .mark-read-btn,
  1341. .more-btn {
  1342. width: 28px;
  1343. height: 28px;
  1344. background: var(--bg-hover);
  1345. border: none;
  1346. border-radius: 6px;
  1347. color: var(--text-secondary);
  1348. cursor: pointer;
  1349. display: flex;
  1350. align-items: center;
  1351. justify-content: center;
  1352. font-size: 12px;
  1353. }
  1354. .mark-read-btn:hover {
  1355. background: var(--success);
  1356. color: white;
  1357. }
  1358. .more-btn:hover {
  1359. background: var(--border);
  1360. color: var(--text-primary);
  1361. }
  1362. /* Empty State */
  1363. .empty-state {
  1364. display: flex;
  1365. flex-direction: column;
  1366. align-items: center;
  1367. justify-content: center;
  1368. padding: 48px;
  1369. color: var(--text-muted);
  1370. }
  1371. .empty-state i {
  1372. font-size: 48px;
  1373. margin-bottom: 16px;
  1374. opacity: 0.3;
  1375. }
  1376. .empty-state p {
  1377. font-size: 14px;
  1378. }
  1379. /* Panel Footer */
  1380. .panel-footer {
  1381. display: flex;
  1382. justify-content: space-between;
  1383. padding: 12px 16px;
  1384. border-top: 1px solid var(--border);
  1385. }
  1386. /* Task Menu */
  1387. .task-menu {
  1388. width: 320px;
  1389. background: var(--bg-card);
  1390. border: 1px solid var(--border);
  1391. border-radius: 12px;
  1392. padding: 8px;
  1393. z-index: 100;
  1394. }
  1395. .task-menu.show {
  1396. display: block;
  1397. }
  1398. .task-menu-item {
  1399. display: flex;
  1400. gap: 12px;
  1401. padding: 12px;
  1402. border-radius: 8px;
  1403. cursor: pointer;
  1404. }
  1405. .task-menu-item:hover {
  1406. background: var(--bg-hover);
  1407. }
  1408. .task-menu-icon {
  1409. width: 40px;
  1410. height: 40px;
  1411. border-radius: 10px;
  1412. display: flex;
  1413. align-items: center;
  1414. justify-content: center;
  1415. font-size: 18px;
  1416. }
  1417. .task-menu-icon.prospect {
  1418. background: rgba(99, 102, 241, 0.2);
  1419. color: var(--primary);
  1420. }
  1421. .task-menu-icon.marketing {
  1422. background: rgba(16, 185, 129, 0.2);
  1423. color: var(--success);
  1424. }
  1425. .task-menu-icon.analysis {
  1426. background: rgba(245, 158, 11, 0.2);
  1427. color: var(--warning);
  1428. }
  1429. .task-menu-text h4 {
  1430. font-size: 13px;
  1431. font-weight: 600;
  1432. margin-bottom: 2px;
  1433. }
  1434. .task-menu-text p {
  1435. font-size: 11px;
  1436. color: var(--text-secondary);
  1437. }
  1438. /* Modal */
  1439. .modal-overlay {
  1440. position: fixed;
  1441. top: 0;
  1442. left: 0;
  1443. right: 0;
  1444. bottom: 0;
  1445. background: rgba(0, 0, 0, 0.7);
  1446. display: flex;
  1447. align-items: center;
  1448. justify-content: center;
  1449. z-index: 2000;
  1450. padding: 20px;
  1451. }
  1452. .modal {
  1453. background: var(--bg-card);
  1454. border-radius: 16px;
  1455. width: 100%;
  1456. max-width: 600px;
  1457. overflow: hidden;
  1458. }
  1459. .notification-detail-modal {
  1460. max-width: 550px;
  1461. }
  1462. .modal-header {
  1463. display: flex;
  1464. justify-content: space-between;
  1465. align-items: center;
  1466. padding: 20px;
  1467. border-bottom: 1px solid var(--border);
  1468. }
  1469. .modal-title {
  1470. display: flex;
  1471. align-items: center;
  1472. gap: 12px;
  1473. font-size: 16px;
  1474. font-weight: 600;
  1475. }
  1476. .title-icon {
  1477. width: 36px;
  1478. height: 36px;
  1479. border-radius: 10px;
  1480. display: flex;
  1481. align-items: center;
  1482. justify-content: center;
  1483. font-size: 14px;
  1484. }
  1485. .modal-close {
  1486. width: 32px;
  1487. height: 32px;
  1488. background: var(--bg-hover);
  1489. border: none;
  1490. border-radius: 8px;
  1491. color: var(--text-secondary);
  1492. cursor: pointer;
  1493. display: flex;
  1494. align-items: center;
  1495. justify-content: center;
  1496. }
  1497. .modal-close:hover {
  1498. background: var(--border);
  1499. color: var(--text-primary);
  1500. }
  1501. .modal-body {
  1502. padding: 20px;
  1503. }
  1504. .detail-time {
  1505. display: flex;
  1506. align-items: center;
  1507. gap: 6px;
  1508. font-size: 12px;
  1509. color: var(--text-muted);
  1510. margin-bottom: 16px;
  1511. }
  1512. .detail-content {
  1513. font-size: 14px;
  1514. line-height: 1.7;
  1515. color: var(--text-secondary);
  1516. }
  1517. .detail-content p {
  1518. margin-bottom: 12px;
  1519. }
  1520. .detail-content ul,
  1521. .detail-content ol {
  1522. margin: 12px 0;
  1523. padding-left: 24px;
  1524. }
  1525. .detail-content li {
  1526. margin-bottom: 6px;
  1527. }
  1528. .detail-actions {
  1529. display: flex;
  1530. gap: 12px;
  1531. margin-top: 20px;
  1532. padding-top: 20px;
  1533. border-top: 1px solid var(--border);
  1534. }
  1535. .fade-enter-active,
  1536. .fade-leave-active {
  1537. transition: opacity 0.2s ease;
  1538. }
  1539. .fade-enter-from,
  1540. .fade-leave-to {
  1541. opacity: 0;
  1542. }
  1543. /* Help Panel */
  1544. .help-backdrop {
  1545. position: fixed;
  1546. top: 0;
  1547. left: 0;
  1548. right: 0;
  1549. bottom: 0;
  1550. z-index: 999;
  1551. }
  1552. .help-panel {
  1553. position: absolute;
  1554. top: 100%;
  1555. right: 24px;
  1556. width: 420px;
  1557. max-height: calc(100vh - 80px);
  1558. background: var(--bg-card);
  1559. border: 1px solid var(--border);
  1560. border-radius: 12px;
  1561. box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  1562. display: flex;
  1563. flex-direction: column;
  1564. z-index: 1000;
  1565. margin-top: 8px;
  1566. overflow-y: auto;
  1567. }
  1568. .slide-fade-enter-active,
  1569. .slide-fade-leave-active {
  1570. transition: all 0.2s ease;
  1571. }
  1572. .slide-fade-enter-from,
  1573. .slide-fade-leave-to {
  1574. opacity: 0;
  1575. transform: translateY(-10px);
  1576. }
  1577. /* Panel Header */
  1578. .panel-header {
  1579. display: flex;
  1580. justify-content: space-between;
  1581. align-items: center;
  1582. padding: 16px 20px;
  1583. border-bottom: 1px solid var(--border);
  1584. position: sticky;
  1585. top: 0;
  1586. background: var(--bg-card);
  1587. z-index: 10;
  1588. }
  1589. .panel-title {
  1590. display: flex;
  1591. align-items: center;
  1592. gap: 8px;
  1593. font-size: 15px;
  1594. font-weight: 600;
  1595. }
  1596. .panel-title i {
  1597. color: var(--primary);
  1598. }
  1599. .modal-close {
  1600. width: 28px;
  1601. height: 28px;
  1602. background: var(--bg-hover);
  1603. border: none;
  1604. border-radius: 6px;
  1605. color: var(--text-secondary);
  1606. cursor: pointer;
  1607. display: flex;
  1608. align-items: center;
  1609. justify-content: center;
  1610. }
  1611. .modal-close:hover {
  1612. background: var(--border);
  1613. color: var(--text-primary);
  1614. }
  1615. /* Help Search */
  1616. .help-search {
  1617. padding: 12px 16px;
  1618. position: relative;
  1619. border-bottom: 1px solid var(--border);
  1620. }
  1621. .help-search i {
  1622. position: absolute;
  1623. left: 28px;
  1624. top: 50%;
  1625. transform: translateY(-50%);
  1626. color: var(--text-muted);
  1627. font-size: 12px;
  1628. }
  1629. .help-search input {
  1630. width: 100%;
  1631. padding: 10px 12px 10px 36px;
  1632. background: var(--bg-hover);
  1633. border: 1px solid var(--border);
  1634. border-radius: 8px;
  1635. color: var(--text-primary);
  1636. font-size: 13px;
  1637. }
  1638. .help-search input:focus {
  1639. outline: none;
  1640. border-color: var(--primary);
  1641. }
  1642. /* Help Section */
  1643. .help-section {
  1644. padding: 16px;
  1645. border-bottom: 1px solid var(--border);
  1646. }
  1647. .help-section:last-child {
  1648. border-bottom: none;
  1649. }
  1650. .section-title {
  1651. font-size: 13px;
  1652. font-weight: 600;
  1653. margin-bottom: 12px;
  1654. color: var(--text-primary);
  1655. }
  1656. /* Quick Links */
  1657. .quick-links {
  1658. display: grid;
  1659. grid-template-columns: repeat(2, 1fr);
  1660. gap: 10px;
  1661. }
  1662. .quick-link-card {
  1663. display: flex;
  1664. align-items: center;
  1665. gap: 10px;
  1666. padding: 12px;
  1667. background: var(--bg-hover);
  1668. border-radius: 10px;
  1669. cursor: pointer;
  1670. transition: all 0.2s;
  1671. }
  1672. .quick-link-card:hover {
  1673. background: var(--border);
  1674. transform: translateY(-1px);
  1675. }
  1676. .quick-link-icon {
  1677. width: 36px;
  1678. height: 36px;
  1679. border-radius: 8px;
  1680. background: rgba(99, 102, 241, 0.2);
  1681. display: flex;
  1682. align-items: center;
  1683. justify-content: center;
  1684. color: var(--primary);
  1685. font-size: 14px;
  1686. }
  1687. .quick-link-title {
  1688. font-size: 12px;
  1689. font-weight: 600;
  1690. margin-bottom: 2px;
  1691. }
  1692. .quick-link-desc {
  1693. font-size: 10px;
  1694. color: var(--text-muted);
  1695. }
  1696. /* FAQ List */
  1697. .faq-list {
  1698. display: flex;
  1699. flex-direction: column;
  1700. gap: 8px;
  1701. }
  1702. .faq-item {
  1703. background: var(--bg-hover);
  1704. border-radius: 8px;
  1705. overflow: hidden;
  1706. cursor: pointer;
  1707. }
  1708. .faq-question {
  1709. display: flex;
  1710. align-items: center;
  1711. gap: 8px;
  1712. padding: 12px;
  1713. font-size: 12px;
  1714. font-weight: 500;
  1715. transition: all 0.2s;
  1716. }
  1717. .faq-question i {
  1718. font-size: 10px;
  1719. color: var(--text-muted);
  1720. transition: transform 0.2s;
  1721. }
  1722. .faq-item.expanded .faq-question i {
  1723. transform: rotate(90deg);
  1724. }
  1725. .faq-item:hover .faq-question {
  1726. background: var(--border);
  1727. }
  1728. .faq-answer {
  1729. max-height: 0;
  1730. overflow: hidden;
  1731. transition: max-height 0.3s ease;
  1732. font-size: 11px;
  1733. color: var(--text-secondary);
  1734. line-height: 1.6;
  1735. }
  1736. .faq-item.expanded .faq-answer {
  1737. max-height: 300px;
  1738. padding: 0 12px 12px;
  1739. }
  1740. .faq-answer p {
  1741. margin-bottom: 8px;
  1742. }
  1743. .faq-answer ul,
  1744. .faq-answer ol {
  1745. margin: 8px 0;
  1746. padding-left: 16px;
  1747. }
  1748. .faq-answer li {
  1749. margin-bottom: 4px;
  1750. }
  1751. /* Support Options */
  1752. .support-options {
  1753. display: flex;
  1754. flex-direction: column;
  1755. gap: 8px;
  1756. }
  1757. .support-item {
  1758. display: flex;
  1759. align-items: center;
  1760. gap: 12px;
  1761. padding: 12px;
  1762. background: var(--bg-hover);
  1763. border-radius: 8px;
  1764. cursor: pointer;
  1765. transition: all 0.2s;
  1766. }
  1767. .support-item:hover {
  1768. background: var(--border);
  1769. }
  1770. .support-item i {
  1771. font-size: 18px;
  1772. color: var(--primary);
  1773. width: 24px;
  1774. text-align: center;
  1775. }
  1776. .support-title {
  1777. font-size: 12px;
  1778. font-weight: 600;
  1779. margin-bottom: 2px;
  1780. }
  1781. .support-desc {
  1782. font-size: 10px;
  1783. color: var(--text-muted);
  1784. }
  1785. /* Help Footer */
  1786. .help-footer {
  1787. padding: 12px 16px;
  1788. border-top: 1px solid var(--border);
  1789. background: var(--bg-hover);
  1790. }
  1791. .version-info {
  1792. display: flex;
  1793. align-items: center;
  1794. gap: 8px;
  1795. font-size: 11px;
  1796. color: var(--text-muted);
  1797. margin-bottom: 8px;
  1798. }
  1799. .version-badge {
  1800. padding: 2px 8px;
  1801. background: var(--primary);
  1802. color: white;
  1803. border-radius: 10px;
  1804. font-size: 10px;
  1805. font-weight: 600;
  1806. }
  1807. .footer-links {
  1808. display: flex;
  1809. gap: 16px;
  1810. }
  1811. .footer-links a {
  1812. font-size: 11px;
  1813. color: var(--text-secondary);
  1814. text-decoration: none;
  1815. }
  1816. .footer-links a:hover {
  1817. color: var(--primary);
  1818. }
  1819. /* Business Modal Styles - Optimized */
  1820. .business-modal {
  1821. max-width: 520px;
  1822. animation: modalSlideIn 0.3s ease;
  1823. }
  1824. @keyframes modalSlideIn {
  1825. from {
  1826. opacity: 0;
  1827. transform: translateY(-20px) scale(0.98);
  1828. }
  1829. to {
  1830. opacity: 1;
  1831. transform: translateY(0) scale(1);
  1832. }
  1833. }
  1834. .business-modal .modal-header {
  1835. background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
  1836. padding: 24px 24px 20px;
  1837. border-bottom: 1px solid var(--border);
  1838. }
  1839. .business-modal .modal-header .title-icon {
  1840. width: 44px;
  1841. height: 44px;
  1842. border-radius: 12px;
  1843. font-size: 20px;
  1844. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  1845. }
  1846. .business-modal .modal-header span {
  1847. font-size: 18px;
  1848. font-weight: 600;
  1849. }
  1850. .business-modal .modal-body {
  1851. max-height: 70vh;
  1852. overflow-y: auto;
  1853. padding: 24px;
  1854. }
  1855. /* Form Styles - Enhanced */
  1856. .form-group {
  1857. margin-bottom: 24px;
  1858. }
  1859. .form-group label {
  1860. display: block;
  1861. font-size: 13px;
  1862. font-weight: 600;
  1863. margin-bottom: 10px;
  1864. color: var(--text-primary);
  1865. display: flex;
  1866. align-items: center;
  1867. gap: 6px;
  1868. }
  1869. .form-group label::after {
  1870. content: '';
  1871. flex: 1;
  1872. height: 1px;
  1873. background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  1874. margin-left: 10px;
  1875. }
  1876. .form-input {
  1877. width: 100%;
  1878. padding: 12px 16px;
  1879. background: var(--bg-dark);
  1880. border: 1px solid var(--border);
  1881. border-radius: 10px;
  1882. color: var(--text-primary);
  1883. font-size: 14px;
  1884. transition: all 0.2s ease;
  1885. }
  1886. .form-input:hover {
  1887. border-color: var(--text-secondary);
  1888. }
  1889. .form-input:focus {
  1890. outline: none;
  1891. border-color: var(--primary);
  1892. box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  1893. background: var(--bg-card);
  1894. }
  1895. .form-input::placeholder {
  1896. color: var(--text-muted);
  1897. font-size: 13px;
  1898. }
  1899. .form-select {
  1900. width: 100%;
  1901. padding: 12px 16px;
  1902. background: var(--bg-dark);
  1903. border: 1px solid var(--border);
  1904. border-radius: 10px;
  1905. color: var(--text-primary);
  1906. font-size: 14px;
  1907. cursor: pointer;
  1908. transition: all 0.2s ease;
  1909. appearance: none;
  1910. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  1911. background-repeat: no-repeat;
  1912. background-position: right 14px center;
  1913. padding-right: 40px;
  1914. }
  1915. .form-select:hover {
  1916. border-color: var(--text-secondary);
  1917. }
  1918. .form-select:focus {
  1919. outline: none;
  1920. border-color: var(--primary);
  1921. box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  1922. background: var(--bg-card);
  1923. }
  1924. .form-row {
  1925. display: grid;
  1926. grid-template-columns: 1fr 1fr;
  1927. gap: 20px;
  1928. }
  1929. /* Checkbox & Radio Styles - Modern */
  1930. .checkbox-group,
  1931. .radio-group {
  1932. display: flex;
  1933. flex-wrap: wrap;
  1934. gap: 12px;
  1935. }
  1936. .checkbox-item,
  1937. .radio-item {
  1938. display: flex;
  1939. align-items: center;
  1940. gap: 8px;
  1941. padding: 10px 14px;
  1942. background: var(--bg-dark);
  1943. border: 1px solid var(--border);
  1944. border-radius: 10px;
  1945. cursor: pointer;
  1946. font-size: 13px;
  1947. transition: all 0.2s ease;
  1948. position: relative;
  1949. overflow: hidden;
  1950. }
  1951. .checkbox-item::before,
  1952. .radio-item::before {
  1953. content: '';
  1954. position: absolute;
  1955. top: 0;
  1956. left: 0;
  1957. right: 0;
  1958. bottom: 0;
  1959. background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  1960. opacity: 0;
  1961. transition: opacity 0.2s ease;
  1962. }
  1963. .checkbox-item:hover,
  1964. .radio-item:hover {
  1965. border-color: var(--primary);
  1966. transform: translateY(-1px);
  1967. box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  1968. }
  1969. .checkbox-item input,
  1970. .radio-item input {
  1971. display: none;
  1972. }
  1973. .checkbox-item span,
  1974. .radio-item span {
  1975. display: flex;
  1976. align-items: center;
  1977. gap: 8px;
  1978. position: relative;
  1979. z-index: 1;
  1980. }
  1981. .checkbox-item:has(input:checked),
  1982. .radio-item:has(input:checked) {
  1983. background: var(--bg-card);
  1984. border-color: var(--primary);
  1985. color: var(--primary);
  1986. box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  1987. }
  1988. .checkbox-item:has(input:checked)::before,
  1989. .radio-item:has(input:checked)::before {
  1990. opacity: 0.08;
  1991. }
  1992. /* Toggle Switch - Enhanced */
  1993. .toggle-label {
  1994. display: flex;
  1995. align-items: center;
  1996. gap: 14px;
  1997. cursor: pointer;
  1998. font-size: 14px;
  1999. color: var(--text-secondary);
  2000. padding: 16px;
  2001. background: var(--bg-dark);
  2002. border-radius: 12px;
  2003. border: 1px solid var(--border);
  2004. transition: all 0.2s ease;
  2005. }
  2006. .toggle-label:hover {
  2007. border-color: var(--primary);
  2008. background: var(--bg-hover);
  2009. }
  2010. .toggle-label input {
  2011. display: none;
  2012. }
  2013. .toggle-switch {
  2014. width: 48px;
  2015. height: 26px;
  2016. background: var(--border);
  2017. border-radius: 13px;
  2018. position: relative;
  2019. transition: all 0.3s ease;
  2020. flex-shrink: 0;
  2021. }
  2022. .toggle-switch::after {
  2023. content: '';
  2024. position: absolute;
  2025. top: 3px;
  2026. left: 3px;
  2027. width: 20px;
  2028. height: 20px;
  2029. background: white;
  2030. border-radius: 50%;
  2031. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  2032. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  2033. }
  2034. .toggle-label input:checked + .toggle-switch {
  2035. background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  2036. }
  2037. .toggle-label input:checked + .toggle-switch::after {
  2038. left: 25px;
  2039. }
  2040. /* Form Actions - Enhanced */
  2041. .form-actions {
  2042. display: flex;
  2043. justify-content: flex-end;
  2044. gap: 12px;
  2045. padding-top: 24px;
  2046. border-top: 1px solid var(--border);
  2047. margin-top: 8px;
  2048. }
  2049. .form-actions .btn {
  2050. padding: 12px 24px;
  2051. font-size: 14px;
  2052. font-weight: 500;
  2053. border-radius: 10px;
  2054. transition: all 0.2s ease;
  2055. }
  2056. .form-actions .btn-primary {
  2057. background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  2058. border: none;
  2059. box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  2060. }
  2061. .form-actions .btn-primary:hover {
  2062. transform: translateY(-1px);
  2063. box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  2064. }
  2065. .form-actions .btn-secondary {
  2066. background: var(--bg-hover);
  2067. border: 1px solid var(--border);
  2068. }
  2069. .form-actions .btn-secondary:hover {
  2070. background: var(--border);
  2071. border-color: var(--text-secondary);
  2072. }
  2073. /* AI Features Section - Enhanced */
  2074. .ai-features {
  2075. background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  2076. border: 1px solid rgba(99, 102, 241, 0.2);
  2077. border-radius: 12px;
  2078. padding: 18px;
  2079. margin-top: 4px;
  2080. }
  2081. .ai-feature-item {
  2082. display: flex;
  2083. align-items: center;
  2084. gap: 12px;
  2085. font-size: 13px;
  2086. color: var(--text-secondary);
  2087. margin-bottom: 12px;
  2088. padding: 8px 0;
  2089. border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  2090. }
  2091. .ai-feature-item:last-child {
  2092. margin-bottom: 0;
  2093. border-bottom: none;
  2094. }
  2095. .ai-feature-item i {
  2096. color: var(--primary);
  2097. width: 20px;
  2098. font-size: 14px;
  2099. }
  2100. /* Section Divider */
  2101. .form-section {
  2102. position: relative;
  2103. margin: 28px 0;
  2104. }
  2105. .form-section::before {
  2106. content: '';
  2107. position: absolute;
  2108. left: 0;
  2109. right: 0;
  2110. top: 50%;
  2111. height: 1px;
  2112. background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  2113. }
  2114. .form-section-title {
  2115. position: relative;
  2116. display: inline-block;
  2117. padding: 0 16px;
  2118. background: var(--bg-card);
  2119. font-size: 12px;
  2120. font-weight: 600;
  2121. color: var(--text-muted);
  2122. text-transform: uppercase;
  2123. letter-spacing: 0.5px;
  2124. }
  2125. /* Help Text */
  2126. .form-help {
  2127. font-size: 12px;
  2128. color: var(--text-muted);
  2129. margin-top: 8px;
  2130. display: flex;
  2131. align-items: center;
  2132. gap: 6px;
  2133. }
  2134. .form-help i {
  2135. font-size: 11px;
  2136. }
  2137. /* Input with Icon */
  2138. .input-with-icon {
  2139. position: relative;
  2140. }
  2141. .input-with-icon .form-input {
  2142. padding-left: 44px;
  2143. }
  2144. .input-with-icon i {
  2145. position: absolute;
  2146. left: 16px;
  2147. top: 50%;
  2148. transform: translateY(-50%);
  2149. color: var(--text-muted);
  2150. font-size: 14px;
  2151. }
  2152. /* Responsive */
  2153. @media (max-width: 640px) {
  2154. .business-modal {
  2155. max-width: 100%;
  2156. margin: 16px;
  2157. }
  2158. .form-row {
  2159. grid-template-columns: 1fr;
  2160. gap: 16px;
  2161. }
  2162. .checkbox-group,
  2163. .radio-group {
  2164. flex-direction: column;
  2165. }
  2166. .checkbox-item,
  2167. .radio-item {
  2168. width: 100%;
  2169. }
  2170. }
  2171. </style>