/* 加载动画头像 */
.loading-img {
  background: url(/img/HG.JPG) no-repeat center center;
  background-size: cover;
}

/* 页脚与头图透明 */
#footer {
  background: transparent !important;
  /* background: transparent; */
}
#page-header {
  background: transparent !important;
}

/* 白天模式遮罩透明 */
[data-theme="light"] #footer{ 
  /* [data-theme="light"] #footer我的魔改,原来是#footer::before */
  /* background: transparent !important; */
  background: rgba(25, 25, 25, 0.3) !important;
}

/* 夜间模式遮罩透明 */
[data-theme="dark"] #footer::before {
  background: transparent !important;
  /* background: rgba(25, 25, 25, 0.3) !important; */
}

  /* 侧边栏个人信息卡片动态渐变色
     颜色全部取同一色系的浅色（粉→紫→蓝→青→粉），首尾同色，循环时不会出现接缝 */
#aside-content > .card-widget.card-info {
  background-image: linear-gradient(
    -45deg,
    #f0dbea,
    #e6d6f5,
    #d7e6f8,
    #d3ecf2,
    #f0dbea
  );
  box-shadow: 0 0 5px rgb(66, 68, 68);
  position: relative;
  background-repeat: no-repeat;
  /* 250% 让屏幕里同时看到两段过渡，换色更柔和 */
  background-size: 250% 250%;
  /* 固定的基准位置：低性能模式关掉动画时不会突然跳到另一个颜色 */
  background-position: 0% 50%;
  will-change: background-position;
  -webkit-animation: Gradient 20s ease-in-out infinite;
  animation: Gradient 20s ease-in-out infinite !important;
}

/* 个人展示栏变色：慢速往返，两头自然减速，不会突然加速 */
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 黑夜模式适配 */
[data-theme="dark"] #aside-content > .card-widget.card-info {
  background: #191919ee;
}

/* 个人信息Follow me按钮 */
#aside-content > .card-widget.card-info > #card-info-btn {
  background-color: var(--theme-color);
  border-radius: 8px;
}
#aside-content > .card-widget.card-info > #card-info-btn:hover {
  background-color: var(--btn-hover-color);
}

/* 个人信息卡片欢迎语单行显示，不折行 */
#aside-content .card-info .author-info-description,
#aside-content .card-info .author-info-description .brinks {
  white-space: nowrap;
}

/* 导航栏修改 */
/* 一级菜单在导航栏内水平居中、垂直居中，且强制不换行 */
#nav .menus_items {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
}
/* 子菜单横向展示 */
#nav .menus_items .menus_item:hover .menus_item_child {
  display: flex !important;
}

/* 兜底断点：当前菜单宽约 572px，加上标题和右侧按钮，
   低于 1075px 就会压到标题，此时才切三条杠侧边栏 */
@media screen and (max-width: 1074px) {
  #nav .menus_items {
    display: none !important;
  }

  #nav #toggle-menu {
    display: inline-block !important;
  }

  /* 与主题 .hide-menu 状态保持一致，手机版/窄屏三条杠大小相同 */
  #nav #toggle-menu .site-page {
    font-size: inherit;
  }

  #nav #search-button span {
    display: none;
  }
}
/* 这里的2是代表导航栏的第2个元素，即有子菜单的元素，可以按自己需求修改 */
.menus_items .menus_item:nth-child(2) .menus_item_child {
  left: -125px;
}

/* 导航栏菜单鼠标移入字体放大 */
/* #nav #site-name:hover, 
#nav .menus_item:hover, 
#nav #search-button:hover{
    font-size:28px;
} */

/* 鼠标样式 */
#cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  /* 这里改变跟随的底色 */
  /* background: var(--theme-color); */
  background: rgb(57,197,187);
  border-radius: 8px;
  opacity: 0.25;
  z-index: 10086;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  transition-property: background, opacity, transform;
}

#cursor.hidden {
  opacity: 0;
}

#cursor.hover {
  opacity: 0.1;
  transform: scale(2.5);
  -webkit-transform: scale(2.5);
  -moz-transform: scale(2.5);
  -ms-transform: scale(2.5);
  -o-transform: scale(2.5);
}

#cursor.active {
  opacity: 0.5;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  -o-transform: scale(0.5);
}

/* 顶部渐变色加载条 */
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  z-index: 2000;
  position: fixed;
  margin: auto;
  top: 4px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 8px;
  width: 7rem;
  background: #eaecf2;
  border: 1px #e3e8f7;
  overflow: hidden
}

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

.pace .pace-progress {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  max-width: 200px;
  position: absolute;
  z-index: 2000;
  display: block;
  top: 0;
  right: 100%;
  height: 100%;
  width: 100%;
  /* linear-gradient(to right, #3494e6, #ec6ead) */
  background: linear-gradient(to right, #43cea2, #3866ca);
  animation: gradient 2s ease infinite;
  background-size: 200%
}

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

/* 文章页H1-H6图标样式效果 */
/* 控制风车转动速度 4s那里可以自己调节快慢 */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  -webkit-animation: ccc 4s linear infinite;
  animation: ccc 4s linear infinite;
}
/* 控制风车转动方向 -1turn 为逆时针转动，1turn 为顺时针转动，相同数字部分记得统一修改 */
@-webkit-keyframes ccc {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-1turn);
    transform: rotate(-1turn);
  }
}
@keyframes ccc {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(-1turn);
    transform: rotate(-1turn);
  }
}
/* 设置风车颜色 */
#content-inner.layout h1::before {
  color: #ef50a8;
  margin-left: -0.28rem;
  font-size: 1.3rem;
  margin-top: -0.23rem;
}
#content-inner.layout h2::before {
  color: #fb7061;
  margin-left: -0.35rem;
  font-size: 1.1rem;
  margin-top: -0.12rem;
}
#content-inner.layout h3::before {
  color: #ffbf00;
  margin-left: -0.32rem;
  font-size: 0.95rem;
  margin-top: -0.09rem;
}
#content-inner.layout h4::before {
  color: #a9e000;
  margin-left: -0.3rem;
  font-size: 0.8rem;
  margin-top: -0.09rem;
}
#content-inner.layout h5::before {
  color: #57c850;
  margin-left: -0.28rem;
  font-size: 0.7rem;
  margin-top: 0rem;
}
#content-inner.layout h6::before {
  color: #5ec1e0;
  margin-left: -0.28rem;
  font-size: 0.66rem;
  margin-top: 0rem;
}
/* s设置风车hover动效 6s那里可以自己调节快慢*/
#content-inner.layout h1:hover,
#content-inner.layout h2:hover,
#content-inner.layout h3:hover,
#content-inner.layout h4:hover,
#content-inner.layout h5:hover,
#content-inner.layout h6:hover {
  color: var(--theme-color);
}
#content-inner.layout h1:hover::before,
#content-inner.layout h2:hover::before,
#content-inner.layout h3:hover::before,
#content-inner.layout h4:hover::before,
#content-inner.layout h5:hover::before,
#content-inner.layout h6:hover::before {
  color: var(--theme-color);
  -webkit-animation: ccc 6s linear infinite;
  animation: ccc 6s linear infinite;
}

:root {
  --trans-light: rgba(255, 255, 255, 0.88);
  --trans-dark: rgba(25, 25, 25, 0.88);
  --border-style: 1px solid rgb(169, 169, 169);
  --backdrop-filter: blur(5px) saturate(150%);
}

/* 首页文章卡片（5.x 有 .recent-post-items 包裹层，两层都要匹配） */
#recent-posts > .recent-post-item,
#recent-posts > .recent-post-items > .recent-post-item {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border-radius: 25px;
  border: var(--border-style);
}

/* 首页侧栏卡片 */
#aside-content .card-widget,
.hg-side-fill > .card-widget {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border-radius: 18px;
  border: var(--border-style);
}

/* 文章页、归档页、普通页面 */
div#post,
div#page,
div#archive {
  background: var(--trans-light);
  backdrop-filter: var(--backdrop-filter);
  border: var(--border-style);
  border-radius: 20px;
}

/* 导航栏：固定状态下不用 backdrop-filter。
   Chromium 里 fixed + transform 的元素再叠加 backdrop-filter，
   模糊板会和导航条错位（看起来像一块浮空的半透明遮罩），低配机还特别卡 */
#page-header.nav-fixed #nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="dark"] #page-header.nav-fixed #nav {
  background: rgba(16, 18, 24, 0.92) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 夜间模式遮罩 */
[data-theme="dark"] #recent-posts > .recent-post-item,
[data-theme="dark"] #recent-posts > .recent-post-items > .recent-post-item,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] .hg-side-fill > .card-widget,
[data-theme="dark"] div#post,
[data-theme="dark"] div#archive,
[data-theme="dark"] div#page {
  background: var(--trans-dark);
}


/* 夜间模式页脚页头遮罩透明 */
[data-theme="dark"] #footer::before {
  background: transparent !important;
}

/* 阅读模式 */
.read-mode #aside-content .card-widget {
  background: rgba(158, 204, 171, 0.5) !important;
}
.read-mode div#post {
  background: rgba(158, 204, 171, 0.5) !important;
}

/* 夜间模式下的阅读模式 */
[data-theme="dark"] .read-mode #aside-content .card-widget {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #ffffff;
}
[data-theme="dark"] .read-mode div#post {
  background: rgba(25, 25, 25, 0.9) !important;
  color: #ffffff;
}


body::-webkit-scrollbar {
  width: 0;
}

.neko {
  width: 64px;
  height: 64px;
  background-image: url("https://bu.dusays.com/2022/07/20/62d812db74be9.png");
  position: absolute;
  right: 32px;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(50%);
  cursor: pointer;
  font-family: tzy;
  font-weight: 600;
  font-size: 16px;
  color: #6f42c1;
  display: none;
}

.neko::after {
  display: none;
  width: 100px;
  height: 100px;
  background-image: url("https://bu.dusays.com/2022/07/20/62d812d95e6f5.png");
  background-size: contain;
  z-index: 9999;
  position: absolute;
  right: 50%;
  text-align: center;
  line-height: 100px;
  top: -115%;

}

.neko.showMsg::after {
  content: attr(data-msg);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neko:hover::after {
  content: attr(data-msg);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#小猫猫
.neko.fontColor::after {
  color: #333;
}

/**
* @description: 滚动条样式  跟猫二选一
*/
@media screen and (max-width:992px) {
  ::-webkit-scrollbar {
      width: 8px !important;
      height: 8px !important
  }

  ::-webkit-scrollbar-track {
      border-radius: 2em;
  }

  ::-webkit-scrollbar-thumb {
      background-color: rgb(255 255 255 / .3);
      background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
      border-radius: 2em
  }

  ::-webkit-scrollbar-corner {
      background-color: transparent
  }
}

/* 头像呼吸灯 */
[data-theme="light"] .avatar-img {
  animation: huxi_light 4s ease-in-out infinite;
}
[data-theme="dark"] .avatar-img {
  animation: huxi_dark 4s ease-in-out infinite;
}
@keyframes huxi_light {
  0% {
    box-shadow: 0px 0px 1px 1px #e9f5fa;
  }
  50% {
    box-shadow: 0px 0px 5px 5px #e9f5fa;
  }
  100% {
    box-shadow: 0px 0px 1px 1px #e9f5fa;
  }
}
@keyframes huxi_dark {
  0% {
    box-shadow: 0px 0px 1px 1px #39c5bb;
  }
  50% {
    box-shadow: 0px 0px 5px 5px #39c5bb;
  }
  100% {
    box-shadow: 0px 0px 1px 1px #39c5bb;
  }
}

/* fps */
/* 帧率检测 */
#fps {
  position: fixed;
  /* 指定位置 */
  right: 10px;
  bottom: 5px;
  z-index: 1919810;
}
[data-theme="light"] #fps {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--backdrop-filter);
  padding: 4px;
  border-radius: 4px;
}
[data-theme="dark"] #fps {
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--backdrop-filter);
  padding: 4px;
  border-radius: 4px;
}

/* 低性能模式：由 fps.js 在持续掉帧时自动给 <html> 加上 .low-perf
   注：.brinks 炫彩字不再这里停动画，否则颜色会冻住、看起来像卡在某个色块 */
html.low-perf .avatar-img,
html.low-perf h1::before,
html.low-perf h2::before,
html.low-perf h3::before,
html.low-perf h4::before,
html.low-perf h5::before,
html.low-perf h6::before,
html.low-perf .parallax > use,
html.low-perf #heartbeat {
  animation: none !important;
}

/* 卡片渐变只暂停、不回退，避免切换低性能模式时颜色突变 */
html.low-perf #aside-content > .card-widget.card-info {
  -webkit-animation-play-state: paused !important;
  animation-play-state: paused !important;
  will-change: auto;
}

/* 毛玻璃在低端 GPU / 软件渲染下非常吃性能 */
html.low-perf *,
html.low-perf *::before,
html.low-perf *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 背景画布不再参与合成（脚本循环仍在，但不再绘制到屏幕） */
html.low-perf #universe,
html.low-perf body > canvas:not(#universe) {
  display: none !important;
}

/* 右键菜单 */
#rightMenu {
  display: none;
  position: fixed;
  width: 160px;
  height: fit-content;
  top: 10%;
  left: 10%;
    /* 菜单面板背景色 */
  background-color: var(--card-bg);
    /* 菜单面板文字颜色 */
  border: 1px solid var(--font-color);
  border-radius: 8px;
  z-index: 100;
}
#rightMenu .rightMenu-group {
  padding: 7px 6px;
}
#rightMenu .rightMenu-group:not(:nth-last-child(1)) {
  border-bottom: 1px solid var(--font-color);
}
#rightMenu .rightMenu-group.rightMenu-small {
  display: flex;
  justify-content: space-between;
}
#rightMenu .rightMenu-group .rightMenu-item {
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  transition: 0.3s;
  color: var(--font-color);
}
#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item {
  display: flex;
  height: 40px;
  line-height: 40px;
  padding: 0 4px;
}
#rightMenu .rightMenu-group .rightMenu-item:hover {
    /* 鼠标悬浮选项颜色 */
  background-color: var(--text-bg-hover);
}
#rightMenu .rightMenu-group .rightMenu-item i {
  display: inline-block;
  text-align: center;
  line-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0 5px;
}
#rightMenu .rightMenu-group .rightMenu-item span {
  line-height: 30px;
}

#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item * {
  height: 40px;
  line-height: 40px;
}
.rightMenu-group.hide {
  display: none;
}

/*哔哩哔哩视频适配*/
.aspect-ratio {
  position: relative;
  width: 90%;
  height: auto;
  padding-bottom: 75%;
  margin: 3% auto;
  text-align: center;
}
.aspect-ratio iframe {
  position: absolute;
  width: 100%;
  height: 86%;
  left: 0;
  top: 0;
}

