/* 把真实的展示区域隐藏 */
.container .inner {
  display: none;
}

.skeleton {
  display: flex;
  position: relative;
  width: 1200px;
  /* min-height: 670px; */
  margin: 0 auto 20px;
}
/* sider start */
.skeleton-sidebar {
  width: 240px;
  margin-right: 20px;
  overflow: hidden;
}

.skeleton-sidebar .skeleton-item {
  /* transition: all 0.3s ease-in; */
  background-color: #fff;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 0 2px #ddd !important;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  user-select: none;
}

.skeleton-sidebar .skeleton-item:last-child {
  margin-bottom: 0;
}

.skeleton-sidebar .skeleton-item h3 {
  color: #21a07d;
  border-bottom: 1px solid #efefef;
  background: #f2f2f2;
  display: inline-block;
  height: 28px;
  border-radius: 4px;
  width: 90%;
  margin-top: 10px;
  box-sizing: border-box;
  -webkit-animation: skeleton-loading 1.4s ease infinite;
  animation: skeleton-loading 1.2s ease infinite;
  color: transparent;
}

.skeleton-sidebar .skeleton-item ul {
  padding: 10px;
  text-align: left;
}

.skeleton-sidebar .skeleton-item li {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(25%, #f2f2f2),
    color-stop(37%, #e6e6e6),
    color-stop(63%, #f2f2f2)
  );
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  -webkit-animation: skeleton-loading 1.4s ease infinite;
  animation: skeleton-loading 1.4s ease infinite;
  background: #f2f2f2;
  display: inline-block;
  height: 24px;
  border-radius: 4px;
  width: 90%;
  margin-bottom: 5px;
}

.skeleton-sidebar .skeleton-item a {
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  padding: 0 !important;
  color: transparent;
  pointer-events: none;
}

@-webkit-keyframes skeleton-loading {
  0% {
    opacity: 0.8;
  }

  20% {
    opacity: 0.6;
  }

  40% {
    opacity: 0.5;
  }

  60% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.8;
  }
}

@keyframes skeleton-loading {
  0% {
    opacity: 0.8;
  }

  20% {
    opacity: 0.6;
  }

  40% {
    opacity: 0.5;
  }

  60% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.8;
  }
}

/* sider end */

/* main start */
.skeleton-main {
  flex: 1;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 2px #ddd;
  padding: 15px 0 0;
}

.skeleton-subject {
  height: auto;
}

.skeleton-subject .skeleton-post {
  position: relative;
  bottom: -1px;
  padding: 10px 50px;
  border-bottom: 1px dotted #ccc;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.skeleton-subject .skeleton-post:last-child {
  border: 0px solid #ccc;
}
.skeleton-subject .skeleton-post p {
  margin-bottom: 7px;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(25%, #f2f2f2),
    color-stop(37%, #e6e6e6),
    color-stop(63%, #f2f2f2)
  );
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  -webkit-animation: skeleton-loading 1.4s ease infinite;
  animation: skeleton-loading 1.4s ease infinite;
  background: #f2f2f2 !important;
  height: 24px;
  border-radius: 4px;
  width: 60%;
  color: transparent;
}

.skeleton-subject .skeleton-post p a {
  color: transparent;
  pointer-events: none;
}

.skeleton-subject .skeleton-post p:nth-child(1) {
  width: 40%;
}

.skeleton-subject .skeleton-post p:nth-child(3) {
  width: 20%;
}

/* main end */

/* content start */

.skeleton-content {
  height: auto;
  position: relative;
  bottom: -1px;
  padding: 10px 50px;
}

.skeleton-content > p,
.skeleton-content > h2 {
  margin-bottom: 7px;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(25%, #f2f2f2),
    color-stop(37%, #e6e6e6),
    color-stop(63%, #f2f2f2)
  );
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  -webkit-animation: skeleton-loading 1.4s ease infinite;
  animation: skeleton-loading 1.4s ease infinite;
  background: #f2f2f2 !important;
  height: 24px;
  border-radius: 4px;
  width: 60%;
  color: transparent;
}

.skeleton-content h2 {
  height: 32px;
  width: 40%;
}
.skeleton-content p {
  width: 66%;
}

.skeleton-content p:nth-of-type(1) {
  width: 20%;
}

.skeleton-post p:nth-child(1) {
  width: 40%;
}

.skeleton-post p:nth-child(3) {
  width: 20%;
}

/* main end */

@media (max-width: 800px) {
  .skeleton {
    display: none !important;
  }
  .container .inner {
    display: block;
  }
}
