* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

pre code::-webkit-scrollbar {
  height: 6px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(51, 51, 51, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--theme-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--theme-color);
}
/*  z-index 说明

  header 9
*/

html {
  --theme-color: #fb6c28;
}
html.disable-scroll,
html.disable-scroll body {
  height: 100vh;
  overflow: hidden;
}
body {
  --header-index: 999;
}

body {
  overflow: auto;
  word-break: break-word;
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, 'sans-serif';
}

body:after {
  background-color: #efefef;
  background-image: linear-gradient(
      90deg,
      rgba(60, 10, 30, 0.04) 3%,
      transparent 0
    ),
    linear-gradient(1turn, rgba(60, 10, 30, 0.04) 3%, transparent 0);
  background-size: 20px 20px;
  background-position: 50%;
  background-repeat: repeat;
}

body:after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  pointer-events: none;
}

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

li {
  list-style: none;
}
a {
  text-decoration: none;
  color: #303133;
}

a:hover {
  color: var(--theme-color);
}

img {
  width: 100%;
  height: 100%;
}
button {
  outline: none;
  border: none;
}
input,
textarea {
  border: none;
  outline: none;
}

/* yublog_switch */

input[type='checkbox'].yublog_switch {
  outline: none;

  appearance: none;

  -webkit-appearance: none;

  -moz-appearance: none;

  position: relative;

  width: 44px;

  height: 22px;

  background: #ccc;

  border-radius: 10px;

  transition: border-color 0.3s, background-color 0.3s;

  cursor: pointer;
}

input[type='checkbox'].yublog_switch::after {
  content: '';

  display: inline-block;

  width: 1.1rem;

  height: 1.1rem;

  border-radius: 50%;

  background: #fff;

  box-shadow: 0, 0, 2px, #999;

  transition: 0.4s;

  top: 50%;

  transform: translateY(-50%);

  position: absolute;

  left: 2px;
}

input[type='checkbox'].yublog_switch:checked {
  background: #1890ff;
}

/* 当input[type=checkbox]被选中时：伪元素显示下面样式 位置发生变化 */

input[type='checkbox'].yublog_switch:checked::after {
  content: '';

  position: absolute;

  left: 55%;

  top: 50%;
  transform: translateY(-50%);
}

.clearfix:after,
.clearfix:before {
  content: '';
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
}

.yublog_container {
  width: 1160px; 
  max-width: 1200px;
  margin: 0 auto;
}

#yublog {
  display: flex;
  flex-direction: column;
}

/* 全部 按钮 */
.yublog_button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 6px;
  cursor: pointer;
  background-color: var(--theme-color);
  color: #fff;
  border-radius: 6px;
  user-select: none;
}
.yublog_button:hover {
  opacity: 0.8;
}

button.yublog_button {
  display: flex;
  position: relative;
  line-height: 1;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  border-radius: 4px;

  background-color: var(--theme-color);
  border: 1px solid var(--theme-color);

  cursor: pointer;
  transition: 0.1s;
}

button.yublog_button.loading::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.2);
}

button.yublog_button.loading::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  color: #fff;
  border: 1px solid #fff;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}
/* 全局头像 */

.yublog_user_avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.yublog_user_avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.yublog_rotate {
  transition: all 0.6s;
}

.yublog_rotate:hover {
  transform: rotateZ(360deg);
}

.main_container {
  display: flex;
  margin-top: 20px;
  padding: 0 20px;
  animation: fade-out 0.5s;
}
/* 全局主体布局 */
.main_container .yublog_main {
  min-width: 0;
  flex: 1;
  /* background-color: #fff; */
  border-radius: 6px;
}

.main_container .yublog_main .yublog_main_container {
  background-color: #fff;
  padding-bottom: 15px;
}
/* 侧边栏 */
.main_container .yublog_aside {
  padding-bottom: 15px;
  margin-left: 15px;
  width: 300px;
}

/* 全局title */

.yublog_title {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 15px;
  font-size: 16px;
  border-bottom: 1px solid #ebeef5;
}

.yublog_title .yublog_title-title {
  color: var(--theme-color);
  font-size: 18px;
}

.yublog_title .yublog_title-notice,
.yublog_title .yublog_title-notice i {
  font-size: 14px;
  color: #909399;
  cursor: pointer;
}

/* 全局分页 */
.navigator ol {
  margin: 0;
  padding: 0 10px;
  list-style: none;
  text-align: center;
}

.navigator ol li {
  display: inline-block;
  color: #5f5f5f;
  margin: 0 6px;
}

.navigator ol li a {
  display: block;
  text-align: center;
  background: var(--theme-color);
  font-size: 14px;
  color: #fff;
  line-height: 30px;
  height: 30px;
  overflow: hidden;
  padding: 0 10px;
  border-radius: 2px;
  box-sizing: border-box;
}

.navigator ol li.current a {
  background-color: #3385ff;
  background-image: linear-gradient(90deg, #006eff, #13adff);
}

/* 全局input */

.yublog_input,
.yublog_textarea {
  height: 34px;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
}

.yublog_input.active {
  border: 1px solid var(--theme-color);
}

.yublog_input input {
  width: 100%;
  height: 100%;
  padding-left: 10px;
  border-radius: 4px;
}
.yublog_textarea {
  height: auto;
  padding: 4px;
  font-size: 14px;
}
.yublog_textarea textarea {
  width: 100%;
  height: 100%;
  padding-left: 10px;
  border-radius: 4px;
  resize: none;
}

/* 暂无文章 */
.null_container {
  text-align: center;
  color: #606266;
  margin-top: 60px;
}
.null_container .null_icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.null_icon img {
  width: 100%;
  height: 100%;
}

.null_container .null_title {
  margin-top: 10px;
  font-size: 16px;
  color: #606266;
}

/* animation: fade-in .5s; */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
