@charset "utf-8";

:root
{
    --font-color-0: #e00000;
    --font-color-1: #252525;
    --font-color-2: #2e3339;
    --font-color-3: #aaa;
    --font-color-4: rgb(255, 107, 0);
    --font-color-5: #c05b4d;
    --bg-color-1: #eee;
    --bg-color-2: #fff;
    --line-1: #eee;
    --line-2: #ddd;
}
p
{
    word-wrap: break-word;
    white-space: pre-wrap;
}

body
{
    font-family: 'Rubik','helvetica neue',helvetica,arial,sans-serif,"Apple Color Emoji";
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.6px;
    color: var(--font-color-2);
    background: var(--bg-color-2);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--font-color-3);
}

.paper-main
{
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 4px 6vw 24px;
    background: var(--bg-color-2);
    border-radius: 24px;
}

@media screen and (max-width: 763px) {
  .header {
    display: none;
  }
}

.header
{
    margin: 12px 24px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    font-size: 18px;
}

.logo
{
    font-size: 24px;
    font-family: lobster, sans-serif;
    color: #34495e;
}

.logo-wrapper {
    float: left;
}

.header .site-navbar {
    margin-top: -12px;
    float: right;
    display: block;
}

.header .site-navbar .menu {
  display: inline-block;
  position: relative;
  padding-left: 0;
  font-family: "rubik", sans-serif;
}

.header .site-navbar .menu .menu-item {
  display: inline-block;
  padding-left: 10px;
  padding-bottom: 5px;
  vertical-align: middle;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 0 0 1px transparent;
  position: relative;
}

.header .site-navbar .menu .menu-item .menu-item-link {
    font-size: 15px;
    -webkit-font-smoothing: auto;
    cursor: pointer;
}

.header .site-navbar .menu .menu-item .menu-item-link:hover
{
    color: var(--font-color-0) !important;
    transition: color ease-in-out .2s;
    text-decoration: none !important;
}

.header .site-navbar .menu .menu-item a {
    color: #34495e;
    background-color: transparent;
}

.header .site-navbar .menu .sub-menu {
    position: absolute;
    background-color: #f9f9f9;
    padding: 4px 0;
    min-width: 190px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 100;
    display: none;
}

.header .site-navbar .menu .menu-item:hover .sub-menu {
    display: block;  /* 显示子菜单 */
    z-index: 200;    /* 确保子菜单在上层 */
}

.header .site-navbar .menu .sub-menu li {
    padding: 0px 8px 0 16px;
}

.header .site-navbar .menu .sub-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.header .site-navbar .menu .fas-menu-item {
    padding-right: 4px;
}

.post-header
{
    margin-bottom: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
.post-header .logo
{
    font-size: 2rem;
}
.post-header .go-home
{
    display: block;
    padding: 10px 20px 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
    margin: 8px 0;
    transition: background ease-in-out .5s;
}
.post-header .go-home:hover
{
    background: var(--bg-color-1);
    transition: background ease-in-out .5s;
}
.post-header .go-home svg
{
    transform: translateX(0);
    transition: transform ease-in-out .5s;
}
.post-header .go-home:hover svg
{
    transform: translateX(-4px);
    transition: transform ease-in-out .5s;
}

.post-list
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.post
{
    width: 100%;
    padding: 24px 0px;
}

.post-title
{
    display: inline-block;
    font-size: 32px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--font-color-1);
    /*transition: color ease-in-out .5s;*/
}
.post-title:hover
{
    color: var(--font-color-0);
    box-shadow: 0 2px 0 var(--font-color-0);
    transition: color ease-in-out .65s, box-shadow ease-in-out .65s;
}

.post .post-meta .post-time {
  font-size: 19px;
  color: #8a8a8a;
}
.post .post-meta .post-update {
  font-size: 19px;
  color: #617b9c;
}
.post  .post-meta .post-category {
  display: inline;
  font-size: 19px;
  color: #c05b4d;
}
.post .post-meta .post-category::before {
  content: "·";
}
.post .post-meta .post-category a {
  color: inherit;
  border-bottom: 1px solid #c05b4d;
  padding: 0 3px;
  font-weight: bold;
  box-shadow: inset 0 0 0 0 #c05b4d;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.post .post-meta .post-category a + a::before {
  content: "/";
  margin-right: 4px;
  color: #8a8a8a !important;
}
.post .post-meta .post-category a:hover {
  box-shadow: inset 0px -50px 0px 0px #c05b4d;
  color: #f5f7f3;
}
.post .post-meta .post-visits {
  display: inline-block;
  font-size: 16px;
  color: #8a8a8a;
}
.post .post-meta .post-visits::before {
  content: "·";
}

