/* Jyf Theme Style - 1.0.3版本之后不完全模仿 hexo-theme-cactus */

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--link-color), var(--link-hover));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px var(--link-color);
}

/* 移动端隐藏滚动进度条 */
@media (max-width: 768px) {
  .scroll-progress {
    display: none;
  }
}

/* 页面加载进度条 */
.page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--link-color), var(--link-hover));
  z-index: 10000;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
  box-shadow: 0 0 15px var(--link-color), 0 0 8px var(--link-color);
}

.page-loading-bar.loading {
  opacity: 1;
}

.page-loading-bar.complete {
  width: 100% !important;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out 0.3s;
}

/* 页面加载动画 - 增强脉冲效果 */
@keyframes loading-pulse {
  0%, 100% {
    box-shadow: 0 0 15px var(--link-color), 0 0 8px var(--link-color);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 25px var(--link-color), 0 0 15px var(--link-color);
    filter: brightness(1.2);
  }
}

.page-loading-bar.loading {
  animation: loading-pulse 1.5s ease-in-out infinite;
}

/* 全屏加载动画 */
.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  backdrop-filter: blur(5px);
}

.page-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 加载动画 - 圆环旋转 */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-top-color: var(--link-color);
  border-right-color: var(--link-color);
  border-radius: 50%;
  animation: spinner-rotate 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 居中进度条 */
.page-loading-center {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  backdrop-filter: blur(5px);
}

.page-loading-center.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-progress-bar {
  width: 320px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--link-color), var(--link-hover));
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px var(--link-color);
  position: relative;
}

.loading-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loading-progress-text {
  font-size: 1rem;
  color: var(--link-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 图片懒加载 */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.lazy-loaded {
  opacity: 1;
}

/* 图片加载动画 */
.image-loading {
  position: relative;
  overflow: hidden;
  background: var(--code-bg);
}

.image-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--link-color-rgb, 66, 185, 131), 0.2),
    transparent
  );
  animation: image-loading-shimmer 1.5s infinite;
}

@keyframes image-loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.image-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid var(--border-color);
  border-top-color: var(--link-color);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

.image-loading img {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.image-loading.loaded::before,
.image-loading.loaded::after {
  display: none;
}

.image-loading.loaded img {
  opacity: 1;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Variables */
:root {
  --bg-color: #ffffff;
  --text-color: #34495e;
  --text-secondary: #7f8c8d;
  --link-color: #42b983;
  --link-hover: #33a06f;
  --border-color: #ecf0f1;
  --code-bg: #f8f8f8;
  --shadow: 0 0 1px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --bg-color: #292a2d;
  --text-color: #a9a9b3;
  --text-secondary: #87888f;
  --link-color: #42b983;
  --link-hover: #33a06f;
  --border-color: #3b3d42;
  --code-bg: #2d2d2d;
  --shadow: 0 0 1px rgba(255,255,255,0.1);
}

/* Base */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-color);
  transition: background 0.3s;
  min-height: 100vh;
}

html[data-color-scheme="light"] {
  color-scheme: light;
}

html[data-color-scheme="dark"] {
  color-scheme: dark;
}

html[data-color-scheme="auto"] {
  color-scheme: light dark;
}

body {
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background 0.3s, color 0.3s;
  font-weight: 600;
  min-height: 100vh;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;   
}

