@import "../../styles/variable";
// @import "../../public/stylesheets/iconfont.less";

:global {
  #news {
    min-width: 1200px;
    .header-img {
      min-width: 1200px;
      & > img {
        height: 400px;
        width: 100%;
      }
    }
    .dynamic-news {
      margin: 0 auto;
      width: 1200px \0;
      & > .news {
        & > h1 {
          margin: 30px 0;
          font-family: monospace;
          font-size: 24px;
        }
        & > .important-news > li {
          position: relative;
          margin: 0 60px 0 0;
          width: 538px \0;
          //height: 306px;
          border: 1px solid #e4ecee;
          &:last-child,
          &.last {
            margin-right: 0;
          }
          &:hover {
            box-shadow: 0 0 30px #ebf1f1;
          }
          .news-left {
            display: inline-block;
            width: 40%;
            & > img {
              width: 100%;
            }
          }
          .news-right {
            width: 60%;
            height: 100%;
            & > div {
              padding: 50px 30px;
              & > h2 {
                margin: 0 0 6px 0;
                line-height: 24px;
                font-size: 20px;
                font-weight: normal;
                color: #343a3b;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
              & > p {
                margin: 0;
                line-height: 21px;
                font-size: 15px;
                color: #838b8c;
                //text-overflow: -o-ellipsis-lastline;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 4;
                -ms-hyphenate-limit-lines: 4;
                -webkit-box-orient: vertical;
              }
              & > a {
                position: absolute;
                bottom: 20px;
                right: 30px;
                padding: 2px 10px;
                font-size: 14px;
                color: #fff;
                border-radius: 20px;
                background-color: #4674a9;
                .right-arrow.icon-jiantou-copy:before{
                  font-size: 14px;
                }
              }
            }
          }
        }
        & > .normal-news {
          margin: 54px 0 0 0;
          & > li {
            position: relative;
            margin-right: 64px;
            width: 538px \0;
            line-height: 30px;
            &:hover {
              & > a {
                text-decoration: underline;
                font-weight: bold;
              }
              & > time {
                font-weight: bold;
              }
            }
            & > a {
              display: inline-block;
              margin-left: 20px;
              width: 70%;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              font-size: 18px;

            }
            & > time {
              font-size: 14px;
            }
            &:nth-child(2n) {
              margin-right: 0;
            }
            //&:nth-child(1),
            //&:nth-child(2) {
            //  margin-top: 0;
            //}
          }
        }
      }

    }

    .no-data {
      text-align: center;
      font-size: 20px;
    }

    .case {
      margin: 0 auto;
      width: 1200px \0;
      & > h1 {
        margin: 40px 0 20px 0;
        font-family: monospace;
        font-size: 24px;
      }
      .detail {
        position: relative;
        margin: 0 auto;
        padding-top: 28px;
        & > ul > li {
          position: absolute;
          padding-bottom: 170px;
          width: 100%;
          display: none;
          & > div {
            width: 80%;
            margin: 0 auto;
            & > h2 {
              margin: 16px 0;
              font-size: 20px;
              font-weight: 100;
              -webkit-font-smoothing: antialiased;
            }
            & > h3,
            & > p {
              margin: 0;
              line-height: 28px;
              font-size: 18px;
              font-weight: normal;
              color: #7b7b7b;
              -webkit-font-smoothing: antialiased;
            }
          }
          & > a {
            position: absolute;
            right: 30px;
            bottom: 60px;
            padding: 12px 100px 12px 26px;
            font-size: 18px;
            color: #fff;
            background-color: #4674a9;
            border-radius: 20px;
            & > i.right-arrow:before {
              font-size: 18px;
              color: #fff;
            }
          }
        }
      }
    }
    .carouse {
      position: relative;
      width: 1200px \0;
      height: 312px;
      overflow: hidden;
      cursor: pointer;
      .prev,
      .next {
        position: absolute;
        top: 50%;
        margin-top: -25px;
        height: 50px;
        width: 50px;
        text-align: center;
        line-height: 50px;
        font-size: 30px;
        color: #ff0000;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, .3);
        background-color: #aab1b8 \0;
        z-index: 10;
        &:hover {
          background-color: rgba(0, 0, 0, .5);
          background-color: #aab1b8 \0;
        }
      }
      .prev {
        left: 30px;
      }
      .next {
        right: 30px;
      }
      .imgs-box {
        margin: 0;
        position: absolute;
        left: 0;
        top: 0;
        & > li > a {
          display: inline-block;
          & > img {
            width: 1200px;
          }
        }
      }
    }

    .screen() {
      .media(@screen-width-small, @container-width-small);
      .media(@screen-width, @container-width);
      .media(@screen-width-large, @container-width-large);

      .media(@sw, @cw) {
        @media screen and (min-width: @sw) {
          .rules(@cw);
        }
      }

      .rules(@cw) {

        .dynamic-news {
          width: @cw;
          & > .news {
            width: @cw;
            & > ul > li {
              width: @cw / 2 - 32px;
            }
          }
        }
        .case {
          width: @cw;
          .carouse {
            width: @cw;
            & > ul {
              width: 4 * @cw;
              img {
                width: @cw;
                height: auto;
              }
            }
          }
          .detail {
            width: @cw;
          }
        }

      }
    }

    body {
      .screen();
    }
  }
}
