/* =========================================================
   博客自定义样式（补充 Argon 主题，统一前台视觉）
   ========================================================= */

:root {
  --blog-text: #2f3446;
  --blog-text-light: #586074;
  --blog-muted: #939bab;
  --blog-line: #f0f1f5;
  --blog-bg: #ffffff;
  --blog-radius: 10px;
  --banner-h: 420px;
}

body.is-home {
  --banner-h: 520px;
}

html, body {
  min-height: 100%;
}

body {
  color: var(--blog-text);
  background: var(--blog-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 覆盖 Argon 主题的灰底，正文区域保持纯白（夜间模式不受影响） */
html:not(.darkmode) body.argon-blog {
  background: #ffffff !important;
}

html.darkmode body {
  color: #e6e6e6;
  background: var(--color-background, #282828);
}

html.darkmode .card,
html.darkmode .bg-white {
  background: var(--color-foreground, #424242) !important;
  color: #e6e6e6;
}

/* ---------------- 顶栏 ---------------- */
#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1031;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .06) 70%, rgba(0, 0, 0, 0) 100%);
}

.navbar-main {
  background: transparent !important;
  padding: 10px 0;
}

.navbar-main .container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.navbar-title {
  color: #fff !important;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  margin-right: 28px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-main .nav-link {
  color: rgba(255, 255, 255, .92) !important;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-main .nav-link:hover,
.nav-main .nav-item.active .nav-link {
  background: rgba(255, 255, 255, .16);
  color: #fff !important;
}

.nav-search {
  width: 210px;
  flex: 0 0 auto;
}

.nav-search .input-group-text {
  background: rgba(255, 255, 255, .18);
  border: 0;
  color: #fff;
}

.nav-search .form-control {
  background: rgba(255, 255, 255, .18);
  border: 0;
  color: #fff;
  height: 34px;
}

.nav-search .form-control::placeholder {
  color: rgba(255, 255, 255, .72);
}

#open_sidebar {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  margin-right: 6px;
  padding: 4px 10px;
}

/* 页面向下滚动后，顶栏切换为白底深字，避免白字压白底 */
#toolbar.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(24, 32, 50, .06), 0 8px 24px rgba(24, 32, 50, .06);
}

#toolbar.scrolled .navbar-title {
  color: #2f3446 !important;
}

#toolbar.scrolled .nav-main .nav-link {
  color: #5a6275 !important;
}

#toolbar.scrolled .nav-main .nav-link:hover,
#toolbar.scrolled .nav-main .nav-item.active .nav-link {
  background: #f1f4fb;
  color: var(--themecolor) !important;
}

#toolbar.scrolled #open_sidebar {
  color: #2f3446;
}

#toolbar.scrolled .nav-search .input-group-text {
  background: #f1f4fb;
  color: #7b869c;
}

#toolbar.scrolled .nav-search .form-control {
  background: #f1f4fb;
  color: #2f3446;
}

#toolbar.scrolled .nav-search .form-control::placeholder {
  color: #9aa3b5;
}

html.darkmode #toolbar.scrolled {
  background: rgba(36, 39, 48, .97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .28);
}

html.darkmode #toolbar.scrolled .navbar-title,
html.darkmode #toolbar.scrolled #open_sidebar {
  color: #f0f0f0 !important;
}

html.darkmode #toolbar.scrolled .nav-main .nav-link {
  color: #cfd3dc !important;
}

html.darkmode #toolbar.scrolled .nav-main .nav-link:hover,
html.darkmode #toolbar.scrolled .nav-main .nav-item.active .nav-link {
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
}

html.darkmode #toolbar.scrolled .nav-search .input-group-text,
html.darkmode #toolbar.scrolled .nav-search .form-control {
  background: rgba(255, 255, 255, .08);
  color: #eee;
}

html.darkmode section.banner:before {
  background:
    linear-gradient(180deg,
      rgba(10, 12, 18, .38) 0%,
      rgba(10, 12, 18, .12) 18%,
      rgba(40, 40, 40, 0) 42%,
      rgba(40, 40, 40, 0) 58%,
      rgba(40, 40, 40, .55) 76%,
      rgba(40, 40, 40, .92) 92%,
      #282828 100%);
}

html.darkmode .banner-title-inner {
  color: #f4f6fa;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

html.darkmode .banner-subtitle {
  color: #d6dbe4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

html.darkmode .banner-typing {
  color: #e5e9f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* ---------------- Banner ---------------- */
section.banner {
  height: var(--banner-h);
  margin-bottom: 0;
  padding: 0 !important;
  background-color: #eef2f8;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* 顶部轻压暗保证导航可读；底部由透明平滑过渡到纯白，和正文无缝衔接 */
section.banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(16, 22, 38, .30) 0%,
      rgba(16, 22, 38, .10) 16%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0) 55%,
      rgba(255, 255, 255, .34) 72%,
      rgba(255, 255, 255, .78) 88%,
      #ffffff 100%);
  z-index: 1;
  pointer-events: none;
}

section.banner .shape {
  display: none !important;
}

.banner-container {
  height: var(--banner-h) !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  position: relative;
  z-index: 4;
  padding: 0 20px 62px;
}

/* 主题里 banner-title 是绝对定位，这里改回正常流，避免与卡片重叠 */
.banner-title {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  width: 100%;
  text-align: center;
}

.banner-title-inner {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #232a38;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  display: inline-block;
}

.banner-subtitle {
  margin-top: 10px;
  font-size: 14.5px;
  color: #414a5e;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

/* Hero 打字机文案 */
body.is-home .banner-container {
  padding-bottom: 74px;
}

.banner-typing {
  height: 1.7em;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .4px;
  color: #3d4659;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.banner-typing-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: banner-cursor-blink 1s steps(1, end) infinite;
}

@keyframes banner-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-typing-cursor {
    animation: none;
    opacity: 1;
  }
}

/* ---------------- 主体布局 ---------------- */
#content {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 20px 48px;
  position: relative;
  z-index: 2;
  background: #fff;
}

html.darkmode #content {
  background: transparent;
}

.leftbar {
  flex: 0 0 270px;
  width: 270px;
  padding: 0;
  position: static;                                 /* ✏️ 与正文同滚动：不吸顶 */
  align-self: flex-start;
  max-height: none;
  overflow: visible;
  margin-bottom: 20px;
}

.leftbar::-webkit-scrollbar {
  width: 0;
  display: none;
}

#primary {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0 0 24px;
  float: none;
  width: auto;
}

#main {
  padding: 0;
}

/* ---------------- 通用卡片 / 标题 ---------------- */
.card {
  border-radius: var(--card-radius, 10px);
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(24, 32, 50, .05), 0 1px 2px rgba(24, 32, 50, .03);
  border: 1px solid rgba(24, 32, 50, .035);
}

/* 白底、不透明、无毛玻璃 */
html:not(.darkmode) .argon-blog .card,
html:not(.darkmode) .argon-blog .card.bg-white,
html:not(.darkmode) .argon-blog .bg-white,
html:not(.darkmode) .argon-blog .widget.card,
html:not(.darkmode) .argon-blog .site-footer {
  background-color: #ffffff !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.card.shadow-sm {
  box-shadow: 0 2px 10px rgba(24, 32, 50, .05), 0 1px 2px rgba(24, 32, 50, .03) !important;
}