/* 波浪css */
.main-hero-waves-area {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -11px;
  z-index: 5;
}
.waves-area .waves-svg {
  width: 100%;
  height: 5rem;
}
/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #f7f9febd;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #f7f9fe82;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #f7f9fe36;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #f7f9fe;
}
/* 黑色模式背景 */
[data-theme="dark"] .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: #18171dc8;
}
[data-theme="dark"] .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: #18171d80;
}
[data-theme="dark"] .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: #18171d3e;
}
[data-theme="dark"] .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: #18171d;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves-area .waves-svg {
    height: 40px;
    min-height: 40px;
  }
}
/* 文章标题居中以适应波浪线 */
#post-info{
  top: 30%;
  text-align: center;
}

  /* 页脚心跳动画 */
  #heartbeat {
    color: red;
    animation: iconAnimate 1s ease-in-out infinite;
  }
  @-moz-keyframes iconAnimate {
    0%,
    100% {
      transform: scale(1);
    }
    10%,
    30% {
      transform: scale(0.9);
    }
    20%,
    40%,
    60%,
    80% {
      transform: scale(1.1);
    }
    50%,
    70% {
      transform: scale(1.1);
    }
  }
      @-webkit-keyframes iconAnimate {
      0%,
    100% {
      transform: scale(1);
    }
    10%,
    30% {
      transform: scale(0.9);
    }
    20%,
    40%,
    60%,
    80% {
      transform: scale(1.1);
    }
    50%,
    70% {
      transform: scale(1.1);
    }
  }
  @-o-keyframes iconAnimate {
    0%,
    100% {
      transform: scale(1);
    }
    10%,
    30% {
      transform: scale(0.9);
    }
    20%,
    40%,
    60%,
    80% {
      transform: scale(1.1);
    }
    50%,
    70% {
      transform: scale(1.1);
    }
  }
  @keyframes iconAnimate {
    0%,
    100% {
      transform: scale(1);
    }
    10%,
    30% {
      transform: scale(0.9);
    }
    20%,
    40%,
    60%,
    80% {
      transform: scale(1.1);
    }
    50%,
    70% {
      transform: scale(1.1);
    }
  }

  /* 自定义字体：霞鹜文楷（站点字符 + GB2312 子集，含站内用到的繁体 / 生僻字） */
  @font-face {
    font-family: 'myfont';
    src: url("/font/%E9%9C%9E%E9%B9%9C%E6%96%87%E6%A5%B7.full.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

/* ===== 分类页卡片化 ===== */
.category-lists ul.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-lists .category-list-item {
  position: relative;
  margin: 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 62%, #fff));
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 干掉主题默认的列表圆点 */
.category-lists .category-list-item::before {
  display: none !important;
}

.category-lists .category-list-link {
  display: block;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--font-color);
  transition: color 0.2s ease;
}

.category-lists .category-list-count {
  position: absolute;
  top: 16px;
  right: 14px;
  margin: 0;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: color-mix(in srgb, var(--theme-color, #49b1f5) 62%, var(--font-color, #4c4948));
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 14%, transparent);
}

.category-lists ul.category-list li.category-list-item span.category-list-count::before {
  content: none;
}

.category-lists ul.category-list li.category-list-item span.category-list-count::after {
  content: "篇";
  margin-left: 1px;
}

.category-lists .category-list-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--theme-color, #49b1f5) 45%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-color, #49b1f5) 18%, transparent);
}

.category-lists .category-list-item:hover .category-list-link {
  color: color-mix(in srgb, var(--theme-color, #49b1f5) 72%, var(--font-color, #4c4948)) !important;
}

/* 子分类：做成小胶囊 */
.category-lists .category-list-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.category-lists .category-list-child .category-list-item {
  margin: 0;
  padding: 2px 10px;
  border: 1px dashed color-mix(in srgb, var(--theme-color, #49b1f5) 40%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--theme-color, #49b1f5) 8%, transparent);
  background-image: none;
  box-shadow: none;
  transform: none;
}

.category-lists .category-list-child .category-list-item:hover {
  border-color: var(--theme-color);
  box-shadow: none;
  transform: none;
}

.category-lists .category-list-child .category-list-link {
  display: inline;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}

.category-lists .category-list-child .category-list-count {
  position: static;
  margin-left: 4px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  color: var(--theme-meta-color);
  background: none;
}

/* 卡片顶部色条换色：统一跟随主题色，只做明度变化 */
.category-lists .category-list-item:nth-child(5n + 2) {
  background-image: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 55%, #fff));
}
.category-lists .category-list-item:nth-child(5n + 3) {
  background-image: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 70%, #fff));
}
.category-lists .category-list-item:nth-child(5n + 4) {
  background-image: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 40%, #fff));
}
.category-lists .category-list-item:nth-child(5n + 5) {
  background-image: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 85%, #fff));
}

/* 夜间模式 */
[data-theme="dark"] .category-lists .category-list-item {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(30, 30, 30, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .category-lists .category-list-count {
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 20%, transparent);
}

[data-theme="dark"] .category-lists .category-list-child .category-list-item {
  background-color: color-mix(in srgb, var(--theme-color, #49b1f5) 12%, transparent);
  background-image: none;
}

/* 小屏适配 */
@media screen and (max-width: 768px) {
  .category-lists ul.category-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .category-lists .category-list-item {
    padding: 14px;
    border-radius: 12px;
  }

  .category-lists .category-list-link {
    padding-right: 40px;
    font-size: 15px;
  }
}

/* 移动端用更小的背景图，减少首屏流量 */
@media screen and (max-width: 768px) {
  #web_bg {
    background-image: url(/img/bg-mobile.webp) !important;
  }
}

/* ===== 左下角音乐播放器美化 ===== */
.aplayer.aplayer-fixed {
  left: 18px !important;
  bottom: 18px !important;
  right: auto !important;
  max-width: 420px !important;
  z-index: 1000 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 主体：玻璃卡片 */
.aplayer.aplayer-fixed .aplayer-body {
  left: 18px !important;
  bottom: 18px !important;
  right: auto !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.28), 0 2px 8px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  padding-right: 16px !important;
  z-index: 1000 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

/* 收起时只显示方形封面 */
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
  width: 66px !important;
  padding-right: 0 !important;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.32), 0 0 24px rgba(73, 177, 245, 0.35) !important;
}

/* 展开时固定卡片宽度（否则 left/right 被改后会缩成封面宽） */
.aplayer.aplayer-fixed:not(.aplayer-narrow) .aplayer-body {
  width: 402px !important;
}

.aplayer.aplayer-fixed .aplayer-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(16, 42, 67, 0.34), 0 4px 12px rgba(16, 42, 67, 0.16);
}

/* 封面 */
.aplayer.aplayer-fixed .aplayer-pic {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.aplayer.aplayer-fixed .aplayer-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(73, 177, 245, 0.18), rgba(57, 197, 187, 0.1));
  pointer-events: none;
}

/* 播放按钮：渐变圆钮 */
.aplayer.aplayer-fixed .aplayer-pic .aplayer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(73, 177, 245, 0.9), rgba(57, 197, 187, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.aplayer.aplayer-fixed .aplayer-pic .aplayer-button:hover {
  background: rgba(73, 177, 245, 0.9) !important;
  transform: scale(1.1);
}

/* 歌曲信息 */
.aplayer.aplayer-fixed .aplayer-info {
  border-bottom: none !important;
  background: transparent !important;
  padding: 8px 4px 6px 10px !important;
}

.aplayer.aplayer-fixed .aplayer-title {
  color: #16324a !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.aplayer.aplayer-fixed .aplayer-author {
  color: #5d778c !important;
  font-size: 12px;
}

/* 歌名/歌手过长时省略，避免把卡片撑开 */
.aplayer.aplayer-fixed .aplayer-music {
  display: flex;
  align-items: baseline;
  overflow: hidden;
}

.aplayer.aplayer-fixed .aplayer-title,
.aplayer.aplayer-fixed .aplayer-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aplayer.aplayer-fixed .aplayer-title {
  max-width: 62%;
}

/* 进度条 */
.aplayer.aplayer-fixed .aplayer-controller .aplayer-bar-wrap {
  margin: 8px 0 4px !important;
  padding: 0 !important;
}

.aplayer.aplayer-fixed .aplayer-controller .aplayer-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(20, 50, 74, 0.14) !important;
}

.aplayer.aplayer-fixed .aplayer-controller .aplayer-played {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 62%, #fff)) !important;
}

.aplayer.aplayer-fixed .aplayer-controller .aplayer-thumb {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(73, 177, 245, 0.5);
}

/* 时间与操作图标 */
.aplayer.aplayer-fixed .aplayer-time {
  color: #6a8599 !important;
}

.aplayer.aplayer-fixed .aplayer-info .aplayer-icon svg path {
  fill: #3f5f78 !important;
}

.aplayer.aplayer-fixed .aplayer-info .aplayer-icon:hover svg path {
  fill: var(--theme-color) !important;
}

/* 播放列表：透明玻璃浮层 */
.aplayer.aplayer-fixed .aplayer-list {
  margin-bottom: 80px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 16px 38px rgba(16, 42, 67, 0.2) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  position: relative !important;
  z-index: 999 !important;
}

.aplayer.aplayer-fixed .aplayer-list ol {
  max-height: 260px;
  border-radius: 18px !important;
  background: transparent !important;
  overflow-y: auto;
}

.aplayer.aplayer-fixed .aplayer-list li {
  color: #1f3a52 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(73, 177, 245, 0.12);
  transition: background 0.2s ease;
}

.aplayer.aplayer-fixed .aplayer-list li:first-child {
  border-radius: 18px 18px 0 0;
}

.aplayer.aplayer-fixed .aplayer-list li:last-child {
  border-radius: 0 0 18px 18px;
}

.aplayer.aplayer-fixed .aplayer-list li:hover {
  background: rgba(73, 177, 245, 0.12);
}

.aplayer.aplayer-fixed .aplayer-list-light {
  background: rgba(73, 177, 245, 0.16) !important;
}

.aplayer.aplayer-fixed .aplayer-list-author {
  color: #46617a !important;
}

/* 当前播放指示条 */
.aplayer.aplayer-fixed .aplayer-list-cur {
  background: linear-gradient(180deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 62%, #fff)) !important;
  border-radius: 999px;
}

.aplayer.aplayer-fixed .aplayer-list-index {
  color: #5b7488 !important;
}

/* 列表滚动条 */
.aplayer.aplayer-fixed .aplayer-list ol::-webkit-scrollbar {
  width: 6px;
}

.aplayer.aplayer-fixed .aplayer-list ol::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(73, 177, 245, 0.35);
}

.aplayer.aplayer-fixed .aplayer-list ol::-webkit-scrollbar-track {
  background: transparent;
}

/* 夜间模式 */
[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-body {
  background: rgba(20, 24, 32, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-title {
  color: #eef6ff !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-author {
  color: #9db4c8 !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-time {
  color: #8ca3b8 !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-info .aplayer-icon svg path {
  fill: #cfe0ef !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list {
  background: rgba(18, 24, 32, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list-author {
  color: #b9cede !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list li {
  color: #e8f2fb !important;
}

[data-theme="dark"] .aplayer.aplayer-fixed .aplayer-list-light {
  background: rgba(73, 177, 245, 0.22) !important;
}

/* 小屏时离边角近一点，展开宽度自适应 */
@media screen and (max-width: 768px) {
  .aplayer.aplayer-fixed,
  .aplayer.aplayer-fixed .aplayer-body {
    left: 12px !important;
    bottom: 12px !important;
  }

  .aplayer.aplayer-fixed:not(.aplayer-narrow) .aplayer-body {
    width: calc(100vw - 24px) !important;
  }
}

/* 音乐馆：全屏播放器入口 */
.music-player-entry {
  margin: 4px 0 26px;
}

.music-player-entry a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(73, 177, 245, 0.45);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(73, 177, 245, 0.2), rgba(57, 197, 187, 0.2));
  color: var(--font-color);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(73, 177, 245, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.music-player-entry a:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 177, 245, 0.7);
  box-shadow: 0 14px 34px rgba(73, 177, 245, 0.22);
}

.music-player-entry__play {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 62%, #fff));
  color: var(--on-theme, #fff);
  font-size: 16px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-color) 35%, transparent);
}

.music-player-entry__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.music-player-entry__text strong {
  color: var(--font-color);
  font-size: 16px;
}

.music-player-entry__text small {
  color: var(--theme-meta-color);
  font-size: 12px;
}

.music-player-entry__arrow {
  color: var(--theme-color);
  font-size: 18px;
}

@media screen and (max-width: 768px) {
  .music-player-entry a {
    gap: 12px;
    padding: 14px 16px;
  }

  .music-player-entry__play {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}

/* ===== 页脚排版 + 备案标（桂ICP / 公安联网 / 萌ICP）===== */
/* 5.x 页脚用 #footer > * 设色；为兼容旧插件保留 #footer-wrap 后补回子层样式 */
#footer #footer-wrap > * {
  position: relative;
  color: var(--light-grey);
}

/* 版权/炫彩字、运行计时、shields 徽标统一居中，避免各行左右乱跑 */
#footer-wrap .footer-other,
#footer-wrap #workboard,
#footer-wrap #ghbdages {
  text-align: center;
}

#footer-wrap .footer-other { margin-bottom: 2px; }
#footer-wrap #workboard { margin-top: 8px; line-height: 1.7; }
#footer-wrap #ghbdages { margin: 8px 0 0; line-height: 1; }

/* ===== 页脚徽标与运行计时并排 =====
   插件在运行时把 #workboard、#ghbdages 追加到 #footer-wrap 末尾，
   用 flex + order 把计时器单独占一行、徽标行居中。 */
#footer #footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
}

#footer-wrap > .footer-other { flex: 0 0 100%; order: 0; }
#footer-wrap > #workboard { flex: 0 0 100%; order: 1; }
#footer-wrap > #ghbdages {
  order: 2;
  flex: 0 0 auto;
  max-width: 100%;
  margin-top: 8px;
}

#footer-wrap > #ghbdages {
  /* 徽标变多（备案三连）后要能换行，inline-flex 会撑出容器 */
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 0;
  /* 右下角 FPS 挂件是 fixed，会压住行尾徽标；底部留白把徽标行抬到挂件上方 */
  padding: 0;
  margin-bottom: 46px;
  white-space: normal;
  line-height: 1.9;
}
@media screen and (max-width: 768px) {
  #footer-wrap > #ghbdages { margin-bottom: 40px; padding: 0 12px; }
}
#footer-wrap > #ghbdages a.github-badge { display: inline-block; }

/* ===== 首页多栏卡片（对齐 fomal 的 multicard）=====
   5.x 在 #recent-posts 内新增 .recent-post-items 包裹层，
   旧双栏插件的 #recent-posts > .recent-post-item 选择器全部失配。
   这里按新结构重写，并改成「开关式」：html 带 hg-article-multi 才生效。
   开关来源：_config.yml 的 butterfly_article_double_row.enable（构建期加类）
             或美化设置面板（实时切类，覆盖构建默认值）。
   结构：五边形封面 200px + 信息区 150px，摘要以半透明层压回封面上。 */
html.hg-article-multi #recent-posts > .recent-post-items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
  padding: 0 5px;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto !important;
  max-height: 350px;
  margin: 0 0 20px;
  border-radius: 15px;
  overflow: hidden;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .post_cover {
  order: 0 !important;
  width: 100% !important;
  height: 200px !important;
  flex: 0 0 200px;
  clip-path: polygon(0 130px, 0 0, 100% 0, 100% 130px, 50% 100%);
  overflow: hidden;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .post_cover > a > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: scale .6s ease-in-out;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item:hover > .post_cover > a > img {
  scale: 1.08;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info {
  width: 100% !important;
  height: 150px;
  margin: 0 !important;
  padding: 0 25px 5px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .article-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin: 0 5px;
  font-size: 19px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-highlight-color);
  transition: color .2s ease-in-out;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .article-title:hover {
  color: var(--theme-color);
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .article-meta-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: .35rem 5px 0;
  font-size: 13px;
  text-align: center;
  color: #969797;
}

/* 摘要叠层：与封面同一五边形；外层负责居中，内层负责三行截断
   绝对定位元素会被 Chrome 块级化为 flow-root，-webkit-box 截断失效，
   所以截断必须放在内层 .content-text 上（对齐 fomal 的 article-content-text）。 */
html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(25, 25, 25, .4);
  clip-path: polygon(0 130px, 0 0, 100% 0, 100% 130px, 50% 100%);
  pointer-events: none;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .content > .content-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  flex: 1 1 auto;
  overflow: hidden;
  margin: 0 25px 30px;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  text-shadow: 1px 2px 3px #000;
  transition: scale .6s ease-in-out;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .content > .content-text::before {
  content: "「";
  font-size: 20px;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item > .recent-post-info > .content > .content-text::after {
  content: "」";
  font-size: 20px;
}

html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item:hover > .recent-post-info > .content > .content-text {
  scale: 1.08;
}

/* 分页器保持独占整行 */
html.hg-article-multi #recent-posts > .recent-post-items > .pagination,
html.hg-article-multi #recent-posts > .recent-post-items > #pagination,
html.hg-article-multi #recent-posts > .recent-post-items > nav {
  width: 100%;
  flex: 0 0 100%;
}

/* 三栏：≥1069px（fomal multicard 同款比例，3 × 32.3% + 3 × 1% ≈ 100%） */
@media screen and (min-width: 1069px) {
  html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item {
    width: 32.3%;
    margin: 0 1% 20px 0;
  }
}

/* 双栏：573–1068px */
@media screen and (min-width: 573px) and (max-width: 1068px) {
  html.hg-article-multi #recent-posts > .recent-post-items > .recent-post-item {
    width: 47%;
    margin: 0 3% 20px 0;
  }
}

/* ===== 低性能模式补充：长列表离屏卡片跳过绘制 ===== */
html.low-perf #recent-posts > .recent-post-items > .recent-post-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
/* ===== 背景星座连线（canvas-nest）美化 ===== */
/* 线条轻微柔化 + 滤色混合，暗色下像星链而不是硬蓝线 */
body > canvas:not(#universe) {
  /* 只做滤色叠加：blur 滤镜会让整屏 canvas 每帧重新光栅化，Edge/低配机器会卡 */
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 亮色模式：线条压淡一些，避免抢正文 */
[data-theme='light'] body > canvas:not(#universe) {
  mix-blend-mode: normal;
  opacity: 0.45 !important;
}

/* ===== 修复滚动后顶部露白 ===== */
/* 主题给 #web_bg 设了 background-attachment: local，滚动时背景跟着走会露白；
   只改这一条，不动尺寸/定位，避免破坏主题原有布局 */
#web_bg {
  /* 主题没给 top/left，position:fixed 会停在静态位置，顶部露出约 10px 白边 */
  top: 0 !important;
  left: 0 !important;
  background-attachment: fixed !important;
  background-position: center center !important;
}


/* ===== 移动端：背景图铺满 + 头图遮罩置顶 ===== */
@media screen and (max-width: 768px) {
  /* iOS/部分安卓对 fixed 背景支持差，会出现“图只铺了一半/滚动露白” */
  #web_bg {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
    height: 100% !important;
  }

  /* 首页大图同样别再 fixed，改成整体铺满 */
  #page-header.full_page {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
    /* 手机浏览器地址栏会让 100vh 比可视区高，用 dvh 兜住，避免首屏露底 */
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
  }

  /* 遮罩从 0 开始，别被导航栏顶出空隙 */
  #page-header:not(.not-top-img)::before {
    top: 0 !important;
    height: 100% !important;
  }
}


/* ===== 2026-11-21 从 my-blog(fomalhaut) 移植：右键菜单 / 听话鼠标 / 小猫咪 ===== */
/* 右键菜单（fomalhaut custom.css:2462-2527） */
/* 右键菜单 */
#rightMenu {
  display: none;
  position: fixed;
  width: 160px;
  height: fit-content;
  top: 10%;
  left: 10%;
  background-color: var(--card-bg);
  border: 1px solid var(--font-color);
  border-radius: 8px;
  z-index: 100;
}
#rightMenu .rightMenu-group {
  padding: 7px 6px;
}
#rightMenu .rightMenu-group:not(:nth-last-child(1)) {
  border-bottom: 1px solid var(--font-color);
}
#rightMenu .rightMenu-group.rightMenu-small {
  display: flex;
  justify-content: space-between;
}
#rightMenu .rightMenu-group .rightMenu-item {
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  transition: 0.3s;
  color: var(--font-color);
}
#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item {
  display: flex;
  height: 40px;
  line-height: 40px;
  padding: 0 4px;
}
#rightMenu .rightMenu-group .rightMenu-item:hover {
  background-color: var(--text-bg-hover) !important;
}
#rightMenu .rightMenu-group .rightMenu-item i {
  display: inline-block;
  text-align: center;
  line-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0 5px;
}
#rightMenu .rightMenu-group .rightMenu-item span {
  line-height: 30px;
}

