/*
Theme: Candy: Rebirth
Author: Archeb
HomePage: https://qwq.moe/
Date: 2018-03-24

Thank you for using my theme~
*/
:root {
  --candy-font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, sans-serif;
  --candy-font-mono: ui-monospace, SFMono-Regular, "Cascadia Code",
    Consolas, "Liberation Mono", Menlo, monospace;
  --candy-text-size: 16px;
  --candy-text-leading: 1.7;
  --candy-text-tracking: 0.02em;
  /* 由 header 内联脚本按 innerHeight 更新；CSS 回退用 100dvh */
  --candy-vh: 100dvh;
}
html,
body {
  font-family: var(--candy-font-sans);
  font-size: var(--candy-text-size);
  line-height: var(--candy-text-leading);
  letter-spacing: var(--candy-text-tracking);
  font-synthesis: none;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6,
h7,
b,
strong {
  color: #222222;
}
.mdi {
  display: inline-block;
  font-family: "Material Design Icons";
  font-size: inherit;
  text-rendering: auto;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
}
code,
code * {
  font-family: var(--candy-font-mono);
  font-size: 14px;
}
a {
  text-decoration: none;
  color: inherit;
}
hr {
  border-top: none;
}
table thead {
  background-color: #7c96ec;
  color: white;
}
table thead tr th {
  font-weight: 400;
  padding: 4px;
}
table tbody tr td {
  border-bottom: 1px solid #d4d4d4;
  transition: background-color 0.5s;
  padding: 5px 10px;
}
html {
  height: 100%;
  width: 100%;
  /* iOS：给无 dvh 的旧 WebKit 提供可用视口高度；有 dvh 时由子元素自己用 dvh/--candy-vh */
  min-height: 100%;
  min-height: -webkit-fill-available;
  background-color: #1c1c1e;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.text-info {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  font-size: 0.82rem;
  width: 100%;
  padding: 5px 10px;
}
body {
  /* 勿用白底：iOS 地址栏伸缩时若壁纸层短暂盖不全会露出「下半白屏」 */
  background-color: #1c1c1e;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  margin: 0;
  /* 禁止把 -webkit-fill-available 写在 100dvh 之后（会盖掉 dvh，iOS 下半截露底） */
  height: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--candy-vh, 100dvh);
  min-height: 100%;
  min-height: 100dvh;
  min-height: var(--candy-vh, 100dvh);
  display: flex;
  touch-action: manipulation;
  /* 禁用双击缩放 */
  /* 形成堆叠上下文，让 #site-bg 能铺在 body 底色之上、各 .screen 之下 */
  isolation: isolate;
}
.notify-container {
  position: fixed;
  display: flex;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom, 0px));
  align-items: flex-end;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: 100%;
  max-width: 100vw;
  z-index: 10;
  pointer-events: none;
  inset: 0;
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
  min-height: var(--candy-vh, 100dvh);
  box-sizing: border-box;
}
.notify-container .notify {
  background-color: #20bf20;
  animation: notify-show-hide 5s ease-in-out;
  border-right: 7px solid rgba(0, 0, 0, 0.4);
  transition: all 0.5s;
  color: white;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  padding: 10px 15px;
}
.notify-container .notify .title {
  font-size: 1.1rem;
}
.notify-container .notify .content {
  margin-top: 5px;
  color: #eaeaea;
  font-size: 0.9rem;
}
.bg {
  background-size: cover;
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 勿用 -1：在未 isolation 时会沉到 html/body 不透明底色后面，列表/文章屏只剩纯色 */
  z-index: 0;
  width: 100%;
  /* inset 拉伸；min-height 取大视口，避免地址栏收起后下半截露底 */
  height: auto;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .bg {
    background-attachment: fixed;
  }
}
.screen {
  width: 100%;
  max-width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
  min-height: var(--candy-vh, 100dvh);
  justify-content: center;
  align-items: center;
  display: none;
  /* 压在 #site-bg 之上；自身透明以透出全站壁纸 */
  z-index: 1;
  background: transparent;
}
.btn {
  text-decoration: none;
  background-color: #32b6ff;
  color: white;
  padding: 15px 22px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}
.btn:hover {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}
body.on-index .menu:not(#mobile-menu) {
  display: none !important;
}

