@import "../base/utils"; /************************ 通用class样式 author: TX date:2020-07-30 **********************/ /* 页面样式 */ body, html, #app {padding: 0;margin: 0;@include setFontStyle(0);} /* 内外边距通常让各个浏览器样式的表现位置不同 */ 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;} /* HTML5 媒体文件跟 img 保持一致 */ audio,canvas,video{display:inline-block;*display:inline;*zoom:1;} /* 默认不显示下划线,保持页面简洁 */ ins,a{text-decoration:none;cursor:pointer;} /* 去掉列表前的标识, li 会继承 */ ol,ul,dl,dt,dd{ list-style:none; margin: 0; padding: 0; letter-spacing: 0; word-spacing: 0; font-size: 0;} /* 让标题都自定义, 适应多个系统应用 */ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;} /* 外边距 */ .m5{margin:5px;} .m10 {margin: 10px;} .m15 {margin: 15px;} .m20 {margin: 20px;} .m25 {margin: 25px;} .m30 {margin: 30px;} .m35 {margin: 35px;} .m40 {margin: 40px;} /* 外边距 上下边距 左右居中 */ .ma0{margin:0 auto;} .ma5{margin:5px auto;} .ma10{margin:10px auto;} .ma15{margin:15px auto;} .ma20{margin:20px auto;} .ma25{margin:25px auto;} .ma30{margin:30px auto;} .ma35{margin:35px auto;} .ma40{margin:40px auto;} /* 上外边距 */ .mt5 {margin-top: 5px;} .mt10 {margin-top: 10px;} .mt15 {margin-top: 15px;} .mt20 {margin-top: 20px;} .mt25 {margin-top: 25px;} .mt30 {margin-top: 30px;} .mt35 {margin-top: 35px;} .mt40 {margin-top: 40px;} .mt48 {margin-top: 48px;} /* 下外边距 */ .mb5 {margin-bottom: 5px;} .mb10 {margin-bottom: 10px;} .mb15 {margin-bottom: 15px;} .mb20 {margin-bottom: 20px;} .mb25 {margin-bottom: 25px;} .mb30 {margin-bottom: 30px;} .mb35 {margin-bottom: 35px;} .mb40 {margin-bottom: 40px;} /* 左外边距 */ .ml5 {margin-left: 5px;} .ml10 {margin-left: 10px;} .ml15 {margin-left: 15px;} .ml20 {margin-left: 20px;} .ml25 {margin-left: 25px;} .ml30 {margin-left: 30px;} .ml35 {margin-left: 35px;} .ml40 {margin-left: 40px;} /* 右外边距 */ .mr5 {margin-right: 5px;} .mr10 {margin-right: 10px;} .mr15 {margin-right: 15px;} .mr20 {margin-right: 20px;} .mr25 {margin-right: 25px;} .mr30 {margin-right: 30px;} .mr35 {margin-right: 35px;} .mr40 {margin-right: 40px;} /* 内边距*/ .ptb20{padding: 20px 0;} .ptb30{padding: 30px 0;} /*文字对齐方式*/ .tl{text-align:left;} .tr{text-align:right;} .tc{text-align:center;} /*字体大小*/ .fs_12{font-size:12px;} .fs_14{font-size:14px;} .fs_16{font-size:16px;} .fs_18{font-size:18px;} .fs_20{font-size:20px;} .fs_22{font-size:22px;} .fs_24{font-size:24px;} .fs_26{font-size:26px;} .fs_28{font-size:28px;} .fs_30{font-size:30px;} /* 清除浮动-父级使用 */ .fn-clear:after{content:" ";height:0;display:block;font-size:0;visibility:hidden;clear:both;} /* 清除元素间隙 */ .fn-clear-gap{font-size:0;list-style:none;margin: 0;padding: 0;letter-spacing: 0;word-spacing: 0;} /* 隐藏, 通常用来与 JS 配合 */ .fn-hide{display:none;} /* 隐藏多余内容*/ .fn-hidden{overflow: hidden} /* 文本超出省略号显示 (一行) ------ 使用方式:@include single-line-ellipsis; */ @mixin single-line-ellipsis {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;} /* 文本超出省略号显示 (多行),括号里传行数 ------ 使用方式:@include multi-line-ellipsis(3); */ @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;} /************************ 网站公共class样式 author: TX date:2020-07-30 **********************/ /* 网站框架 */ .website-frame{ font-family: "Helvetica Neue", Helvetica, Arial, "微软雅黑", sans-serif; color: #2C3E50; min-width: 1240px; } /* 饿了么右侧生成的间距 */ .el-popup-parent--hidden{ padding-right:0 !important } /* 网站主体部分 */ .client-container{ width: 1200px;margin: 0 auto; @media (max-width: 768px){width: auto;padding: 0 15px;max-width: 100%;box-sizing: border-box;} } .client-container-middle{width: 960px;margin: 0 auto;} /* 网站头部导航栏 */ .client-head{ width: 100%;height: 90px;z-index: 999; background: #fff;position: fixed;top:0; .head-box{display: flex;align-items: center; justify-content: space-between;margin: 0 auto;} //头部图标 .client-head-img{ width: 368px;height: 68px;display: inline-block;margin-right: 40px; background-image: url("~static/images/website/common/website-logo.png"); background-repeat: no-repeat;background-position: center;background-size: cover;} //头部导航 .header-menu { > span, > a { height: 90px;line-height: 90px;font-size: 16px;display: inline-block; margin: 0 24px;color: #333333;cursor: pointer; } > a:last-child {margin-right: 0;} > a:visited {color: #333333;} > a.active {color: #328971;position: relative;} .active:before { content: '';background-color: #328971;display: block; bottom: 20px;left: -16px;right:-16px;height: 4px;position: absolute; } } } /* 网站标题 */ .client-title{ @include setFontStyle(10);color: rgba(0,0,0,0.85);letter-spacing: 0;padding-top: 80px;text-align: center; // head移动端响应式 @media (max-width: 768px){@include setFontStyle(-4);padding-top: 20px;font-weight: 700;color: rgb(16, 16, 16);} } /* 网站标题多行 */ .client-double-title{ @include setFontStyle(10);color: rgba(0,0,0,0.85);letter-spacing: 0; padding-top: 80px;text-align: center;line-height: 2;margin-bottom: 24px; // head移动端响应式 @media (max-width: 768px){@include setFontStyle(-4);padding-top: 20px;font-weight: 700;color: rgb(16, 16, 16);} } /* 网站副标题 */ .client-subtitle-title{ width: 650px;@include setFontStyle(-4);color: rgba(0,0,0,0.65);line-height: 30px;margin:0 auto;margin-top: 16px;text-align: center; @media (max-width: 768px){width: 100%;text-align: justify;@include setFontStyle(-6);line-height: 24px;} } .client-subtitle-title-big{ 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; @media (max-width: 768px){width: 100%;text-align: justify;margin-top: 24px;padding: 0;@include setFontStyle(-6);line-height: 24px;} } /* 网站通用按钮 */ .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;} .client-default-Btn:hover{background: #2249C9;cursor: pointer;} // 白色 .client-default-white-Btn{display: block;@include setFontStyle(-4);background: #fff;color: #2B5CFD;border-radius: 4px;transition: .3s all linear;text-align: center;} .client-default-white-Btn:hover{background: #fff;cursor: pointer;} // 免费试用按钮 .free-trial-default-btn{ width: 238px;height: 40px;line-height: 40px;margin: 40px auto 0;display: block;@include setFontStyle(-4);background: #3e7ee7; color: rgba(255, 255, 255, 0.85);border-radius: 4px;transition: .3s all linear;text-align: center; @media (max-width: 768px){width: 122px;height: 35px;line-height: 35px;margin: 16px auto 28px;} } .free-trial-default-btn:hover{cursor: pointer;} /* 网站底部banner */ .client-banner-box{ width: 100%;height: 520px;background-color:#fff;background-position: center;background-repeat: no-repeat; } /* 网站底部footer */ .client-footer{ background: #0e7a5a;@include setFontStyle(-6);color: #b8e9e1;padding-top: 42px; //底部版权 h5{text-align: center;padding: 16px 0;border-top: 1px solid #d2fff7;} .footer-content-box{ display: flex;flex-wrap: wrap; p{width: 50%;margin-bottom: 16px;text-indent: 120px} } } // 产品和服务 .products-services-box{ width: 100%;display: flex;align-items: center;justify-content: space-between;margin-bottom: 36px; // 头部图片 img{float: unset;height: auto;} // 内容区域 .products-services-content{ width: 410px;float: right;padding: 0;box-sizing: border-box;margin: 0 20px;flex-shrink: 0; @include setFontStyle(-6); h5{@include setFontStyle(4);color: #328971;margin-bottom: 10px;line-height: 1.6;} i{width:50px;height:5px;display: block;background: #3e7ce7;margin: 24px 0;} p{ font-size: 16px;font-weight: 500;color: #333333; margin-bottom: 32px;text-align: justify;line-height: 1.8;} } } .products-contrary-box{ // 头部图片 img{float: left;} // 内容区域 .products-services-content{float: right;} } /* 一行中内容逆向显示 */ .website-row-reverse{flex-direction: row-reverse;} // 产品体验 .client-cpty-box { display: flex;flex-wrap: wrap;justify-content: space-between;margin: 32px 0 46px;cursor: pointer; // 产品体验 .cpty-card-box { width: 300px;text-align: center;background-color: white;border-radius: 12px; padding: 25px 25px 52px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.2s ease; img{width: 180px;height: 180px} .title {font-size: 24px;color: #333;margin-bottom: 10px;position: relative;margin-top: 16px;} .title::after { content: '';position: absolute;bottom: -10px;left: 50%; transform: translateX(-50%);width: 60px;height: 3px;background-color: #21a38d; } .desc {font-size: 14px;color: #666;line-height: 1;margin-top: 24px;} } .cpty-card-box:hover {transform: translateY(-5px);box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);} } /* 网站分页 */ .client-el-pagination{ text-align: center;margin-top: 36px; .el-pagination.is-background .el-pager li:not(.disabled).active{background-color: #579E86;} } /* 网站通用详情页布局 */ .client-details-page { width: 100%;padding: 24px 0; // 时间人数 .details-visits-box { margin-bottom: 16px;display: flex;align-items: center;justify-content: center; i { width: 16px;height: 16px;margin-right: 8px;background-size: cover; background-image: url("~static/images/website/common/data-icon.svg"); } span {@include setFontStyle(-4);color: #666;} } //行业资讯详情外层box .client-details-box { width: 100%;margin: 0 auto;padding: 32px 0; h1 {@include setFontStyle(2);color: #333;margin-bottom: 16px;text-align: center;line-height: 1.8;} //内容区域 .client-content-box { min-height: calc(100vh - 587px);line-height: 1.8;color: #666; @include setFontStyle(-4);margin-bottom: 70px; img {max-width: 100%;} h1, h2, h3, h4, h5, h6, p {margin-bottom: 10px;} } // 上一篇下一篇 .client-details-pagination { a { width: 100%;@include setFontStyle(-4); color: #25ac83;display: block;@include single-line-ellipsis; } a + a{margin-top: 16px} a:hover {color: #25ac83;cursor: pointer} } } } /* 留言弹窗 */ .cpty-dialog{ .el-dialog{width: 420px;border-radius: 8px;overflow: hidden;} .el-dialog__header{ background-color: #1c9373;color: #fff; .el-dialog__title,.el-dialog__headerbtn .el-dialog__close{color: #fff;} } .el-form-item{ margin-bottom: 16px; .el-form-item__label{line-height: 30px} } .cpty-submit-btn{ margin: 30px auto 0;background-color: #1c9373;text-align: center;font-size: 16px; width: 120px;height:40px;line-height:40px;color: #fff;border-radius: 4px; } } /********************************* 麦塔栅格**********************************/ /* 栅格说明: 1.网站内容区域1200px; 2.手机端<=768 3.pad-------------------(769---992---1200) pad768*1024(手机样式) pad1024*1366(pad样式) 4.pc---1200以上 */ // 大于768的隐藏 @media screen and (min-width: 769px) { .mta-hidden-sm{display: none!important;} } // 小于769的隐藏 @media screen and (max-width: 769px) { .mta-hidden-xs{display: none!important;} // 提示框 .phone-message-box{ width: 88%;min-width: unset;top: 35% !important;display: block;text-align: center;padding: 36px 0; .el-message__icon{margin-bottom: 20px;} .el-message__icon:before{font-size: 50px;} } }