/* 基础样式 */
html {
  height: 100%;
}

body {
  font-size: 14px;
}

.t-0 {
  top: 0;
}

.r-0 {
  right: 0;
}

.b-0 {
  bottom: 0;
}

.l-0 {
  left: 0;
}

.btn-warning {
  color: #212529;
  background-color: #fc0;
  border-color: #fc0;
}

.text-black-40 {
  color: rgba(0, 0, 0, 0.4) !important;
}

.text-black-30 {
  color: rgba(0, 0, 0, 0.3) !important;
}

.text-black-20 {
  color: rgba(0, 0, 0, 0.2) !important;
}

.text-black-10 {
  color: rgba(0, 0, 0, 0.1) !important;
}

a:hover {
  color: #000;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-weight: 300;
}

/* 公共样式 */

.dropdown {
  display: inline-block;
}

.header-bg {
  position: relative;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0px 1px 3px rgb(18, 18, 18, 0.1);
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.icon {
  max-height: 15px;
  padding-right: 0.4rem;
  padding-left: 1.4rem;
  display: inline-block;
}

/* 主页样式 */
.media-body {
  width: auto;
  height: auto;
  overflow: auto;
}

.media-body p {
  font-size: 12px;
}

.main-h5 {
  padding-bottom: 5px;
  padding-top: 5px;
  font-size: 0.93rem;
  font-weight: bold;
  margin-top: 1.2rem;
  margin-left: 5px;
  color: #333333;
  text-decoration: none !important;
}

.main-p {
  font-size: 0.8rem;
  margin-left: 5px;
  margin-right: 15px;
  color: #909090;
}

.main-img {
  border-radius: 10px 0 0 10px;
  min-width: 100px;
  max-height: 100px;
}

/* .main-bg {
  background-color: #F9F9F9;
} */

.index-container {
  max-width: 1480px;
}

/* 章节页样式 */
.chapter-icon {
  max-height: 17px;
}

.chapret-h3 {
  font-size: 28px;
  margin-bottom: 39px;
  font-weight: 100;
}

.chapter-span {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
  text-decoration: none !important;
}

.chapter-card {
  border: none;
  margin-bottom: 20px;
}

.chapter-container {
  max-width: 1040px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.chapter-h1 {
  font-size: 34px;
  font-weight: 300;
}

.chapter-right-p {
  font-size: 0.8rem;
  color: #909090;
  line-height: 26px;
}

.chapter-button {
  border-radius: 0%;
  font-size: 11px;
  padding-top: 0;
  padding-bottom: 0;
}

.chapter-left-p {
  font-size: 14px;
}

.chapter-right-style {
  max-height: 100%;
  max-width: 300px;
  background-image: linear-gradient(#ffffff, #f9f9f9);
}

.chapter-shadow {
  box-shadow: 0 20px 50px rgb(18, 18, 18, 0.08);
}

.chapter-btn {
  padding: 0%;
  text-decoration: none;
}

.chapter-left-style {
  padding: 44px;
  padding-bottom: 79px;
}

.chapter-right-bg {
  background-color: #ffffff;
}

.chapter-right-img {
  margin-top: 44px;
  min-width: 100%;
}

.progress {
  background-color: #c1d4e6;
}

.min-height-100 {
  min-height: 100%;
}

.col-center-block {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 文章页样式 */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1480px;
  }
}

@media (min-width: 1600px) {
  .container-xl {
    max-width: 1480px;
  }
}

@media (min-width: 1860px) {
  .container-xl {
    max-width: 1860px;
  }
}

@media (min-width: 2560px) {
  .container-xl {
    max-width: 2240px;
  }
}

@media (min-width: 3840px) {
  .container-xl {
    max-width: 2760px;
  }
}

@media (min-width: 2480px) {
  .p-xxl-3 {
    padding: 1rem !important;
  }
}

.sidebar {
  position: fixed;
  top: 91px;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 0 1px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.article {
  margin: 1px;
  position: relative;
  max-width: 14.5%;
  padding-left: 2.1rem;
  padding-right: 2.1rem;
  padding-top: 29px;
}

.articles-title {
  font-size: 34px;
  color: #333333;
  font-weight: 100;
}

.articles-p {
  font-size: 16px;
  color: #909090;
  line-height: 32px;
}

.articles-card-header {
  background-color: rgb(249, 249, 249);
}

.chapter-card-header {
  border: none;
}

.articles-button {
  border-radius: 0%;
}

.articles-icon {
  max-height: 16px;
}

.articles-btn {
  font-size: 13px;
  padding-top: 9.125px;
  padding-bottom: 9.125px;
  padding-left: 16.75px;
  padding-right: 16.75px;
}

.articles-chapter {
  font-size: 1.6rem;
  font-weight: 100;
  color: #333333;
  padding-bottom: 10px;
}

.articles-container {
  max-width: 960px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(18, 18, 18, 0.08);
  padding-right: 43px;
  padding-left: 43px;
  padding-top: 47px;
}

@media (min-width: 1680px) {
  .articles-container {
    max-width: 1280px;
  }
}

@media (min-width: 1921px) {
  .articles-container {
    max-width: 1680px;
  }
}

.vditor-ir .vditor-reset {
  padding: 10px 50px !important;
}

.side-nav {
  left: 100%;
}

#outline {
  position: fixed;
  top: 88px;
  max-width: 300px;
  max-height: 70%;
  overflow-y: auto;
  display: block;
}

#outline.vditor-outline li > span {
  font-size: 12px;
  color: #666;
  padding-left: 0;
}

#outline.vditor-outline li:hover > span {
  color: #000;
}

