/* ============================================
   观照之境艺术风格 · 未来感玻璃拟态
   设计理念：空间化界面 + 3D半透明玻璃 + 悬浮面板
   ============================================ */

/* 明亮模式（默认） */
:root {
  --meta-main: #689F89;
  --main-deep: #4E7A68;
  --main-glow: rgba(104, 159, 137, 0.25);
  --bg-primary: #f5f7f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(104, 159, 137, 0.08);
  --text-primary: #2d3a35;
  --text-secondary: #5a6b64;
  --text-muted: #8a9a94;
  --border: rgba(104, 159, 137, 0.15);
  --border-hover: rgba(104, 159, 137, 0.4);
  --shadow-glass: 0 8px 32px rgba(104, 159, 137, 0.1);
  --shadow-hover: 0 20px 60px rgba(104, 159, 137, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

/* 暗黑模式 */
[data-theme="dark"] {
  --meta-main: #689F89;
  --main-deep: #4E7A68;
  --main-glow: rgba(104, 159, 137, 0.4);
  --bg-primary: #161d1b;
  --bg-secondary: #1e2825;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #e8eaf0;
  --text-secondary: #9ba3b4;
  --text-muted: #6b7385;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(104, 159, 137, 0.4);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 60px rgba(104, 159, 137, 0.15);
}

/* 全局背景 */
body {
  background: var(--bg-primary) !important;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(104, 159, 137, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(100, 150, 200, 0.08) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  font-family: 'Inter', 'PingFang SC', sans-serif;
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

/* 导航栏 - 玻璃拟态 */
#nav {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border) !important;
}

#nav .site-name, #nav a {
  color: var(--text-primary) !important;
}

#nav a:hover {
  color: var(--meta-main) !important;
}

/* 主容器 */
#page,
#aside-content .card-widget {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-glass);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#aside-content .card-widget:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-hover) !important;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* 文章标题 - 未来感衬线 */
#article-container h1,
#article-container h2,
#article-container h3,
.post-title {
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

#article-container h1 {
  font-size: 2rem;
  font-weight: 900;
}

#article-container h2 {
  font-size: 1.5rem;
  border-left: 3px solid var(--meta-main);
  padding-left: 0.7rem;
}

#article-container p {
  text-indent: 2em;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* 引用块 */
#article-container blockquote {
  background: linear-gradient(90deg, rgba(104, 159, 137, 0.1), transparent) !important;
  border-left: 2px solid var(--meta-main) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 18px !important;
  color: var(--text-secondary);
}

/* 图片 */
#article-container img {
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 链接 */
a {
  color: var(--meta-main);
  transition: all 0.3s;
  text-decoration: none;
}

a:hover {
  color: var(--main-deep);
  text-decoration: none;
}

/* 文章卡片版权信息 */
.post-copyright {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

/* 编号样式 */
.meta-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--meta-main);
  margin-right: 0.5rem;
}

/* 分割线 */
.meta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* ============================================
   工具箱 - 三维悬浮卡片墙
   ============================================ */
#article-container .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 2rem 0;
  perspective: 1000px;
}

#article-container .tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

#article-container .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--meta-main), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#article-container .tool-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

#article-container .tool-card:hover::before {
  transform: scaleX(1);
}

#article-container .tool-card .tool-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--meta-main);
  opacity: 0.8;
}

#article-container .tool-card h4 {
  margin: 0.5rem 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

#article-container .tool-card p {
  text-indent: 0;
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

#article-container .tool-card .tool-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(104, 159, 137, 0.15);
  color: var(--meta-main);
  margin-bottom: 0.6rem;
}

#article-container .tool-card a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--meta-main);
}

/* 自制工具输入框 */
#article-container .tool-card input,
#article-container .tool-card textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  transition: border-color 0.3s;
}

#article-container .tool-card input:focus,
#article-container .tool-card textarea:focus {
  outline: none;
  border-color: var(--meta-main);
}

#article-container .tool-card input[type="color"] {
  height: 50px;
  padding: 4px;
  cursor: pointer;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  #article-container h1 {
    font-size: 1.6rem;
  }
  #article-container .tool-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   3D交互 · 大厂级滚动动效
   ============================================ */

/* 文章卡片 - 3D悬浮容器 */
#recent-posts > .recent-post-item {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s !important;
  transform-style: preserve-3d;
  position: relative;
}

#recent-posts > .recent-post-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(104, 159, 137, 0.15) !important;
}

/* 卡片内容层 - 鼠标跟随视差 */
#recent-posts > .recent-post-item .post_cover,
#recent-posts > .recent-post-item .post-info {
  transition: transform 0.3s ease-out;
}