#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item * {
  height: 40px;
  line-height: 40px;
}
.rightMenu-group.hide {
  display: none;
}

/* 页脚心跳动画 */
#heartbeat {
  color: red;
  animation: iconAnimate 1s ease-in-out infinite;
}
/* [P3 清理] 此处原有 @-moz-keyframes iconAnimate（20 行）：Firefox 16+ / Opera 15+ 起已支持无前缀 @keyframes，删掉前缀版，无前缀版就在附近 */

/* 听话鼠标（fomalhaut custom.css:586-620） */
#cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: var(--theme-color) !important;
  border-radius: 8px;
  opacity: 0.25;
  z-index: 10086;
  pointer-events: none;
  transition: 0.2s ease-in-out;
  transition-property: background, opacity, transform;
}

#cursor.hidden {
  opacity: 0;
}

#cursor.hover {
  opacity: 0.1;
  transform: scale(2.5);
  -webkit-transform: scale(2.5);
}

#cursor.active {
  opacity: 0.5;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);
}

/* 手机端不显示 */
@media screen and (max-width: 500px) {
  #cursor {
    display: none !important;
  }
}

/* 小猫咪（fomalhaut custom.css:2620-2693） */
/* 右边的小猫咪 */
/* 滚动条，我设置的不隐藏，为了可以到达任何地方 */
/* body::-webkit-scrollbar {
    width: 0;
} */

.neko {
  width: 64px;
  height: 64px;
  /* https://bu.dusays.com/2022/07/20/62d812db74be9.png */
  position: absolute;
  right: 56px !important;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(50%);
  font-family: var(--global-font);
  font-weight: 600;
  font-size: 16px;
  /* 报时文字写死成舒适的黑 #333，不跟随主题色（主题色在这个白色气泡上观感偏怪） */
  color: #333 !important;
  display: none;
  /* 猫咪只当「视觉挂件」：不吃鼠标事件，被它压住的导航图标 / 侧边按钮 / 链接照常能点、能悬停 */
  pointer-events: none;
}

.neko::after {
  display: none;
  width: 100px;
  height: 100px;
  background-image: url("https://bu.dusays.com/2022/07/20/62d812d95e6f5.png");
  background-size: contain;
  z-index: 9999;
  position: absolute;
  right: 50%;
  text-align: center;
  line-height: 106px;
  top: -115%;
}

.neko.showMsg::after {
  content: attr(data-msg);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 猫咪是 pointer-events:none，:hover 永远不触发；改由 JS 判定指针是否落在猫咪身上，命中就加 .hoverOn */
.neko.hoverOn::after {
  content: attr(data-msg);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neko.fontColor::after {
  color: #333;
}

/* 小猫咪手机端消失 */
@media screen and (max-width: 768px) {
  .neko,
  #myscoll {
    display: none !important;
  }
}

#article-container .card-content img {
  margin: 0;
}

@media screen and (min-width: 768px) {
  .card-content .fancybox,
  .card-content video {
    display: inline-block;
  }
}

/* ===== 2026-11-21 昼夜切换 2.0（fomal 节奏，总时长 1.5s） ===== */
.Cuteen_DarkSky,
.Cuteen_DarkSky:before {
  z-index: 88888888 !important;
}
.Cuteen_DarkSky {
  transition: opacity 0.75s ease !important;
}
.Cuteen_DarkSky:before {
  transition: opacity 0.75s ease all !important;
}
.Cuteen_DarkPlanet {
  -webkit-animation: CuteenPlanetMove var(--hg-cut-dur, 1s) cubic-bezier(0.7, 0, 0, 1) !important;
  animation: CuteenPlanetMove var(--hg-cut-dur, 1s) cubic-bezier(0.7, 0, 0, 1) !important;
}
#sun,
#moon {
  transition: opacity 0.4s ease !important;
}
/* ── 18/18  #darkModeStage  ← 2026-10-11 新增（昼夜切换「黄昏落幕」：三拍剧本 + 圆形揭幕；「轻」档仍走第 17 块的老转盘）──
   与 source/js/modules/shell.js 的 DM_* 常量一一对应，两边要一起改：
     DM_BEAT1_MS 450（日落/日出） → DM_BEAT2_MS 450（暮色 + 第一批星） → DM_BEAT3_MS 600（星夜 + 揭幕，合计 1500）
     DM_REVEAL_AT_MS 1150 起揭幕  DM_REVEAL_MS 350 揭完  转昼整体 ×0.8（--dm-k: .8 → 1200ms）
   视线层次（DOM 顺序，从下到上）：夜空 → 夜色层 → 暮色 → 星星 → 太阳 → 月亮 → 云 → 远山 → 山脚辉光 → 流星
   只动 opacity / transform / mask；没有 canvas、没有 rAF；手机 ≤600px 由 shell.js 把星星减半、这里把云关掉 */
@property --dm-r { syntax: '<length>'; inherits: false; initial-value: 0px; }

