/* ===== Fluid-inspired 个人主页 — 覆盖 Butterfly 默认样式 ===== */
/* 保留纯色背景、深蓝导航与悬浮卡片，统一页面的阴影、间距和层级 */

/* ===== Fluid CSS 变量 ===== */
:root {
  --body-bg-color: #eee;
  --board-bg-color: #fff;
  --text-color: #3c4858;
  --sec-text-color: #718096;
  --post-text-color: #2c3e50;
  --post-heading-color: #1a202c;
  --post-link-color: #0366d6;
  --link-hover-color: #30a9de;
  --link-hover-bg-color: #f8f9fa;
  --line-color: #eaecef;
  --navbar-bg-color: #2f4154;
  --navbar-text-color: #fff;
  --scrollbar-color: #c4c6c9;
  --scrollbar-hover-color: #a6a6a6;
  --highlight-bg-color: #f6f8fa;
  --inlinecode-bg-color: rgba(175,184,193,0.2);
  --chip-bg-color: #f1f4f7;
  --badge-bg-color: #e7eef7;
  --accent-soft-bg: rgba(47,65,84,0.08);
  --card-accent-color: #2f4154;
  --card-radius: 0.55rem;
  --shadow-nav: 0 5px 16px rgba(31,45,61,0.16);
  --shadow-main: 0 20px 50px rgba(31,45,61,0.22), 0 7px 18px rgba(31,45,61,0.14);
  --shadow-card: 0 11px 28px rgba(31,45,61,0.15), 0 3px 9px rgba(31,45,61,0.09);
  --shadow-card-hover: 0 16px 36px rgba(31,45,61,0.19), 0 6px 14px rgba(31,45,61,0.11);
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--text-color) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}
#web_bg {
  background: var(--body-bg-color) !important;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color) !important;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-hover-color) !important;
}

/* ===== 导航栏 ===== */
#nav {
  background-color: var(--navbar-bg-color) !important;
  box-shadow: var(--shadow-nav) !important;
}
#nav a,
#nav .site-name,
#nav .menus_item a {
  color: var(--navbar-text-color) !important;
}
#nav .site-name {
  font-weight: bold;
}
#nav .menus_item a:hover {
  color: var(--link-hover-color) !important;
}

#page-header.nav-fixed #nav {
  top: 0 !important;
}
#nav {
  position: relative !important;
}

/* ===== 主内容区 ===== */
#content-inner {
  margin-top: 1.5rem !important;
}

/* ===== 首页/归档/标签/分类：双栏居中布局 ===== */
.layout:not(:has(#post)) {
  margin-top: 1.5rem !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  gap: 2rem !important;
}

/* ===== 文章页：纯文章居中，隐藏侧栏和目录 ===== */
.layout:has(#post) {
  max-width: 900px !important;
  margin: 0 auto !important;
  display: block !important;
  padding: 40px 20px !important;
}
.layout:has(#post) #post {
  width: 100% !important;
}

/* ===== 白色卡片（board）= Fluid #board ===== */
/* 首页文章列表容器 .recent-posts 去掉大白框；文章页/归档/标签/分类保留 */
#post,
#page,
#archive,
#category,
#tag {
  background: var(--board-bg-color) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-main) !important;
  padding: 2rem 2.5rem !important;
  border: none !important;
  align-self: flex-start !important;
}
.recent-posts {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  align-self: flex-start !important;
}

/* ===== 首页文章列表 — 每篇独立悬浮卡片 ===== */
.recent-post-item {
  background: var(--board-bg-color) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 1.25rem !important;
  padding: 1.4rem 1.65rem !important;
  border: none !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
.recent-post-item:hover {
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-2px) !important;
}
.recent-post-item:last-child {
  margin-bottom: 0 !important;
}
.recent-post-item .article-title {
  font-size: 1.5rem !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  color: var(--text-color) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem !important;
}
.recent-post-item .article-title:hover {
  color: var(--link-hover-color) !important;
}
.recent-post-item .content {
  display: none !important;
}
.recent-post-item .post-meta-date {
  color: var(--sec-text-color) !important;
  font-size: 0.85rem !important;
}
.recent-post-item .post-meta-category a {
  color: var(--sec-text-color) !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
}
.recent-post-item .post-meta-category a:hover {
  color: var(--link-hover-color) !important;
}
.recent-post-item .recent-post-info {
  padding: 0 !important;
}
.recent-post-item .article-meta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  color: var(--sec-text-color) !important;
  line-height: 1.7;
}
.recent-post-item .article-meta-wrap .article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.recent-post-item .article-meta-separator {
  display: none;
}
.recent-post-item .article-meta > .fa-inbox ~ .fa-inbox {
  display: none;
}
.recent-post-item .article-meta-link {
  margin: 0 0.05rem !important;
  color: var(--sec-text-color) !important;
  opacity: 0.6;
}
.recent-post-item .article-meta-wrap i {
  color: var(--sec-text-color) !important;
  opacity: 0.82;
}

