/*
 * Small site-level enhancements that sit on top of Theme Redefine.
 * Keep these styles separate from the theme package so dependency updates
 * do not overwrite the blog's custom interface.
 */

html .preloader {
  gap: 1.15rem !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(163, 31, 52, 0.08), transparent 32%),
    #ffffff !important;
}

[data-player-seek]:focus-visible {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 4px;
}

html.dark .preloader {
  background:
    radial-gradient(circle at 50% 44%, rgba(214, 107, 125, 0.14), transparent 34%),
    #202124 !important;
}

.home-banner-background {
  background: #7f96aa;
}

html.dark .home-banner-background {
  background: #252a31;
}

.article-title {
  background: var(--third-background-color);
}

img.blog-image-failed {
  min-height: 180px;
  border: 1px solid var(--border-color);
  background: var(--third-background-color);
  object-fit: cover;
}

html .preloader .ml13 {
  position: relative;
  margin: 0;
  color: #2f3338 !important;
  font-size: 2.8rem !important;
  font-size: clamp(2.25rem, 7vw, 3.35rem) !important;
  font-weight: 560 !important;
  letter-spacing: -0.045em !important;
}

html.dark .preloader .ml13 {
  color: #f1f2f3 !important;
}

html .preloader .ml13::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 2px;
  margin: 1.05rem auto 0;
  border-radius: 999px;
  background: #a31f34;
  animation: blog-loader-pulse 1.1s ease-in-out infinite alternate;
}

.swup-progress-bar {
  height: 2px !important;
  background: #a31f34 !important;
  box-shadow: 0 1px 5px rgba(163, 31, 52, 0.18);
}

#busuanzi_value_page_pv:empty::before,
#busuanzi_value_site_uv:empty::before,
#busuanzi_value_site_pv:empty::before {
  content: "—";
}

.article-pv #busuanzi_value_page_pv::after {
  content: " 次浏览";
}

