* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  font-family:
    TitilliumWeb,
    -apple-system,
    BlinkMacSystemFont,
    Helvetica,
    'Segoe UI',
    'Hiragino Sans GB',
    'Noto Sans CJK SC',
    Arial,
    Ubuntu,
    sans-serif,
    'Apple Color Emoji';
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

//@media (prefers-color-scheme: dark) {
//  html {
//    color-scheme: dark;
//  }
//}

.ant-drawer-content-wrapper {
  width: 192px !important;
}

.section {
  padding: 60px 0;
  @media screen and (min-width: 769px) {
    padding: 100px 0;
  }
}
.section:not(.bg-gray) + .section:not(.bg-gray) {
  padding-top: 0;
}

.contain {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;

  @media screen and (min-width: 769px) {
    padding-left: 64px;
    padding-right: 64px;
  }
  p {
    color: #37434e;
    line-height: 1.7;
  }
}

.bg-gray {
  background-color: #f7f8f9;
  & + .bg-gray {
    padding-top: 0;
  }
}

.text-center {
  text-align: center;
}

.button-link {
  position: relative;
  color: #3d3fea;
  padding-right: 24px;
  align-self: center;
  cursor: pointer;
  &::before {
    content: '';
    width: 10px;
    height: 2px;
    background-color: #3d3fea;
    display: block;
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    margin: auto;
    transition: right 0.2s;
  }
  &::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 0;
    top: 0;
    margin: auto;
    display: block;
    width: 0.6px;
    height: 0.6px;
    border: 3px solid #3d3fea;
    border-right-color: rgba(0, 0, 0, 0);
    border-left-color: rgba(0, 0, 0, 0);
    border-top-color: rgba(0, 0, 0, 0);
    transform: rotate(90deg);
    color: #3d3fea;
    pointer-events: none;
    transition: right 0.2s;
  }
  &:hover {
    &::before {
      right: 4px;
    }
    &::after {
      right: -2px;
    }
  }
  &.reverse {
    padding-right: 0;
    padding-left: 24px;
    &::before {
      right: unset;
      left: 6px;
      transition: left 0.2s;
    }
    &::after {
      right: unset;
      left: 0px;
      transform: rotate(270deg);
      transition: left 0.2s;
    }
    &:hover {
      &::before {
        left: 2px;
      }
      &::after {
        left: -4px;
      }
    }
  }
}

.markdown-contain {
  padding: 40px 16px 64px 16px;
  margin: 0 auto;
  max-width: 868px;
  @media screen and (min-width: 769px) {
    padding-left: 0;
    padding-right: 0;
  }
  .share-wechat {
    margin-top: 64px;
    @media screen and (min-width: 769px) {
      position: fixed;
      top: 128px;
      right: 64px;
    }
  }
}

@import 'github-markdown';
@import 'monokai-sublime.css';
