@import "../base/utils";

/************************ 通用class样式 author: TX  date:2020-07-30 **********************/
/* 页面样式 */
body, html, #app {
  padding: 0;
  margin: 0;
  @include setFontStyle(0);
}
/* 去掉列表前的标识, li 会继承 */
ol,ul,dl,dt,dd{list-style:none;margin: 0;padding: 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;}

/* 下外边距 */
.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;}

/*文字对齐方式*/
.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;}

/*  文本超出省略号显示 (一行) ------ 使用方式：@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-container{width: 1200px;margin: 0 auto;}

/* 网站头部导航栏 */
.website-head{
  width: 100%;
  height: 80px;
  background: #fff;

  //头部布局
  .head-layout{display: flex;justify-content: space-between;}

  //头部导航
  .el-menu--horizontal{
    border: 0;
      >.el-menu-item {
        color: rgba(0,0,0,0.85);
        @include setFontStyle(-2);
        height: 80px;
        line-height: 80px;
        margin: 0 10px;
        padding: 0 6px;
      }
      >.el-menu-item.is-active{
        @include setThemeColorBase("color", 0);
        @include setThemeColorBase("border-color", 0);
        border-width:4px;
      }
  }

  //头部左侧区域
  .head-left{
    display: flex;

    //头部图标
    a{width: 160px;height: 80px;display: inline-block;background-image: url("~@/assets/images/website/component/" + "nav-logo.svg");background-repeat: no-repeat;background-position: center;}
  }

  //头部右侧区域
  .head-right{
      i{width: 19px;height: 24px;display:inline-block;background-image: url("~@/assets/images/website/component/" + "nav-phone.svg");margin-right: 8px;vertical-align: middle;}
      span{@include setFontStyle(-2);line-height: 80px;color: rgba(0,0,0,0.85);}
  }
}

/* 网站头部导栏 - 面包屑 */
.website-breadcrumb-box {
  width: 1200px;
  font-size: 16px;
  margin: 24px auto;
  .st-breadcrumb{
    margin-left: 24px;
    a:last-child{
      .breadcrumb-div::after{display: none;}
    }
  }
  .st-breadcrumb-item {display: inline-block;vertical-align: middle;color: #4a73fd;text-decoration: none;}
  .st-breadcrumb-item:hover {cursor: pointer;}
  .st-breadcrumb-item:after {width: 11px;height: 16px;content: '';display: inline-block;padding: 0 16px;vertical-align: middle;zoom:0.8;-moz-transform:scale(0.8,0.8);
    background-image: url("~@/assets/images/website/component/" + "breadcrumb-icon.svg");background-repeat: no-repeat;background-position: center;}
  .breadcrumb-div{display: inline-block;vertical-align: middle;}
  .st-breadcrumb-item-last {display: inline-block;text-decoration: none;color: #333;vertical-align: middle;}
  .st-breadcrumb-item-last:hover {cursor: default;}
  // IE11兼容写法
  @media all and (-ms-high-contrast:none) {
    *::-ms-backdrop, .st-breadcrumb-item-last { margin-left: -10px;}
  }
  // IE10兼容写法
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .st-breadcrumb-item-last { margin-left: -10px;}
  }
}

/* 网站底部footer */
.website-footer{
  background: #1E2534;
  //footer内容区域
  .contact-box{
    padding-top: 40px;
    .contact-left-box{
      display: inline-block;
      dl{display: inline-block;margin-right: 48px;margin-bottom: 40px;vertical-align: top;}
      dt{@include setFontStyle(-4);color: #FFFFFF;margin-bottom: 24px;}
      dd{@include setFontStyle(-6);color: rgba(255,255,255,0.64);margin-bottom: 8px;}
      dd:hover{color: rgba(255,255,255,0.85);cursor: pointer}
    }
    .contact-right-box{
      width: 170px;
      float: right;
      h3{@include setFontStyle(4);color: #FFF;margin-bottom: 16px;}
      p{@include setFontStyle(-6);color: rgba(255,255,255,0.64);margin-bottom: 8px;}
      a{@include setFontStyle(-6);color: #2B5CFD;}
      a:hover{cursor: pointer;}
    }
  }
  //友情链接区域
  .link-box{
    border: 1px solid #979797;
    border-right: 0;
    border-left: 0;
    padding: 32px 0;
    h4{@include setFontStyle(-4);color: #FFF;float: left;margin-right: 48px;}
    .link-a-box{
      margin-left: 114px;
      line-height: 22px;
      a{@include setFontStyle(-6);color: rgba(255,255,255,0.54);display:inline-block;margin-right: 32px;white-space: nowrap;}
      a:hover{color: rgba(255,255,255,0.85);cursor: pointer;}
    }
  }
  //底部版权
  h5{@include setFontStyle(-8);color: #B8B8B8;text-align: center;padding: 16px 0 24px;}
}

/* 网站通用详情页布局 */
.website-details-page{
  background: #f9faff;
  width: 100%;
  .website-details-wrap{
    width: 1200px;
    margin: 24px auto;
    padding: 32px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 8px;
    min-height: calc(100vh - 170px);
    >h1{@include setFontStyle(0);color: rgba(0,0,0,0.85);margin-bottom: 16px;text-align: center}
    p{
      margin-bottom: 24px;
      i{width: 20px;height: 20px;display: inline-block;margin-right: 14px;vertical-align: middle;background-image: url("~@/assets/images/website/industry/" + "industry-details-time.svg");}
      i[type="visits"]{background-image: url("~@/assets/images/website/industry/" + "industry-details-visits.svg");}
      span{@include setFontStyle(-6);display:inline-block;color: #666;margin-right: 60px;vertical-align: middle;}
    }
    .website-content-box{
      line-height: 24px;
      color: rgba(0,0,0,0.64);
      @include setFontStyle(-6);
      p{line-height: 22px;}
      img{max-width: 100%;}
      h1,h2,h3,h4,h5,h6,p{margin-bottom: 10px;}
    }
  }
}