@import "../../styles/size.scss";
@import "../../styles/mixin.scss";

.download-version {
  @include content-width;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 30px;

  &-title {
    font-weight: 700;
    color: #031b3e;
    font-size: 48px;
    line-height: 90px;
    @media screen and (max-width: 640px) {
      font-size: 7vw;
      line-height: 1.5;
    }
  }
  &-subtitle {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
    line-height: 43px;
  }
  &-content {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
  }
  &-panel {
    width: 223px;
    height: 163px;
    background-color: #ffffff;
    border-radius: 27px;
    box-shadow: 0px 3px 25px rgba(0, 0, 0, 0.11);
    padding: 0px 18px;
    box-sizing: border-box;
    text-align: center;
    &-title {
      font-weight: 700;
      color: #031b3e;
      font-size: 40px;
      line-height: 53px;
      border-bottom: 1px solid #707070;
      padding: 32px 0px 10px;
    }
    &-time {
      color: #707070;
      font-size: 14px;
      line-height: 43px;
    }
    @media screen and (max-width: 640px) {
      display: none;
    }
  }
  &-main {
    width: 812px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 4px 14px 30px;
    box-sizing: border-box;

    &-title {
      color: #000000;
      font-size: 18px;
      line-height: 43px;
      border-bottom: 1px solid #707070;
      @media screen and (max-width: 640px) {
        font-size: 12px;
        line-height: 1.5;
      }
    }

    @media screen and (max-width: 640px) {
      width: 94vw;
    }
  }
  &-documentation {
    position: absolute;
    right: 30px;
    top: 10px;
    @media screen and (max-width: 640px) {
      right: -20px;
      font-size: 14px;
      line-height: 1.5;
      padding: 0px 5px;
    }
  }
  &-log {
    position: relative;
    padding: 10px 0px;
  }
  &-log-title {
    @media screen and (max-width: 640px) {
      font-size: 14px;
      line-height: 1.5;
      .ant-btn-link {
        font-size: 14px;
        line-height: 1.5;
        padding: 0px 5px;
      }
    }
  }
  &-log-content {
    min-height: 300px;
    line-height: 1.5;
    h1 {
      display: none;
    }
    li {
      display: none;
    }
    li:nth-child(-n + 3) {
      display: list-item;
    }
    p {
      word-break: break-all;
    }
    @media screen and (max-width: 640px) {
      font-size: 14px;
      line-height: 1.5;
    }
  }
  &-deployment-title {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
    line-height: 43px;
  }
  &-deployments {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  &-deployment {
    display: flex;
    flex-direction: column;
    align-items: center;
    &-icon {
      width: 38px;
      height: 34px;
      @include bg-100;
    }
    &-text {
      color: #000000;
      font-size: 18px;
      line-height: 43px;
      @media screen and (max-width: 640px) {
        font-size: 14px;
        line-height: 1.5;
      }
    }
  }
  .ant-collapse {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
    background-color: transparent;
    @media screen and (max-width: 640px) {
      font-size: 14px;
      .download-version-item-title {
        display: none;
      }
      .ant-collapse-content-box {
        padding: 5px;
      }
    }
  }
  .ant-collapse-header {
    background-color: #ececec;
  }
  .ant-collapse-header .ant-collapse-arrow {
    font-size: 18px !important;
  }
  &-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid #d3d3d3;
    .ant-btn > span {
      text-decoration: underline;
    }
  }
  &-sider {
    &-content {
      border-radius: 10px;
      width: 350px;
      padding: 26px 40px;
      box-sizing: border-box;
      background-color: #f8f8f8;
    }
    .ant-btn {
      padding-left: 0px;
    }
    .ant-btn > span {
      text-decoration: underline;
    }
    ul {
      margin-top: 6px;
    }
    @media screen and (max-width: 640px) {
      display: none;
    }
  }
  &-more {
    cursor: pointer;
    &:hover {
      color: #1677ff;
    }
  }
}