.list-header .card-body {
  padding: 22px 26px;
}

.list-header-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--blog-text);
}

html.darkmode .list-header-title,
html.darkmode .post-title,
html.darkmode .sidebar-widget-title,
html.darkmode .comments-title,
html.darkmode .taxonomy-name {
  color: #e6e6e6;
}

.list-header-subtitle {
  color: var(--blog-muted);
  font-size: 13px;
}

.list-footer-tip {
  text-align: center;
  color: var(--blog-muted);
  font-size: 13px;
  margin: 4px 0 24px;
}

/* ---------------- 文章卡片 ---------------- */
.post-preview {
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(50, 50, 93, .1), 0 4px 8px rgba(0, 0, 0, .04);
}

.post-thumbnail {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.post-header-with-thumbnail .post-title,
.post-header-with-thumbnail .post-meta {
  color: #fff;
}

.post-header-with-thumbnail .post-header-text-container .post-title {
  display: block;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.post-header-with-thumbnail .post-header-text-container .sticky-badge {
  margin: 0 auto 8px;
  display: table;
}

.post-header-with-thumbnail {
  position: relative;
}

.post-header-with-thumbnail .post-header-text-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 24px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .68) 100%);
  text-align: center;
}

.post-header-with-thumbnail .post-thumbnail {
  max-height: 340px;
}

.post-header {
  padding-top: 26px;
}

.post-title {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: var(--blog-text);
  text-decoration: none;
  line-height: 1.4;
}

.post-title:hover {
  color: var(--themecolor);
}

.post-preview .post-title {
  font-size: 19px;
}

.post-meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.post-meta-item {
  color: var(--blog-muted);
  text-decoration: none;
  padding: 0 6px;
}

.post-meta-item:hover {
  color: var(--themecolor);
}

.post-meta-devide {
  color: #dfe3ea;
  padding: 0 2px;
}

html.darkmode .post-meta-item,
html.darkmode .post-meta,
html.darkmode .post-meta-devide {
  color: #a0a0a0;
}

.sticky-badge {
  display: inline-block;
  background: var(--themecolor);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.post-content {
  padding: 14px 26px 6px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--blog-text-light);
}

html.darkmode .post-content,
html.darkmode .post-excerpt {
  color: #cfcfcf;
}

.post-excerpt {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-more {
  display: inline-block;
  font-size: 13px;
  color: var(--themecolor);
  text-decoration: none;
  margin-bottom: 6px;
}

.post-tags {
  padding: 8px 26px 20px;
  font-size: 12px;
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.post-meta-detail-tag,
.tag {
  background: #f1f3f9;
  color: #5b6b8c !important;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11.5px;
  text-decoration: none;
  border: 0;
  font-weight: 400;
}

.post-meta-detail-tag:hover,
.tag:hover {
  background: var(--themecolor);
  color: #fff !important;
}

html.darkmode .tag,
html.darkmode .post-meta-detail-tag {
  background: #3a3a3a;
  color: #c9c9c9 !important;
}

/* ---------------- 文章详情 ---------------- */
.post-full {
  margin-bottom: 20px;
  overflow: hidden;
}

.post-full .post-header {
  padding: 32px 32px 0;
}

.post-title-large {
  font-size: 30px !important;
  line-height: 1.35;
  margin: 0;
}

.post-toc-inline {
  margin: 20px 32px 0;
  background: #f7f8fc;
  border-left: 3px solid var(--themecolor);
  border-radius: 4px;
  padding: 12px 18px;
}

html.darkmode .post-toc-inline {
  background: #333;
}

.post-toc-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blog-text);
}

html.darkmode .post-toc-title {
  color: #ddd;
}

.post-toc-inline ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc-inline li {
  font-size: 13px;
  padding: 3px 0;
}

.post-toc-inline li.toc-level-3 {
  padding-left: 16px;
}

.post-toc-inline a {
  color: var(--blog-text-light);
  text-decoration: none;
}

.post-toc-inline a:hover,
.post-toc-inline a.active {
  color: var(--themecolor);
}

html.darkmode .post-toc-inline a {
  color: #bbb;
}

/* 正文排版 */
.article-body {
  padding: 24px 32px 12px;
  font-size: 15.5px;
  line-height: 1.95;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--themecolor);
  line-height: 1.5;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--blog-text);
}

html.darkmode .article-body h2,
html.darkmode .article-body h3 {
  color: #f0f0f0;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body a {
  color: var(--themecolor);
  text-decoration: none;
  border-bottom: 1px dashed rgba(94, 114, 228, .5);
}

.article-body img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
  margin: 18px auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.article-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: #f7f8fc;
  border-left: 3px solid #cfd6e4;
  color: #5a6580;
  border-radius: 0 4px 4px 0;
  font-size: 14.5px;
}

html.darkmode .article-body blockquote {
  background: #333;
  border-left-color: #555;
  color: #cfcfcf;
}

.article-body pre {
  background: #2b2f3a;
  color: #e6e9ef;
  padding: 16px 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 18px 0;
  position: relative;
}

.article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: "JetBrains Mono", Consolas, Monaco, "Courier New", monospace;
}

.article-body code {
  background: #f2f4fa;
  color: #d6336c;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13.5px;
}

html.darkmode .article-body code {
  background: #3a3a3a;
  color: #ffb3c1;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--blog-line);
  margin: 26px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.article-body th,
.article-body td {
  border: 1px solid #e6e9f0;
  padding: 8px 12px;
}

.article-body th {
  background: #f7f8fc;
  font-weight: 600;
}

html.darkmode .article-body th {
  background: #333;
  border-color: #555;
}

html.darkmode .article-body td {
  border-color: #555;
}

.table-wrap {
  overflow-x: auto;
}

.task-item {
  list-style: none;
}

/* 版权 / 上下篇 */
.post-copyright {
  margin: 10px 32px 26px;
  padding: 14px 18px;
  border-radius: var(--card-radius);
  background: #f7f8fc;
  font-size: 12.5px;
  color: var(--blog-muted);
  line-height: 1.9;
  border: 1px dashed #e2e6f0;
}

html.darkmode .post-copyright {
  background: #333;
  border-color: #4a4a4a;
}

.post-navigation {
  display: flex;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-nav-item {
  flex: 1;
  padding: 16px 20px;
  text-decoration: none;
  display: block;
  min-height: 76px;
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-item:hover {
  background: #f7f8fc;
}

html.darkmode .post-nav-item:hover {
  background: #4a4a4a;
}

.post-nav-label {
  display: block;
  font-size: 12px;
  color: var(--blog-muted);
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: 14px;
  color: var(--blog-text);
  font-weight: 500;
}

html.darkmode .post-nav-title {
  color: #e0e0e0;
}

.post-nav-item.empty {
  color: var(--blog-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
}

/* ---------------- 评论 ---------------- */
.comments-area {
  margin-bottom: 20px;
}

.comments-area .card-body {
  padding: 24px 28px;
}

.comments-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comments-count {
  color: var(--themecolor);
  font-size: 13px;
  margin-left: 4px;
}

.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--blog-line);
}

html.darkmode .comment-item {
  border-bottom-color: #4a4a4a;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--themecolor);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.comment-avatar.small {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 13px;
  opacity: .85;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  font-size: 12.5px;
  color: var(--blog-muted);
  margin-bottom: 4px;
}

.comment-author {
  color: var(--blog-text);
  font-size: 13.5px;
  margin-right: 8px;
}

html.darkmode .comment-author {
  color: #e0e0e0;
}

.comment-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--blog-text-light);
  word-break: break-word;
}