.dm-stage { position: fixed; inset: 0; z-index: 88888890; overflow: hidden; pointer-events: none;
  --dm-x: 50%; --dm-y: 42%; --dm-r: 0px; --dm-k: 1;
  -webkit-mask-image: radial-gradient(circle var(--dm-r) at var(--dm-x) var(--dm-y), transparent 99%, #000 100%);
          mask-image: radial-gradient(circle var(--dm-r) at var(--dm-x) var(--dm-y), transparent 99%, #000 100%);
  transition: --dm-r 350ms cubic-bezier(.22,.61,.36,1), opacity 140ms linear 210ms; }
.dm-stage[data-to="light"] { --dm-k: .8; }
.dm-stage.is-reveal { --dm-r: 160vmax; opacity: 0; }

/* ① 天空：底子（暖橙→紫） + 夜色层（慢慢吃掉） + 暮色层（中间站，先亮后灭） */
.dm-stage .dm-sky, .dm-stage .dm-dusk, .dm-stage .dm-stars { position: absolute; inset: 0; }
.dm-stage .dm-sky { background: linear-gradient(to top, #ffb26b 0%, #ef7d67 26%, #6d4b90 62%, #241f45 100%); }
.dm-stage .dm-sky::after { content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, #0b1030 0%, #16244f 34%, #2b3a6b 62%, #4a3567 100%);
  animation: dm-night-fall calc(1100ms * var(--dm-k)) ease-in forwards; }
.dm-stage .dm-dusk { opacity: 0;
  background: linear-gradient(to top, #ffb26b 0%, #d4588f 42%, #4b2a6b 78%, #1a1638 100%);
  animation: dm-dusk-glow calc(900ms * var(--dm-k)) ease-out forwards; }
@keyframes dm-night-fall { 0% { opacity: 0 } 45% { opacity: .45 } 100% { opacity: 1 } }
@keyframes dm-dusk-glow { 0% { opacity: 0 } 32% { opacity: .9 } 100% { opacity: 0 } }

/* ② 太阳 / 月亮：同一条弧线，一个下去另一个上来；月亮带环形山 */
.dm-stage .dm-sun, .dm-stage .dm-moon { position: absolute; left: 50%; top: 34%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; }
.dm-stage .dm-sun { background: radial-gradient(circle at 38% 34%, #fff7cf 0 16%, #ffe07a 44%, #ffb43d 76%, #f08a1e 100%);
  box-shadow: 0 0 60px 18px rgba(255,190,90,.45), 0 0 150px 44px rgba(255,150,60,.16);
  animation: dm-sun-set calc(950ms * var(--dm-k)) cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes dm-sun-set { 0% { opacity: 1; transform: translate3d(0,-14px,0) scale(1) } 55% { opacity: .92; transform: translate3d(-18px,52px,0) scale(.96) } 100% { opacity: 0; transform: translate3d(-34px,168px,0) scale(.8) } }
.dm-stage .dm-moon { opacity: 0; background: radial-gradient(circle at 34% 30%, #fff 0 30%, #e9eefc 62%, #c3ccdf 100%);
  box-shadow: 0 0 44px 10px rgba(206,224,255,.35), inset -14px -10px 26px rgba(150,163,190,.35);
  animation: dm-moon-rise calc(950ms * var(--dm-k)) cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes dm-moon-rise { 0% { opacity: 0; transform: translate3d(64px,150px,0) scale(.78) } 42% { opacity: .9 } 100% { opacity: 1; transform: translate3d(0,0,0) scale(1) } }
/* 转昼时反过来：月亮沉下去、太阳升上来（两端的帧与上面互为倒放，接得上） */
.dm-stage[data-to="light"] .dm-sun { opacity: 0; animation-name: dm-sun-rise; }
.dm-stage[data-to="light"] .dm-moon { opacity: 1; animation-name: dm-moon-set; }
@keyframes dm-sun-rise { 0% { opacity: 0; transform: translate3d(-34px,168px,0) scale(.8) } 45% { opacity: .9 } 100% { opacity: 1; transform: translate3d(0,-14px,0) scale(1) } }
@keyframes dm-moon-set { 0% { opacity: 1; transform: translate3d(0,0,0) scale(1) } 55% { opacity: .85 } 100% { opacity: 0; transform: translate3d(64px,150px,0) scale(.78) } }
.dm-stage .dm-moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 66% 34%, rgba(148,161,188,.5) 0 11%, transparent 12%),
              radial-gradient(circle at 40% 62%, rgba(148,161,188,.42) 0 8%, transparent 9%),
              radial-gradient(circle at 71% 69%, rgba(148,161,188,.36) 0 6%, transparent 7%); }

/* ③ 星星：两批亮（第一批在暮色里先冒头，剩下的在第三拍铺满），之后轻轻闪 */
.dm-stage .dm-star { position: absolute; left: var(--dm-sx,50%); top: var(--dm-sy,30%); width: var(--dm-ss,2px); height: var(--dm-ss,2px);
  border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 7px rgba(214,232,255,.92);
  animation: dm-star-in calc(900ms * var(--dm-k)) ease-out calc(var(--dm-sd,0ms) * var(--dm-k)) forwards,
             dm-star-flicker calc(1400ms * var(--dm-k)) ease-in-out calc((var(--dm-sd,0ms) + 700ms) * var(--dm-k)) infinite alternate; }
@keyframes dm-star-in { 0% { opacity: 0; transform: translate3d(0,5px,0) scale(.5) } 55% { opacity: 1; transform: translate3d(0,0,0) scale(1) } 100% { opacity: var(--dm-so,.95); transform: translate3d(0,0,0) scale(1) } }
@keyframes dm-star-flicker { 0% { opacity: var(--dm-so,.95) } 100% { opacity: .55 } }

/* ④ 云（只有华丽档）：掠过日月时短暂遮一下再让开 */
.dm-stage[data-tier="standard"] .dm-clouds { display: none; }
.dm-stage .dm-clouds { position: absolute; inset: 0; }
.dm-stage .dm-clouds i { position: absolute; display: block; border-radius: 50%; filter: blur(9px); opacity: 0; background: radial-gradient(58% 100% at 50% 62%, rgba(255,238,218,.9) 0 44%, rgba(248,222,208,.5) 64%, transparent 100%); box-shadow: 7vw 1.1vw 0 -1.7vw rgba(255,238,218,.55), -6.5vw 1.5vw 0 -2.1vw rgba(246,220,206,.45); }
.dm-stage .dm-clouds i:nth-child(1) { left: -14%; top: 44%; width: 34vw; height: 9vw; animation: dm-cloud-a calc(1500ms * var(--dm-k)) linear calc(120ms * var(--dm-k)) forwards; }
.dm-stage .dm-clouds i:nth-child(2) { right: -16%; top: 26%; width: 26vw; height: 7vw; animation: dm-cloud-b calc(1600ms * var(--dm-k)) linear calc(60ms * var(--dm-k)) forwards; }
@keyframes dm-cloud-a { 0% { opacity: 0; transform: translate3d(0,0,0) } 25% { opacity: .85 } 100% { opacity: 0; transform: translate3d(58vw,10px,0) } }
@keyframes dm-cloud-b { 0% { opacity: 0; transform: translate3d(0,0,0) } 30% { opacity: .7 } 100% { opacity: 0; transform: translate3d(-48vw,-6px,0) } }

/* ⑤ 远山剪影 + 山脚辉光：有了地平线，日月才有「落下去 / 升起来」的参照 */
.dm-stage .dm-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background-repeat: no-repeat; background-position: bottom center; background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'><path fill='%230d1226' d='M0 200V152l126-24 132 30 138-44 148 36 140-30 152 34 158-26 150 32 152-20 144 24V200Z'/></svg>"); }
.dm-stage .dm-horizon::after { content: ''; position: absolute; inset: 0; opacity: .62; background-repeat: no-repeat; background-position: bottom center; background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'><path fill='%23272c52' d='M0 200V116l150-34 132 44 156-62 138 48 152-66 152 56 160-38 142 46 158-28 100 22V200Z'/></svg>"); }
.dm-stage .dm-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; opacity: 0;
  background: radial-gradient(70% 100% at 50% 108%, rgba(255,176,94,.72) 0 22%, rgba(255,120,80,.26) 46%, transparent 72%);
  animation: dm-glow-pulse calc(1000ms * var(--dm-k)) ease-out calc(60ms * var(--dm-k)) forwards; }
@keyframes dm-glow-pulse { 0% { opacity: .12 } 34% { opacity: .95 } 100% { opacity: .1 } }

/* ⑥ 流星：标准档一颗；华丽档 ::after 再来一颗（转昼不放，免得「天亮还掉流星」） */
.dm-stage[data-to="light"] .dm-meteor { display: none; }
.dm-stage .dm-meteor { position: absolute; left: 66%; top: 14%; width: 190px; height: 2px; border-radius: 2px; opacity: 0; transform-origin: right center;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(214,232,255,.25) 45%, #fff 100%);
  filter: drop-shadow(0 0 6px rgba(206,228,255,.9));
  animation: dm-meteor-run calc(720ms * var(--dm-k)) cubic-bezier(.35,.5,.5,1) calc(940ms * var(--dm-k)) forwards; }
@keyframes dm-meteor-run { 0% { opacity: 0; transform: rotate(-20deg) translate3d(0,0,0) scaleX(.25) } 14% { opacity: 1 } 62% { opacity: 1 } 100% { opacity: 0; transform: rotate(-20deg) translate3d(-340px,120px,0) scaleX(1) } }
.dm-stage[data-tier="flourish"] .dm-meteor::after { content: ''; position: absolute; left: -30%; top: 38%; width: 140px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(214,232,255,.25) 45%, #fff 100%);
  animation: dm-meteor-run calc(720ms * var(--dm-k)) cubic-bezier(.35,.5,.5,1) calc(1180ms * var(--dm-k)) forwards; }

/* ⑦ 设置面板里的档位下拉：跟 feature-opt 的排版对齐 */
/* ⑦′ 昼夜档位：四个胶囊按钮 + 一句跟着变的说明（原来用下拉，选项文字会被截断、也看不出能点） */
.settings .feature-opt.dm-wide { grid-column: 1 / -1; flex-wrap: wrap; align-items: flex-start; padding: 10px 0; }
.settings .dm-seg { display: flex; flex-shrink: 0; gap: 6px; padding: 4px; border: 1px solid rgba(128,128,128,.22); border-radius: 999px; background: rgba(128,128,128,.12); }
.settings .dm-seg button { min-height: 34px; padding: 5px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .84em; font-weight: 600; line-height: 1; cursor: pointer; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.settings .dm-seg button:hover { background: rgba(128,128,128,.18); }
.settings .dm-seg button.is-on { background: var(--theme-color); border-color: var(--theme-color); color: var(--on-theme); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.settings .dm-seg button:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 3px; }
.settings .feature-opt .dm-seg-note { flex: 1 0 100%; margin: 6px 0 0; font-size: .76em; font-weight: 400; line-height: 1.6; opacity: .82; }
@media (max-width: 600px) { .settings .feature-opt.dm-wide { flex-direction: column; align-items: stretch; } .settings .dm-seg { width: 100%; } .settings .dm-seg button { flex: 1 1 0; padding: 5px 6px; } .settings .feature-opt .dm-seg-note { flex: 0 0 auto; width: 100%; } }

/* ⑧ 兜底：手机缩小日月、关掉云；系统要求减少动态就不放这块幕布 */
@media (max-width: 600px) {
  .dm-stage .dm-sun, .dm-stage .dm-moon { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
  .dm-stage .dm-clouds { display: none; }
  .dm-stage .dm-horizon { height: 17%; background-position: bottom left; background-size: 150% 100%; }
  .dm-stage .dm-horizon::after { background-position: bottom left; background-size: 150% 100%; }
  .dm-stage .dm-glow { height: 22%; }
}
/* 减弱动画偏好不再隐藏过场，只在 night.js 里缩短时长 */

/* 昼夜 2.0 静态过场：默认隐藏，只在 html.dm-running 时显示（JS 在 source/js/fomal/night.js） */
.dm-stage { display: none; }
html.dm-running .dm-stage { display: block; }

/* ===== 2026-11-21 美化设置弹窗（Winbox，fomal 面板的轻量移植） ===== */
:root { --hg-font: 1; --hg-radius: 12px; --hg-appearance-color: #49b1f5; }
/* 主题在 body 上写死了 var(--global-font-size)，只改 html 的 font-size 没用；
   这里按倍数缩放 body 基准字号，em 子元素会一起跟着变 */
body { font-size: calc(var(--global-font-size, 16px) * var(--hg-font, 1)); }
.card-widget, .recent-post-item, #pagination .page-number, #pagination .space, .post-copyright, #post .highlight {
  border-radius: var(--hg-radius) !important;
}
body.hg-no-bg #web_bg { opacity: 0 !important; }
body.hg-no-bg { background: var(--global-bg) !important; }

.winbox.hg-winbox { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 44px rgba(0,0,0,.32); }
.winbox.hg-winbox .wb-body { background: #fff; color: #333; margin: 0; padding: 0; overflow-y: auto; }
.winbox.hg-winbox .wb-title { font-size: 15px; font-weight: 600; }
body.DarkMode .winbox.hg-winbox .wb-body { background: #22272e; color: #d6d6d6; }

.hg-panel { padding: 14px 16px 18px; font-size: 14px; }
.hg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(128,128,128,.22); flex-wrap: wrap; }
.hg-label { font-weight: 600; display: flex; flex-direction: column; line-height: 1.4; }
.hg-label small { font-weight: 400; font-size: 12px; opacity: .6; }
.hg-swatches { display: flex; gap: 8px; }
.hg-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }
.hg-swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--theme-color); }
.hg-segs { display: flex; gap: 6px; flex-wrap: wrap; }
.hg-seg { border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; transition: .2s; }
.hg-seg.on { background: var(--theme-color); border-color: var(--theme-color); color: var(--on-theme, #fff); }
.hg-seg:hover { border-color: var(--theme-color); }
.hg-foot { margin-top: 16px; text-align: center; }
.hg-reset { border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit; border-radius: 8px; padding: 6px 16px; cursor: pointer; }
.hg-reset:hover { border-color: var(--theme-color); color: var(--theme-color); }
.hg-note { margin: 12px 0 0; font-size: 12px; opacity: .6; text-align: center; }

/* ── FPS 药丸（fomal 样式）──────────────────────────────────── */
html #fps, html[data-theme] #fps {
  --fps-bg: rgba(232,242,246,.88); --fps-fg: #283c45; --fps-muted: #65757b;
  --fps-border: rgba(61,91,104,.18); --fps-good: #267d72; --fps-warn: #a0740d; --fps-low: #df2039;
  box-sizing: border-box; position: fixed;
  right: 10px; bottom: 6px; left: auto;
  z-index: 1919810; height: 30px; padding: 0 9px; width: max-content;
  display: flex; align-items: center;
  border: 1px solid var(--fps-border); border-radius: 9px;
  background: var(--fps-bg); color: var(--fps-fg);
  font-size: 13px; line-height: 1; font-weight: 500; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,35,45,.06); pointer-events: none; user-select: none;
  backdrop-filter: var(--backdrop-filter);
}
html[data-theme="dark"] #fps {
  --fps-bg: rgba(18,29,35,.88); --fps-fg: #dce9ef; --fps-muted: #9aacb6;
  --fps-border: rgba(192,219,232,.16); --fps-good: #75d2c5; --fps-warn: #f0cb68; --fps-low: #ff8a95;
}
#fps:empty { visibility: hidden; }
#fps .fps-label { font-size: 10px; letter-spacing: .6px; color: var(--fps-muted); }
#fps .fps-value { min-width: 3ch; margin: 0 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
#fps .fps-state { min-width: 2.6em; font-size: 12px; }
#fps .fps-state::before { content: "·"; margin-right: 5px; color: var(--fps-muted); }
#fps .fps-state[data-state="good"] { color: var(--fps-good); }
#fps .fps-state[data-state="warn"] { color: var(--fps-warn); }
#fps .fps-state[data-state="low"]  { color: var(--fps-low); }
@media (max-width: 600px) {
  html #fps, html[data-theme] #fps { height: 28px; padding: 0 8px; border-radius: 8px; }
}

/* ===== 2026-11-21 右上角图标对齐 / 间距（#nav 本身是 flex） ===== */
#nav > a.meihua,
#nav > a.sun_moon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 60px;
  margin-left: 6px;
  padding: 0;
}
#nav > a.meihua > svg,
#nav > a.sun_moon > svg {
  top: 0 !important;
  display: block;
  width: 22px;
  height: 22px;
}
#nav #menus {
  margin-right: 4px;
}
#nav #search-button {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
#nav #search-button i.fas {
  line-height: 1;
}

/* 右侧栏按钮内图标垂直居中 */
#rightside > div > button > i,
#rightside > div > a > i {
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}
#rightside a.icon-V svg {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}
#rightside #go-up .scroll-percent {
  font-size: 12px;
  line-height: 35px;
  letter-spacing: 0;
}
/* ===== 2026-11-21 右上角图标间距 / 居中修正 ===== */
/* 三个按钮统一 60px 高、flex 居中、图标 22px，间距左右各 6px 对称 */
#nav #search-button {
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0 2px;
}
#nav #search-button .search {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  line-height: 1;
  font-size: 20px;
}
#nav #search-button .search i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  line-height: 1;
  font-size: 18px;
}
#nav > a.meihua,
#nav > a.sun_moon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 60px;
  margin: 0 2px;
  padding: 0;
}
#nav > a.meihua > svg,
#nav > a.sun_moon > svg {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block;
  width: 22px !important;
  height: 22px !important;
  margin: 0;
  vertical-align: middle;
}
/* 沙漏/月亮 hover 动画的 transform-origin 归位，避免旋转时偏移 */
#nav > a.sun_moon > svg { transform-origin: 50% 50%; margin-top: -5px; }

/* ===== 2026-11-21 手机端导航：单排布 + 搜索/汉堡悬停和昼夜按钮同一套动画 ===== */
/* 桌面端：搜索图标 hover 时与调色盘/日月一样会“点头” */
#nav #search-button .social-icon.search.faa-parent { display: flex; align-items: center; justify-content: center; height: 60px; }
#nav #search-button .search i.faa-tada,
#nav #toggle-menu .site-page i.faa-tada { transform-origin: 50% 50%; }

@media (max-width: 1074px) {
  /* 不换行，标题左、图标右 */
  #nav { flex-wrap: nowrap !important; }
  #nav #blog-info { order: 0; flex: 1 1 auto; min-width: 0; margin-right: 6px; }
  #nav #blog-info .site-icon { width: 28px; height: 28px; }
  #nav #blog-info .site-name { display: inline-block; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 17px; }

  /* 把 #menus 变成“透明容器”，让搜索/汉堡和调色盘/日月排进同一行并按 order 排序 */
  #nav #menus { display: contents !important; position: static !important; transform: none !important; }
  #nav .menus_items { display: none !important; }

  #nav #search-button { order: 1; margin: 0 1px 0 auto; }
  #nav > a.meihua { order: 2; }
  #nav > a.sun_moon { order: 3; }
  #nav #toggle-menu { order: 4; display: flex !important; align-items: center; justify-content: center; width: 34px; height: 60px; margin: 0 2px; }

  /* 三者统一 34×60、图标 18-22px，垂直居中 */
  #nav #search-button .social-icon.search,
  #nav #toggle-menu .site-page { display: flex; align-items: center; justify-content: center; width: 34px; height: 60px; margin: 0; padding: 0; font-size: 18px; }
  #nav #search-button .search i,
  #nav #toggle-menu .site-page i { display: flex; align-items: center; justify-content: center; height: 60px; line-height: 1; font-size: 18px; }
  #nav > a.meihua,
  #nav > a.sun_moon { width: 34px; height: 60px; margin: 0 2px; }
  #nav > a.meihua > svg,
  #nav > a.sun_moon > svg { width: 20px !important; height: 20px !important; }
  #nav > a.sun_moon > svg { margin-top: -3px; }
}

@media (max-width: 1074px) {
  /* 图标行右边缘留白，避免汉堡贴边 */
  #nav { padding-right: 6px; }
  #nav #blog-info .site-name { max-width: 40vw; }
}

/* 2026-11-21 菜单栏 hover 与昼夜按钮同款“点头”动画 */
#nav .menus_items .menus_item > a.site-page:hover > i.fa-fw,
#nav .menus_items .menus_item > span.group:hover > i.fa-fw {
  -webkit-animation: tada 2s linear infinite;
  animation: tada 2s linear infinite;
  transform-origin: 50% 50%;
}

/* 搜索/汉堡与调色盘同一套悬停：去掉主题给 .site-page 加的 3px 蓝色下划线，
   下划线会把图标顶高 3px 导致和调色盘、日月对不齐 */
#nav #search-button .site-page::after,
#nav #toggle-menu .site-page::after {
  display: none !important;
}
#nav #search-button .site-page,
#nav #toggle-menu .site-page {
  padding-bottom: 0;
}
#nav .menus_items .menus_item > a.site-page:hover,
#nav .menus_items .menus_item > span.group:hover { cursor: pointer; }

/* ===== 低性能模式（perf-lite）：一键降掉最烧 GPU 的效果 =====
   触发：手动在「美化设置」里打开 / 链接加 ?perf=1 / 帧率过低时自动开启
   代价：毛玻璃变纯色、背景不再固定、星空与丝线动画停止；其余样式不变 */
html.perf-lite #universe,
html.perf-lite #canvas_nest { display: none !important; }

html.perf-lite #web_bg {
  background-attachment: scroll !important;
}

html.perf-lite *,
html.perf-lite *::before,
html.perf-lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.perf-lite #recent-posts > .recent-post-item,
html.perf-lite #recent-posts > .recent-post-items > .recent-post-item,
html.perf-lite #aside-content .card-widget,
html.perf-lite .hg-side-fill > .card-widget,
html.perf-lite div#post,
html.perf-lite div#page,
html.perf-lite div#archive {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* 注意：data-theme 挂在 <html> 自身，必须写成 html.perf-lite[data-theme=...]，
   写成 [data-theme=...] html.perf-lite 是「html 的后代」，永远匹配不到 */
html.perf-lite[data-theme="dark"] #recent-posts > .recent-post-item,
html.perf-lite[data-theme="dark"] #recent-posts > .recent-post-items > .recent-post-item,
html.perf-lite[data-theme="dark"] #aside-content .card-widget,
html.perf-lite[data-theme="dark"] .hg-side-fill > .card-widget,
html.perf-lite[data-theme="dark"] div#post,
html.perf-lite[data-theme="dark"] div#page,
html.perf-lite[data-theme="dark"] div#archive {
  background: rgba(24, 26, 33, 0.96) !important;
}
html.perf-lite[data-theme="dark"] .card-widget,
html.perf-lite[data-theme="dark"] #footer,
html.perf-lite[data-theme="dark"] #rightside > div > button,
html.perf-lite[data-theme="dark"] #rightside > div > a {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 卡片内的大面积阴影/发光在低配机上也吃填充率 */
html.perf-lite #recent-posts > .recent-post-item:hover { transform: none; }

/* perf-lite：关掉背景渐变循环动画（20s ease-in-out infinite，同样吃 GPU） */
html.perf-lite #web_bg.bg-animation { animation: none !important; }
html.perf-lite #web_bg { will-change: auto !important; }

/* 首页/文章头图遮罩：主题靠 #page-header:not(.not-top-img):before + var(--mark-bg)，
   这里补 z-index，保证遮罩压在背景图之上、标题文字之下 */
#page-header:not(.not-top-img)::before {
  z-index: 1;
}
#page-header #site-info,
#page-header #post-info,
#page-header #page-site-info {
  position: relative;
  z-index: 2;
}
#page-header.not-top-img::before { display: none; }

/* 2026-11-21 主题色联动：把主题里写死 #49b1f5 的关键位置改成吃 --theme-color（面板换色即时生效） */
a:hover,
#recent-posts .recent-post-item > .recent-post-info > .article-title:hover,
#recent-posts .recent-post-item > .recent-post-info > .article-meta-wrap a:hover,
#aside-content .card-tag-cloud a:hover,
#aside-content .aside-list > .aside-list-item .content > .title:hover,
#aside-content .aside-list > .aside-list-item .content > .comment:hover,
#aside-content #card-toc .toc-content .toc-link:hover,
#post-info #post-meta a:hover,
#footer a:hover,
.article-sort-item-title:hover,
.category-lists .category-list a:hover,
.site-data > a:hover div { color: var(--theme-color) !important; }

#pagination .page-number.current {
  background: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
  color: var(--on-theme, #fff) !important;
}

/* 2026-11-22 分页省略号：主题只给页码和上下页加卡片底，.space 被排除在外是透明的；
   这里补同款白底，并让页码 / 上下页 / 省略号一起跟随「卡片不透明度」 */
#pagination .pagination .page-number,
#pagination .pagination .extend,
#pagination .pagination .space {
  background: var(--trans-light);
}

[data-theme="dark"] #pagination .pagination .page-number,
[data-theme="dark"] #pagination .pagination .extend,
[data-theme="dark"] #pagination .pagination .space {
  background: var(--trans-dark);
}

#pagination .pagination .page-number:hover,
#pagination .pagination .extend:hover {
  background: var(--btn-hover-color);
}

