app.less 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. @import 'tailwindcss/base';
  2. @import 'tailwindcss/components';
  3. @import 'tailwindcss/utilities';
  4. @import './styles/_vars.less';
  5. @import './styles/markdown.less';
  6. /* 确保变量定义在全局作用域 */
  7. /* 为 RootPortal 容器单独定义变量 */
  8. :root, .taro-portal-container, page, view {
  9. font-family: PingFangSC-Regular;
  10. --color-primary: #327BF9;
  11. --color-primary-rgb: 49, 124, 250;
  12. --color-primary-light: rgba(49, 124, 250, 0.1);
  13. --color-primary-dark: #1E6FF8;
  14. --color-text-primary: #262626;
  15. --color-bg-primary: #F4F9FF;
  16. --color-bg-gray: #F4F9FF;
  17. --color-gray-1: rgba(17, 17, 17, 0.03); // 未选中按钮背景
  18. --color-gray-2: rgba(17, 17, 17, 0.05); // 骨架图卡片模块
  19. --color-gray-3: rgba(17, 17, 17, 0.25); // 分割线,未编辑边框,禁用文本
  20. --color-gray-4: rgba(17, 17, 17, 0.45); // 辅助文本,输入文本,仅展示,暗文本
  21. --color-gray-5: rgba(17, 17, 17, 0.65); // 副标题,描述文本
  22. --color-gray-6: rgba(17, 17, 17, 0.85); // 正文
  23. --color-gray-7: rgba(17, 17, 17, 1); // 特殊标题,主标题,正文
  24. --gutter-size: 16px;
  25. }
  26. .taro-portal-container-ztop{
  27. z-index: 10000;
  28. }
  29. .w-full{
  30. box-sizing: border-box;
  31. }
  32. .pingfang-SC-Medium{
  33. font-family: PingFangSC-Medium;
  34. }
  35. .pingfang-SC-Semibold{
  36. font-family: PingFangSC-Semibold;
  37. }
  38. .global-color{
  39. font-weight: 400;
  40. font-size: 14px;
  41. line-height: 22px;
  42. }
  43. .global-color-new{
  44. .global-color{
  45. color: yellowgreen;
  46. }
  47. }
  48. .primary-color{
  49. color: var(--color-primary, #317CFA);
  50. }
  51. .primary-color-dark{
  52. color: var(--color-primary-dark);
  53. }
  54. .text-primary-color{
  55. color: var(--color-primary, #317CFA);
  56. }
  57. .bg-primary-color {
  58. background-color: var(--color-bg-primary, #317CFA);
  59. }
  60. .warn-color{
  61. color: #EE4949;
  62. }
  63. .global-page-bg{
  64. height: 652px;
  65. background: var(--color-bg-gray);
  66. }
  67. .global-linear-gradient-bg{
  68. position: relative;
  69. height: 652px;
  70. background: linear-gradient(176.35deg, #E6F1FF 18.69%, rgba(255, 255, 255, 0) 113.37%);
  71. background-size: 100% 600px;
  72. background-repeat: no-repeat;
  73. }
  74. .global-gray-bg{
  75. background-color: var(--color-bg-gray);
  76. }
  77. .bg-primary-color{
  78. background-color: var(--color-bg-primary);
  79. }
  80. // text
  81. .label-text{
  82. font-weight: 500;
  83. font-size: 14px;
  84. color: #000000;
  85. line-height: 22px;
  86. }
  87. // buttons
  88. .button-rounded-big{
  89. display: flex;
  90. height: 48px;
  91. justify-content: center;
  92. align-items: center;
  93. background-color: var(--color-primary);
  94. border-radius: 8px;
  95. overflow: hidden;
  96. color: white;
  97. }
  98. .button-plain{
  99. .button-rounded-big();
  100. background-color: white;
  101. }
  102. .wemeta-button{
  103. .button-rounded-big();
  104. border-radius: 12px;
  105. }
  106. .button-rounded{
  107. display: flex;
  108. padding: 14px;
  109. align-items: center;
  110. word-break: keep-all;
  111. justify-content: center;
  112. border-radius: 8px;
  113. background-color: white;
  114. color: rgba(#000, .85);
  115. text-align: center;
  116. font-style: normal;
  117. font-weight: 500;
  118. line-height: 20px;
  119. transition: background-color .2s;
  120. }
  121. .button-rounded.actived{
  122. background-color: #000;
  123. color: #FFF;
  124. }
  125. .button-rounded.button-primary{
  126. color: white;
  127. font-size: 14px;
  128. background-color: var(--color-primary);
  129. }
  130. .button-rounded.button-primary-light{
  131. font-size: 14px;
  132. color: var(--color-primary);
  133. background-color: rgba(var(--color-primary-rgb), .1);
  134. }
  135. .button-text-medium.button-primary{
  136. font-size: 12px;
  137. }
  138. .button-text-medium.button-primary-light{
  139. font-size: 12px;
  140. }
  141. .button-border-primary{
  142. border: 1px solid #327BF9;
  143. }
  144. .button-inline-flex{
  145. display: inline-flex;
  146. padding: 14px 32px;
  147. }
  148. .button-warn{
  149. .warn-color();
  150. }
  151. // /* 竖屏且宽度<390px */
  152. // @media (orientation: portrait) and (max-width: 390px) {
  153. // .button-rounded.button-primary {
  154. // }
  155. // }
  156. // 社交媒体icon
  157. .social-media-icon{
  158. width: 24px;
  159. height: 24px;
  160. flex-shrink: 0;
  161. background-size: 100%;
  162. }
  163. .social-media-link{
  164. .social-media-icon();
  165. background-image: url(@linkUrl);
  166. }
  167. .social-media-wechat{
  168. .social-media-icon();
  169. background-image: url(@wechatUrl);
  170. }
  171. .social-media-shiping{
  172. .social-media-icon();
  173. background-image: url(@shipingUrl);
  174. }
  175. .social-media-shipingVideo{
  176. .social-media-icon();
  177. background-image: url(@shipingVideoUrl);
  178. }
  179. .component-icon-tel{
  180. .social-media-icon();
  181. background-image: url(@tel);
  182. }
  183. .component-icon-address{
  184. .social-media-icon();
  185. background-image: url(@local);
  186. }
  187. // 空气按钮分享
  188. .share-button{
  189. position: absolute;
  190. left: 0;
  191. right: 0;
  192. top: 0;
  193. width: 100%;
  194. height: 100%;
  195. opacity: 0;
  196. background-color: transparent;
  197. }
  198. .full-button-rounded{
  199. display: flex;
  200. width: 100%;
  201. padding: 17px 10px;
  202. border-radius: 50px;
  203. justify-content: center;
  204. align-items: center;
  205. background-color: var(--color-primary);
  206. }
  207. .popup-close-button{
  208. width: 36px;
  209. height: 36px;
  210. background: url(https://cdn.wehome.cn/cmn/png/116/META-H8UKVHWU-K4SOR0KW954A0B7Q6JXJ2-5SZANE1M-H8.png) no-repeat;
  211. background-size: 36px 36px;
  212. }
  213. // 空数据提示 ui
  214. // 飞机
  215. .data-empty, .data-empty-plane{
  216. width: 120px;
  217. height: 120px;
  218. background-image: url(https://cdn.wehome.cn/cmn/png/8/META-H8UKWHWU-HGXWYHZT5H6E78JCO9YE2-OWTHCUCM-WC.png);
  219. background-size: 100%;
  220. background-repeat: no-repeat;
  221. }
  222. // 放大镜
  223. .data-empty-search{
  224. background-image: url(https://cdn.wehome.cn/cmn/png/137/META-H8UKWHWU-HGXWYHZT5H6E78JCO9YE2-EZTHCUCM-YC.png);
  225. }
  226. // 空白写字板
  227. .data-empty-whiteboard{
  228. background-image: url(https://cdn.wehome.cn/cmn/png/87/META-H8UKWHWU-HGXWYHZT5H6E78JCO9YE2-QYTHCUCM-XC.png);
  229. }
  230. // 三角牌感叹号
  231. .data-empty-triangle{
  232. background-image: url(https://cdn.wehome.cn/cmn/png/63/META-H8UKWHWU-8HXWA0PE7HXUV4QMQUBV2-NYTHCUCM-SC.png);
  233. }
  234. // 两个对话框
  235. .data-empty-chat{
  236. background-image: url(https://cdn.wehome.cn/cmn/png/30/META-H8UKWHWU-8HXWA0PE7HXUV4QMQUBV2-RYTHCUCM-TC.png);
  237. }
  238. // 破碎文件夹
  239. .data-empty6{
  240. background-image: url(https://cdn.wehome.cn/cmn/png/82/META-H8UKWHWU-8HXWA0PE7HXUV4QMQUBV2-Z5UHCUCM-UC.png);
  241. }
  242. // 空白文件盒
  243. .data-empty-box{
  244. background-image: url(https://cdn.wehome.cn/cmn/png/69/META-H8UKWHWU-HGXWYHZT5H6E78JCO9YE2-36UHCUCM-ZC.png);
  245. }
  246. // 居正中
  247. .flex-center{
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. }
  252. // ios 底部安全区
  253. .bottom-bar{
  254. position: fixed;
  255. z-index: 100;
  256. left: 0;
  257. bottom: 0;
  258. right: 0;
  259. width: 100%;
  260. background-color: var(--color-bg-primary);
  261. padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  262. padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
  263. }
  264. //global text
  265. .gradient-text{
  266. color: transparent; /* 文字透明以显示背景渐变 */
  267. display: inline-block; /* 确保渐变生效 */
  268. background: linear-gradient(279.56deg, #317CFA 13.29%, #FF2DF8 92.34%);
  269. -webkit-background-clip: text;
  270. background-clip: text;
  271. -webkit-text-fill-color: transparent;
  272. background-size: 200% auto;
  273. animation: gradientMove 3s linear infinite;
  274. }
  275. @keyframes gradientMove {
  276. 0% {
  277. background-position: 200% center;
  278. }
  279. 100% {
  280. background-position: -200% center;
  281. }
  282. }
  283. // 边框相关
  284. .border-bottom1-gray{
  285. border-bottom: 1px solid rgba(#000, .05);
  286. }
  287. .border-top1-gray{
  288. border-top: 1px solid rgba(#000, .05);
  289. }
  290. // 灰底圆框
  291. .rounded-card{
  292. margin-bottom: 12px;
  293. padding: 20px;
  294. border-radius: 12px;
  295. border: 1px solid transparent;
  296. background-color: rgba(#000, .03);
  297. }
  298. .rounded-card-actived{
  299. .rounded-card();
  300. background-color: rgba(var(--color-primary-rgb), .06);
  301. border: 1px solid var(--color-primary);
  302. }
  303. .rounded-container-header{
  304. width: 100%;
  305. border-top-left-radius: 24px;
  306. border-top-right-radius: 24px;
  307. padding-top: 20px;
  308. border-top-width: 1px;
  309. border-top: 1px solid #FFFFFF;
  310. backdrop-filter: blur(38px);
  311. }
  312. /* 保持和之前相同,仅需确保以下类名存在 */
  313. .picker-modal {
  314. position: fixed;
  315. bottom: 0;
  316. left: 0;
  317. width: 100%;
  318. background: #fff;
  319. z-index: 3000;
  320. box-shadow: 0px -2px 20px #999;
  321. }
  322. .picker-header {
  323. display: flex;
  324. justify-content: space-between;
  325. padding: 15px;
  326. border-bottom: 1px solid #f5f5f5;
  327. }
  328. .picker-item {
  329. text-align: center;
  330. line-height: 50px;
  331. }
  332. // 组件卡片空数据显示
  333. .component-card-empty{
  334. width: 100%;
  335. height: 160px;
  336. border-radius: 16px;
  337. overflow: hidden;
  338. background-color: rgba(240, 240, 240, 1);
  339. .component-card-content{
  340. display: flex;
  341. flex-direction: column;
  342. align-items: center;
  343. justify-content: center;
  344. height: 100%;
  345. gap: 12px;
  346. }
  347. // 小蓝本灰色 logo
  348. .component-card-empty-figure{
  349. width: 68px;
  350. height: 24px;
  351. background: url(https://cdn.wehome.cn/cmn/png/67/META-H8UKVHWU-1JNUXQBKDFMDLDZZ7BUW3-68R2H1CM-ZU2.png) no-repeat;
  352. background-size: 100%;
  353. }
  354. .component-card-empty-tips{
  355. font-family: PingFang SC;
  356. font-weight: 400;
  357. font-size: 16px;
  358. line-height: 24px;
  359. text-align: center;
  360. color:rgba(#000, .25);
  361. }
  362. }
  363. // 智能体内容容器毛玻璃效果,距顶部距离 240 ,留出空间显示形象, 最小高度 600px 以防止没有顶到底部
  364. .blur-rounded-container{
  365. margin-top: 296px;
  366. width: 100%;
  367. min-height: calc(100vh - 240px);
  368. box-sizing: border-box;
  369. border-top-left-radius: 24px;
  370. border-top-right-radius: 24px;
  371. // background: rgba(#FFF, .45);
  372. backdrop-filter: blur(38px);
  373. background: linear-gradient( rgba(#fff, .45) 1%, rgba(#fff, 0) 100%);
  374. }
  375. .certification-container{
  376. display: inline-flex;
  377. align-items: center;
  378. justify-content: center;
  379. background-color: rgba(#31BE59, .1);
  380. width: 20px;
  381. height: 16px;
  382. border-radius: 4px;
  383. }