#outline .vditor-outline__action {
  margin-right: 0;
}

#outline.vditor-outline li > span > svg {
  margin-right: 5px;
}

@media (min-width: 992px) {
  .border-lg-right {
    border-right: 1px solid #dee2e6 !important;
  }
}

@media (min-width: 992px) {
  .w-65 {
    width: 55% !important;
  }
}

@media (max-width: 1300px) {
  .w-65 {
    width: 75% !important;
  }
}

@media (min-width: 1300px) {
  .w-65 {
    width: 55% !important;
  }
}

/* vditor编辑器显示 */

.vditor-reset h1,
.vditor-reset h2,
.vditor-reset h3,
.vditor-reset h4,
.vditor-reset h5,
.vditor-reset h6 {
  margin-top: 1rem !important;
  margin-bottom: 0.6rem !important;
}

.vditor-reset h1,
.vditor-reset h2 {
  color: rgb(34, 143, 59) !important;
}

.main-content .vditor-reset p {
  margin-bottom: 0.4rem;
}

.vditor-reset blockquote {
  padding: 15px 30px !important;
  background-color: #f3f5f7;
  color: #6a737d;
  border-left: 0.4em solid #42b983 !important;
}

.vditor-reset li + li {
  margin-top: 0 !important;
}

.shadow {
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg {
  box-shadow: 0 50px 50px rgb(18, 18, 18, 0.06) !important;
}

/* 登录页 */

.logo {
  max-height: 48px;
}

body.signin {
  background: #f9f9f9 url(../images/bg-signin.svg) no-repeat center bottom /
    cover;
}

.form-signin {
  max-width: 480px;
}

/* header */

.navbar {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  max-height: 38px;
}

.navbar-light .navbar-toggler {
  border: 0;
}

/* 章节页 */

.bg-white-gradient {
  background: rgba(255, 255, 255, 1);
  background: -moz-linear-gradient(
    top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: -webkit-gradient(
    left top,
    left bottom,
    color-stop(0%, rgba(255, 255, 255, 1)),
    color-stop(100%, rgba(255, 255, 255, 0))
  );
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: -o-linear-gradient(
    top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: -ms-linear-gradient(
    top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0);
}

.chapter-title:hover a,
.chapter-title:focus a {
  background-color: #f8f9fa;
}

/* 文章首页 */
.main-content {
  max-width: 680px;
  width: 100%;
}

@media (min-width: 1360px) {
  .main-content {
    max-width: 960px;
  }
}

.avatar {
  height: 48px;
  width: 48px;
}

.media {
  box-shadow: 0 10px 20px rgb(0, 0, 0, 0.04);
}

.media:hover,
.media:focus {
  box-shadow: 10px 20px 20px rgb(0, 0, 0, 0.16);
  transform: scale(1.02, 1.02);
}

.media .thumbnail img {
  max-height: 96px;
  min-width: 96px;
  min-height: 96px;
}

.media .thumbnail::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.02);
}

.media:hover .thumbnail::before,
.media:focus .thumbnail::before {
  display: none;
}

/* 文章详情 */
.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 90px);
  padding-top: 0.5rem;
  padding-left: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-sticky ul {
  list-style: none;
  padding: 0;
}

.card {
  background-color: inherit;
}

.card-header {
  background-color: #fff;
  border-bottom: solid 1px rgba(0, 0, 0, 0.05);
}