html.darkmode .comment-text {
  color: #ccc;
}

.comment-reply-btn {
  font-size: 12px;
  color: var(--themecolor);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.comment-children {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--blog-line);
}

.comment-empty {
  color: var(--blog-muted);
  font-size: 13px;
  padding: 10px 0 18px;
  list-style: none;
}

.comment-form {
  border-top: 1px solid var(--blog-line);
  padding-top: 18px;
}

html.darkmode .comment-form {
  border-top-color: #4a4a4a;
}

.comment-form label {
  font-size: 13px;
  color: var(--blog-muted);
  margin-bottom: 4px;
}

.comment-form-row {
  display: flex;
  gap: 16px;
}

.comment-form-row .form-group {
  flex: 1;
}

.comment-form .form-control {
  background: #f7f8fc;
  border: 1px solid #e6e9f0;
  border-radius: 5px;
  font-size: 14px;
}

html.darkmode .comment-form .form-control {
  background: #383838;
  border-color: #4a4a4a;
  color: #ddd;
}

.comment-form .form-control:focus {
  background: #fff;
  border-color: var(--themecolor);
  box-shadow: 0 0 0 2px rgba(94, 114, 228, .12);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-notice {
  font-size: 12px;
  color: var(--blog-muted);
}

.comment-reply-tip {
  background: #f0f4ff;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--blog-text-light);
  margin-bottom: 12px;
}

.comment-reply-tip button {
  background: none;
  border: 0;
  color: var(--themecolor);
  font-size: 12px;
  padding: 0 6px;
}

/* ---------------- 侧栏 ---------------- */
.leftbar .widget {
  margin-bottom: 16px;
}

.leftbar-banner {
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  background: linear-gradient(150deg, #7795f8 0%, #6772e5 55%, #555abf 100%);
  text-align: center;
  padding: 22px 16px 18px !important;
}

.leftbar-banner-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.leftbar-banner-subtitle {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
}

.leftbar-menu {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.leftbar-menu-item > a {
  display: block;
  height: 38px;
  line-height: 38px;
  padding: 0 20px;
  font-size: 13.5px;
  color: var(--blog-text) !important;
  text-decoration: none;
  transition: background .18s ease;
}

.leftbar-menu-item > a:hover,
.leftbar-menu-item.current > a {
  background: #f4f6fc;
  color: var(--themecolor) !important;
}

html.darkmode .leftbar-menu-item > a {
  color: #ddd !important;
}

html.darkmode .leftbar-menu-item > a:hover,
html.darkmode .leftbar-menu-item.current > a {
  background: #4a4a4a;
}

.leftbar-search-button {
  padding: 10px 15px 16px;
}

.leftbar-search-form {
  position: relative;
}

#leftbar_search_container {
  height: 34px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #f1f3f9;
  color: #8898aa;
  font-size: 13px;
  text-align: left;
  padding-left: 40px;
  cursor: text;
  box-shadow: none;
}

#leftbar_search_input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 34px;
  background: transparent;
  border: 0;
  padding-left: 38px;
  font-size: 13px;
  color: var(--blog-text);
  outline: none;
}

html.darkmode #leftbar_search_input {
  color: #eee;
}

#leftbar_search_container .fa-search {
  position: absolute;
  left: 15px;
  top: 9px;
  font-size: 13px;
  color: #8898aa;
  z-index: 2;
}

#leftbar_search_container span {
  position: absolute;
  left: 36px;
  top: 8px;
  font-size: 13px;
  color: #8898aa;
}

#leftbar_part2_inner {
  padding: 14px 14px 6px;
}

.nav-pills .sidebar-tab-switcher > a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  text-align: center;
  color: var(--themecolor);
  background: #f1f3f9;
  border-radius: 4px;
}

html.darkmode .nav-pills .sidebar-tab-switcher > a {
  background: #4a4a4a;
  color: #cbd5ff;
}

#leftbar_overview_author_image,
.about-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 12px auto 10px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecf5;
  box-shadow: 0 4px 14px rgba(50, 50, 93, .18);
}

#leftbar_overview_author_name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

#leftbar_overview_author_description {
  font-size: 12px;
  color: var(--blog-muted);
  margin-top: 4px;
  font-weight: 400;
}

.site-state {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 14px -6px 6px;
}

.site-state-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--blog-line);
}

.site-state-item:last-child {
  border-right: 0;
}

html.darkmode .site-state-item {
  border-right-color: #4a4a4a;
}

.site-state-item a {
  text-decoration: none;
  display: block;
}

.site-state-item-count {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-text);
}

html.darkmode .site-state-item-count {
  color: #eee;
}

.site-state-item-name {
  font-size: 11.5px;
  color: var(--blog-muted);
}

.site-friend-links {
  margin-top: 16px;
  border-top: 1px solid var(--blog-line);
  padding-top: 10px;
  text-align: left;
}

html.darkmode .site-friend-links {
  border-top-color: #4a4a4a;
}

.site-friend-links-title {
  font-size: 12px;
  color: var(--blog-muted);
  margin-bottom: 6px;
  letter-spacing: .5px;
}

.site-friend-links-ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.site-friend-links-item a {
  font-size: 12px;
  color: var(--blog-text-light);
  text-decoration: none;
}

.site-friend-links-item a:hover {
  color: var(--themecolor);
}

/* 侧栏小工具通用 */
.sidebar-widget .card-body {
  padding: 16px 18px;
}

.sidebar-widget-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blog-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-widget-title i {
  color: var(--themecolor);
  font-size: 13px;
}

/* 天气 */
.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-icon {
  font-size: 30px;
  color: var(--themecolor);
  width: 44px;
  text-align: center;
}

.weather-temp {
  font-size: 26px;
  font-weight: 600;
  color: var(--blog-text);
  line-height: 1;
}

html.darkmode .weather-temp {
  color: #f0f0f0;
}

.weather-temp span {
  font-size: 28px;
}

.weather-text {
  flex: 1;
  text-align: right;
  font-size: 12.5px;
  color: var(--blog-text-light);
  line-height: 1.7;
}

.weather-range {
  color: var(--blog-muted);
  font-size: 12px;
}

.weather-detail {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--blog-line);
  font-size: 11.5px;
  color: var(--blog-muted);
}

html.darkmode .weather-detail {
  border-top-color: #4a4a4a;
}

.weather-updated {
  margin-left: auto;
  font-weight: 400;
  font-size: 10.5px;
  color: #b6bfd1;
}

.weather-empty {
  font-size: 12.5px;
  color: var(--blog-muted);
}

/* 音乐 */
.music-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--blog-muted);
  font-weight: 400;
}

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