/* ===== 文章阅读区 — 完全匹配 Fluid .markdown-body ===== */
#post #post-info {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line-color);
}
#post #post-info .post-title {
  margin-bottom: 0.65rem !important;
  line-height: 1.35;
}
#post #post-meta {
  color: var(--sec-text-color) !important;
  line-height: 1.7;
}
#post #post-meta .meta-firstline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
}
#post #post-meta .post-meta-categories {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#post #post-meta .post-meta-categories > .post-meta-icon ~ .post-meta-icon {
  display: none;
}
#post #post-meta .post-meta-separator {
  margin: 0 0.05rem !important;
  color: var(--sec-text-color) !important;
  opacity: 0.62;
}
#post #post-meta .meta-firstline > .post-meta-categories > .post-meta-separator:first-child,
#post #post-meta .meta-secondline > .post-meta-separator:first-child {
  display: none;
}
#post #post-meta .meta-secondline {
  margin-top: 0.3rem;
  opacity: 0.86;
}
#post .post-content {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: var(--post-text-color) !important;
  margin-bottom: 2rem !important;
}
#post .post-content p {
  line-height: 1.8 !important;
  margin-bottom: 1rem !important;
}
#post .post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}
#post .post-content h1,
#post .post-content h2,
#post .post-content h3,
#post .post-content h4,
#post .post-content h5,
#post .post-content h6 {
  color: var(--post-heading-color) !important;
  font-weight: bold !important;
  margin-top: 2em !important;
  margin-bottom: 0.75em !important;
}
#post .post-content h1,
#post .post-content h2 {
  border-bottom: 1px solid var(--line-color) !important;
  padding-bottom: 0.3em !important;
}
#post .post-content a {
  color: var(--post-link-color) !important;
}
#post .post-content a:hover {
  color: var(--link-hover-color) !important;
}
#post .post-content code:not(.hljs) {
  background-color: var(--inlinecode-bg-color) !important;
  color: inherit !important;
  border-radius: 3px !important;
  padding: 0.2em 0.4em !important;
  font-size: 0.85em !important;
}
#post .post-content blockquote {
  color: var(--sec-text-color) !important;
  border-left-color: var(--line-color) !important;
}
#post .post-content table tr {
  background-color: var(--board-bg-color) !important;
}
#post .post-content table tr:nth-child(2n) {
  background-color: var(--board-bg-color) !important;
}
#post .post-content table th,
#post .post-content table td {
  border-color: var(--line-color) !important;
}

/* ===== 代码块 ===== */
#post .post-content figure.highlight {
  position: relative !important;
  overflow: hidden !important;
  margin: 1.15rem 0 1.4rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background-color: var(--highlight-bg-color) !important;
  box-shadow: none !important;
}

/* 隔离代码高亮内部表格，避免继承正文表格的边框和隔行底色。 */
#post .post-content figure.highlight > table {
  display: block !important;
  overflow-x: auto !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}
#post .post-content figure.highlight > table > tbody > tr,
#post .post-content figure.highlight > table > tbody > tr:nth-child(2n),
#post .post-content figure.highlight > table > tbody > tr > td {
  border: 0 !important;
  background: transparent !important;
}
#post .post-content figure.highlight > table > tbody > tr > td {
  padding: 0 !important;
}

#post .post-content figure.highlight pre {
  overflow: visible !important;
  margin: 0 !important;
  border: 0 !important;
  background-color: var(--highlight-bg-color) !important;
  color: var(--post-text-color) !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}