.search-dialog .search-nav { color: var(--theme-color) !important; }
.search-dialog .local-search-input input { border-color: var(--theme-color) !important; }

#post .tag_share .post-meta__tags:hover,
#article-container .shuoshuo-footer .shuoshuo-tag:hover { background: var(--theme-color) !important; border-color: var(--theme-color) !important; color: var(--on-theme, #fff) !important; }

.container .tabs > .nav-tabs > .tab.active { border-bottom-color: var(--theme-color) !important; }

/* 2026-11-22 主题色联动补全：正文链接 / 引用 / 标题锚点 / 列表标记 / 顶栏悬停 / 标签 / 版权 / 时间轴等 */
.container a { color: var(--theme-color); }

#article-container blockquote { border-left-color: var(--theme-color); }
:root { --blockquote-bg: color-mix(in srgb, var(--theme-color) 10%, transparent); }
[data-theme="dark"] { --blockquote-bg: color-mix(in srgb, var(--theme-color) 14%, #1a1a1a); }

.container.post-content h1:hover:before,
.container.post-content h2:hover:before,
.container.post-content h3:hover:before,
.container.post-content h4:hover:before,
.container.post-content h5:hover:before,
.container.post-content h6:hover:before,
.container.post-content li::marker { color: var(--theme-color); }

#page-header.nav-fixed #nav #blog-info:hover,
#page-header.nav-fixed #nav a:hover,
#page-header.nav-fixed #nav span.site-page:hover,
#page-header.nav-fixed #nav #toggle-menu:hover { color: var(--theme-color) !important; }

#post .tag_share .post-meta__tags { color: var(--theme-color); border-color: var(--theme-color); }
#post .post-copyright:before,
#post .post-copyright .post-copyright-meta { color: var(--theme-color); }

:root { --timeline-color: var(--theme-color); }

.search-dialog .search-nav .search-close-button:hover,
.search-dialog .search-result-list .local-search-hit-item a:hover { color: var(--theme-color); }

.container .highlight-tools i:hover { color: var(--theme-color); }
.container .tabs > .tab-to-top button:hover { color: var(--theme-color); }

.hide-inline > .hide-button,
.hide-block > .hide-button { background: var(--theme-color); color: var(--on-theme, #fff); }

/* 2026-11-22 遮罩透明度（一图流别压太黑，但仍保证标题可读） */
:root { --mark-bg: rgba(0, 0, 0, 0.18); }
[data-theme="dark"] { --mark-bg: rgba(0, 0, 0, 0.15); }

/* 右侧部件图标颜色（美化设置可配，默认白色） */
#rightside > div > button,
#rightside > div > a {
  color: var(--hg-rightside-color, #ffffff) !important;
}

/* 2026-11-22 主题色收口：hr / 时间轴圆点等此前写死橙蓝的点缀 */
:root { --pseudo-hover: var(--btn-hover-color, #ff7242); }

:root {
  --hr-border: color-mix(in srgb, var(--theme-color, #49b1f5) 32%, transparent);
  --hr-before-color: color-mix(in srgb, var(--theme-color, #49b1f5) 55%, transparent);
}
[data-theme="dark"] {
  --hr-border: color-mix(in srgb, var(--theme-color, #49b1f5) 42%, transparent);
  --hr-before-color: color-mix(in srgb, var(--theme-color, #49b1f5) 68%, transparent);
}

/* ===== 2026-11-21 顶部 10px 缝隙：APlayer 的 0 高度标记元素自带上下 margin =====
   APlayer 在 body 里注入 <div class="aplayer aplayer-tag-marker">（height:0），
   但自带 margin-top/bottom 各 5px，把后面的 #body-wrap 整体顶下去 10px，
   于是 #page-header 从 y=10 开始，遮罩 ::before 覆盖不到顶部 10px，看起来就是「没置顶」。 */
body > .aplayer,
body > .aplayer-tag-marker,
body > #an_music_bg {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
}

/* ===== 2026-11-21 夜间霓虹灯字（fomal 同款）：只在暗色模式跑，浅色与性能模式、降动效偏好下全部关闭 ===== */
[data-theme="light"] #site-name,
[data-theme="light"] #site-title,
[data-theme="light"] #site-subtitle,
[data-theme="light"] #post-info {
  animation: none;
}

[data-theme="dark"] #site-name,
[data-theme="dark"] #site-title {
  animation: light_15px 10s linear infinite;
}

[data-theme="dark"] #site-subtitle {
  animation: light_10px 10s linear infinite;
}

[data-theme="dark"] #post-info {
  animation: light_5px 10s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="dark"] #site-name,
  [data-theme="dark"] #site-title,
  [data-theme="dark"] #site-subtitle,
  [data-theme="dark"] #post-info {
    animation: none !important;
  }
}

/* 关键帧：原版把 #f1ee47 与 #b347f1 都写在 50%，后者会盖掉前者，
   这里把黄色挪到 43.75%，九种颜色能完整走一圈 */
@keyframes light_15px {
  0% { text-shadow: #5636ed 0 0 15px; }
  12.5% { text-shadow: #11ee5e 0 0 15px; }
  25% { text-shadow: #f14747 0 0 15px; }
  37.5% { text-shadow: #f1a247 0 0 15px; }
  43.75% { text-shadow: #f1ee47 0 0 15px; }
  50% { text-shadow: #b347f1 0 0 15px; }
  62.5% { text-shadow: #002afa 0 0 15px; }
  75% { text-shadow: #ed709b 0 0 15px; }
  87.5% { text-shadow: #39c5bb 0 0 15px; }
  100% { text-shadow: #5636ed 0 0 15px; }
}

@keyframes light_10px {
  0% { text-shadow: #5636ed 0 0 10px; }
  12.5% { text-shadow: #11ee5e 0 0 10px; }
  25% { text-shadow: #f14747 0 0 10px; }
  37.5% { text-shadow: #f1a247 0 0 10px; }
  43.75% { text-shadow: #f1ee47 0 0 10px; }
  50% { text-shadow: #b347f1 0 0 10px; }
  62.5% { text-shadow: #002afa 0 0 10px; }
  75% { text-shadow: #ed709b 0 0 10px; }
  87.5% { text-shadow: #39c5bb 0 0 10px; }
  100% { text-shadow: #5636ed 0 0 10px; }
}

@keyframes light_5px {
  0% { text-shadow: #5636ed 0 0 5px; }
  12.5% { text-shadow: #11ee5e 0 0 5px; }
  25% { text-shadow: #f14747 0 0 5px; }
  37.5% { text-shadow: #f1a247 0 0 5px; }
  43.75% { text-shadow: #f1ee47 0 0 5px; }
  50% { text-shadow: #b347f1 0 0 5px; }
  62.5% { text-shadow: #002afa 0 0 5px; }
  75% { text-shadow: #ed709b 0 0 5px; }
  87.5% { text-shadow: #39c5bb 0 0 5px; }
  100% { text-shadow: #5636ed 0 0 5px; }
}

/* ===== 公告内容：服务器迁移信息 ===== */
.hg-announce {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 0;
}

.hg-announce__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: var(--font-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.hg-announce__title i {
  color: var(--theme-color);
  font-size: 13px;
}

.hg-announce__items {
  display: grid;
  gap: 8px;
}

.hg-announce__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--theme-color) 16%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-color) 7%, var(--card-bg));
  color: var(--font-color) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hg-announce__item--domain {
  border-color: color-mix(in srgb, var(--theme-color) 32%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-color) 15%, var(--card-bg)), var(--card-bg));
}

.hg-announce__item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--theme-color) 45%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color) 14%, transparent);
}

.hg-announce__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--theme-color) 15%, transparent);
  color: var(--theme-color);
  font-size: 12px;
}

.hg-announce__item--domain .hg-announce__icon {
  background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 58%, #fff));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--theme-color) 28%, transparent);
  color: var(--on-theme, #fff);
}

.hg-announce__item--travel .hg-announce__icon {
  background: linear-gradient(135deg, #5ea6e5, #a591e0);
  box-shadow: 0 4px 10px rgba(94, 166, 229, 0.28);
  color: #fff;
}

.hg-announce__item--github .hg-announce__icon {
  background: linear-gradient(135deg, #3b4149, #6e7781);
  box-shadow: 0 4px 10px rgba(59, 65, 73, 0.25);
  color: #fff;
}

.hg-announce__item--vercel .hg-announce__icon {
  background: linear-gradient(135deg, #111827, #4b5563);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.25);
  color: #fff;
}

.hg-announce__item--travellings .hg-announce__icon {
  background: linear-gradient(135deg, #34bfa3, #3d8bfd);
  box-shadow: 0 4px 10px rgba(52, 191, 163, 0.25);
  color: #fff;
}

.hg-announce__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

.hg-announce__label {
  color: var(--sec-text-color, #858585);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hg-announce__value {
  overflow: hidden;
  color: var(--font-color);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-announce__item--domain .hg-announce__value {
  color: var(--theme-color);
}

.hg-announce__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--sec-text-color, #858585);
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hg-announce__item:hover .hg-announce__arrow {
  color: var(--theme-color);
  opacity: 1;
  transform: translateX(2px);
}
/* ============================================================
   复刻 fomal 的三个页面：网址导航 / 音乐馆顶部 / 友人帐
   作用域都限定在各自页面的容器里，不影响其它页面
   ============================================================ */

/* ============ 一、网址导航 ============ */
#article-container .hg-nav {
  --nv-accent: var(--theme-color, #49b1f5);
  --nv-card: var(--card-bg, #fff);
  --nv-text: var(--font-color, #1f2937);
  --nv-muted: rgba(60, 60, 67, .58);
  --nv-muted: color-mix(in srgb, var(--font-color, #1f2937) 64%, transparent);
  --nv-line: rgba(128, 128, 128, .16);
  --nv-line: color-mix(in srgb, var(--nv-accent) 14%, transparent);
  --nv-04: color-mix(in srgb, var(--nv-accent) 5%, transparent);
  --nv-10: color-mix(in srgb, var(--nv-accent) 11%, transparent);
  --nv-45: color-mix(in srgb, var(--nv-accent) 45%, transparent);
  counter-reset: nvall nvcat;
}

[data-theme=dark] #article-container .hg-nav {
  --nv-card: #343434e8;
  --nv-text: rgba(255, 255, 255, .86);
  --nv-muted: rgba(255, 255, 255, .56);
  --nv-line: rgba(255, 255, 255, .13);
  --nv-04: color-mix(in srgb, var(--nv-accent) 7%, transparent);
  --nv-10: color-mix(in srgb, var(--nv-accent) 15%, transparent);
}

#article-container .hg-nav .nav-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  padding: 15px 20px;
  border: 1px solid var(--nv-10);
  border-radius: 18px;
  background-color: var(--nv-card);
  background-image: linear-gradient(120deg, var(--nv-10), transparent 68%);
  box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .03);
}

#article-container .hg-nav .nav-hero-ico {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

#article-container .hg-nav .nav-hero-txt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.6;
  color: var(--nv-text);
}

#article-container .hg-nav .nav-hero-txt em {
  font-style: normal;
  font-weight: 400;
  color: var(--nv-muted);
}

#article-container .hg-nav h2 {
  position: relative;
  margin: 44px 0 14px !important;
  padding: 0 0 12px !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
  color: var(--nv-text) !important;
  border-bottom: 1px solid var(--nv-line);
  counter-increment: nvcat;
}

#article-container .hg-nav h2:first-of-type {
  margin-top: 14px !important;
}

#article-container .hg-nav h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: var(--nv-accent);
}

#article-container .hg-nav .nav-desc {
  display: block;
  margin: 0 0 16px !important;
  padding: 9px 14px !important;
  font-size: 12.5px !important;
  line-height: 1.7;
  color: var(--nv-muted) !important;
  background: var(--nv-04);
  border-left: 3px solid var(--nv-45);
  border-radius: 0 12px 12px 0;
}

#article-container .hg-nav .site-card-group {
  position: relative;
  counter-reset: nvcard;
  margin: 0 0 6px !important;
  padding: 34px 14px 8px !important;
  border: 1px solid var(--nv-10);
  border-radius: 20px;
  background: var(--nv-04);
}

#article-container .hg-nav .site-card-group::after {
  content: counter(nvcard) " 个站点";
  position: absolute;
  top: 11px;
  right: 15px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--nv-accent);
  background: var(--nv-10);
  border-radius: 20px;
}

#article-container .hg-nav .site-card {
  width: calc(100% / 3 - 16px) !important;
  margin: 8px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--nv-line) !important;
  border-radius: 16px !important;
  background: var(--nv-card) !important;
  box-shadow: 0 2px 10px -7px rgba(7, 17, 27, .35);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  counter-increment: nvall nvcard;
}

#article-container .hg-nav a.site-card:hover {
  color: inherit !important;
  background: var(--nv-card) !important;
  border-color: var(--nv-45) !important;
  box-shadow: 0 14px 26px -18px var(--nv-45), 0 3px 10px -8px rgba(7, 17, 27, .3) !important;
  transform: translateY(-4px);
}

#article-container .hg-nav .site-card .img {
  display: none !important;
}

#article-container .hg-nav .site-card .info {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  margin-top: 0 !important;
}

#article-container .hg-nav .site-card .info > a,
#article-container .hg-nav .site-card .info > img {
  display: block;
  grid-row: 1 / span 2;
  align-self: center;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

#article-container .hg-nav .site-card .info img {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 50% !important;
  object-fit: cover;
  background: var(--nv-04);
  box-shadow: 0 0 0 2px var(--nv-10);
}

#article-container .hg-nav .site-card .info .title {
  grid-column: 2;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--nv-text) !important;
}

#article-container .hg-nav .site-card .info .desc {
  grid-column: 2;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px !important;
  line-height: 1.5;
  color: var(--nv-muted) !important;
}

#article-container .hg-nav .site-card:hover .info .title {
  color: var(--nv-accent) !important;
}

#article-container .hg-nav .nav-foot {
  margin: 26px 0 4px !important;
  text-align: center;
  font-size: 12px !important;
  letter-spacing: 1px;
  color: var(--nv-muted) !important;
}

#article-container .hg-nav .nav-foot::before {
  content: "— 共 " counter(nvall) " 个站点 · " counter(nvcat) " 个分类 —";
}

@media screen and (min-width: 2048px) {
  #article-container .hg-nav .site-card { width: calc(100% / 4 - 16px) !important; }
}

@media screen and (max-width: 1200px) {
  #article-container .hg-nav .site-card { width: calc(100% / 2 - 16px) !important; }
}

@media screen and (max-width: 768px) {
  #article-container .hg-nav .nav-hero { padding: 13px 16px; border-radius: 15px; }
  #article-container .hg-nav .nav-hero-txt { font-size: 13px; }
  #article-container .hg-nav h2 { margin-top: 34px !important; padding-left: 1.6rem !important; font-size: 1.1rem !important; }
  #article-container .hg-nav h2::after { left: 1.6rem; }
  #article-container .hg-nav .nav-desc { padding: 8px 12px !important; font-size: 12px !important; }
  #article-container .hg-nav .site-card-group { padding: 30px 8px 4px !important; border-radius: 16px; }
  #article-container .hg-nav .site-card .info img { width: 40px !important; height: 40px !important; }
}

@media screen and (max-width: 560px) {
  #article-container .hg-nav .site-card { width: calc(100% - 16px) !important; }
}

/* ============ 二、音乐馆顶部（播放器 + 歌单来源 + 热评） ============ */
#article-container .hg-music {
  --mu-accent: var(--theme-color, #49b1f5);
  --mu-card: var(--card-bg, #fff);
  --mu-text: var(--font-color, #1f2937);
  --mu-muted: rgba(60, 60, 67, .58);
  --mu-muted: color-mix(in srgb, var(--font-color, #1f2937) 64%, transparent);
  --mu-line: color-mix(in srgb, var(--mu-accent) 14%, transparent);
  --mu-04: color-mix(in srgb, var(--mu-accent) 5%, transparent);
  --mu-10: color-mix(in srgb, var(--mu-accent) 11%, transparent);
  --mu-45: color-mix(in srgb, var(--mu-accent) 45%, transparent);
}

[data-theme=dark] #article-container .hg-music {
  --mu-card: #343434e8;
  --mu-text: rgba(255, 255, 255, .86);
  --mu-muted: rgba(255, 255, 255, .56);
  --mu-line: rgba(255, 255, 255, .13);
  --mu-04: color-mix(in srgb, var(--mu-accent) 7%, transparent);
  --mu-10: color-mix(in srgb, var(--mu-accent) 15%, transparent);
}

#article-container .hg-music .hg-music-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 15px 20px;
  border: 1px solid var(--mu-10);
  border-radius: 18px;
  background-color: var(--mu-card);
  background-image: linear-gradient(120deg, var(--mu-10), transparent 68%);
  box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .03);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.6;
  color: var(--mu-text);
}

#article-container .hg-music .hg-music-hero em {
  font-style: normal;
  font-weight: 400;
  color: var(--mu-muted);
}

#article-container .hg-music .hg-page-player {
  margin: 0 0 16px;
}

#article-container .hg-music .hg-page-player.aplayer {
  margin: 0;
  border: 1px solid var(--mu-line);
  border-radius: 18px;
  background: var(--mu-card);
  box-shadow: 0 10px 26px -18px rgba(7, 17, 27, .35);
  color: var(--mu-text);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-info {
  border-bottom: 1px solid var(--mu-line);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list {
  border-top: 0;
  border-color: var(--mu-line);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol::-webkit-scrollbar-thumb {
  background-color: var(--mu-45);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li {
  border-top: 1px solid var(--mu-line);
  color: var(--mu-text);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li:hover {
  background: var(--mu-04);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li.aplayer-list-light {
  background: var(--mu-10);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li .aplayer-list-title {
  color: var(--mu-text);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li .aplayer-list-author {
  color: var(--mu-muted);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-list ol li .aplayer-list-index {
  color: var(--mu-muted);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-info .aplayer-music .aplayer-title {
  color: var(--mu-text);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-info .aplayer-music .aplayer-author {
  color: var(--mu-muted);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-info .aplayer-controller .aplayer-time {
  color: var(--mu-muted);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
  background: var(--mu-10);
}

#article-container .hg-music .hg-page-player.aplayer .aplayer-lrc {
  display: none;
}

#article-container .hg-music .hg-music-source {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--mu-10);
  border-left: 3px solid var(--mu-45);
  border-radius: 0 14px 14px 0;
  background: var(--mu-04);
  font-size: 13px;
  line-height: 1.75;
  color: var(--mu-muted);
}

#article-container .hg-music .hg-music-source__ico {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.4;
}

#article-container .hg-music .hg-music-source strong {
  color: var(--mu-text);
}

#article-container .hg-music .hg-music-source a {
  color: var(--mu-accent);
  border-bottom: 1px dashed var(--mu-45);
}

#article-container .hg-music .hg-music-source p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

#article-container .hg-music .hg-music-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mu-text);
}

#article-container .hg-music .hg-music-hot {
  position: relative;
  margin: 22px 0 14px !important;
  padding: 0 0 10px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--mu-text) !important;
  border-bottom: 1px solid var(--mu-line);
}

#article-container .hg-music .hg-music-hot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--mu-accent);
}

#article-container .hg-music .hg-music-quotes blockquote {
  position: relative;
  margin: 0 0 12px !important;
  padding: 13px 16px 13px 44px !important;
  border: 1px solid var(--mu-line) !important;
  border-radius: 14px !important;
  background: var(--mu-04) !important;
  font-size: 13.5px !important;
  line-height: 1.8;
  color: var(--mu-text) !important;
}

#article-container .hg-music .hg-music-quotes blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 15px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--mu-accent);
  opacity: .8;
}

#article-container .hg-music .hg-music-quotes blockquote p {
  margin: 0 !important;
  font-size: inherit;
  color: inherit;
}

#article-container .hg-music .hg-music-quotes .hg-quote-src {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--mu-muted);
}

#article-container .hg-music .hg-music-tip {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px dashed var(--mu-line);
  border-radius: 14px;
  background: var(--mu-04);
  font-size: 13px;
  color: var(--mu-muted);
}

#article-container .hg-music .hg-music-full {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 26px;
  padding: 13px 38px;
  border: 1px solid var(--mu-45);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mu-accent), color-mix(in srgb, var(--mu-accent) 72%, #7c5cff));
  box-shadow: 0 10px 24px -10px var(--mu-45), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--on-theme, #fff) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

#article-container .hg-music .hg-music-full:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px -10px var(--mu-45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

@media screen and (max-width: 768px) {
  #article-container .hg-music .hg-music-hero { padding: 13px 16px; border-radius: 15px; font-size: 13px; }
  #article-container .hg-music .hg-page-player.aplayer { border-radius: 15px; }
  #article-container .hg-music .hg-music-intro { font-size: 13px; }
  #article-container .hg-music .hg-music-quotes blockquote { padding: 12px 12px 12px 40px !important; font-size: 13px !important; }
  #article-container .hg-music .hg-music-full { padding: 12px 26px; font-size: 14px; }
}

/* ============ 三、友人帐 ============ */
#article-container .flink {
  --fkl-accent: var(--theme-color, #49b1f5);
  --fkl-card: var(--card-bg, #fff);
  --fkl-text: var(--font-color, #1f2937);
  --fkl-muted: rgba(60, 60, 67, .58);
  --fkl-muted: color-mix(in srgb, var(--font-color, #1f2937) 62%, transparent);
  --fkl-line: rgba(128, 128, 128, .16);
  --fkl-line: color-mix(in srgb, var(--fkl-accent) 13%, transparent);
  --fkl-04: color-mix(in srgb, var(--fkl-accent) 5%, transparent);
  --fkl-10: color-mix(in srgb, var(--fkl-accent) 11%, transparent);
  --fkl-45: color-mix(in srgb, var(--fkl-accent) 45%, transparent);
  counter-reset: fklall fklcat;
}

[data-theme=dark] #article-container .flink {
  --fkl-card: #343434e8;
  --fkl-text: rgba(255, 255, 255, .86);
  --fkl-muted: rgba(255, 255, 255, .56);
  --fkl-line: rgba(255, 255, 255, .13);
  --fkl-04: color-mix(in srgb, var(--fkl-accent) 7%, transparent);
  --fkl-10: color-mix(in srgb, var(--fkl-accent) 15%, transparent);
}

#article-container .flink::before {
  content: "✿ 友人帐 · 这里是我在互联网上认识的朋友们";
  display: block;
  margin: 0 0 8px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--fkl-text);
  background-color: var(--fkl-card);
  background-image: linear-gradient(120deg, var(--fkl-10), transparent 68%);
  border: 1px solid var(--fkl-10);
  border-radius: 18px;
  box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .03);
}

#article-container .flink h2 {
  position: relative;
  margin: 44px 0 14px !important;
  padding: 0 0 12px !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: .3px;
  color: var(--fkl-text) !important;
  border-bottom: 1px solid var(--fkl-line);
  counter-increment: fklcat;
}

#article-container .flink h2:first-of-type {
  margin-top: 10px !important;
}

#article-container .flink h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: var(--fkl-accent);
}

#article-container .flink .flink-desc {
  display: block;
  margin: 0 0 16px !important;
  padding: 9px 14px !important;
  font-size: 12.5px !important;
  line-height: 1.7;
  color: var(--fkl-muted) !important;
  background: var(--fkl-04);
  border-left: 3px solid var(--fkl-45);
  border-radius: 0 12px 12px 0;
}

#article-container .flink .site-card-group {
  position: relative;
  counter-reset: fklcard;
  margin: 0 0 6px !important;
  padding: 32px 14px 6px !important;
  border: 1px solid var(--fkl-10);
  border-radius: 20px;
  background: var(--fkl-04);
}

#article-container .flink .site-card-group::after {
  content: counter(fklcard) " 位";
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--fkl-accent);
  background: var(--fkl-10);
  border-radius: 20px;
}

#article-container .flink .site-card {
  display: block;
  width: calc(100% / 4 - 16px) !important;
  margin: 8px !important;
  padding: 8px !important;
  border: 1px solid var(--fkl-line) !important;
  border-radius: 16px !important;
  background: var(--fkl-card) !important;
  box-shadow: 0 2px 10px -7px rgba(7, 17, 27, .35);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  counter-increment: fklall fklcard;
}

#article-container .flink a.site-card:hover {
  color: inherit !important;
  background: var(--fkl-card) !important;
  border-color: var(--fkl-45) !important;
  box-shadow: 0 14px 26px -18px var(--fkl-45), 0 3px 10px -8px rgba(7, 17, 27, .3) !important;
  transform: translateY(-4px);
}