.music-cover {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex: 0 0 46px;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.music-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.darkmode .music-title {
  color: #eee;
}

.music-artist {
  font-size: 11.5px;
  color: var(--blog-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--themecolor);
  color: #fff;
  font-size: 13px;
  flex: 0 0 34px;
  cursor: pointer;
  transition: transform .15s ease;
}

.music-toggle:hover {
  transform: scale(1.06);
}

.music-progress {
  height: 4px;
  background: #eef0f7;
  border-radius: 2px;
  margin: 12px 0 4px;
  cursor: pointer;
  position: relative;
}

html.darkmode .music-progress {
  background: #4a4a4a;
}

.music-bar {
  height: 100%;
  width: 0;
  background: var(--themecolor);
  border-radius: 2px;
  transition: width .1s linear;
}

.music-times {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #a8b1c4;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.music-controls button {
  background: none;
  border: 0;
  color: #8898aa;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
}

.music-controls button:hover {
  color: var(--themecolor);
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #8898aa;
  font-size: 11px;
}

.music-volume input {
  width: 62px;
  height: 3px;
  accent-color: var(--themecolor);
}

.music-list {
  list-style: none;
  margin: 12px -18px -16px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--blog-line);
  max-height: 168px;
  overflow-y: auto;
}

html.darkmode .music-list {
  border-top-color: #4a4a4a;
}

.music-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--blog-text-light);
}

.music-list li:hover {
  background: #f4f6fc;
}

html.darkmode .music-list li:hover {
  background: #4a4a4a;
}

.music-list li.active {
  background: rgba(94, 114, 228, .1);
  color: var(--themecolor);
}

.music-list-index {
  color: #b7c0d3;
  font-size: 10.5px;
  width: 16px;
}

.music-list-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-list-artist {
  color: #b7c0d3;
  font-size: 10.5px;
  max-width: 66px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-list li.active .music-list-index {
  color: var(--themecolor);
}

/* 最新文章 / 标签 */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-post-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--blog-line);
  font-size: 12.5px;
}

html.darkmode .sidebar-post-list li {
  border-bottom-color: #4a4a4a;
}

.sidebar-post-list li:last-child {
  border-bottom: 0;
}

.sidebar-post-list a {
  display: block;
  color: var(--blog-text-light);
  text-decoration: none;
  line-height: 1.55;
  margin-bottom: 2px;
  transition: color .15s ease;
}

.sidebar-post-list a:hover {
  color: var(--themecolor);
}

.sidebar-post-list span {
  color: #b2bbcc;
  font-size: 10.5px;
}

.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-num {
  font-size: 10px;
  color: #a7b1c5;
}

/* ---------------- 分页 ---------------- */
.argon-pagination {
  margin: 8px 0 6px;
}

.argon-pagination .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.argon-pagination .page-item .page-link {
  border: 0;
  background: #fff;
  color: var(--blog-text-light);
  border-radius: 5px;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  padding: 0 10px;
  font-size: 13px;
  box-shadow: 0 1px 5px rgba(50, 50, 93, .07);
  text-decoration: none;
}

html.darkmode .argon-pagination .page-item .page-link {
  background: #3d3d3d;
  color: #ddd;
}

.argon-pagination .page-item.active .page-link {
  background: var(--themecolor);
  color: #fff;
}

.argon-pagination .page-item.disabled .page-link {
  opacity: .5;
}

/* ---------------- 归档 ---------------- */
.archive-card .card-body {
  padding: 12px 28px 28px;
}

.archive-group {
  margin-top: 20px;
}

.archive-year {
  font-size: 24px;
  font-weight: 700;
  color: var(--themecolor);
  padding-bottom: 6px;
  border-bottom: 2px solid #eef0f7;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

html.darkmode .archive-year {
  border-bottom-color: #4a4a4a;
}

.archive-year span {
  font-size: 12px;
  color: var(--blog-muted);
  font-weight: 400;
}

.archive-month {
  margin-top: 14px;
}

.archive-month-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--blog-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

html.darkmode .archive-month-label {
  color: #e6e6e6;
}

.archive-month-label span {
  font-size: 11px;
  color: var(--blog-muted);
  font-weight: 400;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid #f0f2f8;
}

html.darkmode .archive-list {
  border-left-color: #444;
}

.archive-list li {
  position: relative;
  padding: 5px 0 5px 22px;
}

.archive-list li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dfe4f0;
}

.archive-list li:hover:before {
  background: var(--themecolor);
}

.archive-date {
  font-size: 11.5px;
  color: #b2bbcc;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.archive-list a {
  color: var(--blog-text-light);
  font-size: 13.5px;
  text-decoration: none;
}

.archive-list a:hover {
  color: var(--themecolor);
}

/* ---------------- 分类 ---------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(50, 50, 93, .1);
  color: inherit;
}

.category-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(94, 114, 228, .1);
  color: var(--themecolor);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex: 0 0 46px;
}

.category-card-body h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.category-card-body p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--blog-muted);
}

.category-count {
  font-size: 11.5px;
  color: var(--themecolor);
}

/* 标签云页 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 8px 0;
  align-items: baseline;
}

.tag-cloud-item {
  color: var(--blog-text-light);
  text-decoration: none;
  transition: color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-cloud-item:hover {
  color: var(--themecolor);
}

.tag-cloud-item span {
  font-size: 10.5px;
  color: #b2bbcc;
}

.taxonomy-header .card-body {
  padding: 24px 28px;
}

.taxonomy-label {
  font-size: 12px;
  color: var(--blog-muted);
  margin-bottom: 6px;
}

.taxonomy-name {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--blog-text);
}

.taxonomy-desc {
  font-size: 13px;
  color: var(--blog-muted);
  margin: 0 0 6px;
}

.taxonomy-count {
  font-size: 12px;
  color: var(--themecolor);
}

/* ---------------- 搜索 ---------------- */
.search-header .card-body {
  padding: 24px 28px 18px;
}

.search-page-form .form-control {
  height: 44px;
  border-radius: 5px 0 0 5px;
  border: 1px solid #e6e9f0;
  font-size: 14px;
}

.search-page-form .btn {
  border-radius: 0 5px 5px 0;
  padding: 0 22px;
}

.search-summary {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--blog-muted);
}

.search-summary strong {
  color: var(--themecolor);
}

/* ---------------- 关于 ---------------- */
.about-card .card-body {
  padding: 30px 34px;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--blog-line);
  margin-bottom: 8px;
}

html.darkmode .about-header {
  border-bottom-color: #4a4a4a;
}

.about-avatar {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  margin: 0;
}

.about-meta h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
}

.about-meta p {
  font-size: 13px;
  color: var(--blog-muted);
  margin: 0 0 10px;
}

.about-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f9;
  color: #7b86a1;
  margin-right: 8px;
  text-decoration: none;
  transition: all .2s ease;
}

.about-social a:hover {
  background: var(--themecolor);
  color: #fff;
}