@keyframes blog-loader-pulse {
  from {
    opacity: 0.38;
    transform: scaleX(0.72);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html .preloader .ml13::after {
    animation: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

:root {
  --blog-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong,
    "SimSun", Georgia, serif;
  --blog-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  /* Wine (theme primary) drives inner-page focus; blue-gray plays the
     supporting role on secondary chrome and homepage widget bodies. */
  --blog-wine: #a31f34;
  --blog-wine-strong: #86182a;
  --blog-wine-soft: rgba(163, 31, 52, 0.1);
  --blog-wine-border: rgba(163, 31, 52, 0.22);
  --blog-interaction-accent: #a31f34;
  --blog-interaction-accent-strong: #86182a;
  --blog-interaction-accent-soft: rgba(163, 31, 52, 0.1);
  --blog-player-accent: #627b95;
  --blog-player-accent-strong: #4d6b8a;
  --blog-player-accent-soft: rgba(77, 107, 138, 0.1);
  /* Focus accents (play button, seek fill, kicker, weather main icon) borrow
     the theme's wine so the homepage widgets stop reading as fully blue-gray. */
  --blog-player-focus: var(--blog-wine);
  --blog-player-focus-strong: var(--blog-wine-strong);
  --blog-player-focus-soft: var(--blog-wine-soft);
  /* Custom content pages use the theme's native canvas. Muted color remains
     limited to labels and interaction states instead of tinting the page. */
  --blog-index-page-surface: var(--background-color);
  --blog-index-surface: var(--background-color);
  --blog-index-border: var(--border-color);
  --blog-index-primary: var(--blog-wine);
  --blog-index-primary-strong: var(--blog-wine-strong);
  --blog-index-primary-soft: var(--blog-wine-soft);
  --blog-index-primary-border: var(--blog-wine-border);
  --blog-index-interactive: var(--blog-interaction-accent);
  --blog-index-interactive-soft: var(--blog-interaction-accent-soft);
  --blog-index-secondary: #627b95;
  --blog-index-secondary-soft: rgba(77, 107, 138, 0.09);
  --blog-index-secondary-border: rgba(77, 107, 138, 0.2);
  --blog-index-radius-card: 20px;
  --blog-index-radius-control: 14px;
  --blog-index-radius-pill: 999px;
  --blog-index-shadow: 0 6px 20px rgba(42, 46, 54, 0.065);
  --blog-index-shadow-hover: 0 14px 32px rgba(42, 46, 54, 0.12);
  --blog-index-focus-ring: 0 0 0 4px var(--blog-index-interactive-soft);
  --blog-index-motion: 220ms cubic-bezier(0.2, 0.72, 0.25, 1);
  --blog-glass-light: rgba(255, 255, 255, 0.86);
  --blog-glass-dark: rgba(37, 39, 44, 0.86);
  --blog-glass-border-light: var(--border-color);
  --blog-glass-border-dark: rgba(255, 255, 255, 0.1);
  --blog-card-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

html.dark {
  --blog-wine: #d66b7d;
  --blog-wine-strong: #e58998;
  --blog-wine-soft: rgba(214, 107, 125, 0.14);
  --blog-wine-border: rgba(214, 107, 125, 0.26);
  --blog-interaction-accent: var(--blog-wine);
  --blog-interaction-accent-strong: var(--blog-wine-strong);
  --blog-interaction-accent-soft: var(--blog-wine-soft);
  --blog-player-accent: #91abc4;
  --blog-player-accent-strong: #b7c9db;
  --blog-player-accent-soft: rgba(145, 171, 196, 0.13);
  --blog-player-focus: var(--blog-wine);
  --blog-player-focus-strong: var(--blog-wine-strong);
  --blog-player-focus-soft: var(--blog-wine-soft);
  --blog-index-page-surface: var(--background-color);
  --blog-index-surface: var(--background-color);
  --blog-index-border: var(--border-color);
  --blog-index-primary: var(--blog-wine);
  --blog-index-primary-strong: var(--blog-wine-strong);
  --blog-index-primary-soft: var(--blog-wine-soft);
  --blog-index-primary-border: var(--blog-wine-border);
  --blog-index-secondary: #91abc4;
  --blog-index-secondary-soft: rgba(145, 171, 196, 0.14);
  --blog-index-secondary-border: rgba(145, 171, 196, 0.22);
  --blog-index-interactive-soft: var(--blog-interaction-accent-soft);
  --blog-index-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  --blog-index-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.3);
  --blog-index-focus-ring: 0 0 0 4px var(--blog-index-interactive-soft);
}

body,
button,
input {
  font-family: var(--blog-serif);
}

code,
pre {
  font-family: var(--blog-sans);
}

.blog-inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: -0.14em;
}

html .sidebar-links .blog-inline-icon,
html .navbar-list .blog-inline-icon {
  width: 1.05em;
  height: 1.05em;
}

html .search-popup-trigger .blog-search-icon {
  width: 1em;
  height: 1em;
  color: var(--default-text-color);
}

html .home-banner-scroll-cue .blog-banner-arrow-icon {
  width: 1.3em;
  height: 1.3em;
}

html .home-article-meta-info-container .blog-home-meta-icon,
html .home-article-meta-info-container .blog-read-more-icon,
html .pagination-container .blog-pagination-icon {
  width: 0.95em;
  height: 0.95em;
}

html .right-side-tools-container .blog-side-tool-icon {
  width: 1.12em;
  height: 1.12em;
}

html .blog-footer-heart-icon {
  width: 1em;
  height: 1em;
  color: #f54545;
  fill: currentColor;
  stroke-width: 1.4;
}

html .blog-search-field-icon,
html .blog-search-close-icon {
  width: 1em;
  height: 1em;
}

html .blog-search-loading-icon {
  width: 4rem;
  height: 4rem;
  animation: blog-icon-spin 1s linear infinite;
}

html .image-viewer-close > i::before,
html .image-viewer-exif-close > i::before,
html .image-viewer-prev > i::before,
html .image-viewer-next > i::before,
html .image-viewer-exif-toggle > i::before,
html .image-viewer-exif-card-icon::before {
  font-family: var(--blog-sans) !important;
  font-style: normal;
  font-weight: 700;
}

html .image-viewer-close > i::before,
html .image-viewer-exif-close > i::before {
  content: "×" !important;
}

html .image-viewer-prev > i::before {
  content: "‹" !important;
}

html .image-viewer-next > i::before {
  content: "›" !important;
}

html .image-viewer-exif-toggle > i::before,
html .image-viewer-exif-card-icon::before {
  content: "i" !important;
}

@keyframes blog-icon-spin {
  to {
    transform: rotate(360deg);
  }
}

html .navbar-container .logo-title,
html .navbar-container .navbar-list a,
html .home-sidebar-container .sidebar-links .link-name,
html .home-sidebar-container .author .name,
html .home-article-container .home-article-title,
html .home-article-title,
html .page-title-header,
html .page-template-content.markdown-body > h1:first-child,
html .post-page-container .article-title h1 {
  font-family: var(--blog-serif) !important;
}

html .home-sidebar-container .sidebar-content,
html .home-sidebar-container .sidebar-content .author,
html .home-sidebar-container .sidebar-content .statistics {
  font-family: var(--blog-serif) !important;
}

html .navbar-container .navbar-list a {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html .navbar-container .logo-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html .home-article-title {
  font-size: 1.34rem !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}

html .home-article-content.markdown-body,
html .post-page-container .markdown-body,
html .page-template-content.markdown-body {
  font-family: var(--blog-serif);
  font-size: 1.04rem !important;
  line-height: 1.88 !important;
  letter-spacing: 0.005em;
}

html .home-article-meta-info-container,
html .article-meta-info,
html .post-tags-box {
  font-family: var(--blog-sans);
}

/* -------------------------------------------------------------------------- */
/* Archive, tags and categories                                               */
/* -------------------------------------------------------------------------- */

html[data-blog-section] .page-template-container,
html[data-blog-section="archive"] .archive-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 34px 38px 42px !important;
  border: 1px solid var(--blog-index-border);
  border-radius: 22px;
  background: var(--blog-index-page-surface);
  box-shadow: var(--blog-index-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-blog-section] .page-template-content.markdown-body {
  width: 100%;
}

.page-template-container > .page-title-header,
.page-template-content.markdown-body > h1:first-child,
.page-template-container > .tag-name,
.page-template-container > .category-name,
.archive-container > .archive-page-title {
  position: relative;
  width: fit-content;
  margin: 0 0 36px !important;
  padding: 0 0 14px;
  border-bottom: 0;
  color: var(--second-text-color);
  font-size: 2.65rem;
  font-size: clamp(2.15rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12 !important;
  text-align: left;
}

.page-template-container > .page-title-header::after,
.page-template-content.markdown-body > h1:first-child::after,
.page-template-container > .tag-name::after,
.page-template-container > .category-name::after,
.archive-container > .archive-page-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 46px;
  height: 3px;
  border-radius: var(--blog-index-radius-pill);
  background: var(--blog-index-primary);
  box-shadow: 0 3px 9px var(--blog-index-primary-soft);
  content: "";
}

.page-template-container > .tag-name > i,
.page-template-container > .category-name > i {
  display: none;
}

.page-template-container .tagcloud-content,
.page-template-container .category-list-content {
  padding-top: 2px;
}

.category-list-content .all-category-list {
  padding-left: 0 !important;
}

.blog-index-list .archive-year {
  color: var(--blog-index-primary-strong);
  font-size: 1.45rem !important;
}

.blog-index-list .archive-year-post-count {
  border-color: var(--blog-index-secondary-border);
  color: var(--blog-index-secondary);
  background: var(--blog-index-secondary-soft);
}

.blog-index-list .archive-item {
  margin-bottom: 2.35rem;
}

.blog-index-list .archive-list-container {
  max-width: none;
  margin: 0;
}

.blog-index-list .archive-item-header {
  margin-bottom: 0.9rem !important;
}

.blog-index-list .archive-list-container .article-list {
  position: relative;
  margin: 0;
  padding-left: 30px !important;
}

.blog-index-list .archive-list-container .article-list::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 7px;
  width: 1px;
  background: var(--blog-index-primary-border);
  content: "";
}

.blog-index-list .archive-list-container .article-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  min-height: 48px;
  padding: 0 !important;
  border-left: 0 !important;
  gap: 0 8px;
}

.blog-index-list .archive-list-container .article-item > a {
  box-sizing: border-box;
  grid-column: 2;
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 10px 6px;
  border: 1px solid transparent;
  border-radius: var(--blog-index-radius-control);
  outline: none;
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    background-image var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.blog-index-list .archive-list-container .article-item::before {
  position: static;
  display: block;
  grid-column: 1;
  grid-row: 1;
  padding: 10px 0;
  color: var(--blog-index-secondary);
  font-family: var(--blog-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.55;
  transition:
    color var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.blog-index-list .archive-list-container .article-item::after {
  position: absolute;
  top: 17px;
  left: -27px;
  display: block !important;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blog-index-primary);
  border-radius: 50%;
  background: var(--blog-index-surface);
  box-shadow: 0 0 0 3px var(--blog-index-primary-soft);
  content: "";
  transition:
    border-color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.blog-index-list
  .archive-list-container
  .article-item
  span.article-title::after {
  display: none !important;
}

.blog-index-list
  .archive-list-container
  .article-item
  span.article-title {
  color: var(--second-text-color);
  font-size: 1.05rem !important;
  font-weight: 600;
  line-height: 1.55;
  transition: color var(--blog-index-motion);
}

.blog-index-list
  .archive-list-container
  .article-item
  > a:focus-visible {
  border-color: var(--blog-index-interactive);
  background: var(--blog-index-surface);
  box-shadow: var(--blog-index-focus-ring);
}

html .tagcloud-content .tag-list li,
.category-list-content
  .all-category-list
  > .all-category-list-item {
  --taxonomy-accent: var(--blog-index-primary);
  --taxonomy-soft: var(--blog-index-primary-soft);
  --taxonomy-border: var(--blog-index-primary-border);
}

html .tagcloud-content .tag-list li:nth-child(even) {
  --taxonomy-accent: var(--blog-index-secondary);
  --taxonomy-soft: var(--blog-index-secondary-soft);
  --taxonomy-border: var(--blog-index-secondary-border);
}

.category-list-content
  .all-category-list
  > .all-category-list-item:nth-child(even) {
  --taxonomy-accent: var(--blog-index-secondary);
  --taxonomy-soft: var(--blog-index-secondary-soft);
  --taxonomy-border: var(--blog-index-secondary-border);
}

html .tagcloud-content .tag-list li a {
  border: 1px solid var(--taxonomy-border);
  border-radius: var(--blog-index-radius-control);
  outline: none;
  background-color: var(--blog-index-surface);
  box-shadow: var(--blog-index-shadow);
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html .tagcloud-content .tag-list li a .fa-hashtag {
  color: var(--taxonomy-accent);
  opacity: 0.72;
  transition:
    color var(--blog-index-motion),
    opacity var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html .tagcloud-content .tag-list[data-show-value] li a::after {
  color: var(--taxonomy-accent);
  background: var(--taxonomy-soft);
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html .tagcloud-content .tag-list li a:focus-visible {
  border-color: var(--blog-index-interactive);
  color: var(--blog-index-interactive);
  background-color: var(--blog-index-interactive-soft) !important;
  box-shadow: var(--blog-index-focus-ring), var(--blog-index-shadow-hover);
}

html
  .category-list-content
  .all-category-list
  > .all-category-list-item {
  padding: 0 !important;
  border: 1px solid var(--taxonomy-border);
  border-radius: var(--blog-index-radius-card);
  outline: none;
  background-color: var(--blog-index-surface);
  box-shadow: var(--blog-index-shadow);
  transition:
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html
  .category-list-content
  .all-category-list
  > .all-category-list-item
  > a.all-category-list-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 1rem 1.1rem;
  border-bottom: 0;
  color: var(--taxonomy-accent);
  outline: none;
  gap: 0.75rem;
  text-decoration: none;
  transition:
    color var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html
  .category-list-content
  .all-category-list
  > .all-category-list-item
  > a.all-category-list-link
  > span.all-category-list-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--taxonomy-accent);
  background: var(--taxonomy-soft);
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    transform var(--blog-index-motion);
}

html
  .category-list-content
  .all-category-list
  > .all-category-list-item
  > a.all-category-list-link:focus-visible {
  border-radius: 8px;
  color: var(--blog-index-interactive);
  box-shadow: var(--blog-index-focus-ring);
}

@media (hover: hover) and (pointer: fine) {
  .blog-index-list .archive-list-container .article-item:hover > a {
    border-color: var(--blog-index-interactive-soft);
    color: var(--blog-index-interactive);
    background: var(--blog-index-surface);
    box-shadow: var(--blog-index-shadow);
    transform: translateX(5px);
  }

  .blog-index-list
    .archive-list-container
    .article-item:hover
    span.article-title {
    color: var(--blog-index-interactive);
  }

  .blog-index-list .archive-list-container .article-item:hover::before {
    color: var(--blog-index-interactive);
  }

  .blog-index-list .archive-list-container .article-item:hover::after,
  .blog-index-list
    .archive-list-container
    .article-item:hover
    span.article-title::after {
    border-color: var(--blog-index-interactive);
    background: var(--blog-index-interactive);
    box-shadow: 0 0 0 5px var(--blog-index-interactive-soft);
    transform: scale(1.08);
  }

  html .tagcloud-content .tag-list li a:hover,
    .category-list-content
    .all-category-list
    > .all-category-list-item:hover {
    border-color: var(--blog-index-interactive);
    box-shadow: var(--blog-index-shadow-hover);
    transform: translateY(-3px);
  }

  html .tagcloud-content .tag-list li a:hover .fa-hashtag,
  html
    .tagcloud-content
    .tag-list[data-show-value]
    li
    a:hover::after {
    color: var(--blog-index-interactive);
    opacity: 1;
    transform: translateY(-1px);
  }

  html .tagcloud-content .tag-list li a:hover {
    color: var(--blog-index-interactive) !important;
    background-color: var(--blog-index-interactive-soft) !important;
  }

  .category-list-content
    .all-category-list
    > .all-category-list-item:hover
    > a.all-category-list-link {
    color: var(--blog-index-interactive);
    transform: translateX(3px);
  }

  .category-list-content
    .all-category-list
    > .all-category-list-item:hover
    > span.all-category-list-count {
    color: var(--blog-index-interactive);
    background: var(--blog-index-interactive-soft);
    transform: scale(1.06);
  }
}

/* -------------------------------------------------------------------------- */
/* Shared glass cards                                                         */
/* -------------------------------------------------------------------------- */

.blog-widget {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--blog-glass-border-light);
  border-radius: 24px;
  background: var(--blog-glass-light);
  box-shadow: var(--blog-card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.dark .blog-widget {
  border-color: var(--blog-glass-border-dark);
  background: var(--blog-glass-dark);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

/* Use one edge treatment for both desktop rails. Theme Redefine owns the left
   rail markup, while the custom widgets own the right rail, so these shared
   tokens keep radius, border, fill and shadow visibly identical. */
html[data-blog-page="home"] .home-sidebar-container {
  box-sizing: border-box;
  width: 240px;
  flex: 0 0 240px;
  margin: 0 38px;
}

html[data-blog-page="home"] .home-sidebar-container .sticky-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

html[data-blog-page="home"] .home-sidebar-container .sidebar-content,
html[data-blog-page="home"] .home-sidebar-container .sidebar-links {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0 !important;
  border: 1px solid var(--blog-glass-border-light) !important;
  border-radius: 24px !important;
  background: var(--blog-glass-light) !important;
  box-shadow: var(--blog-card-shadow) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.dark[data-blog-page="home"] .home-sidebar-container .sidebar-content,
html.dark[data-blog-page="home"] .home-sidebar-container .sidebar-links {
  border-color: var(--blog-glass-border-dark) !important;
  background: var(--blog-glass-dark) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26) !important;
}

.blog-home-widgets {
  /* Mirror the left sidebar for full symmetry: same 240px width, same 38px
     outer margin, and the same ~23px gap between the two stacked cards. The
     left rail places 38px between itself and the article column; the article
     column already carries a 38px right margin, so the widgets only need a
     right margin (no left margin) to land at the same 38px distance. Both
     rails scroll with the page so they move together. */
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 240px;
  flex-direction: column;
  align-self: flex-start;
  width: 240px;
  margin: 0 38px 0 0;
  gap: 22px;
}

html[data-blog-page="home"] .main-content-body {
  align-items: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  html[data-blog-page="home"] .home-sidebar-container .sidebar-content,
  html[data-blog-page="home"] .home-sidebar-container .sidebar-links,
  html[data-blog-page="home"] .home-article-item,
  html[data-blog-page="home"] .blog-widget {
    will-change: transform, box-shadow;
    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease,
      border-color 0.28s ease !important;
  }

  html[data-blog-page="home"] .home-sidebar-container .sidebar-content:hover,
  html[data-blog-page="home"] .home-sidebar-container .sidebar-links:hover,
  html[data-blog-page="home"] .home-article-item:hover,
  html[data-blog-page="home"] .blog-widget:hover {
    border-color: rgba(163, 31, 52, 0.22) !important;
    box-shadow: 0 24px 54px rgba(45, 35, 30, 0.16) !important;
    transform: translateY(-6px) scale(1.01);
  }
}

/* -------------------------------------------------------------------------- */
/* Music player                                                               */
/* -------------------------------------------------------------------------- */

.blog-music-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Extra vertical room (set to match the left info card) distributes evenly. */
  justify-content: space-between;
  padding: 22px;
  font-family: var(--blog-serif);
}

.blog-music-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-player-cover {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--third-background-color);
  box-shadow: 0 9px 22px rgba(59, 42, 26, 0.18);
  animation: blog-record-spin 8s linear infinite;
  animation-play-state: paused;
}

.blog-player-surface.is-playing .blog-player-cover {
  animation-play-state: running;
}

.blog-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-player-cover::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  content: "";
}

/* The decorative vinyl-hole dot obscured the album art, so it is hidden on
   both the home and compact covers. */
.blog-player-cover-center {
  display: none;
}

.blog-music-card-copy {
  min-width: 0;
}

.blog-widget-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--blog-player-focus-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  transition: color 0.22s ease;
}

.blog-music-card-copy h2 {
  overflow: hidden;
  margin: 0;
  color: var(--second-text-color);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-music-card-copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--third-text-color);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-player-lyric {
  min-height: 2.8em;
  margin: 18px 0 13px;
  color: var(--default-text-color);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.blog-player-timeline {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  color: var(--third-text-color);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

[data-player-seek] {
  --player-progress: 0%;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(
    90deg,
    var(--blog-player-focus) var(--player-progress),
    rgba(123, 112, 101, 0.2) var(--player-progress)
  );
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

[data-player-seek]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--blog-player-accent-strong);
  box-shadow: 0 2px 7px rgba(58, 64, 72, 0.24);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

[data-player-seek]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--blog-player-accent-strong);
  box-shadow: 0 2px 7px rgba(58, 64, 72, 0.24);
  cursor: pointer;
}

.blog-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}

.blog-player-native-fallback {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 17px;
}

html:not(.blog-experience-ready) .blog-player-timeline,
html:not(.blog-experience-ready) .blog-player-controls {
  display: none;
}

html.blog-experience-ready .blog-player-native-fallback {
  display: none;
}

.blog-player-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.blog-player-button:focus-visible {
  outline: 2px solid var(--blog-player-accent);
  outline-offset: 3px;
}

.blog-player-button-quiet {
  color: var(--default-text-color);
  background: transparent;
}

.blog-player-button-quiet:hover,
.blog-player-button-quiet.is-active {
  color: var(--blog-player-accent-strong);
  background: var(--blog-player-accent-soft);
}

.blog-player-button-primary {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--blog-player-focus);
  box-shadow: 0 8px 20px rgba(163, 31, 52, 0.22);
}

.blog-player-button-primary:hover {
  background: var(--blog-player-focus-strong);
  transform: translateY(-1px) scale(1.05);
}

@media (hover: hover) and (pointer: fine) {
  .blog-player-surface:hover,
  .blog-player-surface:focus-within {
    --blog-player-accent: var(--blog-interaction-accent);
    --blog-player-accent-strong: var(--blog-interaction-accent-strong);
    --blog-player-accent-soft: var(--blog-interaction-accent-soft);
  }
}

.blog-post-player-section {
  box-sizing: border-box;
  width: 100%;
  margin: 2rem 0 2.25rem;
  padding: 0 2rem;
}

.blog-post-player-section .blog-music-card {
  width: 100%;
  min-height: 0 !important;
}

#blog-global-player {
  pointer-events: none;
}

#blog-global-player audio {
  display: none;
}

