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

:global {
  #news {
    .header-img > 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 {
          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: 50%;
            height: 306px;
          }
          .news-right {
            position: relative;
            width: 50%;
            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: 7;
                -ms-hyphenate-limit-lines: 7;
                -webkit-box-orient: vertical;
              }
              & > a {
                position: absolute;
                bottom: 24px;
                left: 30px;
                padding: 6px 20px;
                font-size: 16px;
                color: #fff;
                border-radius: 20px;
                background-color: #4674a9;
              }
            }
          }
        }
        & > .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;
      .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;
        cursor: pointer;
        &: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 > 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();
    }
  }
}
