/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  /* Ensure padding and borders are included in element sizes */
  -webkit-font-smoothing: antialiased;
  /* Improve rendering of text on mobile devices */
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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);
}

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;
}

.ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: var(--ellipsis);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.ellipsis {
  --ellipsis: 1;
}

.hide {
  display: none;
}

@keyframes rotate {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

/* 背景 试着玩玩 */
.yublog_background {
  opacity: 0.2;
  background-size: cover;
  /* filter: blur(30px); */
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background-image: url(https://oss.13log.cn/emlog/images/home/bg.jpg);
  background-color: #ebeef5;
}

.yublog_container {
  max-width: 1440px;
  width: 100%;
  display: flex;
  height: 100%;
  margin: 10px auto 0;
}

.yublog_container>div {
  flex-shrink: 0;
}

.yublog_left {
  position: sticky;
  top: 0;
  height: calc(100vh - 16px);
  width: 280px;
  margin-right: 10px;
}

.aside_container_left {
  background-color: #fff;
  padding: 15px;
}

.yublog_main {
  flex: 1;
  width: 0;
}

.yublog_right {
  width: 300px;
  margin-left: 10px;
}

/* 全局头像 */

.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);
}



/* 全局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;
}

/* 暂无文章 */
.null_log_article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 10px 0;
}

.null_log_article .null_icon {
  height: 300px;
}

.null_log_article .null_title {
  color: gray;
  font-size: 22px;
}


/* 全局分页 */
.navigator {
  margin-top: 10px;
}

.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);
}


/* 底部 */
.footer {
  margin-top: 20px;
  background-color: #fff;
  color: #909399;
}

.yublog_copy {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
}