/* 顶部加载进度条 */
.pace {
    pointer-events: none;
    user-select: none;
    z-index: 2;
    position: fixed;
    margin: auto;
    top: 4px;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 8px;
    width: 6rem;
    background: #eaecf2;
    overflow: hidden;
}

.pace-inactive .pace-progress {
    opacity: 0;
    transition: 0.3s ease-in;
}

.pace.pace-inactive {
    opacity: 0;
    transition: 0.3s;
    top: -8px;
}

.pace .pace-progress {
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
    position: fixed;
    z-index: 2;
    display: block;
    position: absolute;
    top: 0;
    right: 100%;
    height: 100%;
    width: 100%;
    background: #49b1f5;
    background: linear-gradient(
        to right,
        rgb(18, 194, 233),
        rgb(196, 113, 237),
        rgb(246, 79, 89)
    );
    animation: gradient 2s ease infinite;
    background-size: 200%;
}

#nav-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
}

#footer {
    background: rgba(255,255,255,.15);
    color: #000;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    backdrop-filter: saturate(100%) blur(5px);
}

#footer::before {
    background: rgba(255,255,255,.15);
}

#footer #footer-wrap {
    color: var(--font-color);
}

#footer #footer-wrap a {
    color: var(--font-color);
}/* ===== 全局卡片亚克力效果 ===== */
.card-widget,
.recent-post-item,
#aside-content .card-widget,
#category .card-category,
#tag .card-tag,
#archive .card-archive,
#card-toc,
#article-container, /* 新增：文章容器 */
#article-container .post-content, /* 新增：文章正文 */
#article-container .flink-list-item /* 友链卡片 */ {
  /* 基础亚克力效果 */
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ===== 浅色模式（亮白通透） ===== */
:root:not([data-theme="dark"]) .card-widget,
:root:not([data-theme="dark"]) .recent-post-item,
:root:not([data-theme="dark"]) #card-toc,
:root:not([data-theme="dark"]) #article-container, /* 文章浅色模式 */
:root:not([data-theme="dark"]) #article-container .post-content {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ===== 深色模式（深邃沉浸） ===== */
[data-theme="dark"] .card-widget,
[data-theme="dark"] .recent-post-item,
[data-theme="dark"] #card-toc,
[data-theme="dark"] #article-container, /* 文章深色模式 */
[data-theme="dark"] #article-container .post-content {
  background: rgba(10, 10, 10, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ===== 内容背景透明 ===== */
.card-widget > div:not([style*="background"]),
.recent-post-item .recent-post-info,
#article-container .post-content > *:not([style*="background"]) {
  background: transparent !important;
}

/* ===== 特殊元素处理 ===== */
.tag-cloud a,
#article-container .flink .flink-list-item {
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
}

/* ===== 文章内代码块优化（避免模糊影响可读性） ===== */
#article-container pre,
#article-container code {
  backdrop-filter: none !important; /* 代码块不模糊 */
  background: rgba(0, 0, 0, 0.1) !important; /* 轻微半透明 */
}
[data-theme="dark"] #article-container pre,
[data-theme="dark"] #article-container code {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: 'hexo';  /* Project id 4979438 */
  src: url('//at.alicdn.com/t/c/font_4979438_tfa9gci7bbs.woff2?t=1752999187614') format('woff2'),
       url('//at.alicdn.com/t/c/font_4979438_tfa9gci7bbs.woff?t=1752999187614') format('woff'),
       url('//at.alicdn.com/t/c/font_4979438_tfa9gci7bbs.ttf?t=1752999187614') format('truetype');
}