#post .post-content figure.highlight .gutter pre {
  padding: 0.8rem 0.65rem 0.8rem 0.8rem !important;
  border-right: 1px solid var(--line-color) !important;
  color: var(--sec-text-color) !important;
  text-align: right !important;
  opacity: 0.62;
}
#post .post-content figure.highlight .code {
  width: 100% !important;
}
#post .post-content figure.highlight .code pre {
  padding: 0.8rem 3rem 0.8rem 1rem !important;
}

/* 工具栏收为右上角的悬浮复制按钮，不再占据整行。 */
#post .post-content figure.highlight > .highlight-tools {
  position: absolute !important;
  top: 0.4rem !important;
  right: 0.45rem !important;
  z-index: 2 !important;
  width: auto !important;
  min-height: 0 !important;
  height: 2rem !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sec-text-color) !important;
}
#post .post-content figure.highlight > .highlight-tools .code-lang,
#post .post-content figure.highlight > .highlight-tools .macStyle,
#post .post-content figure.highlight > .highlight-tools .expand {
  display: none !important;
}
#post .post-content figure.highlight > .highlight-tools i {
  width: 2rem !important;
  height: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 6px !important;
  opacity: 0.68;
  transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease !important;
}
#post .post-content figure.highlight > .highlight-tools i:hover {
  background-color: var(--link-hover-bg-color) !important;
  color: var(--post-text-color) !important;
  opacity: 1;
}

/* 说明文字和流程图不显示无意义的自动行号。 */
#post .post-content figure.highlight.text .gutter,
#post .post-content figure.highlight.plaintext .gutter,
#post .post-content figure.highlight.plain .gutter {
  display: none !important;
}
#post .post-content figure.highlight.text .code pre,
#post .post-content figure.highlight.plaintext .code pre,
#post .post-content figure.highlight.plain .code pre {
  padding-left: 1rem !important;
}

/* ===== 侧边栏（仅首页/归档等页面显示） ===== */
.aside-content {
  padding-left: 0 !important;
  width: 280px !important;
  min-width: 280px !important;
  position: sticky !important;
  top: 5rem !important;
  align-self: flex-start !important;
  max-height: none !important;
  overflow: visible !important;
}
.layout:not(:has(#post)) > div:first-child {
  width: auto !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* — 普通侧边卡片 — */
.aside-content .card-widget {
  background: var(--board-bg-color) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-card) !important;
  border: none !important;
  margin-bottom: 1.25rem !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
.aside-content .card-widget:hover {
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-1px);
}
.aside-content .card-widget .item-headline {
  color: var(--text-color) !important;
  font-weight: bold !important;
}
.aside-content .card-widget .item-headline span {
  color: var(--text-color) !important;
}
.aside-content .card-archives ul li a,
.aside-content .card-categories ul li a {
  color: var(--text-color) !important;
}
.aside-content .card-archives ul li a:hover,
.aside-content .card-categories ul li a:hover {
  color: var(--link-hover-color) !important;
}
.card-categories .card-category-list-child {
  padding-left: 1rem !important;
}

/* — 作者名片卡（白底 + 蓝色点缀） — */
.card-widget.card-info {
  background: var(--board-bg-color) !important;
  overflow: hidden;
  padding: 1.75rem 1.25rem 1.25rem !important;
}
.card-widget.card-info .avatar-img img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  border: 3px solid var(--card-accent-color) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card-widget.card-info .author-info-name {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: var(--card-accent-color) !important;
  margin-top: 0.5rem;
}
.card-widget.card-info .author-info-description {
  color: var(--sec-text-color) !important;
  font-size: 0.88rem !important;
}
.card-widget.card-info .author-info-motto {
  color: var(--sec-text-color) !important;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.2rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* 统计行 */
.card-widget.card-info .site-data {
  border-top: 1px solid var(--line-color) !important;
  border-bottom: 1px solid var(--line-color) !important;
  margin: 0.85rem 0 !important;
  padding: 0.6rem 0 !important;
}
.card-widget.card-info .site-data a {
  color: var(--text-color) !important;
}
.card-widget.card-info .site-data .headline {
  color: var(--sec-text-color) !important;
  font-size: 0.75rem !important;
}
.card-widget.card-info .site-data .length-num {
  color: var(--card-accent-color) !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}

/* 社交图标 */
.card-widget.card-info .card-info-social-icons {
  margin-top: 0.25rem;
}
.card-widget.card-info .card-info-social-icons .social-icon {
  color: var(--card-accent-color) !important;
  background: var(--accent-soft-bg);
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0.2rem;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.card-widget.card-info .card-info-social-icons .social-icon:hover {
  background: var(--navbar-bg-color);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== 页脚 ===== */
#footer {
  background: var(--navbar-bg-color) !important;
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.82rem !important;
  padding: 1.4rem 0 !important;
  margin-top: 2.5rem;
  letter-spacing: 0.02em;
}
#footer a {
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.2s ease;
}
#footer a:hover {
  color: #fff !important;
}
#footer .copyright {
  display: block;
  margin-bottom: 0.2rem;
}
#footer .framework-info {
  opacity: 0.7;
}
#footer .footer-separator {
  margin: 0 0.4rem;
}
#footer .footer-custom-text {
  margin-top: 0.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.45) !important;
}