/* Header */
.header {
  padding: 60px 0 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.nav-left {
  position: absolute;
  left: 0;
}

.nav-left .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-left .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.nav-left .logo-image {
  display: inline-flex;
  align-items: center;
}

.nav-left .logo-both {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-left .logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.nav-left .logo-image:hover .logo-img,
.nav-left .logo-both:hover .logo-img {
  opacity: 0.8;
}

.nav-left .logo-both .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-center {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* 导航项 */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover {
  z-index: 10001;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--link-color);
  text-decoration: none;
}

/* 下拉图标 */
.dropdown-icon {
  color: var(--text-secondary);
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}

.nav-item:hover .dropdown-icon {
  color: var(--link-color);
  transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  min-width: max-content;
  width: auto;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  padding: 8px 0;
}

/* 暗色模式下的下拉菜单背景 */
[data-theme="dark"] .dropdown-menu {
  background: #2d2d2d;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 扩大 hover 触发区域 */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.dropdown-item {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--code-bg);
  color: var(--link-color);
  text-decoration: none;
}

/* 兼容旧的直接链接样式 */
.nav-center > a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.nav-center > a:hover {
  color: var(--link-color);
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
}

.icon-btn:hover {
  color: var(--link-color);
}

/* 用户头像 */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.2s;
  text-decoration: none;
}

.user-avatar:hover {
  opacity: 0.8;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 主题切换图标动画 */
.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle svg {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 默认隐藏所有图标 */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon,
.theme-toggle .auto-icon {
  opacity: 0;
}

/* Site Intro */
.site-intro {
  margin-bottom: 80px;
  padding: 40px 0;
}

.site-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.site-intro p,
.site-intro .site-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  word-wrap: break-word;
}

/* 打字机光标 */
.site-description::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

.site-description.typing-done::after {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Post List - Cactus style */
.post-list {
  margin-bottom: 60px;
}

.post-item {
  margin-bottom: 40px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.post-item:hover {
  transform: none;
}

.post-header-line {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-meta .separator {
  margin: 0;
  color: var(--border-color);
}

/* 访问量图标 */
.visit-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.visit-count svg {
  flex-shrink: 0;
}

.post-title {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  flex: 1;
}

.post-title a {
  color: var(--text-color);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--link-color);
  text-decoration: none;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  margin-left: 120px;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* 置顶标识 */
.pinned-badge {
  display: inline-block;
  color: var(--link-color);
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.9em;
}

.pinned-post {
  position: relative;
}

/* 隐藏已在置顶区显示的文章 */
.post-item.hidden,
.post-card.hidden {
  display: none;
}

/* 置顶文章区域 */
.pinned-posts {
  margin-bottom: 40px;
}

.pinned-posts .post-list {
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.tag:hover {
  color: var(--link-color);
  background: transparent;
  transform: none;
}

/* Post Detail - Cactus style */
.post-detail {
  margin-bottom: 60px;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

/* 标题和点赞按钮容器 */
.post-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.post-header .post-title {
  font-size: 2rem;
  margin-bottom: 0;
  line-height: 1.3;
  flex: 1;
}

.post-content {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 60px;
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 40px 0 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.3rem; }

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  color: var(--inline-code-color);
  border: 1px solid #e0e0e0;
}

/* 深色模式下的行内代码 */
[data-theme="dark"] .post-content code {
  background: #3a3a3a;
  color: var(--inline-code-color);
  border: 1px solid #4a4a4a;
}

.post-content pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: 0;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--link-color);
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: none;
}

.post-content a {
  color: var(--link-color);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--link-hover);
}

/* Post TOC - 文章目录 */
.post-container {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.post-detail {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.post-toc {
  width: 240px;
  flex-shrink: 0;
}

/* 当屏幕宽度小于1100px时，隐藏目录 */
@media (max-width: 1100px) {
  .post-toc {
    display: none;
  }

  .post-container {
    max-width: 700px;
  }
}

.post-toc-wrapper {
  position: sticky;
  top: 2rem;
  border: none;
  background: transparent;
  padding: 16px;
  border-radius: 4px;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.post-toc-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.post-toc-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

#post-toc {
  font-size: 0.85rem;
  line-height: 1.6;
}

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

#post-toc li {
  margin: 0;
  padding: 0;
}

#post-toc a {
  display: block;
  padding: 0.375rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
  line-height: 1.4;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#post-toc a:hover {
  color: var(--link-color);
  text-decoration: none;
}

#post-toc a.active {
  color: var(--link-color);
  font-weight: 700;
}

/* 目录层级缩进 - 已通过 JS 动态设置 paddingLeft，这里不再需要 */

/* 滚动条样式 */
.post-toc-wrapper::-webkit-scrollbar {
  width: 4px;
}

.post-toc-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.post-toc-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.post-toc-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Post Navigation - Cactus style */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
  padding: 30px 0;
}

.post-nav-item {
  flex: 1;
}

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

.post-nav-item a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.post-nav-item a:hover {
  color: var(--link-color);
}

.nav-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.nav-title {
  font-size: 0.95rem;
}

/* Archives - Cactus style */
.archives,
.categories,
.tags,
.category-posts,
.tag-posts {
  margin-bottom: 60px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  font-weight: 700;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.archives-list {
  margin-bottom: 40px;
}

.archive-item {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  align-items: baseline;
}

.archive-item:hover {
  background: transparent;
  transform: none;
}

.archive-item time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  min-width: 100px;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.archive-item a {
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.archive-item a:hover {
  color: var(--link-color);
}

/* Categories & Tags - Cactus style */
.category-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.category-item,
.tag-item {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.95rem;
  box-shadow: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.category-item:hover,
.tag-item:hover {
  background: transparent;
  color: var(--link-color);
  transform: none;
}

.category-item .count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Pagination - Cactus style */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 60px 0;
}

.pagination-btn {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  box-shadow: none;
  color: var(--text-secondary);
  text-decoration: none;
}

.pagination-btn:hover {
  background: transparent;
  color: var(--link-color);
  transform: none;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* Footer - Cactus style */
.footer {
  padding: 40px 0 60px;
  margin-top: 80px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.footer-content {
  text-align: center;
}

/* 社交图标 */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon:hover {
  color: var(--link-color);
  transform: translateY(-3px);
}

.friend-links {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.friend-links a {
  color: var(--link-color);
  margin: 0 10px;
}

.footer-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.footer-info p {
  margin-bottom: 8px;
}

.footer-info a {
  color: var(--link-color);
}

/* 页面加载速度 */
.page-load-speed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.page-load-speed svg {
  flex-shrink: 0;
}

/* No Content */
.no-posts,
.no-content {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* Back to Top Button - Cactus style */
.jyf-fhdb {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background: var(--bg-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.jyf-fhdb.visible {
  opacity: 1;
  visibility: visible;
}

.jyf-fhdb:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  transform: none;
}

/* Comments */
.post-comments {
  margin-top: 60px;
  padding-top: 40px;
}

.post-comments h3 {
  font-size: 1.3rem;
  margin-bottom: 30px;
  font-weight: 700;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

/* Links Page - Cactus style */
.links-page {
  margin-bottom: 60px;
}

.link-group {
  margin-bottom: 60px;
}

.group-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.link-item {
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0;
  transition: border-color 0.2s;
  height: 120px;
}

.link-item:hover {
  border-color: var(--link-color);
}

.link-item a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-color);
  height: 100%;
}

.link-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.link-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.link-item:hover .link-name {
  color: var(--link-color);
}

.link-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  /* 显示汉堡菜单按钮 */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* 导航布局调整 */
  .nav {
    flex-wrap: nowrap;
  }
  
  .nav-left {
    position: static;
    flex: 1;
  }
  
  .nav-left .logo-text {
    font-size: 1.2rem;
  }
  
  .nav-left .logo-img {
    height: 32px;
  }
  
  .nav-left .logo-both {
    gap: 8px;
  }
  
  .nav-left .logo-both .logo-text {
    font-size: 1.2rem;
  }
  
  /* 隐藏中间导航，改为移动端菜单 */
  .nav-center {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-center.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-center .nav-link,
  .nav-center > a {
    font-size: 1.2rem;
  }
  
  /* 移动端下拉菜单 */
  .nav-item {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .nav-item.has-dropdown {
    position: relative;
  }
  
  .nav-item.has-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .dropdown-icon {
    display: inline-block !important;
    transition: transform 0.3s ease;
  }
  
  .nav-item.active .dropdown-icon {
    transform: rotate(180deg);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .nav-item.active .dropdown-menu {
    max-height: 500px;
  }
  
  .dropdown-item {
    font-size: 1rem;
    padding: 10px 20px;
    text-align: center;
    background: transparent;
  }
  
  .dropdown-item:hover {
    background: var(--code-bg);
  }
  
  /* 右侧按钮调整 */
  .nav-right {
    position: static;
    gap: 12px;
    margin-left: auto;
    margin-right: 40px;
  }
  
  /* 其他响应式调整 */
  .links-list {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 30px 0 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 999;
  }
  
  .site-intro {
    margin-bottom: 40px;
    padding: 20px 0;
  }
  
  .site-intro h1 {
    font-size: 1.8rem;
  }
  
  /* 文章目录 - 移动端隐藏 */
  .post-toc {
    display: none;
  }
  
  .post-container {
    flex-direction: column;
  }
  
  .post-title {
    font-size: 1rem;
  }
  
  .post-title-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  
  .post-header .post-title {
    font-size: 1.3rem;
  }
  
  .post-header .post-upvote-btn {
    flex-shrink: 0;
    padding: 8px 12px;
  }
  
  .post-excerpt {
    margin-left: 0;
    font-size: 0.9rem;
  }
  
  .post-header-line {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .post-meta {
    min-width: auto;
  }
  
  /* 归档页面 */
  .archive-item {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .archive-item time {
    min-width: auto;
  }
  
  /* 文章导航 */
  .post-nav {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-nav-item:last-child {
    text-align: left;
  }
  
  /* 返回顶部按钮 - 移动端优化 */
  .jyf-fhdb {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    z-index: 999;
  }
  
  .jyf-fhdb svg {
    width: 22px;
    height: 22px;
  }
  
  /* 页面标题 */
  .page-title {
    font-size: 1.5rem;
  }
  
  /* 文章内容 */
  .post-content {
    font-size: 0.95rem;
  }
  
  .post-content h1 { font-size: 1.5rem; }
  .post-content h2 { font-size: 1.3rem; }
  .post-content h3 { font-size: 1.1rem; }
  
  .post-content pre {
    padding: 15px;
    overflow-x: auto;
  }
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Selection */
::selection {
  background: var(--link-color);
  color: white;
}

::-moz-selection {
  background: var(--link-color);
  color: white;
}
/* 评论组件暗色模式适配 */
[data-theme="dark"] {
  --halo-cw-primary-1-color: #42b983;
  --halo-cw-primary-2-color: #5ac99a;
  --halo-cw-primary-3-color: #7dd9b1;
  --halo-cw-text-1-color: #ffffff;
  --halo-cw-text-2-color: #c0c0c3;
  --halo-cw-text-3-color: #6b6c72;
  --halo-cw-muted-1-color: #3b3d42;
  --halo-cw-muted-2-color: #2d2e32;
  --halo-cw-muted-3-color: #25262a;
  --halo-cw-base-rounded: 4px;
  --halo-cw-avatar-rounded: 50%;
  --halo-cw-avatar-size: 40px;
  --halo-cw-base-font-size: 14px;
  --halo-cw-base-font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

/* 评论组件浅色模式 */
:root {
  --halo-cw-primary-1-color: #42b983;
  --halo-cw-primary-2-color: #5ac99a;
  --halo-cw-primary-3-color: #7dd9b1;
  --halo-cw-text-1-color: #34495e;
  --halo-cw-text-2-color: #7f8c8d;
  --halo-cw-text-3-color: #95a5a6;
  --halo-cw-muted-1-color: #ecf0f1;
  --halo-cw-muted-2-color: #f8f9fa;
  --halo-cw-muted-3-color: #ffffff;
  --halo-cw-base-rounded: 4px;
  --halo-cw-avatar-rounded: 50%;
  --halo-cw-avatar-size: 40px;
  --halo-cw-base-font-size: 14px;
  --halo-cw-base-font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}


/* ==================== 主题切换动画 ==================== */
body {
  position: relative;
}


/* ==================== 图文列表样式 ==================== */
.post-list-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-card {
  display: flex;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s;
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--link-color);
}

.post-card-cover {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  overflow: hidden;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
}

.post-card-cover a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-cover img {
  transform: scale(1.05);
}

.post-card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.post-card-title {
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.post-card-title a {
  color: var(--text-color);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--link-color);
}

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: auto;
}

.post-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.post-card-meta-item svg {
  flex-shrink: 0;
}

.post-card-meta-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.post-card-meta-item a:hover {
  color: var(--link-color);
}

/* 图文列表响应式 */
@media (max-width: 768px) {
  .post-card {
    flex-direction: column;
  }
  
  .post-card-cover {
    width: 100%;
    height: 180px;
  }
  
  .post-card-content {
    padding: 15px;
  }
  
  .post-card-title {
    font-size: 1.1rem;
  }
  
  .post-card-meta {
    gap: 10px;
  }
  
  .post-card-meta-item {
    font-size: 0.8rem;
  }
}


/* ==================== 文章点赞按钮 ==================== */
.post-content-wrapper {
  position: relative;
}

.post-upvote-float {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.post-upvote-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.post-upvote-btn:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-upvote-btn.upvoted {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.post-upvote-btn.upvoted svg {
  fill: #e74c3c;
}

.post-upvote-btn:active {
  transform: translateY(0) scale(0.95);
}

.post-upvote-btn svg {
  transition: fill 0.2s;
  flex-shrink: 0;
}

.upvote-count {
  font-size: 0.9rem;
  font-weight: 700;
}

/* 响应式：移动端隐藏浮动点赞按钮 */
@media (max-width: 768px) {
  .post-upvote-float {
    display: none;
  }
}

/* ==================== 图库页面样式 ==================== */
.photos-page {
  margin-bottom: 60px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
}

.page-header .page-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.page-header .page-description {
  color: var(--text-secondary);
  font-size: 1rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* 分类筛选 */
.photo-filters {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 20px 0;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.filter-btn:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: rgba(66, 185, 131, 0.05);
}

.filter-btn.active {
  color: #fff;
  background: var(--link-color);
  border-color: var(--link-color);
}

/* 瀑布流布局 */
.photo-waterfall {
  column-count: 3;
  column-gap: 20px;
  margin-bottom: 40px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--code-bg);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

/* 图片遮罩层 */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-info {
  color: #fff;
  width: 100%;
}

.photo-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
}

.photo-description {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.9;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  margin: 0;
}

/* 空状态 */
.no-photos {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* 图库响应式 */
@media (max-width: 1024px) {
  .photo-waterfall {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .page-header .page-title {
    font-size: 1.5rem;
  }
  
  .photo-filters {
    gap: 10px;
    padding: 15px 0;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
  
  .photo-waterfall {
    column-count: 1;
    column-gap: 15px;
  }
  
  .photo-item {
    margin-bottom: 15px;
  }
  
  .photo-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  }
  
  .photo-info {
    padding: 10px;
  }
  
  .photo-title {
    font-size: 0.9rem;
  }
  
  .photo-description {
    font-size: 0.8rem;
  }
}

/* lightGallery 自定义样式 */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.95);
}

.lg-toolbar,
.lg-actions .lg-next,
.lg-actions .lg-prev,
.lg-sub-html {
  background-color: rgba(0, 0, 0, 0.6);
}

.lg-thumb-outer {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ==================== 瞬间页面样式 - 微信朋友圈风格 ==================== */
.moments-page {
  margin-bottom: 60px;
}

/* 标签筛选 */
.moment-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.tag-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tag-filter-btn:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: rgba(66, 185, 131, 0.05);
}

.tag-filter-btn.active {
  color: #fff;
  background: var(--link-color);
  border-color: var(--link-color);
}

.moments-list.wechat-style {
  margin-bottom: 40px;
}

/* 瞬间项 - 微信朋友圈布局 */
.moments-list.wechat-style .moment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.moments-list.wechat-style .moment-item:first-child {
  padding-top: 0;
}

.moments-list.wechat-style .moment-item:last-child {
  border-bottom: none;
}

/* 头像 - 左侧固定 */
.moments-list.wechat-style .moment-avatar {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--code-bg);
}

.moments-list.wechat-style .moment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧内容区域 */
.moments-list.wechat-style .moment-content-area {
  flex: 1;
  min-width: 0;
}

/* 用户名 */
.moments-list.wechat-style .moment-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: #576b95;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  margin-bottom: 6px;
}

[data-theme="dark"] .moments-list.wechat-style .moment-username {
  color: #7d90b3;
}

/* 瞬间正文 */
.moments-list.wechat-style .moment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10px;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 500;
  word-wrap: break-word;
}

.moments-list.wechat-style .moment-text p {
  margin: 0 0 8px 0;
}

.moments-list.wechat-style .moment-text p:last-child {
  margin-bottom: 0;
}

/* 隐藏正文中的标签 */
.moments-list.wechat-style .moment-text a[href*="/moments?tag="],
.moments-list.wechat-style .moment-text a[href^="#"],
.moments-list.wechat-style .moment-text span[class*="tag"],
.moments-list.wechat-style .moment-text .tag {
  display: none !important;
}

/* 瞬间媒体 - 微信朋友圈布局规则 */
.moments-list.wechat-style .moment-media {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  justify-content: start;
}

/* 1张图：单独显示，固定 200x200 正方形 */
.moments-list.wechat-style .moment-media[data-count="1"] {
  grid-template-columns: 200px;
}

.moments-list.wechat-style .moment-media[data-count="1"] .moment-media-item {
  width: 200px;
  height: 200px;
}

/* 2张图：横向并排 */
.moments-list.wechat-style .moment-media[data-count="2"] {
  grid-template-columns: repeat(2, 200px);
}

/* 3张图：横向并排 */
.moments-list.wechat-style .moment-media[data-count="3"] {
  grid-template-columns: repeat(3, 200px);
}

/* 4张图：2x2 四宫格 */
.moments-list.wechat-style .moment-media[data-count="4"] {
  grid-template-columns: repeat(2, 200px);
}

/* 5-6张图：3列布局 */
.moments-list.wechat-style .moment-media[data-count="5"],
.moments-list.wechat-style .moment-media[data-count="6"] {
  grid-template-columns: repeat(3, 200px);
}

/* 7-9张图：3x3 九宫格 */
.moments-list.wechat-style .moment-media[data-count="7"],
.moments-list.wechat-style .moment-media[data-count="8"],
.moments-list.wechat-style .moment-media[data-count="9"] {
  grid-template-columns: repeat(3, 200px);
}

.moments-list.wechat-style .moment-media-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--code-bg);
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 200px;
  height: 200px;
}

.moments-list.wechat-style .moment-media-item:hover {
  opacity: 0.9;
}

/* 图片 - 固定 200x200 正方形 */
.moments-list.wechat-style .moment-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 视频 - 固定 200x200 正方形 */
.moments-list.wechat-style .moment-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 音频 - 保持原样 */
.moments-list.wechat-style .moment-media-item.moment-audio {
  width: 100%;
  height: auto;
}

.moments-list.wechat-style .moment-media-item audio {
  width: 100%;
  display: block;
}

/* 瞬间标签 - 在内容下方 */
.moments-list.wechat-style .moment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.moments-list.wechat-style .moment-tag {
  color: var(--link-color);
  font-size: 0.85rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.moments-list.wechat-style .moment-tag:hover {
  opacity: 0.7;
}

/* 底部信息栏 */
.moments-list.wechat-style .moment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.moments-list.wechat-style .moment-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 500;
}

/* 互动按钮 */
.moments-list.wechat-style .moment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moments-list.wechat-style .moment-upvote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.moments-list.wechat-style .moment-upvote-btn:hover {
  background: var(--code-bg);
  color: var(--link-color);
}

.moments-list.wechat-style .moment-upvote-btn svg {
  width: 14px;
  height: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .moments-list.wechat-style .moment-item {
    gap: 10px;
    padding: 20px 0;
  }

  .moments-list.wechat-style .moment-avatar {
    width: 40px;
    height: 40px;
  }

  /* 移动端图片尺寸调整 */
  .moments-list.wechat-style .moment-media[data-count="1"] {
    grid-template-columns: 150px;
  }

  .moments-list.wechat-style .moment-media[data-count="2"],
  .moments-list.wechat-style .moment-media[data-count="3"],
  .moments-list.wechat-style .moment-media[data-count="4"],
  .moments-list.wechat-style .moment-media[data-count="5"],
  .moments-list.wechat-style .moment-media[data-count="6"],
  .moments-list.wechat-style .moment-media[data-count="7"],
  .moments-list.wechat-style .moment-media[data-count="8"],
  .moments-list.wechat-style .moment-media[data-count="9"] {
    grid-template-columns: repeat(3, 100px);
  }

  .moments-list.wechat-style .moment-media-item {
    width: 100px;
    height: 100px;
  }

  .moments-list.wechat-style .moment-media[data-count="1"] .moment-media-item {
    width: 150px;
    height: 150px;
  }
}

/* 单张图片时显示更大 */
.moment-media:has(.moment-media-item:only-child) {
  grid-template-columns: 1fr;
  max-width: 500px;
}

.moment-media:has(.moment-media-item:only-child) .moment-media-item img {
  aspect-ratio: auto;
  max-height: 500px;
  object-fit: cover;
}

/* 两张图片 */
.moment-media:has(.moment-media-item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* 三张图片 */
.moment-media:has(.moment-media-item:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

/* 四张及以上图片 */
.moment-media:has(.moment-media-item:nth-child(4)) {
  grid-template-columns: repeat(3, 1fr);
}

/* 瞬间标签 */
.moment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.moment-tag {
  font-size: 0.85rem;
  color: var(--link-color);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  transition: opacity 0.2s;
}

.moment-tag:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* 瞬间互动 */
.moment-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 0;
  flex-shrink: 0;
}

.moment-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  transition: color 0.2s;
  cursor: pointer;
}

.moment-action-item:hover {
  color: var(--link-color);
}

.moment-action-item svg {
  flex-shrink: 0;
}

/* 点赞按钮 */
.moment-upvote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.moment-upvote-btn:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: rgba(66, 185, 131, 0.05);
}

.moment-upvote-btn.upvoted {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.moment-upvote-btn.upvoted svg {
  fill: #e74c3c;
}

.moment-upvote-btn svg {
  flex-shrink: 0;
  transition: fill 0.2s;
}

.upvote-count {
  font-weight: 700;
}

/* 图片灯箱 */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* 空状态 */
.no-moments {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

/* 瞬间页面响应式 */
@media (max-width: 768px) {
  .moment-tags-filter {
    gap: 8px;
    padding: 15px 0;
  }
  
  .tag-filter-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
  
  .moment-item {
    gap: 12px;
    padding: 20px 0;
  }
  
  .moment-item:hover {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .moment-avatar {
    width: 40px;
    height: 40px;
  }
  
  .moment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .moment-text {
    font-size: 0.9rem;
  }
  
  .moment-media {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .moment-media:has(.moment-media-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .moment-media:has(.moment-media-item:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .moment-actions {
    gap: 15px;
  }
  
  .moment-action-item {
    font-size: 0.8rem;
  }
}




/* ==================== 文章内容链接美化样式（nozi 风格）==================== */
.post-content a:not(.download-btn) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.25rem 0.625rem !important;
  margin: 0.125rem 0.125rem !important;
  background-color: #f3f4f6 !important;
  border-radius: 9999px !important;
  color: #2563eb !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  font-size: 0.875em !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
}

.post-content a:not(.download-btn):hover {
  background-color: #e5e7eb !important;
  color: #1d4ed8 !important;
}

[data-theme="dark"] .post-content a:not(.download-btn) {
  background-color: #374151 !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .post-content a:not(.download-btn):hover {
  background-color: #4b5563 !important;
  color: #93c5fd !important;
}

/* 链接前的图标 */
.post-content a:not(.download-btn)::before {
  content: '' !important;
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .post-content a:not(.download-btn)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2360a5fa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1'/%3E%3C/svg%3E") !important;
}

/* 链接后的跳转图标 */
.post-content a:not(.download-btn)::after {
  content: '' !important;
  display: inline-block !important;
  width: 0.875em !important;
  height: 0.875em !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  flex-shrink: 0 !important;
  opacity: 0.6 !important;
}

[data-theme="dark"] .post-content a:not(.download-btn)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2360a5fa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E") !important;
}

/* 主题切换时防止链接胶囊和 TOC 频闪 */
body.theme-transitioning .post-content a:not(.download-btn),
body.theme-transitioning .post-content a:not(.download-btn)::before,
body.theme-transitioning .post-content a:not(.download-btn)::after,
body.theme-transitioning #post-toc a,
body.theme-transitioning .post-toc-wrapper {
  transition: none !important;
}


/* ==================== 主题切换动画 ==================== */
body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--bg-color);
  transition: background 0.3s ease;
}

/* 瞬间区域样式 */
.moments-section {
  margin: 30px 0;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.moment-item-candidate {
  display: none;
}

.moment-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.moment-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}

.moments-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  margin-bottom: 10px;
}

.moment-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.moment-text p {
  margin: 0;
  padding: 0;
  display: inline;
}

.moment-text p:empty {
  display: none;
}

.moment-text p[style] {
  all: unset;
  display: inline;
}

.moment-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 4px;
}

.moment-more-link:hover {
  color: var(--link-color);
  background: var(--code-bg);
  transform: translateX(3px);
}

.moment-more-link svg {
  display: block;
}

.moment-text p {
  margin: 0;
  display: inline;
}

.moment-media {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
}

.moment-photo {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.moment-photo:hover {
  transform: scale(1.05);
}

.moment-video,
.moment-audio {
  max-width: 200px;
  width: 100%;
  border-radius: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
  .moments-section {
    margin: 20px 0;
    padding: 12px 15px;
  }

  .moments-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .moment-text {
    font-size: 0.9rem;
  }

  .moment-photo {
    max-width: 100px;
    max-height: 70px;
  }

  .moment-video,
  .moment-audio {
    max-width: 100%;
  }
}


/* 页脚主菜单导航 */
.footer-nav {
  margin: 12px 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: "Menlo", "Meslo LG", "Microsoft YaHei", "微软雅黑", monospace, sans-serif;
  font-weight: 600;
}

.footer-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--link-color);
}

.footer-nav-sep {
  color: var(--text-secondary);
  opacity: 0.6;
}


/* ==================== 极简美化细节增强 (Beautified Polish) ==================== */

/* 1. 全局字体平滑与排版质感 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", monospace, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

/* 2. 页面居中容器优化 */
.container {
  max-width: 760px;
  padding: 0 24px;
}

/* 3. 头部导航美化 */
.header {
  padding: 30px 0 20px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-text:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--link-color);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* 4. 文章列表美化 */
.post-item {
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 8px 0;
}

.post-item:hover {
  transform: translateX(4px);
}

.post-header-line time {
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-feature-settings: "tnum";
}

.post-title a {
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* 5. 置顶徽章精细化 */
.pinned-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(80, 227, 194, 0.12);
  color: var(--link-color);
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  border: 1px solid rgba(80, 227, 194, 0.25);
  box-shadow: 0 1px 3px rgba(80, 227, 194, 0.08);
}

/* 6. 文章详情页点赞按钮美化 */
.post-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-upvote-btn:hover {
  border-color: #ff6b81;
  color: #ff6b81;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.18);
}

.post-upvote-btn svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.post-upvote-btn:hover svg {
  transform: scale(1.18);
  stroke: #ff6b81;
}

.post-upvote-btn.upvoted {
  background: rgba(255, 107, 129, 0.08);
  border-color: #ff6b81;
  color: #ff6b81;
}

.post-upvote-btn.upvoted svg {
  fill: #ff6b81;
  stroke: #ff6b81;
}

/* 7. 文章正文排版优化 */
.post-content {
  line-height: 1.85;
  font-size: 1.02rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.post-content blockquote {
  border-left: 3px solid var(--link-color);
  background: rgba(0, 0, 0, 0.02);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content pre {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 8. 页脚区域整体呼吸感提升 */
.footer {
  margin-top: 80px;
  padding: 40px 0 35px;
  border-top: 1px dashed var(--border-color);
}

.footer-info p {
  line-height: 2;
  font-size: 0.88rem;
}

/* 9. 页脚主菜单美化 */
.footer-nav {
  margin: 14px 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 600;
}

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-link:hover {
  color: var(--link-color);
  background: rgba(80, 227, 194, 0.1);
  transform: translateY(-1px);
}

.footer-nav-sep {
  color: var(--text-secondary);
  opacity: 0.35;
  user-select: none;
}

/* 10. 页面加载时间美化 */
.page-load-speed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 11. 返回顶部按钮美化 */
.jyf-fhdb {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jyf-fhdb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-color: var(--link-color);
  color: var(--link-color);
}


/* 返回顶部按钮最高优先级修复 */
.jyf-fhdb {
  position: fixed !important;
  bottom: 40px !important;
  right: 40px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-color) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.jyf-fhdb svg {
  pointer-events: none !important;
  transition: transform 0.2s ease !important;
}

.jyf-fhdb.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.jyf-fhdb:hover {
  transform: translateY(-3px) !important;
  color: var(--link-color) !important;
  border-color: var(--link-color) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
  .jyf-fhdb {
    bottom: 24px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
  }
}