.blog-floating-player {
  font-family: var(--blog-serif);
  position: fixed;
  z-index: 9999;
  bottom: 5%;
  left: 1.5rem;
  display: none;
  grid-template-columns: 44px minmax(90px, 1fr) 28px 30px 28px;
  width: 280px;
  max-width: calc(100vw - 3rem);
  width: min(280px, calc(100vw - 3rem));
  align-items: center;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--blog-glass-border-light);
  border-radius: 18px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.blog-floating-player.hide {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .blog-floating-player:not(.hide):hover,
  .blog-floating-player:not(.hide):focus-within {
    border-color: rgba(163, 31, 52, 0.22);
    box-shadow: 0 24px 54px rgba(45, 35, 30, 0.22);
    transform: translateY(-6px) scale(1.01);
  }
}

html.dark .blog-floating-player {
  border-color: var(--blog-glass-border-dark);
  background: rgba(37, 39, 44, 0.62);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

@media (min-width: 769px) {
  .page-container .right-side-tools-container.blog-widget-avoidance {
    opacity: 0;
    pointer-events: none;
  }
}

.blog-player-cover-compact {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.blog-floating-player-copy {
  min-width: 0;
}

.blog-floating-player-copy > strong,
.blog-floating-player-lyric {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.blog-floating-player-copy > strong {
  color: var(--second-text-color);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.blog-floating-player-lyric {
  margin-top: 1px;
  color: var(--third-text-color);
  font-size: 0.64rem;
  line-height: 1.3;
}

.blog-floating-player-lyric > span {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.blog-floating-player-lyric.is-scrolling > span {
  animation: blog-lyric-scroll var(--lyric-scroll-duration, 8s) ease-in-out
    infinite;
}

.blog-floating-player-progress {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  align-items: center;
  margin-top: 4px;
  gap: 4px;
  color: var(--third-text-color);
  font-size: 0.52rem;
  font-variant-numeric: tabular-nums;
}

.blog-floating-player-progress [data-player-seek] {
  height: 3px;
}

.blog-player-button-compact {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
}

.blog-player-button-compact.blog-player-button-quiet {
  width: 28px;
  height: 28px;
}

@media (min-width: 769px) {
  html.blog-experience-ready[data-blog-page="post"] .blog-floating-player {
    display: grid;
  }

  html.blog-experience-ready[data-blog-page="post"] .blog-post-player-section {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Weather                                                                    */
/* -------------------------------------------------------------------------- */

.blog-weather-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  font-family: var(--blog-serif);
}

.blog-weather-heading,
.blog-weather-location,
.blog-weather-mode {
  display: flex;
  align-items: center;
}

.blog-weather-heading {
  justify-content: space-between;
  gap: 10px;
}

.blog-weather-location {
  min-width: 0;
  gap: 8px;
  color: var(--second-text-color);
}

.blog-weather-location i,
.blog-weather-location .blog-inline-icon {
  color: var(--blog-player-focus);
  font-size: 0.84rem;
  transition: color 0.22s ease;
}

.blog-weather-mode .blog-inline-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.blog-weather-location strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-weather-mode {
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(122, 105, 89, 0.12);
  border-radius: 999px;
  color: var(--third-text-color);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.64rem;
  cursor: pointer;
}

html.dark .blog-weather-mode {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.blog-weather-mode:hover {
  color: var(--blog-player-accent-strong);
}

.blog-weather-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 12px;
}

.blog-weather-temperature {
  color: var(--second-text-color);
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.blog-weather-temperature sup {
  position: relative;
  top: -1.4em;
  margin-left: 4px;
  font-size: 0.28em;
  letter-spacing: 0;
}

.blog-weather-current p {
  margin: 6px 0 3px;
  color: var(--second-text-color);
  font-size: 0.92rem;
}

.blog-weather-current small {
  color: var(--third-text-color);
  font-size: 0.66rem;
}

.blog-weather-main-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--blog-player-focus);
  background: var(--blog-player-focus-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  font-size: 2rem;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.blog-weather-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: var(--blog-sans);
  font-size: 1em;
  font-style: normal;
  line-height: 1;
}

.blog-weather-symbol-small {
  min-width: 1em;
  font-size: 0.9rem;
}

.blog-weather-symbol.is-pulsing {
  animation: blog-weather-pulse 1s ease-in-out infinite alternate;
}

@keyframes blog-weather-pulse {
  from {
    opacity: 0.4;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.blog-weather-hourly {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 -6px;
  border-top: 1px solid rgba(123, 112, 101, 0.11);
  border-bottom: 1px solid rgba(123, 112, 101, 0.11);
}

.blog-weather-hour {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px 7px;
  gap: 3px;
  color: var(--default-text-color);
  text-align: center;
}

.blog-weather-hour + .blog-weather-hour {
  border-left: 1px solid rgba(123, 112, 101, 0.09);
}

.blog-weather-hour > span,
.blog-weather-hour small {
  color: var(--third-text-color);
  font-size: 0.58rem;
}

.blog-weather-hour i {
  color: var(--blog-player-accent);
  font-size: 0.9rem;
  transition: color 0.22s ease;
}

.blog-weather-hour strong {
  color: var(--second-text-color);
  font-size: 0.73rem;
}

.blog-weather-hour small {
  color: #3984bd;
}

.blog-weather-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 9px;
  gap: 8px;
}

.blog-weather-details > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.38);
  column-gap: 5px;
}

html.dark .blog-weather-details > div {
  background: rgba(255, 255, 255, 0.045);
}

.blog-weather-details i {
  grid-row: span 2;
  color: var(--blog-player-accent);
  font-size: 0.72rem;
  transition: color 0.22s ease;
}

.blog-weather-details span {
  overflow: hidden;
  color: var(--third-text-color);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-weather-details strong {
  overflow: hidden;
  color: var(--second-text-color);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-weather-status {
  display: flex;
  align-items: flex-start;
  margin: 11px 0 0;
  gap: 6px;
  color: var(--third-text-color);
  font-size: 0.57rem;
  line-height: 1.4;
}

.blog-weather-card.has-error .blog-weather-main-icon {
  color: var(--blog-player-focus-strong);
  background: var(--blog-player-focus-soft);
}

.blog-comment-fallback {
  box-sizing: border-box;
  width: 100%;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--third-text-color);
  background: var(--third-background-color);
  font-size: 0.78rem;
  line-height: 1.65;
  text-align: center;
}

.blog-comment-fallback a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.blog-legacy-search-status {
  padding: 28px 16px;
  color: var(--third-text-color);
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .blog-weather-card:hover,
  .blog-weather-card:focus-within {
    --blog-player-accent: var(--blog-interaction-accent);
    --blog-player-accent-strong: var(--blog-interaction-accent-strong);
    --blog-player-accent-soft: var(--blog-interaction-accent-soft);
  }
}

/* -------------------------------------------------------------------------- */
/* Sidebar social links                                                       */
/* -------------------------------------------------------------------------- */

html .home-sidebar-container .blog-sidebar-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.14rem 0 0.26rem;
  gap: 1.08rem;
}

html .home-sidebar-container .blog-social-link {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 9px rgba(30, 38, 50, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

html .home-sidebar-container .blog-social-link img,
html .home-sidebar-container .blog-social-link svg {
  width: 1.16rem;
  height: 1.16rem;
  object-fit: contain;
}

html .home-sidebar-container .blog-social-link svg {
  display: block;
}

html .home-sidebar-container .blog-social-link.github {
  background: #181717;
}

html .home-sidebar-container .blog-social-link.xiaohongshu {
  background: #ff2442;
}

html .home-sidebar-container .blog-social-link.netease {
  background: #d43c33;
}

html .home-sidebar-container .blog-social-link:hover {
  box-shadow: 0 7px 14px rgba(30, 38, 50, 0.16);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Moments page                                                               */
/* -------------------------------------------------------------------------- */

html[data-blog-page="moments"] .main-content {
  width: 100%;
  max-width: 1000px;
}

.moments-page {
  width: 100%;
  max-width: 860px;
  width: min(100%, 860px);
  margin: 0 auto;
  color: var(--default-text-color);
}

.moments-lead {
  margin: -16px 0 30px;
  color: var(--third-text-color);
  font-size: 0.94rem;
  text-align: center;
}

.moments-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  gap: 18px;
}

.moments-search {
  display: flex;
  width: 100%;
  max-width: 680px;
  width: min(100%, 680px);
  align-items: center;
  box-sizing: border-box;
  padding: 0 20px;
  border: 1px solid var(--blog-index-border);
  border-radius: var(--blog-index-radius-pill);
  background: var(--blog-index-surface);
  box-shadow: var(--blog-index-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moments-search:focus-within {
  border-color: var(--blog-index-interactive);
  box-shadow: var(--blog-index-focus-ring), var(--blog-index-shadow-hover);
  transform: translateY(-2px);
}

.moments-search .blog-search-icon {
  flex: 0 0 auto;
  color: var(--third-text-color);
  font-size: 1.1rem;
  transition:
    color var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moments-search:focus-within .blog-search-icon {
  color: var(--blog-index-interactive);
  transform: scale(1.06);
}

.moments-search input {
  width: 100%;
  padding: 15px 14px;
  border: 0;
  outline: none;
  color: var(--second-text-color);
  background: transparent;
  font-size: 1rem;
}

.moments-search input::placeholder {
  color: var(--third-text-color);
}

.moments-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.moments-filter {
  padding: 9px 18px;
  border: 1px solid var(--blog-index-border);
  border-radius: var(--blog-index-radius-pill);
  outline: none;
  color: var(--second-text-color);
  background: var(--blog-index-surface);
  box-shadow: var(--blog-index-shadow);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moments-filter.is-active {
  border-color: var(--blog-index-primary-border);
  color: var(--blog-index-primary-strong);
  background: var(--blog-index-primary-soft);
  box-shadow: 0 7px 16px rgba(42, 46, 54, 0.07);
}

.moments-filter:focus-visible {
  border-color: var(--blog-index-interactive);
  color: var(--blog-index-interactive);
  box-shadow: var(--blog-index-focus-ring), var(--blog-index-shadow-hover);
}

.moments-summary {
  width: 100%;
  max-width: 820px;
  width: min(100%, 820px);
  margin: 0 auto 12px;
  color: var(--third-text-color);
  font-family: var(--blog-sans);
  font-size: 0.73rem;
  text-align: right;
}

.moments-feed {
  width: 100%;
  max-width: 820px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding-left: 0;
}

.moment-day {
  margin-bottom: 14px;
}

.moment-day[hidden] {
  display: none !important;
}

.moment-day:last-child {
  margin-bottom: 0;
}

.moment-day-list {
  display: grid;
  gap: 14px;
}

.moment-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0;
  padding: 22px 26px;
  border: 1px solid transparent;
  border-radius: 22px;
  background-color: var(--blog-index-surface);
  box-shadow:
    0 1px 2px rgba(20, 24, 32, 0.03),
    0 8px 24px rgba(20, 24, 32, 0.05);
  gap: 2px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    opacity var(--blog-index-motion),
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moment-card[hidden] {
  display: none !important;
}

.moment-card.is-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

.moment-card.is-reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.moment-avatar {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 1;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: visible;
  border-radius: 50% !important;
  line-height: 0;
}

.moment-avatar img {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  border: 1px solid var(--blog-index-primary-border);
  border-radius: 50% !important;
  background: var(--third-background-color);
  box-shadow: 0 4px 12px rgba(42, 46, 54, 0.1);
  object-fit: cover;
  object-position: 50% 50%;
}

.moment-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blog-index-surface);
  border-radius: 50%;
  background: var(--blog-index-primary);
}

.moment-content {
  display: block;
  display: contents;
  min-width: 0;
}

.moment-header {
  display: flex;
  grid-column: 2;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  padding-top: 1px;
  gap: 2px;
}

.moment-author {
  min-width: 0;
  color: var(--blog-index-primary);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color var(--blog-index-motion);
}

.moment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
  gap: 4px 10px;
}

.moment-date {
  display: inline-flex;
  align-items: center;
  color: var(--blog-index-secondary);
  font-family: var(--blog-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  gap: 5px;
}

.moment-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--third-text-color);
  font-family: var(--blog-sans);
  font-size: 0.68rem;
}

.moment-body {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--default-text-color);
  font-size: 1rem;
  line-height: 1.72;
}

.moment-body > :first-child {
  margin-top: 0;
}

.moment-body > :last-child {
  margin-bottom: 0;
}

.moment-body p {
  margin: 0.35em 0 0.55em;
  color: var(--default-text-color);
  font-size: inherit;
  line-height: inherit;
}

.moment-body p:last-child {
  margin-bottom: 0;
}

.moment-body a {
  color: var(--second-text-color);
  text-decoration-color: var(--blog-index-border);
  text-underline-offset: 0.22em;
}

.moment-gallery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 460px;
  width: min(100%, 460px);
  margin-top: 4px;
  gap: 4px;
}

.moment-gallery[data-image-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.moment-gallery[data-image-count="2"],
.moment-gallery[data-image-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moment-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 150px;
  border-radius: 12px;
  background: var(--third-background-color);
  aspect-ratio: 1;
}

.moment-gallery[data-image-count="1"] .moment-photo {
  justify-content: flex-start;
  width: 100%;
  height: auto;
  max-height: none;
  background: transparent;
  aspect-ratio: auto;
}

.moment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: contain;
}

.moment-gallery[data-image-count="1"] .moment-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  max-height: min(62vh, 420px);
}

.moment-share-card,
.moment-music-card {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  margin-top: -6px;
  border: 1px solid var(--blog-index-border);
  border-radius: 14px;
  background: var(--third-background-color);
  transition:
    color var(--blog-index-motion),
    background-color var(--blog-index-motion),
    border-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moment-share-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
  gap: 12px;
  color: inherit;
  text-decoration: none !important;
}

.moment-share-card > img,
.moment-share-cover,
.moment-attachment-icon {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--second-background-color);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}

.moment-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-index-primary);
  font-size: 1.2rem;
}

.moment-attachment-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.moment-attachment-copy small {
  margin-bottom: 3px;
  color: var(--third-text-color);
  font-family: var(--blog-sans);
  font-size: 0.65rem;
}

.moment-attachment-copy strong {
  overflow: hidden;
  color: var(--second-text-color);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-attachment-copy > span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--third-text-color);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-attachment-open,
.moment-music-open {
  color: var(--third-text-color);
  font-size: 0.78rem;
  transition: color var(--blog-index-motion);
}

.moment-music-card {
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  background: var(--second-background-color);
  border-color: transparent;
  justify-self: start;
}

.moment-music-main {
  display: grid;
  grid-template-columns: 56px minmax(140px, 260px) auto;
  align-items: center;
  gap: 14px;
}

.moment-music-cover {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--third-background-color);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 0;
}