.card-header a {
  color: #000;
  border-left: transparent solid 4px;
}

.sidebar-sticky ul li a {
  color: #666;
  border-left: transparent solid 4px;
}

.card-header a:hover,
.card-header a:focus {
  color: #000;
}

.sidebar-sticky ul li a:hover,
.sidebar-sticky ul li a:focus,
.sidebar-sticky ul li.active a {
  color: #000;
}

.sidebar-sticky ul li a:hover {
  background-color: #f5f5f5;
}

.sidebar-sticky ul li.active a {
  border-left: #fc0 solid 4px;
  font-size: 110%;
  font-weight: bolder;
}

.dropdown-indicator:after {
  content: "";
  display: block;
  position: absolute;
  right: 1rem;
  height: 0.4rem;
  width: 0.4rem;
  border-right: 1px solid #5e6e82;
  border-bottom: 1px solid #5e6e82;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
  -webkit-transition-property: border-color, -webkit-transform;
  transition-property: border-color, -webkit-transform;
  -o-transition-property: transform, border-color;
  transition-property: transform, border-color;
  transition-property: transform, border-color, -webkit-transform;
}

.dropdown-indicator[aria-expanded="true"]:after {
  -webkit-transform: translateY(-50%) rotate(225deg);
  -ms-transform: translateY(-50%) rotate(225deg);
  transform: translateY(-50%) rotate(225deg);
}

.img-avatar {
  max-height: 48px;
}

.entry-contributor .img-avatar {
  margin-right: -15px;
  max-height: 36px;
}

.bd-example {
  position: relative;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #dfe2e5;
}

.bd-example .col,
.bd-example [class^="col-"] {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background-color: rgba(86, 61, 124, 0.15);
  border: 1px solid rgba(86, 61, 124, 0.2);
}

.vditor-reset blockquote {
  padding: 8px 10px !important;
  background-color: #f3f5f7;
  color: #6a737d;
  border-left: 0.4em solid #42b983 !important;
}

.vditor-reset ul li {
  margin-bottom: 0.5rem;
}

.vditor-reset code:not(.hljs):not(.highlight-chroma) {
  color: #007bff !important;
  margin: 0 0.4em !important;
  font-size: 87.5% !important;
}

.img-head-portrait {
  height: 88px;
  width: 88px;
  max-height: 88px;
  max-width: 88px;
  border-radius: 50%;
  vertical-align: bottom;
}

.avatar-cover {
  position: absolute;
  top: 27px;
  left: 31px;
  width: 88px;
  height: 88px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  color: #fff;
  line-height: 88px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.h-avatar:hover .avatar-cover {
  opacity: 1;
}

.bg-light-gray {
  background-color: rgb(245, 245, 245);
}

.border-line {
  height: 150px;
  width: 1px;
  background: #e5e9ef;
  float: left;
}

.general-info-b-split {
  width: 1px;
  height: 16px;
  background: #ccccd8;
  margin: -4px 12px;
}

.show-blade-result:hover,
.show-blade-result:focus {
  background-color: #f5f5f5;
}

.show-blade-result em {
  color: #fc0;
  font-style: normal;
}

.show-blade-size {
  color: #000;
}

.show-blade-size:hover,
.show-blade-size:focus {
  color: #666;
}

.page-item.active .page-link {
  background-color: #ffcc00;
  border-color: #ffcc00;
}

.page-link {
  color: #333;
}

.page-link:hover {
  color: #000;
}

.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgb(255 204 0 / 25%);
}

.search-form .form-control-lg {
  background-color: #f9f9f9;
  border: 0;
  border-top-left-radius: 42px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 42px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
}

.search-form .form-control-lg:focus {
  background-color: #f5f5f5;
  box-shadow: none;
}

@media (min-width: 992px) {
  .search-form .form-control-lg {
    min-width: 480px;
  }
}

.search-form .btn-lg {
  font-size: 1rem;
  border-top-left-radius: 0;
  border-top-right-radius: 42px;
  border-bottom-right-radius: 42px;
  border-bottom-left-radius: 0;
}

.search-suggest {
  top: 80px;
  z-index: 999;
  width: 565px;
}

@media (max-width: 992px) {
  .search-suggest {
    top: 150px;
    width: 320px;
  }
}

.search-suggest a {
  color: #666;
}

.search-suggest a:hover {
  color: #000;
}

.search-suggest a em {
  color: #fc0;
  font-style: normal;
}
