@media screen and (min-width: 900px) {
    #aside-content .sticky_layout {
        top: 70px !important;
    }
}
/* 当前目录永久清晰 */
a.toc-link.active {
  border-radius: 6px; /* 设置圆角的大小 */
  filter: blur(0) !important;
}
[data-theme="dark"] a.toc-link.active {
  background: #006475 !important;
}

/* 任意目录悬浮时，全部取消模糊 */
body:has(a.toc-link:hover) a.toc-link {
  filter: blur(0);
}

a.toc-link {
  transition: filter 0.2s ease;
  filter: blur(1px);
}

/* 归档样式 */
/* 计数文字基础样式 */
span.card-archive-list-count {
  width: auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 0.9;
  font-weight: 700;
}
.card-archive-list-count-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a span:last-child,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a span:last-child {
  width: fit-content;
  margin-left: 4px;
}
.card-archive-list-date {
  font-size: 14px;
  opacity: 0.6;
}
li.card-archive-list-item {
  width: 100%;
  flex: 0 0 48%;
}

/* ========== 浅色模式 默认边框 归档+分类统一 ========== */
#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a {
  border-radius: 8px;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  border: 2px solid rgb(181, 218, 155);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ========== 暗黑模式 默认边框 归档+分类统一 ========== */
[data-theme="dark"] #aside-content .card-archives ul.card-archive-list > .card-archive-list-item a,
[data-theme="dark"] #aside-content .card-categories ul.card-category-list > .card-category-list-item a {
  border-radius: 8px;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  border: 2px solid rgb(50, 91, 110);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ========== 浅色模式 Hover 归档+分类共用 ========== */
#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:hover,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a:hover {
  color: #fff;
  background-color: rgb(160, 190, 220);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ========== 暗黑模式 Hover 归档+分类共用，彻底样式一致 ========== */
[data-theme="dark"] #aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:hover,
[data-theme="dark"] #aside-content .card-categories ul.card-category-list > .card-category-list-item a:hover {
  color: #fff;
  background-color: rgb(50, 70, 110);
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 大屏缩放悬浮位移 + 点击按压 二者完全共用 */
@media screen and (min-width: 1300px) {
  #aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:hover,
  #aside-content .card-categories ul.card-category-list > .card-category-list-item a:hover {
    transform: scale(1.03);
  }
  #aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:active,
  #aside-content .card-categories ul.card-category-list > .card-category-list-item a:active {
    transform: scale(0.97);
  }
}

#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a span:first-child,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a span:first-child {
  width: auto;
  flex: inherit;
}

#aside-content .card-archives ul.card-archive-list,
#aside-content .card-categories ul.card-category-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}
/* 全部圆角 8px */
a#card-info-btn {
  background: #00c4b6 !important;
  border-radius: 8px;
}
a#card-info-btn:hover {
  background: #0f7d7f !important;
}
[data-theme="dark"] a#card-info-btn {
  background: rgb(46, 73, 100) !important;
}

[data-theme="dark"] a#card-info-btn:hover {
  background: rgb(68, 100, 132) !important;
}


/* 归档、标签、分类页 */
.layout.hide-aside{
    max-width:1400px;
}

#archive,#tag,#category {
    background: var(--theme-color-green);
    padding: 25px 10px;
}

.article-sort-title{
    margin-top:30px;
    margin-bottom:20px;
}

.article-sort-item::before, .article-sort-title::before, .article-sort-title::after {
    content: none;
}

.article-sort .year{
    width:100%!important;
    border-bottom:dashed 5px var(--ichika-color);
    font-size:26px;
    margin-top:20px;
}

.article-sort{
    border:none;
    display:flex;
    flex-wrap:wrap;
    margin:20px 20px;
    padding:0;
}

.article-sort-item:not(.year){
    padding:8px 10px;
    width:calc(50% - 0.8rem);
    margin:0.4rem;
    border:1px solid var(--border-color);
    border-radius:15px;
    background: linear-gradient(to right, color-mix(in srgb, var(--theme-color-blue), black 0%), color-mix(in srgb, var(--theme-color-blue), white 20%));
    transition:0.5s;
    height:120px;
}
[data-theme="dark"] .article-sort-item:not(.year){
    background: linear-gradient(to left, color-mix(in srgb, var(--theme-color-blue), black 10%), color-mix(in srgb, var(--theme-color-blue), white 2%));
}
.article-sort-item:not(.year):hover {
    border:1px solid var(--border-hover);
}
.article-sort-item-a{
    position:absolute;
    width:100%;
    height:100%;
}