/* 侧边栏卡片 - 3D悬浮 */
#aside-content .card-widget {
  transform-style: preserve-3d;
}

/* 工具箱卡片 - 鼠标3D倾斜 */
#article-container .tool-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

/* 滚动渐入动画初始状态 */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 视差滚动背景光斑 */
.meta-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.1s ease-out;
}

.meta-glow.green {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(104, 159, 137, 0.15), transparent 70%);
  top: -200px;
  left: -100px;
}

.meta-glow.blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100, 150, 200, 0.1), transparent 70%);
  bottom: -200px;
  right: -150px;
}

/* 导航栏毛玻璃增强 */
#nav {
  transition: background 0.3s, backdrop-filter 0.3s;
}

/* 按钮 - 发光效果 */
#pagination .page-number.current,
.btn-anime {
  box-shadow: 0 0 20px rgba(104, 159, 137, 0.3);
}

/* 文章图片 - 悬浮放大 */
#article-container img {
  transition: transform 0.4s ease-out;
}

#article-container img:hover {
  transform: scale(1.02);
}

/* 代码块 - 科技感 */
#article-container .code-area {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(104, 159, 137, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(104, 159, 137, 0.5);
}
/* ============================================
   增强：粒子背景 + 滚动视差 + 文字动画
   ============================================ */

/* 粒子canvas */
#meta-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 主容器提到粒子上层 */
#content-inner,
#aside-content {
  position: relative;
  z-index: 1;
}

/* 标题文字动画 */
.post-title,
#article-container h1 {
  background: linear-gradient(90deg, #e8eaf0, #689F89);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s linear infinite;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

/* 滚动视差 - 头部banner */
#page-header {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* 卡片悬浮深度增强 */
#recent-posts > .recent-post-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
}

#recent-posts > .recent-post-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(104, 159, 137, 0.3);
}

/* 标签云 */
#article-container .tag-cloud a,
.tag-cloud-list a {
  background: rgba(104, 159, 137, 0.1) !important;
  border: 1px solid rgba(104, 159, 137, 0.2);
  color: var(--meta-main) !important;
  transition: all 0.3s;
}

#article-container .tag-cloud a:hover,
.tag-cloud-list a:hover {
  background: rgba(104, 159, 137, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(104, 159, 137, 0.2);
}

/* 归档时间线 */
#article-container .archive,
.archive-full {
  border-left: 2px solid var(--border);
}

#article-container .archive-move,
.archive-full .archive-page {
  border-left: 2px solid var(--meta-main);
}

/* 回到顶部按钮 */
#rightside .back-top {
  background: rgba(104, 159, 137, 0.8) !important;
  backdrop-filter: blur(10px);
}

/* 搜索框 */
#local-search-wrap,
.search-dialog {
  background: rgba(15, 18, 25, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border) !important;
}

/* 代码高亮增强 */
#article-container figure.highlight {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}
/* ============================================
   进阶3D交互 · 大厂级动效
   ============================================ */

/* 粒子背景canvas */
#meta-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* 滚动视差层 */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* 文字逐字动画 */
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.char-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 首页Banner - 3D空间感 */
#page-header,
#banner {
  perspective: 1000px;
}

/* 滚动时固定元素效果 */
.sticky-element {
  position: sticky;
  top: 20vh;
}

/* 卡片翻转效果（工具箱） */
.tool-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* 滚动时的时间线效果 */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--meta-main), transparent);
  transform: translateX(-50%);
}

/* 鼠标跟随光环 */
.meta-cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 159, 137, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* 按钮波纹效果 */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
  width: 300px;
  height: 300px;
}

/* 导航栏毛玻璃增强 */
#nav {
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

/* 文章卡片hover光晕 */
.recent-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(104, 159, 137, 0.5), transparent 40%, transparent 60%, rgba(104, 159, 137, 0.3));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.recent-post-item:hover::before {
  opacity: 1;
}

/* 深色模式增强（本来就是深色了，再加细节） */
#aside-content .card-widget .item-headline {
  color: var(--text-primary) !important;
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
}

/* 搜索框 */
#search-dialog {
  background: rgba(15, 18, 25, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border) !important;
}

/* 标签云 */
.tag-cloud a,
#article-container .tag-cloud a {
  color: var(--meta-main) !important;
  background: rgba(104, 159, 137, 0.08) !important;
  border-radius: 99px;
  padding: 4px 12px;
  margin: 4px;
  display: inline-block;
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background: rgba(104, 159, 137, 0.2) !important;
  transform: translateY(-2px);
}
/* ============================================
   3D模型交互效果（对标视频里的风扇/行星/圆环）
   ============================================ */