/* ---------------- 友链 ---------------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(50, 50, 93, .1);
  color: inherit;
}

.link-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 46px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.link-body {
  min-width: 0;
}

.link-body h5 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 4px;
}

.link-body p {
  margin: 0;
  font-size: 12px;
  color: var(--blog-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-apply {
  font-size: 13px;
  color: var(--blog-text-light);
  line-height: 1.9;
  margin: 0 0 8px;
}

.friend-info {
  font-size: 12.5px;
  color: var(--blog-muted);
  margin: 0;
}

/* ---------------- 项目 ---------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(50, 50, 93, .12);
}

.project-cover {
  height: 120px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.project-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.project-body p {
  font-size: 12.5px;
  color: var(--blog-muted);
  line-height: 1.75;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.project-tech span {
  font-size: 10.5px;
  color: var(--themecolor);
  background: rgba(94, 114, 228, .1);
  padding: 2px 7px;
  border-radius: 9px;
}

.project-link {
  font-size: 12px;
  color: var(--themecolor);
  text-decoration: none;
}

.project-link.muted {
  color: var(--blog-muted);
}

/* ---------------- 相册 ---------------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-filter {
  border: 0;
  background: #fff;
  color: var(--blog-text-light);
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(50, 50, 93, .08);
  transition: all .2s ease;
}

html.darkmode .gallery-filter {
  background: #3d3d3d;
  color: #ddd;
}

.gallery-filter.active {
  background: var(--themecolor);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(50, 50, 93, .08);
  aspect-ratio: 4 / 3;
  background: #e9ecf5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 100%);
  color: #fff;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-album {
  color: rgba(255, 255, 255, .72);
  font-size: 10.5px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 27, .86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
  padding: 40px;
}

.gallery-lightbox.show {
  display: flex;
}

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 6px;
  margin-bottom: 10px;
}

.footer-inner {
  padding: 22px 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--blog-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--blog-text-light);
  text-decoration: none;
  font-size: 12.5px;
}

.footer-links a:hover {
  color: var(--themecolor);
}

.footer-text {
  margin-bottom: 6px;
  line-height: 1.8;
}

.footer-copy {
  color: #a9b2c4;
  font-size: 11.5px;
}

.footer-icp {
  margin-top: 4px;
  font-size: 11.5px;
}

.footer-icp a {
  color: #a9b2c4;
  text-decoration: none;
}

/* ---------------- 空状态 / 404 ---------------- */
.empty-state .card-body {
  padding: 46px 20px;
  color: var(--blog-muted);
}

.empty-state i {
  font-size: 34px;
  color: #d3d9e6;
  margin-bottom: 12px;
  display: block;
}

.notfound-card .card-body {
  padding: 60px 20px;
}

.notfound-code {
  font-size: 60px;
  font-weight: 700;
  color: var(--themecolor);
  margin: 0 0 8px;
}

/* 悬浮按钮 */
.float-action-buttons {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fabtn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #7b86a1;
  box-shadow: 0 4px 16px rgba(50, 50, 93, .16);
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
}

html.darkmode .fabtn {
  background: #3d3d3d;
  color: #ddd;
}

.fabtn:hover {
  background: var(--themecolor);
  color: #fff;
}

.fabtn-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* 侧栏遮罩 */
#sidebar_mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1100;
  display: none;
}

#sidebar_mask.show {
  display: block;
}

/* 顶部横向导航：覆盖 Argon 主题 navbar-nav 默认的竖排布局 */
.navbar-main .nav-main {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 0 0 10px !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: none !important;
}

.navbar-main .nav-main > .nav-item {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.navbar-main .nav-main .nav-link {
  display: block;
  padding: 7px 12px !important;
  line-height: 1.25;
  border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}

.navbar-main .nav-main .nav-link:hover,
.navbar-main .nav-main .nav-item.active .nav-link {
  background: rgba(255, 255, 255, .18);
  color: #fff !important;
}

/* 桌面端菜单统一放在顶栏，侧栏不再重复竖排菜单 */
@media (min-width: 992px) {
  .leftbar-menu {
    display: none !important;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .nav-main {
    gap: 0;
  }

  .navbar-main .nav-main .nav-link {
    padding: 6px 9px !important;
    font-size: 13px;
  }

  .nav-search {
    width: 160px;
  }
}

@media (max-width: 991px) {
  .nav-main {
    display: none;
  }

  #open_sidebar {
    display: block;
    width: 40px;
    text-align: center;
  }

  .navbar-title {
    flex: 1;
    margin-right: 10px;
  }

  .nav-search {
    width: 150px;
  }

  .leftbar {
    position: fixed;
    left: 0 !important;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    width: 280px;
    flex: none;
    z-index: 1200;
    background: var(--blog-bg);
    padding: 14px 14px 30px;
    transform: translateX(-102%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .1);
  }

  .leftbar.leftbar-open {
    transform: none;
  }

  #primary {
    width: 100%;
    padding-left: 0;
    flex: 1 1 100%;
  }

  #content {
    padding: 26px 14px 30px;
    margin-top: 0;
  }

  body.argon-blog {
    --banner-h: 390px;
  }

  body.is-home {
    --banner-h: 430px;
  }

  section.banner {
    height: var(--banner-h);
  }

  .banner-container {
    height: var(--banner-h) !important;
    padding: 0 18px 46px;
  }

  body.is-home .banner-container {
    padding-bottom: 56px;
  }

  .banner-typing {
    font-size: 13.5px;
    margin-top: 8px;
  }

  .banner-title-inner {
    font-size: 30px;
  }

  .category-grid,
  .link-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-body,
  .post-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .post-full .post-header,
  .post-toc-inline,
  .post-copyright {
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .comment-form-row {
    flex-direction: column;
    gap: 0;
  }

  .post-navigation {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body.argon-blog {
    --banner-h: 320px;
  }

  body.is-home {
    --banner-h: 340px;
  }

  section.banner {
    height: var(--banner-h);
  }

  .banner-container {
    height: var(--banner-h) !important;
    padding: 0 14px 30px;
  }

  body.is-home .banner-container {
    padding-bottom: 34px;
  }

  .banner-typing {
    font-size: 12.5px;
    margin-top: 7px;
  }

  .banner-title-inner {
    font-size: 23px;
    letter-spacing: 1px;
  }

  .banner-subtitle {
    font-size: 12.5px;
    padding: 0 16px;
    letter-spacing: .6px;
  }

  .nav-search {
    display: none;
  }

  .category-grid,
  .link-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .post-title-large {
    font-size: 23px !important;
  }

  .float-action-buttons {
    right: 12px;
    bottom: 16px;
  }

  .post-meta {
    font-size: 11.5px;
  }

  .comments-area .card-body,
  .post-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-links {
    gap: 10px;
  }
}

/* ---------- APlayer 音乐播放器（固定左下角，迷你模式） ---------- */
.aplayer-host {
  line-height: normal;
}

.aplayer.aplayer-fixed {
  z-index: 90;
  font-family: inherit;
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.aplayer.aplayer-fixed .aplayer-body {
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(18, 28, 58, .22);
  overflow: hidden;
  padding-bottom: 4px;
}

.aplayer .aplayer-info .aplayer-music .aplayer-title {
  font-weight: 600;
}

.aplayer .aplayer-list ol li.aplayer-list-light {
  background: rgba(94, 114, 228, .08);
}

html.darkmode .aplayer,
html.darkmode .aplayer.aplayer-fixed .aplayer-body,
html.darkmode .aplayer .aplayer-list {
  background: #23262f !important;
  color: #e8ebf2;
}

html.darkmode .aplayer .aplayer-info {
  border-top-color: #343a48 !important;
}

html.darkmode .aplayer .aplayer-list {
  border-color: #343a48 !important;
}

html.darkmode .aplayer .aplayer-list ol li {
  color: #d7dbe5;
  border-top-color: #343a48;
}

html.darkmode .aplayer .aplayer-list ol li:hover,
html.darkmode .aplayer .aplayer-list ol li.aplayer-list-light {
  background: #2c3140;
}

html.darkmode .aplayer .aplayer-info .aplayer-music .aplayer-title,
html.darkmode .aplayer .aplayer-info .aplayer-music .aplayer-author {
  color: #f2f4f8;
}

html.darkmode .aplayer .aplayer-icon path,
html.darkmode .aplayer .aplayer-time .aplayer-icon path,
html.darkmode .aplayer .aplayer-miniswitcher .aplayer-icon path {
  fill: #cfd6e4;
}

html.darkmode .aplayer .aplayer-icon:hover path,
html.darkmode .aplayer .aplayer-time .aplayer-icon:hover path {
  fill: #ffffff;
}

html.darkmode .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
  background: #3c4354;
}

@media (max-width: 640px) {
  .aplayer.aplayer-fixed {
    max-width: 100%;
  }

  .aplayer.aplayer-fixed .aplayer-body {
    max-width: 100%;
  }

  body.has-aplayer .float-action-buttons {
    bottom: 90px !important;
    transition: none;
  }
}


/* ✏️ ================= 春季欢迎弹窗（纯前端 · 无外部接口） ================= */
.spring-welcome {                                                           /* ✏️ */
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
  background: linear-gradient(160deg, rgba(255, 250, 247, .95) 0%, rgba(253, 244, 247, .93) 46%, rgba(243, 248, 238, .95) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: inherit;
}

.spring-welcome.is-open {                                                   /* ✏️ */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity .7s ease, transform .7s ease;
}

.spring-welcome.is-closing {                                                /* ✏️ */
  opacity: 0;
  visibility: visible;
  transform: translateY(-42px) scale(.985);
  transition: opacity .6s ease, transform .6s ease;
}

.spring-welcome-bg {                                                        /* ✏️ */
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 春风扩散圆环 */
.spring-rings span {                                                        /* ✏️ */
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(88vmin, 760px);
  height: min(88vmin, 760px);
  border: 1px solid rgba(244, 178, 198, .28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.22);
  animation: spring-ring 11s ease-out infinite;
}

.spring-rings span:nth-child(2) { animation-delay: 3.6s; }                  /* ✏️ */
.spring-rings span:nth-child(3) { animation-delay: 7.2s; }                  /* ✏️ */

@keyframes spring-ring {                                                    /* ✏️ */
  0% { transform: translate(-50%, -50%) scale(.22); opacity: 0; }
  16% { opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0; }
}

/* 柔光光斑 */
.spring-glows i {                                                           /* ✏️ */
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .5;
  animation: spring-glow-float 18s ease-in-out infinite;
}

.spring-glows i:nth-child(1) {                                              /* ✏️ */
  left: 6%;
  bottom: -12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 213, 228, .85), rgba(255, 213, 228, 0) 70%);
  animation-duration: 19s;
}

.spring-glows i:nth-child(2) {                                              /* ✏️ */
  right: 8%;
  bottom: 4%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(226, 243, 200, .8), rgba(226, 243, 200, 0) 70%);
  animation-duration: 23s;
  animation-delay: -4s;
}