.article-sort-item-img{
    transition:0.5s;
    height:90px;
    width:140px;
}

.article-sort-item > a >img{
    border-radius:15px;
}

.article-sort-item-title {
    font-size: 22px;
    padding-left: 10px;
    margin: 10px 0;
    line-height:25px;
    text-overflow:ellipsis;
}

.article-sort-item-title:hover{
    transform:none;
}

.article-sort-meta{
    height:max-content;
    position:relative;
}

.article-sort-meta > .article-meta-wrap{
    float:left;
}

.article-sort-meta > .article-sort-item-time{
    float:right;
}

.article-sort-item-categories,.article-sort-item-tags{
    margin:0 3px;
    padding:5px 8px;
    border-radius:25px;
    border:1px solid var(--border-color);
    font-size:12px;
    transition:0.5s;
}

.article-sort-item-info > div:not(.article-sort-meta){
    display:flex;
}

.article-sort-description,.article-sort-item > i{
    width:0;
    opacity:0;
    overflow:hidden;
    transition:0.5s;
}

.article-sort-description {
    width: 0;
    height: 59px;
    vertical-align: middle;
    margin: 5px 10px 0 15px;
    text-overflow:ellipsis;
}

.article-sort-item:hover:not(.year){
    background-color:var(--theme-color-green);
    box-shadow: 0 0 10px var(--ichika-color);
}

.article-sort-item:hover:not(.year) .article-sort-description,.article-sort-item:hover:not(.year) > i{
    width:auto;
    opacity:1;
}

.article-sort-item:hover:not(.year) .article-sort-item-img{
    transition:0.5s;
    width:0;
}

.article-sort-item:hover:not(.year) .article-sort-item-title{
    color:var(--ichika-font-white)!important;
}

.article-sort-item:hover:not(.year) .article-meta-wrap a,.article-sort-item:hover:not(.year) .article-sort-description,.article-sort-item:hover:not(.year) .article-sort-item-time{
    color:var(--ichika-light-grey)!important;
}

.article-sort-item:hover:not(.year) .article-sort-item-categories{
    border:1.5px solid var(--ichika-green);
}

.article-sort-item:hover:not(.year) .article-sort-item-tags{
    border:1.5px solid var(--ichika-purple);
}

.article-sort-item:hover:not(.year) .article-sort-item-categories:hover{
    background:var(--theme-color-green);
    box-shadow:0 0 5px var(--ichika-green);
}

.article-sort-item:hover:not(.year) .article-sort-item-tags:hover{
    background:var(--theme-color-green);
    box-shadow:0 0 5px var(--ichika-purple);
}

@media screen and (max-width:768px) {
    .article-sort-item:not(.year) {
        width: 100%;
    }

    .article-sort-meta > .article-meta-wrap {
        display: none;
    }

    .article-sort-item-title {
        font-size: 16px;
    }

    .article-sort-item-img{
        width:90px;
    }
    /* 移动端年份栏适配 */
    .article-sort-item.year.year-foldable {
        padding: 15px;
        font-size: 22px;
        margin: 10px 10px;
        width: calc(100% - 20px);
    }
    .article-sort-item.year.year-foldable .year-count-wrap {
        font-size: 14px;
    }
}
/* 覆盖原有.year 通用样式，取消底部虚线 */
.article-sort .year {
    width: 100% !important;
    border-bottom: none; /* 移除原来的虚线分割线 */
    font-size: 26px;
    margin-top: 20px;
}

/* 年份折叠栏：匹配截图圆角卡片、外间距、主题背景 */
.article-sort-item.year,
.article-sort-item.year.year-foldable {
  background: linear-gradient(to left, color-mix(in srgb, var(--theme-color-green), black 0%), color-mix(in srgb, var(--theme-color-green), white 15%));
  border-radius: 15px;        /* 和文章卡片统一圆角 */
  margin: 10px 0;             /* 上下向外填充10px间距，实现分离效果 */
  padding: 20px;              /* 内部文字内边距，防止文字贴边框 */
  display: flex;
  justify-content: space-between; /* 左右分开：年份居左、篇数箭头居右 */
  align-items: center;        /* 垂直居中对齐文字 */
  border: 2px solid var(--border-color); /* 浅色描边，和截图边框一致 */
  box-sizing: border-box;
}

