::-webkit-input-placeholder { /* WebKit browsers */
  color: #999;
}

:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  color: #999;
}

::-moz-placeholder { /* Mozilla Firefox 19+ */
  color: #999;
}

:-ms-input-placeholder { /* Internet Explorer 10+ */
  color: #999;
}

body, html {
  background: #F8F8F8;
  font-family: -apple-system, BlinkMacSystemFont, "opensans", "Optima", "Microsoft Yahei", sans-serif;
  font-weight: normal;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}

.page-block {
  background: #FFF;
  margin: 0.75rem 0;
  border-radius: 0.1rem;
  -moz-box-shadow: 0rem 0rem 0.15rem #CCC;
  -webkit-box-shadow: 0rem 0rem 0.15rem #CCC;
  box-shadow: 0rem 0rem 0.15rem #CCC;

  & > .head {
    padding: 0.5rem;
    color: #333;
    line-height: 1.2rem;
    font-size: 1.2rem;
    border-bottom: 0.05rem solid #EEE;

    h2 {
      border-left: 0.15rem solid var(--color-primary);
      line-height: 1.2rem;
      padding: 0 0 0 0.3rem;
      font-size: 1.2rem;
    }
  }

  & > .body {
    padding: 0.5rem;
    color: #666;
  }
}

header {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0rem;
  width: 35%;
  background: no-repeat center;
  background-size: cover;

  .container {
    padding: 2rem;

    .avatar {
      text-align: center;

      img {
        width: 3.5rem;
        height: 3.5rem;
        border: 0.1rem solid #CCC;
        border-radius: 50%;
      }
    }

    h1 {
      text-align: center;
      padding: 1rem 0 0 0;
      margin: 0;

      a {
        color: #FFF;
        font-size: 1.4rem;
        line-height: 1.4rem;
        display: block;
      }
    }

    h2 {
      color: #FFF;
      text-align: center;
      font-size: 1rem;
      padding: 0.5rem 0 0 0;
      margin: 0;
      line-height: 1rem;
    }

    .menu {
      text-align: center;
      padding: 1.5rem 0 0 0;
      margin: 0;

      li {
        display: inline-block;
        list-style: none;
        padding: 0;
        margin: 0 0.25rem;

        a {
          display: inline-block;
          width: 1.6rem;
          height: 1.6rem;
          border-radius: 50%;
          color: #EEE;
          border: 0.05rem solid #EEE;
          text-align: center;
          font-size: 0.8rem;
          line-height: 1.6rem;
        }
      }
    }

    .introduction {
      color: #CCC;
      padding: 1rem 0 0 0;
      font-size: 0.7rem;
      line-height: 1.2rem;

      p {
        padding: 0;
        margin: 0;
      }
    }
  }


  .copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    color: #999;
    text-align: center;
    width: 35%;
    font-size: 0.6rem;
    line-height: 1.2rem;

    a {
      color: #999;
    }
  }
}