/* 3D场景容器 */
.meta-3d-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* 旋转风扇效果 */
.meta-fan {
  animation: fanSpin 3s linear infinite;
  transform-origin: center;
}

@keyframes fanSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 行星扭转效果 */
.meta-planet {
  animation: planetTilt 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes planetTilt {
  0%, 100% { transform: rotateY(0deg) rotateX(10deg); }
  50% { transform: rotateY(180deg) rotateX(-10deg); }
}

/* 圆环旋转效果 */
.meta-ring {
  animation: ringSpin 6s linear infinite;
  border-radius: 50%;
  border: 2px solid var(--meta-main);
  box-shadow: 0 0 20px var(--main-glow);
}

@keyframes ringSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1); }
}

/* Bloom发光效果 */
.bloom-glow {
  position: relative;
}

.bloom-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--meta-main), transparent, var(--meta-main));
  filter: blur(12px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

.bloom-glow:hover::after {
  opacity: 0.6;
}

/* 工具箱页面3D装饰圆环 */
.tool-3d-deco {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.tool-3d-deco .ring1 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(104, 159, 137, 0.3);
  animation: ringSpin 8s linear infinite;
}

.tool-3d-deco .ring2 {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px solid rgba(104, 159, 137, 0.5);
  animation: ringSpin 5s linear infinite reverse;
}

.tool-3d-deco .core {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--meta-main), transparent);
  box-shadow: 0 0 30px var(--main-glow);
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* 鼠标3D跟随光圈 */
.meta-3d-cursor {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 159, 137, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ============================================
   第4层：通信融合层 - 分享栏与点赞
   ============================================ */

.meta-share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  background: rgba(104, 159, 137, 0.05);
  border: 1px solid rgba(104, 159, 137, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.share-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.share-item:hover {
  background: rgba(104, 159, 137, 0.15);
  color: var(--meta-main);
  transform: translateY(-2px);
}

.like-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(104, 159, 137, 0.1);
  color: var(--meta-main);
  border: 1px solid rgba(104, 159, 137, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.like-btn:hover {
  background: rgba(104, 159, 137, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(104, 159, 137, 0.2);
}

.like-btn.liked {
  background: var(--meta-main);
  color: white;
  border-color: var(--meta-main);
}

.like-btn svg {
  transition: transform 0.3s ease;
}

.like-btn.liked svg {
  transform: scale(1.2);
  fill: white;
}

#meta-like-count {
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

/* ============================================
   评论系统样式
   ============================================ */

.meta-comment-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(104, 159, 137, 0.05);
  border: 1px solid rgba(104, 159, 137, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.comment-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-input::placeholder {
  color: var(--text-muted);
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  font-family: inherit;
}

.comment-textarea::placeholder {
  color: var(--text-muted);
}

.comment-btn {
  padding: 0.75rem 1.5rem;
  background: var(--meta-main, #689F89);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.comment-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-list {
  margin-top: 1.5rem;
}

.comment-loading, .comment-empty, .comment-error {
  text-align: center;
  color: var(--text-muted, #6b7385);
  padding: 1rem;
}

.comment-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--meta-main, #689F89);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--meta-main, #689F89);
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7385);
}

.comment-body {
  color: var(--text-secondary, #9ba3b4);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 主题切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   多配色方案 + 更多自定义
   ============================================ */

/* 方案1：默认灰绿（当前） */
:root {
  --meta-main: #689F89;
  --meta-main-deep: #4E7A68;
  --meta-main-glow: rgba(104, 159, 137, 0.3);
}

/* 方案2：暖棕（柔和温暖） */
[data-theme="warm"] {
  --meta-main: #b8956e;
  --meta-main-deep: #9a7a52;
  --meta-main-glow: rgba(184, 149, 110, 0.3);
}

/* 方案3：靛蓝（沉静深邃） */
[data-theme="indigo"] {
  --meta-main: #7a8db8;
  --meta-main-deep: #5c6fa0;
  --meta-main-glow: rgba(122, 141, 184, 0.3);
}

/* 方案4：藕粉（温柔治愈） */
[data-theme="pink"] {
  --meta-main: #b88a9e;
  --meta-main-deep: #9a6d82;
  --meta-main-glow: rgba(184, 138, 158, 0.3);
}

/* 明暗模式切换过渡动画 */
body,
.header,
.footer,
#aside-content .card-widget,
#recent-posts .recent-post-item,
.article-container,
.meta-card,
.meta-btn {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* 布局选项：宽屏 */
[data-layout="wide"] #content-inner {
  max-width: 1600px;
}

/* 布局选项：窄屏 */
[data-layout="narrow"] #content-inner {
  max-width: 900px;
}

/* 字体选项：衬线体 */
[data-font="serif"] body {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif !important;
}

/* 字体选项：无衬线体 */
[data-font="sans"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* 卡片样式：圆角 */
[data-card="rounded"] .card-widget,
[data-card="rounded"] .recent-post-item {
  border-radius: 16px;
}

/* 卡片样式：尖角 */
[data-card="sharp"] .card-widget,
[data-card="sharp"] .recent-post-item {
  border-radius: 0;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* 卡片样式：玻璃拟态（默认） */
[data-card="glass"] .card-widget,
[data-card="glass"] .recent-post-item {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}
/* ============================================
   观照之境 · 文章列表卡片流优化
   ============================================ */

/* 文章卡片 - 大卡片风格 */
#recent-posts > .recent-post-item {
    margin-bottom: 2rem !important;
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

#recent-posts > .recent-post-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 60px rgba(104, 159, 137, 0.15) !important;
    border-color: rgba(104, 159, 137, 0.3) !important;
}

/* 文章封面 - 更大更突出 */
#recent-posts > .recent-post-item .post_cover {
    height: 240px !important;
    overflow: hidden;
}

#recent-posts > .recent-post-item .post_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#recent-posts > .recent-post-item:hover .post_cover img {
    transform: scale(1.05);
}

/* 文章内容区 */
#recent-posts > .recent-post-item .post-info {
    padding: 1.5rem 2rem !important;
}

/* 文章标题 */
#recent-posts > .recent-post-item .post-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif SC', serif !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: 0.02em;
}

/* 文章摘要 */
#recent-posts > .recent-post-item .post-abbr {
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

/* 文章信息（日期/分类/阅读时长） */
#recent-posts > .recent-post-item .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 侧栏卡片 - 统一玻璃风格 */
#aside-content .card-widget {
    border-radius: 16px !important;
    margin-bottom: 1.5rem !important;
}

/* 左侧边栏 - 作者卡片 */
#aside-content .card-widget:nth-child(1) {
    background: linear-gradient(135deg, rgba(104, 159, 137, 0.1), var(--bg-card)) !important;
}

/* 分页按钮 */
#pagination .page-number {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    margin: 0 0.25rem !important;
}