/* ===== 分页 ===== */
.pagination {
  margin-top: 2rem !important;
}
.pagination .page-number,
.pagination .extend {
  font-size: 0.9rem !important;
  background: transparent !important;
  color: var(--text-color) !important;
  border-radius: 0.125rem !important;
  padding: 0.5rem 0.75rem !important;
  border: none !important;
}
.pagination .page-number.current,
.pagination .page-number:hover {
  background-color: var(--link-hover-bg-color) !important;
  color: var(--text-color) !important;
}

/* ===== 暗色模式 — 缩短背景与卡片之间的视觉距离 ===== */

/* 跟随系统 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --body-bg-color: #181c27 !important;
    --board-bg-color: #202730 !important;
    --text-color: #c4c6c9 !important;
    --sec-text-color: #a7a9ad !important;
    --post-text-color: #c4c6c9 !important;
    --post-heading-color: #c4c6c9 !important;
    --post-link-color: #1589e9 !important;
    --link-hover-color: #30a9de !important;
    --link-hover-bg-color: #29323d !important;
    --line-color: #35414f !important;
    --navbar-bg-color: #1f3144 !important;
    --navbar-text-color: #d0d0d0 !important;
    --scrollbar-color: #687582 !important;
    --scrollbar-hover-color: #9da8b3 !important;
    --highlight-bg-color: #28313a !important;
    --inlinecode-bg-color: rgba(99,110,123,0.4) !important;
    --chip-bg-color: #252e39 !important;
    --badge-bg-color: #283746 !important;
    --accent-soft-bg: rgba(21,137,233,0.12) !important;
    --card-accent-color: #8fb4d6 !important;
    --shadow-nav: 0 5px 15px rgba(0,0,0,0.22) !important;
    --shadow-main: 0 14px 34px rgba(0,0,0,0.30), 0 4px 12px rgba(0,0,0,0.22) !important;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.22), 0 2px 7px rgba(0,0,0,0.16) !important;
    --shadow-card-hover: 0 12px 28px rgba(0,0,0,0.27), 0 4px 10px rgba(0,0,0,0.18) !important;
  }
  html:not([data-theme="light"]) img {
    filter: brightness(0.9) !important;
    transition: filter 0.2s ease-in-out;
  }
}

/* 手动切换暗色 */
html[data-theme="dark"] {
  --body-bg-color: #181c27 !important;
  --board-bg-color: #202730 !important;
  --text-color: #c4c6c9 !important;
  --sec-text-color: #a7a9ad !important;
  --post-text-color: #c4c6c9 !important;
  --post-heading-color: #c4c6c9 !important;
  --post-link-color: #1589e9 !important;
  --link-hover-color: #30a9de !important;
  --link-hover-bg-color: #29323d !important;
  --line-color: #35414f !important;
  --navbar-bg-color: #1f3144 !important;
  --navbar-text-color: #d0d0d0 !important;
  --scrollbar-color: #687582 !important;
  --scrollbar-hover-color: #9da8b3 !important;
  --highlight-bg-color: #28313a !important;
  --inlinecode-bg-color: rgba(99,110,123,0.4) !important;
  --chip-bg-color: #252e39 !important;
  --badge-bg-color: #283746 !important;
  --accent-soft-bg: rgba(21,137,233,0.12) !important;
  --card-accent-color: #8fb4d6 !important;
  --shadow-nav: 0 5px 15px rgba(0,0,0,0.22) !important;
  --shadow-main: 0 14px 34px rgba(0,0,0,0.30), 0 4px 12px rgba(0,0,0,0.22) !important;
  --shadow-card: 0 8px 20px rgba(0,0,0,0.22), 0 2px 7px rgba(0,0,0,0.16) !important;
  --shadow-card-hover: 0 12px 28px rgba(0,0,0,0.27), 0 4px 10px rgba(0,0,0,0.18) !important;
}
html[data-theme="dark"] img {
  filter: brightness(0.9) !important;
  transition: filter 0.2s ease-in-out;
}

