@font-face {
  font-family: "Source Han Serif SC";
  font-style: normal;
  font-weight: 400;
  src: url("https://jdh8.github.io/source-han-serif/SourceHanSerifCN-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Source Han Serif SC";
  font-style: normal;
  font-weight: 700;
  src: url("https://jdh8.github.io/source-han-serif/SourceHanSerifCN-Bold.woff2") format("woff2");
}

html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: Optima, "Open Sans", "Lucida Sans", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.75;
}

button, input, select, textarea, label {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

a {
  color: #000;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid;
}

sup a,
.masthead h2 a {
  border-bottom: none;
}

p {
  margin: 1em 0;
}

h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 60px 0 30px;
  line-height: 1.25;
  text-align: center;
}

h1 {
  font-size: 32px;
  font-weight: normal;
}

h2 {
  font-size: 22px;
  font-weight: bold;
}

h3, h4, h5, h6 {
  font-size: 19px;
  font-weight: bold;
  text-align: left;
}

ul, ol {
  padding: 0 0 0 20px;
}

li {
  margin: 4px 0;
  padding: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid;
  margin: 50px auto;
  padding: 0;
  max-width: 300px;
}

.copyright {
  text-align: center;
}

body {
  width: 960px;
  margin: 0 auto;
  padding: 30px 0;
}

.masthead {
  width: 260px;
  padding: 20px 50px 20px 10px;
  float: left;
}

.main {
  width: 700px;
  padding: 32px 10px 20px 50px;
  margin-left: 260px;
  border-left: 3px solid #000;
  min-height: calc(100vh - 60px);
}

.masthead h2 {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 34px;
  padding: 0;
  text-align: center;
  font-size: 40px;
  line-height: 58px;
}

.masthead .menu {
  margin-right: 20px;
  direction: rtl;
}

.masthead .menu a {
  direction: ltr;
}

.masthead .menu ul {
  margin: 0;
}

.masthead .menu li {
  margin: 4px 0;
}

#menu-check,
#menu-label {
  display: none;
}

.main .title h1 {
  margin-top: 0;
  margin-bottom: 40px;
}

.search {
  position: relative;
  margin: 18px 0 0;
}

.search input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 52px;
  box-shadow: 0 0 0 1px #f4f4f4;
}

.search input::placeholder {
  color: #c8c8c8;
}

.search input:focus {
  outline: none;
  border-color: #cfcfcf;
  box-shadow: 0 0 0 1px #ececec;
}

.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  transform: translateY(-58%);
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: #9ca3af;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.footnotes {
  font-size: .9em;
}

.footnotes ol {
  margin-top: 0;
}

.footnotes p {
  margin: 0 0 1em;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  font-weight: bold;
}

.nav-next {
  margin-left: 1em;
  text-align: right;
}

.nav-prev {
  margin-right: 1em;
}

.catalog-list {
  margin-top: 0;
}

.tag-list a {
  display: inline-block;
  margin: 0 12px 12px 0;
}

.is-hidden {
  display: none;
}

.unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@-ms-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}

@media screen and (max-width: 960px) {
  body {
    width: auto;
    max-width: 700px;
  }

  .masthead {
    width: auto;
    float: none;
    padding: 20px 0 60px;
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    border-bottom: 3px solid #000;
  }

  .main {
    width: auto;
    padding: 40px 10px;
    margin-left: 0;
    border-left: none;
    min-height: auto;
  }

  .masthead .menu {
    direction: ltr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .masthead .menu ul {
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .masthead .menu li {
    border-bottom: 1px solid;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .masthead .menu li:first-child {
    border-top: 1px solid;
  }

  .masthead .menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: none;
  }

  #menu-label {
    display: inline-block;
    padding: 0 20px;
    height: 50px;
    border: 1px solid;
    cursor: pointer;
    line-height: 50px;
    color: #333;
    font-size: 20px;
    margin-top: 10px;
  }

  #menu-label .icon {
    padding-right: 8px;
    width: 30px;
  }

  #menu-check ~ label .close-icon {
    display: none;
  }

  #menu-check ~ label .open-icon {
    display: inline-block;
  }

  #menu-check:checked ~ label .close-icon {
    display: inline-block;
  }

  #menu-check:checked ~ label .open-icon {
    display: none;
  }

  #menu-check ~ ul {
    display: none;
  }

  #menu-check:checked ~ ul {
    display: block;
    margin-top: 50px;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  h3, h4, h5, h6 {
    font-size: 16px;
  }

  .masthead {
    padding-top: 0;
  }
}