.spring-glows i:nth-child(3) {                                              /* ✏️ */
  left: 22%;
  top: 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 214, .75), rgba(255, 236, 214, 0) 70%);
  animation-duration: 26s;
  animation-delay: -9s;
}

.spring-glows i:nth-child(4) {                                              /* ✏️ */
  right: 18%;
  top: 16%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 223, 235, .7), rgba(255, 223, 235, 0) 70%);
  animation-duration: 21s;
  animation-delay: -13s;
}

.spring-glows i:nth-child(5) {                                              /* ✏️ */
  left: 44%;
  bottom: -18%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 50% 50%, rgba(219, 236, 244, .6), rgba(219, 236, 244, 0) 70%);
  animation-duration: 28s;
  animation-delay: -7s;
}

@keyframes spring-glow-float {                                              /* ✏️ */
  0% { transform: translate3d(0, 20px, 0) scale(.92); opacity: .32; }
  50% { transform: translate3d(12px, -42px, 0) scale(1.08); opacity: .58; }
  100% { transform: translate3d(0, 20px, 0) scale(.92); opacity: .32; }
}

/* 樱花花瓣 / 嫩叶 */
.spring-petals {                                                            /* ✏️ */
  position: absolute;
  inset: 0;
}

.spring-petal {                                                             /* ✏️ */
  position: absolute;
  top: -10vh;
  left: 0;
  animation-name: spring-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.spring-petal-inner {                                                       /* ✏️ */
  display: block;
  width: var(--size, 12px);
  height: var(--size, 12px);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #ffd9e4 0%, #f7b2c8 100%);
  box-shadow: 0 0 6px rgba(247, 178, 200, .35);
  animation-name: spring-sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  will-change: transform;
}

.spring-petal.is-leaf .spring-petal-inner {                                 /* ✏️ */
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #e6f5cf 0%, #b9dd8f 100%);
  box-shadow: 0 0 6px rgba(185, 221, 143, .3);
}

@keyframes spring-fall {                                                    /* ✏️ */
  from { transform: translate3d(0, -10vh, 0); }
  to { transform: translate3d(0, 110vh, 0); }
}

@keyframes spring-sway {                                                    /* ✏️ */
  from { transform: translateX(calc(var(--drift, 30px) * -1)) rotate(calc(var(--spin, 300deg) * -1)); }
  to { transform: translateX(var(--drift, 30px)) rotate(var(--spin, 300deg)); }
}

/* 文案与按钮 */
.spring-welcome-inner {                                                     /* ✏️ */
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.spring-welcome-text {                                                      /* ✏️ */
  margin: 0;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  color: #3d4759;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  animation: spring-text-glow 4.6s ease-in-out infinite;
}

.spring-welcome-text.is-in {                                                /* ✏️ */
  opacity: 1;
  transform: translateY(0);
}

@keyframes spring-text-glow {                                               /* ✏️ */
  0%, 100% { text-shadow: 0 0 10px rgba(255, 205, 222, .45), 0 0 24px rgba(255, 205, 222, .22); }
  50% { text-shadow: 0 0 16px rgba(255, 205, 222, .72), 0 0 36px rgba(255, 205, 222, .38); }
}

.spring-welcome-hint {                                                      /* ✏️ */
  margin: 18px 0 22px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #8a93a6;
}

.spring-welcome-btn {                                                       /* ✏️ */
  display: inline-block;
  padding: 10px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--themecolor, #5e72e4);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(94, 114, 228, .28);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.spring-welcome-btn:hover {                                                 /* ✏️ */
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(94, 114, 228, .36);
  color: #fff;
}

.spring-welcome-btn:active {                                                /* ✏️ */
  transform: translateY(0);
  opacity: .9;
}

/* 暗色模式：低饱和春系配色，整体降亮度 */
html.darkmode .spring-welcome {                                             /* ✏️ */
  background: linear-gradient(160deg, rgba(30, 32, 40, .96) 0%, rgba(35, 31, 40, .95) 48%, rgba(29, 35, 32, .96) 100%);
}

html.darkmode .spring-welcome-text {                                        /* ✏️ */
  color: #e6e3ee;
  animation-name: spring-text-glow-dark;
}

@keyframes spring-text-glow-dark {                                          /* ✏️ */
  0%, 100% { text-shadow: 0 0 10px rgba(206, 158, 178, .26); }
  50% { text-shadow: 0 0 18px rgba(206, 158, 178, .42); }
}

html.darkmode .spring-petal-inner {                                         /* ✏️ */
  filter: saturate(.45) brightness(.72);
  opacity: .55;
  box-shadow: none;
}

html.darkmode .spring-petal.is-leaf .spring-petal-inner {                   /* ✏️ */
  filter: saturate(.38) brightness(.62);
  opacity: .45;
}

html.darkmode .spring-glows i {                                             /* ✏️ */
  opacity: .16;
  filter: blur(44px) saturate(.55);
}

html.darkmode .spring-rings span {                                          /* ✏️ */
  border-color: rgba(206, 168, 186, .16);
}

html.darkmode .spring-welcome-hint {                                        /* ✏️ */
  color: #9aa1b0;
}

html.darkmode .spring-welcome-btn {                                          /* ✏️ */
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
}

@media (max-width: 640px) {                                                 /* ✏️ */
  .spring-welcome { padding: 18px; }
  .spring-welcome-text { font-size: 19px; letter-spacing: 1px; }
  .spring-welcome-hint { font-size: 12px; margin: 14px 0 18px; }
  .spring-rings span { width: 80vmin; height: 80vmin; }
  .spring-glows i { filter: blur(26px); }
}

@media (prefers-reduced-motion: reduce) {                                    /* ✏️ */
  .spring-petal,
  .spring-petal-inner,
  .spring-glows i,
  .spring-rings span,
  .spring-welcome-text { animation: none !important; }
  .spring-welcome-text { opacity: 1; transform: none; }
}

/* ✏️ ================= 右侧栏站点信息卡片组（5 块） ================= */
.rightbar {                                                                     /* ✏️ 与正文同滚动：不吸顶、不内部滚动 */
  flex: 0 0 260px;
  width: 260px;
  align-self: flex-start;
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0 0 0 24px;
  margin-bottom: 20px;
}

.side-card {                                                                    /* ✏️ */
  border-radius: var(--card-radius, 10px);
  overflow: hidden;
  margin-bottom: 16px;
}

.side-card:last-child { margin-bottom: 0; }                                     /* ✏️ */

.side-card .sidebar-widget-title { margin-bottom: 10px; }                       /* ✏️ */

/* 1. 问候卡 */
.side-card-greet .side-card-cover {                                             /* ✏️ */
  position: relative;
  height: 146px;
  background-size: cover;
  background-position: center;
  background-color: var(--themecolor);
}

.side-card-greet .side-card-cover::after {                                      /* ✏️ */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 100%);
}

.side-card-hello {                                                              /* ✏️ */
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.side-card-greet-body { padding: 12px 14px 14px !important; }                   /* ✏️ */

.side-card-clock {                                                              /* ✏️ */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.side-card-time {                                                               /* ✏️ */
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--themecolor);
  font-variant-numeric: tabular-nums;
}

.side-card-date {                                                               /* ✏️ */
  font-size: 12px;
  color: var(--blog-text-light, #8898aa);
}

/* 2/3. 统计与站点信息列表 */
.side-card-list { list-style: none; margin: 0; padding: 0; }                    /* ✏️ */

.side-card-list li {                                                            /* ✏️ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--blog-line, #eef0f5);
}

.side-card-list li:last-child { border-bottom: 0; padding-bottom: 0; }          /* ✏️ */

.side-card-k { color: var(--blog-text-light, #8898aa); flex: 0 0 auto; }        /* ✏️ */

.side-card-v {                                                                  /* ✏️ */
  color: var(--blog-text, #32325d);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.side-card-v:hover { color: var(--themecolor); text-decoration: none; }        /* ✏️ */

/* 4. 日历 + 热力 */
.side-cal-bar {                                                                 /* ✏️ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--blog-text, #32325d);
  font-weight: 600;
}

.side-cal-nav {                                                                 /* ✏️ */
  width: 22px;
  height: 22px;
  line-height: 18px;
  border: 1px solid var(--blog-line, #e9ecef);
  background: transparent;
  border-radius: 6px;
  color: var(--blog-text-light, #8898aa);
  cursor: pointer;
  padding: 0;
}

.side-cal-nav:hover {                                                           /* ✏️ */
  color: var(--themecolor);
  border-color: var(--themecolor);
}

.side-cal-week,                                                                 /* ✏️ */
.side-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.side-cal-week span {                                                           /* ✏️ */
  font-size: 11px;
  color: var(--blog-muted, #adb5bd);
  padding: 2px 0;
}

.side-cal-cell {                                                                /* ✏️ */
  position: relative;
  height: 28px;
  line-height: 28px;
  font-size: 11.5px;
  color: var(--blog-text-light, #8898aa);
  border-radius: 6px;
}

.side-cal-cell.is-empty { visibility: hidden; }                                 /* ✏️ */

.side-cal-cell.is-today {                                                       /* ✏️ */
  background: var(--themecolor);
  color: #fff;
  font-weight: 600;
}

.side-cal-cell.has-post:not(.is-today) { color: var(--themecolor); font-weight: 600; } /* ✏️ */

.side-cal-cell.has-post i {                                                     /* ✏️ */
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--themecolor);
}

.side-cal-cell.is-today.has-post i { background: #fff; }                        /* ✏️ */

.side-heat {                                                                    /* ✏️ */
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 10px 0 6px;
}

.side-heat-cell {                                                               /* ✏️ */
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: #eef1f7;
  display: block;
}

.side-heat .heat-lv0 { background: #eef1f7; }                                   /* ✏️ */
.side-heat .heat-lv1 { background: color-mix(in srgb, var(--themecolor) 25%, #eef1f7); }
.side-heat .heat-lv2 { background: color-mix(in srgb, var(--themecolor) 45%, #ffffff); }
.side-heat .heat-lv3 { background: color-mix(in srgb, var(--themecolor) 70%, #ffffff); }
.side-heat .heat-lv4 { background: var(--themecolor); }

.side-heat-legend {                                                             /* ✏️ */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 10.5px;
  color: var(--blog-muted, #adb5bd);
  margin-bottom: 8px;
}

.side-heat-legend i {                                                           /* ✏️ */
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: block;
}

.side-month-posts {                                                             /* ✏️ */
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--blog-line, #eef0f5);
}

.side-month-posts li {                                                          /* ✏️ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
}

.side-month-posts li a {                                                        /* ✏️ */
  color: var(--blog-text, #32325d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-month-posts li a:hover { color: var(--themecolor); text-decoration: none; } /* ✏️ */

.side-month-posts li time {                                                     /* ✏️ */
  flex: 0 0 auto;
  color: var(--blog-muted, #adb5bd);
  font-size: 11px;
}

.side-month-posts li.is-empty { justify-content: center; color: var(--blog-muted, #adb5bd); } /* ✏️ */

/* 5. 时间进度 */
.side-progress { margin-bottom: 10px; }                                         /* ✏️ */

.side-progress-head {                                                           /* ✏️ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--blog-text-light, #8898aa);
  margin-bottom: 4px;
}

.side-progress-head b { color: var(--themecolor); font-weight: 600; }           /* ✏️ */

.side-progress-track {                                                          /* ✏️ */
  height: 6px;
  border-radius: 6px;
  background: #eef1f7;
  overflow: hidden;
}

.side-progress-track i {                                                        /* ✏️ */
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--themecolor) 60%, #ffffff),
    var(--themecolor));
  transition: width .6s ease;
}

.side-countdown {                                                               /* ✏️ */
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--blog-line, #eef0f5);
}

.side-countdown-item {                                                          /* ✏️ */
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  border-radius: calc(var(--card-radius, 10px) / 1.6);
  background: color-mix(in srgb, var(--themecolor) 8%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 11.5px;
  color: var(--blog-text-light, #8898aa);
}

.side-countdown-item b { color: var(--themecolor); font-weight: 600; white-space: nowrap; } /* ✏️ */

/* 暗色模式 */
html.darkmode .side-card-list li,                                               /* ✏️ */
html.darkmode .side-month-posts,
html.darkmode .side-countdown { border-color: rgba(255, 255, 255, .1); }

html.darkmode .side-card-v,                                                     /* ✏️ */
html.darkmode .side-month-posts li a,
html.darkmode .side-cal-bar { color: #e9ecef; }

html.darkmode .side-cal-nav { border-color: rgba(255, 255, 255, .16); color: #cfd4dc; } /* ✏️ */

html.darkmode .side-heat-cell,                                                  /* ✏️ */
html.darkmode .side-heat .heat-lv0,
html.darkmode .side-progress-track { background: rgba(255, 255, 255, .12); }

html.darkmode .side-heat .heat-lv1 { background: color-mix(in srgb, var(--themecolor) 40%, #3a3a3a); } /* ✏️ */
html.darkmode .side-heat .heat-lv2 { background: color-mix(in srgb, var(--themecolor) 60%, #3a3a3a); }
html.darkmode .side-heat .heat-lv3 { background: color-mix(in srgb, var(--themecolor) 80%, #3a3a3a); }
html.darkmode .side-heat .heat-lv4 { background: var(--themecolor); }

html.darkmode .side-countdown-item {                                            /* ✏️ */
  background: rgba(255, 255, 255, .07);
  color: #cfd4dc;
}

html.darkmode .side-card-hello { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }    /* ✏️ */

/* 三栏宽度：右侧栏出现时放宽容器 */
@media (min-width: 1280px) {                                                    /* ✏️ */
  #content { max-width: 1440px; }
}

/* 窄屏：右侧栏降级为内容下方通栏 */
@media (max-width: 1279px) {                                                    /* ✏️ */
  #content {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
  }

  #primary {
    grid-column: 2;
    padding: 0 0 0 24px;
  }

  .rightbar {
    grid-column: 1 / -1;
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 8px 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .rightbar .side-card {
    flex: 1 1 calc(50% - 8px);
    margin-bottom: 0;
    height: 100%;
  }
}

@media (max-width: 1100px) {                                                    /* ✏️ */
  #content { display: block; }
  #primary { padding: 0; }
  .rightbar { margin-top: 20px; }
}

@media (max-width: 767px) {                                                     /* ✏️ */
  .rightbar { gap: 14px; }
  .rightbar .side-card { flex: 1 1 100%; }
  .side-card-greet .side-card-cover { height: 124px; }
  .side-heat-cell { width: 9px; height: 9px; }
}
/* ✏️ ================= 页脚社交图标（B 站 / GitHub / 公众号） ================= */
.footer-social {                                                                /* ✏️ */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.footer-social-item {                                                           /* ✏️ */
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f7b91;
  background: #eef1f7;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.footer-social-item svg {                                                       /* ✏️ */
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social-item:hover,                                                      /* ✏️ */
.footer-social-item:focus-visible {
  transform: scale(1.1);
  color: #fff;
  background: var(--themecolor);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--themecolor) 30%, transparent);
  outline: none;
}

html.darkmode .footer-social-item {                                             /* ✏️ */
  background: rgba(255, 255, 255, .08);
  color: #c7ccd8;
}

html.darkmode .footer-social-item:hover,
html.darkmode .footer-social-item:focus-visible { color: #fff; background: var(--themecolor); }

/* 公众号二维码弹窗 */
.wechat-qr {                                                                    /* ✏️ */
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.wechat-qr.is-open { display: flex; }                                            /* ✏️ */

.wechat-qr-mask {                                                               /* ✏️ */
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 38, .55);
  backdrop-filter: blur(2px);
}

.wechat-qr-card {                                                               /* ✏️ */
  position: relative;
  z-index: 1;
  width: min(300px, 92vw);
  padding: 22px 20px 18px;
  background: #fff;
  border-radius: var(--card-radius, 10px);
  box-shadow: 0 18px 50px rgba(20, 24, 38, .28);
  text-align: center;
}

.wechat-qr-card img {                                                           /* ✏️ */
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 10px;
  border-radius: 6px;
  background: #fff;
}

.wechat-qr-tip {                                                                /* ✏️ */
  margin: 0;
  font-size: 12.5px;
  color: #8898aa;
}

.wechat-qr-close {                                                              /* ✏️ */
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #adb5bd;
  cursor: pointer;
}

.wechat-qr-close:hover { color: var(--themecolor); }                             /* ✏️ */

html.darkmode .wechat-qr-card { background: #3a3a3a; }                           /* ✏️ */
html.darkmode .wechat-qr-tip { color: #c0c5cf; }

/* ✏️ ================= 右侧栏数据统计卡片（/api/stats 动态渲染） ================= */
.side-stat-grid {                                                               /* ✏️ */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.side-stat-item {                                                               /* ✏️ */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px 9px;
  border-radius: calc(var(--card-radius, 10px) - 2px);
  background: #f6f8fc;
  color: #8a94a6;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.side-stat-item i {                                                             /* ✏️ */
  font-size: 15px;
  line-height: 1;
  opacity: .85;
}

.side-stat-num {                                                                /* ✏️ */
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  color: #32325d;
  font-variant-numeric: tabular-nums;
}

.side-stat-name {                                                               /* ✏️ */
  font-size: 12px;
  color: #8898aa;
}

a.side-stat-item:hover,                                                         /* ✏️ */
a.side-stat-item:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--themecolor) 10%, #f6f8fc);
  color: var(--themecolor);
  text-decoration: none;
}

a.side-stat-item:hover .side-stat-num,
a.side-stat-item:focus-visible .side-stat-num { color: var(--themecolor); }

.side-stat-tip {                                                                /* ✏️ */
  margin-top: 8px;
  font-size: 12px;
  color: #adb5bd;
  text-align: center;
}

html.darkmode .side-stat-item { background: rgba(255, 255, 255, .07); }          /* ✏️ */
html.darkmode .side-stat-num { color: #e9ecef; }
html.darkmode .side-stat-name,                                                  /* ✏️ */
html.darkmode .side-stat-tip { color: #b7bdc9; }
html.darkmode a.side-stat-item:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 767px) {                                                     /* ✏️ */
  .side-stat-item { padding: 9px 4px 8px; }
  .side-stat-num { font-size: 16px; }
}