/* ===== 平板与移动端 ===== */
@media (min-width: 901px) and (max-width: 1100px) {
  .layout:not(:has(#post)) {
    gap: 1.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .aside-content {
    width: 260px !important;
    min-width: 260px !important;
  }
}
@media (max-width: 900px) {
  .aside-content {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .layout:not(:has(#post)) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }
  .recent-post-item .article-title {
    font-size: 1.25rem !important;
    white-space: normal !important;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .recent-posts {
    padding: 0 !important;
  }
  #post,
  #page {
    padding: 1.25rem !important;
  }
  .recent-post-item {
    padding: 1.25rem 1.35rem !important;
  }
  .recent-post-item .article-meta-wrap {
    align-items: flex-start;
  }
  .layout:has(#post) {
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
  }
}
@media (max-width: 425px) {
  #post,
  #page {
    padding: 1rem !important;
  }
  .recent-post-item {
    padding: 1.15rem 1.2rem !important;
  }
  .layout:has(#post) {
    padding: 1rem !important;
  }
}

/* ================================================================
   分类 / 标签 / 关于  —  页面专属样式
   ================================================================ */

/* ===== 页面头部描述 ===== */
.page-header-desc {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-color);
}
.page-header-desc p {
  color: var(--sec-text-color);
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ===== 归档页 ===== */
#archive .article-sort-title,
#category .article-sort-title,
#tag .article-sort-title {
  color: var(--post-heading-color) !important;
  font-size: 1.35rem !important;
  line-height: 1.4;
}
#archive .article-sort,
#category .article-sort,
#tag .article-sort {
  border-left-color: var(--line-color) !important;
}
#archive .article-sort-title::after,
#category .article-sort-title::after,
#tag .article-sort-title::after {
  background: var(--line-color) !important;
}
#archive .article-sort-title::before,
#archive .article-sort-item::before,
#category .article-sort-title::before,
#category .article-sort-item::before,
#tag .article-sort-title::before,
#tag .article-sort-item::before {
  background: var(--board-bg-color) !important;
  border-color: var(--post-link-color) !important;
}
#archive .article-sort-item-time,
#category .article-sort-item-time,
#tag .article-sort-item-time {
  color: var(--sec-text-color) !important;
  font-size: 0.82rem !important;
}
#archive .article-sort-item-title,
#category .article-sort-item-title,
#tag .article-sort-item-title {
  color: var(--text-color) !important;
  font-weight: 500;
  line-height: 1.55;
}
#archive .article-sort-item-title:hover,
#category .article-sort-item-title:hover,
#tag .article-sort-item-title:hover {
  color: var(--post-link-color) !important;
}

/* ===== 分类页 ===== */
#category .category-list {
  padding-left: 0;
  list-style: none;
}
#category .category-list .category-list-item {
  position: relative;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.3rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
#category .category-list .category-list-item:hover {
  background-color: var(--chip-bg-color);
  transform: translateX(3px);
}
#category .category-list .category-list-item a {
  color: var(--text-color) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
#category .category-list .category-list-item a:hover {
  color: var(--post-link-color) !important;
}
#category .category-list .category-list-count {
  display: inline-block;
  margin-left: 0.5rem;
  background: var(--badge-bg-color);
  color: var(--post-link-color) !important;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  min-width: 1.25rem;
  text-align: center;
  line-height: 1.4;
  vertical-align: middle;
}
#category .category-list .category-list-child {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  border-left: 1px solid var(--line-color);
}

/* ===== 标签页 ===== */
#tag .tag-cloud-title {
  display: none;
}
#tag #tag-cloud-tags,
#tag .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.5rem 0;
}
#tag #tag-cloud-tags a,
#tag .tagcloud a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem !important;
  font-weight: 500;
  color: var(--text-color) !important;
  background: var(--chip-bg-color);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.5;
}
#tag #tag-cloud-tags a:hover,
#tag .tagcloud a:hover {
  background: var(--post-link-color);
  color: #fff !important;
  border-color: var(--post-link-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(3,102,214,0.18);
}