#pagination .page-number.current {
    background: var(--meta-main) !important;
    color: white !important;
    border-color: var(--meta-main) !important;
}

/* ============================================
   文章阅读体验优化
   ============================================ */

/* 文章标题优化 */
#post-info h1,
.article-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* 文章正文排版 */
#article-container p {
  line-height: 1.9;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

/* 文章引用优化 */
#article-container blockquote {
  border-left: 3px solid var(--meta-main);
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* 文章代码块优化 */
#article-container code {
  background: var(--bg-card);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-size: 0.9em;
}

#article-container pre {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

#article-container pre code {
  background: none;
  padding: 0;
}

/* 文章图片优化 */
#article-container img {
  border-radius: 12px;
  box-shadow: var(--shadow-glass);
  margin: 2rem auto;
  display: block;
  max-width: 100%;
}

/* 文章分隔线 */
#article-container hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--meta-main), transparent);
  margin: 3rem 0;
}

/* 文章标签优化 */
#article-container .article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

#article-container .article-tag-list a {
  padding: 0.3rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--meta-main);
  transition: all 0.3s;
}

#article-container .article-tag-list a:hover {
  background: var(--meta-main);
  color: white;
  border-color: var(--meta-main);
}

/* 文章导航按钮 */
#article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

#article-nav a {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

#article-nav a:hover {
  border-color: var(--meta-main);
  box-shadow: var(--shadow-glass);
  transform: translateY(-2px);
}

/* 响应式：移动端文章导航 */
@media (max-width: 768px) {
  #article-nav {
    grid-template-columns: 1fr;
  }
  
  #article-container p {
    font-size: 1rem;
  }
}

/* === 2026-12-01 阅读微调：正文字号 / 行高 / 卡片底色（整段可删） === */
:root { --global-font-size: 15px; }
@media (max-width: 767px) { :root { --global-font-size: 16px; } }
.mz-lead, .mz-next {
  background: color-mix(in srgb, var(--card-bg) 92%, transparent) !important;
  backdrop-filter: blur(6px);
}
#article-container { line-height: 1.9; }
#article-container p { margin-bottom: 1.1em; }
/* === 阅读微调结束 === */

/* 浏览量由 busuanzi 异步写入。数字晚到时会让文章信息行折行数变化，
   整个正文容器跟着位移（实测冷启动 CLS 0.13~0.20）。这里预留宽度，
   数字到位不再重排。tabular-nums 让 1→2 位数时宽度也不跳。 */
#busuanzi_value_page_pv,
#busuanzi_value_site_pv,
#busuanzi_value_site_uv {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