#article-container .flink .site-card .img {
  height: auto !important;
  aspect-ratio: 16 / 10;
  border-radius: 11px !important;
  box-shadow: none !important;
  background: var(--fkl-04);
}

#article-container .flink .site-card:hover .img {
  box-shadow: none !important;
}

#article-container .flink .site-card .img img {
  transition: transform .6s ease;
}

#article-container .flink .site-card:hover .img img {
  transform: scale(1.05);
}

#article-container .flink .site-card .info {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  margin-top: 10px !important;
}

#article-container .flink .site-card .info img {
  grid-row: 1 / span 2;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 50% !important;
  object-fit: cover;
  background: var(--fkl-04);
  box-shadow: 0 0 0 2px var(--fkl-10);
}

#article-container .flink .site-card .info .title {
  grid-column: 2;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--fkl-text) !important;
  -webkit-line-clamp: 1;
}

#article-container .flink .site-card .info .desc {
  grid-column: 2;
  margin-top: 3px;
  font-size: 12px !important;
  line-height: 1.5;
  color: var(--fkl-muted) !important;
  -webkit-line-clamp: 2;
}

#article-container .flink .site-card:hover .info .title {
  color: var(--fkl-accent) !important;
}

#article-container .flink .site-card:hover .info .desc {
  color: var(--fkl-muted) !important;
}

#article-container .flink .site-card.mini-link {
  --mini-bg: #e0eafb;
  height: auto !important;
  min-height: 76px;
  padding: 11px 12px !important;
  background: var(--mini-bg) !important;
  border-color: rgba(255, 255, 255, .7) !important;
}

#article-container .flink .site-card.mini-link:nth-child(8n + 2) { --mini-bg: #e5eabf; }
#article-container .flink .site-card.mini-link:nth-child(8n + 3) { --mini-bg: #feead5; }
#article-container .flink .site-card.mini-link:nth-child(8n + 4) { --mini-bg: #daf9ea; }
#article-container .flink .site-card.mini-link:nth-child(8n + 5) { --mini-bg: #efe2fd; }
#article-container .flink .site-card.mini-link:nth-child(8n + 6) { --mini-bg: #e0fbfb; }
#article-container .flink .site-card.mini-link:nth-child(8n + 7) { --mini-bg: #ebebeb; }
#article-container .flink .site-card.mini-link:nth-child(8n + 8) { --mini-bg: #f2e3cb; }

[data-theme=dark] #article-container .flink .site-card.mini-link {
  --mini-bg: var(--fkl-card);
  border-color: var(--fkl-line) !important;
}

#article-container .flink a.site-card.mini-link:hover {
  border-radius: 12px !important;
  padding: 11px 12px !important;
  background: var(--mini-bg) !important;
  scale: 1;
}

#article-container .flink .site-card.mini-link .info {
  margin-top: 0 !important;
}

#article-container .flink .site-card.mini-link .info img {
  width: 38px !important;
  height: 38px !important;
}

#article-container .flink::after {
  content: "— 共 " counter(fklall) " 位朋友 · " counter(fklcat) " 个分类 —";
  display: block;
  margin: 26px 0 4px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--fkl-muted);
}

@media screen and (max-width: 1200px) {
  #article-container .flink .site-card { width: calc(100% / 3 - 16px) !important; }
}

@media screen and (max-width: 768px) {
  #article-container .flink .site-card { width: calc(100% / 2 - 16px) !important; }
  #article-container .flink::before { padding: 13px 16px; font-size: 13px; border-radius: 15px; }
  #article-container .flink h2 { margin-top: 34px !important; padding-left: 1.6rem !important; font-size: 1.1rem !important; }
  #article-container .flink h2::after { left: 1.6rem; }
  #article-container .flink .flink-desc { padding: 8px 12px !important; font-size: 12px !important; }
  #article-container .flink .site-card-group { padding: 28px 8px 2px !important; border-radius: 16px; }
  #article-container .flink .site-card .info img { width: 36px !important; height: 36px !important; }
}

/* ---- 加入友链方式（/link/ 页尾） ---- */
#article-container .flink h2.hg-link-title {
  margin-top: 46px !important;
  counter-increment: none !important;
}

#article-container .hg-link-sub {
  margin: 0 0 14px !important;
  font-size: 14px;
  color: var(--font-color);
}

#article-container .hg-link-tip {
  margin: 16px 0 !important;
  font-size: 13px;
  line-height: 1.85;
  color: color-mix(in srgb, var(--font-color) 66%, transparent);
}

#article-container .hg-link-apply {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 6px;
}

#article-container .hg-link-apply button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 12px 26px;
  border: 1px solid color-mix(in srgb, var(--font-color) 14%, transparent);
  border-radius: 40px;
  background: var(--card-bg);
  color: var(--font-color);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

#article-container .hg-link-apply button i {
  font-size: 15px;
}

#article-container .hg-link-apply button:hover {
  border-color: transparent;
  background: var(--theme-color, #49b1f5);
  color: var(--on-theme, #fff);
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  #article-container .hg-link-apply { gap: 10px; }
  #article-container .hg-link-apply button { flex: 1 1 46%; justify-content: center; padding: 12px 10px; font-size: 13px; }
}

/* ---- 本站友链添加方式（仿 fomal 三栏：butterfly-candy / Volantis / General） ---- */
#body-wrap.type-link #article-container .tabs {
  margin: 6px 0 26px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 18%, transparent);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  box-shadow: 0 12px 30px -26px rgba(7, 17, 27, .5);
}

#body-wrap.type-link #article-container .tabs > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 12%, transparent);
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 7%, var(--card-bg));
}

#body-wrap.type-link #article-container .tabs > .nav-tabs > .tab {
  flex: 0 1 auto;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: color-mix(in srgb, var(--font-color) 66%, transparent);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#body-wrap.type-link #article-container .tabs > .nav-tabs > .tab:not(.active):hover {
  border: 0;
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 10%, transparent);
  color: var(--theme-color, #49b1f5);
}

#body-wrap.type-link #article-container .tabs > .nav-tabs > .tab.active {
  border: 0;
  background: var(--card-bg);
  color: var(--theme-color, #49b1f5);
  box-shadow: 0 2px 10px -5px color-mix(in srgb, var(--theme-color, #49b1f5) 55%, transparent);
}

#body-wrap.type-link #article-container .tabs > .tab-contents .tab-item-content {
  padding: 18px 16px 14px;
}

#body-wrap.type-link #article-container .tabs > .tab-to-top {
  display: none;
}

#body-wrap.type-link #article-container .tabs .tab-item-content > .highlight,
#body-wrap.type-link #article-container .tabs .tab-item-content > .code-block {
  margin: 0;
}

@media screen and (max-width: 768px) {
  #body-wrap.type-link #article-container .tabs { border-radius: 13px; }
  #body-wrap.type-link #article-container .tabs > .nav-tabs { gap: 2px; padding: 5px; }
  #body-wrap.type-link #article-container .tabs > .nav-tabs > .tab { padding: 6px 10px; font-size: 12.5px; }
  #body-wrap.type-link #article-container .tabs > .tab-contents .tab-item-content { padding: 14px 10px 10px; }
}

/* ---- 关于页：顶部名片 + 社交卡片 ---- */
#body-wrap.type-about #article-container .hg-about-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4px 0 18px;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 16%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(120% 160% at 0% 0%,
      color-mix(in srgb, var(--theme-color, #49b1f5) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--card-bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  box-shadow: 0 14px 34px -28px rgba(7, 17, 27, .55);
}

#body-wrap.type-about #article-container .hg-about-avatar {
  flex: none;
  width: 94px;
  height: 94px;
  margin: 0;
  border: 3px solid var(--card-bg);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--theme-color, #49b1f5) 55%, transparent),
    0 10px 24px -12px color-mix(in srgb, var(--theme-color, #49b1f5) 60%, #000);
}

#body-wrap.type-about #article-container .hg-about-hero-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

#body-wrap.type-about #article-container .hg-about-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--font-color);
}

#body-wrap.type-about #article-container .hg-about-badge {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--theme-color, #49b1f5);
  color: var(--on-theme, #fff);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .02em;
}

#body-wrap.type-about #article-container .hg-about-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--font-color) 66%, transparent);
}

#body-wrap.type-about #article-container .hg-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

#body-wrap.type-about #article-container .hg-about-tags > span {
  padding: 2px 10px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 7%, transparent);
  color: color-mix(in srgb, var(--font-color) 72%, transparent);
  font-size: 12px;
  line-height: 1.7;
}