/* 设置 / 个人中心 / 登录全屏时隐藏站点顶栏，避免挡住面板顶部 */
body.home-set-open .menu:not(#mobile-menu),
body.on-usercenter .menu:not(#mobile-menu),
body.on-login .menu:not(#mobile-menu) {
  display: none !important;
}

body.home-set-open #mobile-menu,
body.on-usercenter #mobile-menu,
body.on-login #mobile-menu {
  display: none !important;
  pointer-events: none !important;
}

.menu {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  z-index: 10;
  justify-content: space-between;
}
body.admin-bar .menu {
  top: calc(20px + var(--wp-admin--admin-bar--height, 32px));
}
.menu .mdi {
  font-size: 24px!important;
  margin-right: 10px;
}
.menu .menu-brand {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.menu .menu-brand .menu-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.menu .menu-brand .menu-brand-text {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
.menu .group {
  display: flex;
  align-items: center;
}
.menu .group .item {
  font-size: 0.925rem;
  color: #696969;
  cursor: pointer;
  margin: 0 5px;
  transition: all 0.3s;
}
.menu .group .item:hover {
  color: #272727;
}
.menu .group .item:active {
  color: black;
}
.menu .group .hidden {
  opacity: 0;
  transform: scale(1, 0);
  transition: all 0.3s;
}
.menu .group .show {
  opacity: 1;
  transform: scale(1);
}
.menu .group .rotate {
  transform: rotate(90deg);
}
.menu .drop-down {
  top: 75px;
  left: 21px;
  position: fixed;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: translate(-30px);
  transition: all 0.3s;
}
.menu .drop-down .item {
  margin-bottom: 10px;
  color: #696969;
}
.search-overlay {
  display: none;
}
.mobile-close-btn {
  display: none;
}
.bean-tools .tool-fab {
  display: none;
}
.bean-tools .tool-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.friends {
  display: flex;
  flex-wrap: wrap;
}
.friends .a-friend {
  display: flex;
  align-items: center;
  margin: 10px 10px 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 10px 10px 14px;
  transition: all 0.3s;
}
.friends .a-friend:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.friends .a-friend:active {
  transform: scale(0.97);
}
.friends .a-friend .blog-avatar {
  background-color: white;
  margin-top: -4px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}
.friends .a-friend .text-container {
  margin-left: 10px;
}
.friends .a-friend .text-container .name {
  font-size: 15px;
  color: inherit!important;
}
.friends .a-friend .text-container .description {
  margin-top: 5px;
  font-size: 12.5px;
  color: inherit!important;
}
/* Archive 页面 */
#archive {
  overflow: hidden;
  background: transparent;
}
#archive.candy-screen-transition,
#page.candy-screen-transition,
#home-more.candy-screen-transition,
#usercenter.candy-screen-transition {
  overflow: visible !important;
}
#page.candy-screen-transition {
  overflow-x: visible !important;
  overflow-y: visible !important;
}
.archive-container,
.category-container {
  display: flex!important;
  flex-wrap: nowrap;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  transition: transform 0.8s;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.archive-container::-webkit-scrollbar,
.category-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.archive-container.is-scrolling .bean,
.category-container.is-scrolling .bean {
  backdrop-filter: none !important;
}
.archive-container.is-scrolling .author-info.bean-main,
.category-container.is-scrolling .author-info.bean-main {
  transition: none !important;
}
/* 分类/搜索/标签：从文档流拿掉全站列表。
   原先两边一起 translate(-100vh)，#archive 高度或 overflow 不一致时会露出最新文章。 */
body.on-category .archive-container {
  display: none !important;
  transform: none !important;
  visibility: hidden;
  pointer-events: none;
}
body.on-category .category-container {
  transform: none !important;
}
/* 门户直进分类：跳过叠层过渡 */
body.on-category.on-category-instant .archive-container,
body.on-category.on-category-instant .category-container {
  transition: none !important;
}
.bean {
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: -5px -5px 10px rgba(32, 32, 32, 0.1), 5px 5px 10px rgba(32, 32, 32, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #333;
  flex-shrink: 0;
}
.author-rail,
.archive-rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex-shrink: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.author-rail {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.archive-rail {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}
.author-rail > *,
.archive-rail > * {
  pointer-events: auto;
}
.author-info.bean-main {
  width: 200px;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 80px);
  margin-left: 0;
  left: auto;
  top: auto;
  transform: none;
  align-self: center;
  flex-shrink: 0;
  user-select: none;
  border-radius: 100px !important;
  position: relative;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 12px;
  background-color: rgba(250, 250, 250, 0.82);
  text-shadow: none;
  box-sizing: border-box;
}
.author-info.bean-main .avatar {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.author-info.bean-main .avatar img {
  transition: all 0.3s;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(245, 245, 245, 0.35);
  box-shadow: 0 0 10px rgba(32, 32, 32, 0.1);
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
}
.author-info.bean-main .blog-name,
.author-info.bean-main .name {
  display: none;
}
.author-info.bean-main .desc {
  padding: 12px 18px 0;
  word-break: break-word;
  text-align: center;
  font-size: 0.78rem;
  color: #8a8a8a;
  line-height: 1.45;
  max-height: none;
  overflow: visible;
  transition: opacity 0.3s, max-height 0.3s;
  flex-shrink: 0;
}
.author-info.bean-main .stat {
  display: flex;
  color: #333;
  padding: 6px 8px 0;
  font-size: 1rem;
  border-bottom: 1px dashed rgba(193, 193, 193, 0.7);
  width: 86%;
  justify-content: center;
  box-sizing: border-box;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.author-info.bean-main .stat > * {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.author-info.bean-main .stat .article-count:after {
  content: '文章';
  font-size: 0.65rem;
  color: #8a8a8a;
}
.author-info.bean-main .stat .comment-count:after {
  content: '评论';
  font-size: 0.65rem;
  color: #8a8a8a;
}
.author-info.bean-main .stat .category-count:after {
  content: '分类';
  font-size: 0.65rem;
  color: #8a8a8a;
}
.author-info.bean-main .links,
.author-info.bean-main .social {
  padding: 8px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.author-info.bean-main .links::-webkit-scrollbar,
.author-info.bean-main .social::-webkit-scrollbar {
  display: none;
}
.author-info.bean-main .links .item,
.author-info.bean-main .social .item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  padding: 8px 10px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.author-info.bean-main .links .item:hover,
.author-info.bean-main .social .item:hover {
  background-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 5px rgba(32, 32, 32, 0.1);
  transform: translateY(-1px);
}
.author-info.bean-main .links .item .mdi,
.author-info.bean-main .social .item .mdi,
.author-info.bean-main .links .item .link-icon,
.author-info.bean-main .social .item .link-icon {
  margin-top: 0;
  font-size: 18px;
  margin-right: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.author-info.bean-main .links .item .link-text,
.author-info.bean-main .social .item .link-text {
  font-size: 0.9rem;
  overflow: hidden;
}
.author-info.bean-main .links .item svg,
.author-info.bean-main .social .item svg {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  flex-shrink: 0;
}
.author-info.bean-main .meta-info,
.author-info.bean-main .copyright {
  font-size: 10px;
  margin-top: auto;
  padding: 10px 16px 6px;
  text-align: center;
  color: #8a8a8a;
  line-height: 1.5;
  position: relative;
  flex-shrink: 0;
}
.author-info.bean-main .meta-info a,
.author-info.bean-main .copyright a {
  color: #8172ef;
}
.author-info.bean-main .meta-info .show,
.author-info.bean-main .copyright .show {
  display: block;
  transition: opacity 0.3s;
  opacity: 1;
}
.author-info.bean-main .meta-info .hide,
.author-info.bean-main .copyright .hide {
  display: block;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translate(0, -18px);
  pointer-events: none;
}
.author-info.bean-main .meta-info:hover .hide,
.author-info.bean-main .copyright:hover .hide {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -16px);
}
.author-info.bean-main .meta-info:hover .show,
.author-info.bean-main .copyright:hover .show {
  opacity: 0;
}
.author-info.bean-main.bean-main-mini {
  width: 70px;
  height: auto;
  min-height: 400px;
  max-height: calc(100vh - 80px);
  margin-left: 0;
  left: auto;
  padding-bottom: 10px;
  /* 悬停：动画恢复到缩小前完整尺寸 */
}
.author-info.bean-main.bean-main-mini .avatar {
  margin-top: 10px;
}
.author-info.bean-main.bean-main-mini .avatar img {
  width: 50px;
  height: 50px;
}
.author-info.bean-main.bean-main-mini .blog-name,
.author-info.bean-main.bean-main-mini .name {
  height: 0;
  max-height: 0;
  opacity: 0;
  font-size: 0;
  margin: 0;
}
.author-info.bean-main.bean-main-mini .desc,
.author-info.bean-main.bean-main-mini .stat,
.author-info.bean-main.bean-main-mini .meta-info,
.author-info.bean-main.bean-main-mini .copyright {
  opacity: 0;
  pointer-events: none;
  max-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border: none;
  flex: 0;
}
.author-info.bean-main.bean-main-mini .links,
.author-info.bean-main.bean-main-mini .social {
  opacity: 1;
  pointer-events: auto;
  max-height: none;
  overflow: auto;
  flex: 1 1 auto;
  margin: 6px 0 0;
  padding: 2px 8px 0;
  width: 100%;
  gap: 0;
  justify-content: space-between;
}
.author-info.bean-main.bean-main-mini .links .item,
.author-info.bean-main.bean-main-mini .social .item {
  font-size: 0;
  /* SNS 文字隐藏，只留图标 */
  line-height: 0;
  padding: 6px 0;
  min-width: 0;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-info.bean-main.bean-main-mini .links .item:hover,
.author-info.bean-main.bean-main-mini .social .item:hover {
  transform: none;
  background-color: rgba(0, 0, 0, 0.06);
}
.author-info.bean-main.bean-main-mini .links .item .mdi,
.author-info.bean-main.bean-main-mini .social .item .mdi,
.author-info.bean-main.bean-main-mini .links .item .link-icon,
.author-info.bean-main.bean-main-mini .social .item .link-icon {
  font-size: 22px;
  margin-right: 0;
  line-height: 1;
}
.author-info.bean-main.bean-main-mini .links .item .link-text,
.author-info.bean-main.bean-main-mini .social .item .link-text {
  display: none;
}
.author-info.bean-main.bean-main-mini .links .item svg,
.author-info.bean-main.bean-main-mini .social .item svg {
  width: 22px;
  height: 22px;
  margin-right: 0;
}
.author-info.bean-main.bean-main-mini:hover {
  width: 200px;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 80px);
  padding-bottom: 12px;
}
.author-info.bean-main.bean-main-mini:hover .avatar {
  margin-top: 25px;
}
.author-info.bean-main.bean-main-mini:hover .avatar img {
  width: 150px;
  height: 150px;
}
.author-info.bean-main.bean-main-mini:hover .blog-name,
.author-info.bean-main.bean-main-mini:hover .name {
  display: none;
}
.author-info.bean-main.bean-main-mini:hover .desc {
  opacity: 1;
  pointer-events: auto;
  max-height: none !important;
  overflow: visible;
  padding: 12px 18px 0 !important;
  margin: 0;
  flex: 0 0 auto;
}
.author-info.bean-main.bean-main-mini:hover .stat {
  opacity: 1;
  pointer-events: auto;
  max-height: none !important;
  overflow: visible;
  padding: 6px 8px 0 !important;
  margin: 0;
  border-bottom: 1px dashed rgba(193, 193, 193, 0.7);
  flex: 0 0 auto;
}
.author-info.bean-main.bean-main-mini:hover .meta-info,
.author-info.bean-main.bean-main-mini:hover .copyright {
  opacity: 1;
  pointer-events: auto;
  max-height: none !important;
  overflow: visible;
  padding: 10px 16px 6px !important;
  margin-top: auto;
  flex: 0 0 auto;
}
.author-info.bean-main.bean-main-mini:hover .links,
.author-info.bean-main.bean-main-mini:hover .social {
  margin: 0;
  padding: 8px 10px 0;
  gap: 4px;
  justify-content: flex-start;
}
.author-info.bean-main.bean-main-mini:hover .links .item,
.author-info.bean-main.bean-main-mini:hover .social .item {
  font-size: 0.9rem;
  line-height: normal;
  padding: 8px 10px;
  flex: 0 0 auto;
}
.author-info.bean-main.bean-main-mini:hover .links .item:hover,
.author-info.bean-main.bean-main-mini:hover .social .item:hover {
  transform: translateY(-1px);
  background-color: rgba(0, 0, 0, 0.08);
}
.author-info.bean-main.bean-main-mini:hover .links .item .mdi,
.author-info.bean-main.bean-main-mini:hover .social .item .mdi,
.author-info.bean-main.bean-main-mini:hover .links .item .link-icon,
.author-info.bean-main.bean-main-mini:hover .social .item .link-icon {
  font-size: 18px;
  margin-right: 4px;
}
.author-info.bean-main.bean-main-mini:hover .links .item .link-text,
.author-info.bean-main.bean-main-mini:hover .social .item .link-text {
  display: inline;
}
.author-info.bean-main.bean-main-mini:hover .links .item svg,
.author-info.bean-main.bean-main-mini:hover .social .item svg {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.archive-info {
  width: 220px;
  min-height: 400px;
  height: auto;
  max-height: calc(100vh - 120px);
  margin-left: 0;
  margin-right: 0;
  position: relative;
  top: auto;
  transform: none;
  left: auto;
  align-self: center;
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  box-sizing: border-box;
  border-radius: 24px !important;
  background-color: rgba(250, 250, 250, 0.88);
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
}
.archive-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.archive-info-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b5ce7;
  background: rgba(129, 114, 239, 0.14);
}
.archive-info-title {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
  word-break: break-word;
  max-width: 100%;
}
.archive-info-title:before {
  display: none !important;
}
.archive-info-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}
.archive-info-count-num {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: #333;
}
.archive-info-count-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #888;
}
.archive-info-desc {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #666;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}
.archive-info-children {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.archive-info-child {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  word-break: break-word;
}
.archive-info-child:hover {
  color: #6b5ce7;
  background: rgba(129, 114, 239, 0.14);
}
.archive-info-child:active {
  transform: scale(0.98);
}
.archive-info-parent {
  color: #6b5ce7;
  background: rgba(129, 114, 239, 0.12);
  font-weight: 700;
}
.archive-info-parent:before {
  content: '← ';
  font-weight: 700;
}
.archive-info-parent:hover {
  color: #5a4bd6;
  background: rgba(129, 114, 239, 0.22);
}
.archive-info-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}
.archive-info-children + .archive-info-tags {
  margin-top: 0;
  padding-top: 8px;
  border-top: 0;
}
.archive-info-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  max-width: 100%;
  padding: 5px 10px 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: #5a4bd6;
  background: rgba(129, 114, 239, 0.12);
  border: 1px solid rgba(129, 114, 239, 0.16);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}
.archive-info-tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5em;
}
.archive-info-tag-count {
  position: relative;
  top: -0.35em;
  margin-left: 1px;
  padding: 0 1px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: #6b5ce7;
  letter-spacing: 0;
}
.archive-info-tag:hover {
  color: #4a3bc6;
  background: rgba(129, 114, 239, 0.2);
  border-color: rgba(129, 114, 239, 0.28);
}
.archive-info-tag:active {
  transform: scale(0.98);
}
.archive-info-tags-related {
  margin-top: 4px;
}
.tags-index-empty {
  margin-top: 8px;
  padding: 12px 8px;
  font-size: 0.82rem;
}
.tags-index-capsule .archive-info-count-label {
  letter-spacing: 0.02em;
}
.tags-index-capsule {
  min-height: 0;
  max-height: calc(100vh - 120px);
}
body.on-tags-index .category-container,
.category-container:has(.tags-index-panel) {
  justify-content: center;
  align-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 32px 24px;
  box-sizing: border-box;
}
body.on-tags-index .archive-rail,
.category-container:has(.tags-index-panel) .archive-rail {
  display: none !important;
}
.tags-index-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}
/* 标签索引：左侧标题胶囊 + 右侧独立标签区（不在胶囊内） */
.tags-index-panel {
  width: min(720px, calc(100vw - 48px));
  max-width: 720px;
  flex: 0 1 auto;
  padding: 28px 32px 36px;
  box-sizing: border-box;
  align-self: center;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  box-shadow: -5px -5px 10px rgba(32, 32, 32, 0.1), 5px 5px 10px rgba(32, 32, 32, 0.1);
  color: #333;
}
.tags-index-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  max-height: none;
  overflow: visible;
  border-top: 0;
}
.tags-index-panel .archive-info-tag {
  padding: 7px 14px 7px 15px;
  font-size: 0.82rem;
}
.tags-index-panel .archive-info-tag-text {
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

/* 分类 ↔ 分类：胶囊卡与内容柔和切换 */
.category-container.is-category-switching {
  pointer-events: none;
}
.category-container > .category-switch-out {
  animation: category-switch-out 0.28s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  will-change: transform, opacity;
}
.category-container > .archive-info.category-switch-out,
.category-container > .archive-rail.category-switch-out {
  animation-name: archive-capsule-out;
  animation-duration: 0.3s;
}
.category-container > .category-switch-in {
  animation: category-switch-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}
.category-container > .archive-info.archive-capsule-in,
.category-container > .archive-rail.archive-capsule-in,
.archive-info.archive-capsule-in,
.archive-rail.archive-capsule-in {
  animation: archive-capsule-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}
@keyframes category-switch-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.96);
  }
}
@keyframes category-switch-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes archive-capsule-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.9);
    filter: blur(2px);
  }
}
@keyframes archive-capsule-in {
  from {
    opacity: 0;
    transform: translate3d(-48px, 0, 0) scale(0.88);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
/* 作者胶囊：自左向右滑入 */
.author-rail .author-info.bean-main.right-in-animation {
  animation-name: capsule-in;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes capsule-in {
  from {
    opacity: 0;
    transform: translate3d(-48px, 0, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* 文章列表卡：自下而上短距滑入 */
.article-list .right-in-animation {
  animation-name: article-card-in;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes article-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.archive-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 200px;
  margin-left: 0;
  padding: 40px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  color: #888;
  font-size: 1rem;
  box-sizing: border-box;
  grid-column: 1 / -1;
}
.article-list {
  width: 980px;
  max-width: 980px;
  flex: 0 0 980px;
  padding: 36px 44px 56px 36px;
  display: grid;
  grid-template-columns: repeat(2, 430px);
  gap: 28px 32px;
  height: auto;
  align-items: start;
  align-content: start;
  box-sizing: border-box;
}
.article-list .bean-article {
  width: 430px;
  height: 340px;
  margin: 0;
  user-select: none;
  transition: all 0.3s;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: none;
  border-radius: 20px;
  position: relative;
}
.article-list .bean-article:first-child {
  margin-top: 0;
}
.article-list .bean-article:hover {
  box-shadow: -5px -5px 10px rgba(32, 32, 32, 0.2), 5px 5px 10px rgba(32, 32, 32, 0.2);
}
.article-list .bean-article:active {
  transform: scale(0.99);
}
.article-list .bean-article .article-title {
  color: #f0f0f0;
  padding: 16px 20px;
  text-shadow: 0 0 5px rgba(35, 35, 35, 0.5), 0 0 5px rgba(35, 35, 35, 0.5);
  font-size: 24px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}
.article-list .bean-article .article-title span {
  font-weight: 600;
}
.article-list .bean-article .article-title .article-summary {
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 5px;
  color: #cecece;
  white-space: nowrap;
  font-size: 14px;
  text-shadow: none;
  font-weight: 400;
}
.article-list .bean-article .article-category {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.article-list .bean-article .article-category .category-item {
  display: flex;
  align-items: center;
  color: #333;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px 5px;
  height: 19px;
  border-radius: 5px;
  margin-left: 8px;
  margin-bottom: 4px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(32, 32, 32, 0.2);
  text-decoration: none;
}
.article-list .bean-article .article-category .category-item .item-text {
  font-size: 13px;
  margin-top: -2px;
  line-height: 1.2;
  white-space: nowrap;
}
.article-list .bean-article-textonly {
  color: #000;
  backdrop-filter: blur(20px);
  background-image: none !important;
  background-color: rgba(255, 255, 255, 0.72);
  justify-content: flex-start;
  position: relative;
  width: 430px;
  height: 340px;
}
.article-list .bean-article-textonly .article-title {
  background: none;
  flex-shrink: 0;
  color: #111;
  padding: 16px 20px 0;
  text-shadow: none;
  white-space: normal;
  font-size: 22px;
}
.article-list .bean-article-textonly .article-title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-list .bean-article-textonly .article-content {
  max-height: calc(100% - 110px);
  padding: 12px 24px 50px;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
  word-break: break-word;
}
.article-list .bean-article-textonly .article-content img {
  display: none;
}
.article-list .bean-article-textonly .article-category {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}
.article-list .bean-article-textonly .article-category .category-item {
  background-color: rgba(255, 255, 255, 0.4);
}
.article-list .bean-article-textonly:hover {
  background-color: rgba(223, 242, 255, 0.55);
}
/* Post & Page 页面 */
/* Post & Page 页面 */
#page {
  overflow-y: hidden;
  overflow-x: hidden;
  background: transparent;
}
.page-container {
  display: flex;
  width: 100vw;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--candy-vh, 100dvh);
}
.page-wrapper {
  background-image: linear-gradient(to top, rgba(235, 241, 245, 0.95) 0%, rgba(240, 240, 241, 0.95) 100%);
  margin: 60px 150px 40px;
  box-shadow: 1px 1px 35px rgba(0, 0, 0, 0.12);
  min-width: 830px;
  max-width: 46vw;
}
.page-wrapper .title {
  font-size: 1.7em;
  padding: 30px 40px 25px;
  background-color: white;
}
.page-wrapper .title .meta {
  font-size: 0.85rem;
  padding: 15px 0 0;
  color: #9c9c9c;
}
.page-wrapper .title .meta .category {
  padding: 3px 8px 4px;
  background-color: #5f9ea0;
  color: #fafafa;
  margin-right: 8px;
  cursor: pointer;
}
.page-wrapper .title .meta .category:nth-child(2) {
  background-color: #6495ed;
}
.page-wrapper .title .meta .category:nth-child(3) {
  background-color: #deb887;
}
.page-wrapper .title .meta .category:nth-child(4) {
  background-color: #a0522d;
}
.page-wrapper .cover {
  height: 500px;
  width: 100%;
  overflow: hidden;
}
.page-wrapper .cover .cover-image {
  transition: all 0.25s;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  transform: scale(1);
  background-size: cover;
  height: 100%;
  width: 100%;
}
.page-wrapper .cover .cover-image .title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px 40px;
  font-size: 1.7rem;
  color: white;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
  text-shadow: 1px 1px 8px #000;
}
.page-wrapper .cover .cover-image .title .meta {
  font-size: 0.8rem;
  padding: 10px 0 0;
  text-shadow: none;
  color: #f9f9f9;
}
.page-wrapper .cover .cover-image .title .meta .category {
  padding: 2px 7px 3px;
  background-color: #5f9ea0;
  color: #fafafa;
  font-size: 0.7rem;
  margin-right: 8px;
}
.page-wrapper .cover .cover-image .title .meta .category:nth-child(2) {
  background-color: #6495ed;
}
.page-wrapper .cover .cover-image .title .meta .category:nth-child(3) {
  background-color: #deb887;
}
.page-wrapper .cover .cover-image .title .meta .category:nth-child(4) {
  background-color: #a0522d;
}
.page-wrapper .content {
  padding: 10px 0 20px;
  color: #444;
  font-size: 0.95em;
  line-height: 1.8;
}
.page-wrapper .content * {
  max-width: 100%;
}
.page-wrapper .content > * {
  padding: 0 40px;
}
.page-wrapper .content > ul,
.page-wrapper .content > ol {
  padding: 0 70px;
}
.page-wrapper .content a {
  color: #8172ef;
}
.page-wrapper .content > h1,
.page-wrapper .content > h2,
.page-wrapper .content > h3,
.page-wrapper .content > h4,
.page-wrapper .content > h5,
.page-wrapper .content > h6 {
  padding: 0 10px 2px;
  margin: 0 30px;
  border-bottom: 1px solid #dedede;
  transition: border-color 0.3s;
}
.page-wrapper .content > h1:hover,
.page-wrapper .content > h2:hover,
.page-wrapper .content > h3:hover,
.page-wrapper .content > h4:hover,
.page-wrapper .content > h5:hover,
.page-wrapper .content > h6:hover {
  border-color: #bbbbbb;
}
.page-wrapper .content > h1:hover:before,
.page-wrapper .content > h2:hover:before,
.page-wrapper .content > h3:hover:before,
.page-wrapper .content > h4:hover:before,
.page-wrapper .content > h5:hover:before,
.page-wrapper .content > h6:hover:before {
  color: #828282;
}
.page-wrapper .content > h1:before,
.page-wrapper .content > h2:before,
.page-wrapper .content > h3:before,
.page-wrapper .content > h4:before,
.page-wrapper .content > h5:before,
.page-wrapper .content > h6:before {
  content: '# ';
  font-weight: lighter;
  color: #bbbbbb;
  transition: all 0.3s;
}
.page-wrapper .content blockquote {
  color: #666;
  border-left: 3px solid #3b99f5;
  padding: 1px 20px;
  margin: 20px 40px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
  background-color: rgba(255, 255, 255, 0.5);
}
.page-wrapper .content blockquote:hover {
  border-left-width: 5px;
}
.page-wrapper .content img {
  height: auto;
  border-radius: 2px;
  display: block;
  margin: 12px auto;
}
.page-wrapper .content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
}
.page-wrapper .content details {
  margin: 12px 40px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid #94a3b8;
}
.page-wrapper .content .footnotes {
  margin-top: 24px;
  font-size: 0.85em;
  color: #666;
}
.page-wrapper .content pre ::-webkit-scrollbar {
  height: 9px;
  width: 9px;
  background-color: transparent;
}
.page-wrapper .content pre ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s;
}
.page-wrapper .content pre ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.45);
}
.page-wrapper .content pre ::-webkit-scrollbar-thumb:active {
  background-color: rgba(255, 255, 255, 0.55);
}
.page-wrapper .content pre code {
  max-height: 410px;
  background-color: #1E1E1E !important;
  margin: 0!important;
  border-radius: 2px;
  padding: 10px 15px!important;
  display: block;
  overflow: auto;
  box-shadow: none;
}
.page-wrapper .content code {
  background-color: #4a4a4a;
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.85rem;
  margin: 0 5px;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.15), 1px 1px 8px rgba(0, 0, 0, 0.15);
}
/* 评论样式 */
#comments {
  transition: opacity 0.3s;
}
#comments li {
  list-style: none;
}
#comments {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
}
#comments > li {
  display: none;
}
#comment-template-list {
  display: none !important;
}
#comments .comment-author span .avatar {
  border-radius: 50%;
  margin-bottom: -10px;
}
#comments .comment-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
#comments .comment-author-avatar {
  flex-shrink: 0;
  line-height: 0;
}
#comments .comment-child .comment-author-info {
  margin-top: 0!important;
}
#comments .comment-author-info {
  margin-top: 0;
  margin-left: 0;
  flex: 1;
  min-width: 0;
  width: auto;
}
#comments .comment-author-info .comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: 20px;
  height: auto;
}
#comments .comment-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
  line-height: 1.3;
}
#comments .comment-time {
  font-size: 12px;
  margin-left: 0;
  color: #9a9a9a;
  transition: color 0.2s;
}
#comments .comment-time .detail-time {
  color: #9a9a9a;
  font-size: 12px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