/* ===== 关于页 ===== */
.about-wrapper {
  max-width: 680px;
  margin: 0 auto;
}
.about-card {
  background: transparent;
  border-radius: 0;
  padding: 1.35rem 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--line-color);
}
.about-card:first-child {
  padding-top: 0.5rem;
}
.about-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.about-card p {
  color: var(--text-color);
  line-height: 1.8;
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

/* — 通用标题 — */
.about-section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--post-heading-color) !important;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--post-link-color);
  display: inline-block;
}
.about-section-title i {
  margin-right: 0.4rem;
  color: var(--post-link-color);
}

/* — 技术栈标签 — */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--post-link-color);
  background: var(--chip-bg-color);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.skill-tag:hover {
  background: var(--post-link-color);
  color: #fff;
  border-color: var(--post-link-color);
}

/* — 联系方式 — */
.about-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-contact li {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--line-color);
}
.about-contact li:last-child {
  border-bottom: none;
}
.about-contact li i {
  width: 1.5rem;
  text-align: center;
  color: var(--post-link-color);
  margin-right: 0.75rem;
  font-size: 1rem;
  flex-shrink: 0;
}
.about-contact li a {
  color: var(--text-color) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about-contact li a:hover {
  color: var(--post-link-color) !important;
}

/* ===== 分类 / 标签 / 关于 移动端 ===== */
@media (max-width: 768px) {
  .about-wrapper {
    max-width: 100%;
  }
  .about-card {
    padding: 1.2rem 0;
  }
}

/* ================================================================
   专栏 — 一级分类入口与分类详情
   ================================================================ */

/* ===== 专栏首页 ===== */
.type-columns #content-inner {
  max-width: 1240px !important;
}
.type-columns #page {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.type-columns #page > .page-title {
  display: none;
}
.type-columns #article-container {
  overflow: visible;
}
.column-page-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.column-page-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--post-link-color);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.column-page-intro h1 {
  margin: 0 0 0.8rem !important;
  color: var(--post-heading-color) !important;
  font-size: clamp(1.8rem, 4vw, 2.45rem) !important;
  line-height: 1.25;
}
.column-page-intro p {
  margin: 0;
  color: var(--sec-text-color);
  font-size: 0.98rem;
  line-height: 1.8;
}
.column-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.column-card {
  display: block;
  overflow: hidden;
  color: var(--text-color) !important;
  background: var(--board-bg-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  text-decoration: none !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.column-card:hover {
  color: var(--text-color) !important;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.column-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--navbar-bg-color);
}
.column-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.column-card:hover .column-card-cover img {
  transform: scale(1.035);
}
.column-card-shade,
.column-post-shade,
.column-detail-shade {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, rgba(9,18,28,0.04) 18%, rgba(9,18,28,0.84) 100%);
}
.column-card-heading {
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.column-card-eyebrow,
.column-detail-eyebrow {
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.column-card-heading strong {
  font-size: 1.3rem;
  line-height: 1.3;
}
.column-card-heading > span:last-child {
  overflow: hidden;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.76rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-card-body {
  display: block;
  padding: 0.85rem 0.95rem 0.9rem;
}
.column-card-description {
  overflow: hidden;
  display: block;
  min-height: 3em;
  color: var(--text-color);
  font-size: 0.8rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.column-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  color: var(--sec-text-color);
  border-top: 1px solid var(--line-color);
  font-size: 0.68rem;
}
.column-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}
.column-post-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  color: var(--post-link-color) !important;
  background: var(--chip-bg-color);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none !important;
}

/* ===== 专栏详情 ===== */
.type-category #content-inner {
  display: block !important;
  max-width: 980px !important;
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}
.type-category #content-inner > div {
  width: 100%;
}
.column-detail {
  width: 100%;
}
.column-detail-hero {
  position: relative;
  overflow: hidden;
  height: 245px;
  border-radius: var(--card-radius);
  background: var(--navbar-bg-color);
  box-shadow: var(--shadow-card);
}
.column-detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.column-detail-shade {
  background: linear-gradient(90deg, rgba(8,17,27,0.88) 0%, rgba(8,17,27,0.58) 48%, rgba(8,17,27,0.14) 100%);
}
.column-detail-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(560px, 72%);
  padding: 1.45rem 1.7rem;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.column-detail-back {
  position: absolute;
  top: 1.1rem;
  left: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.82rem;
  text-decoration: none !important;
}
.column-detail-back:hover {
  color: #fff !important;
}
.column-detail-copy h1 {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.75rem, 4vw, 2.35rem) !important;
  line-height: 1.2;
}
.column-detail-copy p {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.65;
}
.column-detail-count {
  align-self: flex-start;
  margin-top: 0.65rem;
  padding: 0.28rem 0.72rem;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}
