cus-client-common.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. @import "../base/utils";
  2. /************************ 通用class样式 author: TX date:2020-07-30 **********************/
  3. /* 页面样式 */
  4. body, html, #app {padding: 0;margin: 0;@include setFontStyle(0);}
  5. /* 内外边距通常让各个浏览器样式的表现位置不同 */
  6. div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0;}
  7. /* HTML5 媒体文件跟 img 保持一致 */
  8. audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
  9. /* 默认不显示下划线,保持页面简洁 */
  10. ins,a{text-decoration:none;cursor:pointer;}
  11. /* 去掉列表前的标识, li 会继承 */
  12. ol,ul,dl,dt,dd{
  13. list-style:none;
  14. margin: 0;
  15. padding: 0;
  16. letter-spacing: 0;
  17. word-spacing: 0;
  18. font-size: 0;}
  19. /* 让标题都自定义, 适应多个系统应用 */
  20. h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
  21. /* 外边距 */
  22. .m5{margin:5px;}
  23. .m10 {margin: 10px;}
  24. .m15 {margin: 15px;}
  25. .m20 {margin: 20px;}
  26. .m25 {margin: 25px;}
  27. .m30 {margin: 30px;}
  28. .m35 {margin: 35px;}
  29. .m40 {margin: 40px;}
  30. /* 外边距 上下边距 左右居中 */
  31. .ma0{margin:0 auto;}
  32. .ma5{margin:5px auto;}
  33. .ma10{margin:10px auto;}
  34. .ma15{margin:15px auto;}
  35. .ma20{margin:20px auto;}
  36. .ma25{margin:25px auto;}
  37. .ma30{margin:30px auto;}
  38. .ma35{margin:35px auto;}
  39. .ma40{margin:40px auto;}
  40. /* 上外边距 */
  41. .mt5 {margin-top: 5px;}
  42. .mt10 {margin-top: 10px;}
  43. .mt15 {margin-top: 15px;}
  44. .mt20 {margin-top: 20px;}
  45. .mt25 {margin-top: 25px;}
  46. .mt30 {margin-top: 30px;}
  47. .mt35 {margin-top: 35px;}
  48. .mt40 {margin-top: 40px;}
  49. .mt48 {margin-top: 48px;}
  50. /* 下外边距 */
  51. .mb5 {margin-bottom: 5px;}
  52. .mb10 {margin-bottom: 10px;}
  53. .mb15 {margin-bottom: 15px;}
  54. .mb20 {margin-bottom: 20px;}
  55. .mb25 {margin-bottom: 25px;}
  56. .mb30 {margin-bottom: 30px;}
  57. .mb35 {margin-bottom: 35px;}
  58. .mb40 {margin-bottom: 40px;}
  59. /* 左外边距 */
  60. .ml5 {margin-left: 5px;}
  61. .ml10 {margin-left: 10px;}
  62. .ml15 {margin-left: 15px;}
  63. .ml20 {margin-left: 20px;}
  64. .ml25 {margin-left: 25px;}
  65. .ml30 {margin-left: 30px;}
  66. .ml35 {margin-left: 35px;}
  67. .ml40 {margin-left: 40px;}
  68. /* 右外边距 */
  69. .mr5 {margin-right: 5px;}
  70. .mr10 {margin-right: 10px;}
  71. .mr15 {margin-right: 15px;}
  72. .mr20 {margin-right: 20px;}
  73. .mr25 {margin-right: 25px;}
  74. .mr30 {margin-right: 30px;}
  75. .mr35 {margin-right: 35px;}
  76. .mr40 {margin-right: 40px;}
  77. /* 内边距*/
  78. .ptb20{padding: 20px 0;}
  79. .ptb30{padding: 30px 0;}
  80. /*文字对齐方式*/
  81. .tl{text-align:left;}
  82. .tr{text-align:right;}
  83. .tc{text-align:center;}
  84. /*字体大小*/
  85. .fs_12{font-size:12px;}
  86. .fs_14{font-size:14px;}
  87. .fs_16{font-size:16px;}
  88. .fs_18{font-size:18px;}
  89. .fs_20{font-size:20px;}
  90. .fs_22{font-size:22px;}
  91. .fs_24{font-size:24px;}
  92. .fs_26{font-size:26px;}
  93. .fs_28{font-size:28px;}
  94. .fs_30{font-size:30px;}
  95. /* 清除浮动-父级使用 */
  96. .fn-clear:after{content:" ";height:0;display:block;font-size:0;visibility:hidden;clear:both;}
  97. /* 清除元素间隙 */
  98. .fn-clear-gap{font-size:0;list-style:none;margin: 0;padding: 0;letter-spacing: 0;word-spacing: 0;}
  99. /* 隐藏, 通常用来与 JS 配合 */
  100. .fn-hide{display:none;}
  101. /* 隐藏多余内容*/
  102. .fn-hidden{overflow: hidden}
  103. /* 文本超出省略号显示 (一行) ------ 使用方式:@include single-line-ellipsis; */
  104. @mixin single-line-ellipsis {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  105. /* 文本超出省略号显示 (多行),括号里传行数 ------ 使用方式:@include multi-line-ellipsis(3); */
  106. @mixin multi-line-ellipsis($rows){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;}
  107. /************************ 网站公共class样式 author: TX date:2020-07-30 **********************/
  108. /* 网站框架 */
  109. .website-frame{
  110. font-family: "Helvetica Neue", Helvetica, Arial, "微软雅黑", sans-serif;
  111. color: #2C3E50;
  112. min-width: 1240px;
  113. }
  114. /* 饿了么右侧生成的间距 */
  115. .el-popup-parent--hidden{
  116. padding-right:0 !important
  117. }
  118. /* 网站主体部分 */
  119. .client-container{
  120. width: 1200px;margin: 0 auto;
  121. @media (max-width: 768px){width: auto;padding: 0 15px;max-width: 100%;box-sizing: border-box;}
  122. }
  123. .client-container-middle{width: 960px;margin: 0 auto;}
  124. /* 网站头部导航栏 */
  125. .client-head{
  126. width: 100%;height: 90px;z-index: 999;
  127. background: #fff;position: fixed;top:0;
  128. .head-box{display: flex;align-items: center; justify-content: space-between;margin: 0 auto;}
  129. //头部图标
  130. .client-head-img{
  131. width: 368px;height: 68px;display: inline-block;margin-right: 40px;
  132. background-image: url("~static/images/website/common/website-logo.png");
  133. background-repeat: no-repeat;background-position: center;background-size: cover;}
  134. //头部导航
  135. .header-menu {
  136. > span, > a {
  137. height: 90px;line-height: 90px;font-size: 16px;display: inline-block;
  138. margin: 0 24px;color: #333333;cursor: pointer;
  139. }
  140. > a:last-child {margin-right: 0;}
  141. > a:visited {color: #333333;}
  142. > a.active {color: #328971;position: relative;}
  143. .active:before {
  144. content: '';background-color: #328971;display: block;
  145. bottom: 20px;left: -16px;right:-16px;height: 4px;position: absolute;
  146. }
  147. }
  148. }
  149. /* 网站标题 */
  150. .client-title{
  151. @include setFontStyle(10);color: rgba(0,0,0,0.85);letter-spacing: 0;padding-top: 80px;text-align: center;
  152. // head移动端响应式
  153. @media (max-width: 768px){@include setFontStyle(-4);padding-top: 20px;font-weight: 700;color: rgb(16, 16, 16);}
  154. }
  155. /* 网站标题多行 */
  156. .client-double-title{
  157. @include setFontStyle(10);color: rgba(0,0,0,0.85);letter-spacing: 0;
  158. padding-top: 80px;text-align: center;line-height: 2;margin-bottom: 24px;
  159. // head移动端响应式
  160. @media (max-width: 768px){@include setFontStyle(-4);padding-top: 20px;font-weight: 700;color: rgb(16, 16, 16);}
  161. }
  162. /* 网站副标题 */
  163. .client-subtitle-title{
  164. width: 650px;@include setFontStyle(-4);color: rgba(0,0,0,0.65);line-height: 30px;margin:0 auto;margin-top: 16px;text-align: center;
  165. @media (max-width: 768px){width: 100%;text-align: justify;@include setFontStyle(-6);line-height: 24px;}
  166. }
  167. .client-subtitle-title-big{
  168. width: 1000px;padding:0 100px;@include setFontStyle(-4);color: rgba(0,0,0,0.65);line-height: 30px;margin:0 auto;margin-top: 48px;text-align: center;
  169. @media (max-width: 768px){width: 100%;text-align: justify;margin-top: 24px;padding: 0;@include setFontStyle(-6);line-height: 24px;}
  170. }
  171. /* 网站通用按钮 */
  172. .client-default-Btn{display: block;@include setFontStyle(-4);background: #2B5CFD;color: rgba(255, 255, 255, 0.85);border-radius: 4px;transition: .3s all linear;text-align: center;}
  173. .client-default-Btn:hover{background: #2249C9;cursor: pointer;}
  174. // 白色
  175. .client-default-white-Btn{display: block;@include setFontStyle(-4);background: #fff;color: #2B5CFD;border-radius: 4px;transition: .3s all linear;text-align: center;}
  176. .client-default-white-Btn:hover{background: #fff;cursor: pointer;}
  177. // 免费试用按钮
  178. .free-trial-default-btn{
  179. width: 238px;height: 40px;line-height: 40px;margin: 40px auto 0;display: block;@include setFontStyle(-4);background: #3e7ee7;
  180. color: rgba(255, 255, 255, 0.85);border-radius: 4px;transition: .3s all linear;text-align: center;
  181. @media (max-width: 768px){width: 122px;height: 35px;line-height: 35px;margin: 16px auto 28px;}
  182. }
  183. .free-trial-default-btn:hover{cursor: pointer;}
  184. /* 网站底部banner */
  185. .client-banner-box{
  186. width: 100%;height: 520px;background-color:#fff;background-position: center;background-repeat: no-repeat;
  187. }
  188. /* 网站底部footer */
  189. .client-footer{
  190. background: #0e7a5a;@include setFontStyle(-6);color: #b8e9e1;padding-top: 42px;
  191. //底部版权
  192. h5{text-align: center;padding: 16px 0;border-top: 1px solid #d2fff7;}
  193. .footer-content-box{
  194. display: flex;flex-wrap: wrap;
  195. p{width: 50%;margin-bottom: 16px;text-indent: 120px}
  196. }
  197. }
  198. // 产品和服务
  199. .products-services-box{
  200. width: 100%;display: flex;align-items: center;justify-content: space-between;margin-bottom: 36px;
  201. // 头部图片
  202. img{float: unset;height: auto;}
  203. // 内容区域
  204. .products-services-content{
  205. width: 410px;float: right;padding: 0;box-sizing: border-box;margin: 0 20px;flex-shrink: 0;
  206. @include setFontStyle(-6);
  207. h5{@include setFontStyle(4);color: #328971;margin-bottom: 10px;line-height: 1.6;}
  208. i{width:50px;height:5px;display: block;background: #3e7ce7;margin: 24px 0;}
  209. p{
  210. font-size: 16px;font-weight: 500;color: #333333;
  211. margin-bottom: 32px;text-align: justify;line-height: 1.8;}
  212. }
  213. }
  214. .products-contrary-box{
  215. // 头部图片
  216. img{float: left;}
  217. // 内容区域
  218. .products-services-content{float: right;}
  219. }
  220. /* 一行中内容逆向显示 */
  221. .website-row-reverse{flex-direction: row-reverse;}
  222. // 产品体验
  223. .client-cpty-box {
  224. display: flex;flex-wrap: wrap;justify-content: space-between;margin: 32px 0 46px;cursor: pointer;
  225. // 产品体验
  226. .cpty-card-box {
  227. width: 300px;text-align: center;background-color: white;border-radius: 12px;
  228. padding: 25px 25px 52px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  229. transition: transform 0.3s ease, box-shadow 0.2s ease;
  230. img{width: 180px;height: 180px}
  231. .title {font-size: 24px;color: #333;margin-bottom: 10px;position: relative;margin-top: 16px;}
  232. .title::after {
  233. content: '';position: absolute;bottom: -10px;left: 50%;
  234. transform: translateX(-50%);width: 60px;height: 3px;background-color: #21a38d;
  235. }
  236. .desc {font-size: 14px;color: #666;line-height: 1;margin-top: 24px;}
  237. }
  238. .cpty-card-box:hover {transform: translateY(-5px);box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);}
  239. }
  240. /* 网站分页 */
  241. .client-el-pagination{
  242. text-align: center;margin-top: 36px;
  243. .el-pagination.is-background .el-pager li:not(.disabled).active{background-color: #579E86;}
  244. }
  245. /* 网站通用详情页布局 */
  246. .client-details-page {
  247. width: 100%;padding: 24px 0;
  248. // 时间人数
  249. .details-visits-box {
  250. margin-bottom: 16px;display: flex;align-items: center;justify-content: center;
  251. i {
  252. width: 16px;height: 16px;margin-right: 8px;background-size: cover;
  253. background-image: url("~static/images/website/common/data-icon.svg");
  254. }
  255. span {@include setFontStyle(-4);color: #666;}
  256. }
  257. //行业资讯详情外层box
  258. .client-details-box {
  259. width: 100%;margin: 0 auto;padding: 32px 0;
  260. h1 {@include setFontStyle(2);color: #333;margin-bottom: 16px;text-align: center;line-height: 1.8;}
  261. //内容区域
  262. .client-content-box {
  263. min-height: calc(100vh - 587px);line-height: 1.8;color: #666;
  264. @include setFontStyle(-4);margin-bottom: 70px;
  265. img {max-width: 100%;}
  266. h1, h2, h3, h4, h5, h6, p {margin-bottom: 10px;}
  267. }
  268. // 上一篇下一篇
  269. .client-details-pagination {
  270. a {
  271. width: 100%;@include setFontStyle(-4);
  272. color: #25ac83;display: block;@include single-line-ellipsis;
  273. }
  274. a + a{margin-top: 16px}
  275. a:hover {color: #25ac83;cursor: pointer}
  276. }
  277. }
  278. }
  279. /* 留言弹窗 */
  280. .cpty-dialog{
  281. .el-dialog{width: 420px;border-radius: 8px;overflow: hidden;}
  282. .el-dialog__header{
  283. background-color: #1c9373;color: #fff;
  284. .el-dialog__title,.el-dialog__headerbtn .el-dialog__close{color: #fff;}
  285. }
  286. .el-form-item{
  287. margin-bottom: 16px;
  288. .el-form-item__label{line-height: 30px}
  289. }
  290. .cpty-submit-btn{
  291. margin: 30px auto 0;background-color: #1c9373;text-align: center;font-size: 16px;
  292. width: 120px;height:40px;line-height:40px;color: #fff;border-radius: 4px;
  293. }
  294. }
  295. /********************************* 麦塔栅格**********************************/
  296. /*
  297. 栅格说明:
  298. 1.网站内容区域1200px;
  299. 2.手机端<=768
  300. 3.pad-------------------(769---992---1200)
  301. pad768*1024(手机样式)
  302. pad1024*1366(pad样式)
  303. 4.pc---1200以上
  304. */
  305. // 大于768的隐藏
  306. @media screen and (min-width: 769px) {
  307. .mta-hidden-sm{display: none!important;}
  308. }
  309. // 小于769的隐藏
  310. @media screen and (max-width: 769px) {
  311. .mta-hidden-xs{display: none!important;}
  312. // 提示框
  313. .phone-message-box{
  314. width: 88%;min-width: unset;top: 35% !important;display: block;text-align: center;padding: 36px 0;
  315. .el-message__icon{margin-bottom: 20px;}
  316. .el-message__icon:before{font-size: 50px;}
  317. }
  318. }