#body-wrap.type-about #article-container .hg-about-social {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

#body-wrap.type-about #article-container .hg-about-sns {
  --brand: var(--theme-color, #49b1f5);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--font-color) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  color: var(--font-color);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

#body-wrap.type-about #article-container .hg-about-sns i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 17px;
  transition: background-color .25s ease, color .25s ease;
}

#body-wrap.type-about #article-container .hg-about-sns-name {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

#body-wrap.type-about #article-container .hg-about-sns-id {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: color-mix(in srgb, var(--font-color) 52%, transparent);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#body-wrap.type-about #article-container .hg-about-sns:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, var(--card-bg));
  box-shadow: 0 12px 26px -22px color-mix(in srgb, var(--brand) 80%, #000);
  transform: translateY(-2px);
}

#body-wrap.type-about #article-container .hg-about-sns:hover i {
  background: var(--brand);
  color: #fff;
}

#body-wrap.type-about #article-container .hg-about-sns.is-bilibili { --brand: #00a1d6; }
#body-wrap.type-about #article-container .hg-about-sns.is-douyin { --brand: #fe2c55; }
#body-wrap.type-about #article-container .hg-about-sns.is-github { --brand: #6e7781; }
#body-wrap.type-about #article-container .hg-about-sns.is-gitee { --brand: #c71d23; }

/* ---- 关于页：本站访问检测 ---- */
#body-wrap.type-about #article-container .hg-about-check-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
}

#body-wrap.type-about #article-container .hg-about-check-title i {
  color: var(--theme-color, #49b1f5);
  font-size: .82em;
}

#body-wrap.type-about #article-container .hg-about-check {
  margin: 12px 0 8px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 16%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(140% 180% at 100% 0%,
      color-mix(in srgb, var(--theme-color, #49b1f5) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--card-bg) 84%, transparent);
  box-shadow: 0 12px 30px -28px rgba(7, 17, 27, .55);
}

#body-wrap.type-about #article-container .hg-check-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in srgb, var(--font-color) 10%, transparent);
}

#body-wrap.type-about #article-container .hg-check-dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #98a2b3;
}

#body-wrap.type-about #article-container .hg-check-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
}

#body-wrap.type-about #article-container .hg-check-dot.is-checking {
  color: var(--theme-color, #49b1f5);
  background: var(--theme-color, #49b1f5);
  animation: hg-check-pulse 1.4s ease-in-out infinite;
}

#body-wrap.type-about #article-container .hg-check-dot.is-checking::after {
  animation: hg-check-ring 1.4s ease-out infinite;
}

#body-wrap.type-about #article-container .hg-check-dot.is-ok {
  color: #22c55e;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

#body-wrap.type-about #article-container .hg-check-dot.is-slow {
  color: #f6a723;
  background: #f6a723;
  box-shadow: 0 0 0 4px rgba(246, 167, 35, .16);
}

#body-wrap.type-about #article-container .hg-check-dot.is-fail {
  color: #ef4444;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .16);
}

@keyframes hg-check-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes hg-check-ring {
  0% { opacity: .55; transform: scale(.75); }
  80%, 100% { opacity: 0; transform: scale(1.5); }
}

#body-wrap.type-about #article-container .hg-check-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--font-color);
}

#body-wrap.type-about #article-container .hg-check-ms {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--font-color) 6%, transparent);
  color: color-mix(in srgb, var(--font-color) 58%, transparent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#body-wrap.type-about #article-container .hg-check-ms b {
  color: var(--theme-color, #49b1f5);
  font-size: 14px;
  font-weight: 700;
}

#body-wrap.type-about #article-container .hg-check-ms i {
  font-style: normal;
}

#body-wrap.type-about #article-container .hg-check-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 32%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--theme-color, #49b1f5);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

#body-wrap.type-about #article-container .hg-check-retry:hover {
  background: var(--theme-color, #49b1f5);
  color: var(--on-theme, #fff);
}

#body-wrap.type-about #article-container .hg-check-retry:disabled {
  opacity: .45;
  cursor: default;
}

#body-wrap.type-about #article-container .hg-check-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#body-wrap.type-about #article-container .hg-check-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--font-color) 4%, transparent);
}

#body-wrap.type-about #article-container .hg-check-metrics b {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--theme-color, #49b1f5);
  font-variant-numeric: tabular-nums;
}

#body-wrap.type-about #article-container .hg-check-metrics span {
  font-size: 11px;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--font-color) 52%, transparent);
}

/* 线路 / 技术栈 / 本机参数：都收在同一张卡里，用细边框的小块分栏 */
#body-wrap.type-about #article-container .hg-check-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

#body-wrap.type-about #article-container .hg-check-block {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--font-color) 8%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--font-color) 3.5%, transparent);
}

#body-wrap.type-about #article-container .hg-check-local {
  margin-top: 12px;
}

#body-wrap.type-about #article-container .hg-check-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--font-color) 74%, transparent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

#body-wrap.type-about #article-container .hg-check-block-title i {
  color: var(--theme-color, #49b1f5);
  font-size: 12px;
}

#body-wrap.type-about #article-container .hg-route-info {
  grid-column: 1 / -1;
}

#body-wrap.type-about #article-container .hg-route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#body-wrap.type-about #article-container .hg-route-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--font-color) 10%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--font-color) 3%, transparent);
  color: inherit;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#body-wrap.type-about #article-container .hg-route-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--theme-color, #49b1f5) 42%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color, #49b1f5) 12%, transparent);
}

#body-wrap.type-about #article-container .hg-route-item.is-main {
  border-color: color-mix(in srgb, var(--theme-color, #49b1f5) 34%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--theme-color, #49b1f5) 10%, transparent),
    color-mix(in srgb, var(--font-color) 3%, transparent));
}

#body-wrap.type-about #article-container .hg-route-tag {
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--font-color) 7%, transparent);
  color: color-mix(in srgb, var(--font-color) 58%, transparent);
  font-size: 10.5px;
  line-height: 1.6;
}

#body-wrap.type-about #article-container .hg-route-item.is-main .hg-route-tag {
  background: var(--theme-color, #49b1f5);
  color: var(--on-theme, #fff);
}

#body-wrap.type-about #article-container .hg-route-host {
  overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--font-color) 86%, transparent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

#body-wrap.type-about #article-container .hg-route-item em {
  color: color-mix(in srgb, var(--font-color) 48%, transparent);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

#body-wrap.type-about #article-container .hg-route-note {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--font-color) 50%, transparent);
  font-size: 11.5px;
  line-height: 1.6;
}

#body-wrap.type-about #article-container .hg-line-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#body-wrap.type-about #article-container .hg-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

#body-wrap.type-about #article-container .hg-line-name {
  color: color-mix(in srgb, var(--font-color) 58%, transparent);
}

#body-wrap.type-about #article-container .hg-line-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

#body-wrap.type-about #article-container .hg-line-meta b {
  font-weight: 600;
  color: color-mix(in srgb, var(--font-color) 78%, transparent);
}

#body-wrap.type-about #article-container .hg-line-meta em {
  min-width: 46px;
  color: color-mix(in srgb, var(--font-color) 48%, transparent);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

#body-wrap.type-about #article-container .hg-line-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
}

#body-wrap.type-about #article-container .hg-line-dot.is-checking {
  background: var(--theme-color, #49b1f5);
  animation: hg-check-pulse 1.4s ease-in-out infinite;
}

#body-wrap.type-about #article-container .hg-line-dot.is-ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

#body-wrap.type-about #article-container .hg-line-dot.is-slow {
  background: #f6a723;
  box-shadow: 0 0 0 3px rgba(246, 167, 35, .14);
}

#body-wrap.type-about #article-container .hg-line-dot.is-fail {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}

#body-wrap.type-about #article-container .hg-line-net {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed color-mix(in srgb, var(--font-color) 9%, transparent);
  color: color-mix(in srgb, var(--font-color) 50%, transparent);
  font-size: 11px;
}

#body-wrap.type-about #article-container .hg-line-net b {
  color: color-mix(in srgb, var(--font-color) 72%, transparent);
  font-weight: 600;
}

#body-wrap.type-about #article-container .hg-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#body-wrap.type-about #article-container .hg-stack span {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--theme-color, #49b1f5) 18%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--theme-color, #49b1f5) 6%, transparent);
  color: color-mix(in srgb, var(--font-color) 68%, transparent);
  font-size: 11.5px;
  line-height: 1.6;
}

#body-wrap.type-about #article-container .hg-stack b {
  margin-left: 2px;
  color: var(--theme-color, #49b1f5);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#body-wrap.type-about #article-container .hg-local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

#body-wrap.type-about #article-container .hg-local-grid > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--font-color) 3%, transparent);
}

#body-wrap.type-about #article-container .hg-local-grid span {
  color: color-mix(in srgb, var(--font-color) 48%, transparent);
  font-size: 10.5px;
  letter-spacing: .03em;
}

#body-wrap.type-about #article-container .hg-local-grid b {
  overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--font-color) 80%, transparent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

#body-wrap.type-about #article-container .hg-check-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--font-color) 10%, transparent);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--font-color) 58%, transparent);
}

#body-wrap.type-about #article-container .hg-check-foot i {
  margin-right: 3px;
  color: #f68b1f;
}

#body-wrap.type-about #article-container .hg-check-foot a {
  border: 0;
  color: var(--theme-color, #49b1f5);
  font-weight: 600;
}

#body-wrap.type-about #article-container .hg-check-foot button {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--font-color) 14%, transparent);
  border-radius: 999px;
  background: var(--card-bg);
  color: color-mix(in srgb, var(--font-color) 66%, transparent);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

#body-wrap.type-about #article-container .hg-check-foot button:hover {
  border-color: var(--theme-color, #49b1f5);
  color: var(--theme-color, #49b1f5);
}

@media screen and (max-width: 768px) {
  #body-wrap.type-about #article-container .hg-about-hero {
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
    text-align: center;
  }

  #body-wrap.type-about #article-container .hg-about-avatar {
    width: 82px;
    height: 82px;
  }

  #body-wrap.type-about #article-container .hg-about-name,
  #body-wrap.type-about #article-container .hg-about-tags {
    justify-content: center;
  }

  #body-wrap.type-about #article-container .hg-about-social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #body-wrap.type-about #article-container .hg-about-sns {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    align-items: center;
  }

  #body-wrap.type-about #article-container .hg-about-sns i {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  #body-wrap.type-about #article-container .hg-about-sns-name {
    grid-column: 2;
    grid-row: 1;
  }

  #body-wrap.type-about #article-container .hg-about-sns-id {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
  }

  #body-wrap.type-about #article-container .hg-check-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #body-wrap.type-about #article-container .hg-check-blocks {
    grid-template-columns: 1fr;
  }

  #body-wrap.type-about #article-container .hg-route-list {
    grid-template-columns: 1fr;
  }

  #body-wrap.type-about #article-container .hg-local-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #body-wrap.type-about #article-container .hg-check-ms {
    margin-left: 0;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  #body-wrap.type-about #article-container .hg-check-dot.is-checking,
  #body-wrap.type-about #article-container .hg-check-dot.is-checking::after {
    animation: none;
  }
}

/* ============ 四、朋友圈 ============ */
#article-container .hg-fc {
  --fc-accent: var(--theme-color, #49b1f5);
  --fc-card: var(--card-bg, #fff);
  --fc-text: var(--font-color, #1f2937);
  --fc-muted: rgba(60, 60, 67, .58);
  --fc-muted: color-mix(in srgb, var(--font-color, #1f2937) 62%, transparent);
  --fc-line: color-mix(in srgb, var(--fc-accent) 14%, transparent);
  --fc-06: color-mix(in srgb, var(--fc-accent) 6%, transparent);
  --fc-12: color-mix(in srgb, var(--fc-accent) 12%, transparent);
  --fc-42: color-mix(in srgb, var(--fc-accent) 42%, transparent);
}

[data-theme=dark] #article-container .hg-fc {
  --fc-card: #343434e8;
  --fc-text: rgba(255, 255, 255, .86);
  --fc-muted: rgba(255, 255, 255, .56);
  --fc-line: rgba(255, 255, 255, .13);
}

/* ---- 顶部统计卡 ---- */
#article-container .hg-fc .hg-fc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid var(--fc-line);
  background: linear-gradient(120deg, var(--fc-06), transparent 62%), var(--fc-card);
  box-shadow: 0 8px 16px -4px rgba(44, 45, 48, .06);
}

#article-container .hg-fc .hg-fc-main {
  display: flex;
  align-items: center;
  gap: 13px;
}

#article-container .hg-fc .hg-fc-badge {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 21px;
  line-height: 1;
  color: #fff;
  background: var(--fc-accent);
  box-shadow: 0 6px 16px -4px var(--fc-42);
}

#article-container .hg-fc .hg-fc-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.3;
  color: var(--fc-text);
}

#article-container .hg-fc .hg-fc-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fc-muted);
}

#article-container .hg-fc .hg-fc-sub b {
  color: var(--fc-accent);
  font-weight: 700;
}

#article-container .hg-fc .hg-fc-kpis {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#article-container .hg-fc .hg-fc-kpi {
  min-width: 84px;
  padding: 8px 15px;
  border-radius: 13px;
  text-align: center;
  border: 1px solid var(--fc-12);
  background: var(--fc-06);
}

#article-container .hg-fc .hg-fc-kpi-n {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--fc-accent);
  font-variant-numeric: tabular-nums;
}

#article-container .hg-fc .hg-fc-kpi-l {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fc-muted);
}

#article-container .hg-fc .hg-fc-time {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fc-muted);
}

#article-container .hg-fc .hg-fc-time::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--fc-accent);
  opacity: .5;
}

/* ---- 文章卡片 ---- */
#article-container .hg-fc .hg-fc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#article-container .hg-fc a.hg-fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  box-sizing: border-box;
  padding: 16px 16px 13px !important;
  border: 1px solid var(--fc-line) !important;
  border-radius: 16px;
  background: var(--fc-card) !important;
  box-shadow: 0 8px 16px -4px rgba(44, 45, 48, .06);
  color: var(--fc-text) !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

#article-container .hg-fc a.hg-fc-card:hover {
  transform: translateY(-3px);
  border-color: var(--fc-42) !important;
  background: var(--fc-card) !important;
  color: var(--fc-text) !important;
  box-shadow: 0 10px 22px -8px var(--fc-42);
}

#article-container .hg-fc a.hg-fc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--fc-accent), var(--fc-12));
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

#article-container .hg-fc a.hg-fc-card:hover::after {
  opacity: 1;
}

#article-container .hg-fc .hg-fc-floor {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fc-accent);
  background: var(--fc-06);
  opacity: .85;
}

#article-container .hg-fc .hg-fc-card-title {
  flex: 1 1 auto;
  margin: 0 0 10px;
  padding-right: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .4px;
  color: inherit;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#article-container .hg-fc .hg-fc-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 7px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--fc-line);
}

#article-container .hg-fc .hg-fc-card-foot img.hg-fc-avatar {
  order: 1;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px;
  flex: none;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  object-fit: cover;
  background: var(--fc-06);
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}

#article-container .hg-fc .hg-fc-author {
  order: 2;
  min-width: 0;
  max-width: 45%;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fc-accent);
  background: var(--fc-06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#article-container .hg-fc .hg-fc-date {
  order: 3;
  flex: none;
  margin-left: auto;
  font-size: 11px;
  color: var(--fc-muted);
  font-variant-numeric: tabular-nums;
}

#article-container .hg-fc .hg-fc-host {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--fc-muted);
  background: rgba(128, 128, 128, .08);
  overflow: hidden;
}

#article-container .hg-fc .hg-fc-host img {
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  flex: none;
  pointer-events: none;
}

#article-container .hg-fc .hg-fc-host span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 显示更多 / 空状态 / 页脚 ---- */
#article-container .hg-fc .hg-fc-more {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 16px;
  padding: 0;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: var(--fc-card);
  color: var(--fc-muted);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

#article-container .hg-fc .hg-fc-more[hidden] {
  display: none;
}

#article-container .hg-fc .hg-fc-more:hover {
  border-color: transparent;
  background: var(--fc-accent);
  color: #fff;
}

#article-container .hg-fc .hg-fc-state {
  padding: 26px 0 6px;
  text-align: center;
  font-size: 13px;
  color: var(--fc-muted);
}

#article-container .hg-fc .hg-fc-state[hidden] {
  display: none;
}