.column-detail-intro {
  margin: 0.85rem 0 1.15rem;
  padding: 0.15rem 0.2rem;
  color: var(--sec-text-color);
  font-size: 0.86rem;
  line-height: 1.65;
}
.column-post-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.8rem;
  color: var(--post-heading-color);
  font-size: 0.9rem;
  font-weight: 700;
}
.column-post-heading::after {
  height: 1px;
  background: var(--line-color);
  content: '';
  flex: 1;
}
.column-post-heading > span:last-child {
  order: 2;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  color: var(--sec-text-color);
  background: var(--chip-bg-color);
  border-radius: 999px;
  font-size: 0.7rem;
  text-align: center;
}
.column-post-list {
  display: grid;
  gap: 1rem;
}
.column-post-card {
  overflow: hidden;
  background: var(--board-bg-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.column-post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.column-post-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 205px;
  background: var(--navbar-bg-color);
}
.column-post-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.column-post-card:hover .column-post-cover > img {
  transform: scale(1.025);
}
.column-post-cover h2 {
  position: absolute;
  right: 1.2rem;
  bottom: 0.95rem;
  left: 1.2rem;
  z-index: 1;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,0,0,0.44);
}
.column-post-body {
  padding: 0.85rem 1.15rem 0.95rem;
}
.column-post-body > p {
  overflow: hidden;
  margin: 0;
  color: var(--text-color);
  font-size: 0.86rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.55rem;
  color: var(--sec-text-color);
  font-size: 0.75rem;
}
.column-post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.column-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-color);
}
.column-post-tags a:hover {
  color: #fff !important;
  background: var(--post-link-color);
}

.column-empty-state {
  padding: 2.4rem 1.5rem;
  color: var(--sec-text-color);
  background: var(--board-bg-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.column-empty-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--post-link-color);
  background: var(--chip-bg-color);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
.column-empty-state h2 {
  margin: 0.7rem 0 0.3rem !important;
  color: var(--post-heading-color) !important;
  font-size: 1.1rem !important;
}
.column-empty-state p {
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .type-columns #content-inner,
  .type-category #content-inner {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
  .column-grid {
    gap: 1.25rem;
  }
  .column-card-cover {
    height: auto;
  }
  .column-detail-hero {
    height: 225px;
  }
  .column-detail-copy {
    width: 90%;
    padding: 1.5rem;
  }
  .column-detail-back {
    top: 1.25rem;
    left: 1.5rem;
  }
  .column-post-cover {
    height: 185px;
  }
}

@media (max-width: 620px) {
  .column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 425px) {
  .column-page-intro {
    margin-bottom: 1.4rem;
  }
  .column-card-cover {
    height: auto;
  }
  .column-card-heading {
    right: 1.2rem;
    bottom: 1.15rem;
    left: 1.2rem;
  }
  .column-card-heading strong {
    font-size: 1.45rem;
  }
  .column-card-body,
  .column-post-body {
    padding: 1.15rem 1.2rem 1.25rem;
  }
  .column-card-description {
    min-height: 0;
  }
  .column-detail-hero {
    height: 210px;
  }
  .column-detail-shade {
    background: linear-gradient(180deg, rgba(8,17,27,0.2) 8%, rgba(8,17,27,0.9) 100%);
  }
  .column-detail-copy {
    width: 100%;
    padding: 1.25rem;
  }
  .column-detail-back {
    top: 1.1rem;
    left: 1.25rem;
  }
  .column-post-cover {
    height: 165px;
  }
  .column-post-cover h2 {
    right: 1.2rem;
    bottom: 1.05rem;
    left: 1.2rem;
  }
}