.moment-music-cover > .moment-attachment-icon {
  display: inline-flex;
  width: 100%;
  height: 100%;
  background: transparent;
}

.moment-music-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  outline: none;
  color: #fff;
  background: rgba(20, 26, 34, 0.55);
  box-shadow: 0 3px 10px rgba(18, 24, 31, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    opacity var(--blog-index-motion),
    background-color var(--blog-index-motion),
    box-shadow var(--blog-index-motion),
    transform var(--blog-index-motion);
}

.moment-music-cover:hover .moment-music-toggle,
.moment-music-toggle:focus-visible,
.moment-music-card.is-playing .moment-music-toggle,
.moment-music-card.is-error .moment-music-toggle {
  opacity: 1;
}

.moment-music-toggle i {
  margin-left: 2px;
  font-size: 0.66rem;
}

.moment-music-toggle[aria-pressed="true"] i {
  margin-left: 0;
}

.moment-music-toggle:focus-visible {
  box-shadow:
    0 0 0 4px var(--blog-index-interactive-soft),
    0 3px 10px rgba(18, 24, 31, 0.24);
}

.moment-music-card.is-playing .moment-music-toggle {
  background: var(--blog-index-interactive);
}

.moment-music-card.is-error .moment-music-toggle {
  background: var(--third-text-color);
}