.post-except
{
    word-break: break-all;
    margin-bottom: 12px;
}
.read-more
{
    padding: 0 4px;
    color: var(--font-color-5);
    font-size: 1.25em;
    font-weight: bold;
}

.read-more:after
{
    display: inline-block;
    transition: transform ease-in-out .5s;
}

.read-more:hover:before
{
    transform: translateX(-4px);
    transition: transform ease-in-out .25s;
}
.read-more:hover:after
{
    transform: translateX(4px);
    transition: transform ease-in-out .25s;
}
.post-date
{
    font-size: 0.875rem;
    margin-top: 24px;
    margin-top: 1.714285714rem;
    line-height: 1.846153846;
    color: #757575;
    -webkit-font-smoothing: auto;
}

.post-date a {
    font-weight: bold;
    color: var(--font-color-5);
}

.paginator
{
    font-size: 0.875rem;
    width: 100%;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.paginator *
{
    display: block;
    padding: 8px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eee;
}
.paginator .space
{
    display: block;
    padding: 8px 16px;
    border-radius: 18px;
    background: #fff;
    border: none;
}
.paginator a
{
    margin: 4px;
    color: var(--font-color-2);
    transition: color ease-in-out .5s;
}
.paginator a:hover
{
    color: var(--font-color-0);
    transition: color ease-in-out .5s;
}
.paginator .current
{
    color: var(--font-color-0);
    border: 1px solid var(--font-color-0);
}

.footer
{
    border-top: 1px solid #ededed;
    padding-top: 12px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--font-color-3);
    line-height: 2;
    -webkit-font-smoothing: auto;
}

.footer a
{
    text-decoration: none;
    color: var(--font-color-3);
    outline: none;
    padding: 0 1px 0 1px;
}
.footer a:hover
{
    color: var(--font-color-0);
    transition: color ease-in-out .5s;
}

.post-main
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
}
.post-main-title
{
    flex: 0 0 100%;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--font-color-1);
}
.post-meta
{
    font-size: 0.875rem;
    color: var(--font-color-3);
    flex: 0 0 100%;
    margin-bottom: 15px;
    -webkit-font-smoothing: antialiased;
}

.post-meta a:hover
{
    color: var(--font-color-0);
    transition: color ease-in-out .5s;
}

.post-back {
    margin-top: 16px;
    font-size: 1em;
    font-weight: bold;
}

.post-back a {
    outline: none;
    opacity: 0.9;
    color: #f60c3e;
    text-decoration: none;
    padding: 0 1px 0 1px;
}

.archive-header-title {
    font-size: 24px;
    line-height: 2.181818182;
    font-weight: bold;
    text-transform: uppercase;
    color: #636363;
}

/* 归档页面 */
.custom-archive-list {
  margin-top: 10px;
}

.custom-archive-year {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  opacity: 0.25; /* 设置年份的透明度 */
}

.custom-archive {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.custom-archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* 每篇文章的间距 */
}

.custom-archive-title a {
  font-size: 18px;
  color: #000;
  text-decoration: none;
  font-weight: bold; /* 设置标题加粗 */
}

.custom-archive-title a:hover {
  color: var(--font-color-0);
  transition: color ease-in-out .1s;
}

.custom-archive-date {
  color: #b0b0b0; /* 日期的颜色 */
  font-size: 14px;
  flex-shrink: 0;
}

/* 文章分类 */
.tags {
    margin-bottom: 32px;
}

.tags a {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 1em;
    height: 28px;
    line-height: 28px;
    border-radius: 28px;
    background-color:#000;
    color: #fff;
    text-decoration: none
}

.tags a+a {
    margin-left: .2em
}

.tags .new {
    --color: #3778FF;
    color: #fff
}

.tags .update {
    --color: #E016C4;
    color: #fff
}

.tags .fix,.tags .bugfix {
    --color: #FF4772;
    color: #fff
}

@media screen and (min-width: 763px) {
    #mobile-navbar {
        display: none;
    }
}

@media screen and (max-width: 763px) {
  .mobile-navbar {
    display: block;
  }

  .mobile-header-logo {
    padding-top: 24px;
  }

  .archive li {
    display: block;
    padding: 8px 0px 8px 8px;
  }
}