#article-container .hg-fc .hg-fc-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--fc-muted);
}

@media screen and (max-width: 1200px) {
  #article-container .hg-fc .hg-fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #article-container .hg-fc .hg-fc-kpi { min-width: 72px; padding: 7px 12px; }
  #article-container .hg-fc .hg-fc-kpi-n { font-size: 19px; }
}

@media screen and (max-width: 900px) {
  #article-container .hg-fc .hg-fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 768px) {
  #article-container .hg-fc .hg-fc-meta { padding: 16px 18px; gap: 10px 14px; }
  #article-container .hg-fc .hg-fc-badge { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
  #article-container .hg-fc .hg-fc-title { font-size: 18px; }
  #article-container .hg-fc .hg-fc-kpis { width: 100%; margin-left: 0; }
  #article-container .hg-fc .hg-fc-kpi { flex: 1; min-width: 0; }
  #article-container .hg-fc .hg-fc-time { font-size: 11.5px; }
  #article-container .hg-fc .hg-fc-grid { gap: 12px; }
  #article-container .hg-fc a.hg-fc-card { min-height: 136px; padding: 14px 14px 11px !important; }
  #article-container .hg-fc .hg-fc-card-title { padding-right: 44px; font-size: 14px; }
  #article-container .hg-fc .hg-fc-card-foot { gap: 5px 6px; }
  #article-container .hg-fc .hg-fc-author { max-width: 58%; padding: 2px 7px; font-size: 10.5px; }
  #article-container .hg-fc .hg-fc-date { font-size: 10.5px; }
  #article-container .hg-fc .hg-fc-host { max-width: 100%; font-size: 10px; }
}

/* ===== 旧时光 · 按年份分类（source/js/time-timeline.js） ===== */
#article-container .timeline.hg-tl {
  --tl-accent: var(--theme-color, #49b1f5);
  --tl-ink: color-mix(in srgb, var(--tl-accent) 70%, var(--font-color, #1f2937));
  --tl-muted: rgba(60, 60, 67, .58);
  --tl-muted: color-mix(in srgb, var(--font-color, #1f2937) 58%, transparent);
  --tl-line: rgba(127, 127, 127, .22);
  --tl-line: color-mix(in srgb, var(--font-color, #1f2937) 16%, transparent);
  --tl-soft: color-mix(in srgb, var(--tl-accent) 7%, transparent);
}

[data-theme=dark] #article-container .timeline.hg-tl {
  --tl-muted: rgba(255, 255, 255, .56);
  --tl-line: rgba(255, 255, 255, .13);
  --tl-soft: color-mix(in srgb, var(--tl-accent) 13%, transparent);
}

/* ---- 顶部统计 + 年份跳转胶囊 ---- */
#article-container .timeline.hg-tl .hg-tl-head {
  margin: 10px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--tl-line);
  border-radius: 12px;
  background: var(--tl-soft);
}

#article-container .timeline.hg-tl .hg-tl-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .2px;
  color: var(--tl-muted);
}

#article-container .timeline.hg-tl .hg-tl-meta b {
  margin: 0 2px;
  font-weight: 600;
  color: var(--font-color, #1f2937);
}

#article-container .timeline.hg-tl .hg-tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#article-container .timeline.hg-tl a.hg-tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--tl-line);
  border-radius: 999px;
  background: var(--card-bg, #fff);
  color: var(--font-color, #1f2937);
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

#article-container .timeline.hg-tl a.hg-tl-chip:hover {
  color: var(--tl-ink) !important;
  border-color: var(--tl-accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px var(--tl-accent);
}

#article-container .timeline.hg-tl .hg-tl-chip b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--tl-ink);
}

#article-container .timeline.hg-tl .hg-tl-chip > span:not(.hg-tl-track) {
  font-size: 11.5px;
  color: var(--tl-muted);
}

#article-container .timeline.hg-tl .hg-tl-track {
  width: 46px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--tl-line);
}

#article-container .timeline.hg-tl .hg-tl-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--tl-accent);
}

/* ---- 年份分隔器（骑在时间轴竖线上） ---- */
#article-container .timeline.hg-tl .hg-tl-year {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 30px 0 14px;
  scroll-margin-top: 90px;
}

#article-container .timeline.hg-tl .hg-tl-year::before {
  position: absolute;
  top: 50%;
  left: -29px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--tl-accent);
  border-radius: 50%;
  background: var(--card-bg, #fff);
  content: '';
  transform: translate(0, -50%);
}

#article-container .timeline.hg-tl .hg-tl-year-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--tl-muted);
}

#article-container .timeline.hg-tl .hg-tl-year--now .hg-tl-year-num {
  color: var(--tl-ink);
}

#article-container .timeline.hg-tl .hg-tl-year-meta {
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--tl-muted);
}

#article-container .timeline.hg-tl .hg-tl-year-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--tl-line), transparent);
}

/* ---- 日期拆分与锚点 ---- */
#article-container .timeline.hg-tl .hg-tl-item {
  scroll-margin-top: 90px;
}

#article-container .timeline.hg-tl .hg-tl-date {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

#article-container .timeline.hg-tl .hg-tl-date-y {
  font-size: .66em;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--tl-muted);
}

#article-container .timeline.hg-tl .hg-tl-date-md {
  font-size: 1.02em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 768px) {
  #article-container .timeline.hg-tl .hg-tl-head { padding: 12px 13px; }
  #article-container .timeline.hg-tl .hg-tl-meta { font-size: 12px; line-height: 1.85; }
  #article-container .timeline.hg-tl .hg-tl-chips { gap: 6px; margin-top: 10px; }
  #article-container .timeline.hg-tl a.hg-tl-chip { gap: 6px; padding: 5px 10px; font-size: 12px; }
  #article-container .timeline.hg-tl .hg-tl-track { width: 34px; }
  #article-container .timeline.hg-tl .hg-tl-year { margin: 24px 0 12px; }
  #article-container .timeline.hg-tl .hg-tl-year-num { font-size: 24px; }
}
/* ===== 首页侧栏：欢迎来访 + 倒计时 ===== */
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-greet {
  margin: 4px 0 2px;
  font-size: 1.02em;
  font-weight: 600;
  color: var(--text-highlight-color);
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-clock {
  margin: 0 0 10px;
  font-size: .8em;
  color: var(--card-meta);
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-meta {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: .86em;
  line-height: 1.5;
  color: var(--font-color);
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-meta span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-meta i {
  width: 1.1em;
  color: var(--theme-color);
  text-align: center;
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-meta b {
  font-weight: 600;
  color: color-mix(in srgb, var(--theme-color) 74%, var(--font-color));
  overflow-wrap: anywhere;
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-poem {
  margin: 0;
  padding: 10px 12px 8px 14px;
  border-left: 3px solid color-mix(in srgb, var(--theme-color) 55%, transparent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--theme-color) 7%, transparent);
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-poem p {
  margin: 0;
  font-size: .92em;
  line-height: 1.75;
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-poem cite {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: .78em;
  font-style: normal;
  opacity: .66;
}

:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-title {
  margin: 6px 0 10px;
  font-size: .92em;
  color: var(--font-color);
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-title b {
  margin: 0 2px;
  color: var(--theme-color);
  font-size: 1.55em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-row {
  display: grid;
  grid-template-columns: 2.6em 1fr 3.2em;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  margin: 9px 0;
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-label {
  font-size: .84em;
  color: var(--card-meta);
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-track {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--font-color) 11%, transparent);
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 58%, #fff));
  transition: width .6s ease;
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-pct {
  text-align: right;
  font-size: .78em;
  font-weight: 600;
  color: color-mix(in srgb, var(--theme-color) 78%, var(--font-color));
  font-variant-numeric: tabular-nums;
}
:is(#aside-content, .hg-side-fill) .hg-countdown-card .hg-cd-left {
  grid-column: 2 / 4;
  text-align: right;
  font-size: .72em;
  color: var(--card-meta);
  opacity: .75;
}
:is(#aside-content, .hg-side-fill) .hg-welcome-card .hg-welcome-meta #hg-welcome-distance {
  font-weight: 600;
  color: color-mix(in srgb, var(--theme-color) 74%, var(--font-color));
}

/* ===== 画廊（/gallery/）=====
   大厅：四张分类卡；分类页：CSS 多列瀑布流 + 缩略图，
   点击交给主题自带的 fancybox（data-fancybox 自动绑定），原图直接进灯箱。 */
.hg-gallery-lead {
  margin: 0 0 18px;
  color: var(--card-meta);
  font-size: .95em;
}

.hg-gallery-hall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hg-gallery-hall .hg-gallery-group {
  position: relative;
  height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
}
.hg-gallery-hall .hg-gallery-group img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .5s ease, opacity .3s ease;
}
.hg-gallery-hall .hg-gallery-group:hover img {
  transform: scale(1.05);
  opacity: .55;
}
.hg-gallery-hall .hg-gallery-group figcaption {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, .5);
}
.hg-gallery-hall .hg-gallery-group-name {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: .06em;
}
.hg-gallery-hall .hg-gallery-group-name::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 7px;
  background: #fff;
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform .35s ease;
}
.hg-gallery-hall .hg-gallery-group:hover .hg-gallery-group-name::after {
  transform: scaleX(1);
}
.hg-gallery-hall .hg-gallery-group p {
  margin: 7px 0 0;
  font-size: .88em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.hg-gallery-hall .hg-gallery-group:hover p {
  opacity: 1;
  transform: none;
}
.hg-gallery-hall .hg-gallery-group figcaption > a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hg-gallery-back {
  margin: 0 0 6px;
  font-size: .95em;
}
.hg-gallery-back a {
  color: var(--theme-color);
}
.hg-gallery-notice {
  margin: 0 0 16px;
}
.hg-gallery-notice .note.blue.flat {
  margin: 0;
  padding: 12px 18px 12px 3.4em;
  border: 0;
  border-radius: 10px;
  background: #2ea6f5;
  color: #fff;
  font-size: .92em;
  font-weight: 500;
  line-height: 1.6;
}
.hg-gallery-notice .note.blue.flat::before {
  content: none;
  display: none;
}
.hg-gallery-notice .note.blue.flat p {
  margin: 0;
  color: #fff;
}
.hg-gallery-notice .note.blue.flat > .note-icon {
  top: 50%;
  left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1b8fe0;
  color: #fff;
  font-size: 15px;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.hg-gallery-grid {
  column-count: 3;
  column-gap: 12px;
  padding: 0 2px;
}
.hg-gallery-grid .hg-gallery-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.hg-gallery-grid .hg-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform .45s ease;
}
.hg-gallery-grid .hg-gallery-item:nth-child(4n + 2) img { aspect-ratio: 4 / 3; }
.hg-gallery-grid .hg-gallery-item:nth-child(4n + 3) img { aspect-ratio: 3 / 4; }
.hg-gallery-grid .hg-gallery-item:nth-child(4n + 4) img { aspect-ratio: 1 / 1; }
.hg-gallery-grid--mobile .hg-gallery-item:nth-child(4n + 1) img { aspect-ratio: 9 / 16; }
.hg-gallery-grid--mobile .hg-gallery-item:nth-child(4n + 2) img { aspect-ratio: 3 / 4; }
.hg-gallery-grid--mobile .hg-gallery-item:nth-child(4n + 3) img { aspect-ratio: 4 / 5; }
.hg-gallery-grid--mobile .hg-gallery-item:nth-child(4n + 4) img { aspect-ratio: 1 / 1; }
.hg-gallery-grid .hg-gallery-item:hover img {
  transform: scale(1.05);
}

@media screen and (min-width: 1600px) {
  .hg-gallery-grid { column-count: 4; }
}
@media screen and (max-width: 991px) {
  .hg-gallery-grid { column-count: 2; }
}
@media screen and (max-width: 600px) {
  .hg-gallery-hall { grid-template-columns: 1fr; }
  .hg-gallery-hall .hg-gallery-group { height: 180px; }
}

/* ===== 列表页托底：网站信息卡移到文章下方横向铺开 ===== */
.hg-webinfo-inline {
  display: block;
  width: 100%;
  margin: 20px 0 0;
  padding: 18px 24px 4px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, .08));
  background: transparent;
}
#recent-posts > .hg-webinfo-inline {
  padding: 18px 24px 20px;
  border-top: 0;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.hg-webinfo-inline > .webinfo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 28px;
}
.hg-webinfo-inline > .webinfo > .webinfo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.hg-webinfo-inline > .webinfo > .webinfo-item > .item-name {
  flex: 1 1 auto;
  width: auto;
}
.hg-webinfo-inline > .webinfo > .webinfo-item > .item-count {
  flex: 0 0 auto;
  width: auto;
}
@media screen and (max-width: 1599px) {
  .hg-webinfo-inline > .webinfo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 991px) {
  .hg-webinfo-inline > .webinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
  .hg-webinfo-inline { padding: 16px 16px 4px; }
  #recent-posts > .hg-webinfo-inline { padding: 16px; }
  .hg-webinfo-inline > .webinfo { grid-template-columns: 1fr; }
}

/* ===== 列表页托底：文章不足一行时，网站信息与侧栏卡下移全宽展开 ===== */
#content-inner.hg-side-fill-on {
  flex-wrap: wrap;
}

#content-inner.hg-side-fill-on > .hg-side-fill {
  flex: 0 0 100%;
  width: 100%;
}

.hg-side-fill {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 22px 0 0;
}

.hg-side-fill:empty { display: none; }

.hg-side-fill > .card-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.hg-side-fill > .card-widget > .card-content {
  flex: 1 1 auto;
}

.hg-side-fill > .card-widget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 16%, transparent));
  opacity: .55;
  pointer-events: none;
}

.hg-side-fill > .card-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--theme-color) 16%, transparent);
}

.hg-side-fill > .hg-webinfo-inline,
.hg-side-fill > .card-announcement,
.hg-side-fill > .card-history {
  grid-column: 1 / -1;
}

.hg-side-fill > .hg-welcome-card { grid-column: span 7; }
.hg-side-fill > .hg-countdown-card { grid-column: span 5; }
.hg-side-fill > .card-widget:only-child { grid-column: 1 / -1; }

.hg-side-fill:not(.hg-fill-has-countdown) > .hg-welcome-card,
.hg-side-fill:not(.hg-fill-has-welcome) > .hg-countdown-card {
  grid-column: 1 / -1;
}

.hg-side-fill > .hg-webinfo-inline { order: 0; }
.hg-side-fill > .card-announcement { order: 1; }
.hg-side-fill > .hg-welcome-card { order: 2; }
.hg-side-fill > .hg-countdown-card { order: 3; }
.hg-side-fill > .card-history { order: 4; }

.hg-side-fill > .hg-welcome-card,
.hg-side-fill > .hg-countdown-card,
.hg-side-fill > .card-announcement,
.hg-side-fill > .card-history {
  padding: 20px 24px;
}

.hg-side-fill > .hg-webinfo-inline {
  padding: 20px 26px;
  border-top: 0;
}

.hg-side-fill > .hg-webinfo-inline > .webinfo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 32px;
}

.hg-side-fill > .card-announcement .hg-announce__items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hg-side-fill > .hg-welcome-card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hg-side-fill > .hg-welcome-card .hg-welcome-poem {
  margin-top: auto;
}

.hg-side-fill > .hg-countdown-card .card-content {
  height: 100%;
}

.hg-side-fill:not(.hg-fill-has-countdown) > .hg-welcome-card .card-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  column-gap: 28px;
}

.hg-side-fill:not(.hg-fill-has-countdown) > .hg-welcome-card .item-headline {
  grid-column: 1 / -1;
}

.hg-side-fill:not(.hg-fill-has-countdown) > .hg-welcome-card .hg-welcome-poem {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: center;
  margin: 0;
  text-align: right;
}

.hg-side-fill > .card-history .card-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hg-side-fill > .card-history .item-headline {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.hg-side-fill > .card-history #history-baidu {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100px;
}

.hg-side-fill > .card-history .history_slide {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hg-side-fill > .card-history .history_slide_link {
  font-size: 1.02em;
}

@media screen and (max-width: 1099px) {
  .hg-side-fill > .hg-webinfo-inline > .webinfo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hg-side-fill > .hg-welcome-card,
  .hg-side-fill > .hg-countdown-card {
    grid-column: span 6;
  }

  .hg-side-fill:not(.hg-fill-has-countdown) > .hg-welcome-card,
  .hg-side-fill:not(.hg-fill-has-welcome) > .hg-countdown-card {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 1200px) {
  .hg-side-fill > .card-announcement .hg-announce__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