.moment-music-card .moment-attachment-copy strong {
  color: var(--second-text-color);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.moment-music-card .moment-attachment-copy > span {
  margin-top: 4px;
  color: var(--third-text-color);
  font-size: 0.78rem;
}

.moment-music-open {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--blog-index-radius-pill);
  text-decoration: none !important;
}

.moment-audio {
  display: none;
}

.moments-empty {
  width: 100%;
  max-width: 820px;
  width: min(100%, 820px);
  box-sizing: border-box;
  margin: 26px auto 0;
  padding: 34px 24px;
  border: 1px dashed var(--blog-index-border);
  border-radius: var(--blog-index-radius-card);
  color: var(--third-text-color);
  background: var(--blog-index-surface);
  box-shadow: var(--blog-index-shadow);
  text-align: center;
}

.moments-empty[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .moments-filter:not(.is-active):hover {
    border-color: var(--blog-index-interactive);
    color: var(--blog-index-interactive);
    box-shadow: var(--blog-index-shadow-hover);
    transform: translateY(-2px);
  }

  .moment-card:hover {
    border-color: var(--blog-index-interactive-soft);
    box-shadow: var(--blog-index-shadow-hover);
    transform: translateY(-3px);
  }

  .moment-card:hover .moment-author,
  .moment-card:hover .moment-body a,
  .moment-card:hover .moment-attachment-open,
  .moment-card:hover .moment-music-open {
    color: var(--blog-index-interactive);
  }

  .moment-share-card:hover,
  .moment-music-card:hover {
    border-color: var(--blog-index-interactive-soft);
    box-shadow: 0 10px 22px rgba(42, 46, 54, 0.09);
    transform: translateY(-2px);
  }

  .moment-music-toggle:hover {
    background: var(--blog-index-interactive);
    box-shadow: 0 6px 15px rgba(18, 24, 31, 0.26);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1279px) and (min-width: 769px) {
  html[data-blog-page="home"] .main-content-body {
    flex-wrap: wrap;
  }

  .blog-home-widgets {
    position: static;
    display: grid;
    width: 86%;
    max-width: 1000px;
    flex: 0 0 86%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px auto 0;
  }
}

@media (max-width: 768px) {
  html .home-article-title {
    font-size: 1.2rem !important;
  }

  html .home-article-content.markdown-body,
  html .post-page-container .markdown-body,
  html .page-template-content.markdown-body {
    font-size: 1rem !important;
    line-height: 1.82 !important;
  }

  html[data-blog-page="home"] .main-content-body {
    flex-direction: column;
    align-items: center;
  }

  html[data-blog-page="home"] .home-sidebar-container {
    display: block !important;
    width: 90%;
    flex: none;
    order: 1;
    margin: 18px auto 0;
  }

  html[data-blog-page="home"] .home-sidebar-container .sticky-container {
    position: static !important;
    top: auto !important;
    gap: 18px;
  }

  html[data-blog-page="home"] .main-content-body > .main-content {
    width: 90%;
    order: 2;
    margin-top: 22px;
  }

  .blog-home-widgets {
    position: static;
    display: grid;
    width: 90%;
    flex: none;
    grid-template-columns: 1fr;
    order: 3;
    margin: 24px auto 28px;
    gap: 18px;
  }

  .blog-post-player-section {
    margin: 1.6rem 0 2rem;
    padding: 0 0.5rem;
  }

  html[data-blog-section] .main-content {
    width: 92%;
  }

  html[data-blog-section] .page-template-container,
  html[data-blog-section="archive"] .archive-container {
    padding: 25px 21px 30px !important;
    border-radius: 19px;
  }

  html[data-blog-section] .page-template-content.markdown-body {
    padding: 0;
  }

  .page-template-container > .page-title-header,
  .page-template-content.markdown-body > h1:first-child,
  .page-template-container > .tag-name,
  .page-template-container > .category-name,
  .archive-container > .archive-page-title {
    margin: 0 0 28px !important;
    padding-bottom: 12px;
    font-size: 2.08rem;
  }

  .blog-index-list .archive-list-container .article-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0 6px;
  }

  .blog-index-list .archive-list-container .article-item > a {
    padding: 9px 4px;
  }

  .blog-index-list .archive-list-container .article-item::before {
    padding: 9px 0;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .moments-lead {
    margin-top: -12px;
  }

  .moments-toolbar {
    margin-bottom: 24px;
  }

  .moments-search {
    border-radius: 20px;
  }

  .moments-filter {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .moment-day {
    margin-bottom: 12px;
  }

  .moment-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px 15px;
    border-radius: 18px;
    gap: 5px 12px;
  }

  .moment-avatar {
    width: 34px;
    height: 34px;
  }

  .moment-avatar img {
    width: 34px;
    height: 34px;
  }

  .moment-body {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .moment-gallery {
    width: 100%;
    max-width: 360px;
    width: min(100%, 360px);
  }

  .moment-gallery[data-image-count="1"] .moment-photo img {
    max-height: 380px;
  }

  .moment-share-card,
  .moment-music-main {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .moment-share-card > img,
  .moment-share-cover,
  .moment-attachment-icon {
    width: 56px;
    height: 56px;
  }

  .moment-music-cover {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  html[data-blog-section] .page-template-container,
  html[data-blog-section="archive"] .archive-container {
    padding: 22px 15px 26px !important;
  }

  .blog-music-card,
  .blog-weather-card {
    padding: 18px;
  }

  .blog-weather-details {
    gap: 5px;
  }

  .blog-weather-details > div {
    padding: 8px 5px;
  }

  .moments-search {
    padding: 0 13px;
  }

  .moments-search input {
    padding: 13px 10px;
    font-size: 0.93rem;
  }

  .moments-filters {
    gap: 8px;
  }

  .moments-filter {
    padding: 7px 11px;
  }

  .moment-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px 14px;
    gap: 5px 10px;
  }

  .moment-avatar {
    width: 32px;
    height: 32px;
  }

  .moment-avatar img {
    width: 32px;
    height: 32px;
  }

  .moment-header {
    gap: 2px;
  }

  .moment-gallery {
    width: 100%;
    max-width: 250px;
    width: min(100%, 250px);
    gap: 4px;
  }

  .moment-gallery[data-image-count="1"] .moment-photo img {
    max-height: 330px;
  }

  .moment-share-card,
  .moment-music-main {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .moment-share-card > img,
  .moment-share-cover,
  .moment-attachment-icon {
    width: 50px;
    height: 50px;
  }

  .moment-music-cover {
    width: 50px;
    height: 50px;
  }

  .blog-index-list .archive-list-container .article-list {
    padding-left: 24px !important;
  }

  .blog-index-list .archive-list-container .article-list::before {
    left: 5px;
  }

  .blog-index-list .archive-list-container .article-item::after {
    left: -23px;
    width: 8px;
    height: 8px;
  }
}

@keyframes blog-record-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blog-lyric-scroll {
  0%,
  16% {
    transform: translateX(0);
  }

  72%,
  88% {
    transform: translateX(var(--lyric-scroll-distance, 0));
  }

  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-player-cover,
  .blog-player-button,
  .blog-floating-player,
  .blog-floating-player-lyric > span,
  .moments-filter,
  .moments-search,
  .moments-search i,
  .moment-card,
  .moment-author,
  .moment-photo img,
  .moment-share-card,
  .moment-music-card,
  .moment-attachment-open,
  .moment-music-open,
  .moment-music-toggle,
  .blog-index-list .archive-list-container .article-item > a,
  .blog-index-list .archive-list-container .article-item::before,
  .blog-index-list .archive-list-container .article-item::after,
  .blog-index-list
    .archive-list-container
    .article-item
    span.article-title::after,
  html .tagcloud-content .tag-list li a,
  html .tagcloud-content .tag-list li a .fa-hashtag,
  html .tagcloud-content .tag-list[data-show-value] li a::after,
  html
    .category-list-content
    .all-category-list
    > .all-category-list-item,
  html
    .category-list-content
    .all-category-list
    > .all-category-list-item
    > a.all-category-list-link,
  html
    .category-list-content
    .all-category-list
    > .all-category-list-item
    > span.all-category-list-count {
    animation: none;
    transition: none;
  }
}