#comments .comment-time:hover .detail-time {
  opacity: 1;
}
#comments .comment-reply {
  background-color: rgba(0, 0, 0, 0.04);
  margin: 8px 0 0 8px;
  display: flex;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  flex-direction: column;
  padding: 0;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  color: #5d5c5c;
  transition: all 0.2s;
  flex-shrink: 0;
  align-self: flex-start;
}
#comments .comment-reply .mdi {
  color: inherit;
  transition: all 0.2s;
  font-size: 18px;
  line-height: 1;
}
#comments .comment-reply:hover {
  background-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  color: #111;
  opacity: 1;
}
#comments .comment-reply:active {
  background-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
  color: #111;
  opacity: 1;
}
#comments .comment-reply:active .mdi {
  margin-left: 0;
  margin-right: 0;
}
#comments .comment-content {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #3a3a3a;
  transition: all 0.2s;
}
#comments .comment-content * {
  max-width: 100%;
}
#comments .comment-content p {
  margin: 4px 0;
}
#comments .comment-list {
  padding: 0;
  margin: 0;
  overflow: hidden;
}
#comments > .comment-list > li {
  border-top: solid 1px rgba(0, 0, 0, 0.06);
  padding: 0 16px;
  margin: 0;
  overflow: hidden;
  background-color: transparent;
  list-style: none;
}
#comments > .comment-list > li:first-child {
  border-top: none;
}
#comments > .comment-list > li:nth-child(2n) {
  background-color: transparent;
}
#comments .a-comment {
  display: flex;
  align-items: flex-start;
}
#comments .a-comment:hover .comment-reply {
  opacity: 1;
}
#comments .a-comment:hover .comment-time {
  color: #777;
}
#comments .a-comment:hover .comment-content {
  padding-right: 0;
}
#comments .comment-children {
  margin: 0 0 4px;
}
#comments .comment-children li {
  padding: 0 !important;
  background: transparent !important;
  border-top: none !important;
}
#comments .comment-element {
  padding: 14px 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#comments > .comment-list > li > .comment-children > .comment-list > li {
  list-style: none;
  padding: 0 0 0 12px !important;
  margin: 0 0 0 18px;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
}
#comments > .comment-list > li > .comment-children > .comment-list > li > .comment-children > .comment-list > li {
  list-style: none;
  padding: 0 0 0 10px !important;
  margin: 0 0 0 14px;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
}
#comments .comment-info {
  display: flex;
}
#comments .comment-info input {
  width: 100%;
  border: none;
  -webkit-appearance: none;
  outline: none;
  font-size: 14px;
  padding: 5px;
  background-color: transparent;
  color: rgba(212, 212, 212, 0.8);
  transition: background-color 0.5s, border-bottom 0.5s, color 0.5s;
  border-bottom: solid 1px rgba(212, 212, 212, 0.4);
}
#comments .avatar {
  border-radius: 50%;
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
#comments .comments-head {
  display: flex;
  font-size: 0.95rem;
  align-items: center;
  padding: 12px 16px;
  font-weight: 600;
  background-color: #6f6f6f;
  color: white;
}
#comments .comment-child img.avatar {
  width: 32px;
  height: 32px;
}
#comments .comment-child .comment-element {
  padding: 10px 0;
}
#comments .comment-child .comment-content {
  margin-top: 4px;
  font-size: 12.5px;
}
#comments .comment-child .comment-content p {
  margin: 0;
}
#comments .comment-child .comment-author-name {
  font-size: 13px;
}
#comments .comment-child .comment-time {
  font-size: 11px;
}
#comments a {
  color: #8384ea;
}
#comment-form {
  margin: 20px 40px 0;
}
#comment-form form {
  margin-bottom: 0;
}
#comment-form .send-comment .reply-info {
  transition: all 0.25s;
  height: 34px;
  padding: 0 20px;
  justify-content: space-between;
  background-color: #78c755;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  display: flex;
  align-items: center;
}
#comment-form .send-comment .reply-info .left {
  color: white;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
}
#comment-form .send-comment .reply-info span {
  color: white;
}
#comment-form .send-comment .reply-info-closed {
  height: 0;
  opacity: 0;
  padding: 0 45px;
}
#comment-form .send-comment {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: 0;
  margin: 0;
  position: relative;
}
#comment-form:hover .extra {
  margin-right: 0;
}
#comment-form .send-comment textarea {
  width: 100%;
  resize: none;
  max-width: 100%;
  box-sizing: border-box;
  border: none;
  -webkit-appearance: none;
  padding: 15px 20px;
  outline: none;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  background-color: white;
  color: #222;
  background-size: 135px;
  transition: all 0.5s, background-position 0.3s, background-size 0.3s;
  background-image: url(../img/kongou.png);
  background-repeat: no-repeat;
  background-position: right bottom;
}
#comment-form:hover .send-comment textarea {
  background-position: right 70px bottom;
  background-size: 100px;
}
#comment-form .send-comment .send {
  background-color: #bdeaff;
  margin-right: 10px;
  cursor: pointer;
  display: flex;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  flex-direction: column;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  margin: -25px 15px;
  z-index: 1;
  padding: 0;
  align-items: center;
  animation: roll-out 0.3s;
  animation-fill-mode: forwards;
  justify-content: center;
  opacity: 0;
  color: #5d5c5c;
  transition: all 0.25s;
}
#comment-form:hover .send {
  animation: roll-in 0.3s;
  animation-fill-mode: forwards!important;
}
#comment-form .send-comment .send .mdi {
  color: inherit;
  transition: all 0.25s;
}
#comment-form .send-comment .send:hover {
  background-color: #abe4ff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1), inset 0px 0px 0px rgba(0, 0, 0, 0.1);
  color: #000;
}
#comment-form .send-comment .send:active {
  background-color: #abe4ff;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1), inset 0px 0px 15px rgba(0, 0, 0, 0.1);
  color: #000;
}
#comment-form .send-comment .send:active .mdi {
  margin-left: 2px;
  margin-right: -2px;
}
#comment-form .extra {
  display: none;
}
#comment-form .extra input {
  margin: 0 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.04);
  width: 100%;
  border: none;
  -webkit-appearance: none;
  outline: none;
  font-size: 12px;
  color: #222;
  padding: 6px 8px;
  background-color: white;
  transition: all 0.5s;
}
#comment-form .extra input:hover,
#comment-form .extra input:focus,
#comment-form textarea:hover,
#comment-form textarea:focus {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.03), 0px 0px 15px rgba(0, 0, 0, 0.08);
}
@keyframes roll-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes roll-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}
@keyframes notify-show-hide {
  0% {
    opacity: 0;
    transform: translate(100vw, 0);
    margin-bottom: 15px;
  }
  15% {
    opacity: 1;
    transform: translate(0, 0);
    margin-bottom: 15px;
  }
  85% {
    opacity: 1;
    transform: translate(0, 0);
    margin-bottom: 15px;
  }
  100% {
    opacity: 0;
    margin-bottom: -68px;
  }
}
.right-in-animation {
  animation: right-in 0.5s;
  animation-timing-function: cubic-bezier(0, 0, 0.4, 1);
}
/* 门户为首屏时隐藏的 #archive 内不要播入场，避免 FOUC 时胶囊抢跑 */
#archive:not(.move-show) .right-in-animation {
  animation: none !important;
}
@keyframes right-in {
  from {
    transform: translate(100vw);
  }
  to {
    transform: translate(0);
  }
}
@keyframes bottom-in {
  from {
    transform: translate(0, 100vh);
  }
  to {
    transform: translate(0);
  }
}
/* 杂项：全局隐藏横向滚动条，仍可滚动 */
::-webkit-scrollbar:horizontal {
  height: 0;
  display: none;
}
::-webkit-scrollbar {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:active {
  background-color: rgba(0, 0, 0, 0.5);
}
/* 页面转换效果：柔和位移 + 轻缩放 + 平滑缓动 */
.move-show {
  display: block;
}
/* 切屏时若仍带 HTML hidden，用 move-show 压过 UA [hidden] */
.screen.move-show {
  display: block !important;
}
[class*="move-animation-"],
.candy-screen-transition-in,
.candy-screen-transition-out {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* 视角右移 */
.move-animation-right-out {
  animation: move-right-out 0.62s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes move-right-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(-16vw, 0, 0) scale(0.98);
  }
}
.move-animation-right-in {
  animation: move-right-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes move-right-in {
  from {
    opacity: 0;
    transform: translate3d(16vw, 0, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* 视角左移 */
.move-animation-left-out {
  animation: move-left-out 0.62s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes move-left-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(16vw, 0, 0) scale(0.98);
  }
}
.move-animation-left-in {
  animation: move-left-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes move-left-in {
  from {
    opacity: 0;
    transform: translate3d(-16vw, 0, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* 视角上移 */
.move-animation-up-out {
  animation: move-up-out 0.62s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes move-up-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 26vh, 0) scale(0.94);
  }
}
.move-animation-up-in {
  animation: move-up-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes move-up-in {
  from {
    opacity: 0;
    transform: translate3d(0, -26vh, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* 视角下移 */
.move-animation-down-out {
  animation: move-down-out 0.62s cubic-bezier(0.33, 0, 0.2, 1) both !important;
}
@keyframes move-down-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -28vh, 0) scale(0.94);
  }
}
.move-animation-down-in {
  animation: move-down-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
@keyframes move-down-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28vh, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
/* 居中放大（门户内容层） */
.move-animation-zoom-out {
  animation: move-zoom-out 0.72s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  transform-origin: center center;
}
@keyframes move-zoom-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.92);
  }
}
.move-animation-zoom-in {
  animation: move-zoom-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: center center;
}
@keyframes move-zoom-in {
  from {
    opacity: 0;
    transform: translate3d(0, 5vh, 0) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@media (max-width: 720px) {
  .move-animation-zoom-in {
    animation-name: move-zoom-in-mobile;
  }
  @keyframes move-zoom-in-mobile {
    from {
      opacity: 0;
      transform: translate3d(0, 8vh, 0) scale(0.88);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}
/* 列表↔文章：旧版切换（0.8s / 大幅位移） */
.move-animation-up-out-classic {
  animation: move-up-out-classic 0.8s ease-in-out forwards;
}
@keyframes move-up-out-classic {
  from {
    opacity: 1;
    transform: scale(1) translate(0);
  }
  to {
    opacity: 0;
    transform: scale(0.7) translate(0, 100vw);
  }
}
.move-animation-up-in-classic {
  animation: move-up-in-classic 0.8s ease-in-out forwards;
}
@keyframes move-up-in-classic {
  from {
    opacity: 0;
    transform: scale(0.7) translate(0, -100vw);
  }
  to {
    opacity: 1;
    transform: scale(1) translate(0);
  }
}
.move-animation-down-out-classic {
  animation: move-down-out-classic 0.8s ease-in-out forwards;
}
@keyframes move-down-out-classic {
  from {
    opacity: 1;
    transform: scale(1) translate(0);
  }
  to {
    opacity: 0;
    transform: scale(0.7) translate(0, -100vw);
  }
}
.move-animation-down-in-classic {
  animation: move-down-in-classic 0.8s ease-in-out forwards;
}
@keyframes move-down-in-classic {
  from {
    opacity: 0;
    transform: scale(0.7) translate(0, 100vw);
  }
  to {
    opacity: 1;
    transform: scale(1) translate(0);
  }
}
/* 入场立刻套用 from；并防止其它样式表（如门禁 tech.css 的 * 规则）把切屏时长压成 0 */
.move-animation-right-out,
.move-animation-right-in,
.move-animation-left-out,
.move-animation-left-in,
.move-animation-up-out,
.move-animation-up-in,
.move-animation-down-out,
.move-animation-down-in {
  animation-fill-mode: both !important;
  animation-duration: 0.62s !important;
}
/* 切屏动画层：整屏或门户内容层，禁止 transition 干扰 keyframes */
#archive[class*="move-animation-"],
#page[class*="move-animation-"],
#home-more[class*="move-animation-"],
#usercenter[class*="move-animation-"],
#index.candy-home > #home-move-layer[class*="move-animation-"] {
  transition: none !important;
}
#archive[class*="move-animation-"] .archive-container,
#archive[class*="move-animation-"] .category-container {
  transition: none !important;
}
.move-animation-zoom-out,
.move-animation-zoom-in {
  animation-fill-mode: both !important;
  animation-duration: 0.72s !important;
}
.move-animation-up-out-classic,
.move-animation-up-in-classic,
.move-animation-down-out-classic,
.move-animation-down-in-classic {
  animation-fill-mode: both !important;
  animation-duration: 0.8s !important;
}
/* 自适应 */
@media (max-width: 991px) {
  html {
    font-size: 14.5px;
  }
  @keyframes notify-show-hide {
    0% {
      opacity: 0;
      transform: translate(100vw, 0);
      margin-bottom: 15px;
    }
    15% {
      opacity: 1;
      transform: translate(0, 0);
      margin-bottom: 15px;
    }
    85% {
      opacity: 1;
      transform: translate(0, 0);
      margin-bottom: 15px;
    }
    100% {
      opacity: 0;
      margin-bottom: -63px;
    }
  }
  #comment-form .extra {
    flex-direction: column;
  }
  #comment-form .extra input {
    margin: 5px 0!important;
  }
  #comment-form .extra svg {
    display: none;
  }
  #comments .comment-reply {
    opacity: 0.85;
    width: 34px;
    height: 34px;
  }
  #comments .comment-element {
    padding: 12px 0 !important;
  }
  #archive {
    overflow: auto;
  }
  /* iOS：输入框 <16px 聚焦会整页放大且不易恢复 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  .search-overlay-input {
    font-size: 16px !important;
  }
  .archive-container,
  .category-container {
    height: auto;
    overflow-x: hidden;
    overflow-y: scroll;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  /* 手机端 height:auto，-100vh 藏不住整列文章，改为直接隐藏底层 */
  body.on-category .archive-container {
    display: none !important;
    transform: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.on-category .category-container {
    display: flex !important;
    transform: none !important;
    height: auto !important;
    min-height: calc(100vh - 64px);
    overflow-x: hidden !important;
    overflow-y: visible !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .article-list {
    display: flex;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    height: auto;
    overflow-x: auto;
    overflow-y: auto;
  }
  /* 小屏幕不显示作者/归档胶囊 */
  .author-rail,
  .archive-rail {
    display: none !important;
  }
  /* 标签索引：手机端单卡居中 */
  body.on-tags-index .tags-index-panel,
  .category-container:has(.tags-index-panel) .tags-index-panel {
    width: calc(100vw - 20px);
    max-width: 720px;
    margin: calc(10px + env(safe-area-inset-top, 0px)) auto calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 16px 14px 18px;
    border-radius: 20px;
  }
  body.on-tags-index .tags-index-header,
  .category-container:has(.tags-index-panel) .tags-index-header {
    padding-bottom: 14px;
    margin-bottom: 6px;
  }
  body.on-tags-index .tags-index-grid,
  .category-container:has(.tags-index-panel) .tags-index-grid {
    gap: 8px;
    padding-top: 4px;
  }
  body.on-tags-index .tags-index-panel .archive-info-tag,
  .category-container:has(.tags-index-panel) .tags-index-panel .archive-info-tag {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  body.on-tags-index .category-container,
  .category-container:has(.tags-index-panel) {
    min-height: calc(100vh - 64px);
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .category-container .article-list .bean-article:first-child {
    margin-top: 10px !important;
  }
  .category-container .article-list {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .archive-empty {
    min-width: 0;
    width: calc(100vw - 20px);
    margin: 16px 10px 24px;
    min-height: 160px;
  }
  .article-list .bean-article {
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15);
    margin: 16px 10px 0 !important;
    width: calc(100vw - 20px);
    height: 280px;
  }
  .article-list .bean-article .article-title {
    font-size: 1.25rem;
    white-space: normal;
  }
  .article-list .bean-article .article-title span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  .article-list .bean-article-textonly {
    height: 260px;
  }
  .article-list .bean-article-textonly .article-content {
    padding: 8px 18px 48px;
    font-size: 0.88rem;
  }
  /* B2 毛玻璃顶栏 */
  .menu {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    align-items: center;
  }
  body.admin-bar .menu {
    top: calc(10px + var(--wp-admin--admin-bar--height, 46px));
  }
  .menu .mdi {
    margin-right: 0 !important;
  }
  .menu .menu-brand {
    display: inline-flex;
    margin-left: 4px;
    color: #333;
  }
  .menu .menu-left #back {
    opacity: 1;
  }
  .menu .desktop-nav-pages {
    display: none !important;
  }
  .menu .item {
    color: #444 !important;
    margin: 0 4px;
  }
  body.on-article .menu {
    display: none !important;
    /* A2：文章页让位给 banner */
  }
  #index,
  #archive {
    padding-top: 64px;
    box-sizing: border-box;
  }
  #index.candy-home {
    padding-top: 0 !important;
  }
  body.on-index #index {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.on-index #index.candy-home {
    display: block !important;
    align-items: stretch;
    justify-content: stretch;
  }
  /* 旧 splash 居中；candy-home 门户由 bridge 全屏铺满，勿下移以免 Move 结束后跳动 */
  #index:not(.candy-home) > div {
    margin: 0 auto !important;
    padding: 0 24px;
    box-sizing: border-box;
    transform: translateY(6vh);
  }
  .page-wrapper {
    margin: 0;
    max-width: 100vw;
    min-width: 100vw;
  }
  .page-wrapper .cover {
    height: 245px;
    width: 100vw;
  }
  .page-wrapper .cover .cover-image {
    width: 100vw;
  }
  .page-wrapper .cover .cover-image .title {
    font-size: 1.55rem;
    padding: 10px 20px;
  }
  .page-wrapper .content > * {
    padding: 0 20px;
  }
  .page-wrapper .content > ul {
    padding: 0 50px;
  }
  .page-wrapper .content > h1,
  .page-wrapper .content h2,
  .page-wrapper .content h3 {
    padding: 0 10px;
    margin: 0 10px;
  }
  .page-wrapper .content blockquote {
    margin: 10px 20px;
  }
  .page-wrapper .title {
    font-size: 1.5rem;
  }
  .page-wrapper .content pre {
    padding: 0;
    margin: 0;
  }
  .page-wrapper .content pre code {
    max-height: 300px;
  }
  #comments .comments-head {
    padding: 10px 14px;
  }
  #comments > .comment-list > li {
    padding: 0 12px;
  }
  #comments .comment-content {
    margin-top: 5px;
  }
  #comments > .comment-list > li > .comment-children > .comment-list > li {
    margin-left: 10px;
    padding-left: 10px !important;
  }
  #comments > .comment-list > li > .comment-children > .comment-list > li > .comment-children > .comment-list > li {
    margin-left: 8px;
    padding-left: 8px !important;
  }
  #comment-form {
    margin: 20px 20px 0;
  }
  ::-webkit-scrollbar {
    display: none;
  }
  .article-toc {
    display: none!important;
  }
  .page-loading,
  .candy-loader.page-loading {
    margin: 0;
  }
}
/* —— Candy 通用加载动画（门户同款） —— */
@keyframes candy-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes candy-loader-spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
.candy-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: #333;
  color: #fff;
}
.candy-loader .loader {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.candy-loader .loader-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  animation: candy-loader-spin 1.8s linear infinite;
  position: relative;
}
.candy-loader .loader-circle:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #a4a4a4;
  animation: candy-loader-spin-reverse 0.6s linear infinite;
}
.candy-loader .loader-circle:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #d3d3d3;
  animation: candy-loader-spin 1s linear infinite;
}
.candy-loader .loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  font-size: 24px;
}
.candy-loader .loader-text .tip {
  font-size: 18px;
  opacity: 0.6;
}
.candy-loader .loader-section {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  background: #333;
  z-index: 1;
}
.candy-loader .loader-section.section-left { left: 0; }
.candy-loader .loader-section.section-right { right: 0; }
.page-container > .candy-loader.page-loading,
.usercenter-container > .candy-loader.page-loading,
.category-container > .candy-loader.candy-inline-loading,
.archive-container > .candy-loader.candy-inline-loading,
#index.candy-home > .candy-loader.candy-inline-loading,
#home-more > .candy-loader.candy-inline-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  /* SPA 内切换：透出全站壁纸，避免整屏 #333 黑闪 */
  background: transparent;
}
.page-container > .candy-loader.page-loading .loader-section,
.usercenter-container > .candy-loader.page-loading .loader-section,
.category-container > .candy-loader.candy-inline-loading .loader-section,
.archive-container > .candy-loader.candy-inline-loading .loader-section,
#index.candy-home > .candy-loader.candy-inline-loading .loader-section,
#home-more > .candy-loader.candy-inline-loading .loader-section {
  display: none;
}
#home-more > .candy-loader.candy-inline-loading {
  z-index: 40;
}
#candy-portal-boot.candy-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}
/* 旧悬浮 TOC 默认隐藏，勿作用于文章页侧栏目录 */
.article-toc.toc-float {
  position: fixed;
  right: 18px;
  top: 90px;
  width: 220px;
  max-height: 70vh;
  overflow: auto;
  z-index: 8;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: all 0.25s;
}
.article-toc.toc-float.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.article-toc.toc-float .toc-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.article-toc.toc-float ul {
  margin: 0;
  padding-left: 16px;
}
.article-toc.toc-float a {
  color: #555;
  display: block;
  padding: 3px 0;
}
.article-toc.toc-float a:hover {
  color: #1a73e8;
}
body.reading-mode .bg,
html.reading-mode .bg {
  filter: blur(0) brightness(0.42);
}
/* 日夜切换：夜间通过 token 覆盖全站玻璃层 / 设置 / 个人中心 / 文章 */
body.reading-mode,
html.reading-mode {
  --candy-text: #e8e6f2;
  --candy-muted: rgba(232, 230, 242, 0.58);
  --candy-article-bg: rgba(24, 24, 32, 0.94);
  --candy-tool-bg: rgba(40, 40, 54, 0.72);
  --candy-glass-border: rgba(255, 255, 255, 0.14);
  --candy-overlay-bg: linear-gradient(145deg, rgba(30, 30, 42, 0.94) 0%, rgba(36, 34, 52, 0.92) 48%, rgba(26, 26, 36, 0.9) 100%);
  --candy-overlay-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color-scheme: dark;
}
body.reading-mode .bean {
  background-color: rgba(32, 32, 44, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--candy-text);
  box-shadow: -5px -5px 14px rgba(0, 0, 0, 0.28), 5px 5px 14px rgba(0, 0, 0, 0.22);
}
body.reading-mode .author-info.bean-main {
  background-color: rgba(34, 34, 46, 0.88);
  color: var(--candy-text);
}
body.reading-mode .archive-empty {
  background: rgba(32, 32, 44, 0.72);
  color: var(--candy-muted);
}
body.reading-mode .tags-index-panel {
  background-color: rgba(32, 32, 44, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--candy-text);
  box-shadow: -5px -5px 14px rgba(0, 0, 0, 0.28), 5px 5px 14px rgba(0, 0, 0, 0.22);
}
body.reading-mode .tags-index-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.reading-mode .tags-index-panel .archive-info-title {
  color: var(--candy-text);
}
body.reading-mode .tags-index-panel .archive-info-count-label {
  color: var(--candy-muted);
}
body.reading-mode .page-wrapper,
body.reading-mode .bean-read.page-wrapper {
  background: var(--candy-article-bg) !important;
  color: var(--candy-text);
}
body.reading-mode .page-wrapper .title {
  background: transparent;
  color: var(--candy-text);
}
body.reading-mode .page-wrapper .title .meta {
  color: var(--candy-muted);
}
body.reading-mode .page-wrapper .content,
body.reading-mode .article-content,
body.reading-mode .article-shell .article-content.content {
  color: var(--candy-text);
}
body.reading-mode .page-wrapper .content,
body.reading-mode .article-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
body.reading-mode h1,
body.reading-mode h2,
body.reading-mode h3,
body.reading-mode h4,
body.reading-mode h5,
body.reading-mode h6,
body.reading-mode b,
body.reading-mode strong {
  color: #f2f0fa;
}
body.reading-mode .candy-loader.page-loading {
  background: #333;
  color: #f2f0fa;
}
body.reading-mode .article-banner.scrolled .banner-content {
  background: rgba(28, 28, 38, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--candy-text);
}
body.reading-mode .article-shell .article-content blockquote {
  background: rgba(255, 255, 255, 0.06);
}
body.reading-mode .article-shell .article-adjacent .adjacent-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--candy-text);
}
body.reading-mode .tool-btn {
  color: var(--candy-text);
}
body.reading-mode .article-comment-panel {
  background: rgba(28, 28, 38, 0.95);
  color: var(--candy-text);
}
body.reading-mode .comment-login-required {
  background: rgba(40, 40, 52, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--candy-text);
}
body.reading-mode .tool-btn.has-comments:after {
  background: rgba(40, 40, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--candy-text);
}
body.reading-mode .search-overlay-panel,
body.reading-mode .search-overlay-bar {
  background: rgba(28, 28, 38, 0.94);
  color: var(--candy-text);
}
body.reading-mode .notify-container .notify {
  background: rgba(32, 32, 44, 0.94);
  color: var(--candy-text);
}
/* 个人中心：硬编码浅色块跟随夜间 */
body.reading-mode .usercenter-shell .uc-hero,
body.reading-mode .usercenter-shell .uc-panel,
body.reading-mode .usercenter-shell .uc-tab,
body.reading-mode .usercenter-shell .uc-form-row input,
body.reading-mode .usercenter-shell .uc-form-row textarea,
body.reading-mode .usercenter-shell .uc-btn-ghost,
body.reading-mode .usercenter-shell .uc-oauth-item,
body.reading-mode .usercenter-shell .uc-unbind-pass {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--candy-text);
}
body.reading-mode .usercenter-shell .uc-tabs {
  background: rgba(255, 255, 255, 0.06) !important;
}
body.reading-mode .usercenter-shell .uc-badge-off {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--candy-muted);
}
.menu .item[aria-pressed="true"] {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}
/* ===== Candy2-inspired article layout ===== */
:root {
  --candy-accent: #8172ef;
  --candy-accent-soft: rgba(129, 114, 239, 0.18);
  --candy-accent-border: rgba(129, 114, 239, 0.35);
  --candy-text: #2a2a32;
  --candy-muted: rgba(42, 42, 50, 0.55);
  --candy-article-bg: rgba(255, 255, 255, 0.96);
  --candy-tool-bg: rgba(255, 255, 255, 0.55);
  --candy-glass-border: rgba(255, 255, 255, 0.35);
  --candy-overlay-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 243, 255, 0.88) 48%, rgba(255, 255, 255, 0.86) 100%);
  --candy-overlay-shadow: 0 18px 48px rgba(32, 32, 48, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  --candy-overlay-radius: 20px;
}
body.on-article .menu .drop-down {
  display: none !important;
}
#page.page {
  overflow: hidden !important;
}
.page-container-article {
  align-items: stretch;
  height: 100vh;
  width: 100vw;
  padding: 0;
  box-sizing: border-box;
}
.article-shell {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  padding: 0 24px;
  box-sizing: border-box;
  transition: padding 0.4s;
}
.article-shell .bean-read.page-wrapper {
  background: #f6f6f6;
  backdrop-filter: none;
  margin: 50px 0;
  min-width: 0;
  width: 800px;
  max-width: min(800px, calc(100vw - 40px));
  height: calc(100vh - 100px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: -5px -5px 10px rgba(32, 32, 32, 0.1), 5px 5px 10px rgba(32, 32, 32, 0.1);
  scrollbar-width: none;
  transition: width 0.45s cubic-bezier(0.33, 1, 0.68, 1), max-width 0.45s cubic-bezier(0.33, 1, 0.68, 1), margin 0.45s cubic-bezier(0.33, 1, 0.68, 1), transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  flex-shrink: 0;
}
/* 文章内页位置：居左 / 居中 / 居右（作用于正文 .bean-read） */
body.article-place-left .article-shell {
  justify-content: flex-start;
  padding-left: 28px;
  padding-right: 20px;
}
body.article-place-left .article-shell > .article-toc {
  margin-right: 20px;
}
body.article-place-left .bean-aside {
  margin-left: 24px;
}
/* 居中：登录/个人中心仍 flex 居中；文章页见下方 grid，避免 TOC 把正文挤偏 */
body.article-place-middle .article-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* 评论未展开：1fr | 正文 | 1fr，.bean-read 相对视口居中（有无 TOC 都一样） */
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 20px;
  justify-content: stretch;
  align-items: center;
}
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .article-toc {
  grid-column: 1;
  justify-self: end;
  flex: unset;
  width: 200px;
  max-width: 100%;
  min-width: 0;
  margin: 100px 0 0 0;
}
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .bean-read.page-wrapper {
  grid-column: 2;
  justify-self: center;
  flex: unset;
}
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .bean-aside {
  grid-column: 3;
  justify-self: start;
  flex: unset;
  margin-left: 0;
  align-self: center;
  min-width: 0;
  transition: margin 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
/* 空/折叠 TOC 仍占第 1 列，作为左侧 1fr 占位，避免正文跟着侧栏偏右 */
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .article-toc.toc-empty,
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .article-toc[hidden],
body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .article-toc.is-collapsed:not(.toc-empty):not([hidden]) {
  width: auto !important;
  flex-basis: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
/* 评论展开：回到 flex 整组居中，给评论侧栏让位 */
body.article-place-middle .article-shell.show-comment:not(.login-shell):not(.usercenter-shell) {
  display: flex;
  justify-content: center;
  align-items: center;
}
body.article-place-middle .article-shell.show-comment > .article-toc {
  flex: 0 0 auto;
  margin: 100px 40px 0 0;
}
body.article-place-middle .article-shell.show-comment > .bean-read.page-wrapper {
  flex: 0 1 auto;
}
body.article-place-middle .article-shell > .bean-aside {
  flex: 0 0 auto;
  margin-left: 20px;
  align-self: center;
  min-width: 0;
  transition: margin 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
/* 评论展开：大屏正文宽度不变；中小屏在下方 media 中恢复旧布局 */
body.article-place-middle .article-shell.show-comment > .bean-aside {
  margin-left: 8px;
  height: calc(100vh - 100px);
  max-width: none;
  flex: 0 0 auto;
}
body.article-place-middle .article-shell.show-comment .article-comment-panel {
  width: 300px;
  max-width: 300px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
body.article-place-right .article-shell {
  justify-content: flex-end;
  padding-left: 20px;
  padding-right: 28px;
}
body.article-place-right .article-shell > .article-toc {
  margin-right: 20px;
}
body.article-place-right .bean-aside {
  margin-left: 24px;
}
.article-shell .bean-read.page-wrapper::-webkit-scrollbar {
  display: none;
}
.article-shell .bean-read .title,
.article-shell .bean-read .cover,
.article-shell .bean-read .content {
  /* neutralize legacy nested rules where needed */
}
.article-cover {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.5s;
}
.article-cover-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.article-cover.has-slider .article-cover-slides {
  pointer-events: auto;
  touch-action: pan-y;
  cursor: grab;
}
.article-cover.has-slider.is-cover-dragging .article-cover-slides {
  cursor: grabbing;
  user-select: none;
  touch-action: none;
}
.article-cover-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}
.article-cover-track.is-dragging {
  transition: none;
}
.article-cover-slide {
  height: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
@media (prefers-reduced-motion: reduce) {
  .article-cover-track {
    transition: none;
  }
}
.article-cover-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.article-cover:hover .article-cover-nav,
.article-cover:focus-within .article-cover-nav {
  opacity: 1;
}
.article-cover-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}
.article-cover-prev {
  left: 14px;
}
.article-cover-next {
  right: 14px;
}
.article-cover-nav .mdi {
  font-size: 22px;
  line-height: 1;
}
.article-cover-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.article-cover-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.article-cover-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}
.article-cover-plain {
  background: linear-gradient(135deg, #2d3748, #4a5568);
}
.article-cover > .article-title {
  position: relative;
  z-index: 2;
  color: #f0f0f0;
  padding: 25px 30px 25px;
  text-shadow: 0 0 5px rgba(35, 35, 35, 0.5), 0 0 5px rgba(35, 35, 35, 0.5);
  font-size: 32px;
  font-weight: bold;
  line-height: 1.35;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
  border: none !important;
  margin: auto 0 0 !important;
}
.article-cover > .article-title:before {
  display: none !important;
}
.article-cover .article-category {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  user-select: none;
  padding: 0;
  flex-direction: row;
  text-shadow: none;
  pointer-events: auto;
}
.article-cover .article-category .category-item {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  color: #222 !important;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  text-shadow: none;
}
.article-cover .article-category .category-item .item-text {
  font-size: 14px;
  line-height: 1.4;
}
.article-cover .article-category .tag-item {
  background-color: rgba(255, 255, 255, 0.22);
  color: #f5f5f5 !important;
  box-shadow: 0 0 10px rgba(32, 32, 32, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.article-cover .article-category .tag-item .item-text::before {
  content: '#';
}
.article-banner {
  position: sticky;
  top: 20px;
  z-index: 5;
  display: flex;
  margin: -30px 20px 0;
  padding: 0;
  box-sizing: border-box;
  transition: top 0.2s ease, margin-left 0.2s ease, margin-right 0.2s ease;
}
#banner-progressbar {
  height: 2px;
  margin-top: 53px;
  left: 0;
  width: 0%;
  max-width: 100%;
  background-color: #66ccff;
  position: absolute;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: width 0.1s linear, opacity 0.15s ease;
}
.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  width: 100%;
  min-height: 53px;
  padding: 8px 20px 8px 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 5px 5px 10px rgba(32, 32, 32, 0.1);
  color: #333;
  font-size: 13px;
  font-family: var(--candy-font-sans);
  box-sizing: border-box;
  z-index: 10;
  transform: translateZ(0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease, background 0.2s ease;
}
.banner-author {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  min-height: 37px;
}
.banner-author-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.banner-author-meta > span {
  font-weight: bold;
}
.author-avatar {
  width: 37px;
  height: 37px;
  margin-right: 10px;
  flex-shrink: 0;
}
.author-avatar img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #b9b9b9;
  box-shadow: 0 0 10px rgba(32, 32, 32, 0.1);
  display: block;
  object-fit: cover;
  margin: 0 auto;
}
.author-name {
  font-weight: 700;
  white-space: nowrap;
}
.publish-time {
  margin-left: 10px;
  font-weight: 400;
  color: #7e7e7e;
  white-space: nowrap;
}
.small-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 37px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.banner-tools {
  color: #7e7e7e;
  position: relative;
  flex-shrink: 0;
  min-height: 37px;
  display: flex;
  align-items: center;
}
.banner-tools .reading-time {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 37px;
  box-sizing: border-box;
  transition: width 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-radius 0.2s ease;
}
.reading-time-label {
  transition: opacity 0.15s ease;
}
.reading-time-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.article-banner.scrolled .reading-time-label {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}
.article-banner.scrolled .reading-time {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #66ccff;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}
.article-banner.scrolled .reading-time-pct {
  opacity: 1;
  visibility: visible;
}
.reading-time-top {
  position: absolute;
  inset: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.reading-time-top .mdi {
  font-size: 20px;
  line-height: 1;
}
.article-banner.scrolled .reading-time.is-complete {
  cursor: pointer;
}
.article-banner.scrolled .reading-time.is-complete .reading-time-pct {
  opacity: 0;
  visibility: hidden;
}
.article-banner.scrolled .reading-time.is-complete .reading-time-top {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* 下滑过封面后：贴顶 + 短标题 + 进度条 */
.article-banner.scrolled {
  top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* 保持 margin-top:-30px，避免 sticky 占位高度跳变闪屏 */
}
.article-banner.scrolled .banner-content {
  border-radius: 0;
  border-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  padding-right: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.article-banner.scrolled .banner-author-meta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.article-banner.scrolled .small-title {
  opacity: 1;
  visibility: visible;
}
.article-banner.scrolled #banner-progressbar {
  opacity: 1;
}
.article-shell .article-content.content {
  padding: 10px 50px 40px;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  word-wrap: break-word;
}
.article-shell .article-content > * {
  padding: 0 !important;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.article-shell .article-content p {
  margin-bottom: 1.5em;
  text-align: start;
}
.article-shell .article-content a {
  color: var(--candy-accent);
  font-weight: 500;
  padding: 0 2px;
  border-bottom: 1px dashed rgba(129, 114, 239, 0.5);
  text-decoration: none;
}
.article-shell .article-content a:hover {
  color: #fff;
  background: var(--candy-accent);
  border-radius: 4px;
  border-bottom-color: transparent;
  box-shadow: 0 2px 8px rgba(129, 114, 239, 0.4);
}
.article-shell .article-content h1,
.article-shell .article-content h2,
.article-shell .article-content h3,
.article-shell .article-content h4,
.article-shell .article-content h5,
.article-shell .article-content h6 {
  border: none !important;
  margin: 2em 0 1em !important;
  padding: 0 !important;
  line-height: 1.4;
  position: relative;
}
.article-shell .article-content h1:before,
.article-shell .article-content h2:before,
.article-shell .article-content h3:before,
.article-shell .article-content h4:before {
  /* reset legacy page-wrapper heading markers; h2/h3 re-add below */
  content: none;
}
.article-shell .article-content h1 {
  font-size: 1.8em;
  color: var(--candy-accent);
  border-bottom: 2px dashed rgba(129, 114, 239, 0.3) !important;
  padding-bottom: 10px !important;
  display: inline-block;
}
.article-shell .article-content h2 {
  font-size: 1.5em;
  background: linear-gradient(to right, rgba(129, 114, 239, 0.1), rgba(255, 255, 255, 0.4));
  padding: 8px 15px 8px 40px !important;
  margin-left: -50px !important;
  border-radius: 0 10px 10px 0;
  border-left: 5px solid var(--candy-accent) !important;
  width: fit-content;
  max-width: calc(100% + 50px);
  box-sizing: border-box;
}
.article-shell .article-content h2:before {
  content: "# ";
  color: var(--candy-accent);
  opacity: 0.6;
  font-size: 0.8em;
  margin-right: 5px;
}
.article-shell .article-content h3 {
  font-size: 1.3em;
  margin-top: 1.5em !important;
}
.article-shell .article-content h3:before {
  content: "## ";
  color: var(--candy-accent);
  opacity: 0.6;
  font-size: 0.9em;
  margin-right: 5px;
}
.article-shell .article-content h4 {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--candy-accent);
}
.article-shell .article-content ul,
.article-shell .article-content ol {
  padding-left: 2em !important;
  margin-bottom: 1.5em;
}
.article-shell .article-content blockquote {
  margin: 2em 0;
  padding: 20px 50px;
  border-radius: 20px;
  border-left: 5px solid var(--candy-accent);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}
.article-shell .article-content pre {
  border-radius: 20px;
  margin: 2em 0;
  padding: 40px 20px 20px;
}
.article-shell .article-content pre code {
  border-radius: 0;
  max-height: none;
}
.article-shell .article-content img {
  border-radius: 12px;
}
.article-shell .article-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 50px 48px;
  padding-top: 28px;
  border-top: 1px dashed rgba(129, 114, 239, 0.28);
}
.article-shell .article-adjacent .adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 4px 4px 14px rgba(32, 32, 32, 0.06);
  backdrop-filter: blur(12px);
  color: var(--candy-text, #2a2a32);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.article-shell .article-adjacent .adjacent-link.is-empty {
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
  background: transparent;
  border-color: transparent;
}
.article-shell .article-adjacent .adjacent-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--candy-accent-border, rgba(129, 114, 239, 0.35));
  box-shadow: 6px 10px 22px rgba(129, 114, 239, 0.16);
}
.article-shell .article-adjacent .adjacent-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--candy-muted, rgba(42, 42, 50, 0.55));
}
.article-shell .article-adjacent .adjacent-label .mdi {
  font-size: 1.05em;
  color: var(--candy-accent, #8172ef);
}
.article-shell .article-adjacent .adjacent-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--candy-text, #2a2a32);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-shell .article-adjacent .adjacent-next {
  text-align: right;
  align-items: flex-end;
}
.article-shell .article-adjacent .adjacent-next .adjacent-label {
  justify-content: flex-end;
}
.article-shell .article-adjacent .adjacent-link:hover .adjacent-title {
  color: var(--candy-accent, #8172ef);
}
/* Left TOC — Candy2 style */
.article-shell > .article-toc {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  max-height: calc(100vh - 200px);
  margin: 100px 40px 0 0;
  overflow: auto;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  color: #fff;
  scrollbar-width: none;
  visibility: visible;
}
.article-shell > .article-toc.toc-empty,
.article-shell > .article-toc[hidden] {
  display: block !important;
  visibility: hidden !important;
  width: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.article-shell > .article-toc.is-collapsed:not(.toc-empty):not([hidden]) {
  display: block !important;
  visibility: hidden !important;
  width: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.article-shell .toc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ddd;
  text-align: right;
  margin-bottom: 14px;
}
.article-shell .toc-body {
  text-align: right;
}
.article-shell .toc-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-shell .toc-body li {
  margin-bottom: 8px;
}
.article-shell .toc-body a {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 2px 0;
  display: inline-block;
  max-width: 100%;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}
.article-shell .toc-body a:hover,
.article-shell .toc-body a.active {
  color: #66ccff;
  transform: translateX(-2px);
}
.article-shell .toc-body ul ul {
  border-right: 2px solid rgba(176, 176, 176, 0.45);
  padding-right: 10px;
  margin-top: 4px;
}
.article-shell .toc-body ul ul a {
  font-size: 0.86rem;
  font-weight: 300;
  color: #bbb;
}
/* Right tools + comment panel */
.bean-aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 40px;
  gap: 16px;
  height: calc(100vh - 100px);
  align-self: center;
}
.bean-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: flex-end;
  margin-bottom: 0;
  overflow: visible;
}
.bean-tools .tool-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: visible;
}
.tool-scroll-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, box-shadow 0.25s;
  /* 未显示时也占位，保证评论按钮位置稳定、底边与内容区对齐 */
  display: flex !important;
}
.tool-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.tool-scroll-top[hidden] {
  display: flex !important;
}
.tool-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--candy-glass-border);
  background: var(--candy-tool-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
  padding: 0;
}
.tool-btn .mdi {
  font-size: 20px !important;
  margin: 0 !important;
}
.tool-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.tool-btn[aria-pressed="true"] {
  background: rgba(129, 114, 239, 0.85);
  color: #fff;
}
.article-comment-panel {
  width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  height: 100%;
  /* 与左侧 .bean-read 同高：calc(100vh - 100px) */
  align-self: stretch;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.45s cubic-bezier(0.33, 1, 0.68, 1), max-width 0.45s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.35s ease, margin 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.article-shell.show-comment .article-comment-panel {
  width: 300px;
  max-width: 300px;
  opacity: 1;
  pointer-events: auto;
  margin-left: 4px;
  flex-shrink: 0;
}
.article-shell.show-comment > .bean-aside {
  max-width: none;
  flex: 0 0 auto;
}
/* 大屏评论展开：放宽外层以容纳 目录+正文(不变)+评论，正文宽度不改 */
@media (min-width: 1400px) {
  .article-shell.show-comment {
    width: 100%;
    max-width: min(1580px, 98vw);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    width: 320px;
    max-width: 320px;
  }
}
@media (min-width: 1680px) {
  .article-shell.show-comment {
    max-width: min(1680px, 96vw);
  }
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    width: 340px;
    max-width: 340px;
  }
}
@media (min-width: 1920px) {
  .article-shell.show-comment {
    max-width: min(1760px, 94vw);
  }
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    width: 360px;
    max-width: 360px;
  }
}
.comment-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  font-weight: 600;
}
.comment-panel-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.comment-panel-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 0 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.comment-panel-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
/* 电脑端：评论列表可滚，底部 respond 始终贴底 */
@media (min-width: 992px) {
  .comment-panel-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .comment-panel-body #comments {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .comment-panel-body #comments::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .comment-panel-body > .respond,
  .comment-panel-body > .text-info {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 1px solid #ececec;
    background: rgba(255, 255, 255, 0.96);
  }
}
.comment-panel-body #comments .comments-head {
  display: none;
  /* 侧栏已有「评论」标题，避免重复 */
}
.comment-panel-body #comments {
  box-shadow: none;
}
.comment-panel-body #comments > .comment-list > li {
  padding: 0 14px;
}
.comment-panel-body #comments .comment-element {
  padding: 12px 0;
}
.comment-panel-body #comments > .comment-list > li > .comment-children > .comment-list > li {
  margin-left: 12px;
  padding-left: 10px !important;
}
.comment-panel-body #comments > .comment-list > li > .comment-children > .comment-list > li > .comment-children > .comment-list > li {
  margin-left: 10px;
  padding-left: 8px !important;
}
.comment-panel-body #comments .comment-reply {
  opacity: 0.7;
}
.tool-btn.has-comments {
  position: relative;
}
.tool-btn.has-comments:after {
  content: attr(data-comment-count);
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 0.72rem;
  line-height: 1.3;
}
.comment-panel-body #comment-form {
  margin: 16px;
}
.comment-login-required {
  margin: 16px;
  padding: 28px 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(247, 247, 248, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.comment-login-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 22px;
}
.comment-login-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2f2f2f;
}
.comment-login-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
}
.comment-login-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.comment-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #3a3a3a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.comment-login-btn:hover {
  background: #222;
}
.comment-login-btn:active {
  transform: scale(0.98);
}
.comment-login-link {
  font-size: 13px;
  color: #8384ea !important;
  text-decoration: none;
}
.comment-user-bar {
  display: none !important;
}
.comment-user-bar a {
  color: #fff !important;
}
body.reading-mode .bean-read.page-wrapper {
  background: var(--candy-article-bg) !important;
}
body.reading-mode .article-content {
  font-size: 1.06rem;
  line-height: 1.95;
}
body.reading-mode .article-shell .article-content h2 {
  background: linear-gradient(to right, rgba(129, 114, 239, 0.22), rgba(255, 255, 255, 0.06));
  color: #f2f0fa;
}
body.reading-mode .article-shell > .article-toc .toc-body a {
  color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 1399px) and (min-width: 992px) {
  /* 中屏：正文尽量保持，评论侧栏收窄 */
  .article-shell.show-comment .bean-read.page-wrapper,
  body.article-place-middle .article-shell.show-comment > .bean-read.page-wrapper {
    width: 720px;
    max-width: min(720px, calc(100vw - 340px));
  }
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    width: min(300px, 26vw);
    max-width: 300px;
  }
  .article-shell.show-comment {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 1350px) {
  .article-shell > .article-toc {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .article-shell,
  body.article-place-left .article-shell,
  body.article-place-middle .article-shell,
  body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment),
  body.article-place-middle .article-shell.show-comment:not(.login-shell):not(.usercenter-shell),
  body.article-place-right .article-shell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: auto;
    height: 100%;
    grid-template-columns: none;
    column-gap: 0;
  }
  body.article-place-middle .article-shell > .article-toc,
  body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .article-toc,
  body.article-place-middle .article-shell > .bean-read.page-wrapper,
  body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .bean-read.page-wrapper,
  body.article-place-middle .article-shell > .bean-aside,
  body.article-place-middle .article-shell:not(.login-shell):not(.usercenter-shell):not(.show-comment) > .bean-aside {
    grid-column: auto;
    justify-self: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .article-shell .bean-read.page-wrapper,
  .article-shell.show-comment .bean-read.page-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    border-radius: 0;
    margin: 0;
  }
  .article-cover {
    height: 58vw;
    min-height: 220px;
    max-height: 420px;
  }
  .article-cover-nav {
    opacity: 0.85;
    width: 32px;
    height: 32px;
  }
  .article-cover-prev {
    left: 8px;
  }
  .article-cover-next {
    right: 8px;
  }
  .article-cover-dots {
    bottom: 78px;
    gap: 6px;
  }
  .article-cover > .article-title {
    font-size: 1.45rem;
    padding: 18px 18px 16px;
  }
  .article-cover .article-category {
    top: 14px;
    left: 14px;
    right: 14px;
    padding: 0;
  }
  .article-cover .article-category .category-item {
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 3px;
  }
  .article-cover .article-category .category-item .item-text {
    font-size: 12px;
  }
  .article-banner {
    margin: -22px 12px 0;
    padding: 0;
    align-items: center;
    gap: 8px;
  }
  .banner-content {
    padding: 5px 12px 5px 5px;
    flex: 1;
    min-width: 0;
    min-height: 47px;
  }
  .publish-time {
    display: none;
  }
  .banner-tools .reading-time {
    width: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .article-banner.scrolled .reading-time {
    width: 37px;
    height: 37px;
    min-height: 37px;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-close-btn {
    display: flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    box-shadow: 5px 5px 10px rgba(32, 32, 32, 0.1);
    color: #333;
    cursor: pointer;
    padding: 0;
  }
  .mobile-close-btn .mdi {
    font-size: 22px;
    line-height: 1;
  }
  .article-banner.scrolled {
    top: 10px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    /* 保持 margin-top，避免占位跳变 */
  }
  .article-banner.scrolled .banner-content {
    border-radius: 50px;
    border-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    box-shadow: 5px 5px 10px rgba(32, 32, 32, 0.1);
    padding-right: 5px;
    background: rgba(255, 255, 255, 0.78);
  }
  .article-banner.scrolled .mobile-close-btn {
    width: 47px;
    height: 47px;
  }
  .article-banner.scrolled #banner-progressbar {
    opacity: 0;
  }
  .article-shell .article-content.content {
    padding: 10px 20px 40px;
  }
  .article-shell .article-adjacent {
    margin: 4px 20px 40px;
    gap: 10px;
    padding-top: 22px;
  }
  .article-shell .article-adjacent .adjacent-link {
    padding: 14px 14px;
    border-radius: 14px;
  }
  .article-shell .article-adjacent .adjacent-title {
    font-size: 0.9rem;
  }
  .article-shell .article-content h2 {
    margin-left: -20px !important;
    padding-left: 20px !important;
    max-width: calc(100% + 20px);
  }
  .bean-aside {
    position: fixed;
    right: 14px;
    bottom: 18px;
    margin: 0;
    z-index: 9;
    flex-direction: column-reverse;
    align-items: flex-end;
    height: auto;
    align-self: auto;
  }
  .bean-tools {
    flex-direction: column;
    margin-bottom: 0;
    gap: 10px;
    align-items: center;
    align-self: auto;
  }
  .bean-tools .tool-fab {
    display: none !important;
  }
  .bean-tools .tool-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  /* 手机端回顶：有滚动时显示（占位始终保留） */
  .bean-tools .tool-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .tool-btn {
    width: 44px;
    height: 44px;
  }
  .article-comment-panel,
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: min(72vh, 640px) !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 12;
    flex-shrink: 1;
  }
  .article-shell.show-comment .article-comment-panel,
  body.article-place-middle .article-shell.show-comment .article-comment-panel {
    transform: translateY(0);
  }
  body.article-place-middle .article-shell.show-comment > .bean-aside,
  .article-shell.show-comment > .bean-aside {
    height: auto;
    margin: 0;
    max-width: none;
  }
  .article-shell > .article-toc {
    display: none !important;
  }
}
.tool-open-nav {
  display: none;
}
/* 个人中心独立屏：透出壁纸，面板皮肤由 center.css 负责 */
#usercenter {
  overflow: hidden;
  background: transparent;
  z-index: 12;
}
#usercenter.move-show {
  display: block;
}
.usercenter-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}
.usercenter-container .candy-loader.page-loading {
  align-self: stretch;
}
body.on-usercenter #usercenter,
body.on-usercenter .usercenter-container {
  background: transparent !important;
}
body.on-usercenter .usercenter-container .usercenter-shell,
.usercenter-container .usercenter-shell.article-shell {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  width: 100%;
  height: 100%;
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 20px 20px;
  box-sizing: border-box;
  background: rgba(18, 18, 22, 0.55);
  backdrop-filter: blur(10px);
}
body.search-open .search-overlay {
  display: flex;
}
body.search-open .search-overlay[hidden] {
  display: flex !important;
}
.search-overlay-panel {
  width: min(560px, 100%);
}
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.search-overlay-icon {
  font-size: 22px;
  color: #777;
}
.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  color: #222;
  min-width: 0;
}
.search-overlay-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.search-overlay-close .mdi {
  font-size: 22px;
}
.search-overlay-hint {
  margin: 12px 4px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}
