/* 公共样式 */

.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 {
  bottom: 0;
  left: 0;
  z-index: 100;
  /* Behind the navbar */
  padding: 0 0 0 0;
  /* Height of navbar */
  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;
}

#outline {
  position: fixed;
  top: 88px;
  max-width: 300px;
  max-height: 70%;
  overflow-y: auto;
  display: block;
  background: rgba(255,255,255,1);
  background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  background: -webkit-gradient(left top, right top, color-stop(0%, rgba(255,255,255,1)), color-stop(50%, rgba(255,255,255,1)), color-stop(100%, rgba(255,255,255,0)));
  background: -webkit-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  background: -o-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff', GradientType=1 );
}

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

#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;
  }
}

/* Custom css by Tony */

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

body{
  font-size: 13px;
}

.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;
}

.shadow {
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.08) !important;
}
.shadow-lg {
  box-shadow: 0 50px 50px rgb(18, 18, 18, 0.08) !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-brand img{
  max-height: 48px;
}

.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;
}

/* 文章首页 */
.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;
}

/* 文章详情 */
.vditor-reset li+li {
  margin-top: 1em !important;
}

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

.card-header a,
.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;
  background-color: #fff;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.04);
}
.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: .4rem;
  width: .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 .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .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: .75rem;
  padding-bottom: .75rem;
  background-color: rgba(86,61,124,0.15);
  border: 1px solid rgba(86,61,124,0.2);
}
.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,.6);
  font-size: 12px;
  color: #fff;
  line-height: 88px;
  text-align: center;
  opacity: 0;
  transition: opacity .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-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;
}