[data-theme="dark"] .article-sort-item.year,
[data-theme="dark"] .article-sort-item.year.year-foldable {
    background: linear-gradient(to right, color-mix(in srgb, var(--theme-color-green), black 8%), color-mix(in srgb, var(--theme-color-green), white 2%));
}
/* 右侧 11篇 + 下拉箭头容器 */
.article-sort-item.year,
.article-sort-item.year.year-foldable .year-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px; /* 篇数字和箭头之间距离 */
  font-size: 16px;
  color: var(--ichika-light-grey);
}

/* 分类页/归档页年份折叠 */
.article-sort-item.year,
.article-sort-item.year.year-foldable {
    margin: 15px 6.4px 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    user-select: none;
}
.article-sort-item.year:hover,
.article-sort-item.year.year-foldable:hover {
    transform: translateX(1px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    border-color: var(--border-hover);
}

.year-fold-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.year-fold-badge {
    font-size: 12px;
    color: var(--june-fontcolor);
    background: color-mix(in srgb, var(--theme-color-green), white 8%);
    padding: 1px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.year-fold-arrow {
    font-size: 14px;
    color: var(--june);
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}

.article-sort-item.year.is-collapsed .year-fold-arrow {
    transform: rotate(0deg);
}

.year-group-posts {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
    max-height: 9999px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease, margin 0.3s ease;
}

.year-group-posts.is-collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* 折叠时的文章预览 */
.year-fold-preview {
    width: 100%;
    padding: 8px 15px 0;
    font-size: 13px;
    color: var(--june-secondtext);
    line-height: 1.8;
    display: none;
    pointer-events: none;
}

.article-sort-item.year.is-collapsed + .year-fold-preview {
    display: block;
}

.year-fold-preview span {
    display: inline-block;
    margin-right: 12px;
    white-space: nowrap;
}

.year-fold-preview span::before {
    content: '·';
    margin-right: 4px;
    color: var(--june);
}
/* 归档页、分类页、标签页禁用分页后隐藏分页器 */
#archive #pagination,
#category #pagination,
#tag #pagination {
    display: none;
}


/* 首页轮播图 

#swiper_container .blog-slider__content {
  height: 250px;
}

#swiper_container a.blog-slider__title {
  font-weight: bold;
}

#swiper_container .blog-slider__text {
  font-size: 1em;
}

#swiper_container .swiper-button-next:after,
#swiper_container .swiper-button-prev:after {
  color: var(--theme-color-green);
}
*/

/********************************layout*********************************/
.layout{
  max-width:1400px;
}
.fas.fa-angle-down.scroll-down-effects::before {
  font-size: 2rem; /* 数值越大图标越大，px/rem/em 都能用 */
}

/*************滚动条*****************/
/* 全局滚动条 - Chrome/Edge/Safari */


/* 夜间模式下背景宇宙星光 */
#universe {  
    display: block;
    position: fixed;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
/* 亮色模式下隐藏 */
[data-theme='light'] #universe {
    display: none;
}



/* 轮播设为order:1，排上面 */
.blog-slider.swiper-container-fade {
  order: 1 !important;
}

/* categoryBar 设为order:2，强制在轮播下方 */
#categoryBar.recent-post-item {
  order: 2 !important;
}
/**************************分类、标签页面****************/
.category-lists .category-list {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    margin: 5em 0 3em;
}
.category-lists ul {
    padding: 0;
}
.category-lists ul li {
    display: flex;
    width: fit-content;
    font-size: 1.2em !important;
    padding: 0.2em 0.5em;
    background: var(--theme-color-green);
    margin: 0.5em 0.5em;
    border-radius: 12px;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    border: 1px solid var(--border-color);
    box-shadow: var(--border-color);
    align-items: center;
    /* 平滑缩放过渡 */
    transition: all 0.25s ease;
}
.category-lists ul li:hover {
  border: 1px solid var(--border-hover);
}
/* hover仅放大，文字/图标颜色不变 */
.category-lists ul li:hover {
    transform: scale(1.08);
}
.category-lists .category-list a {
    color: var(--icat-fontcolor) !important;
}
/* 删除hover变色规则，文字保持原色 */
.category-lists ul li:before {
    position: unset;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: 0;
    color: var(--icat-fontcolor) !important;
    cursor: pointer;
    content: "\f292" !important;
    font-family: "Font Awesome 6 Free" !important;
    opacity: 0.4;
    padding-top: 2px;
    padding-right: 2px;
}