/* —— macOS-style global dock —— */
.candy-dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  max-width: calc(100vw - 24px);
}
.candy-dock-tray {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 10px 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  max-width: 100%;
  /* 勿 overflow-x:auto：会连带裁切上方标题气泡 */
  overflow: visible;
}
.candy-dock-dark .candy-dock-tray {
  background: rgba(40, 40, 44, 0.62);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.candy-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  margin: 0;
  border: none;
  background: transparent;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 auto;
}
.candy-dock-bright .candy-dock-item {
  color: #333;
}
.candy-dock-dark .candy-dock-item {
  color: #f0f0f0;
}
.candy-dock-item:hover,
.candy-dock-item:focus-visible {
  transform: scale(1.2);
  outline: none;
}
.candy-dock-item:focus-visible .candy-dock-icon {
  box-shadow: 0 0 0 2px rgba(50, 182, 255, 0.7);
}
.candy-dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 26px !important;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.18s ease;
}
.candy-dock-dark .candy-dock-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}
.candy-dock-item:hover .candy-dock-icon,
.candy-dock-item.is-active .candy-dock-icon {
  background: rgba(255, 255, 255, 0.55);
}
.candy-dock-dark .candy-dock-item:hover .candy-dock-icon,
.candy-dock-dark .candy-dock-item.is-active .candy-dock-icon {
  background: rgba(255, 255, 255, 0.22);
}
.candy-dock-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  background: rgba(30, 30, 30, 0.88);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.candy-dock-item:hover .candy-dock-tip,
.candy-dock-item:focus-visible .candy-dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.candy-dock-dot {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: block;
  width: 4px;
  height: 4px;
  margin: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.candy-dock-item.is-active .candy-dock-dot {
  opacity: 0.85;
}
@media (max-width: 720px) {
  #candy-dock {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .candy-dock-tray {
    gap: 2px;
    padding: 6px 8px 4px;
    border-radius: 18px;
  }
  .candy-dock-item {
    width: 44px;
    height: 44px;
    padding-bottom: 4px;
  }
  .candy-dock-icon {
    width: 38px;
    height: 38px;
    font-size: 22px !important;
    border-radius: 10px;
  }
  .candy-dock-item:hover,
  .candy-dock-item:focus-visible {
    transform: scale(1.12);
  }
}