#body {
  padding: 0 0 0 35%;

  .container {
    padding: 1rem;

    .blog-list {
      .blog-list-block {
        padding: 0.5rem;
        box-sizing: border-box;
        width: 33%;

        .item {
          display: block;
          box-sizing: border-box;
          background: #FFF;
          padding: 1rem;
          margin: 0;

          &:hover {
            box-shadow: 0 0 0.4rem #CCC;
          }

          h2 {
            font-size: 1rem;
            color: var(--color-primary);
            padding: 0;
            margin: 0;
            line-height: 1.4rem;
          }

          .cover {
            margin: 1rem 0 0 0;

            &.cover-only {
              margin: -1rem;
            }

            img {
              width: 100%;
              min-height: 2.5rem;
            }
          }

          .summary {
            margin: 1rem 0 0 0;
            font-size: 0.7rem;
            line-height: 1.2rem;
            color: #999;
          }
        }
      }
    }

    .page {
      text-align: center;

      a {
        display: inline-block;
        line-height: 1.2rem;
        padding: 0.8rem;
        color: #999;
        box-shadow: 0 0 0.1rem #CCC;
        background: #FFF;
        border-radius: 0.1rem;
        border: none;
        margin: 0 0.25rem;
      }
    }

    .comment {
      padding: 1rem;
      margin: 1rem;

      .head {
        padding: 0 0 0 3.5rem;
        overflow: hidden;

        .avatar {
          float: left;
          margin: 0 0 0 -3.5rem;

          img {
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            border: 0.05rem solid #EEE;
          }
        }

        .input {
          padding: 0.3rem 0 0 0;

          input {
            border: none;
            border-bottom: 0.05rem solid #EEE;
            height: 2rem;
            line-height: 2rem;
            font-size: 0.8rem;
            display: block;
            width: 100%;
            outline: none;
            color: #333;
            box-sizing: border-box;
          }
        }
      }

      .body {
        padding: 1rem 0 0 0;

        textarea {
          display: block;
          width: 100%;
          height: 6.4rem;
          font-size: 0.8rem;
          line-height: 1.2rem;
          border: 0.05rem solid #EEE;
          color: #333;
          outline: none;
          padding: 0.5rem;
          box-sizing: border-box;
          resize: vertical;
          border-radius: 0.15rem;
        }
      }

      .contact {
        padding: 1rem 0 0 0;

        input {
          border: 0.05rem solid #EEE;
          font-size: 0.8rem;
          height: 2rem;
          line-height: 2rem;
          display: block;
          width: 100%;
          outline: none;
          color: #333;
          padding: 0.5rem;
          box-sizing: border-box;
          border-radius: 0.15rem;
        }

        button {
          border: 0.05rem solid #EEE;
          border-radius: 0.15rem;
          display: block;
          text-align: center;
          font-size: 0.8rem;
          height: 2rem;
          line-height: 2rem;
          background: #FFF;
          width: 100%;
          box-sizing: border-box;
          cursor: pointer;

          &:hover {
            background: #EEE;
          }
        }
      }

      .desc {
        padding: 1rem 0 0;
        color: #999;
      }
    }

    .comment-list {
      .item {
        padding: 1rem;
        margin: 1rem;

        .head {
          padding: 0 0 0 3.5rem;
          border: none;

          .avatar {
            float: left;
            margin: 0 0 0 -3.5rem;

            img {
              width: 3rem;
              height: 3rem;
              border-radius: 50%;
              border: 0.05rem solid #EEE;
            }
          }

          h3 {
            border: none;
            height: 2rem;
            line-height: 2rem;
            font-size: 1rem;
            display: block;
            width: 100%;
            outline: none;
            color: #666;
            box-sizing: border-box;
            margin-bottom: 0;

            a {
              color: #666;
            }
          }

          h4 {
            color: #999;
            line-height: 1rem;
            font-size: 0.7rem;
          }
        }

        .content {
          padding: 1rem 0 0 0;
          font-size: 0.7rem;
          line-height: 1.2rem;
          color: #666;

          p {
            padding: 0;
            margin: 0;
          }
        }

        .reply {
          margin: 1rem 0 0 0;
          border-left: 0.1rem solid #CCC;
          padding: 0.5rem 0.5rem 0.5rem 1rem;
          background: #EEE;

          p {
            margin: 0;
          }
        }

        .action {
          margin: 1rem 0 0 0;
          padding: 1rem 0 0 0;
          overflow: hidden;
          border-top: 0.05rem solid #EEE;

          a {
            display: block;
            width: 50%;
            float: left;
            padding: 0;
            margin: 0;
            list-style: none;
            color: #999;
            text-align: center;

            &.active {
              color: var(--color-primary);
            }

            &:hover {
              color: #666;
            }
          }
        }
      }
    }

    .blog {
      padding: 1rem;

      .head {
        h1 {
          a {
            display: inline-block;
            height: 1.6rem;
            line-height: 1.4rem;
            padding: 0 0.8rem;
            color: #666;
            border: 0.05rem solid #CCC;
            margin: 0 0.25rem;
            vertical-align: bottom;
            border-radius: 0.1rem;
            text-decoration: none;
            background: #FFF;
            box-shadow: 0 0 0.1rem #CCC;
          }

          font-size: 1.4rem;
          line-height: 1.6rem;
        }

        .attr {
          color: #999;
        }
      }

      .body {
        .summary {
          margin: 1rem 0 0 0;
          border-left: 0.1rem solid #CCC;
          padding: 0.5rem 0.5rem 0.5rem 1rem;
          background: #EEE;

          p {
            margin: 0;
            padding: 0;
            font-size: 0.7rem;
            line-height: 1.2rem;
            color: #666;
          }
        }

        .images {
          margin: 1rem 0 0 0;

          .image {
            margin: 0.5rem 0;
            text-align: center;

            img {
              max-width: 100%;
            }
          }
        }

        .content {
          margin: 1rem 0 0 0;

          p {
            padding: 0;
            font-size: 0.7rem;
            line-height: 1.2rem;
            color: #666;
          }
        }

        .share {
          padding: 1rem 0;
          text-align: center;
        }
      }

      .nav {
        a {
          display: block;
          color: #999;
          font-size: 0.8rem;
          line-height: 1.4rem;

          &:hover {
            color: var(--color-primary);
          }
        }
      }
    }
  }
}

@media (max-width: 40rem) {
  header {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;

    .copyright {
      display: none;
    }
  }

  #body {
    padding: 0;

    .container {
      padding: 0;

      .blog-list {
        .blog-list-block {
          width: 100% !important;
        }
      }
    }
  }
}