.category-lists .category-list .category-list-count {
    background: var(--theme-color-blue);
    padding: 4px 4px;
    border-radius: 6px;
    color: var(--icat-secondtext);
    line-height: 1;
    text-align: center;
    min-width: 35px;
    display: inline-block;
    font-size: 1rem;
    box-shadow: var(--border-color);
}
.category-lists .category-list .category-list-count:before,
.category-lists .category-list .category-list-count:after {
    content: '';
}

/* 分类页标签样式 */
#page .tag-cloud-list {
    margin: 5em 0 3em;
}
#page .tag-cloud-list a {
    display: inline-flex;
    color: var(--icat-fontcolor) !important;
    font-size: 1.2em !important;
    padding: 0.2em 0.5em;
    background: var(--theme-color-green);
    margin: 0.5em 0.5em;
    border-radius: 12px;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    border: 1px solid var(--border-color);
    box-shadow: var(--border-color);
    align-items: center;
    transition: all 0.25s ease;
}
#page .tag-cloud-list a:hover {
    border: 1px solid var(--border-hover);
}
#page .tag-cloud-list a:before {
    color: var(--icat-fontcolor) !important;
    cursor: pointer;
    content: "\f292" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    opacity: 0.4;
    padding-top: 2px;
    padding-right: 2px;
}
#page .tag-cloud-list a:hover {
    background: var(--theme-color-green);
    transform: scale(1.08);
}
#page .tag-cloud-list a > sup{
    top: auto;
    background: var(--theme-color-blue);
    padding: 4px 4px;
    margin-left: 8px;
    border-radius: 6px;
    color: var(--icat-secondtext);
    line-height: 1;
    text-align: center;
    min-width: 35px;
    display: inline-block;
    font-size: 1rem;
    box-shadow: var(--border-color);
}
/* 文章底栏打赏分享样式 */
.post_function {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.post_function_box{
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-reward {
    margin-top: 0 !important;
    width: auto !important;
}

.post-reward .reward-button {
    background: #2ECC71;
    border-radius: 8px;
}

#post .post_function .post_function_box .post-privacy-btn {
    display: flex;
    color: #FFFFFFB3;
    background-color: var(--button-color);
    height: 40px;
    border-radius: 8px;
    align-items: center;
    padding: 0 24px;
    gap: 6px;
}

.post-meta__tag-list {
    display: flex !important;
    gap: 10px;
    margin-left: auto;
}

.post_function > .post-meta__tag-list > .post-meta__tags {
    background: var(--theme-color-green);
    display: flex !important;
    height: 40px;
    border-radius: 8px !important;
    align-items: center;
    margin: 0 !important;
    border: var(--style-border) !important;
    color: var(--font-color) !important;
}

.post-meta__tags:before {
    content: "\f292" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-size: 12px;
    opacity: .4;
    padding-right: 2px
}

.post-reward:hover .reward-button,
.post_function .post_function_box .post-privacy-btn:hover,
.post_function > .post-meta__tag-list > .post-meta__tags:hover {
    color: #FFFFFFB3 !important;
    background-color: var(--button-hover-color) !important;
    transition: all .4s ease 0s;
}

#pagination.pagination-post{
    margin-top: 20px !important;
}

.post-reward .reward-main .reward-all {
    display: flex !important;
    background: white !important;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.post-reward .reward-main .reward-all:before {
    display: none !important;
}

.post-reward .reward-main .reward-all:hover {
    border: 1px solid var(--june);
}

.post-reward .reward-main {
    width: auto !important;
}

@media (max-width: 768px) {
    .post_function {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .post-meta__tag-list{
        margin-bottom: 18px;
        margin-left: 0;
    }

    .post-reward {
        display: flex !important;
    }
}

.history_slide {
  text-align:left;
  font-size: 14px;
  background: var(--card-bg);
  display: flex;
  flex-direction:column;
  align-items: flex-start;
}
#history-baidu > .blog-slider__pagination{
  display:none
}
.history_slide_time{
  color: #858585;
  Font-style: italic;
  font-weight: lighter;
}