/* 工具栏评论气泡：按钮在原评论位，上方预览左对齐 */
.article-comment-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
}
body.on-usercenter .article-comment-bubble,
body.on-login .article-comment-bubble {
  display: none !important;
}
.article-shell.show-comment .article-comment-bubble .comment-bubble-stack {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}
.article-comment-bubble .comment-bubble-stack {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: max-content;
  max-width: min(280px, calc(100vw - 80px));
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 6;
}
.article-comment-bubble .comment-bubble-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px 8px 8px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  transform-origin: 50% 40%;
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-comment-bubble .comment-bubble-item.is-enter-pending,
.article-comment-bubble .comment-bubble-empty.is-enter-pending {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  pointer-events: none;
}
.article-comment-bubble .comment-bubble-item.is-entering,
.article-comment-bubble .comment-bubble-empty.is-entering {
  animation: candy-comment-bubble-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.article-comment-bubble .comment-bubble-item.is-leaving {
  animation: candy-comment-bubble-out 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none !important;
  overflow: hidden;
  box-shadow: none;
}
.article-comment-bubble .comment-bubble-item:hover:not(.is-leaving):not(.is-entering) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
@keyframes candy-comment-bubble-in {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes candy-comment-bubble-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 100px;
    margin-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    border-color: rgba(255, 255, 255, 0.55);
  }
  40% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    max-height: 78px;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    max-height: 0;
    margin-bottom: -8px;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-comment-bubble .comment-bubble-item.is-entering,
  .article-comment-bubble .comment-bubble-empty.is-entering,
  .article-comment-bubble .comment-bubble-item.is-leaving {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}
.article-comment-bubble .comment-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.article-comment-bubble .comment-bubble-body {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.article-comment-bubble .comment-bubble-name {
  display: block;
  font-size: 0.72rem;
  color: #888;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.article-comment-bubble .comment-bubble-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #333;
  word-break: break-word;
  text-align: left;
}
.article-comment-bubble .comment-bubble-empty {
  pointer-events: auto;
  padding: 8px 14px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  color: #666;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.article-comment-bubble .comment-bubble-fab {
  pointer-events: auto;
  position: relative;
}
.article-comment-bubble .comment-bubble-count {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
}
.article-comment-bubble .comment-bubble-fab[aria-pressed="true"] .comment-bubble-count {
  background: #fff;
  color: #5b4fd6;
}
@media (max-width: 991px) {
  /* 手机端不展示评论预览气泡，仅保留工具栏评论按钮 */
  .article-comment-bubble .comment-bubble-stack {
    display: none !important;
  }
}
