TopBar.vue 60 KB

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